Skip to content

Student Slide PDF Push to Xuexitong

Status: all interview questions settled on 2026-11-17 after normal commit 45c27112. Anton confirmed the consolidated scope (“We are aligned. Proceed”). Implemented and validated. No live Xuexitong effects or teaching-database migrations performed in development.

  • The PDF workflow is implemented and committed. The next slice connects a selected retained Student Slide PDF to XXT.
  • Publishing is deliberate. Automatic background synchronization is outside the agreed initial scope.
  • Use the exact retained PDF bytes reviewed by the teacher. Selecting a different working slide recipe must not silently change an existing export or Push.
  • Preserve earlier delivered materials and retained exports. A new Push must not silently replace, delete or adopt an existing student resource.
  • The existing Platform Bridge, Connection and Push vocabulary in CONTEXT.md applies. Uploading bytes to Pan is a mechanism; attaching them to course Resources is a separate external effect.
  • The existing native-file preparation profile accepts processed image/audio/video Content with an artifact, Offering placement and media-upload custody. It rejects PDF. A retained Student PDF instead has an export/snapshot identity and a stored file descriptor, so it needs a deliberate source/origin adapter rather than a fabricated media-upload intake.
  • Pan upload and Resources attachment are implemented separately, with retained intents and acknowledgements. Reuse their effect ledger rather than adding another copy of delivery/retry state to the Meeting review JSON.
  • The bridge checks current teaching reach, an exact course/class Binding and the invoking teacher’s own Connection. Pan and Resources-navigation session preparation are separate from primary Connection custody.
  • The Resources attachment request does not set class-specific visibility or permissions. Anton confirms that course Resources are visible to everyone in the course; class-specific release is not a requirement for this workflow.
  • Destination discovery currently supports root and immediate child folders from a complete, nonempty, single-page root listing. Nested/empty/multipage profiles and folder creation are not implemented in this Emergent profile.
  • Pan acknowledgements retain provider object/resource IDs and returned filename; Resources attachment acknowledgement does not independently establish an exact new Resources row, remote bytes or student permissions.
  • Current reconciliation is local-only. Uncertain dispatch is blocked rather than automatically replayed; names alone do not identify or authorize adoption of an existing resource.
  • The YXNU replacement tool supplies useful PDF readback/verification precedent, distinguishing original-byte equality from normalized preview-text equality. Its delete/add replacement behavior is outside the additive default for this slice.

Implementation references: native source profile, Resources request, destination contracts, Student PDF descriptor, bridge runbook.

Numbering starts again for the XXT slice. Anton answered these on 2026-11-17.

  1. Course Resources are course-wide. No class access restriction or release-control subsystem is needed. Anton controls when to Push; if slides contain sensitive material, he will upload after the final group for the week.
  2. Browse existing Resources folders, including nested destinations. Put the PDF in the appropriate existing location, or create the missing folder. Folder creation belongs in this initial slice rather than being deferred.
  3. Use a readable, editable student-facing filename, for example 26-3 Week 13 - student slides.pdf; UUIDs remain internal. Renaming for delivery does not change the retained PDF bytes.
  4. Present one reviewed end-to-end Push action. Keep Pan upload and Resources attachment as separate retained effects internally so interruption and recovery can be reported accurately.
  5. Verify the exact Resources entry and, where available, download the original to compare its hash with the retained PDF. Report attachment and byte verification separately. An acknowledgement alone is not verified delivery, and provider preview-text equivalence is not original-byte equality.

Anton agreed to all five recommendations, specifying v2 through vX for revisions.

  1. Remember the invoking teacher’s last Resources folder for this XXT course, editable through a nested folder browser with a New folder action. Show the complete course/folder path before Push; do not impose a new week-folder layout.
  2. A repeated Push of the same export to the same destination should show its existing delivery and offer verification rather than silently making another copy. An unrelated existing file with the same name should prompt for a different name; no automatic replacement or adoption.
  3. Initially publish revisions as additional editions named v2, v3, and so on, preserving earlier files. Replacing or deleting an XXT resource is outside this first slice.
  4. Retain progress across interruption and resume from the last confirmed effect, reusing a confirmed Pan upload. If a request may have succeeded, inspect XXT before sending it again; retain an unresolved state if evidence is insufficient. Do not automatically delete a Pan file when later attachment fails.
  5. Put Push to Xuexitong beside each retained PDF edition in the PDF panel, with destination, final filename, delivery status and verification evidence there. Retain the existing Platform Bridge view for deeper inspection.
  • YXNU supports nested Resources listing through dataId and pagination; the Emergent reader needs complete per-folder listings, including empty folders.
  • YXNU creates folders through the provider’s coursedata/add-folder endpoint, despite its use of HTTP GET. Treat this as a retained external write. Folder names must be validated before dispatch rather than accepting provider normalization.
  • After a lost create response, a folder listing may identify a usable destination but cannot prove which caller created it. No result is not proof of no effect; multiple matching names require choosing an exact folder ID.
  • YXNU reads Pan object status and distinguishes original download from PDF preview URLs. Original bytes support hash comparison; provider previews do not establish original-byte equality.
  • No existing personal remembered destination exists in Emergent. Offering meta is shared/synced metadata and is not the agreed personal preference.
  • The PDF panel already selects historical retained exports by UUID. Push must bind to that immutable export, resolving its Offering through the Meeting, rather than reading the mutable slide selection.

