Skip to content

Reserved room across every component (DECISIONS 326–347) - #137

Merged
bmjcoding merged 33 commits into
mainfrom
claude/reserved-room
Nov 24, 2026
Merged

bmjcoding merged 33 commits into
mainfrom
claude/reserved-room

Conversation

@bmjcoding

Copy link
Copy Markdown
Owner

Reserved room across every component: the rule "reserved room is page, not paint" (DECISIONS 328) applied to every shipped part, React and the HTML skill. The owner: "lets make sure this rule is applied to all components like this and haven't missed anything in the past." A handoff, so the council's decision is the approval to build; the owner sees this PR before it merges, with the reversals marked below.

What it does

  • One edge mechanism: a ghost control at a head's edge sits with its glyph or words on the head's line.
    • It is set with edge="start" | "end" on Button and IconButton, and data-edge in the skill.
    • The box that holds it says its room (--basalt-edge-room, -start, -end). A part with no padding of its own says none.
    • The ring sits at +2 where 4 of room is left, and inside at −2 only where it isn't. Hit areas never reach a neighbour's or past the room.
    • Side insets follow start and end, so right to left mirrors.
  • The heads that hang it: bars, the site menu, sheets and form dialogs, search, the status bar, code and terminal heads, notifications, the toast, the More sheet, icon links in a card, the filter foot, the drawer's Back, release notes' Copy link (PaneLayout and AppShell say their room), and the diagram viewer's Close and first zoom control.
  • Boxes hug what they show:
    • the search dialog holds its top and ends under its results;
    • the command list holds room only on the open page;
    • the composer holds no empty status line;
    • the chart legend reserves every form its value can show, and on a gap day the date line carries the reason;
    • the headline's unit never moves;
    • the pager's own count sits between its arrows.
  • Touch:
    • the toast's Dismiss and action have 46 by 46 hit areas;
    • a still table's selection column is 44 wide on touch;
    • a short ghost word grows its box rather than its hit area.
  • Copy: a copy with a glyph keeps its words and swaps the glyph. A refused icon-only copy shows the close for 1500ms and says "Copy failed" (React and the skill alike). The last result's glyph is the one that leaves.
  • Small things:
    • chips are 12/12;
    • a one-figure count is a 24px circle;
    • the menu's check column;
    • switch rows without a tile;
    • a selection box centres only until it is 16 from its column's start (round 47's "Pick" column widens from 44 to 60, so its "Run" header moves 16).
  • Text: docs/foundations.md and AGENTS.md take the decision's words. Eight past entries are reworded in the council's record. The edge line is added to SKILL.md within its cap.

For the owner's eye

These reverse something approved before. Round 69, main beside the build, dark and light, 1440 and 390, in the decider's order:

  1. The chart legend reserves every form; a gap's reason is on the date line (101).
  2. Round 68's changelog: Copy link on the head's line through PaneLayout's room.
  3. The selection column is 44 wide on touch; the name column gives up 12.
  4. The toast's 46px hit areas, with Dismiss drawn at 24.
  5. "Go" on touch is as wide as its word (focus picture first).
  6. The search dialog ends under its results (155 V3, a 4–0 vote).
  7. The command list's panel shrinks to its matches.
  8. The composer holds no status line (272); its first ghost action is the app's to hang.
  9. Copy keeps its words (152 item 6), and the refused icon-only copy shows the close.
  10. The filter head: label, Clear, count (103 T1).
  11. Option chips 12/12, and a switch row without a tile (154 A4, A5).
  12. A one-figure count is a 24px circle (154 A12).
  13. The chart headline on a day with no reading: the dash ends its seat and the unit holds still (153).
  14. The first tab: not built. Option C is in the backlog.

Council

Heavy round.

  • Audit: two Fable audits, React (88 comply, 11 fixes, 4 questions) and the skill (47 comply, 13 fixes, 7 questions).
  • Check: Astra, 6/10, 8 blocking.
  • Decision: Fable (DECISIONS 336).
  • Astra's final position: object, eight points. Fable revised all eight and held none (340), so no objection reached the owner.
  • Open items: four more, ruled by Fable.
  • Size: the owner approved SocialLinks' +33.4% (347).
Astra (checker), final position, word for word

