oficina / mapa Public

Spec: notes 73-76 and round 4, Fable's re-review of 14ab6a6 (APPROVE)

Note 58's claim that the store accepts a deleted page's autosaves is
corrected (only with a draft already there). Note 67: the in-flight
close's loss is bounded by one round trip of typing, capped by post's
timeout; a commit in flight at close has the same shape; Fable's
next=N / sent=N protocol change is recorded as a follow-up, not built.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 6f1ec3bec3ef6011aa1a96f914718e10a35fb4ca parent 6b18c30
1 file changed, +26 −4
  • docs/superpowers/specs/2026-11-14-mapa-level-up.md +26 −4

CI passed — run details

CI log
=== editor ===
cd editor && npm ci --no-audit --no-fund --loglevel=error

added 16 packages in 313ms
cd editor && node build-bundles.mjs
wrote internal/mapa/static/editor.1969c5f18c953d0a.js (305206 bytes, 95.3KB gzipped; L12 budget 120KB)
cd editor && node --test
✔ L1: mounting then serialising gives cleanBody(body), byte for byte (39.478984ms)
ℹ 760 bodies
✔ L1: mounting a stored body adds nothing, and saving it writes nothing new (53.668462ms)
✔ L2: one edited block changes only that block's bytes; undo gives the body back (96.110275ms)
ℹ 748 single-block edits
✔ L2: inserting or deleting a block changes bytes only at the new seams, by Join (112.303827ms)
ℹ 755 inserts, 715 deletes
✔ L3: seeded edits keep the document and its Markdown saying the same thing (3168.762912ms)
ℹ 18240 edits over 760 bodies
✔ linear: trailing spaces (19.399982ms)
✔ linear: trailing whitespace (12.422984ms)
✔ linear: unclosed web links (11.049246ms)
✔ linear: web links with no address (19.162674ms)
✔ linear: unclosed wiki links (22.029535ms)
✔ linear: unclosed embeds (13.621445ms)
✔ linear: closes only (8.087788ms)
✔ golden file has bodies (0.596636ms)
✔ markup.mjs parses every body into Go's blocks, byte offsets and all (13.623797ms)
✔ markup.mjs strips and spans every block as Go does (22.375709ms)
✔ the schema's toDOM draws every body as Go renders it (45.259637ms)
✔ emphasis draws the four pinned outputs (14.95145ms)
✔ a body ends in the editor's empty paragraph (0.213556ms)
✔ a POST that never answers is aborted after the timeout (20.892889ms)
✔ a keepalive POST carries no signal, and an answer clears the timer (1.046339ms)
✔ autosave sends only what differs, and the tab owns the draft it wrote (7.97007ms)
✔ an offered draft never commits by itself; Save commits it (0.934212ms)
✔ reload, then close: sessionStorage says the draft is this tab's own (0.451647ms)
✔ closing carries text not yet sent, and the cap leaves it out (18.772912ms)
✔ clean rebase: applied, the caret survives, the base moves by the rebase POST (3.625118ms)
✔ the block under the caret is the teammate's too, and undo brings back yours (5.153721ms)
✔ typing mid-flight: the merge is not applied and the base does not move (0.899026ms)
✔ a merge the editor cannot represent stops after three tries (2.948184ms)
✔ a conflict is shown, locks the editor's own commits, and Resolve settles it (0.973293ms)
✔ leaving: a conflict stays with the choice; a failed flush offers Leave anyway; a stored draft leaves (1.202358ms)
✔ a stale tab shows the newer draft, offered, and never overwrites it (0.737146ms)
✔ the first scratch commit: empty creates nothing, then one page, then drafts on it (0.618526ms)
✔ noBase and gone lead to the existing choices (0.628845ms)
✔ a commit that merged is applied when nothing was typed since (0.89019ms)
✔ back from the cache: nothing unsaved reloads, unsaved text autosaves at once (5.62744ms)
✔ an own draft committed meanwhile goes on as a new draft (1.14873ms)
✔ a reload keeps a stored draft; unsent text still commits (0.486511ms)
✔ a page deleted mid-edit: what is typed is still stored as the draft, and nothing commits (H1) (0.885771ms)
✔ an offered draft committed in another tab: typing goes on as a new draft (H1) (1.874344ms)
✔ a commit reply without a revision is not a commit; an emptied day starts afresh (H2) (0.924394ms)
✔ Resolve stores what was typed first, and takes no typing until its answer is applied (M1) (3.86349ms)
✔ closing with a choice open, or commits held, still writes the text, never commits (M2) (0.942477ms)
✔ closing inside the settling window sends the loaded version with settling=1 (M3) (0.270121ms)
✔ a clean merge not applied because of typing still ends the choice on show (M4) (0.696861ms)
✔ settling finds the draft committed with a teammate's text: a close still writes (M-A) (0.388971ms)
✔ settling finds another tab's newer draft: the tab shows it before any typing (0.525994ms)
✔ a page deleted before the first autosave: the text is offered as a scratch page, and a close makes one (M-B) (0.482574ms)
✔ an autosave that never answered but landed: its 409 keeps the typing since (L3) (0.608848ms)
✔ marks: em outside strong, bold reopened around italics, edges outside (4.168605ms)
✔ marks close before code, links and atoms, and reopen after (0.347945ms)
✔ untouched blocks and atoms re-emit their source; edited atoms are written from attributes (4.498877ms)
✔ empty blocks are written as nothing (1.743381ms)
✔ an unclosed fence that is no longer last gets its closing fence (0.991607ms)
✔ the structure check puts Join's seam where a kept one would merge two blocks (1.51047ms)
✔ prepareSave adopts the parse when no seam or rewrite can save the document (3.132487ms)
✔ reparse: typed emphasis becomes a mark, "- " after a break becomes an item (2.329046ms)
✔ a trailing hard break stays on screen and is written as nothing (0.543377ms)
✔ the reparse waits while an IME is composing (0.736384ms)
✔ copied blocks paste with their bytes and seams; a cut and paste gives the body back (2.78414ms)
✔ a forged x-mapa slice is refused, and text from outside is read as Markdown (0.666015ms)
✔ rebuild changes origins only, outside undo history (1.27357ms)
✔ applyBody takes a teammate's block, keeps the caret, and ends untouched (1.042582ms)
✔ a block whose context changed is written again: a task toggled, a bullet, a quote (2.058044ms)
✔ a duplicate ^id typed above its holder never takes the id from it (0.72347ms)
✔ a copy-dragged block is reparsed, and says what its Markdown says (1.057861ms)
✔ a history command that throws is refused, never thrown (3.455764ms)
ℹ tests 66
ℹ suites 0
ℹ pass 66
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 3573.516369
=== vet ===
go vet ./...
go vet -tags browser ./internal/mapatest/
=== fmt ===
=== code ===
go tool rastrillo budget code
The base has no .rastrillo/code.txt: skipping the check that records only go down.
budget code: within the limits.
=== test ===
CGO_ENABLED=0 go test ./...
?   	amadan.net/oficina/mapa/cmd/mapa	[no test files]
ok  	amadan.net/oficina/mapa/internal/mapa	0.495s
?   	amadan.net/oficina/mapa/internal/mapa/icons	[no test files]
ok  	amadan.net/oficina/mapa/internal/mapa/markup	0.056s
ok  	amadan.net/oficina/mapa/internal/mapa/seal	0.002s
ok  	amadan.net/oficina/mapa/internal/mapatest	8.189s
?   	amadan.net/oficina/mapa/scripts/mutate	[no test files]
?   	amadan.net/oficina/mapa/scripts/preview	[no test files]
=== migration-check ===
go tool rastrillo migration check
rastrillo migration check: models and migrations agree
=== credits-check ===
python3 scripts/credits.py --check
credits: checked
diff --git a/docs/superpowers/specs/2026-11-14-mapa-level-up.md b/docs/superpowers/specs/2026-11-14-mapa-level-up.md
index 8e90084..46ef2c6 100644
--- a/docs/superpowers/specs/2026-11-14-mapa-level-up.md
+++ b/docs/superpowers/specs/2026-11-14-mapa-level-up.md
@@ -1,6 +1,6 @@
# Mapa level-up: Contexto with Página's rail, and a page you write on
-**Status:** revision 3, 2026-11-14. APPROVED (Fable approved revision 2 on N1–N5; revision 3 applies them). **Phase 1 and Phase 2 are built** on `design/level-up`, for the final review: not merged, not deployed. §13 records the choices (notes 1–67). Fable's final review of `58fd476` (CHANGES REQUIRED, 2 high) is answered on `level-up/review-fixes` (§14, round 3).
+**Status:** revision 3, 2026-11-14. APPROVED (Fable approved revision 2 on N1–N5; revision 3 applies them). **Phase 1 and Phase 2 are built** on `design/level-up`, for the final review: not merged, not deployed. §13 records the choices (notes 1–76). Fable's final review of `58fd476` (CHANGES REQUIRED, 2 high) is answered on `level-up/review-fixes` (§14, round 3); its re-review of `14ab6a6` (APPROVE) is answered on `level-up/review-fixes-2` (§14, round 4).
- **Round 1.** Claude Fable 5.2 reviewed revision 1 (`4027e10`) and found CHANGES REQUIRED: 4 high, 10 medium and 11 low findings. Revision 2 (`ad06a4e`) answered them.
- **Round 2.** Fable **approved revision 2 on condition** that N1–N5 and its lows go in. This revision makes those changes.
- §14 maps every finding from both rounds to what changed.
@@ -1079,7 +1079,7 @@ Phase 1's choices where this spec was silent, or where the build chose different
28. **A save that changes nothing** reports the outcome it computed: a `Merged` result equal to the current body still answers `merged` with the body, so the tab takes the teammate's text. From a stale tab it is `Kept`. The draft is dropped only if it is still the version the tab held. Restore still mints a revision: it is its own verb.
29. **Resolve's JSON** `outcome` is `saved`, `merged`, `conflicted`, `noBase` or `kept`. A choice that no longer fits (another revision landed, the draft changed, a choice missing) answers `conflicted` with the current `revision` and `body`; no draft at all is the 404 it was.
30. **Make team page's `revision`** is required: none is stale. The refusal asks the person to choose again.
-31. **The first scratch commit (D12) is keyed by a token**, `first=<16–64 of [A-Za-z0-9_-]>` on `POST /scratch`, which the tab draws once for the new page and sends until it learns the page's address. The server keeps (person, token) → page in memory only, for 10 minutes and at most 4,096 at once (past that a new token is refused with 503 `{refused: "busy"}` and makes nothing, note 66), and runs the whole create-or-look-up under one lock. So the first request creates the page and answers `{href, page, revision}`; any later one with the token is an autosave of a draft on that page, answered like any autosave plus `{href, page}`; an empty body is 422 `{empty: true}` and creates nothing. Nothing new is stored, so §4 is unchanged. The version check could not key it, because no draft row exists before the page. A token forgotten (past 10 minutes, or across a restart or a CARLOS swap) makes a second page; only a tab still sending its first token that late meets it.
+31. **The first scratch commit (D12) is keyed by a token**, `first=<16–64 of [A-Za-z0-9_-]>` on `POST /scratch`, which the tab draws once for the new page and sends until it learns the page's address. The server keeps (person, token) → page in memory only, for 10 minutes and at most 4,096 at once (past that a new token is refused with 503 `{refused: "busy"}` and makes nothing, note 66; the cap is now 256 per person, note 76), and runs the whole create-or-look-up under one lock. So the first request creates the page and answers `{href, page, revision}`; any later one with the token is an autosave of a draft on that page, answered like any autosave plus `{href, page}`; an empty body is 422 `{empty: true}` and creates nothing. Nothing new is stored, so §4 is unchanged. The version check could not key it, because no draft row exists before the page. A token forgotten (past 10 minutes, or across a restart or a CARLOS swap) makes a second page; only a tab still sending its first token that late meets it.
32. **The island** is on `/p/{id}` (and `/p/{id}/history`, the current page with the panel), `/` and `/d/{date}` written or not, and `/scratch/new`. Its `base` is the page's current revision, `"0"` for a day or page not written yet; `draft.base` is the draft's own. Link keys are the target as typed, with `#^id` for a block. A date's `title` is the day in words; a pending link's is empty. `?saved=1` and a day re-shown after a refused Save carry none: neither is the text the draft continues.
33. **`POST /links/resolve`** takes form fields `target`, each a link key (anything after `|` is ignored). Over 32 is 422 `{refused: "too many"}`. The answer is keyed by each key as sent; a key with no target is left out.
34. **The draft bar** says "You're seeing the saved version" under `?saved=1`, with "Show your unsaved version". "Show the saved version" is left off where nothing is saved yet (an unwritten day) and in the Markdown editor.
@@ -1112,7 +1112,7 @@ Phase 1's choices where this spec was silent, or where the build chose different
**Fable's final review of `58fd476`** (round 3, §14):
-58. **A page deleted mid-edit keeps what is typed** (review round 3, H1). Of the two fixes offered, the editor keeps autosaving the draft and never commits; making the view read-only was the other. Autosaving never loses text: what was typed between the autosave that met the delete and its reply is stored too, and the person can go on writing while they decide. The store accepts the writes (`mayDraft` allows a deleted page's own draft). The save status says "Saved as a draft" (`notices.mjs`, a state estilo's savestatus has no words for), the bar says nothing typed is saved to the page, and its Save as a scratch page and Discard store the typing first and post the version the tab now holds. Leaving inside Mapa goes (the draft is Today's offer); closing writes the draft without `commit=1`. The other stop of the same shape, an offered draft another tab committed (409 `committed`), no longer stops either: the tab shows the page as it now is and typing is a new draft.
+58. **A page deleted mid-edit keeps what is typed** (review round 3, H1). Of the two fixes offered, the editor keeps autosaving the draft and never commits; making the view read-only was the other. Autosaving never loses text: what was typed between the autosave that met the delete and its reply is stored too, and the person can go on writing while they decide. The store accepts the writes when the person already has a draft on the page (`mayDraft` allows a deleted page's own draft); a page deleted before the tab's first autosave is refused (404), and note 74 covers that case. (Round 3 said the store accepts the writes without that condition, which was wrong.) The save status says "Saved as a draft" (`notices.mjs`, a state estilo's savestatus has no words for), the bar says nothing typed is saved to the page, and its Save as a scratch page and Discard store the typing first and post the version the tab now holds. Leaving inside Mapa goes (the draft is Today's offer); closing writes the draft without `commit=1`. The other stop of the same shape, an offered draft another tab committed (409 `committed`), no longer stops either: the tab shows the page as it now is and typing is a new draft.
59. **A commit is a reply with a revision** (H2). An emptied draft on an unwritten day commits nothing: `commitDay` drops it if it is still the version the tab held (`DiscardDraft`, a draft write, exempt from gate 8 by name, §5) and the store answers `ErrEmpty`; the handler answers `{saved: false, empty: true, href: "/d/<date>"}` (a form goes to the day). A page deleted under the commit (`ErrPageGone`) answers `{saved: false, gone: true, href: "/"}` and keeps its draft. The saver takes `empty` as a fresh start from version 0, `gone` as note 58's state, and any other answer without `revision` as a failed commit.
60. **Resolve commits from the text on screen** (M1). Text typed since the conflict's reply is autosaved first, so Resolve's `version` is the draft that holds it; if that reply carries a different choice, it is shown to choose again. While the POST is out the editor takes no typing (the conflict plugin's `isBusy`: a filter on transactions and a cancelled `beforeinput`), so the answer never lands over text it did not include. A reply carrying the same hunks for a newer version keeps the choice on show and what was picked in it.
61. **Commits held, text still written** (M2). With a choice open, a page deleted (note 58) or commits held (note 56), `pagehide` still writes the text not yet sent, as the draft only, without `commit=1`. Closing sends `prepare()`'s text, the structure check's, as autosave does.
@@ -1123,7 +1123,9 @@ Phase 1's choices where this spec was silent, or where the build chose different
66. **Lows fixed in round 3.** The view forms' `return` uses `safeReturn`'s rule (no control character at all). The first scratch commit's token map refuses a new token when full instead of forgetting it (note 31). L7 pages the month calendar. The marker rule keeps an `^id` on the block that held it before the edit, so a duplicate typed above never takes it. A copy-dragged block (the very node it copied) is reparsed. Undo and redo are guarded: a step prosemirror-transform throws on is refused.
67. **Lows recorded, not fixed.**
- **A commit that merged while the person kept typing in that block** keeps the old base (today's `mapa.js` rule), so the next commit meets the person's own committed text in that block as a conflict, shown inline; nothing is lost. Note 62's settling draft is the same. The fix wants a three-way merge in the editor against the text sent, or the sent text carried to the server; neither is cheap.
- - **An autosave in flight when the tab closes.** The closing POST carries the version from before it; when the in-flight write lands first, the close is a stale 409. The in-flight text is stored as the draft and offered on the next visit; what was typed after it was sent (one autosave interval and a round trip at most) is lost unless the tab is restored. Fixing it needs the tab to know the next version before the reply (a version the client draws) or the store to accept the previous one: a protocol change, left. It is the same class of limit as the 64KB keepalive cap.
+ - **An autosave in flight when the tab closes.** The closing POST carries the version from before it; when the in-flight write lands first, the close is a stale 409. The in-flight text is stored as the draft and offered on the next visit; what was typed after it was sent is lost unless the tab is restored. That is bounded by one round trip of typing: the close comes before the reply. A stalled request would stretch it to the stall's length; post's 10-second timeout (note 75) caps that. Fixing it needs the tab to know the next version before the reply (a version the client draws) or the store to accept the previous one: a protocol change, left. It is the same class of limit as the 64KB keepalive cap.
+ - **A commit in flight when the tab closes**, the same shape: ⌘S, more typing, then ⌘W inside the commit's round trip. The commit lands first and drops the draft, so the closing POST (`commit=1` with the old version) meets a 409 `committed` and writes nothing: the typing after ⌘S is lost. Same bound, same fix.
+ - **The smallest protocol change, a follow-up, not built** (Fable's): each autosave and commit carries `next=N`, a version the tab draws; a closing POST sends `version=V&sent=N`, and the store accepts the draft at either V or N. Then a close never meets its own request in flight.
- **The marker and reparse rules still fight over a block whose text is only its marker.** `- ^ab` reads as an item whose text is `^ab` and whose marker is `ab` (Go counts the item's space as the marker's). Duplicated, the marker rule takes the copy's marker and the reparse gives it back, until settle's four rounds run out. Fuzzing L3 with other seeds and 40 steps finds it in 1 to 5 bodies of 760 per seed, at `58fd476` as now. Fixing it means drawing a marker-only block as empty text with a marker, which changes `fromMarkdown` and the serialiser together under L4: left for its own change.
- **Undo's root.** Settle's transaction, with the steps that set blocks' origins, is in undo history; inverted and mapped through later edits, such a step can land on a text node. Note 66 guards it; it is not removed.
@@ -1135,6 +1137,11 @@ Phase 1's choices where this spec was silent, or where the build chose different
71. **Cross-document view transitions were tried and left out.** `@view-transition { navigation: auto }` with the bar, the sidebar and the Links panel named, swapped in place with no animation, and only the page crossfading in 100ms (none under reduced motion) worked as designed in Chromium and Playwright's WebKit, with no measurable delay to first paint, the glass panel unchanged, and the frame's pixels the same mid-transition as after. But it cost two things the brief rules out. Chromium takes no input while a transition runs: a click 0 to 50ms after a page arrives was dropped every time (75ms and later landed), with `::view-transition { pointer-events: none }` too, and `TestAPostHoldsAndAViewSwitchDoesNot` failed on it. And when a navigation starts while the previous one's transition is still running, Chromium sometimes rejects the new page's transition with an uncaught `InvalidStateError: Transition was aborted because of invalid state. Page already revealed`, which no page script can catch (it is rejected after `pagereveal`, scripts off too), so gate 7's no-console-error walk with scripts off failed in 2 of 4 runs, and a loop of its first three steps in 1 of about 100. The race is in the browser, so a real person's console would show it too. What it would have added is small: a same-origin navigation already keeps the old frame on screen until the new page paints (paint holding), and a screencast of four navigations without transitions shows no blank or partial frame; the bar and the sidebar are the same pixels before and after. A same-document transition would need a client-side router, which is not Mapa's shape. Worth trying again when Chromium lets input through during a transition.
72. **Back and forward, and where a move lands** (an audit, no change). Chromium (Chrome's back/forward cache for `Cache-Control: no-store` pages, measured with the cache enabled) restores a screen without the editor, such as All pages, from the back/forward cache: `pageshow` with `persisted` true and no request. `no-store` stays on every signed-in page, as it should. A page with the editor is restored too, and then reloads itself on purpose (`Saver.shown`, §6.5: with nothing unsaved, the page is loaded again, since a teammate or the commit made on leaving may have changed it). A screencast of going back to a long page scrolled 1500px down shows no blank frame: the restored page, then the reloaded one, the same pixels, still at 1500px. It costs a full load on every Back to an editor page; asking the server by GET whether the revision moved, and reloading only then, would make Back instant there, and is left as a follow-up. No script has an `unload` handler (estilo's busy.js adds a `beforeunload` only while a held POST is in flight, which does not stop the cache). Safari's back/forward cache was not checked: Playwright's WebKit restored nothing, for any page. Where a move lands: from a page scrolled 1200px down, a sidebar item, a Links-panel chip and a ⌘K result each open the next page at the top, and a day-strip day and the day pill's step do too, with `scrollY` 0 on every frame for 1.2s after load. New scratch page (1440 and 390 wide) and a new team page take the caret at mount (build note 57) and do not scroll: ProseMirror focuses with `preventScroll`.
+73. **Settling that finds a merged commit goes on from version 0** (review round 4, M-A). When `settle()` found the loaded draft committed but the page holding more than its text (a teammate's merged in), it left the version at the loaded value and stopped settling, so a close sent that version without `settling=1` and the store, finding no draft, answered 409 and wrote nothing. It now goes on from version 0 and the old base, as `recover()` does. A different draft found while settling (another tab's) is shown at once, offered, when nothing is typed yet; typed text before that still meets it as a 409 at the next autosave and is replaced, which would want the merge note 67 records.
+74. **A page deleted before the tab stored any draft on it** (M-B; corrects note 58). `mayDraft` refuses it (404): the person has no draft for the store to keep. The saver takes a 404 from the drafts route as that state: it sends nothing more there, the status says "Not saved", and the bar offers Save as a scratch page, which posts the text to the existing `POST /scratch`. Leaving inside Mapa shows the offer again beside Leave anyway; a close makes the scratch page with one keepalive `POST /scratch`, so what was typed is never only in a closed tab.
+75. **A bar's action does not go on a failed flush; a hung POST times out** (L2, L3). Save as a scratch page and Discard are not sent when the flush before them failed, and the bar says so; Show the saved version offers Leave anyway instead of going. `post.mjs` aborts a request after 10 seconds (never a keepalive one), and the saver retries. An aborted request may have landed; every draft write is version-checked, so the retry meets a 409 whose body is the text that request sent, and the saver takes that as its own: its version, and the typing since autosaved, never replaced.
+76. **The first scratch commit's tokens are held per person** (L4; amends notes 31 and 66): at most 256 each, refused past that, so one person's tabs never use up anyone else's.
+
## 14. Findings and what changed
@@ -1215,3 +1222,18 @@ CHANGES REQUIRED, 2 high, answered on `level-up/review-fixes`. Every high and me
| **Gate** `TestSettleFallsBackToJoinWhenTheBytesWouldNotParse` passed without the structure check | Kept and Join bytes now differ | red with the check removed | `a64af65` |
| **Gate** "Untouched" ignoring context survived `make ci` | A `serialize.test.mjs` case changes context alone (task, bullet, quote) | red with `checked` dropped from the context key, which L3 misses | `e378892` |
| **Gate** The accessor's scope mutation was caught through one read | Gate 1 also compares a week alone and a month alone holding the day | all three comparisons differ under the mutation | `f3c0817` |
+
+### Round 4: Fable's re-review of 14ab6a6 — APPROVE
+
+No high. The mediums and lows are answered on `level-up/review-fixes-2`, without another review round. Each medium's gate was shown red with its fix reverted.
+
+| Finding | Change | Gate, red without the fix | Commit |
+|---|---|---|---|
+| **M-A** (M3's residual) `settle()` found the draft committed with a teammate's text, left the loaded version, and a close then 409ed and wrote nothing | Version 0 and the old base, as `recover()` (note 73) | `saver.test.mjs` "settling finds the draft committed with a teammate's text" | `c7e7aa4` |
+| **L** A different draft found while settling made the close stale and the next 409 replaced typing | Shown at once, offered, when nothing is typed; the rest recorded (note 73) | `saver.test.mjs` "settling finds another tab's newer draft" | `c7e7aa4` |
+| **M-B** (H1's residual) A page deleted before the first autosave: 404, three retries, Failed after ~17s, no bar; the close 404ed | A 404 is that state: Not saved, Save as a scratch page via `POST /scratch`, offered again on leaving, made by the close; note 58 corrected (note 74) | `saver.test.mjs` M-B; `TestL9APageDeletedBeforeAnyDraftOffersAScratchPage` (browser, never saw the offer on the old bundle) | `f39d651` |
+| **L2** A bar's form was sent after a failed flush; Show the saved version went anyway | Not sent, and the bar says so; Leave anyway offered (note 75) | — | `f39d651` |
+| **L3** `post()` had no timeout: a hung autosave blocked every later one | `post.mjs` aborts after 10s; a landed aborted write is known as the tab's own (note 75) | `post.test.mjs`; `saver.test.mjs` L3 (the typing was replaced) | `9db58d6` |
+| **L4** `firstCap` was one map for everyone | Per person, 256, failing closed (note 76) | `TestAFullTokenMapRefusesANewPage` (Bo refused under the old global count) | `6b18c30` |
+| **Note 67** The in-flight close's loss bound; the commit-in-flight shape; the protocol change | Corrected and added; `next=N` / `sent=N` recorded as a follow-up, not built | — | this commit |
+| **Merge** `design/level-up` moved to `8c65d76` (smooth-nav) | Merged; `page.mjs` keeps `uncommitted()` and round 4's `flushFirst`; bundle rebuilt, credits regenerated | — | `63ffda6` |