Source references: YXNU folder client, YXNU PDF verification, PDF panel.

Anton agreed to all three recommendations.

  1. Keep the first filename unversioned; suggest v2, v3, and so on for subsequent published editions with the same base name in the selected folder. Consider retained delivery history and current remote names; unused local exports do not consume a version. Keep the proposed filename editable and visible before Push.
  2. If the Resources entry is verified but XXT cannot supply an original download, show Uploaded / original-byte verification unavailable or pending, retaining a Check again action. A returned original with a different hash is verification failed. Neither case silently reuploads or removes the resource.
  3. New folder is an explicit action in the destination browser, creating then selecting that folder before the final PDF Push review. If its response is lost, refresh and let the teacher select an observed matching folder rather than creating again automatically; multiple matches remain separate choices.
  • Add Push to Xuexitong to each retained Student Slide PDF edition in the PDF panel, using the invoking teacher’s Connection and the Meeting Offering’s course Binding.
  • Browse complete Resources listings at any supported folder depth, remember the teacher’s last course destination, and explicitly create/select missing folders.
  • Review the exact retained PDF, destination and editable filename before one Push. Publish additional editions with suggested v2, v3, and later suffixes.
  • Reuse the existing Platform Bridge ledger for source provenance and separate Pan upload / Resources attachment effects, with retained progress and observation before retrying uncertain writes. Do not duplicate delivery state in Meeting JSON.
  • Display existing delivery for a repeated Push and retain earlier editions. This slice adds no resource replacement/deletion, background sync or scheduled release.
  • Verify the Resources entry and compare downloaded original bytes when available. Distinguish pending/unavailable verification from a hash mismatch, and expose read-only Check again without silently creating another upload.

The design frontier is empty and the consolidated scope is confirmed.

  • The retained PDF panel now provides destination browsing/creation, session preparation, filename review, a single Push action, retained history and separate Resources/original-byte verification results.
  • Six new shared Operations expose PDF configuration/preview/execute/check and folder inspection/creation through the existing HTTP and MCP transports. See the workflow runbook for names and scopes.
  • PDF provenance and separate upload/attachment effects reuse the private bridge ledger. Personal destination memory derives from the teacher’s retained course plans. No new application table or dependency was added.
  • Additive migrations are 20261117082806_student_pdf_push and 20261117082851_client_role_acl. Previously committed migrations remain unchanged.
  • Receipt, reservation and cleanup paths take owner locks before target/Meeting/ Intent locks. A real SQL trace regression checks the order; fixture-backed factory tests exercise full publication, recovery of a lost attachment response, and reuse of an acknowledged Pan upload after a reviewed filename change.
  • Original-file verification distinguishes exact hashes from unavailable originals and differing bytes. Provider preview URLs do not count as original verification. Original-download redirects are bounded and provider cookies are not forwarded to status-supplied download URLs.

Final verification on 2026-11-17:

  • mise exec -- bun run validate passed: 48 formatting/lint/typecheck tasks, all 12 coverage tasks, and 29 final characterization tests. Loopback HTTP test servers used NO_PROXY/no_proxy exceptions for the invoking shell’s HTTP proxy.
  • Database coverage: 1,531 passed; API coverage after the lock fix: 2,527 passed; teacher coverage: 912 passed. Required coverage gates passed.
  • API and teacher-portal production builds passed.
  • MCP transport checks passed, including catalogue exposure and authenticated invocation. New provider protocols were exercised with simulated XXT responses and disposable pgwasm databases, not a live course upload.

Activation remains the normal maintainer migration/build/deployment process, followed by a deliberately reviewed first live upload. Existing delivered materials were not modified or re-uploaded during development.