Reviewed by Claude Fable 5.1 (claude-fable-5-1) — spec review, before this becomes a plan.
Spec: docs/superpowers/specs/2026-11-11-editor-i2-design.md at a10811c (design/richer-ui). Read against Docs (show.html, share.go, oneshot.go, publish.go, chrome.go, menu.go, render.go, home_security.go, toolbar.mjs, toolbar-roving.mjs, menu.mjs, editor-entry.js, brand/light.css, brand/pointer.js, the tests that pin them), estilo as Docs pins it (1348c4b: chrome.go, bar.html, account.html, chrome.css, chrome.js, menu.css, busy/*), rastrillo as pinned (ui/rastrillo.js, busy.js, tokens.css, light.js), and the mock-up at docs-editor-looks d6c9133 (looks.js, looks.css, via git show; nothing checked out).
Verdict: CHANGES REQUIRED
The direction is right, the estilo/Docs split is right, and the no-JS story holds. Three things a plan would inherit wrongly need a revision of the spec first (P1). The P2s can be folded into that revision; the P3s can go to the plan.
P1
P1.1 — The share fragment and the one-shot URL never meet. (§Share as a popover: Contents, Actions. share.go:139, :272, :319, :353; publish.go:122-133; oneshot.go:62.) The spec says the panel is a server fragment (?panel=1) and that after an action "the panel is redrawn from the fragment the 303 lands on". But every share POST 303s to /d/{sqid}/share, the full page. fetch follows that redirect, so the GET that oneShots.takes the public URL is the full-page render. The popover then either parses the full page (what looks.js render does, so the fragment is unused on the one path where it matters) or requests ?panel=1 afterwards, finds the one-shot gone, and the owner never sees the link they just minted. Rule the contract: a request from the panel (a hidden panel=1 field, or a request header the script sets) makes the POST handlers 303 to /d/{sqid}/share?panel=1, and the fragment render is the one consumer. The fragment must go through renderShare so the Cache-Control: no-store on a URL-bearing render (share.go:225) comes with it. Decide what a direct navigation to ?panel=1 gets (Sec-Fetch-Mode: navigate → the full page), so Back or a bookmark cannot render a bare fragment. Test: the URL appears in exactly one response across page and fragment.
P1.2 — Two undo/redo pairs and the roving tab stop. (§Header controls: Undo/redo; §Inspector: Below 64rem; §Docs 2. toolbar-roving.mjs:39, :52-57, :72-74.) The strip and the inspector are one element, and undo/redo are "back in the strip" below 64rem, so at ≥64rem the strip's History group is display:none while still in controls. reachable() filters on disabled only: ensureReachable or ArrowLeft/Right will set the stop on a hidden button and focus() it, and focus goes nowhere. This is the failure AGENTS.md already records ("a roving tab stop parked on a disabled control makes the whole group unreachable") in a new costume. The spec must say the roving list filters by visibility (checkVisibility()) and re-runs on resize, or that the strip pair is not inside [docs-toolbar] at all. Also pin aria-orientation: looks.js sets vertical on the inspector, which promises Up/Down, while roving handles Left/Right only (deliberately, for the selects). Keep horizontal or drop the attribute. Note browser-drive.mjs:449 clicks [docs-toolbar] [data-docs-command="undo"], which is hidden at a ≥64rem viewport.
P1.3 — The breakpoints do not line up. (§Header controls; §Inspector: Below 64rem; §Share: Phones. estilo chrome.css:86-90; bar.html:30-42.) estilo hides [estilo-bar-actions] and shows the Menu sheet below 800px; the inspector begins at 64rem (1024px). Between 800 and 1024px the header shows undo/redo (duplicating the strip's) and a Format button that toggles an inspector that does not exist. Below 800px, Share is a row in the Menu sheet (Bar.Actions rendered as estilo-menu-items), so "below 36rem it is a full-width sheet" has no trigger in the bar, and what the leading slot (the undo/redo pill) does in the sheet is unspecified. Rule it one of two ways: the inspector begins at 50rem so the header controls and the inspector appear together; or the header pair and Format hide below 64rem and the strip stands from there (the spec's words, which needs estilo's leading slot to carry a breakpoint). Either way: the leading slot is wide-only and never rendered in the sheet; below 800px Share navigates to the page (the no-JS path), and the phone sheet is dropped or opened from the Menu sheet's row.
P2
P2.1 — Name the estilo "slot" API. (§Where each piece lives, estilo 1-2. bar.html:51-55; render.go:623-665; chrome.css:6; show.html:788.) Go templates have no slots. bar.html's blessed hook is redefining estilo-bar-actions after parsing, but Docs parses one template set for every page, so a redefinition would stack the list page's bar too. Specify data: Bar.Menubar template.HTML (the app renders its menubar through the shared estilo-menubar templates into a buffer) and Bar.Lead template.HTML, both wide-only; the stacked variant keyed on Menubar != "" as [estilo-bar~="stacked"]; and --estilo-bar-block-size published at :root:has([estilo-bar~="stacked"]), since the variable lives on :root and [docs-chrome] reads it. Sheets already has an estilo-menubar, so the second consumer estilo's one rule wants is real. Render Docs' slot content from a file under views/ so TestOurTemplatesUseTheAttributeGrammar and TestToolbarOptionValuesMatchTheBundle (export_test.go:658) still see it.
P2.2 — "The field starts at max-content via CSS" is not something an <input> does. (§Header: Title field; §Constraints: No layout shift.) An input never sizes to its value: without script it sits at whatever width CSS gives it, with script it snaps on load. The snap is a size change, not a start-position change, so CLS stays 0 only because nothing after the title on its row can move (the actions are margin-inline-start: auto); say so. Give the server a first approximation (size from the rune count, or an inline-size in ch) so the correction really is a few pixels, cap it with max-inline-size so a long title cannot push the actions out, and keep min-inline-size: 0 below 800px.
P2.3 — The header pair during a font wait. (§Docs 2. editor-entry.js:521; fontsbrowsertest.go:1265.) setInert makes [docs-toolbar] and [estilo-menubar] inert; header undo/redo and Format would stay clickable during a wait (the gate refuses the command, but the control reads as live). Add the leading slot to the inert set and extend the browser assertion.
P2.4 — The busy rule inside the popover. (§Constraints: Busy rule. estilo busy.js header.) A submit handled by fetch is cancelled before busy.js sees it, so busy.js shows nothing. If POST actions keep the 650ms hold, the popover script owns it: aria-busy + [rst-spin] on Invite and Remove for at least 650ms (busy.css already styles that), and the redraw waits for the hold. The "GET rule's shape (landing in Fiesta 1.3.0)" is a dependency on something not pinned; name the fallback.
P2.5 — ui.ShimJS in place of busy.ShimJS: go through estilo. (§Docs 7. render.go:722; themeassetstest.go:73; estilo busy/provenance.json.) Safe in substance: rastrillo's current shim is busy-less, its new on-by-default behaviours are the switch drag and an [rst-scheme] in-place colour switcher that no Docs or estilo markup matches, and the tokens.css Docs serves is already the pinned rastrillo's (render.go:716), which has the drag CSS. But TestBusyRuleIsLinkedAndServed pins static/rastrillo.js to busy.ShimJS()'s bytes, and estilo's provenance.json is the record of which rastrillo these came from. Take the spec's own "better": estilo re-vendors the shim with provenance updated, and Docs keeps taking it from estilo. Drop the Docs-local swap.
P2.6 — Format's default and no-JS state. (§Inspector: Format toggle; §Docs 4. menu.go:150-167; pages.mjs:67-75; show.html:1446-1454.) Say the cookie's default (open), that it is per person like docs-view, and that without script the Format button is disabled like every other toolbar control. A button that does nothing is the shape show.html argues against.
P3
- Anchoring and RTL (§Share: Opening): layout.html is
dir="ltr"today, but the spec writesright:. Use logical insets and CSS anchor positioning (show.html already uses@supports (anchor-name: …)for the combo lists), with the JS placement as the fallback. - Phone sheet focus (§Share: Phones): a hand-rolled trap inside
popover="manual"is the hard way; a<dialog>withshow()wide andshowModal()narrow gets Esc, trap and backdrop for free, if the sheet survives P1.3. - Esc ordering (§Share: Dismissal): chrome.js closes an open
estilo-menusmember on Esc in the capture phase andpreventDefaults; the popover handler should honourdefaultPreventedso one Esc does one thing. - Format semantics (§Constraints: Keyboard):
aria-expanded+aria-controlsis the disclosure pattern;aria-pressedis acceptable, but pick one. - Print: the inspector
<aside>must sit inside[docs-chrome]or join the print hide list (show.html:436-442); hide[popover]in print. - Reduced motion and hover: say the inspector light, halo and pill lift follow light.css's
(hover: hover)andprefers-reduced-motionguards, as light.js:41 and pointer.js:27 do. - 100vw in the centring rule (§Inspector: the sheet stays centred): show.html:76-81 warns 100vw includes a classic scrollbar; with one the sheet is pushed about 15px short and the inspector overlaps it across the transition range. Use a container-relative unit on the canvas.
- Coarse pointers: 28px clears 24px, but estilo's own floor is 32 (
--estilo-trigger-size); consider 32 under(pointer: coarse). - Appearance in place (§Appearance): say what happens when the background POST fails (leave the switch; the next load follows the cookie), and set
data-busy="false"in account.html rather than from script. - Native wrappers: no impact found. native/ injects no chrome CSS, and the native JSON paths already
takethe one-shot at POST time (publish.go:130).
Over-specified; leave to implementation
The sub-pixel optical offsets (§Header: 2.5px, 1px, 3px above the edge), the exact shadow strings, the lit × 1.43 − 0.43 curve and the glow percentages are measurements of one mock-up at one zoom. Record them as the reference and let the browser test compare against the mock-up's screenshots rather than pin the numbers. Likewise the icon SVGs and the scrollWidth measuring trick: state the requirement (as wide as its title; re-measured on input, resize and fonts.ready) and let the implementer choose the mechanism.
What is right
The split: the stacked bar, the controls styling, the avatar, the conditional divider, the menubar tightening, the title sizing and the Appearance selector are estilo's; the inspector, the sheet centring, the share panel and the light are Docs'. The share route stays owner-only through Store.Get (share.go:102); CSRF for the fetches is Sec-Fetch-Site, as csrf.Protect already checks first; the no-JS path is the share page unchanged and <details> menus; never-FOUT holds because nothing here adds a face; 320px is untouched once P1.3 is settled; the Format cookie follows the docs-view rule, so first paint is right.
Tests to add to §Tests
Fragment one-shot exactly once (P1.1); roving across the hidden pair at ≥64rem and in the 800-1024px band (P1.2, P1.3); the header pair inert during a wait (P2.3); TestBusyRuleIsLinkedAndServed against the re-vendored estilo shim (P2.5).