object

  • Focus rule (§§1, 5). The phone Menu has 2px of clearance and needs the inset ring. The desktop StatusBar action has 14px at the end and at least 7.5px above and below, enough for the 4px outer ring. Either keep +2 where it fits or rewrite “only where +2 would be cut or would cross a neighbour” in both contracts to make every hung control an explicit independent exception.
  • Available padding (S9, R-6/S8). At 390px, hanging a standalone SocialLinks row at the viewport edge put its first 44px link at x=−14…30, leaving 30px hittable. With a simulated 34px right safe inset, the site Menu ended only 20px from that edge. Apply the hang only where the parent supplies enough usable padding to contain the whole target, including in the open menu and RTL.
  • Control inset (R-7, S9). At 800px on a coarse pointer, an xs “Go” action with 8px padding had 13.48px between its word and its border, leaving the word 29.48px inside a 24px gutter. A skill link with a 20px glyph landed at 15px against a 17px title line. Use the actual content inset and glyph size, or narrow eligibility to faces the formula aligns.
  • Toast targets (R-5/S7). At 390px the skill’s “Go” action was 33.05px wide and its pseudo-element added no inline reach. Pressing React Dismiss scaled its expanded 44px target to 43.12px. Keep both targets at least 44×44 through press and release, and hit-test their facing edges with a short action label.
  • Selection column (S10). In the pinned 40px fixture the select header spans x=17…57 and the full-cell Name sort button starts at 57. A 44px select target starting at 17 claims 4px of Name, which currently receives those taps. The conflict is 12px in a 32px column. Decide where all 44px belong and verify that every point in each header activates its own control.
  • Copy motion (Q5). Q5 prescribes a 100ms crossfade for Copy → Check, while §5 retains the terminal’s drawn morph, specified at 200ms with an immediate reduced-motion swap. Preserve that morph for the existing core pair or explicitly revise its contract and reduced-motion behavior.
  • Command list inside a card (Q6). With the decision’s proof inside a Basalt card, an empty result produced a 193px panel in a 341px wrapper. The card painted all 148px of reserved room. Put the reservation outside the painted ancestor, or scope it to open-page use and let the nested case hug its contents.
  • Sheet acceptance test (R-4/S2, §7). Both sheet proofs report 21px from the outside edge to the title and 20px to the glyph because one side has a 1px rim. The specified 0.5px equality check fails on the approved geometry. Measure from the head’s inner edges and test safe-area containment separately.
Seat Review of 421348e8 Fixes
Astra (code) 5/10, 12 blocking all twelve, c0a1a5a2 to 65b7844d
Fable (pixels) 8/10, 2 blocking both, 068e85f4, 03d03898; three polish calls ruled and built (87515815)

The fixes after those reviews were checked by the builder's own sweep and the lead's look at the shots. No seat re-reviewed them.

Checks

  • Lint (all five steps), both typechecks, npm run build and npm run sizes pass on the tree merged with main 299bda89 (Node 26).
  • 28 node-only test files pass, including the new reserved-room-rules.test.mjs (66).

Browser tests did not run. The owner paused them (DECISIONS 330). Written, not run:

  • packages/react/test/reserved-room.test.mjs and tools/html-skill/test/reserved-room.test.mjs;
  • the updated overlays-search, charts, figures, commands, parity-5 and parity-9.

The skill's pixel baselines were not re-recorded, so pixel.test.mjs will differ when the pause lifts. npm run ci:local has not run on this head.

Sizes

  • 48 figures moved. The whole package is +0.2% minified, and styles.css +1.4%.
  • SocialLinks +33.4% (434 → 579, approved). Every other export is under 5%.
  • Bundle and skill caps were raised to measured sizes, each with its reason. The skill's core is now 38,950.

🤖 Generated with Claude Code

bmjcoding and others added 30 commits November 23, 2026 20:55
…ts by direction

Button and IconButton take edge (data-edge in the skill): what the control shows
sits on the head's line and its box hangs into the room the head declares
(--basalt-edge-room), never more; the ring is +2 where 4 is left, else -2.
The root's side insets map to start and end (swapped right to left) and every
bar, sheet and menu row reads them. Sheet heads take equal padding and hang
Close (R-4, S2). DECISIONS 336.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eads, sheets, notifications, filter foot

