Skip to content

Publish local Podium presentations

This personal pilot keeps the existing YXNU authoring and local Podium workflow. An explicit command publishes the selected run sheet, Deck and media to native Emergent Podium. Local preparation does not contact the cluster or alter teaching inputs. See the design and accepted scope.

  • The local Emergent API runs the new podium.* Operations and the maintainer has applied their additive migrations using the migration procedure.
  • An authenticated teacher can manage the selected Offering and future Meeting. Discovery below returns actual IDs. Create missing Offerings in the existing teacher UI, and Meetings through its existing UI/Operations; no learner roster is needed for an English Corner presentation-only trial.
  • Obtain the teacher’s Supabase session access token through the existing sign-in process and retain it in a private, gitignored mode-0600 file. A session token supports discovery, media upload/placement and publication. An Operations token with podium.read and podium.write supports discovery/publication with already placed media, but does not authorize the session-only media workflow API.
  • Keep credentials out of source, shell arguments, generated manifests and logs. Refresh an expired session through sign-in; do not decode a token and fabricate a server principal or substitute a database credential.

On this workstation the API base is https://sb.loc.emergent-english.com/functions/v1, and the teacher portal is https://teacher.loc.emergent-english.com. Keep /functions/v1 in --api-url. If inherited proxies intercept these local hosts, add them to NO_PROXY or unset the proxy variables for the local command. Do not disable TLS verification.

The local teacher HTTPRoute currently selects the development server on port 5561. Start the existing bun run dev:teacher from Emergent when using that route. The development server is sufficient for the first connected presentation trial; the later offline milestone must verify the production app shell and restart behavior.

The new additive folders are 20261116082904_podium_publications and 20261116083019_client_role_acl. Migration application is the maintainer’s step; the command below applies all pending local migrations, not just these two. Verify the local database configuration using the migration runbook first.

From the Emergent checkout, after the code is ready:

Terminal window
mise exec -- bun run --cwd packages/db db:migrate:local

After successful migration, reload the live-mounted API source and wait for readiness:

Terminal window
incus exec dev101 -- kubectl rollout restart deployment/emergent-api -n emergent
incus exec dev101 -- kubectl rollout status deployment/emergent-api -n emergent

Run mise exec -- bun run dev:teacher separately for the current teacher development route. These local commands are not a production rollout procedure. Neither applying migrations nor restarting the live API was performed by the implementation checks.

From either repository, invoke the Emergent package script:

Terminal window
bun run --cwd /home/anton/dev/emergent/emergent podium:publish --help
bun run --cwd /home/anton/dev/emergent/emergent podium:publish prepare \
--root /home/anton/teaching/yxnu \
--runsheet courses/oral-english-1/content/week13/class-26-3.runsheet.yaml
bun run --cwd /home/anton/dev/emergent/emergent podium:publish prepare \
--root /home/anton/teaching/yxnu \
--runsheet english-corner/events/2026-11-quiz-night/runsheet.yaml

Preparation preserves the actual Markdown, run-sheet, referenced plan and resolved theme text. It parses Slides/cues, maps Plan segments and validates slide ranges. Media identities use SHA-256 of bytes, not filename alone. Missing or unsupported remote assets stop preparation before uploading. Course CSS symlinks are resolved to bytes, so a retained edition does not depend on an external link.

--theme selects a local CSS file explicitly. --asset-root permits an additional trusted media directory when the kit uses a symlink into sibling resources. It is repeatable; only authorize roots needed by the selected presentation. --output can write a new preparation JSON file; use a private path under tmp/agents/ for development artifacts. publish --dry-run also performs local preparation only.

The two examples are selected source packs, not automatic delivery clearance: Oral’s pending homework notices remain the teaching session’s responsibility, and Quiz Night’s actual date must be confirmed there. Never change source dates merely to make a target Meeting match.

Use the actual private token-file path and IDs returned by the API:

Terminal window
bun run --cwd /home/anton/dev/emergent/emergent podium:publish list-offerings \
--api-url https://sb.loc.emergent-english.com/functions/v1 \
--token-file /ABSOLUTE/PRIVATE/session-token.txt
bun run --cwd /home/anton/dev/emergent/emergent podium:publish list-meetings \
--offering OFFERING_UUID \
--api-url https://sb.loc.emergent-english.com/functions/v1 \
--token-file /ABSOLUTE/PRIVATE/session-token.txt
bun run --cwd /home/anton/dev/emergent/emergent podium:publish inspect \
--meeting MEETING_UUID \
--api-url https://sb.loc.emergent-english.com/functions/v1 \
--token-file /ABSOLUTE/PRIVATE/session-token.txt

