Build note 89: the re-review's lows, the 286px panel, and what the 133 counted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+2
−2
docs/superpowers/specs/2026-11-14-mapa-level-up.md+2 −2
CI passed — run details
CI log
=== editor ===
cd editor && npm ci --no-audit --no-fund --loglevel=error
added 16 packages in 332ms
cd editor && node build-bundles.mjs
wrote internal/mapa/static/editor.76f9a0ad7441c734.js (364488 bytes, 114.4KB gzipped; L12 budget 120KB)
cd editor && node --test
✔ a badge is named for what it does, starting with its visible word (1.079231ms)
✔ first words stop at five words or forty characters (0.183432ms)
✔ the field keeps one trimmed line, without brackets (0.263511ms)
✔ the field holds at most MaxAlt bytes, cut at a character (0.503148ms)
✔ a block becomes column 1 of two, and undo gives it back (9.575868ms)
✔ a selection over blocks moves them all into column 1 (1.90937ms)
✔ no layout is made inside a layout (4.855661ms)
✔ Add a column, Remove this column and Undo columns (11.160414ms)
✔ Undo columns puts the blocks in reading order (0.68122ms)
✔ Backspace in an empty column takes the column away (4.341753ms)
✔ ⌥⌘→ and ⌥⌘← move between columns (1.002579ms)
✔ typing a fence line in a column never closes it (D16) (9.262054ms)
✔ a selection holding a layout makes no nested layout (H1) (3.675871ms)
✔ a fence typed after a break in a column stays in the column (H2) (4.02355ms)
✔ code holding a fence line and ::: stays code in its column (H2) (4.246416ms)
✔ Backspace after a layout and Delete before one join nothing (M4) (0.947977ms)
✔ deleting across columns keeps every column (M3) (3.134693ms)
✔ a layout pasted into a column arrives as its blocks (M1) (4.255592ms)
✔ copying inside one column puts no fence on the clipboard (M2) (0.335415ms)
✔ typing goes on in the column after a structural reparse (round 2) (9.248108ms)
✔ a structural reparse in a column leaves code as it was (round 2) (2.57005ms)
✔ days and weeks move across months and years (1.296967ms)
✔ a month keeps the day, or takes the month's last (0.256979ms)
✔ the grid is six weeks from Monday, as the month calendar draws it (12.674545ms)
✔ the grid starts the week where the locale does (0.561196ms)
✔ the keys move a day, a week, a month and a year (0.246188ms)
✔ the picked day is the chip [[ makes for a date (32.565311ms)
✔ Insert → Today's date still puts today in at once (3.088266ms)
✔ / offers Date, the picker, and Today's date beside it (0.374047ms)
✔ after a ! the chip goes in after a space, never as an embed (10.490823ms)
✔ where the Markdown would read the chip differently, it is refused (4.545613ms)
✔ over a selection the chip goes after it and the words stay (3.303598ms)
✔ today is the day in the viewer's zone (19.933867ms)
✔ every offered locale has cases (1.112554ms)
✔ dates.mjs writes every date Go writes, byte for byte (4.99421ms)
✔ a chip, the month and the week, in three locales (0.523987ms)
✔ dates.json is what ICU gives, byte for byte (459.846907ms)
✔ L1: mounting then serialising gives cleanBody(body), byte for byte (109.10014ms)
ℹ 904 bodies
✔ L1: mounting a stored body adds nothing, and saving it writes nothing new (85.043099ms)
✔ L2: one edited block changes only that block's bytes; undo gives the body back (151.082547ms)
ℹ 891 single-block edits
✔ L2: inserting or deleting a block changes bytes only at the new seams, by Join (159.86645ms)
ℹ 899 inserts, 837 deletes
✔ L3: seeded edits keep the document and its Markdown saying the same thing (5047.776377ms)
ℹ 21696 edits over 904 bodies
✔ L3: Link to a page makes exactly one chip, and changes nothing else (1257.692361ms)
ℹ 4724 links over 904 bodies; refused: {"A page link can’t hold another link or a line break. Select plain words.":945,"A page link can’t show [ or ]]. Select words without them.":404,"Select some words to link them to a page.":174,"Linked here, the Markdown around these words would read differently: a ! before them makes an embed, and a stray ` or * pairs up. Select other words.":18}
✔ L3: a picked date is one more date chip, or refused where a letter would be too (1276.697561ms)
ℹ over 904 bodies: {"inserted":5356,"spaced":23,"refused":45,"unstable":9}
✔ linear: trailing spaces (48.628743ms)
✔ linear: trailing whitespace (34.673901ms)
✔ linear: unclosed web links (23.504223ms)
✔ linear: web links with no address (23.817044ms)
✔ linear: unclosed wiki links (22.771737ms)
✔ linear: unclosed embeds (22.227701ms)
✔ linear: closes only (8.614417ms)
✔ the selected words become the chip's shown text (9.816468ms)
✔ words that are the title make a plain [[Title]] (2.910756ms)
✔ spaces at the selection's edges stay outside the chip (1.036842ms)
✔ a date makes a date link, in a heading, an item and a quote (5.166581ms)
✔ bold words lose their bold: a chip carries no marks in Mapa's Markdown (1.167366ms)
✔ only the linked block's bytes change, and undo gives the body back (2.384374ms)
✔ a selection across blocks, over a chip or a break, or of brackets is refused (1.116161ms)
✔ a target the words cannot be linked to as typed is refused (0.435662ms)
✔ ⌘L: over a selection it opens Page link; with none it types [[; in code it does nothing (2.485483ms)
✔ web-linked words are refused: the address would be lost (review M4) (1.741807ms)
✔ words whose Markdown would read otherwise are refused (review M3) (2.934609ms)
✔ ⌘A then ⌘L says why, instead of doing nothing (review low 1) (0.443236ms)
✔ linkCheck says why it refuses (review low 2) (0.576114ms)
✔ golden file has bodies (0.861004ms)
✔ markup.mjs parses every body into Go's blocks, byte offsets and all (25.624224ms)
✔ markup.mjs strips and spans every block as Go does (76.77096ms)
✔ the schema's toDOM draws every body as Go renders it (72.358404ms)
✔ emphasis draws the four pinned outputs (18.448588ms)
✔ a body ends in the editor's empty paragraph (0.254916ms)
✔ the editor labels date chips as Go does, in every locale L4 holds (10.069127ms)
✔ a POST that never answers is aborted after the timeout (23.442536ms)
✔ a keepalive POST carries no signal, and an answer clears the timer (1.190469ms)
✔ autosave sends only what differs, and the tab owns the draft it wrote (11.814783ms)
✔ an offered draft never commits by itself; Save commits it (1.682777ms)
✔ reload, then close: sessionStorage says the draft is this tab's own (0.674387ms)
✔ closing carries text not yet sent, and the cap leaves it out (48.457813ms)
✔ clean rebase: applied, the caret survives, the base moves by the rebase POST (4.693549ms)
✔ the block under the caret is the teammate's too, and undo brings back yours (3.596925ms)
✔ typing mid-flight: the merge is not applied and the base does not move (1.681625ms)
✔ a merge the editor cannot represent stops after three tries (5.52043ms)
✔ a conflict is shown, locks the editor's own commits, and Resolve settles it (2.00635ms)
✔ leaving: a conflict stays with the choice; a failed flush offers Leave anyway; a stored draft leaves (2.228935ms)
✔ a stale tab shows the newer draft, offered, and never overwrites it (1.323818ms)
✔ the first scratch commit: empty creates nothing, then one page, then drafts on it (0.854042ms)
✔ noBase and gone lead to the existing choices (0.784763ms)
✔ a commit that merged is applied when nothing was typed since (1.043115ms)
✔ back from the cache: nothing unsaved reloads, unsaved text autosaves at once (8.730484ms)
✔ an own draft committed meanwhile goes on as a new draft (1.613959ms)
✔ a reload keeps a stored draft; unsent text still commits (0.660351ms)
✔ a page deleted mid-edit: what is typed is still stored as the draft, and nothing commits (H1) (1.279645ms)
✔ an offered draft committed in another tab: typing goes on as a new draft (H1) (3.839937ms)
✔ a commit reply without a revision is not a commit; an emptied day starts afresh (H2) (1.0033ms)
✔ Resolve stores what was typed first, and takes no typing until its answer is applied (M1) (2.55884ms)
✔ closing with a choice open, or commits held, still writes the text, never commits (M2) (1.118565ms)
✔ closing inside the settling window sends the loaded version with settling=1 (M3) (0.277788ms)
✔ a clean merge not applied because of typing still ends the choice on show (M4) (0.802727ms)
✔ settling finds the draft committed with a teammate's text: a close still writes (M-A) (0.432326ms)
✔ settling finds another tab's newer draft: the tab shows it before any typing (0.664018ms)
✔ a page deleted before the first autosave: the text is offered as a scratch page, and a close makes one (M-B) (0.629454ms)
✔ an autosave that never answered but landed: its 409 keeps the typing since (L3) (0.551448ms)
✔ marks: em outside strong, bold reopened around italics, edges outside (5.811643ms)
✔ marks close before code, links and atoms, and reopen after (0.354681ms)
✔ untouched blocks and atoms re-emit their source; edited atoms are written from attributes (6.513952ms)
✔ empty blocks are written as nothing (3.142488ms)
✔ an unclosed fence that is no longer last gets its closing fence (1.511658ms)
✔ the structure check puts Join's seam where a kept one would merge two blocks (2.232812ms)
✔ prepareSave adopts the parse when no seam or rewrite can save the document (3.120476ms)
✔ reparse: typed emphasis becomes a mark, "- " after a break becomes an item (3.148448ms)
✔ a trailing hard break stays on screen and is written as nothing (0.732495ms)
✔ the reparse waits while an IME is composing (1.045147ms)
✔ copied blocks paste with their bytes and seams; a cut and paste gives the body back (5.367905ms)
✔ a forged x-mapa slice is refused, and text from outside is read as Markdown (1.760051ms)
✔ rebuild changes origins only, outside undo history (2.249162ms)
✔ applyBody takes a teammate's block, keeps the caret, and ends untouched (1.485318ms)
✔ a block whose context changed is written again: a task toggled, a bullet, a quote (2.138376ms)
✔ a duplicate ^id typed above its holder never takes the id from it (1.264827ms)
✔ a copy-dragged block is reparsed, and says what its Markdown says (1.364694ms)
✔ a history command that throws is refused, never thrown (7.586782ms)
✔ an image re-emits its source, and an edited alt changes only its span (1.363893ms)
✔ a paste whose image copy is refused says why and pastes nothing (16.931189ms)
✔ a line of image openers reads in linear time (92.692198ms)
✔ a line of shared link address reads in linear time (14.346272ms)
✔ a line of shared web address reads in linear time (46.019429ms)
✔ one rename at a time, from either field (2.350261ms)
✔ an empty or unchanged title sends nothing (0.197528ms)
✔ a refusal keeps what was typed, and the title (0.358398ms)
✔ the pending state holds for the busy rule (6.016044ms)
✔ a failed POST says so and keeps the title (0.360893ms)
✔ Update links posts the confirm page's POST (0.213377ms)
✔ clean is CleanTitle's whitespace rule (0.117549ms)
✔ the saver's base follows a rename made over it, and only that (0.239977ms)
✔ closing sends the rename as one keepalive POST (3.667215ms)
✔ the port answers every shared case as typeddate.go does (5.439439ms)
✔ numbers follow the locale: 12/11 is November in en-IE, December in en-US (0.201396ms)
✔ M6: several files land in the order they were chosen (37.009685ms)
✔ M5: one Backspace before the box keeps the image where the box is (11.85592ms)
✔ M5: undoing text typed just before the box keeps the upload (12.81147ms)
✔ L12: a failed upload an undo takes away does not stall the next (12.596349ms)
✔ M4: Replace… keeps the old image until the new one is in, and its alt (13.799131ms)
✔ M3 and N1: text wins, except over a picture copied from a page (1.493684ms)
✔ N2: a JPEG over 10 MB is scaled before its size is checked (10.984345ms)
✔ a drag whose anchor the document no longer reaches selects to its end (6.332915ms)
ℹ tests 143
ℹ suites 0
ℹ pass 143
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 8238.487627
=== 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.
=== spacing ===
go tool fiesta spacing internal/mapa/static
=== test ===
CGO_ENABLED=0 go test ./...
? amadan.net/oficina/mapa/cmd/mapa [no test files]
ok amadan.net/oficina/mapa/internal/mapa 4.433s
ok amadan.net/oficina/mapa/internal/mapa/emoji (cached)
? amadan.net/oficina/mapa/internal/mapa/icons [no test files]
ok amadan.net/oficina/mapa/internal/mapa/imagefile (cached)
ok amadan.net/oficina/mapa/internal/mapa/locale (cached)
ok amadan.net/oficina/mapa/internal/mapa/markup (cached)
ok amadan.net/oficina/mapa/internal/mapa/notionmd (cached)
ok amadan.net/oficina/mapa/internal/mapa/seal (cached)
ok amadan.net/oficina/mapa/internal/mapatest 14.376s
? 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 a6d8c58..28750e9 100644 |
| --- a/docs/superpowers/specs/2026-11-14-mapa-level-up.md |
| +++ b/docs/superpowers/specs/2026-11-14-mapa-level-up.md |
| @@ -1298,8 +1298,8 @@ Phase 1's choices where this spec was silent, or where the build chose different |
| - **The libraries.** rastrillo v0.45.0 (was a v0.35.1 pseudo-version), which serves Fiesta 1.6's `tokens.css` with `rst-stack`; Fiesta v1.6.1 (was 1.3.0), also a `go tool` for the check; estilo 6238a47 (was d004805). Credits regenerated with `make credits`. The new `signin` package is not adopted: Mapa's sign-in is unchanged. rastrillo v0.37.0's CLDR 48 numbers came with the jump: French groups with U+202F and Spanish leaves four digits ungrouped, so `1\u202f234` and `1234`, as browsers write them. That was note 85's upstream report; the three tests that pinned the old output now pin the new. |
| - **The stack.** `[mapa-doc]` is `rst-stack` on every signed-in screen, so a screen's blocks are spaced by Fiesta's one table and every hand margin between them went. A page's head (`mapa-doc-head`, Help's and a version's) is the page's header, `rst-page-header`, drawn as Mapa's (no rule, not a row), so the page opens `--rst-sp-5` under it as before; inside it the kicker is `--rst-sp-3` above the title (was 14px) and the look row `--rst-sp-2` (was 4px, touching the title). The body is `rst-section`, so it opens `--rst-sp-5` below whatever precedes it: the island's scripts stay where `page.mjs` reads them, just before the `<article>`. The unsaved-changes bar is `rst-section` too, the server's and the one `notices.mjs` draws (bundle rebuilt): the script's follows the island's scripts, not the head, and would otherwise sit one ordinary step under it. A version's head is `rst-section` as well, so its title is `--rst-sp-5` under the version bar (was 28px). The Links panel is a child of the stack but fixed over it, so `links.css` takes the stack's margin off it: a margin moves a fixed box, and it had moved the panel 4px down. The foot's references are `rst-stack rst-section`, `--rst-sp-6` under their rule (was 72px above it and 28px under), each group a `rst-stack rst-section` (was 54px and 30px apart), and the rules that show the foot beside an open History or a narrow panel now show it as the flex column it is; the panel's sections carry the same attributes inside its own grid, where they change nothing. The editor pages' own flex column, and its `margin-block-start: 0` (an ID-weight selector that would have beaten the stack), went: the stack is that column now, and note 84's body still fills it. Search's label and its row are Fiesta's field (the label was 3.2px above the row); Settings' note sits a step under its form (it touched it). Help → Colophon is estilo's credits section, not a stack: `frame.css` gives its heading the stack's step after a heading (it was 18.8px), until estilo's template carries `rst-stack`. |
| - **c66189f's copies.** `mapa-stack`, `mapa-section` and `mapa-action-row` in `mapa.css` are gone, for `rst-stack`, `rst-stack rst-section` and `rst-actions`; the import page and its confirm pages lost their outer wrapper, since the column is the stack. The audit vendored in `internal/mapatest/testdata/rhythm` is gone too: the tests import `amadan.net/rastrillo/fiesta/check/rhythm`. |
| - - **The spacing check.** `make spacing` (`go tool fiesta spacing internal/mapa/static`) is in `make ci` and is CI's step `35-spacing`. Nothing is skipped: estilo's and rastrillo's stylesheets are served from their modules, not vendored. On origin/main it refused 171 declarations: 118 off the scale (mostly 6, 10, 2, 14 and 1px, worst in `links.css` and `frame.css`) and 53 steps typed by hand. Now none, with 50 allowances, each saying why on its line: the document's typographic rhythm in `prose.css`, in em of its text, which the server's HTML and the editor's DOM share, and the quote's 2px and 18px (16, and the diff's list indents in `history.css`, 3, which follow it); the page column's 48px sides, which the measure (42rem + 96px) and `links.css`'s room arithmetic and breakpoints are built on, its 120px foot room, and 140px on a phone to clear the Links sheet (4); the column's centring arithmetic beside the panel (1); hairlines: 1px between sidebar rows, months' days, the week strip's 2px between seven days in a 284px panel and its letter on its date (5); the rail's tooltip placed beside its 40px row where the engine cannot anchor (4); the sidebar row's room for its ⋯ and one step per level of nesting (2); the ¶ and the task box hanging in the margin on the box the server draws (6, one in `prose.css`); the 1px above and below a pill that hugs its text (the chips in `links.css` and `prose.css`, an embed and inline code), the reference context lining up past its icon, the 4px dot centred in a 10px mark, and History's time on its title's first line (7); the palette and ⌘K's dialog placed a share of the window down (2). Everything else moved to its nearest step. Visible changes larger than a step's rounding: the page's top is 40px (was 56; 24 on a phone, was 28, with 16px sides, was 20), and the foot's break above. |
| - - **The rhythm audit.** `TestEveryScreenKeepsTheRhythm` (`make browser`) runs Fiesta's audit over the page column of 25 signed-in screens (Today, a day and its Markdown screen, a team page and its Markdown, History and a version, Rename, Delete, Look, Links, Inside and Link to a block screens, New page twice, All pages, Scratch, New scratch page, Search empty, with results and with none, Settings, Deleted pages, Help's Markdown and Colophon), at 1280 and 390px, scripts off and on, and fails on any finding. It skips one thing, the page's body (`[mapa-body]`, the editor's document, whose em rhythm L1 to L5 hold); the audit also passes over fixed boxes, so the Links panel is not its to measure. Because the audit measures nothing across a skipped block's edges, the test's own `pageGaps` checks that the gaps above and under the body are steps, and that the Links panel carries no margin. On origin/main's CSS and markup it fails with 133 findings, among them the kicker's 14px, Search's 3.2px, Settings' 0px and the Colophon's 18.8px; now none. `TestImportPageRhythm` runs the same package over the import page's states. |
| + - **The spacing check.** `make spacing` (`go tool fiesta spacing internal/mapa/static`) is in `make ci` and is CI's step `35-spacing`. Nothing is skipped: estilo's and rastrillo's stylesheets are served from their modules, not vendored. On origin/main it refused 171 declarations: 118 off the scale (mostly 6, 10, 2, 14 and 1px, worst in `links.css` and `frame.css`) and 53 steps typed by hand. Now none, with 50 allowances, each saying why on its line: the document's typographic rhythm in `prose.css`, in em of its text, which the server's HTML and the editor's DOM share, and the quote's 2px and 18px (16, and the diff's list indents in `history.css`, 3, which follow it); the page column's 48px sides, which the measure (42rem + 96px) and `links.css`'s room arithmetic and breakpoints are built on, its 120px foot room, and 140px on a phone to clear the Links sheet (4); the column's centring arithmetic beside the panel (1); hairlines: 1px between sidebar rows, months' days, the week strip's 2px between seven days across the panel's 286px and its letter on its date (5); the rail's tooltip placed beside its 40px row where the engine cannot anchor (4); the sidebar row's room for its ⋯ and one step per level of nesting (2); the ¶ and the task box hanging in the margin on the box the server draws (6, one in `prose.css`); the 1px above and below a pill that hugs its text (the chips in `links.css` and `prose.css`, an embed and inline code), the reference context lining up past its icon, the 4px dot centred in a 10px mark, and History's time on its title's first line (7); the palette and ⌘K's dialog placed a share of the window down (2). Everything else moved to its nearest step. Visible changes larger than a step's rounding: the page's top is 40px (was 56; 24 on a phone, was 28, with 16px sides, was 20), and the foot's break above. |
| + - **The rhythm audit.** `TestEveryScreenKeepsTheRhythm` (`make browser`) runs Fiesta's audit over the page column of 25 signed-in screens (Today, a day and its Markdown screen, a team page and its Markdown, History and a version, Rename, Delete, Look, Links, Inside and Link to a block screens, New page twice, All pages, Scratch, New scratch page, Search empty, with results and with none, Settings, Deleted pages, Help's Markdown and Colophon), at 1280 and 390px, scripts off and on, and fails on any finding. It skips one thing, the page's body (`[mapa-body]`, the editor's document, whose em rhythm L1 to L5 hold); the audit also passes over fixed boxes, so the Links panel is not its to measure. Because the audit measures nothing across a skipped block's edges, the test's own `pageGaps` checks that the gaps above and under the body are steps, and that the Links panel carries no margin (without `links.css`'s rule for it, 20 failures). Review: Fable 5.2, APPROVE AFTER FIXES on 8f032dc (the panel's 4px, the script's bar, the body's unmeasured gaps, and lows), then APPROVE on 1a6c9a8. Left: no stage draws a real script bar (its spacing was measured by hand, 24px either side); `prose.css`'s `a[mapa-chip]` padding is overridden by `links.css`'s unscoped rule, as on main; the ¶ clips 12px in a fine-pointer window under 800px (16px sides). On origin/main's CSS and markup its audit, over the first 23 of these screens, found 133 findings, among them the kicker's 14px, Search's 3.2px, Settings' 0px and the Colophon's 18.8px; now none. `TestImportPageRhythm` runs the same package over the import page's states. |
| ## 14. Findings and what changed |