Each head declares its room and its first or last ghost control takes edge
(data-edge in the skill), so what it shows sits on the head's line: the site
and app bars and the open menu's band (R-6, S8), the search form (R-8, S3),
the status bar (R-7), the code title and the terminal head (R-3, S6, S13),
the More sheet (S4), the notification popup (S5), the checklist foot (S12).
The terminal's hand-written hangs go; its replay words are centred (R-1, S1).
The filter's chips head reads label, Clear, count (Q1). A copy control with
a glyph keeps its words and its glyph says what happened (Q5): Button takes
done and doneIcon, through IconButton's seat. DECISIONS 336.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An icon-only row's first link is hung at the start, only where the box round
it declares room (a card's space-4); a row that ends a card hangs its spare
half into the card's padding. In the skill a .panel-head's or a page's own
.section-head's last ghost .btn is hung at the end by itself. DECISIONS 336.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… pill, the menu's column

The toast's Dismiss and action keep their pointer size on touch and take a
46px hit area (R-5, S7). The selection column is --basalt-select-column,
32 on a pointer and 44 on touch, its box centred (S10). The option chip is
12 and 12, a switch row with no tile is space-3 (space-2 under 720), the
filter chip keeps 8 and 12, all logical (S11, R-11). The count pill hugs its
figures and ends a two-digit seat (M-1). A menu with any checkable or glyph
row keeps the column on every row (M-2). DECISIONS 336.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mposer; the chart's legend and headline; the pager's count

The search dialog's top is held where a full result has it and its results
area hugs its rows (Q3); the skill gains search.js for it. The command list's
panel hugs its matches and, on the open page only, keeps its unfiltered height
as page under it (Q6; React's reserve, the skill's data-reserve). The
composer's status sits in the actions row and holds no line (Q4). The legend
reserves every form a value can show and carries no reason (Q2); the headline's
value ends its seat so the unit never moves (R-10). The pager's count is
centred (R-9). DECISIONS 336.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… sides

Code blocks' padding and the file button's margin by direction. A node-only
test reads the stylesheets and the built package: no physical sides, the
edge rule's expressions the same on both sides, every head declaring its
room, no hand-written hang, insets by direction, where edge lands, the
filter's head order, the composer's row, the count's seat, the command
list's room, the legend's forms and the copy's seat. DECISIONS 336.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fixtures write data-edge

Browser tests are paused (DECISIONS 330): reserved-room.test.mjs is written
and was not run. The skill's parity and kitchen-sink fixtures write the
sheet's, the search's, the More sheet's and the code head's Close or Copy
with data-edge, as the usage texts now do. The pixel baselines of the
example pages were not re-recorded (a browser run).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…age and caps, the sizes

Foundations and AGENTS.md take DECISIONS 336's text verbatim (the reserved
room, a height, a ghost control at an edge, the last thing in a box, the
focus case, the filter, the menu's slot, the legend, the headline, search,
SearchPassages, the command list, the copy button, the count pill, the
switch row, option chips, the composer, the list band, toasts on touch and
the selection column). SKILL.md gains the edge in one line and stays under
its 12,800 (12,794, trimmed elsewhere, no rule dropped). The skill's usage
texts and the built skill follow; module caps are set to their measured
sizes with the reason in modules.json. StatusBar reads a ghost control from
its props, so it imports no button. The export table is re-measured and the
bundle test's limits are raised to the measured sizes, each with its reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each owner's-eye item has a before- state that draws main's picture of it
(round69-pairs.mjs reads this round built on main, e396dec, and wrote the
104 pictures under assets/round-69). The fixes' steps are this branch live;
every step's main shots go into the zip. The skill's parts are composed by
the skill on each side. The browser tests' fixtures use the parts' names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both sides kept. Round 69 and round 70 are both registered. The skill's
notifications keep main's checked href and placement and take data-edge.
SKILL.md takes main's wording and the edge line, trimmed to 13,040 (main's
cap 13,050, no rule dropped); AGENTS.md takes main's diagram card and the
toast and selection column lines. Generated files are rebuilt, the export
table re-measured, and the bundle test's limits and the skill's caps set to
the measured sizes from main's, with the reasons.

