oficina / slides Public

Plan: steps, core and full, and the presenter window

Sixteen tasks in the spec's build order, starting with the copy gate.
Records eight calls the spec left open for Paul to check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev c706e1403fae548ba00ddf1cdab4d7deaf2dc8b2 parent 7ea90ad
1 file changed, +838 −0
  • docs/superpowers/plans/2026-11-18-steps-and-presenter.md +838 −0
diff --git a/docs/superpowers/plans/2026-11-18-steps-and-presenter.md b/docs/superpowers/plans/2026-11-18-steps-and-presenter.md
new file mode 100644
index 0000000..2a91328
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-18-steps-and-presenter.md
@@ -0,0 +1,838 @@
+# Steps, core and full, and the presenter: Implementation Plan
+
+> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
+
+**Goal:** A box can arrive on a press, a slide can be in the talk, full only or parked, and the HalfStack presenter window runs in Slides, never scrolls and answers every press.
+
+**Architecture:** Four optional document fields travel on the existing ops. Pure functions (`deck.Presses`, `deck.TalkOrder`, `deck.Advance`) exist in Go and JS and are held together by shared vectors. The server stores an absolute position and orders presses. A new `presenter` bundle loads the whole talk into memory so the window it is pressed in moves at once.
+
+**Tech Stack:** Go (rastrillo, chi, GORM), Rust/wasm CRDT core, Yjs, esbuild bundles, chromedp browser tests, estilo.
+
+**Spec:** `docs/superpowers/specs/2026-11-18-steps-and-presenter-design.md`. Mockup: `docs/superpowers/specs/2026-11-17-presenter-mockup.html`. Where they disagree, the spec wins.
+
+## Global Constraints
+
+- Every existing deck renders byte for byte as it does today, at every task.
+- The window never scrolls, from 2560×1440 to 320×568. Only the notes and the slide picker scroll, inside themselves.
+- A press never goes unanswered: the step count changes on every press of a slide with steps, and the position on every press of a slide without them.
+- A press is never lost or repeated. A clicker pressed twice moves twice.
+- A parked slide reaches nobody holding only a share or follow link.
+- Every user-facing string is a catalog key. **No new string is written into any file before Paul has reviewed it (Task 1).** Approved text is applied verbatim.
+- Every screen but the editor works with scripts off. Arranging and Fit are enhancements (S20).
+- 320px reflow, WCAG 2.2 AA, lucide icons, no flash of an unfinished state. The stage is not a second renderer.
+- `editor.css` holds to the published sizes (`TestQuieterCSSUsesTokens`). `fixtures/*.mjs` files stay under 300 lines.
+- Shared machine: bind only to `127.0.0.1` or `100.119.180.57`, leave `GOCACHE` alone, scratch in `$TMPDIR`, stop what you start.
+- Commit subjects under 80 characters, then a blank line and a body, ending `Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>`.
+- Run targeted tests while iterating. The full browser suite runs once, in Task 16.
+
+## Review Focus
+
+Each is pinned by a named test in the task that owns the code.
+
+1. **Presses faster than the network.** Three quick presses end three steps on, and the window never jumps back when the first answer arrives. Task 10, `TestPresenterFastPressesNeverJumpBack`.
+2. **The deck is edited during the talk.** The current slide is deleted or parked, or its steps shrink. The window lands on the next slide in the talk, or clamps the step. Task 3 vectors, Task 10 `TestPresenterTakesAnEditAtTheNextSlide`.
+3. **Nothing left to present.** Every slide is parked, or the deck is empty. Every surface shows its empty state and every press answers without error. Task 5 `TestCommandsOnAnEmptyTalk`, Task 7 `TestEveryParkedDeckIsEmptyToReaders`.
+4. **What the slide window may receive.** Its talk payload carries no notes, and no payload carries a parked slide. Task 8, `TestTalkPayloadWithholdsNotesAndParked`.
+5. **A held key or a resubmitted form.** Key repeat from a held key moves once. Reloading after a scripts-off press does not press again. Task 10 `TestPresenterIgnoresKeyRepeat`, Task 6 `TestAResubmittedPressCountsOnce`.
+
+## Calls this plan makes
+
+The spec leaves these open. Each is reversible, and Paul can overrule any at plan review.
+
+| # | Call | Why |
+|---|---|---|
+| P1 | The talk opens in **core** mode. The mode is drawn only when the deck has a full-only slide. | With no full-only slide the two modes are the same talk. |
+| P2 | Pressing next on the last step of the last slide moves nothing and pulses the position; the Next panel already says *End*. | Anti-goal: no press without an answer. |
+| P3 | The phone remote shows the finished slide's picture plus the step count, not a partly built picture. | Pictures are drawn without steps; the count is the answer to the press. |
+| P4 | With scripts off, the picker is a page of one-button forms styled as links. | Moving the talk changes state, so it cannot be a GET. |
+| P5 | *Pair a phone* opens in its own tab. | Navigating the presenter window would lose the talk held in memory. |
+| P6 | `POST /api/v1/.../present` keeps returning a fresh token. | An agent asking for one is asking to pair. |
+| P7 | Resetting the timer shows 0:00 and it runs again from the next press. | Same rule as the first press (§5.5). |
+| P8 | A list's blank items, and a columns box with nothing visible inside, make no press. | They reveal nothing visible (§2). |
+
+---
+
+## File map
+
+**Created**
+
+| File | Holds |
+|---|---|
+| `internal/slides/deck/presses.go` | `Presses`, `ArrivalOf`, `NoteParts` input rules |
+| `internal/slides/deck/talk.go` | `Mode`, `Position`, `Move`, `TalkOrder`, `Advance`, `Settle`, `ForReaders` |
+| `fixtures/presses.mjs`, `fixtures/moves.mjs` | The JS twins |
+| `fixtures/vectors/presses.json`, `fixtures/vectors/moves.json` | Hand-written vectors both sides read |
+| `internal/slides/presenting_position.go` | Press handling on the server |
+| `internal/slides/presenting_talk.go` | `GET /p/{session}/talk` |
+| `internal/slides/presenter_window.go` | The new presenter page and its cookie |
+| `internal/slides/templates/presenter.html`, `presenter_pick.html`, `present_pair.html` | Window, scripts-off picker, pairing tab |
+| `internal/slides/static/presenter.css` | The window's styles, copied from the mockup |
+| `fixtures/presenter-entry.mjs` | Bundle entry |
+| `fixtures/talk-store.mjs` | Loads and holds the talk |
+| `fixtures/talk-link.mjs` | Sending presses, reconciling, offline |
+| `fixtures/presenter-window.mjs`, `fixtures/slide-window.mjs` | The two windows |
+| `fixtures/presenter-keys.mjs`, `presenter-notes.mjs`, `presenter-picker.mjs`, `presenter-arrange.mjs` | One concern each |
+| `fixtures/inspector-steps.mjs`, `box-menu-appears.mjs`, `step-marks.mjs`, `play-through.mjs` | Editor controls |
+
+**Modified:** `core/src/{schema,view,ops}.rs`, `core/tests/ops.rs`, `fixtures/{ops-parse,ops-model,ops-apply,view,build-bundles,strip,commands,inspector,inspector-block,inspector-ops,box-menu}.mjs`, `fixtures/data/*.json`, `internal/slides/core/testdata/slides_core.wasm` and `.stamp`, `internal/slides/deck/deck.go`, `internal/slides/render/render.go`, `internal/slides/static/{slides.css,present.js,editor.css}`, `internal/slides/{presentation,models,viewer,share,export,exports,thumbs,api,decks,editor,app,assets_embed,agent_edit_contract,assist_ops,assist_prompt}.go`, `internal/slides/templates/{editor,remote,present,present_controls}.html`, `internal/slides/locales/en.toml`, `docs/api.md`, `AGENTS.md`.
+
+---
+
+### Task 1: Set up the branch and pass the copy gate
+
+**Files:** Modify `internal/slides/locales/en.toml`.
+
+No other task writes a user-facing word until this one is done.
+
+- [ ] **Step 1: Start the working branch from current main**
+
+```bash
+cd ~/amadan.net/oficina/slides-design-presenter-window
+git fetch origin && git rebase origin/main
+git switch -c feat/steps-and-presenter
+cd fixtures && npm ci
+```
+
+Expected: rebase clean, `fixtures/node_modules` present.
+
+- [ ] **Step 2: Draft every string below and run the `copy-review` skill**
+
+Words the spec fixes are the starting draft. Rows marked *draft* need words written for the review. The reviewer sees each in context.
+
+| Key (prefix `slides.`) | Where it shows | Starting words |
+|---|---|---|
+| `editor.appears` | Box card and menu | *Appears* (§4) |
+| `editor.appears.slide` / `.press` / `.each` / `.after` | Options | *With the slide*, *On a press*, *Item by item*, *After…* |
+| `editor.presses.one` / `.many` | Play-through control | *3 presses* (§4), singular draft |
+| `editor.presses.exit` | Control's label while playing | draft |
+| `editor.strip.presses.one` / `.many` | Strip count, for assistive technology | draft |
+| `editor.talk.full` / `.parked` | Slide menus | *Skip in the short version*, *Park* |
+| `editor.talk.parked.label` | Slim bar, for assistive technology | draft |
+| `editor.arrive` / `.appear` / `.fade` / `.rise` | Deck settings | *How things arrive*, others draft |
+| `present.step.count` | Step count | *step 2 of 4* |
+| `present.next.step` / `.slide` / `.end` | Next panel | *Next step*, *Next slide*, *End* |
+| `present.black` | Header flag | *BLACK* |
+| `present.mode.core` / `.full` | Header | draft |
+| `present.menu.pair` / `.window` / `.mode` / `.arrange` / `.back` / `.end` | ⋯ menu | §5.6 words |
+| `present.arrange.hint` / `.reset` / `.done` | Arrange bar | mockup words, *Reset*, draft |
+| `present.notes.fit` / `.scroll` / `.smaller` / `.larger` | Icon labels | draft |
+| `present.notes.none` | Empty notes | reuse `slides.notes.none` |
+| `present.pick.title` / `.field` / `.none` / `.full` | Picker | draft |
+| `present.loading` | Header while the talk loads | draft |
+| `present.offline` / `present.waiting` | Network dropped, pressing and other windows | draft |
+| `present.timer.reset` / `present.more` | Control labels | draft |
+| `present.empty.title` / `.body` | No slides in the talk | draft |
+| `present.pair.body` | Replaces today's sentence, which describes the old behaviour | draft |
+
+- [ ] **Step 3: Apply the approved words verbatim to `en.toml`**
+
+Run: `go test ./internal/slides/ -count=1`
+Expected: PASS. If a test refuses keys nothing uses yet, keep the approved words beside the plan and add each key in the task that first uses it.
+
+- [ ] **Step 4: Commit**
+
+```bash
+git add internal/slides/locales/en.toml
+git commit -m "Slides: the words for steps and the presenter window"
+```
+
+---
+
+### Task 2: The document's four fields
+
+**Files:**
+- Modify: `core/src/schema.rs`, `core/src/view.rs`, `core/src/ops.rs`, `core/tests/ops.rs`
+- Modify: `fixtures/ops-parse.mjs`, `ops-model.mjs`, `ops-apply.mjs`, `view.mjs`, `generate-random-decks.mjs`, `fixtures/data/canvas.json`
+- Modify: `internal/slides/deck/deck.go`, `agent_edit_contract.go`, `assist_ops.go`, `assist_prompt.go`, `docs/api.md`
+- Regenerate: `fixtures/vectors/*`, `internal/slides/core/testdata/slides_core.wasm`, `.stamp`
+
+**Interfaces:**
+- Produces view keys, **omitted when absent**: block `step` (number above 0), block `items` (`"each"` or `"together"`), slide `talk` (`"full"` or `"parked"`), meta `arrive` (`"appear"`, `"fade"` or `"rise"`).
+- Produces ops: `set_block{step: number|null, items: string|null}`, `set_slide{talk: string|null}`, `set_meta{arrive: string|null}`. `null` removes the key.
+- Produces Go: `deck.Block.Step float64`, `deck.Block.Items string`, `deck.Slide.Talk string`, `deck.Meta.Arrive string`.
+
+- [ ] **Step 1: Write the failing Rust tests in `core/tests/ops.rs`**
+
+`set_block_step_round_trips_and_clears`, `set_block_refuses_a_step_of_zero_negative_or_non_finite`, `set_block_refuses_items_on_a_non_list`, `set_slide_talk_round_trips_and_clears`, `set_slide_refuses_an_unknown_talk`, `set_meta_arrive_round_trips_and_clears`, and `a_deck_without_the_fields_has_no_such_keys_in_its_view`. A fractional step such as `1.5` round-trips exactly.
+
+- [ ] **Step 2: Run them to see them fail**
+
+Run: `cd core && cargo test --test ops step talk arrive`
+Expected: FAIL, unknown fields.
+
+- [ ] **Step 3: Implement the fields in the core**
+
+In `schema.rs` add `ITEMS`, `TALKS`, `ARRIVALS`. In `ops.rs` use `#[serde(default, deserialize_with = "nullable")] Option<Option<_>>`, as `accent` does. In `view.rs` use `skip_serializing_if = "Option::is_none"` and drop a wrong-typed value, as the view does for other leaves. `duplicate_slide` copies these without change.
+
+- [ ] **Step 4: Mirror it in the fixtures and add vectors**
+
+Add the same parse, model check, apply and view behaviour. Add one `step`, `items`, `talk` and `arrive` to a **new** slide appended to `fixtures/data/canvas.json`. Add JS cases to `fixtures/ops.test.mjs`.
+
+Run: `cd fixtures && node generate.mjs && node --test ops.test.mjs`
+Expected: PASS. `git diff --stat fixtures/vectors` shows only `canvas.*`.
+
+- [ ] **Step 5: Teach the Go side**
+
+`deck.Block.UnmarshalJSON` keeps `step` fractional. Add the keys to `slideAgentEditVariants()`, the allowed keys in `assist_ops.go`, and `docs/api.md`. Replace the sentence at `assist_prompt.go:68` that says blocks cannot appear one at a time.
+
+- [ ] **Step 6: Rebuild the wasm and run the vectors**
+
+```bash
+./scripts/build-wasm.sh
+cp core/target/wasm32-unknown-unknown/release/slides_core.wasm internal/slides/core/testdata/slides_core.wasm
+go test ./internal/slides/core ./internal/slides/deck -count=1
+```
+
+Expected: PASS, including `TestVectorsViewAsTheJSSideViewsThem` and `TestVectorsOpsAgreeWithTheJSOps`.
+
+- [ ] **Step 7: Commit, then run the gate**
+
+```bash
+git add -A core fixtures internal docs
+git commit -m "Document: step, items, talk and arrive, on the existing ops"
+./.amadan/ci.d/10-gate
+```
+
+Expected: gate passes.
+
+---
+
+### Task 3: Presses, the talk's order and moves
+
+**Files:**
+- Create: `internal/slides/deck/presses.go`, `talk.go`, `presses_test.go`, `talk_test.go`
+- Create: `fixtures/presses.mjs`, `moves.mjs`, `presses.test.mjs`, `moves.test.mjs`
+- Create: `fixtures/vectors/presses.json`, `fixtures/vectors/moves.json`
+
+**Interfaces (produced):**
+
+```go
+// presses.go
+type Reveal struct {
+ Block string `json:"block"`
+ Item int `json:"item"` // -1 is the whole box
+}
+type Press []Reveal
+func Presses(s Slide) []Press // element 0 is press 1; press 0 is the arrival
+func ArrivalOf(s Slide) map[Reveal]int // press number of everything arriving on a press
+
+// talk.go
+type Mode string
+const (ModeCore Mode = "core"; ModeFull Mode = "full")
+type Position struct {
+ Slide string `json:"slide"` // slide id
+ Step int `json:"step"`
+ Mode Mode `json:"mode"`
+ Black bool `json:"black"`
+}
+type Move struct {
+ Op string `json:"op"` // next, back, first, last, goto, mode, black
+ Slide string `json:"slide,omitempty"`
+}
+func TalkOrder(d *Deck, m Mode) []int // deck indices
+func Start(d *Deck) Position
+func Advance(d *Deck, p Position, mv Move) Position
+func Settle(d *Deck, p Position) Position
+func (d *Deck) ForReaders() *Deck // a copy without parked slides
+```
+
+JS: `presses(slide) -> [[{block,item}]]`, `talkOrder(view, mode)`, `start(view)`, `advance(view, pos, move)`, `settle(view, pos)`, with the same JSON shapes.
+
+**The rules, which the vectors pin:**
+
+- Distinct `step` values ascending are the presses. Equal values arrive together.
+- A box inside a columns box takes the later of its own value and its container's.
+- An `each` list at value `v` takes one press per non-blank item, starting at `v`. Everything else at `v` arrives with its first item. Two `each` lists at the same value pair up by index. The next value starts after the longest.
+- `items: each` with no `step` arrives with the slide.
+- A box that shows nothing makes no press: an empty list, a blank text box, a columns box with no visible child.
+- `next` at step `k` below the count goes to `k+1`. At the count it goes to the next slide of the order at step 0. At the end of the talk it stays.
+- `back` at step above 0 goes to `k-1`. At step 0 it goes to the previous slide **fully built**. At the start it stays.
+- `first`, `last` and `goto` land at step 0. `goto` a full-only slide in core mode switches to full. `goto` a parked or missing slide changes nothing.
+- `mode` flips core and full and keeps the position. A position on a slide outside the order moves relative to its place in the deck.
+- Every `next`, `back`, `first`, `last` and `goto` lifts black. `black` toggles it.
+- `Settle`: a missing or parked slide becomes the next slide of the order after its old place, or the last. A step above the count clamps to the count. An empty talk gives `Position{Mode: p.Mode}`.
+
+- [ ] **Step 1: Write the vectors**
+
+`presses.json` is `[{name, slide, presses}]`, with at least: no steps; ties; `1, 1.5, 2` midpoints; `each`; `each` with a blank item; empty list; two `each` lists tied; child later than container; child earlier than container; empty columns.
+
+`moves.json` is `[{name, deck, from, move, to}]`, with at least: through a slide; across slides; back landing fully built; both ends of the talk; a full-only slide skipped in core and shown in full; parked skipped in both; `goto` full-only from core; `goto` parked; mode flip while on a full-only slide; any press lifting black; every `Settle` case above; an empty talk.
+
+- [ ] **Step 2: Write the failing tests on both sides**
+
+`TestPressesVectors` and `TestMovesVectors` in Go, `presses vectors` and `moves vectors` in `node --test`. All read the same files.
+
+Run: `go test ./internal/slides/deck -run 'Presses|Moves' -count=1`
+Expected: FAIL, undefined.
+
+- [ ] **Step 3: Implement both sides, then run**
+
+```bash
+go test ./internal/slides/deck -count=1
+cd fixtures && node --test presses.test.mjs moves.test.mjs
+```
+
+Expected: PASS on both.
+
+- [ ] **Step 4: Commit**
+
+```bash
+git add internal/slides/deck fixtures
+git commit -m "Deck: presses, the talk's order and moves, shared by Go and JS"
+```
+
+---
+
+### Task 4: The renderer draws a slide at a press
+
+**Files:**
+- Modify: `internal/slides/render/render.go`, `internal/slides/static/slides.css`
+- Test: `internal/slides/render/reveal_test.go`, new goldens `testdata/steps-{at0,at1}-desktop.golden.html`
+
+**Interfaces:**
+- Consumes: `deck.ArrivalOf`.
+- Produces: `render.Options.Reveal *int`. `nil` is fully built with **no new attributes**. A value is that press.
+- Produces the markup: `data-press="n"` on an arriving box or `<li>`; `data-waiting` when `n` is later than the press; `data-arrive="fade|rise"` on the `<section>` only when `Reveal` is set and the deck's setting is not `appear`.
+- Produces the CSS: `[data-waiting]{visibility:hidden}`. `[data-arriving]` runs the deck's effect and is set only by scripts, never by the server. Reduced motion turns the effect off.
+
+- [ ] **Step 1: Write the failing tests**
+
+`TestRevealNilChangesNothing` compares every existing golden. `TestRevealMarksWaitingBoxes`. `TestRevealEachListMarksItems`. `TestWaitingBoxIsHiddenAndKeepsItsSpace` (`-tags browser`) asserts the slide's box positions are equal at press 0 and press 1, `visibility` is `hidden`, and the box is absent from the accessibility tree and cannot be focused.
+
+Run: `go test ./internal/slides/render -run Reveal -count=1`
+Expected: FAIL.
+
+- [ ] **Step 2: Implement, update only the new goldens, run**
+
+```bash
+go test ./internal/slides/render -update -run 'Reveal'
+go test ./internal/slides/render -count=1
+git status --short internal/slides/render/testdata
+```
+
+Expected: PASS, and only the new golden files appear.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add internal/slides/render internal/slides/static/slides.css
+git commit -m "Render: a slide can be drawn at a press, and nothing else changes"
+```
+
+---
+
+### Task 5: The server holds an absolute position and orders presses
+
+**Files:**
+- Create: `internal/slides/presenting_position.go`, `internal/slidestest/present_position_test.go`
+- Modify: `internal/slides/models.go`, `presentation.go`, `present/hub.go`, `app.go`, `internal/slidestest/present_test.go`
+- Create by generator: `internal/slides/migrations/0009_*.sql`
+
+**Interfaces:**
+
+```go
+// models.go: added to Presentation
+SlideID string
+Step int
+Mode string
+Seq int64
+Positional bool // false for sessions begun before this deploy
+TimerAt *time.Time
+
+type PresentationPress struct { // unique (PresentationID, PressID)
+ PresentationID int64
+ PressID string
+ CreatedAt time.Time
+}
+
+// present/hub.go: added to Event, each `omitempty`
+SlideID string `json:"slideId"`; Step int `json:"step"`; Mode string `json:"mode"`; Seq int64 `json:"seq"`
+
+// presenting_position.go
+type pressCommand struct { Op, Slide, Press, AtSlide, AtMode string; AtStep int }
+type positionAnswer struct {
+ Slide string `json:"slide"`; Step int `json:"step"`; Mode string `json:"mode"`
+ Black bool `json:"black"`; Seq int64 `json:"seq"`; DeckSeq int64 `json:"deckSeq"`
+}
+func (a *app) mayDrive(r *http.Request, p Presentation, token string) bool
+func (a *app) applyPress(r *http.Request, p Presentation, cmd pressCommand) (positionAnswer, error)
+```
+
+**Behaviour:**
+- `POST /p/{session}/command` takes `op` (`next`, `prev`, `goto`, `first`, `last`, `blackout`, `mode`, `timer-reset`, `resume`, `end`), `press`, `slide`, `at_slide`, `at_step`, `at_mode`. Sessions with `Positional` false keep today's code path.
+- `press` matches `^[A-Za-z0-9_-]{16,43}$`. A press id already seen answers the current position, publishes nothing and does not advance `Seq`. Only the newest 64 ids per session are kept.
+- Each press runs in one transaction: lock the row, apply `deck.Settle` then `deck.Advance`, bump `Seq`, publish.
+- Command `prev` is the move `back`, and `blackout` is the move `black`. `Presentation.Slide` stays in step with `SlideID`, so `Event.Slide` remains the slide's number.
+- `resume` sets the position to `at_*` after `deck.Settle`. It is how a window that moved offline wins.
+- The first move sets `TimerAt` if it is unset. `timer-reset` clears it.
+- `Accept: application/json` gets `positionAnswer`. Otherwise the 303 and 204 answers stay.
+- `mayDrive`: a valid remote token, or `presenterActor(r) == p.Actor` and not empty.
+- `startPresenting` no longer replaces the token on an existing session, and redirects to `/p/{sqid}` (S12). `POST /p/{session}/pair` is Task 13.
+- New sessions set `Positional: true` and `Position` from `deck.Start`.
+
+- [ ] **Step 1: Write the failing tests**
+
+`TestLaptopAndPhoneCrossingPressesBothCount` (two presses from step 2 of a four-step slide end at step 4). `TestAPressSentTwiceCountsOnce`. `TestResumeTakesTheWindowsPosition`. `TestPresentAgainLeavesThePhonePaired`. `TestARevokedTokenDrivesNothing`. `TestTheSignedInPresenterMayDriveWithoutAToken`. `TestSomeoneElseSignedInMayNotDrive`. `TestACrossSitePressIsRefused` (signed-in cookie, `Sec-Fetch-Site: cross-site`, expect 403). `TestCommandsOnAnEmptyTalk`. `TestASessionFromBeforeTheDeployKeepsItsIndex` (a row with `Positional: false` moves by index). `TestTheFirstPressStartsTheTimer`.
+
+Update the `startPresenting` helper in `present_test.go`: it no longer finds a token in the redirect, so it mints one through the row until Task 13 supplies the route.
+
+Run: `go test ./internal/slidestest -run 'Press|Present|Command|Token|Drive|Timer|Session' -count=1`
+Expected: the new tests FAIL.
+
+- [ ] **Step 2: Change the models and generate the migration**
+
+Run: `go run amadan.net/rastrillo/rastrillo/cmd/rastrillo migration generate`, read the SQL, then `make migration-check`.
+Expected: one new file `0009_*.sql`; the check passes.
+
+- [ ] **Step 3: Implement, then run**
+
+Run: `go test ./internal/slidestest ./internal/slides/present -count=1`
+Expected: PASS.
+
+- [ ] **Step 4: Commit**
+
+```bash
+git add internal
+git commit -m "Presenting: an absolute position, ordered by the server"
+```
+
+---
+
+### Task 6: Steps on the slide window, the follow link and the remote
+
+**Files:**
+- Modify: `internal/slides/presentation.go`, `static/present.js`, `templates/present.html`, `present_controls.html`, `remote.html`
+- Test: `internal/slidestest/present_steps_test.go`, `present_steps_browser_test.go`
+
+**Interfaces:**
+- Consumes: `render.Options.Reveal`, `positionAnswer`, the new `Event` fields.
+- Produces: `/p/{session}` and `/s/{token}?follow=1` accept `?slide=N&step=k&fragment=1`. Without them they draw the session's position. `N` counts from 1 through `TalkOrder(d, ModeFull)`, the same number as `talkSlide.Number`. The header's `31 / 105` counts through the current mode's order.
+- Produces: every control form carries a hidden `press` id rendered fresh with the page.
+- A step change in `present.js` applies in place: toggle `data-waiting` from `data-press`, and set `data-arriving` only on what has just arrived. A slide change swaps as today. The remote shows `present.step.count` under its position (P3).
+
+- [ ] **Step 1: Write the failing tests**
+
+HTTP: `TestScriptlessPressWalksEveryStep` (post `next` repeatedly, following redirects, and assert `data-waiting` shrinks by one press each time, then the slide changes). `TestAResubmittedPressCountsOnce` (repost the same form body). `TestFollowDrawsTheCurrentStep`. `TestRemoteSaysWhichStep`.
+
+Browser: `TestFollowRevealsInPlace` (the section element is the same node after a step change). `TestBackFromTheNextSlideLandsFullyBuilt`. `TestReducedMotionAppears`.
+
+Run: `go test ./internal/slidestest -run 'Scriptless|Resubmitted|FollowDraws|RemoteSays' -count=1`
+Expected: FAIL.
+
+- [ ] **Step 2: Implement, then run**
+
+Run: `go test -tags browser ./internal/slidestest -run 'Scriptless|Resubmitted|Follow|RemoteSays|BackFrom|ReducedMotion' -count=1`
+Expected: PASS.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add internal
+git commit -m "Presenting: steps on the slide window, follow link and remote"
+```
+
+---
+
+### Task 7: Full only and parked, everywhere readers look
+
+**Files:**
+- Modify: `internal/slides/viewer.go`, `share.go`, `export.go`, `exports.go`, `thumbs.go`, `presentation.go`, `decks.go`, `api.go`
+- Test: `internal/slidestest/talk_readers_test.go`
+
+**Interfaces:** Consumes `(*deck.Deck).ForReaders()` and `deck.TalkOrder`.
+
+Apply `ForReaders` at the boundary of: `renderViewer`, `deckNotes`, `Export` and its job, `followPresenter`, `renderSurface`, `presentedFor`, the deck-list cover in `deckGlance`, and the font families those pages load. In `serveThumb`, answer 404 for a parked slide on the `/s/` and `/p/` routes. The editor, `apiGetDeck`, `apiSlide` and agent reads stay complete, because they serve only people with access to the deck.
+
+- [ ] **Step 1: Write the failing tests**
+
+`TestAParkedSlideReachesNoReader` is table-driven: viewer, share link, `?slide=N` past the end, notes page, PDF page count, follow link, and the `/s/` and `/p/` thumbnails, each asserting the parked slide's marker text or id is absent or 404. `TestAFullOnlySlideShowsToReaders`. `TestTheEditorAndAPIStillDescribeAParkedSlide`. `TestEveryParkedDeckIsEmptyToReaders`. `TestACoverSkipsAParkedFirstSlide`.
+
+Run: `go test ./internal/slidestest -run 'Parked|FullOnly' -count=1`
+Expected: FAIL.
+
+- [ ] **Step 2: Implement, then run**
+
+Run: `go test ./internal/slidestest -count=1`
+Expected: PASS.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add internal
+git commit -m "Readers: a parked slide reaches nobody outside the deck"
+```
+
+---
+
+### Task 8: The talk, as one payload
+
+**Files:**
+- Create: `internal/slides/presenting_talk.go`, `internal/slidestest/present_talk_test.go`
+- Modify: `internal/slides/app.go`, `internal/slides/deck/presses.go`
+
+**Interfaces:**
+
+```go
+// deck/presses.go
+func NoteParts(t Text) []Text // split at paragraphs whose plain text is exactly "(Press.)"; those lines dropped
+
+// presenting_talk.go
+type talkSlide struct {
+ ID string `json:"id"`
+ Number int `json:"number"`
+ Title string `json:"title"`
+ Full bool `json:"full"`
+ Presses int `json:"presses"`
+ HTML string `json:"html"` // rendered with Reveal at 0
+ Assets []string `json:"assets"`
+ Thumb string `json:"thumb"`
+ Notes []string `json:"notes,omitempty"` // one HTML part per press section
+}
+type talkPayload struct {
+ DeckSeq int64 `json:"deckSeq"`
+ Arrive string `json:"arrive"`
+ Slides []talkSlide `json:"slides"`
+}
+```
+
+`GET /p/{session}/talk` lists every slide in `TalkOrder(d, ModeFull)`. It sends `ETag` from the deck's seq, answers 304 to a match, and is `no-store`. `Notes` is present only when `mayDrive` is true.
+
+- [ ] **Step 1: Write the failing tests**
+
+`TestTalkPayloadWithholdsNotesAndParked`. `TestTalkPayloadAnswersUnchanged` (304). `TestNotePartsSplitAtThePressLine`, covering no such line, a leading and a trailing `(Press.)`, marks inside the line, and `(press.)` in lowercase left as written.
+
+Run: `go test ./internal/slidestest ./internal/slides/deck -run 'TalkPayload|NoteParts' -count=1`
+Expected: FAIL.
+
+- [ ] **Step 2: Implement, then run**
+
+Run: same command. Expected: PASS.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add internal
+git commit -m "Presenting: the whole talk as one payload, notes for the presenter only"
+```
+
+---
+
+### Task 9: The presenter window, drawn by the server
+
+**Files:**
+- Create: `internal/slides/presenter_window.go`, `templates/presenter.html`, `templates/presenter_pick.html`, `static/presenter.css`
+- Test: `internal/slidestest/presenter_window_test.go`, `presenter_window_browser_test.go`
+- Modify: `internal/slides/presentation.go`, `internal/slidestest/fonts_browser_test.go`
+
+**Interfaces:**
+
+```go
+type presenterPrefs struct {
+ Notes string // "fit" or "scroll"
+ Size int // 16 to 48, even; default 24
+ Panels [3]panel // now, next, notes on a 12×12 grid
+}
+type panel struct{ X, Y, W, H int }
+func readPresenterPrefs(r *http.Request) presenterPrefs
+```
+
+- Cookie `slides-presenter`, value `fit.24.0,0,7,8;0,8,7,4;7,0,5,12`, path `/p`, a year, `SameSite=Lax`. Anything malformed, off the grid, under 2×2 or overlapping gives the defaults above.
+- `presenterNotes` serves `presenter.html` for `Positional` sessions and today's template otherwise. It answers 404 unless `mayDrive`.
+- The layout is the mockup's, under the mockup's ids renamed to `presenter-*` attributes: header (position, step count, mode, BLACK, timer, clock, ⋯), Now, Next with its label, Notes and tools. The window takes the font gate through `newFontGate`.
+- `html, body` are exactly the viewport with `overflow: hidden`. Below 720px wide or 560px tall the panels stack in fixed order and the arrangement is ignored.
+- The step count is absent on a slide with no steps. Notes parts render with the current part bright and the others dimmed (§10).
+- Scripts off: each control is a form, `/p/{session}/notes?slide=N&step=k` draws that state, and `GET /p/{session}/notes?pick=1` is the picker page (P4).
+
+- [ ] **Step 1: Write the failing tests**
+
+`TestPresenterNeverScrolls` measures at 2560×1440, 1920×1080, 1680×1050, 1440×900, 1280×720, 1024×768, 800×600, 768×1024, 390×844 and 320×568, on a slide with four steps and 400 words of notes, at every step. It asserts document `scrollHeight` and `scrollWidth` equal the viewport, and every panel lies inside it.
+
+`TestPresenterStepCountOnlyWithSteps`. `TestNextPanelNamesWhatComesNext` (*Next step* shows this slide one press on, *Next slide* the next slide as it arrives, *End* nothing). `TestPresenterFirstPaintIsFinal` (the arrangement from the cookie is in the served HTML). `TestPresenterPrefsRefuseNonsense` (table of bad cookies). `TestPresenterNotesWithoutThePressLineStayPlain`. `TestPresenterIsOnlyForThePresenter`. `TestScriptlessPickerMovesTheTalk`.
+
+Change `TestFontThePresenterAndRemoteDrawInNoWebFace`: the remote stays free of web faces, and the presenter window now takes the gate.
+
+Run: `go test -tags browser ./internal/slidestest -run 'Presenter|Scriptless|TestFontThePresenter' -count=1`
+Expected: FAIL.
+
+- [ ] **Step 2: Implement, then run**
+
+Run: same command. Expected: PASS at all ten sizes.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add internal
+git commit -m "Presenter: the HalfStack window, drawn by the server, never scrolling"
+```
+
+---
+
+### Task 10: The window moves at once
+
+**Files:**
+- Create: `fixtures/presenter-entry.mjs`, `talk-store.mjs`, `talk-link.mjs`, `presenter-window.mjs`, `slide-window.mjs`, `presenter-keys.mjs`, and `talk-link.test.mjs`, `presenter-keys.test.mjs`
+- Modify: `fixtures/build-bundles.mjs`, `internal/slides/assets_embed.go` (`bundleKinds` gains `presenter`), `templates/presenter.html`, `templates/present.html`
+- Test: `internal/slidestest/presenter_moves_browser_test.go`
+
+**Interfaces:**
+
+```js
+// talk-store.mjs
+loadTalk({ href, fonts, onProgress }) -> Promise<{
+ slide(id), has(id), deckSeq, refresh() -> Promise<boolean>
+}>
+
+// talk-link.mjs
+createLink({ post, stream, now, onPosition, onStatus }) -> {
+ press(move, landedAt), resume(position), status() // 'online' | 'offline'
+}
+```
+
+**The link's rules (the part a test cannot infer):**
+- Presses go to the server **one at a time, in order**, each with its own id from `crypto.getRandomValues`.
+- While a press is unanswered, server positions are recorded but not applied. When the queue empties, the newest is applied if its `seq` is higher than the last applied and it differs from where the window stands.
+- A send that fails or takes over 3 seconds marks the link offline. Unanswered presses are dropped from the queue, because the position they reached is kept.
+- On reconnecting: if the window pressed while offline, it sends `resume` with its position. If not, it takes the server's.
+- A window that has not loaded the next slide stays where it is until that slide is complete, then swaps in one task.
+- Every answer carries `deckSeq`, and the window also checks `/talk` every 30 seconds while online. A newer version is loaded quietly and taken at the next change of slide, through `settle`.
+- The step count's flash restarts on every press, including a press that repeats the same words at the end of the talk.
+
+**Keys** are §5.5's table. `event.repeat` is ignored. PageUp and PageDown work from inside a field. A number then Enter jumps. `P` opens the presenter window under the name `slides-presenter`. The slide window takes the same keys.
+
+- [ ] **Step 1: Write the failing tests**
+
+Node, with a fake clock and fake network: `a press is sent once and in order`, `a late answer does not move a window with presses waiting`, `offline presses end in one resume`, `a window that pressed nothing takes the server's position`.
+
+Browser: `TestPresenterStepCountChangesOnEveryPress` (assert the visible text differs after each press through a whole slide with steps, and the position differs on a slide without). `TestPresenterFastPressesNeverJumpBack` (delay `/command` answers, press three times, sample the step every frame, assert it never decreases). `TestPresenterIgnoresKeyRepeat`. `TestPresenterClickerWorksFromAField`. `TestTwoWindowsAndAPhoneStayTogether`. `TestADroppedNetworkKeepsThePressingWindowMoving` (cut the network, press across two slides including one with an image, assert each slide is drawn, restore, and assert the header says so while cut, the slide window says it is waiting, and the server takes the pressing window's position over a phone press made meanwhile). `TestAWindowThatPressedNothingTakesTheServersPosition`. `TestPresenterTakesAnEditAtTheNextSlide` (including the current slide being deleted, being parked, and losing steps). `TestPressBeforeTheTalkLoadsKeepsTheSlideOnScreen`. `TestTheLastPressOfTheTalkStillAnswers` (P2).
+
+To cut the network use `network.EmulateNetworkConditions(true, 0, 0, 0)`. Its first assertion must prove the open stream really stopped delivering. If it does not, cut the stream with a handler wrapper on `fontRig`.
+
+Run: `cd fixtures && node --test talk-link.test.mjs presenter-keys.test.mjs`
+Expected: FAIL.
+
+- [ ] **Step 2: Implement, build the bundle, then run**
+
+```bash
+cd fixtures && node build-bundles.mjs && node --test talk-link.test.mjs presenter-keys.test.mjs
+cd .. && go test -tags browser ./internal/slidestest -run 'Presenter|TwoWindows|DroppedNetwork|PressedNothing|PressBefore|LastPress' -count=1
+```
+
+Expected: PASS.
+
+- [ ] **Step 3: Commit, then run the gate**
+
+```bash
+git add -A fixtures internal
+git commit -m "Presenter: a press moves the window at once, even with no network"
+./.amadan/ci.d/10-gate
+```
+
+Expected: gate passes.
+
+---
+
+### Task 11: The notes
+
+**Files:**
+- Create: `fixtures/presenter-notes.mjs`, `fixtures/presenter-notes.test.mjs`
+- Modify: `fixtures/presenter-window.mjs`, `static/presenter.css`
+- Test: `internal/slidestest/presenter_notes_browser_test.go`
+
+**Interfaces:** `mountNotes({ root, prefs, savePrefs }) -> { show(parts, step) }`, and pure `brightPart(parts, step) -> index` returning `min(step, parts - 1)`.
+
+Fit shrinks from the chosen size to a floor of 16px by measuring. Past the floor the panel scrolls inside itself, keeps the bright part in view, and fades at the edge that has more. Scroll uses the chosen size. Smaller and larger step by 2px between 16 and 48. Every change writes the cookie.
+
+- [ ] **Step 1: Write the failing tests**
+
+`TestNotesFitShrinksToTheFloor`. `TestNotesTooLongScrollInsideAndLoseNoText` (every word is reachable, and the document still does not scroll). `TestNotesFollowThePresses` covering more parts than presses, more presses than parts, and no `(Press.)` line. `TestNotesChoiceIsRememberedAtFirstPaint`.
+
+Run: `go test -tags browser ./internal/slidestest -run 'TestNotes' -count=1`
+Expected: FAIL.
+
+- [ ] **Step 2: Implement, build, then run**
+
+Run: `cd fixtures && node build-bundles.mjs && cd .. && go test -tags browser ./internal/slidestest -run 'TestNotes' -count=1`
+Expected: PASS.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add -A fixtures internal
+git commit -m "Presenter: notes fit or scroll, and follow the presses"
+```
+
+---
+
+### Task 12: Jumping to any slide
+
+**Files:**
+- Create: `fixtures/presenter-picker.mjs`, `fixtures/presenter-picker.test.mjs`
+- Modify: `fixtures/presenter-window.mjs`, `static/presenter.css`
+- Test: `internal/slidestest/presenter_picker_browser_test.go`
+
+**Interfaces:** `mountPicker({ root, talk, position, go }) -> { open(), close(), isOpen() }`, and pure `matchSlides(slides, query) -> slides`. A number matches the slide of that number first, then words match the title, case-insensitively.
+
+Pictures load lazily. Opening scrolls the current slide into view inside the list. Enter goes to the first match. Esc closes and returns focus to the position. A full-only slide is marked, and choosing it in core switches to full.
+
+- [ ] **Step 1: Write the failing tests**
+
+`TestPickerHolds105Slides` (opens on slide 62 with it in view, narrows by number and by words, Enter jumps, the window does not scroll, and fewer than 30 pictures have loaded on opening). `TestPickerListsNoParkedSlide`. `TestPickerFullOnlySwitchesToFull`. `TestPickerSaysWhenNothingMatches`.
+
+Run: `go test -tags browser ./internal/slidestest -run 'TestPicker' -count=1`
+Expected: FAIL.
+
+- [ ] **Step 2: Implement, build, then run**
+
+Run: `cd fixtures && node build-bundles.mjs && node --test presenter-picker.test.mjs && cd .. && go test -tags browser ./internal/slidestest -run 'TestPicker' -count=1`
+Expected: PASS.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add -A fixtures internal
+git commit -m "Presenter: jump to any slide, at 105 slides and beyond"
+```
+
+---
+
+### Task 13: Arranging, the ⋯ menu and pairing
+
+**Files:**
+- Create: `fixtures/presenter-arrange.mjs`, `fixtures/presenter-arrange.test.mjs`, `internal/slides/templates/present_pair.html`
+- Modify: `internal/slides/presenter_window.go`, `presentation.go`, `app.go`, `fixtures/presenter-window.mjs`, `internal/slidestest/present_test.go`
+- Test: `internal/slidestest/presenter_arrange_browser_test.go`, `present_pair_test.go`
+
+**Interfaces:**
+- `clampPanels(panels, moved, change) -> panels`, pure: on the 12×12 grid, at least 2×2, inside the grid, never overlapping.
+- `POST /p/{session}/pair` for the signed-in presenter only: replaces the token, answers `present_pair.html` with the code, address and QR, `no-store`. The menu's form has `target="slides-pair"` (P5).
+- The `startPresenting` test helper gets its token from this route.
+
+- [ ] **Step 1: Write the failing tests**
+
+`TestArrangedPanelsStayInsideTheWindow` at each of the ten sizes. `TestArrangeResetReturnsTheDefault`. `TestArrangementIsFinalAtFirstPaint`. `TestPairingReplacesTheOldToken`. `TestOnlyThePresenterMayPair`. `TestPairingLeavesTheWindowItsTalk`. `TestEndingTheTalkEndsThePhone`. `TestTheMenuHasItsSixRows`.
+
+Run: `go test -tags browser ./internal/slidestest -run 'Arrange|Pair|EndingTheTalk|TheMenuHas' -count=1`
+Expected: FAIL.
+
+- [ ] **Step 2: Implement, build, then run**
+
+Run: `cd fixtures && node build-bundles.mjs && node --test presenter-arrange.test.mjs && cd .. && go test -tags browser ./internal/slidestest -run 'Arrange|Pair|EndingTheTalk|TheMenuHas' -count=1`
+Expected: PASS.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add -A fixtures internal
+git commit -m "Presenter: arrange the window, and pair a phone from its menu"
+```
+
+---
+
+### Task 14: Choosing how a box appears
+
+**Files:**
+- Create: `fixtures/inspector-steps.mjs`, `box-menu-appears.mjs`, `step-marks.mjs`, and `inspector-steps.test.mjs`
+- Modify: `internal/slides/templates/editor.html` (block form, before the `style` group at line 622; box menu at 458-476), `fixtures/inspector-block.mjs`, `box-menu.mjs`, `static/editor.css`, `internal/slidestest/quieter_inventory_test.go`
+- Test: `internal/slidestest/browser_editor_steps_test.go`
+
+**Interfaces:**
+
+```js
+// inspector-steps.mjs
+appearsOf(block) -> 'slide' | 'press' | 'each'
+appearsOps(slide, block, choice) -> ops[] // 'press' and 'each' on a box with no step take max + 1
+afterOps(slide, block, afterValue) -> ops[] // the midpoint of afterValue and the next value, or afterValue + 1
+```
+
+`box-menu.mjs` is at 299 lines: the new rows live in `box-menu-appears.mjs`, and `box-menu.mjs` must not grow past 299. *Item by item* shows only on lists. The numerals are drawn in an overlay outside the slide's DOM, `aria-hidden`, only while a box on that slide is selected.
+
+- [ ] **Step 1: Write the failing tests**
+
+Node: `appearsOps` for each choice, `afterOps` writing a midpoint and renumbering nothing.
+
+Browser: `TestAppearsRowSetsTheStep`. `TestAppearsInTheBoxMenuMatchesTheCard`. `TestItemByItemOnlyOnLists`. `TestAfterPlacesABoxBetweenTwoPresses`. `TestPressNumbersShowOnlyWhileABoxIsSelected`. `TestTheStageStaysFinished` (no `data-waiting` anywhere on the stage). `TestUndoTakesAStepBack`. `TestASlideWithoutStepsShowsNothingNew`.
+
+Run: `cd fixtures && node --test inspector-steps.test.mjs`
+Expected: FAIL.
+
+- [ ] **Step 2: Implement, build, update the inventory, then run**
+
+```bash
+cd fixtures && node build-bundles.mjs && node --test inspector-steps.test.mjs
+cd .. && go test ./internal/slidestest -run 'TestQuieter' -count=1
+go test -tags browser ./internal/slidestest -run 'Appears|ItemByItem|TestAfter|PressNumbers|StageStays|UndoTakes|WithoutSteps' -count=1
+```
+
+Expected: PASS.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add -A fixtures internal
+git commit -m "Editor: choose how a box appears, with nothing new until you do"
+```
+
+---
+
+### Task 15: Seeing the steps, the strip and the talk
+
+**Files:**
+- Create: `fixtures/play-through.mjs`, `fixtures/play-through.test.mjs`
+- Modify: `fixtures/strip.mjs`, `commands.mjs`, `inspector.mjs`, `inspector-ops.mjs`, `internal/slides/editor.go` (`stripItem` gains `Presses int`, `Talk string`), `templates/editor.html`, `static/editor.css`, `internal/slidestest/quieter_inventory_test.go`
+- Test: `internal/slidestest/browser_editor_talk_test.go`
+
+**Interfaces:**
+- `mountPlayThrough({ stageEl, getSlide, onExit }) -> { refresh(), stop() }`. It toggles `data-waiting` on the stage only while playing, using `presses()`, and restores the finished slide on Esc, on a change of slide and on any edit.
+- Commands `slide-talk-full` and `slide-talk-parked` toggle `set_slide{talk}`, from both the strip item's menu and the Slide menu. The two are exclusive, and each row is a `menuitemcheckbox`.
+- `deckOp('arrive', value)`, with `appear` written as `null`.
+- The strip draws `data-talk` and the count on the server, for a final first paint, and `relabel()` keeps them current.
+
+- [ ] **Step 1: Write the failing tests**
+
+`TestPlayThroughWalksThePresses`. `TestEscReturnsToTheFinishedSlide`. `TestNoPressControlWithoutSteps`. `TestStripCountsPresses`. `TestAFullOnlySlideHasADashedEdge`. `TestAParkedSlideIsASlimBarInPlace` (position in the strip unchanged). `TestStripIsFinalAtFirstPaint`. `TestParkAndSkipAreExclusive`. `TestHowThingsArriveIsSaved`.
+
+Run: `go test -tags browser ./internal/slidestest -run 'PlayThrough|EscReturns|NoPressControl|TestStrip|FullOnlySlideHas|AParkedSlideIs|ParkAndSkip|HowThings' -count=1`
+Expected: FAIL.
+
+- [ ] **Step 2: Implement, build, then run**
+
+Run: `cd fixtures && node build-bundles.mjs && node --test play-through.test.mjs && cd .. && go test ./internal/slidestest -run 'TestQuieter' -count=1 && go test -tags browser ./internal/slidestest -run 'PlayThrough|EscReturns|NoPressControl|TestStrip|FullOnlySlideHas|AParkedSlideIs|ParkAndSkip|HowThings' -count=1`
+Expected: PASS.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add -A fixtures internal
+git commit -m "Editor: play a slide's presses, and mark what is in the talk"
+```
+
+---
+
+### Task 16: Say what changed, and prove the whole
+
+**Files:** Modify `AGENTS.md` (lines 119-123, 721-726, and "Slides change in place" at 854-862), `docs/api.md`.
+
+- [ ] **Step 1: Update `AGENTS.md`**
+
+The presenter window shows live slides and takes the font gate. The remote still shows pictures. Describe the position, the `presenter` bundle and `ForReaders`.
+
+- [ ] **Step 2: Run the whole gate once**
+
+Run: `make ci && ./.amadan/ci.d/10-gate && (cd fixtures && node --test *.test.mjs)`
+Expected: all pass.
+
+- [ ] **Step 3: Run the full browser suite once**
+
+Run: `go test -tags browser -timeout 45m ./internal/slidestest/ 2>&1 | grep -E '^(--- FAIL|FAIL|ok)'`
+Expected: only the 12 tests known to fail on main. Rerun any other failure alone before calling it a flake, and report it either way.
+
+- [ ] **Step 4: Build the talk's shape and walk it**
+
+With a script over the API, make a scratch deck of 105 talk slides, 64 parked or full-only and about 240 presses. Serve it on `127.0.0.1`, walk every press in the browser, and assert no press goes unanswered and the window never scrolls. Delete the scratch and stop the server.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add AGENTS.md docs
+git commit -m "Docs: the presenter window, steps and the talk's parts"
+```