oficina / slides Public

Clone
git clone https://amadan.net/oficina/slides

Plain git — no account needed to clone.

Download

Download this file

1# Steps, core and full, and the presenter: Implementation Plan
2
3> **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.
4
5**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.
6
7**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.
8
9**Tech Stack:** Go (rastrillo, chi, GORM), Rust/wasm CRDT core, Yjs, esbuild bundles, chromedp browser tests, estilo.
10
11**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.
12
13## Global Constraints
14
15- Every existing deck renders byte for byte as it does today, at every task.
16- The window never scrolls, from 2560×1440 to 320×568. Only the notes and the slide picker scroll, inside themselves.
17- 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.
18- A press is never lost or repeated. A clicker pressed twice moves twice.
19- A parked slide reaches nobody holding only a share or follow link.
20- 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.
21- Every screen but the editor works with scripts off. Arranging and Fit are enhancements (S20).
22- 320px reflow, WCAG 2.2 AA, lucide icons, no flash of an unfinished state. The stage is not a second renderer.
23- `editor.css` holds to the published sizes (`TestQuieterCSSUsesTokens`). `fixtures/*.mjs` files stay under 300 lines.
24- Shared machine: bind only to `127.0.0.1` or `100.119.180.57`, leave `GOCACHE` alone, scratch in `$TMPDIR`, stop what you start.
25- Commit subjects under 80 characters, then a blank line and a body, ending `Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>`.
26- Run targeted tests while iterating. The full browser suite runs once, in Task 16.
27
28## Review Focus
29
30Each is pinned by a named test in the task that owns the code.
31
321. **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`.
332. **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`.
343. **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`.
354. **What the slide window may receive.** Its talk payload carries no notes, and no payload carries a parked slide. Task 8, `TestTalkPayloadWithholdsNotesAndParked`.
365. **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`.
37
38## Calls this plan makes
39
40The spec leaves these open. Each is reversible, and Paul can overrule any at plan review.
41
42| # | Call | Why |
43|---|---|---|
44| 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. |
45| 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. |
46| 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. |
47| 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. |
48| P5 | *Pair a phone* opens in its own tab. | Navigating the presenter window would lose the talk held in memory. |
49| P6 | `POST /api/v1/.../present` keeps returning a fresh token. | An agent asking for one is asking to pair. |
50| P7 | Resetting the timer shows 0:00 and it runs again from the next press. | Same rule as the first press (§5.5). |
51| P8 | A list's blank items, and a columns box with nothing visible inside, make no press. | They reveal nothing visible (§2). |
52
53---
54
55## File map
56
57**Created**
58
59| File | Holds |
60|---|---|
61| `internal/slides/deck/presses.go` | `Presses`, `ArrivalOf`, `NoteParts` input rules |
62| `internal/slides/deck/talk.go` | `Mode`, `Position`, `Move`, `TalkOrder`, `Advance`, `Settle`, `ForReaders` |
63| `fixtures/presses.mjs`, `fixtures/moves.mjs` | The JS twins |
64| `fixtures/vectors/presses.json`, `fixtures/vectors/moves.json` | Hand-written vectors both sides read |
65| `internal/slides/presenting_position.go` | Press handling on the server |
66| `internal/slides/presenting_talk.go` | `GET /p/{session}/talk` |
67| `internal/slides/presenter_window.go` | The new presenter page and its cookie |
68| `internal/slides/templates/presenter.html`, `presenter_pick.html`, `present_pair.html` | Window, scripts-off picker, pairing tab |
69| `internal/slides/static/presenter.css` | The window's styles, copied from the mockup |
70| `fixtures/presenter-entry.mjs` | Bundle entry |
71| `fixtures/talk-store.mjs` | Loads and holds the talk |
72| `fixtures/talk-link.mjs` | Sending presses, reconciling, offline |
73| `fixtures/presenter-window.mjs`, `fixtures/slide-window.mjs` | The two windows |
74| `fixtures/presenter-keys.mjs`, `presenter-notes.mjs`, `presenter-picker.mjs`, `presenter-arrange.mjs` | One concern each |
75| `fixtures/inspector-steps.mjs`, `box-menu-appears.mjs`, `step-marks.mjs`, `play-through.mjs` | Editor controls |
76
77**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`.
78
79---
80
81### Task 1: Set up the branch and pass the copy gate
82
83**Files:** Modify `internal/slides/locales/en.toml`.
84
85No other task writes a user-facing word until this one is done.
86
87- [ ] **Step 1: Start the working branch from current main**
88
89```bash
90cd ~/amadan.net/oficina/slides-design-presenter-window
91git fetch origin && git rebase origin/main
92git switch -c feat/steps-and-presenter
93cd fixtures && npm ci
94```
95
96Expected: rebase clean, `fixtures/node_modules` present.
97
98- [ ] **Step 2: Draft every string below and run the `copy-review` skill**
99
100Words the spec fixes are the starting draft. Rows marked *draft* need words written for the review. The reviewer sees each in context.
101
102| Key (prefix `slides.`) | Where it shows | Starting words |
103|---|---|---|
104| `editor.appears` | Box card and menu | *Appears* (§4) |
105| `editor.appears.slide` / `.press` / `.each` / `.after` | Options | *With the slide*, *On a press*, *Item by item*, *After…* |
106| `editor.presses.one` / `.many` | Play-through control | *3 presses* (§4), singular draft |
107| `editor.presses.exit` | Control's label while playing | draft |
108| `editor.strip.presses.one` / `.many` | Strip count, for assistive technology | draft |
109| `editor.talk.full` / `.parked` | Slide menus | *Skip in the short version*, *Park* |
110| `editor.talk.parked.label` | Slim bar, for assistive technology | draft |
111| `editor.arrive` / `.appear` / `.fade` / `.rise` | Deck settings | *How things arrive*, others draft |
112| `present.step.count` | Step count | *step 2 of 4* |
113| `present.next.step` / `.slide` / `.end` | Next panel | *Next step*, *Next slide*, *End* |
114| `present.black` | Header flag | *BLACK* |
115| `present.mode.core` / `.full` | Header | draft |
116| `present.menu.pair` / `.window` / `.mode` / `.arrange` / `.back` / `.end` | ⋯ menu | §5.6 words |
117| `present.arrange.hint` / `.reset` / `.done` | Arrange bar | mockup words, *Reset*, draft |
118| `present.notes.fit` / `.scroll` / `.smaller` / `.larger` | Icon labels | draft |
119| `present.notes.none` | Empty notes | reuse `slides.notes.none` |
120| `present.pick.title` / `.field` / `.none` / `.full` | Picker | draft |
121| `present.loading` | Header while the talk loads | draft |
122| `present.offline` / `present.waiting` | Network dropped, pressing and other windows | draft |
123| `present.timer.reset` / `present.more` | Control labels | draft |
124| `present.empty.title` / `.body` | No slides in the talk | draft |
125| `present.pair.body` | Replaces today's sentence, which describes the old behaviour | draft |
126
127- [ ] **Step 3: Apply the approved words verbatim to `en.toml`**
128
129Run: `go test ./internal/slides/ -count=1`
130Expected: 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.
131
132- [ ] **Step 4: Commit**
133
134```bash
135git add internal/slides/locales/en.toml
136git commit -m "Slides: the words for steps and the presenter window"
137```
138
139---
140
141### Task 2: The document's four fields
142
143**Files:**
144- Modify: `core/src/schema.rs`, `core/src/view.rs`, `core/src/ops.rs`, `core/tests/ops.rs`
145- Modify: `fixtures/ops-parse.mjs`, `ops-model.mjs`, `ops-apply.mjs`, `view.mjs`, `generate-random-decks.mjs`, `fixtures/data/canvas.json`
146- Modify: `internal/slides/deck/deck.go`, `agent_edit_contract.go`, `assist_ops.go`, `assist_prompt.go`, `docs/api.md`
147- Regenerate: `fixtures/vectors/*`, `internal/slides/core/testdata/slides_core.wasm`, `.stamp`
148
149**Interfaces:**
150- 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"`).
151- Produces ops: `set_block{step: number|null, items: string|null}`, `set_slide{talk: string|null}`, `set_meta{arrive: string|null}`. `null` removes the key.
152- Produces Go: `deck.Block.Step float64`, `deck.Block.Items string`, `deck.Slide.Talk string`, `deck.Meta.Arrive string`.
153
154- [ ] **Step 1: Write the failing Rust tests in `core/tests/ops.rs`**
155
156`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.
157
158- [ ] **Step 2: Run them to see them fail**
159
160Run: `cd core && cargo test --test ops step talk arrive`
161Expected: FAIL, unknown fields.
162
163- [ ] **Step 3: Implement the fields in the core**
164
165In `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.
166
167- [ ] **Step 4: Mirror it in the fixtures and add vectors**
168
169Add 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`.
170
171Run: `cd fixtures && node generate.mjs && node --test ops.test.mjs`
172Expected: PASS. `git diff --stat fixtures/vectors` shows only `canvas.*`.
173
174- [ ] **Step 5: Teach the Go side**
175
176`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.
177
178- [ ] **Step 6: Rebuild the wasm and run the vectors**
179
180```bash
181./scripts/build-wasm.sh
182cp core/target/wasm32-unknown-unknown/release/slides_core.wasm internal/slides/core/testdata/slides_core.wasm
183go test ./internal/slides/core ./internal/slides/deck -count=1
184```
185
186Expected: PASS, including `TestVectorsViewAsTheJSSideViewsThem` and `TestVectorsOpsAgreeWithTheJSOps`.
187
188- [ ] **Step 7: Commit, then run the gate**
189
190```bash
191git add -A core fixtures internal docs
192git commit -m "Document: step, items, talk and arrive, on the existing ops"
193./.amadan/ci.d/10-gate
194```
195
196Expected: gate passes.
197
198---
199
200### Task 3: Presses, the talk's order and moves
201
202**Files:**
203- Create: `internal/slides/deck/presses.go`, `talk.go`, `presses_test.go`, `talk_test.go`
204- Create: `fixtures/presses.mjs`, `moves.mjs`, `presses.test.mjs`, `moves.test.mjs`
205- Create: `fixtures/vectors/presses.json`, `fixtures/vectors/moves.json`
206
207**Interfaces (produced):**
208
209```go
210// presses.go
211type Reveal struct {
212 Block string `json:"block"`
213 Item int `json:"item"` // -1 is the whole box
214}
215type Press []Reveal
216func Presses(s Slide) []Press // element 0 is press 1; press 0 is the arrival
217func ArrivalOf(s Slide) map[Reveal]int // press number of everything arriving on a press
218
219// talk.go
220type Mode string
221const (ModeCore Mode = "core"; ModeFull Mode = "full")
222type Position struct {
223 Slide string `json:"slide"` // slide id
224 Step int `json:"step"`
225 Mode Mode `json:"mode"`
226 Black bool `json:"black"`
227}
228type Move struct {
229 Op string `json:"op"` // next, back, first, last, goto, mode, black
230 Slide string `json:"slide,omitempty"`
231}
232func TalkOrder(d *Deck, m Mode) []int // deck indices
233func Start(d *Deck) Position
234func Advance(d *Deck, p Position, mv Move) Position
235func Settle(d *Deck, p Position) Position
236func (d *Deck) ForReaders() *Deck // a copy without parked slides
237```
238
239JS: `presses(slide) -> [[{block,item}]]`, `talkOrder(view, mode)`, `start(view)`, `advance(view, pos, move)`, `settle(view, pos)`, with the same JSON shapes.
240
241**The rules, which the vectors pin:**
242
243- Distinct `step` values ascending are the presses. Equal values arrive together.
244- A box inside a columns box takes the later of its own value and its container's.
245- 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.
246- `items: each` with no `step` arrives with the slide.
247- A box that shows nothing makes no press: an empty list, a blank text box, a columns box with no visible child.
248- `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.
249- `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.
250- `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.
251- `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.
252- Every `next`, `back`, `first`, `last` and `goto` lifts black. `black` toggles it.
253- `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}`.
254
255- [ ] **Step 1: Write the vectors**
256
257`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.
258
259`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.
260
261- [ ] **Step 2: Write the failing tests on both sides**
262
263`TestPressesVectors` and `TestMovesVectors` in Go, `presses vectors` and `moves vectors` in `node --test`. All read the same files.
264
265Run: `go test ./internal/slides/deck -run 'Presses|Moves' -count=1`
266Expected: FAIL, undefined.
267
268- [ ] **Step 3: Implement both sides, then run**
269
270```bash
271go test ./internal/slides/deck -count=1
272cd fixtures && node --test presses.test.mjs moves.test.mjs
273```
274
275Expected: PASS on both.
276
277- [ ] **Step 4: Commit**
278
279```bash
280git add internal/slides/deck fixtures
281git commit -m "Deck: presses, the talk's order and moves, shared by Go and JS"
282```
283
284---
285
286### Task 4: The renderer draws a slide at a press
287
288**Files:**
289- Modify: `internal/slides/render/render.go`, `internal/slides/static/slides.css`
290- Test: `internal/slides/render/reveal_test.go`, new goldens `testdata/steps-{at0,at1}-desktop.golden.html`
291
292**Interfaces:**
293- Consumes: `deck.ArrivalOf`.
294- Produces: `render.Options.Reveal *int`. `nil` is fully built with **no new attributes**. A value is that press.
295- 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`.
296- 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.
297
298- [ ] **Step 1: Write the failing tests**
299
300`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.
301
302Run: `go test ./internal/slides/render -run Reveal -count=1`
303Expected: FAIL.
304
305- [ ] **Step 2: Implement, update only the new goldens, run**
306
307```bash
308go test ./internal/slides/render -update -run 'Reveal'
309go test ./internal/slides/render -count=1
310git status --short internal/slides/render/testdata
311```
312
313Expected: PASS, and only the new golden files appear.
314
315- [ ] **Step 3: Commit**
316
317```bash
318git add internal/slides/render internal/slides/static/slides.css
319git commit -m "Render: a slide can be drawn at a press, and nothing else changes"
320```
321
322---
323
324### Task 5: The server holds an absolute position and orders presses
325
326**Files:**
327- Create: `internal/slides/presenting_position.go`, `internal/slidestest/present_position_test.go`
328- Modify: `internal/slides/models.go`, `presentation.go`, `present/hub.go`, `app.go`, `internal/slidestest/present_test.go`
329- Create by generator: `internal/slides/migrations/0009_*.sql`
330
331**Interfaces:**
332
333```go
334// models.go: added to Presentation
335SlideID string
336Step int
337Mode string
338Seq int64
339Positional bool // false for sessions begun before this deploy
340TimerAt *time.Time
341
342type PresentationPress struct { // unique (PresentationID, PressID)
343 PresentationID int64
344 PressID string
345 CreatedAt time.Time
346}
347
348// present/hub.go: added to Event, each `omitempty`
349SlideID string `json:"slideId"`; Step int `json:"step"`; Mode string `json:"mode"`; Seq int64 `json:"seq"`
350
351// presenting_position.go
352type pressCommand struct { Op, Slide, Press, AtSlide, AtMode string; AtStep int }
353type positionAnswer struct {
354 Slide string `json:"slide"`; Step int `json:"step"`; Mode string `json:"mode"`
355 Black bool `json:"black"`; Seq int64 `json:"seq"`; DeckSeq int64 `json:"deckSeq"`
356}
357func (a *app) mayDrive(r *http.Request, p Presentation, token string) bool
358func (a *app) applyPress(r *http.Request, p Presentation, cmd pressCommand) (positionAnswer, error)
359```
360
361**Behaviour:**
362- `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.
363- `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.
364- Each press runs in one transaction: lock the row, apply `deck.Settle` then `deck.Advance`, bump `Seq`, publish.
365- 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.
366- `resume` sets the position to `at_*` after `deck.Settle`. It is how a window that moved offline wins.
367- The first move sets `TimerAt` if it is unset. `timer-reset` clears it.
368- `Accept: application/json` gets `positionAnswer`. Otherwise the 303 and 204 answers stay.
369- `mayDrive`: a valid remote token, or `presenterActor(r) == p.Actor` and not empty.
370- `startPresenting` no longer replaces the token on an existing session, and redirects to `/p/{sqid}` (S12). `POST /p/{session}/pair` is Task 13.
371- New sessions set `Positional: true` and `Position` from `deck.Start`.
372
373- [ ] **Step 1: Write the failing tests**
374
375`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`.
376
377Update 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.
378
379Run: `go test ./internal/slidestest -run 'Press|Present|Command|Token|Drive|Timer|Session' -count=1`
380Expected: the new tests FAIL.
381
382- [ ] **Step 2: Change the models and generate the migration**
383
384Run: `go run amadan.net/rastrillo/rastrillo/cmd/rastrillo migration generate`, read the SQL, then `make migration-check`.
385Expected: one new file `0009_*.sql`; the check passes.
386
387- [ ] **Step 3: Implement, then run**
388
389Run: `go test ./internal/slidestest ./internal/slides/present -count=1`
390Expected: PASS.
391
392- [ ] **Step 4: Commit**
393
394```bash
395git add internal
396git commit -m "Presenting: an absolute position, ordered by the server"
397```
398
399---
400
401### Task 6: Steps on the slide window, the follow link and the remote
402
403**Files:**
404- Modify: `internal/slides/presentation.go`, `static/present.js`, `templates/present.html`, `present_controls.html`, `remote.html`
405- Test: `internal/slidestest/present_steps_test.go`, `present_steps_browser_test.go`
406
407**Interfaces:**
408- Consumes: `render.Options.Reveal`, `positionAnswer`, the new `Event` fields.
409- 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.
410- Produces: every control form carries a hidden `press` id rendered fresh with the page.
411- 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).
412
413- [ ] **Step 1: Write the failing tests**
414
415HTTP: `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`.
416
417Browser: `TestFollowRevealsInPlace` (the section element is the same node after a step change). `TestBackFromTheNextSlideLandsFullyBuilt`. `TestReducedMotionAppears`.
418
419Run: `go test ./internal/slidestest -run 'Scriptless|Resubmitted|FollowDraws|RemoteSays' -count=1`
420Expected: FAIL.
421
422- [ ] **Step 2: Implement, then run**
423
424Run: `go test -tags browser ./internal/slidestest -run 'Scriptless|Resubmitted|Follow|RemoteSays|BackFrom|ReducedMotion' -count=1`
425Expected: PASS.
426
427- [ ] **Step 3: Commit**
428
429```bash
430git add internal
431git commit -m "Presenting: steps on the slide window, follow link and remote"
432```
433
434---
435
436### Task 7: Full only and parked, everywhere readers look
437
438**Files:**
439- Modify: `internal/slides/viewer.go`, `share.go`, `export.go`, `exports.go`, `thumbs.go`, `presentation.go`, `decks.go`, `api.go`
440- Test: `internal/slidestest/talk_readers_test.go`
441
442**Interfaces:** Consumes `(*deck.Deck).ForReaders()` and `deck.TalkOrder`.
443
444Apply `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.
445
446- [ ] **Step 1: Write the failing tests**
447
448`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`.
449
450Run: `go test ./internal/slidestest -run 'Parked|FullOnly' -count=1`
451Expected: FAIL.
452
453- [ ] **Step 2: Implement, then run**
454
455Run: `go test ./internal/slidestest -count=1`
456Expected: PASS.
457
458- [ ] **Step 3: Commit**
459
460```bash
461git add internal
462git commit -m "Readers: a parked slide reaches nobody outside the deck"
463```
464
465---
466
467### Task 8: The talk, as one payload
468
469**Files:**
470- Create: `internal/slides/presenting_talk.go`, `internal/slidestest/present_talk_test.go`
471- Modify: `internal/slides/app.go`, `internal/slides/deck/presses.go`
472
473**Interfaces:**
474
475```go
476// deck/presses.go
477func NoteParts(t Text) []Text // split at paragraphs whose plain text is exactly "(Press.)"; those lines dropped
478
479// presenting_talk.go
480type talkSlide struct {
481 ID string `json:"id"`
482 Number int `json:"number"`
483 Title string `json:"title"`
484 Full bool `json:"full"`
485 Presses int `json:"presses"`
486 HTML string `json:"html"` // rendered with Reveal at 0
487 Assets []string `json:"assets"`
488 Thumb string `json:"thumb"`
489 Notes []string `json:"notes,omitempty"` // one HTML part per press section
490}
491type talkPayload struct {
492 DeckSeq int64 `json:"deckSeq"`
493 Arrive string `json:"arrive"`
494 Slides []talkSlide `json:"slides"`
495}
496```
497
498`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.
499
500- [ ] **Step 1: Write the failing tests**
501
502`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.
503
504Run: `go test ./internal/slidestest ./internal/slides/deck -run 'TalkPayload|NoteParts' -count=1`
505Expected: FAIL.
506
507- [ ] **Step 2: Implement, then run**
508
509Run: same command. Expected: PASS.
510
511- [ ] **Step 3: Commit**
512
513```bash
514git add internal
515git commit -m "Presenting: the whole talk as one payload, notes for the presenter only"
516```
517
518---
519
520### Task 9: The presenter window, drawn by the server
521
522**Files:**
523- Create: `internal/slides/presenter_window.go`, `templates/presenter.html`, `templates/presenter_pick.html`, `static/presenter.css`
524- Test: `internal/slidestest/presenter_window_test.go`, `presenter_window_browser_test.go`
525- Modify: `internal/slides/presentation.go`, `internal/slidestest/fonts_browser_test.go`
526
527**Interfaces:**
528
529```go
530type presenterPrefs struct {
531 Notes string // "fit" or "scroll"
532 Size int // 16 to 48, even; default 24
533 Panels [3]panel // now, next, notes on a 12×12 grid
534}
535type panel struct{ X, Y, W, H int }
536func readPresenterPrefs(r *http.Request) presenterPrefs
537```
538
539- 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.
540- `presenterNotes` serves `presenter.html` for `Positional` sessions and today's template otherwise. It answers 404 unless `mayDrive`.
541- 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`.
542- `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.
543- The step count is absent on a slide with no steps. Notes parts render with the current part bright and the others dimmed (§10).
544- 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).
545
546- [ ] **Step 1: Write the failing tests**
547
548`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.
549
550`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`.
551
552Change `TestFontThePresenterAndRemoteDrawInNoWebFace`: the remote stays free of web faces, and the presenter window now takes the gate.
553
554Run: `go test -tags browser ./internal/slidestest -run 'Presenter|Scriptless|TestFontThePresenter' -count=1`
555Expected: FAIL.
556
557- [ ] **Step 2: Implement, then run**
558
559Run: same command. Expected: PASS at all ten sizes.
560
561- [ ] **Step 3: Commit**
562
563```bash
564git add internal
565git commit -m "Presenter: the HalfStack window, drawn by the server, never scrolling"
566```
567
568---
569
570### Task 10: The window moves at once
571
572**Files:**
573- 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`
574- Modify: `fixtures/build-bundles.mjs`, `internal/slides/assets_embed.go` (`bundleKinds` gains `presenter`), `templates/presenter.html`, `templates/present.html`
575- Test: `internal/slidestest/presenter_moves_browser_test.go`
576
577**Interfaces:**
578
579```js
580// talk-store.mjs
581loadTalk({ href, fonts, onProgress }) -> Promise<{
582 slide(id), has(id), deckSeq, refresh() -> Promise<boolean>
583}>
584
585// talk-link.mjs
586createLink({ post, stream, now, onPosition, onStatus }) -> {
587 press(move, landedAt), resume(position), status() // 'online' | 'offline'
588}
589```
590
591**The link's rules (the part a test cannot infer):**
592- Presses go to the server **one at a time, in order**, each with its own id from `crypto.getRandomValues`.
593- 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.
594- 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.
595- On reconnecting: if the window pressed while offline, it sends `resume` with its position. If not, it takes the server's.
596- A window that has not loaded the next slide stays where it is until that slide is complete, then swaps in one task.
597- 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`.
598- The step count's flash restarts on every press, including a press that repeats the same words at the end of the talk.
599
600**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.
601
602- [ ] **Step 1: Write the failing tests**
603
604Node, 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`.
605
606Browser: `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).
607
608To 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`.
609
610Run: `cd fixtures && node --test talk-link.test.mjs presenter-keys.test.mjs`
611Expected: FAIL.
612
613- [ ] **Step 2: Implement, build the bundle, then run**
614
615```bash
616cd fixtures && node build-bundles.mjs && node --test talk-link.test.mjs presenter-keys.test.mjs
617cd .. && go test -tags browser ./internal/slidestest -run 'Presenter|TwoWindows|DroppedNetwork|PressedNothing|PressBefore|LastPress' -count=1
618```
619
620Expected: PASS.
621
622- [ ] **Step 3: Commit, then run the gate**
623
624```bash
625git add -A fixtures internal
626git commit -m "Presenter: a press moves the window at once, even with no network"
627./.amadan/ci.d/10-gate
628```
629
630Expected: gate passes.
631
632---
633
634### Task 11: The notes
635
636**Files:**
637- Create: `fixtures/presenter-notes.mjs`, `fixtures/presenter-notes.test.mjs`
638- Modify: `fixtures/presenter-window.mjs`, `static/presenter.css`
639- Test: `internal/slidestest/presenter_notes_browser_test.go`
640
641**Interfaces:** `mountNotes({ root, prefs, savePrefs }) -> { show(parts, step) }`, and pure `brightPart(parts, step) -> index` returning `min(step, parts - 1)`.
642
643Fit 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.
644
645- [ ] **Step 1: Write the failing tests**
646
647`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`.
648
649Run: `go test -tags browser ./internal/slidestest -run 'TestNotes' -count=1`
650Expected: FAIL.
651
652- [ ] **Step 2: Implement, build, then run**
653
654Run: `cd fixtures && node build-bundles.mjs && cd .. && go test -tags browser ./internal/slidestest -run 'TestNotes' -count=1`
655Expected: PASS.
656
657- [ ] **Step 3: Commit**
658
659```bash
660git add -A fixtures internal
661git commit -m "Presenter: notes fit or scroll, and follow the presses"
662```
663
664---
665
666### Task 12: Jumping to any slide
667
668**Files:**
669- Create: `fixtures/presenter-picker.mjs`, `fixtures/presenter-picker.test.mjs`
670- Modify: `fixtures/presenter-window.mjs`, `static/presenter.css`
671- Test: `internal/slidestest/presenter_picker_browser_test.go`
672
673**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.
674
675Pictures 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.
676
677- [ ] **Step 1: Write the failing tests**
678
679`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`.
680
681Run: `go test -tags browser ./internal/slidestest -run 'TestPicker' -count=1`
682Expected: FAIL.
683
684- [ ] **Step 2: Implement, build, then run**
685
686Run: `cd fixtures && node build-bundles.mjs && node --test presenter-picker.test.mjs && cd .. && go test -tags browser ./internal/slidestest -run 'TestPicker' -count=1`
687Expected: PASS.
688
689- [ ] **Step 3: Commit**
690
691```bash
692git add -A fixtures internal
693git commit -m "Presenter: jump to any slide, at 105 slides and beyond"
694```
695
696---
697
698### Task 13: Arranging, the ⋯ menu and pairing
699
700**Files:**
701- Create: `fixtures/presenter-arrange.mjs`, `fixtures/presenter-arrange.test.mjs`, `internal/slides/templates/present_pair.html`
702- Modify: `internal/slides/presenter_window.go`, `presentation.go`, `app.go`, `fixtures/presenter-window.mjs`, `internal/slidestest/present_test.go`
703- Test: `internal/slidestest/presenter_arrange_browser_test.go`, `present_pair_test.go`
704
705**Interfaces:**
706- `clampPanels(panels, moved, change) -> panels`, pure: on the 12×12 grid, at least 2×2, inside the grid, never overlapping.
707- `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).
708- The `startPresenting` test helper gets its token from this route.
709
710- [ ] **Step 1: Write the failing tests**
711
712`TestArrangedPanelsStayInsideTheWindow` at each of the ten sizes. `TestArrangeResetReturnsTheDefault`. `TestArrangementIsFinalAtFirstPaint`. `TestPairingReplacesTheOldToken`. `TestOnlyThePresenterMayPair`. `TestPairingLeavesTheWindowItsTalk`. `TestEndingTheTalkEndsThePhone`. `TestTheMenuHasItsSixRows`.
713
714Run: `go test -tags browser ./internal/slidestest -run 'Arrange|Pair|EndingTheTalk|TheMenuHas' -count=1`
715Expected: FAIL.
716
717- [ ] **Step 2: Implement, build, then run**
718
719Run: `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`
720Expected: PASS.
721
722- [ ] **Step 3: Commit**
723
724```bash
725git add -A fixtures internal
726git commit -m "Presenter: arrange the window, and pair a phone from its menu"
727```
728
729---
730
731### Task 14: Choosing how a box appears
732
733**Files:**
734- Create: `fixtures/inspector-steps.mjs`, `box-menu-appears.mjs`, `step-marks.mjs`, and `inspector-steps.test.mjs`
735- 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`
736- Test: `internal/slidestest/browser_editor_steps_test.go`
737
738**Interfaces:**
739
740```js
741// inspector-steps.mjs
742appearsOf(block) -> 'slide' | 'press' | 'each'
743appearsOps(slide, block, choice) -> ops[] // 'press' and 'each' on a box with no step take max + 1
744afterOps(slide, block, afterValue) -> ops[] // the midpoint of afterValue and the next value, or afterValue + 1
745```
746
747`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.
748
749- [ ] **Step 1: Write the failing tests**
750
751Node: `appearsOps` for each choice, `afterOps` writing a midpoint and renumbering nothing.
752
753Browser: `TestAppearsRowSetsTheStep`. `TestAppearsInTheBoxMenuMatchesTheCard`. `TestItemByItemOnlyOnLists`. `TestAfterPlacesABoxBetweenTwoPresses`. `TestPressNumbersShowOnlyWhileABoxIsSelected`. `TestTheStageStaysFinished` (no `data-waiting` anywhere on the stage). `TestUndoTakesAStepBack`. `TestASlideWithoutStepsShowsNothingNew`.
754
755Run: `cd fixtures && node --test inspector-steps.test.mjs`
756Expected: FAIL.
757
758- [ ] **Step 2: Implement, build, update the inventory, then run**
759
760```bash
761cd fixtures && node build-bundles.mjs && node --test inspector-steps.test.mjs
762cd .. && go test ./internal/slidestest -run 'TestQuieter' -count=1
763go test -tags browser ./internal/slidestest -run 'Appears|ItemByItem|TestAfter|PressNumbers|StageStays|UndoTakes|WithoutSteps' -count=1
764```
765
766Expected: PASS.
767
768- [ ] **Step 3: Commit**
769
770```bash
771git add -A fixtures internal
772git commit -m "Editor: choose how a box appears, with nothing new until you do"
773```
774
775---
776
777### Task 15: Seeing the steps, the strip and the talk
778
779**Files:**
780- Create: `fixtures/play-through.mjs`, `fixtures/play-through.test.mjs`
781- 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`
782- Test: `internal/slidestest/browser_editor_talk_test.go`
783
784**Interfaces:**
785- `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.
786- 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`.
787- `deckOp('arrive', value)`, with `appear` written as `null`.
788- The strip draws `data-talk` and the count on the server, for a final first paint, and `relabel()` keeps them current.
789
790- [ ] **Step 1: Write the failing tests**
791
792`TestPlayThroughWalksThePresses`. `TestEscReturnsToTheFinishedSlide`. `TestNoPressControlWithoutSteps`. `TestStripCountsPresses`. `TestAFullOnlySlideHasADashedEdge`. `TestAParkedSlideIsASlimBarInPlace` (position in the strip unchanged). `TestStripIsFinalAtFirstPaint`. `TestParkAndSkipAreExclusive`. `TestHowThingsArriveIsSaved`.
793
794Run: `go test -tags browser ./internal/slidestest -run 'PlayThrough|EscReturns|NoPressControl|TestStrip|FullOnlySlideHas|AParkedSlideIs|ParkAndSkip|HowThings' -count=1`
795Expected: FAIL.
796
797- [ ] **Step 2: Implement, build, then run**
798
799Run: `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`
800Expected: PASS.
801
802- [ ] **Step 3: Commit**
803
804```bash
805git add -A fixtures internal
806git commit -m "Editor: play a slide's presses, and mark what is in the talk"
807```
808
809---
810
811### Task 16: Say what changed, and prove the whole
812
813**Files:** Modify `AGENTS.md` (lines 119-123, 721-726, and "Slides change in place" at 854-862), `docs/api.md`.
814
815- [ ] **Step 1: Update `AGENTS.md`**
816
817The presenter window shows live slides and takes the font gate. The remote still shows pictures. Describe the position, the `presenter` bundle and `ForReaders`.
818
819- [ ] **Step 2: Run the whole gate once**
820
821Run: `make ci && ./.amadan/ci.d/10-gate && (cd fixtures && node --test *.test.mjs)`
822Expected: all pass.
823
824- [ ] **Step 3: Run the full browser suite once**
825
826Run: `go test -tags browser -timeout 45m ./internal/slidestest/ 2>&1 | grep -E '^(--- FAIL|FAIL|ok)'`
827Expected: only the 12 tests known to fail on main. Rerun any other failure alone before calling it a flake, and report it either way.
828
829- [ ] **Step 4: Build the talk's shape and walk it**
830
831With 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.
832
833- [ ] **Step 5: Commit**
834
835```bash
836git add AGENTS.md docs
837git commit -m "Docs: the presenter window, steps and the talk's parts"
838```
839