Lint's new steps: oxlint and the sink check flagged round 69's skill frame
(a sink comment and the reasoned oxlint exception, as round 47's) and two
new sinks in the skill (copy.js now writes the button once with its glyph
swapped; terminal.js draws its three glyphs once and shows one), so the
ledger is unchanged. The edge rule now reaches #130's diagram viewer: its
Close hangs at the head's end and Zoom out at the foot's start, the foot
declaring its room (the skill's copy maps the insets). #131's timeline has
no ghost control at an edge (its toggle is a TextButton).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Item 11's chart has no trend, so the day with no reading shows the dash
beside the unit, the unit where it was. Item 14 is shot as touch at 800
(the review tool emulates a phone for round 69's touch state), so Go is its
word's width on the bar's line. Main's pictures of both re-shot from
db0bc41 with the same steps; the other pictures are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oom; the refused icon-only copy shows the close

Drawer's Back takes edge="start" and a release's Copy link edge="end", in
React and the skill (skill-body.mjs writes data-edge); their hand-written
margins go, and the release head keeps its margin-block. AppShell's main
says its room to a drawer or release notes directly inside it, its foot to
a composer, a card's content to a composer, the skill's page to release
notes; the composer says none, and its actions' doc says the app hangs its
first ghost action. CopyButton takes edge.

A refused icon-only copy shows the close for 1500ms and says "Copy failed":
Terminal's compact copy and CodeBlock's copy, through the done seat. The
three copies share copy-result.ts, which keeps the last result's glyph as
the done state ends, so a failure never leaves through a check (the words
form too). The skill's terminal draws each copy button's three glyphs once
and shows one (its sink count falls to 3); its icon-only copy says "Copy
failed", never "Could not copy". Foundations takes the ruling's text.
Node-only tests for all of it; the browser tests are written, not run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… hit area (code review 1)

The decided split stands: what a hung control with words lacks of 44 is half
toward the edge and half toward the inside. Where a side inset leaves the
edge less than its half, the box itself grows by the shortfall (min-width
from the room: 44 with no room, 33 for Go with its 24), so the inward half
never outgrows the outward one and never reaches a neighbour's target. No
decided number moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t rendered item has the room (code review 2)

A fragment or a component returning several links no longer hangs them all:
the row's later items say no room, so where a link lands decides, not how
it was written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…uter box's side (code review 3)

A rule that says --basalt-edge-room now sets -start and -end to initial,
and one that says a side sets the others to initial: a titled CodeBlock in
a drawer reads its own 16, not the drawer's 24. A node test holds it for
React and the skill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…de review 4)

StatusBar hangs an IconButton by its default ghost (a label and an icon, no
variant) and looks into a fragment for the slot's first or last control.
NotificationCenter takes edge for its bell, as a bar's last action or tool;
the skill's generated bell takes edge: 'end', or data-edge on its host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… changes (code review 5)

It measured only as it opened: a window resized shorter, or the on-screen
keyboard, left the box ending past what can be seen. search.js now places it
again on a resize and on the visual viewport's resize, against the height
that can be used, and never so low that the box ends past it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (code review 6)

A short list filtered to nothing showed a panel taller than its unfiltered
one, and what followed moved down 52px. The page now keeps the taller of
the unfiltered panel and the panel with "Nothing matches", read from an
unseen copy of the sentence (React) or the sentence measured out of the flow
(the skill). Inside a surface the list still holds no room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s given (code review 7)

seatSelect read only an inline width: a width attribute or a class kept 32.
It now reads the inline width, else the attribute, else the computed width,
and writes max(that, --basalt-select-column), so a fine pointer keeps the
author's width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cture packer bounds what it reads (code review 8, 9)

Round 69's skill frame no longer posts to "*": a srcdoc frame shares the
review page's origin, so the page reads its height from the frame, bounded
640 to 4000. round69-pairs.mjs reads only the input folder's own regular
files, by real path, at most 2000, 25 MB each and 48 megapixels from the PNG
header before decoding, and writes the new set beside the old one, replacing
it only when every picture was written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…w 1)

The lane drops a reason that does not fit, so on those days it was nowhere
on the chart's face. The date line now says it ("Wed, Oct 21 · scale not
used"), as the headline's context line does; it reserves every form it can
show, so nothing moves, and the legend's values stay as built. React and the
skill; foundations takes the review's words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s its gutter (pixel review 2)

The ruling's table gains its row: release notes or a drawer directly in
PaneLayout's page column take the page's own room when stacked (passed on
from the page, and from AppShell's main, which now says it to a pane layout
too) and the gap to the pane at the end when it is beside. Round 68's Slate
changelog says its gutter on its main, so its Copy links return to the
head's line. The skill's pane module does the same for .page. sites/ has
no release notes, drawer or pane layout. The skill's module caps are set to
their measured sizes for the fix round, with the reasons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ye demos 3, 4 and 14

With no rows the search results list holds no padding (React and the
skill), so the box ends under the count. Round 69: item 3 adds a chart of
four readings over the same gaps, hovered on the gap day; item 4's composer
sits in a card, which says its room, so its first action hangs; item 14 adds
a focus state, shot on touch at 800, so the 33-wide box can be seen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…'s height (code review polish)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ritten, not run)

The search's field and count hold while the box ends under its rows; the
legend says Not observed alone and the date line says why; the terminal's
words hold and its glyph and status say Copied; the command panel hugs and
what follows holds. The unchanged parts keep their checks. Browser tests are
paused (DECISIONS 330): these were edited, not run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ode review 10, 11; written, not run)