Check the Offering, date, time and current publication. A target with unknown existing authored material is a conflict, not an invitation to adopt or replace it silently. The publisher checks the run-sheet date and clock times against the selected Meeting before staging media. If a legacy/manual Meeting has no recorded timezone, pass --timezone Asia/Shanghai explicitly for these YXNU examples; do not change source dates or clock times to bypass a mismatch. The same Operations appear in the existing Streamable HTTP MCP server at https://sb.loc.emergent-english.com/functions/v1/mcp; connect through the host agent’s own MCP configuration with a person-bound token. The repository’s Mantine MCP entry is separate and does not connect Emergent automatically.

Terminal window
bun run --cwd /home/anton/dev/emergent/emergent podium:publish publish \
--root /home/anton/teaching/yxnu \
--runsheet courses/oral-english-1/content/week13/class-26-3.runsheet.yaml \
--meeting MEETING_UUID \
--api-url https://sb.loc.emergent-english.com/functions/v1 \
--token-file /ABSOLUTE/PRIVATE/session-token.txt \
--receipt /home/anton/dev/emergent/emergent/tmp/agents/podium/oral-26-3.receipt.json

Use a distinct receipt for each target/source/API combination, and retain it across retries. The command stages missing media through the existing upload and Content placement APIs. Only the final podium.publish Operation selects the complete Deck and Plan. A failed staging step leaves the previous active presentation usable.

A changed publication creates a fresh Deck and retained complete edition. An identical publication returns unchanged. The server stores the source texts, authored Deck, Plan and verified immutable media identities; previous Plan contents remain inspectable after the live Plan changes. Media bytes remain in the normal product storage. The receipt records staged effects and the final publication identity without tokens.

Publishing refuses past/started Meetings and recorded runtime Checkpoints. This also protects their material through the ordinary Deck/Slide/Plan authoring Operations. Do not alter delivered material by changing IDs, source keys or local dates.

  • Unexpected native edits stop publication. Inspect them and reconcile into the local source or obtain Anton’s explicit decision. Only then use --reconciled-state with the exact inspected state hash. This acknowledges that specific state; it does not bypass source ownership, concurrent changes or delivered-material preservation.
  • A lost final response reuses the retained publication UUID and exact request on the next invocation. It does not create another edition or restore an older edition over a newer one. Keep the receipt instead of starting a fresh attempt blindly.
  • An uncertain upload can already have created Content. The command stops with retained evidence rather than uploading again. Inspect/reconcile that effect before continuing.
  • A receipt lock indicates another publisher or an interrupted process. Confirm that process has ended and inspect the receipt before removing a stale lock. Never delete receipts or locks merely to make an error disappear.

Open the selected Offering in the teacher portal, choose its Meeting and launch Podium/Audience. Inspect actual audience content, cues, slide navigation, timings and media playback against the local presentation. Retain the teaching repository’s independent audience-review requirements. API and unit checks do not establish teaching clearance or live delivery.

Audio and video have Presenter controls with a seekable timeline, elapsed/total time, five-second jumps and playback-speed presets. Video also appears inline on the Audience slide with native controls, leaving its teaching text visible. Normal size follows the YXNU placement; Large expands it to 75% of the fitted slide width. Both sizes can be selected from the Presenter or Audience. Use the Audience video’s fullscreen control for native fullscreen; exiting it, stopping or reaching the end restores the normal slide layout. Resizing keeps the same media element and playback position.

Use the separate Student Slide PDF workflow after teaching to select/reorder Slides and retain a downloadable student copy. It preserves the delivered Deck and does not upload to Xuexitong automatically.

Keep the local kit available during the first audience trials. English Corner starts with slides, timing and media, without requiring attendee identities. Exact theme matching, ad hoc picker, edition-history UI and broader authoring migration are later work. Offline-first consumption inside Emergent is a separate subsequent milestone, including offline reopening and switching prepared Meetings; it does not gate the first connected audience trial.

The canonical publish-podium skill describes this workflow for the other Codex session. Install it as /home/anton/teaching/yxnu/.agents/skills/publish-podium pointing at the canonical directory. Preserve existing skills and the teaching repository’s instructions. Reload skill discovery in that session if it has already cached the available skills.