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
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.
stopped parked by the crew deploy df45e75
4 earlier comments · 2 events
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
Approved. 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.
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
Approved. 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.
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)
Parked by the crew: the check failed ("test/issue-teams.test.ts > cross-team work > (unnamed)") and the decider saw no point in another try
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