The React file: a phone page gets its viewport meta and checks it is 390 wide; ReleaseNotes draws Harbor's
records; Drawer's Back is asserted hidden at 1440; the first drawn match is measured (the compact terminal);
the ring is read drawn (2px solid) and whole on all four sides; the toast gets a fresh one for each press,
its hit areas read in page pixels and the row map spans the full targets with a gap required; the copy's
motion stubs a write that succeeds and samples the drawing at the front from rest; the refused copy times
the close, the interval and Copy's return with data-done cleared. Added: the More sheet, notification
centre and checklist heads, Go's neighbour and the icon's 14 hang at 800, the compact copy's 6 hang, the
short word's hit area outside the inset, the open menu right to left, links in a fragment and all four
rims, the selection column's exact 44 in the header and a body row, the filter's reached selections, one
open search dialog with changing results (and the keyboard up), a one-command list, the dialog form, the
card's bottom, the menu's three rows, the chips' and switch row's decided gaps, the composer's empty,
fitting and live-region cases, the pager's centring and the toast's heights. The chart suite adds the
headline unit's x across every day. A new skill file covers its own heads, the 20px marks, the toast's
row, the search's held top and the select column from an attribute or a stylesheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…+11) and the date line's reason (+90), measured

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hangelog as a step; main's pictures of the changed demos (3, 4, 14 with focus, the changelog)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ot on

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bmjcoding and others added 3 commits November 24, 2026 06:57
…space-4 from the column's start; round 47's Pick column is 60 (polish ruling 1, 3)

React and the skill: margin-inline min(space-4, half the spare room) then auto. 8 / 8 in 32, 12 / 12 in 40,
14 / 14 in 44 and 16 / 16 in 48 are unchanged; from 48 the box stays on 16, under its header's word. Round 47's
"Pick" column widens from 44 to 60, so the word is whole; its "Run" header moves 16. Foundations and the skill's
usage/selection.md carry the ruling's words. The selection module's caps rise to measured (1710, usage 1313).
Tests, written and not run: the box's two sides at 32 to 80 in both directions, React and the skill; at 60 the
word whole and on the box's x; on touch the hit area inside its column. The 44 scan samples whole pixels and
asserts the column starts on one (item 3). The headline's selected paint is unchanged (item 2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ble regenerated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bmjcoding
bmjcoding marked this pull request as ready for review November 24, 2026 13:30
@bmjcoding
bmjcoding merged commit 76eecbe into main Nov 24, 2026
1 of 2 checks passed
@bmjcoding
bmjcoding deleted the claude/reserved-room branch November 24, 2026 13:31
bmjcoding added a commit that referenced this pull request Nov 24, 2026
SKILL.md keeps both rounds' lines, the diagram-export rule and the edge rule, and stays at
its 13050-byte cap (13049) by tightening wording; the phrases the skill's tests pin are kept.
modules.json keeps main's caps and reasons and this branch's diagram usage cap (5050) with
its reason. The manifest and skill parts are rebuilt; the size table moved nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant