oficina / slides Public

Docs: the presenter window, steps and the talk's parts

AGENTS.md says the presenter window draws live slides and takes the font
gate, what the presenter bundle drives, and how position, presses and
ForReaders work. docs/api.md says only the present endpoint mints a token
on every call, and that parked slides are left out of the talk.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev e13978c817c2e628553b81be5e97b3c868fddb52 parent fa0f6b8
2 files changed, +47 −10
  • AGENTS.md +36 −7
  • docs/api.md +11 −3
diff --git a/AGENTS.md b/AGENTS.md
index fe19780..f716142 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -119,8 +119,9 @@ seeded on first sign-in — and comes back out as a PDF.
`thumbs.go`): every slide measured into a paint list with the same
embedded Liberation faces the browser sets it in, written as an SVG,
and served as `{surface}/slides/{id}.svg` from all four capabilities.
- The editor strip, the presenter's next-slide and the remote are that
- picture.
+ The editor strip and the remote are that picture. The presenter
+ window is not: it draws live slides (see the last section); only
+ sessions begun before positions keep the pictures.
- **PDF export** (`export.go`, `exports.go`, `pdfcore/`, `core/pdf/`):
`POST /d/{sqid}/export` starts a rastrillo job, the status page polls
itself (and works with scripts off), and the file comes back from
@@ -721,9 +722,11 @@ Docs' AGENTS.md fonts section for the reasoning behind each rule.
`data-slides-fonts="pending"`, which `slides.css` answers by hiding
every slide, with a 6 s fail-safe), and the gate
(`fixtures/fonts-gate.mjs`, a module). The server never renders the
- hold. The presenter view and the remote show slides as SVG pictures
- and notes in the chrome's face, so they carry no gate and fetch no
- font.
+ hold. The presenter window (`presenter_window.go`) draws live slides
+ at 1920×1080, scaled, so it takes the gate like the viewer. The
+ remote, and the presenter view of a session begun before positions,
+ still show SVG pictures and notes in the chrome's face, so they carry
+ no gate and fetch no font.
- **The gate**: waits for the needed families until 2.5 s from
navigation start, commits any family still missing to its system
fallback for the visit (it never joins `document.fonts`, so it cannot
@@ -854,8 +857,11 @@ Docs' AGENTS.md fonts section for the reasoning behind each rule.
- **Slides change in place.** A page load hides its slide until the
gate has confirmed the faces — an empty stage between two slides. So
the viewer and `?present=1` (`fixtures/viewer-nav.mjs`, in the gate
- bundle) and the projector (`static/present.js`: a watcher's links,
- the presenter's buttons) fetch the next page, make its families
+ bundle) and the projector (`static/present.js`: a watcher's links; follow,
+ remote and sessions begun before positions only. The presenter window
+ and the slide windows of a positional session are driven by the
+ `presenter` bundle instead: `presenter-entry.mjs` with `talk-*.mjs`
+ and `presenter-*.mjs`) fetch the next page, make its families
ready, decode its pictures and then swap it in one task, moving the
address with `pushState`; Back and Forward do the same. The current
slide stays until the next is complete, never a blank. The links and
@@ -1067,3 +1073,26 @@ makes unnecessary. Nothing was lost. Nothing about the arrangement would
have said so if it had been, and by then the same feature existed twice,
once on each side of a rename, because the two sessions had branched
from different starting points.
+
+## Steps, the talk and the presenter's position
+
+- **The document** says what arrives and what is in the talk: a block's
+ `step` (a number; 1.5 sits between 1 and 2; none means there when the
+ slide is) and, on a list, `items: each`; a slide's `talk` (`full`
+ shows only in the full version, `parked` is left out of the talk); the
+ deck meta's `arrive`. Core, fixtures and Go move together, with shared
+ vectors. In `deck`: `presses.go` (`Presses`, `ArrivalOf`, `NoteParts`)
+ and `talk.go` (`TalkOrder`, `Position`, `Advance`, `SettleNear`,
+ `ForReaders`); the JS twins are `fixtures/presses.mjs` and `moves.mjs`.
+- **Readers.** `ForReaders()` is called at each reader boundary, so a
+ parked slide reaches no share, follow or presenting reader. `/d/` and
+ the API stay complete.
+- **Presenting** keeps an absolute position on `Presentation` (`SlideID`,
+ `Step`, `Mode`, `Seq`, `Positional`, `TimerAt`). A press carries an id,
+ and each window a link id, each with a rising counter
+ (`presentation_presses`, `presentation_links`), so a repeated or stale
+ press is answered, never applied twice. `POST /p/{session}/pair` pairs
+ a phone; `GET /p/{session}/talk` reads the talk's order.
+- **The editor** has the Appears row and the box-menu rows, press
+ numerals, a play-through control, the strip's count, dashed outline
+ and slim bar, the talk toggles, and Deck settings' "How things arrive".
diff --git a/docs/api.md b/docs/api.md
index 154d40c..7a513e1 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -322,7 +322,10 @@ curl -X POST -H "Authorization: Bearer $SLIDES_TOKEN" \
Call it again on the same deck and you get the same session back, so a
projector already showing `present_url` keeps showing the same talk.
What you do get fresh each time is the remote token, which means the
-previous `notes_url` and `remote_url` stop working.
+previous `notes_url` and `remote_url` stop working. This endpoint is the
+only way into a talk that mints a token on every call. Pressing Present
+in a browser, or reopening the presenter window, mints nothing; a phone
+is paired only when the presenter asks for it (`POST /p/{session}/pair`).
Treat the three URLs differently. `present_url` is safe to put on a
screen in front of a room — it only watches. `notes_url` and
@@ -351,8 +354,13 @@ started the talk, and for your session that is the agent, not the
person opening the page — so `notes_url` renders the talk and the
controls, and no code and no QR. Pass on what you were given: the
`code` for somebody to type into `/r/`, or `remote_url` outright. It is
-not recoverable afterwards, and calling present again mints a fresh
-token, which retires the URLs you are holding.
+not recoverable afterwards, and calling this endpoint again mints a
+fresh token, which retires the URLs you are holding.
+
+The talk is the deck minus its parked slides. Parked slides (`talk:
+"parked"`) are in the document and in everything you read here, but they
+are never shown to a share link, a follower or the presenting screens;
+slides marked `full` show only in the full version of the talk.
---