Spec draft 3: Astra round 2 answered
Packs only at the published revision for watchers and followers, revision-bound assets, a derived control key with an epoch, a recovering state for takeover, presses computed in Go over one shared tree, 503 holds the talk, byte-budgeted request pages, bounded preparation, and rehearsal started by POST.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+203
−85
docs/superpowers/specs/2026-11-11-presenter-and-rehearsal-design.md+203 −85
CI passed — run details
diff --git a/docs/superpowers/specs/2026-11-11-presenter-and-rehearsal-design.md b/docs/superpowers/specs/2026-11-11-presenter-and-rehearsal-design.md| index 09c2eae..0a9616f 100644 |
| --- a/docs/superpowers/specs/2026-11-11-presenter-and-rehearsal-design.md |
| +++ b/docs/superpowers/specs/2026-11-11-presenter-and-rehearsal-design.md |
| @@ -107,7 +107,7 @@ listed so they can be reversed in one place. |
| | # | Call | Rejected alternative | |
| |---|---|---| |
| | P1 | A presentation's position is **(slide id, step)**, not an index. | Keep `Presentation.Slide` as an index (a move or a cut during a rehearsal shows a different slide; the deck addressed slides by key for exactly this reason). | |
| -| P2 | Steps are a **`step` number on a block** (and on a list's items, §4.2); the effective sequence is the **rank** of the distinct numbers in use, so gaps never cost a press. | A step count stored on the slide (drifts from the blocks); dense numbers maintained on every edit (a concurrent delete leaves a gap anyway). | |
| +| P2 | Steps are a **`step` number on a block** (with a list's items built one per press, §4.2); the presses are **derived** in Go from the distinct numbers over the renderers' own tree (§4.2), so gaps never cost a press. | A step count stored on the slide (drifts from the blocks); dense numbers maintained on every edit (a concurrent delete leaves a gap anyway). | |
| | P3 | A block waiting for its step **keeps its space**. Revealing it never moves anything else. | Collapsing unrevealed blocks (every press would reflow the slide; breaks the font rule's "first reveal is the final layout"). | |
| | P4 | Core and full mode is an **`optional` flag on a slide**; the session carries the mode. | Two decks, or a slide list per mode. | |
| | P5 | A layout is **a recipe that produces ordinary blocks**, each tagged with the slot it filled. Nothing renders from the library. | Layouts as render-time templates (a second representation; a library change would silently restyle old decks). | |
| @@ -230,10 +230,21 @@ without the token posts nothing). |
| Controllers of one browser profile join a `BroadcastChannel` (with |
| the `storage` event as fallback, as `engine/deck.js` does). The channel |
| -is named from a **control key**: 32 random bytes minted with the |
| -session and rotated with the remote token, rendered only into |
| -controller pages (never into a sqid-only page, never into a follow |
| -page). Every message carries an HMAC-SHA-256 over its body under that |
| +is named from a **control key**, derived, never stored: |
| +`HMAC-SHA-256(instance key, "slides-present-control" ‖ session sqid ‖ |
| +control_epoch)`. The server can therefore give it to a controller |
| +after a restart or in another browser without keeping it. It is |
| +rendered only into controller pages (never into a sqid-only page, |
| +never into a follow page) and fetched by a controller from `GET |
| +/p/{session}/control` (presenter session or token, `no-store`). |
| +`control_epoch` starts at 0 (so a session live at deploy has a key at |
| +once, without minting a token) and is incremented exactly when the |
| +remote token is re-minted, which is the existing revocation of every |
| +token holder; the stream then says `event: control` with the new epoch, |
| +and a controller still authorised (the presenter's own session) fetches |
| +the new key, while a page holding only the old token can no longer |
| +drive, as today. Joining from the rehearsal page never re-mints the |
| +token and so never changes the key. Every message carries an HMAC-SHA-256 over its body under that |
| key (WebCrypto), and a window applies only messages whose MAC verifies. |
| A sqid-only projector does not join the channel at all: it follows the |
| server stream as today, and so does not present offline. A projector |
| @@ -247,9 +258,10 @@ or the key (§3.4 codex 5 holds); they stay on `/s/{token}` routes. |
| A message is the whole position, never a delta: |
| ```json |
| -{"g":3,"t":41,"id":"k3j9…","rev":118,"slide":"ab12cd34ef56","step":2, |
| - "mode":"core","black":false,"clock":1731760000000,"nav":true, |
| - "mac":"…"} |
| +{"g":3,"t":41,"id":"k3j9…","rev":118,"slide_id":"ab12cd34ef56", |
| + "slide":6,"step":2,"mode":"core","blackout":false, |
| + "clock":1731760000000,"rehearsal":false,"control_epoch":0, |
| + "ended":false,"nav":true,"mac":"…"} |
| ``` |
| - `(g, t, id)` is the stamp: `g` the controller generation (below), `t` |
| @@ -271,8 +283,22 @@ resulting `{rev, slide, step, mode, black, clock}`. The server applies |
| it in one transaction with a compare-and-set on the stamp |
| (`UPDATE … WHERE (g, t, id) < (new)` plus `ended_at IS NULL`), and |
| publishes only what committed. A command whose stamp does not win |
| -changes nothing and answers `204` with the current state, so the sender |
| -can reconcile. Two advances stamped 41 and 42 therefore cannot collapse |
| +changes nothing and answers `200` with the current state and |
| +`"applied": false`, so the sender can reconcile. |
| + |
| +**One state schema** is used by command responses, stream events, |
| +`/p/{session}/state`, takeover answers and local messages (which add |
| +only `mac` and `nav`): |
| + |
| +```json |
| +{"g":3,"t":41,"id":"k3j9…","rev":118,"slide_id":"ab12cd34ef56", |
| + "slide":6,"step":2,"mode":"core","blackout":false, |
| + "clock":1731760000000,"rehearsal":false,"control_epoch":0, |
| + "ended":false} |
| +``` |
| + |
| +`clock` (the timer's start, or `null`) is part of it, so a phone that |
| +only hears the server follows timer starts and resets. Two advances stamped 41 and 42 therefore cannot collapse |
| into one: each carries the position it produced, and 42's position is |
| the later one. |
| @@ -303,13 +329,27 @@ position on the projector at reconnect, which §0.3 forbids. So: |
| - The row carries a **generation** `g`. A controller group that loses |
| the server keeps presenting locally under the generation it had. |
| -- **On reconnect, a projector's group takes the session back**: its |
| - controllers post their current state with `g + 1` (a takeover). The |
| - server accepts a takeover only from a controller (token or presenter |
| - session, checked in the transaction) and only as `max(g) + 1`; it |
| - wins over every stamp of the old generation. Presses the phone made |
| - during the partition are superseded, and the phone shows the |
| - projector's position from then on. |
| +- **On reconnect, a projector's group takes the session back.** A |
| + controller group that has a projector open enters **recovering** the |
| + moment its stream reconnects (and on a page load that finds held |
| + state): the projector keeps showing what it shows, and ordinary |
| + server state — the stream's on-connect event included — is buffered, |
| + not applied. One window per group sends the takeover: the projector |
| + screen, or, with several, the one whose random id is lowest among |
| + those that answered `hello`. It posts its current state as `{takeover: |
| + true, g: <the generation it last saw>}`; the server, in the |
| + transaction, checks it is a controller and that `g` is still the |
| + row's generation, and commits the state under `g + 1`, answering |
| + `200` with the accepted state. If the generation moved meanwhile |
| + (another group took over), it answers `409` with the current state: |
| + the sender adopts it and the group leaves recovering (another |
| + projector is the room's now). Network failure retries the same |
| + takeover with backoff, staying in recovering. **`ended` and an |
| + authorisation refusal are applied at once even while recovering.** |
| + Leaving recovering applies the buffered server state only if it is |
| + newer than the accepted takeover. Presses the phone made during the |
| + partition are superseded, and the phone shows the projector's |
| + position from then on. |
| - A group with **no projector open** (just a presenter view, say) does |
| not take over on reconnect; it adopts the server's state, because no |
| room is watching it. |
| @@ -323,21 +363,19 @@ hoped for from the stamp. |
| #### The row and the event |
| The row gains `slide_id`, `step`, `mode`, `rev`, `clock_started_at`, |
| -`rehearsal`, `stamp_g`, `stamp_t`, `stamp_id` and `control_key_hash` |
| -(the projector of another device needs nothing from it; controllers |
| -get the key in their page). One migration, generated and read. For a |
| +`rehearsal`, `stamp_g`, `stamp_t`, `stamp_id` and `control_epoch`. One migration, generated and read. For a |
| session **already live at deploy**: `slide_id` is resolved from |
| `Slide` against the current view on the first read or command (inside |
| the transaction; empty deck → `""`, which every surface treats as "no |
| slide"), `step` 0, `mode` `full` (shows what it showed before), |
| `rev` the deck's current seq, `clock_started_at` null (the timer |
| starts at the next move), `rehearsal` false, stamp `(0, 0, "")`, |
| -control key minted on the next token mint. |
| +`control_epoch` 0. |
| `Slide` (the index) stays, kept equal to the position's index in the |
| -current order, so old pages keep working, and `present.Event` keeps |
| -its three names with their meanings and gains `slide_id`, `step`, |
| -`mode`, `rev`, `stamp`, `rehearsal`. A later migration drops `Slide` |
| +current order, so old pages keep working, and `present.Event` becomes |
| +that schema, keeping `slide`, `blackout` and `ended` with their |
| +meanings. A later migration drops `Slide` |
| once no page older than this deploy can be open (twelve hours, the |
| session limit). Tests drive an old page and an unstamped form across |
| the change. |
| @@ -369,6 +407,10 @@ test renders a deck with steps through each existing caller and finds |
| every block visible and no step attribute. Only presenting surfaces |
| pass a `BuildAt`: |
| +- An `each` list's items take consecutive presses and every later |
| + group waits for them: a three-item list followed by a block plays as |
| + presses 1, 2, 3 (the items) and 4 (the block). §4.2 is the whole |
| + rule, computed once in Go. |
| - Each element with an effective press (§4.2) is written with |
| `slides-step="<press>"` and `slides-build="<effect>"`; the section |
| carries `slides-presses="<n>"` and `slides-at="<k>"`. |
| @@ -436,34 +478,59 @@ a laptop with no network cannot learn that a session ended or that |
| access was withdrawn. This spec proposes the exception; Paul approves |
| it or not (§11 Q2). |
| -#### Packs: one revision, one response |
| +#### Packs: one revision at a time |
| -`GET /p/{session}/pack?rev=N` (controller only: token or presenter |
| -session, checked as the notes route checks today) returns **every |
| -presenting representation of the deck at seq N** in one JSON response, |
| -from one `openDeckAt(N)`: |
| +`GET /p/{session}/pack?rev=N` returns **the presenting representation |
| +of the deck at seq N**, rendered from one `openDeckAt(N)`: |
| -- the presenting order for both modes (slide ids), each slide's press |
| - count and its projector HTML (fully built, with step attributes); |
| -- the notes HTML for each slide and the next-press SVG thumbnails; |
| +- the presenting order for both modes (slide ids) and each slide's |
| + press count; |
| +- each slide's projector HTML (with press attributes, §3.4); |
| +- for a controller only: each slide's notes HTML and two thumbnails, |
| + step 0 and fully built (below); |
| - the asset refs, font families and static runtime URLs the pages need. |
| -`openDeckAt(seq)` is `openDeckOn` with the newest snapshot at or |
| -below `seq` and the log replayed up to `seq` (the snapshot is derived |
| -data, so this is always possible); `rev` absent means the current seq. |
| -Because one handle renders everything, a pack can never mix revisions |
| -or duplicate a slide moved mid-fetch. Images are content-addressed and |
| -immutable; they are fetched by ref through the session's asset route. |
| - |
| -The **watcher pack** (`/p/{session}/pack?rev=N&watch=1`, sqid only) and |
| -the **follow pack** (`/s/{token}/pack?rev=N`) carry no notes, no |
| -thumbnails of notes, and nothing a watcher cannot already fetch; the |
| -follow pack stays on the share-link route (codex 5). |
| +`openDeckAt(seq)` is `openDeckOn` with the newest snapshot at or below |
| +`seq` and the log replayed up to `seq` (the snapshot is derived data, so |
| +this is always possible). One handle renders a whole pack, so a pack |
| +never mixes revisions or duplicates a slide moved mid-fetch. |
| + |
| +**Which revisions may be asked for.** Never an arbitrary one: |
| + |
| +- A **controller** (token or presenter session) may ask for the deck's |
| + **current** seq, which it is about to publish, or for the session's |
| + published `rev`. |
| +- A **watcher** (sqid) and a **follower** (`/s/{token}/pack?rev=N`, on |
| + the share-link route, codex 5) may ask only for the session's |
| + published `rev`, or the one published immediately before it for 60 |
| + seconds after a change (so a fetch in flight is not refused). Anything |
| + else is `404`. A follower therefore sees exactly what the room sees |
| + and never the deck's history. |
| + |
| +**Assets at a revision.** Pack HTML names images on revision-bound |
| +routes, `/p/{session}/assets/{ref}?rev=N` and |
| +`/s/{token}/assets/{ref}?rev=N`. `serveAsset` gains a revision: it |
| +authorises `N` by the rule above, requires the ref to be in **revision |
| +N's** `assets` map (the set cached per `(deck, rev)`), and still |
| +requires the verified `deck_assets` row. Without `rev` the routes behave |
| +as today, against the current deck. A known hash alone still fetches |
| +nothing. |
| + |
| +**Bounded preparation.** A pack is fetched in **chunks of at most 20 |
| +slides** (`&from=<slide id>`), one chunk at a time per session, each at |
| +most 8 MiB encoded; the whole prepared set is capped at 256 MiB of |
| +Cache Storage, and slide thumbnails are **two per slide** (step 0 and |
| +fully built), not one per press, so an `each` list of N items costs two |
| +pictures, not N. Online, the presenter view still fetches the exact |
| +next-press thumbnail (`?step=k`) lazily; offline it shows the fully |
| +built picture labelled "Next: press k of n". Over any cap, preparation |
| +stops and the presenter view says "Not ready offline: this deck is |
| +too large to keep offline" with the size, and "Ready offline" never |
| +appears. |
| Presenting from packs is what makes positions consistent: every |
| surface interprets `(slide id, press)` against the pack for the `rev` |
| -in the session state, so a laptop and a phone never read one position |
| -against two different step sequences. |
| +in the session state. |
| #### The service worker |
| @@ -476,7 +543,7 @@ against two different step sequences. |
| - **The offline manifest** is the pack plus: the screen and presenter |
| page shells, the hashed runtime (`present.js`, the gate bundle, |
| `slides.css`), the woff2 files of every family in the pack, every |
| - image ref, and every thumbnail the presenter view shows. |
| + image on its revision-bound route, and the pack's thumbnails. |
| - **"Ready offline"** is shown only after the worker is active, every |
| manifest entry is in Cache Storage, and `navigator.storage.persist()` |
| has been asked (its answer is shown: "kept until the session ends" or |
| @@ -499,11 +566,21 @@ against two different step sequences. |
| cache's own metadata at preparation and enforced by the worker, |
| which serves nothing for an expired session and deletes it. |
| - **Revalidation**: whenever the network answers, the worker asks |
| - `/p/{session}/state` first. A `404`, `410`, `401` or `403` — ended, |
| - expired, refused, token rotated — **deletes every cache for the |
| - session at once and shows the refusal**; a cached answer is never |
| - served in place of an explicit refusal. Sign-out on a controller page |
| - deletes the caches too. |
| + `/p/{session}/state` first, and the answer decides: |
| + - `200`: online; the cache stays and is refreshed as §3.5 says. |
| + - `404`, `410`, `401` or `403` (ended, expired, refused, token |
| + rotated): **every cache for the session is deleted at once and the |
| + refusal is shown**; a cached answer is never served in place of an |
| + explicit refusal. |
| + - `503` (team mode: the presenter's standing is Unknown): an |
| + authoritative "not now", not a network failure. The talk **waits**, |
| + as the team rules already say: the projector keeps the slide it |
| + shows, moves are refused with "Waiting for the team directory", the |
| + cache is kept, and it resumes on the next `200`. The offline |
| + exception does not extend to Unknown. |
| + - No answer at all (transport failure): offline; the exception |
| + applies. |
| + Sign-out on a controller page deletes the caches too. |
| - **What it does not cover**: while the laptop stays offline, a talk |
| prepared before revocation stays presentable until its local expiry. |
| That is the exception, and it is why it needs Paul's yes. |
| @@ -534,34 +611,54 @@ stay laid out while hidden. Accumulating lists. Fades. |
| - **The count is derived, never stored** (P2). The deck stored |
| `data-steps` on the slide, which was fine for one writer; two writers |
| would make it disagree with the blocks. |
| -- **One reveal sequence, computed once, in the core's view.** The view |
| - gives each block (and each item of an `each` list) its effective |
| - **press**, and each slide its press count. `core/src/view.rs` and |
| - `fixtures/view.mjs` compute it; Go, the presenter windows and the |
| - inspector read it. The rule: |
| - 1. A block's own step is its `step`, or 1 for a list with |
| +- **One reveal sequence, computed once, from the tree the renderers |
| + draw.** Today `render` and `layout` each have their own copy of the |
| + columns traversal (`unreached` in `render/render.go` and |
| + `layout/layout.go`), including ruling 20's recovery, which nests a |
| + merged cycle under its first unreached columns block |
| + (`render/unreached_test.go`). This work first **factors that |
| + traversal into one function, `deck.Tree(slide) → forest`**, which |
| + render and layout both use (with a test that their output is |
| + unchanged on every existing fixture), and computes presses over **that |
| + forest**, in Go: `deck.Presses(slide, tree)`. Nothing else computes |
| + presses. The pack and the HTML carry them as attributes; the editor |
| + asks the server for them (the stage HTML gains `slides-press` |
| + annotations with nothing hidden, under `render.Options.Editing`); |
| + `slides_get_deck`'s raw view stays as it is and agents read presses |
| + from `slides_check_deck`, which lists each slide's presses. The rule: |
| + 1. A block's own step is its stored `step`, or 1 for a list with |
| `items: each` and no `step`, or 0 (always shown). |
| - 2. **A child can never come before its parent**: a block under a |
| - columns block takes `max(own, parent's)`. Parentage is the |
| - renderer's (ruling 20: the first columns block in reading order |
| - that names a child owns it; unreached blocks have no parent). |
| + 2. **A block can never come before any ancestor in the forest**: its |
| + step is `max(own, every ancestor's)`, so revealing a block always |
| + reveals a visible path to it, and nothing revealed is under a |
| + hidden or inert ancestor. |
| 3. Distinct effective steps are taken in order. Each is a **group**; |
| an `each` list in a group expands to one press per item, and the |
| group lasts as long as its longest list (lists in one group play |
| their items side by side). Every later group starts after it. |
| 4. **A press that would reveal nothing visible is dropped**: a group |
| - made only of spacers, or of text blocks with no text, or of empty |
| + made only of spacers, of text blocks with no text, or of empty |
| lists, takes no press; its blocks are revealed with the next group |
| that has something visible (or are always shown, if none follows). |
| 5. Presses are numbered 1..n densely after that; 0 is the slide |
| before any press. |
| -- **Conformance vectors**: `fixtures/vectors/presses.json`, hand-written |
| - like `font-families.json`, read by the Rust and JS tests (and by a Go |
| - test that checks the view carries them): gaps, duplicates, an `each` |
| - list followed by a block, two `each` lists in one group, a child |
| - stepped before its parent, a merged column cycle, an all-spacer |
| - group, an empty list. A case changes with the rule on both sides in |
| - one commit. |
| +- **Stored steps and presses are different words, everywhere.** A |
| + block stores a **step** (an ordinal); the room sees **presses**. The |
| + inspector does not offer "on press N": it offers **"With …"** (join an |
| + existing group, named by its first block) and **"After …"** (a new |
| + group after a named one), which are exactly the representable |
| + choices, and shows the resulting press range ("presses 1–3" for an |
| + `each` list). It writes stored steps; the API and MCP say `step` for |
| + what is stored and `press` for what is shown. Appearing between two |
| + items of an `each` list is not representable and not offered (§4.4). |
| +- **Conformance vectors**: `internal/slides/deck/testdata/presses.json`, |
| + hand-written, read by the Go tests of `deck.Presses`, `render` and |
| + `layout`: gaps, duplicates, an `each` list followed by a block, two |
| + `each` lists in one group, a child stepped before its parent, a merged |
| + column cycle, a shared child, an all-spacer group, an empty list. For |
| + each case and each press, the vector lists which blocks are visible, |
| + and the render and layout tests assert those blocks are painted and |
| + that **no visible block has a hidden or inert ancestor**. |
| - **Same number, same press.** Two blocks with one number arrive |
| together. |
| - **Items.** `build.items = each` on a list is the only sub-block step; |
| @@ -578,8 +675,8 @@ stay laid out while hidden. Accumulating lists. Fades. |
| ### 4.3 The editor |
| -The inspector's block panel gains "Appears" (with the slide / on press |
| -N / new press) and "Arrives" (appear, fade, rise), and for a list |
| +The inspector's block panel gains "Appears" (with the slide / with … |
| +/ after …, §4.2) and "Arrives" (appear, fade, rise), and for a list |
| "Items: together / one at a time". The stage shows every block, with |
| unrevealed-at-the-current-preview blocks dimmed and a step badge, and a |
| step scrubber under the stage to preview presses. Each control is one |
| @@ -587,7 +684,8 @@ op (`set_block`), so undo and collaboration are the existing ones. |
| ### 4.4 Out of scope |
| -Exit steps (a block that leaves), motion paths, per-block timing, |
| +A block appearing between two items of an `each` list. Exit steps (a |
| +block that leaves), motion paths, per-block timing, |
| auto-advance, the deck's FLIP grid, letter morphs and colour flushes. |
| Effects other than `appear`, `fade` and `rise`. The data leaves room: |
| `build` is a map, so `exit` can be added as a key without a migration. |
| @@ -775,9 +873,14 @@ the deck stream. So rehearsal is mostly arrangement, not machinery: |
| the timer and clock, the position, and the request panel. Signed in, |
| `deckFor` (404 to a stranger), and the scriptless exception the |
| editor already has, with a `<noscript>` linking the presenter view. |
| -- It **starts or joins the presenter's own presentation session**, so |
| - a projector window or a laptop on HDMI follows it, and the keys of |
| - §3.1 drive both. `p` opens the projector. Authority: the rehearsal |
| +- **The GET is read-only.** If the signed-in person has a live |
| + session on the deck, the page joins it (a read); otherwise it shows a |
| + **Start rehearsal** button, a form that POSTs to the existing |
| + `POST /d/{sqid}/present` with `rehearsal=1` (CSRF-protected, like |
| + every state change), which creates the session with `rehearsal: true` |
| + and redirects back. Navigation or prefetch never starts a talk. |
| + Through that session a projector window or a laptop on HDMI follows |
| + the rehearsal, and the keys of §3.1 drive both. `p` opens the projector. Authority: the rehearsal |
| page sends commands as the **signed-in presenter of that session** |
| (`presenterActor`, the same check `presenterNotes` makes, plus the |
| CSRF token), never with the remote token, so joining never re-mints |
| @@ -785,7 +888,7 @@ the deck stream. So rehearsal is mostly arrangement, not machinery: |
| deck can rehearse it in a session of their own (one per presenter, |
| as now). |
| - **The rehearsal flag is the session's, set explicitly.** A session |
| - created from `/d/{sqid}/rehearse` starts with `rehearsal: true`; one |
| + started with `rehearsal=1` starts with `rehearsal: true`; one |
| created from Present starts `false`. Joining an existing session |
| from the rehearsal page **does not change the flag**: it shows the |
| state ("Projector follows edits: off") with a toggle that is a |
| @@ -1026,14 +1129,18 @@ to act on as a request and never to execute. |
| **Request listing is bounded and resumable.** Each deck has a monotonic |
| **request change sequence**; every create, reply and status change |
| stamps the request with the next value (`change_seq`). `after` is a |
| -`change_seq`; results are ordered by it ascending, at most 50 requests |
| -a page, with `next_after`. So an old request that gets a new reply |
| -reappears after the cursor and is never missed. Each request carries |
| -at most its 20 newest replies (each at most 4000 characters) and a |
| -`more_replies` flag; `slides_get_request {request, before?}` pages the |
| -rest. Every page goes through #25's emission checks (deck reach before |
| -headers and per chunk), and the whole result stays under its 1 MiB |
| -bound. |
| +`change_seq`; results are ordered by it ascending, with `next_after` |
| +naming the last request included. So an old request that gets a new |
| +reply reappears after the cursor and is never missed. **Pages are |
| +byte-budgeted**: the encoder adds requests while the encoded page stays |
| +under 768 KiB (leaving room under #25's 1 MiB bound), and stops before |
| +the one that would cross it. Each request carries at most its 5 newest |
| +replies as previews (each at most 4000 characters, so one request with |
| +its previews is at most about 100 KiB encoded and a page always holds |
| +at least one), with `more_replies`; `slides_get_request {request, |
| +before?}` pages a thread under the same byte budget. Every page goes |
| +through #25's emission checks (deck reach before headers and per |
| +chunk). |
| ### 8.3 The request and reply loop |
| @@ -1102,7 +1209,7 @@ The house patterns, applied: |
| `set_slide` optional); vectors regenerated; `vectors_test.go` |
| compares. Library bytes identical in core and bundle (a test reads |
| both). |
| -- **Rust/JS**: ranks from step numbers with gaps and duplicates; |
| +- **Rust/JS**: the new keys and ops round-trip with vectors; |
| `set_slot` refusal on zero or two matches; `add_slide_from_layout` |
| with unknown slot. |
| - **Go**: renderer golden HTML at each step and fully built; `LayoutAt` |
| @@ -1201,3 +1308,14 @@ Ranked by how much the answer changes what gets built. |
| layout blocks (§5.4); typed fills (§5.2); check findings from one |
| revision, `font` kept, catalog keys (§7.3); request listing by change |
| sequence (§8.2). |
| +- **GPT-6 Astra round 2** (on draft 2): 6 P1, 5 P2. Draft 3: packs only |
| + at the session's published revision for watchers and followers |
| + (§3.6); a derived control key with an epoch (§3.2); a recovering |
| + state with one takeover sender, generation check and `409` (§3.2); |
| + presses computed in Go over one factored `deck.Tree`, with ancestor |
| + checks in the vectors (§4.2); revision-bound asset routes (§3.6); |
| + `503` holds the talk rather than counting as offline (§3.6); one |
| + state schema with the clock, answered `200` (§3.2); "with/after" |
| + instead of "on press N" (§4.2); byte-budgeted request pages (§8.2); |
| + chunked, capped preparation with two thumbnails per slide (§3.6); the |
| + rehearsal start as a POST (§6.2). |