Repository navigation
Make workspaces sheets and lay out examples on shared tracks - #1113
Merged
Merged
Conversation
… room live-progress read as broken on leaf.page: its prose sat in the centred 720px column while its status tiles and checks-beside-log grid ran from the window's left gutter to the margin claim, so no edge lined up and the checks table stood in a third of its cell. - lf-grid defaults to `wide` (1080px, centred on the column) rather than `available`; `data-width="available"` still gives a grid the whole room when the tiles are the page. A grid inside a workspace is unaffected: the workspace already hands it its room. - A table in a grid cell fills the cell, as a surface does. - The grid's block margin belongs to an authored lf-grid only. A package's box marked as a grid (the playground's split) sits inside its own grid, where the margin added to the gap. - A playground copy hides its whole controls region and drops the written row template, so a copy's preview no longer sits under an empty track and gap. - lf-operation puts its press after the prose instead of absolutely beside it, where a 5.5rem gutter down the whole card left the prose about 130px a line. Tests: the release-page test now holds both grids at 1080px, centred on the lede, with the checks table filling its cell; the grid-cell test's width threshold follows the wide width. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A page whose subject is wider than an argument can declare `<main data-width="available">` (or "wide"). Every block, the title included, then starts at one left edge and takes the sheet's width, while text keeps the 720px reading measure. The column layout centred prose on one axis and wide exhibits on another, so a title sat half-way across the page from the board beneath it. - The sheet sits in a gutter that grows with the window (up to 64px, never narrower than the margin rail's strip, the same on both sides) and caps at --sheet-max, 1600px. - A table in a grid cell is a table again (display: table) and fills the cell; as a block its rows kept their content width. The old selector never reached a table in a section. - triage-board: a four-column board beside counts and recent moves (lf-activity). - live-progress: tiles across the sheet, the pause and rollback beside the release steps, checks beside the run log, and the release facts beside its disclosures. - page-authoring.md and the lf-grid entry describe the sheet; corpus.py takes a <main> with attributes and drops them, since a tab is part of the corpus's own page. Tests: the release-page test now asserts one left edge across lede and grids, grids at the sheet's width, and the lede within the measure. The monitoring test matches its source passages across whatever wrapping the example uses. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
live-progress still read as a jumble after it became a sheet. Measured at 1440px, each row was its own grid and split the page somewhere new: the tiles at quarters, the decision at 3fr/2fr (838px), the evidence at halves (708px), the release at 1fr/2fr (492px). And each region wore a different surface: raised tiles, a tinted callout, a bordered action card stopped at the 720px measure, a bare table, a bordered log, tinted disclosure bars. - live-progress is one `2fr 1fr` grid, a body beside a rail, each a nested `columns="1"` stack. Every body block shares the body's two edges and every rail panel the rail's. - triage-board's rail is a stack of its counts and a panel of recent moves. - `section.panel` is a new idiom: a card with a small capitals heading in the tile label's voice, so every region of a dashboard is drawn alike. - lf-release-actions and lf-release-action declare x-measure "group", so the card fills its frame while its prose keeps the measure. - A template grid now stacks by its `columns` attribute. The span used to reach cells as the inherited --lf-grid-stack, which every lf-grid reset on itself, so a cell that was a grid never stacked: live-progress's rail ran off a 560px window. - page-authoring.md says a sheet takes one set of tracks and draws regions as panels. Tests: the release-page test holds the body's and the rail's shared edges at 1600px and the rail stacking under the body at 560px; with the log now below the fold, it checks that following the log leaves the page at its top. The product test's <main> slice takes a <main> with attributes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…olumns The two-track sheets read in order but quietly: every region drew in the same neutral field, so the page's one status (paused, failing, blocking) had to be read in the prose. - `.tag` and `.callout` take `ok`, `warn` or `danger`, the page's three status tones. A callout's tint and title take the tone; its prose stays in the body's ink. - lf-column takes `tone`: the column's field takes the tint and its heading the ink, so a blocking column reads as such before a card in it is read. - live-progress: a row of status tags under the lede, the pause as a warn callout, deltas on the checks and latency tiles, and a chart of candidate traffic stopping at 25%. - triage-board: the blocking column in danger and the needs-a-repro column in warn. Tests: the monitoring test's checks-tile passage follows the tile's new delta. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Every declared enum value stands in an example; the gallery's Done column now carries tone="ok". Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The margin preview registers its transcript (.lf-margin-preview-list) as the lf-margin-preview reading region at startup, while the card is still closed. Its scrolling styles hung off [data-lf-thread], which the card gains only on its first build, so until then the list read overflow visible: the region reported flow and effectiveScroller returned the page, while the base .lf-margin-preview rule (overflow: auto, 320px) described a card that scrolls itself — a posture the runtime never shows, since every open builds a thread card first. The first open then announced a page -> transcript `shift` to continuity owners, and reach.js, which sweeps at registration, never marked the list as a scroll holder. The attribute was the leftover switch between a list preview and the thread card. Only the thread card remains, so its rules become the card's rules and the attribute goes: the list declares overflow-y: auto from the first frame, the region reads bounded everywhere, and no shift is announced on open. Computed styles of every element in an open card are unchanged at 1440, 1000, 700 and 420px, apart from the list now carrying reach.js's position: relative hold mark. Tests: a new test_render_margin case asserts the region names the transcript before and after the first open, that opening announces no shift, and that a wheel over the card moves the transcript and not the page (fails on the base with 'page' == 'transcript'). Tests that located the card by [data-lf-thread] now use .lf-margin-preview. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The render gate read a page at 1200x900 and 540x720 only, and a layout can
break between them: a template grid stacks under 600px, and above that its
narrow track can be narrower than what it holds. After the fixed readings, the
gate now resizes the loaded desktop page from 360px to 1200px in 40px steps
and re-reads rootOverflow and misplacedBoxes at each width, reporting each
fault the fixed viewports did not already see at the narrowest width it
appears ("at 680–840px wide, ..."). misplacedBoxes returns records naming the
element and kind beside the text, so the sweep dedupes a fault met again
without reading its sentence.
The gate also gains an advice channel. render_version returns a
RenderReading of failures and advice, and `version check --render` prints
advice as ` · ` lines under its ✓ or ✗ line, as static validation does. The
first advice is misalignedSplits: at the desktop viewport, walking main's
layout grids, it counts the distinct gutter midpoints across the page less
the most any one grid has, and advises laying a sheet on one set of tracks
when that is at least 1. Count grids are rows of tiles and draw no region
boundary, so only template and `columns="1"` grids are counted.
Tests that moved: every render_version caller reads `.failures`; the probe
tests read each misplacedBoxes record's text; three planted-fault fixtures
(margin floats, fixed margin residents, a narrow body) were sized for two
widths and now hold at every swept width. New gate tests cover a sheet that
scrolls only between its viewports and a jumbled sheet that gets advice and
still passes.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A second edit appended the tone sentence to the tag and callout descriptions again. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… and measures A root workspace is a sheet whose regions are held in view. It took its own geometry (the whole window at the column's pad, no margin strips, no cap), so a workspace page and a sheet page disagreed about their edges. Now a page made of one workspace writes `<main data-width="available">`: the sheet gives it width, gutters and the margin rail's strip, and the workspace adds only the window's height. `version check` refuses a page whose only block is a workspace on a column page, with that fix. - An element made of members is a group unless it declares otherwise (presentation.js), so a container never holds its whole body to the 720px measure on a sheet. The playground, targeting, swipe deck, pull request and call diff declare surface. - A sheet's h1 is set a size up and heavier, from the sheet's width. - Board columns head with a status dot (`tone` warn or danger) and a card count, on neutral fields, in place of whole tinted columns. - A grid's track floor is held to the grid's width, so a one-column stack in a narrow cell takes the cell rather than overflowing it. - A sidebar on a sheet hangs in the sheet's gutter; its column arithmetic stays with column pages. - visual-review declared the frame under a stale name (--lf-frame). Tests: root-workspace pages declare the sheet (leaf_page takes `width`); a new check refuses a lone workspace without it; the gallery's copy widths follow the sheet; the checks tile's label carries its delta. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/assets/theme.css # skills/leaf/packages/default/registry.json # skills/leaf/packages/default/theme.css
The review becomes a sheet on one set of tracks: a 2fr body beside a 1fr rail. The body carries the argument in order (verdict callout with the two follow-ups, review finding, change surface, runtime tabs, orchestration hunk, invariants, evidence, exact patch), so the diffs and call graph take the body's width (827px at 1440 rather than 720). The rail holds the pull request card with its checks, the review history, and the contents, which now stand at the rail's foot and stay in view while the patch scrolls instead of hanging in the sheet's gutter as an aside.sidebar. The behavior diagram runs top to bottom so it fits the body without a sideways scroll. The two wide tables sit in a plain wrapper so the kernel's scroller keeps them reachable at phone widths. Evidence statuses use the shared .tag tones, and the scale facts no longer name the missing --t-7 token. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
On a sheet (`main[data-width]`) the thread panel stood over the rail at every desktop width. Where the panel stands over a live page rather than covering it, a sheet now takes a right border strip the panel's width, the mirror of the Asks tray's left strip, so its tracks reflow beside the panel and scroll anchoring keeps the user on the same words. Column pages are unchanged, and the covering decision (`panelCovers`, `PAGE_MIN`) is the same one: the layout owner states `data-lf-panel-over` on body in the shell write itself (takeShell, landEdge, resize), so the strip lands in the frame that moves the content rather than after the covering boundary. `shellRight` now ends inside body's right border, so margin rows and the composer stay off the strip. Tests: a sheet's rail stays beside the open panel at 1440 and the panel still covers at 700; opening and closing the panel on a sheet leaves the user on the same paragraph. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The page is now a sheet, and the swipe deck lays out its own body and rail: when the Ask holding it is at least 50rem wide (a named container on that lf-ask, since the deck cannot query itself), the queue and its controls take 2fr and Kept above Passed take 1fr on lf-grid's gap. Narrower, it stays stacked as before. Every pile is now a panel headed by its verdict and count. The queue is a tinted tray, and an empty pile is a dashed outline. Ledger rows put Return to queue beside the title and clamp the prose to two lines on screen. The queue label used to be overlaid on the top card, and the title's padding-top cleared it, which left about 40px of dead space above every card title. The label now has its own row above the stack and the padding is gone. Tests: the reflow test also checks the railed allocation at 60rem, and the worked example's wide check expects Kept above Passed beside the queue instead of side by side. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… examples - A template grid stacks where its narrowest track would fall below the grid minimum. One 600px width for every template left a rail beside a body 207px wide at 700px, while a queue beside its detail wants two columns at 780px. lf-grid.js paints how many narrowest tracks wide the template is (data-lf-grid-scale); the theme holds one container query per scale. - Inline code keeps its side padding at its two ends only. Cloned onto each fragment it painted past the column where a chip ended a line (feature gallery at 600px, and release-notes at 360px in the installed-payload gate). - The targeting workbench and its editor grids take one fractional track, so the editor's widest control no longer widens the preview past the card on a phone. - live-progress: the pause, the hold and the rollback are one warn callout; the checks join the steps and the release facts in the rail, so the two tracks end together. - triage-board: why only the migration blocks is a rail panel; a days-to-cut tile replaces the count the blocking column already shows. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ollowups # Conflicts: # skills/leaf/assets/runtime/chrome-layout.js
The hub was a 720px column: the outcome and counts, then "Stopped work" and "Fleet" as collapsed disclosures, then 4,000px of goal tree, and the record after all of it. The questions the user owed and the record stood thousands of pixels apart. - examples/command-hub.html is a sheet on one set of tracks (2fr 1fr): the goal tree fills a "Plan" panel in the body; the rail holds the command's readings and a "Record" panel. The contents sidebar is gone; the stopped panel lists what the user owes. - New lf-command-readings: an empty seat naming its command (`for`). The command renders its readings into it, or heads itself as before when no seat names it. It is an upgraded element so its generated words stay fenced from the authored grid around it (the render gate refused them inside lf-grid). - The three readings are open section.panel regions titled by their counts (Outcome, Stopped work, Fleet), not disclosures. The outcome gains a done fraction bar and one tile per count, ported from command-hub-tiles; a count focuses its panel's heading. Stopped rows put the reason on a second line and name downstream goals only when there are some. - lf-task declares x-measure: group, so goal rows fill a wide body: their chips align on the body's right edge while nested prose blocks keep the measure. Tests: selectors follow the readings into #hub-readings; tests that opened a summary no longer do, since the panels stand open, and a count's press is checked by focus on the panel heading. The anchor-repaint test scrolls the worktree head into view before selecting in it, as a user would. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The corpus stripped a page's lf-toc only from an aside.sidebar; pr-walkthrough now holds its map in a rail panel, and the corpus repeated a whole-corpus outline there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
No public example showed the workspace, a queue beside its detail with each pane scrolling on its own. `alert-review` is a payments on-call review of a week's 14 alerts: the queue pane ranks them by pages with a tone chip and a real/pages count, the detail pane carries each alert's facts, evidence (one chart) and, for the nine noisy or misrouted ones, an Ask whose options carry the page count each choice would have produced. It joins the specialized catalog (the preview image is a placeholder that `wt refresh-previews` replaces) and the corpus tabs; the catalog test now counts three specialized cards. Theme: a pane header's heading takes the panel's voice (small capitals, muted), so a region's label ranks below the sheet title and the pane's own headings instead of drawing larger than both. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…eets The playground package drew a card (the playground) around a well (the preview) around the page's candidate cards, and set the instruction to the agent as 11.5px text at the foot of the stage. It now draws each region once: the preview's well is the stage, and the controls and a titled "Instruction to agent" pane with its actions stand in a rail beside it, on the sheet's 2fr 1fr tracks from 50rem up and stacked below. In a bounded workspace the controls scroll above a whole instruction; the instruction reads at 14px. The stage centres short artifacts instead of leaving its lower half bare. code-comparison and data-explorer become sheets: page title and lede, the Ask's question, then the playground across the sheet. code-comparison's targeting Ask stands under the stage in an lf-grid 2fr 1fr, its candidates drop their card chrome, and wrapped candidate B now actually wraps (an lf-code line is max-content wide, so the page gives it back its width). The data explorer's table takes the stage's width. notification-playground keeps its workspace; its two formats become full-height lanes. Framework fixes: - theme.css: html paints the page colour; the body is a container, whose containment keeps its background off the canvas, so a static copy shorter than the window ended in white. - default theme: a sheet's root workspace pads its own top so its title clears the banner. - targeting theme: its grids hold one minmax(0, 1fr) track, so the editor no longer runs 7px past its box at 360px. Tests: the notification workspace test reads three regions, preview left of the rail with the instruction under the controls, all three bounded when held; the copy has three pane bodies; the instruction's size is 14px; the structural-target revision edits the lede at its new indentation and asserts the edit happened. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The restoration test opened its tab set by replacing a bare <main>, which the page no longer writes. The badge test's precondition, that the hub's pressable count and a task badge look alike, no longer holds now the count is a tile; what it proves, that the pressable one says so at rest, still does. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…llowups # Conflicts: # skills/leaf/packages/targeting/theme.css
A page is a document, a sheet or a workspace, chosen from the shape of its subject: an argument read in order, regions read side by side, or regions held in view together. The guide started from a sequential explanation with compositions inserted into it, which led agents to column pages with wide exhibits centred on a second axis. Each form now has its own section; the sheet's says to lay the page on one set of tracks and to draw regions as panels. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A sheet's workspace pads its top so its title clears the banner, which the stage pays for at a 768px laptop. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/scripts/leaf/render_gate/command.py
…et fences - A template's tracks are minmax(0, …fr), so a wide cell no longer moves the split, and a template stacks where its narrowest track falls below 16rem; the playground's split and the swipe deck stand on the same 51rem line for a 2fr 1fr body and rail, where they stacked at 50rem against the page grid's 45rem. - The render gate's alignment advice reaches the grids inside a workspace and its panes. - The width sweep drops a fault only when the desktop viewport, at the sweep's own height, reported it; the phone viewport is read at another height. Its docs state the contract it enforces: a version holds at every width from 360px to 1200px. - Beside a sidebar and a sidenote, a sheet's blocks fill it, as beside a sidebar alone. - The swipe ledger shows each proposal whole; clipping hid words a comment could stand on. - The x-measure key, the lf-workspace entry's copy sentence and the sheet title's comment say what the code does. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Reloading a sheet with Threads left open painted the sheet full width and then narrowed it by the panel's width once the runtime restored the panel, moving the user's place. The strip was keyed on `data-lf-panel-over`, which only chrome-layout wrote, after restore. The covering decision now lives once in theme.css as `--lf-thread-panel-beside`, a registered length on body: the panel's width where the window leaves a 320px page beside it, zero where it does not. The sheet's strip draws with it, and `panelCovers` reads the same computed length instead of comparing `innerWidth` against `PAGE_MIN`, so `statePanelOver` and `data-lf-panel-over` are gone. The live strip keys on `body[data-lf-auxiliary-surface="threads"]`. The bootstrap's early restore generalizes from `data-lf-restore-asks` to `data-lf-restore-surface` (asks or threads) and also writes the stored thread-panel width, with theme.css falling back to the 420px default, so the first paint of a reloaded sheet already takes the strip where the panel will stand beside it. Tests: the restored-surface startup test now also covers a sheet at 1440 (default and drawn width: strip at first paint, same main box and same paragraph y at presentation) and at 700 (no strip, panel covers). The layer-literal test ties the bootstrap's key and property and the theme's default to chrome-layout's constants. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…e test The sweep jumped from the desktop straight to 360px and read one frame later; under load an lf-shot was still laid out for the desktop and the page scrolled 59px. The phone viewport's width is again dropped from the sweep's findings, since that viewport already reports what it meets. Main's prefixed-inventory test reads the gate's failures from its new reading. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The command looked its seat up document-wide on every paint and found its panels by searching the current seat. A revision applied in place that added a seat left the old panels heading the command and drew a second set in the rail; a seat that connected later waited for the next state reading; and a seat quoted in a thread message took the page command's readings. The command now keeps references to the panels it drew and puts them at the head of its current home on each paint, so a seat that arrives or leaves moves them. A command that disconnects takes its panels with it. The seat calls the command's `reseat()` when it connects and disconnects. Both look each other up in their own authored document through a new runtime primitive, `authoredScope(node)`: the page's `main`, or the body of the message whose markup holds the node. Tests: three browser tests pin the seat across in-place revisions, a seat connecting after its command, and a quoted seat staying out of the page command's readings. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # docs/examples.html # docs/index.html # docs/registry.html # example-previews.json # skills/leaf/packages/swipe/guidance/author.md # tests/test_render_anchors.py # tests/test_render_projection.py
Main added the example as a lone workspace on a column page, which the sheet contract now refuses. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
main's wt merge example and this branch's alert review each add one. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # tests/test_site.py
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/assets/runtime/chrome.css # skills/leaf/assets/runtime/margin-projection.js # tests/test_chrome_contracts.py # tests/test_render_margin.py
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 24, 2026
max-sixty
added a commit
that referenced
this pull request
Sep 24, 2026
main carries sheet-followups as #1113 and one margin formula as #1119, so the merge takes main's tree and reapplies this branch's own changes: the page-tab theme fixes and the draft page. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pages now take one of three forms — a document, a sheet, or a workspace — and a workspace is a sheet whose regions are held in view, rather than a separate layout mode. This branch carries the follow-ups from landing the sheet (#1088): the contract and its validation, a render gate that checks every width, a shared surface vocabulary, stacking by track, the Threads panel on sheets, and seven examples rebuilt plus a new workspace example.
Approach
lf-workspacedeclares<main data-width="available">; the sheet rule supplies its width, gutters and comment-rail room, and the workspace rules only hold it to the viewport.version checkrefuses a lone workspace on a column page (validation/markup.py, wired invalidation/source.py). The per-root copy of the width rules inpackages/default/theme.cssis gone.version check --rendersweeps widths 360–1200px in 40px steps (widest first, two frames each), not only 1200 and 540, and adds an advice channel for grids whose splits don't share lines (render-checks/layout.js,render_gate/). The sweep found four real overflows, fixed here.lf-gridpaintsdata-lf-grid-scaleand aminmax(0, Nfr)template; the theme stacks a grid where its narrowest track would fall below 16rem. The playground split and swipe deck use the same 51rem breakpoint instead of their own.section.panel,.tag/.callouttones (ok/warn/danger), board column dots and counts, and a larger sheet title. Member containers default tox-measure: group(runtime/presentation.js), so widgets on a sheet are no longer capped at the text measure.runtime/chrome-layout.js), and bootstrap restores it on first paint so a reload doesn't reflow.chrome.css,margin-projection.js).references/page-authoring.md"Composing a page" is rewritten around the three forms.Examples
Rebuilt as sheets: live-progress, triage-board, command-hub, pr-walkthrough, ideas-to-implement, code-comparison, data-explorer, notification-playground; wt-merge declares the sheet. New:
alert-review, a public workspace example. Catalog stills are refreshed.Tests
Tests that asserted the old root-workspace shape now pass
width="available"; new coverage for the sheet requirement and the live-progress tracks. A local full run showed the branch's failures only in tests that also fail on main or pass alone; those are being handled separately.🤖 Generated with Claude Code