Repository navigation
State that Layout, style and widgets never read each other - #1760
Merged
Merged
Conversation
The density work settled three owners: a Layout (layouts.css) places boxes, a style (the kernel theme) sets type, spacing and form under a class, and widgets and chrome read only their own box and the theme's tokens. Nothing wrote that down, so the next change had no rule to check itself against. assets/AGENTS.md now states the three axes and the one way they meet: the owner sets a token saying what the box is (--lf-full-height, --lf-wide-page, --lf-resident, --lf-density) and the reader keys on it with a style query. The package reference tells widget authors the same. test_layout_style_and_widgets_never_read_each_other fails when any sheet or module other than layouts.css names a Layout class, or when layouts.css sets type; planting each of the three violations fails it. content-layout.js's comments named theme.css as --lf-resident's home; #1722 moved it to layouts.css. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The workspace-density round left P7, a visible active pane and a key to move between panes, for later rather than designing it now. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
reviewed
Oct 4, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The new contract says a Layout and a style do not read each other and that a Layout sets no spacing, but .layout-sidebar and .layout-tiles in layouts.css set gap: var(--sp-4). The .density-working rule in theme.css changes --sp-4 from 24px to 14px, so changing only the style changes the Layout's inter-box spacing. This is a live boundary in the current code. The contract needs to say who owns that spacing, and the code and gate need to reflect that choice; as written, the rule future changes are meant to follow is already false.
A Layout's sidebar and tiles gaps read --sp-4, which density-working restates, so the contract now says a Layout takes the room between boxes from the theme's spacing tokens. The orthogonality test now also fails when a style class (one the kernel theme gives its own type or spacing tokens) is named outside the kernel theme. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 4, 2026
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.
The workspace-density round (#1697, #1722, #1724) settled three owners that never read each other: a Layout (
layouts.css) places boxes, a style (the kerneltheme.css) sets type, spacing and form under a class such asdensity-working, and widgets and chrome read only their own box and the theme's tokens. Nothing wrote that down.skills/leaf/assets/AGENTS.mdstates the three axes and the one way they meet: the owner sets a token saying what the box is (--lf-full-height,--lf-wide-page,--lf-resident,--lf-density), and the reader keys on it with a style query.skills/leaf/references/packages.mdtells widget authors the same.density-workingtightens a sidebar's or tiles' gaps with everything else; the contract says so.test_layout_style_and_widgets_never_read_each_otherfails when a Layout class is named outsidelayouts.css, a style class outside the kernel theme, orlayouts.csssets type. Planting each violation fails it.TODO.mdkeeps the round's last proposal, a visible active pane and a key to move between panes, under Etc with its trigger.content-layout.jscomments namedtheme.cssas--lf-resident's home; Keep column geometry in the Layout and title type in the theme #1722 moved it tolayouts.css.🤖 Generated with Claude Code