Skip to content

Podium student materials and display history

Status: investigation opened 2026-11-17. Q1 and Q4-Q23 agreed, with Q2-Q3 scope corrected by Anton. Shared understanding confirmed and implementation authorized; implementation complete and canonical affected validation passed. Cluster activation remains the maintainer’s step.

Anton currently uploads a PDF of presentation slides to Xuexitong after teaching. The PDF is usually trimmed and may differ from the presentation shown during the Meeting. He wants control over those differences.

He would also find it useful to know whether a particular slide was displayed for at least a chosen duration during the Meeting. This is an aid to reviewing student materials; automatic inclusion or exclusion has not been requested.

Delivered presentation sources and exports must remain preserved under the standing materials rule. Preparing a separate student version must not overwrite them.

Anton accepted Q1, Q4 and Q5 of the first round:

  • Start from one versioned document with separate sections for display observations, editorial choices and retained PDF references. The later Q11 decision supplies its physical owner. The document references PDF bytes rather than containing them.
  • Capture display observations while presenting; allow the teaching interval to be adjusted afterward. Meeting Start/End Checkpoints can suggest its boundaries.
  • Recording is best effort, saved locally and uploaded when possible. Missing coverage is distinct from a known absence of display. Recording failures must not interrupt presenting or PDF preparation.

Anton rejected the proposed local-production-first direction in Q2 and the broad PDF transformation scope proposed in Q3:

  • The purpose of this slice is in-app production of a student PDF through slide selection and reordering.
  • Editing slide content, splitting slides, replacing slides with summaries and other more complicated transformations are outside this slice. They remain in the YXNU workflow for now. Anton mentioned broader adoption of airunner for agent tasks as a possible later context for revisiting this boundary, not an immediate dependency.
  • Upload/sync with Xuexitong is desired, with sequencing confirmed below.

Anton accepted Q6-Q10 in the second round:

  • Include selection, deselection and reordering of whole Slides, without duplicates or content editing. The source Deck remains unchanged.
  • Initially select all Slides in their original order and show display durations. Provide an explicit action to select Slides displayed for at least a chosen duration, followed by manual adjustment. Missing recording never silently excludes Slides.
  • Default to the retained Published Edition associated with the Meeting. Match observations using that edition’s Slide identities. Choosing another edition is explicit and unmatched observations remain visibly unmatched.
  • PDF media treatment retains static teaching text and any existing poster image, omits player controls and generates no transcripts or additional images.
  • Deliver in-app production/download first. A later explicit Xuexitong upload action follows; automatic background synchronization is outside this initial scope.

Anton accepted Q11-Q16, with the Q15 snapshot boundary refined by Q17:

  • Use one new teacher-only record per Meeting containing a versioned JSON document. Store observations, selection/order and PDF export references within it; use existing file storage for PDF bytes. Do not initially normalize individual visits, selections or export recipes into separate tables.
  • Retain compact display intervals with recording-attempt, edition and Slide identity, rather than only per-Slide totals or a record for every polling sample. Totals can then be recalculated against an adjusted teaching interval.
  • Use longest continuous slide-visible display for the threshold selection action; show cumulative display time alongside it.
  • Distinguish slide-visible display from associated fullscreen-video display. Inline video counts as slide-visible; fullscreen-video time does not contribute to the selection threshold.
  • PDF preview and downloaded bytes must agree. Closing the Meeting, rather than later PDF preparation, is the boundary for retaining presentation content.
  • Generated PDFs and their builder remain teacher-only. They do not automatically publish to Emergent’s learner interface.

Anton accepted Q17:

  • Closing the Meeting preserves a Meeting Deck Snapshot, including resolved Slide Binding content, for later student PDF production.
  • Underlying teaching records may still be corrected afterward. Preserving the snapshot does not freeze all records associated with the Meeting.

Anton accepted Q18-Q23:

  • Capture final binding values at closing for all Slides. Do not initially retain every historical variation of resolved slide content. Display history does not claim to reconstruct every value displayed earlier in the Meeting.
  • Permit retrospective closure or closure from another browser without complete display recording. Use the available retained Deck and current binding values, recording the actual snapshot-capture time and provenance. Missing historical values must remain distinguishable from recorded values.
  • Allow PDF previews before closing, but require closure for retained Student Slide PDF generation in the initial slice. Complete display recording is not a closure prerequisite.
  • Retracting End does not delete existing snapshots or PDFs. Closing again creates another snapshot, which becomes the default for subsequent exports.
  • Merge independent display observations; detect conflicting selection/order edits instead of silently overwriting them with last-write-wins.
  • Keep one working selection per Meeting and retained export history. Each export retains the selection and snapshot that produced it. Named selection variants are deferred.

The agreed initial unit is one teacher-only record per Meeting, with a versioned JSON document. Its logical sections are:

  • Recording attempts and compact, identity-bearing display intervals, including coverage gaps and slide-visible versus fullscreen-video mode.
  • An adjustable teaching interval for deriving the timing review.
  • Retained closure snapshots, their captured binding values, source edition and capture provenance.
  • One editable selection/order and its source snapshot or explicitly chosen edition.
  • Immutable export descriptions referencing stored PDF bytes, their exact selection and source snapshot.

