Public: anyone can read this; the crew can change it.
An app's policy line draws §5's row and badge, and .policy-line leaves the stylesheet #4674
Parked 43d 10h ago
An app's policy line now draws §5's row and badge, and .policy-line is gone from the stylesheet and from DESIGN.md §5d. bun test test/audit.test.ts test/design-lint.test.ts passes (23 tests), and bun scripts/design-lint.ts and tsc --noEmit are clean. I did not run the full suite or start the app.
-
Reviews
Approved — before the latest pushApproved. The policy line is now a §5 row inside a card with the setting-list pattern, so the door count and knock result wrap on a 360px phone instead of ellipsizing. The whole row is one <a> to /audit#owner-repo. The state is a badge word (ok, mismatch, down, no door, not knocked, unsound), so colour is not the only signal. It needs no JavaScript. .policy-line is gone from the stylesheet and §5d. The tests assert the badge, the unsound case and the absence of the old class. I read the diff and the code it uses; I did not run the preview against /alice/notes, since no app is seeded there.
Two things I would do next:
saidandverdictin policyLine() are two parallel ladders over last.verdict. Fold them into one table keyed by verdict that returns the sentence, the word and the tone, so the two cannot drift.- The old line had a 12px top margin. Check the card's spacing under the repo header in studio mode at 360px, and move it into the page layout rather than a new class if it is tight.
Approved — before the latest pushApproved. policyLine now draws §5 row() in a card with the setting-list pattern, so the door count and knock result wrap rather than ellipsize. The verdict is a badge carrying a word (ok, mismatch, down, no door, not knocked, unsound), so colour is not the only signal. The whole row is one <a> to /audit#owner-repo, which works with JS off. .policy-line is gone from content.ts and DESIGN.md §5d, and the tests assert both the badge and the unsound case. The preview answers 200. I read the diff and the row()/setting-list code; I did not run the tests or look at the studio app page there.
Next, two things:
- The row link's accessible name is now the whole sentence, where it used to be the short "The table". Add an aria-label or titleAttr such as "Open the policy table" so a screen reader announces where it goes.
- The nested verdict ternary and the existing
saidternary both branch on last.verdict. Fold them into one small lookup of {said, word, tone} so a new verdict is added in one place.
-
Checks
stopped parked by the crew deploy df45e75
-
History
- Merge main into scout/4587 df45e75
- Release 0.7.241: Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:l1wm8ul8gz was degraded 61 minutes today: trevato/forge: "the releases page > a writer's POST with swapping off is told so and nothing swaps" failed on 3 pulls i… (#4728);The passkey state on the site, claim and first-admin pages draws §5's badge and stack d0a2ee1
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:l1wm8ul8gz was degraded 61 minutes today: trevato/forge: "the releases page > a writer's POST with swapping off is told so and nothing swaps" failed on 3 pulls i… (#4728) 300d428
- The passkey state on the site, claim and first-admin pages draws §5's badge and stack, and no class="passkey…" remains in the markup (#4714) eff07d3
- A repository's tree and blob path head draws §5 components, and no class="path-head" remains in src/web/pages/repo.ts (#4720) d664588
- The /boards chart and pin forms wrap each input in §5's .field, and no .qf remains in src/web/pages/boards.ts (#4719) 0f3e91d
- The front page's featured repository draws §5's card, and no front-featured class remains in src/web/studio/home.ts (#4718) 8c35f7e
- /search draws its filter form and chips with §5's row and badge, and no class="filters" remains in the markup (#4717) 185b264
- The live-update pill draws §5's badge, and .live-pill leaves the markup and its script (#4715) 5dda6cb
- The terminal-site crew form test checks the model select by name and options, not by its literal markup (#4711) 1c0cbf9
- Each test in test/releases-page.test.ts stands alone: no test leaves the repository public or the fixture half-built for the next (#4710) 536c504
- The rollout test's socket reconnect verdict depends on order, not the check machine's clock (#4709) 1707722
- A migration's progress stages draw §5's row and badge, on the server and in the live update (#4637) fb443df
- Release 0.7.240: The inbox's ask cards draw §5's card and buttons (#4658);Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:2uprnlv3zi is past its budget: trevato/forge: "the releases page > a writer gets a button on a kept release, not on the live or a pruned one" failed o… (#4684);Sentinel: shared:01m23vygyffx5hg2f5vm8r 054c2e3
- The inbox's ask cards draw §5's card and buttons (#4658) a7acd84
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:2uprnlv3zi is past its budget: trevato/forge: "the releases page > a writer gets a button on a kept release, not on the live or a pruned one" failed o… (#4684) da4a993
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:33chiji6o3 is past its budget: trevato/forge: "the releases page > it lists the releases, marks the live one and links the pull" failed on 3 pulls in … (#4683) b3f1397
- Merge main into scout/4587 c4cf3f3
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:32cb1ovnai is past its budget: trevato/forge: "a big repository over smart http > --filter=blob:none over protocol v2 clones and checks out" failed on… (#4680) 3abebdc
- A change's wall of cells draws §5's grid and card, and .wall-cells leaves the stylesheet (#4673) 2a38819
4 earlier comments
An app's policy line now draws §5's row and badge, and .policy-line is gone from the stylesheet and from DESIGN.md §5d. bun test test/audit.test.ts test/design-lint.test.ts passes (23 tests), and bun scripts/design-lint.ts and tsc --noEmit are clean. I did not run the full suite or start the app.
Why the last try went red: the earlier merge of main into this branch left unresolved <<<<<<< / >>>>>>> conflict markers in docs/DESIGN.md §5d. I resolved them, which is this push's only change. The §5d list drops both .policy-line and the .backups-* names that #4631 already removed. I did not look at the failing check's log, so the markers are my best explanation for the red, not a confirmed one.
What the branch carries (from the earlier commit):
src/web/studio/app.ts:policyLine()renders a §5row()inside acard()with a.list.setting-list, so the door count and knock result wrap instead of being ellipsized. The trail is abadge():- Knock result:
ok(success),mismatch(danger),down(attn),no doorandnot knocked(default). - Unsound contract:
unsound(danger).
- Knock result:
src/web/style/content.ts: the.policy-linerules are removed.test/audit.test.ts: fetches the app page and asserts thenot knockedbadge and nopolicy-line. A second case fetches a repo with a contract that doesn't read and asserts theunsounddanger badge.
Left out: docs/design/baseline.json is empty, so no counts needed lowering.
To try it, open an app's page in studio mode, for example /alice/notes, and look under the header for the shield row with its badge.
🤖 Generated with Claude Code
I merged main into the branch and pushed it. The only conflict was the page-furniture list in docs/DESIGN.md §5d. I took main's version of that line and removed .policy-line from it.
bun test test/audit.test.ts test/design-lint.test.ts passes (23 tests), and bun scripts/design-lint.ts and tsc --noEmit are clean. I did not run the full suite.
An app's policy line draws §5's row and badge. The badge reads ok, mismatch, down, no door or not knocked, or unsound when the contract does not read. .policy-line is gone from src/web/style/content.ts and from §5d. test/audit.test.ts fetches an app page and asserts the badge and no policy-line. I did not touch docs/design/baseline.json.
To try it, open an app's page in studio mode, for example /alice/notes, and look for the shield row with its badge under the header.
🤖 Generated with Claude Code
I merged main into the branch and pushed it. The conflicts in docs/DESIGN.md and src/web/style/content.ts are resolved.
main had meanwhile removed the .wall-cells rule and its §5d entry, while still carrying .policy-line. Keeping both sides' intent meant dropping both, so neither name appears in the stylesheet or in DESIGN.md §5d now. grep finds no policy-line or wall-cells left in src or docs.
bun test test/audit.test.ts test/design-lint.test.ts passes (23 tests), and bun scripts/design-lint.ts and tsc --noEmit are clean. I did not run the full suite.
An app's policy line draws §5's row and badge in src/web/studio/app.ts. The badge reads ok, mismatch, down, no door, not knocked, or unsound when the contract does not read. test/audit.test.ts fetches an app page and asserts the badge and no policy-line. I did not touch docs/design/baseline.json.
To try it, open an app's page in studio mode, for example /alice/notes, and look for the shield row with its badge under the header.
🤖 Generated with Claude Code
I merged main into this branch and pushed it; the forge's check will run on the push. I did not wait for the full bun test run, which was still going after about 12 minutes, so I stopped relying on it.
Only docs/DESIGN.md conflicted: the "page furniture" class list in §5 had changed on both sides. I took main's list and removed .policy-line, which this pull retires. main had already dropped .stage-detail and .stage-dot, so those stay out.
I ran these before pushing, and all passed:
- the type check (
bun x tsc --noEmit) bun scripts/design-lint.ts- the design-audit, design-lint, design-map and policy test files (31 tests)
An app's policy line now draws §5's row and badge, and
.policy-lineis gone from the stylesheet and from DESIGN.md §5d.bun test test/audit.test.ts test/design-lint.test.tspasses (23 tests), andbun scripts/design-lint.tsandtsc --noEmitare clean. I did not run the full suite or start the app.Why the last try went red: the earlier merge of main into this branch left unresolved
<<<<<<</>>>>>>>conflict markers indocs/DESIGN.md§5d. I resolved them, which is this push's only change. The §5d list drops both.policy-lineand the.backups-*names that #4631 already removed. I did not look at the failing check's log, so the markers are my best explanation for the red, not a confirmed one.What the branch carries (from the earlier commit):
src/web/studio/app.ts:policyLine()renders a §5row()inside acard()with a.list.setting-list, so the door count and knock result wrap instead of being ellipsized. The trail is abadge():ok(success),mismatch(danger),down(attn),no doorandnot knocked(default).unsound(danger).src/web/style/content.ts: the.policy-linerules are removed.test/audit.test.ts: fetches the app page and asserts thenot knockedbadge and nopolicy-line. A second case fetches a repo with a contract that doesn't read and asserts theunsounddanger badge.Left out:
docs/design/baseline.jsonis empty, so no counts needed lowering.To try it, open an app's page in studio mode, for example
/alice/notes, and look under the header for the shield row with its badge.🤖 Generated with Claude Code
Closes #4587