Commands should mutate the relevant section rather than blindly replacing the whole document. Recording retries need stable identities; selection edits need conflict detection. PDF export history must not be rewritten by subsequent selection changes. Exact property names and command contracts remain implementation design details.

The later Xuexitong upload slice should reference the existing bridge push ledger for external effects rather than copy its effect/retry state into this document.

  • The publication ledger retains immutable source/Deck/Plan/media snapshots. Its JSON fields are not mutable review records.
  • Meeting has no generic JSON field. Its existing sync writes use last-write-wins, and its read scope includes Offering members. Teacher-only review data cannot simply inherit that visibility and conflict behavior without a deliberate choice.
  • Deck rendering/directives and Meeting Plan rules are authored preparation, not runtime observation records.
  • Checkpoints explicitly record teacher-selected Meeting/Segment moments, never slide changes. Display observations need distinct vocabulary.
  • Audience messages currently omit stable Slide/Deck/Meeting/Published Edition identity, although rendered Slides have stable IDs. Display history needs that identity to avoid interpreting an ordinal against the wrong edition.
  • Generic PDF Content storage exists; a student slide-selection/export workflow and per-slide display history do not yet exist.
  • The existing Xuexitong bridge implements native media preparation, Pan upload, course Resources attachment and retained push receipts. Its native-file profile accepts image/audio/video, not PDF document artifacts. Document support requires deliberate extension of that pipeline.
  • Existing bridge delivery receipts distinguish provider acknowledgements from independent verification. Uncertain writes are blocked rather than automatically retried. These facilities should be examined for the later upload slice rather than introducing a second delivery ledger in the review document.
  • Closing a Meeting currently records a meeting_end Checkpoint and derives its ended status. It does not snapshot resolved Slide Bindings. Projection still reads current Meeting facts, Room names, Rota allocations/participant names and Survey shortlist values, without an ended-status snapshot branch. Authored Deck/Plan preservation is a separate guard, not a rendered-value snapshot.

Activate the implemented PDF slice through the maintainer’s migration/deployment procedure, then validate it with a selected Meeting. Anton confirmed that the current offline media explanation is sufficient for now; further offline-media investigation is not a gate. The independent question of current offline audio/video caching does not expand the PDF slice automatically. Code inspection confirms Prepare downloads complete linked image/audio/video Blobs into IndexedDB (emergent-teacher-podium-v1), commits assets and prepared data together, and reconstructs local Blob URLs on reopening. Missing/failed asset downloads cannot produce a new successful prepared manifest. This is separate from the deferred full offline-consumption acceptance: authenticated local data readiness, offline restart/Meeting switching and browser storage retention are not established by the existence of cached media bytes. No live browser offline acceptance was performed in this investigation.

  • podium_review is one server-only RLS-protected row per Meeting with a typed, versioned JSON document. Scoped Operations own section mutations; there is no generic whole-document client write or learner-visible placement.
  • The shared model validates recording retries, selection conflicts, snapshot retention and immutable export recipes. Display intervals come from acknowledged Audience rendering, with an account-scoped durable browser outbox.
  • Both Presenter layouts expose the builder. It supports whole-Slide selection and reordering, timing review, retained-source choice, PDF production and export history.
  • Closing resolves the final binding values. Observed Audience locale supplies date formatting when available; preview/explicit retrospective capture uses the portal locale. Missing historical context remains explicit.
  • Native edits before a Meeting are distinguished from their original publication. Explicit restoration of a changed old publication uses its retained authored source and distinct Slide identities rather than mismatching historical timings.
  • The API uses Gotenberg 9.6.0 Chromium to print self-contained retained Marp HTML. PDF files use digest-bearing object keys, and the browser verifies byte length and SHA-256 before sharing one local Blob between final preview and download.
  • Focused domain, backend, recorder and builder tests passed. Representative Week-13 Slides and Chinese/background/binding fixtures were rendered and inspected. A real Gotenberg container conversion passed with the configured chart flags and was removed afterward. This does not establish a deployment on the teaching cluster.
  • Canonical mise exec -- bun run validate passed: 48 formatting/lint/typecheck tasks and 12 coverage tasks succeeded, followed by the final 29 characterization tests. Complete coverage runs included 2,501 API tests, 1,529 database tests, 905 teacher-portal tests and 831 domain tests. Teacher and API production builds also passed.
  • Coverage revealed workstation contention in existing pgwasm tests. Offline-data retains two parallel files with a 30-second per-test allowance; two expensive database policy tests have a 60-second allowance. Assertions were unchanged. Running the heavy API/database tasks separately allowed the normal gate to reuse their successful results; see the code-quality runbook.

Activation and usage: Student Slide PDFs and renderer configuration.

Existing canonical vocabulary lives in CONTEXT.md. New terms will be added there when their meanings are settled, rather than creating a second competing glossary.