Public: anyone can read this; the crew can change it.
A test file that reads a ratchet list names the one line to edit when it fails #17538
Merged 12h 58m ago, live in production
Every ratchet failure now ends with a Fix: sentence that names the table to use or the list line to change, and says when lowering the count is the right move. Every assertion still passes and fails exactly as before; only the messages changed.
-
Reviews
ApprovedEvery ratchet failure now ends with a Fix: sentence from RATCHET_FIX naming the table or list line, and the 'moved to the table' / lowering case is worded. No page or API changes, so nothing to break on a phone or keyboard; the design-lint output prints the same sentence before a push. The test in design-lint-ratchets.test.ts was changed because it matched the old wording, and the pull says so. Two things I would do next: (1) the empty-states and OWN_SCRIPT tests assert on helpers defined in the same test file (linksOff, stranger, gone), so they check the sentence is appended but not that the real failing path used it; move those messages into src/design/ratchets.ts like the other two so one function builds the message for both the test and the lint. (2) WIDTH_READS still passes when a file drops below its count, so a lowered file keeps stale slack; give it a moved case like OWN_WORDS has.
-
Checks
shipped production is serving it deploy 339cc69
-
History
- design-lint-ratchets test expects the Fix: sentences the ratchet messages now end with (#17523) 6fe69a9
- Ratchet failures end with the Fix: sentence naming the table or list line to change (#17523) 645bfc1
- Talk: a message sent while the forge boots says it is starting, never "agent is not running" (#17518) 5556e83
- Talk: the Preview pane shows the conversation's own work, or nothing yet, never a repository it only read (#17517) 18aeb4d
- Talk: the agent says the Do it buttons are above the message box, and calls a name it picked its pick (#17516) 69778db
- scripts/design-lint.ts runs the empty-words and width-read ratchets, so a builder sees them before the push (#17531) 57d706a
- The check cell has what takeLook with only loopback needs, or the test says so once and stays out of the verdict (#17534) f6a4faf
- Merge pull request #17533 from sold/game-diag-containers 9e80f3f
- A game box's diag counts every container, not the last two da46449
- A loading terminal screen holds its own keys until load settles, and every load awaits its first read (#17529) a8e4988
- Tests depend on their order within a file: 66 tests in 24 of 80 sampled files fail under --randomize (#17505) d8024b8
- The Dependencies screen is busy until its report is read, so a and f are never dropped (#17524) 0d18300
- Talk: a turn's words written before it heard a confirm's answer are not kept, so the thread never says a pressed Do it still waits (#17507) ae14868
- The OpenAPI served-routes walk loads its route modules in the hook and runs in two tests, under the 2 s CPU budget (#17525) b482465
- /sitemap.xml lists the public apps /explore ranks, up to 200, each with its last change (#13624) 9fff9f4
- Talk: what the dock said is cleared by the next turn, so the live region never keeps an old refusal (#17519) 2e019c9
- Talk: with several proposals waiting, the newest is first and open, so Do it answers what was asked last (#17515) 0fbd355
- A runner's cgroup delegated after it starts is used: a named cgroup not yet writable is asked again (#17501) a36194f
- The signed-out webspec walk is three tests under the 2 s CPU budget, its warm-up paid by the file (#17514) d0c3744
- The forge toolbar names the app's live version and its last deploy time, read from the running record (#14528) 6b41e66
Every ratchet failure now ends with a Fix: sentence that names the table to use or the list line to change, and says when lowering the count is the right move. Every assertion still passes and fails exactly as before; only the messages changed.
- Where the sentences live:
RATCHET_FIXinsrc/design/ratchets.tsholds one sentence per case:OWN_WORDSover its count, and moved to the table.WIDTH_READSover its count.OWN_SCRIPTwith a new page, and with a page gone from it.- The empty-states
ALLOWEDlist with the wrong number of links, and with a page that has a link now.
- Which messages use them:
ownWordsOffandwidthReadsOverend their messages with these sentences, sobun scripts/design-lint.tsprints the same fix before a push. The failure lines intest/behaviors-rule.test.tsandtest/empty-states.test.tsare now built by small named helpers that do the same. The width message also shows the allowed count (n > allowed). - Tests: each of the three files has a new test that builds a real failing input and asserts its message ends with its fix sentence. The
OWN_WORDSone also checks the "moved to the table" wording. - Docs:
docs/design/areas/ratchets.mdhas one line per ratchet (OWN_WORDS,WIDTH_READS,OWN_SCRIPT,ALLOWED): what it holds, the fix, and when its line gets lowered or deleted.
Not done: WIDTH_READS still only fails when a file goes over its count. A file that drops below it passes as it did before, because making that fail would change pass/fail behaviour.
No new function duplicates an existing one; the messages are built from the existing ownWordsOff/widthReadsOver.
Checked: bun x tsc --noEmit and bun scripts/gate.ts --explain (32 of 32 rules met) pass, and bun scripts/design-lint.ts reports nothing added outside the system. bun scripts/fast.ts named 148 test files, over its 5-minute budget, so I ran a hand-picked set instead and all 118 tests pass: the three ratchet tests, unused-exports, design-lint, cold-read and check-script-readers. The forge's full check runs the rest.
To try it: add <p class="muted">No rows</p> to any page under src/web/pages/ and run bun test test/empty-words-all.test.ts. The failure ends with "Fix: add the words to the EMPTY_WORDS table …".
🤖 Generated with Claude Code
Every ratchet failure now ends with a Fix: sentence that names the table to use or the list line to change, and says when lowering the count is the right move. Every assertion still passes and fails exactly as before; only the messages changed.
- Where the sentences live:
RATCHET_FIXinsrc/design/ratchets.tsholds one sentence per case:OWN_WORDSover its count, and moved to the table.WIDTH_READSover its count.OWN_SCRIPTwith a new page, and with a page gone from it.- The empty-states
ALLOWEDlist with the wrong number of links, and with a page that has a link now.
- Which messages use them:
ownWordsOffandwidthReadsOverend their messages with these sentences, sobun scripts/design-lint.tsprints the same fix before a push. The failure lines intest/behaviors-rule.test.tsandtest/empty-states.test.tsare now built by small named helpers that do the same. The width message also shows the allowed count (n > allowed). - Tests: each of the three files has a new test that builds a real failing input and asserts its message ends with its fix sentence. The
OWN_WORDSone also checks the "moved to the table" wording. - Changed test:
test/design-lint-ratchets.test.tschecked the old message text word for word, so its two tests failed once the wording changed. That test was out of date rather than catching a bug, so it now expects theRATCHET_FIXsentences. - Docs:
docs/design/areas/ratchets.mdhas one line per ratchet (OWN_WORDS,WIDTH_READS,OWN_SCRIPT,ALLOWED): what it holds, the fix, and when its line gets lowered or deleted.
Not done: WIDTH_READS still only fails when a file goes over its count. A file that drops below it passes as it did before, because making that fail would change pass/fail behaviour.
No new function duplicates an existing one; the messages are built from the existing ownWordsOff/widthReadsOver.
Checked: bun x tsc --noEmit passes. test/design-lint-ratchets.test.ts, test/design-lint.test.ts, test/empty-words-all.test.ts and test/behaviors-rule.test.ts pass together (68 tests). test/empty-states.test.ts, unused-exports, cold-read and check-script-readers passed on the first commit and were not re-run after the fix, which only touched the design-lint-ratchets test. The forge's full check runs the rest.
To try it: add <p class="muted">No rows</p> to any page under src/web/pages/ and run bun test test/empty-words-all.test.ts. The failure ends with "Fix: add the words to the EMPTY_WORDS table …".
🤖 Generated with Claude Code
Every ratchet failure now ends with a
Fix:sentence that names the table to use or the list line to change, and says when lowering the count is the right move. Every assertion still passes and fails exactly as before; only the messages changed.RATCHET_FIXinsrc/design/ratchets.tsholds one sentence per case:OWN_WORDSover its count, and moved to the table.WIDTH_READSover its count.OWN_SCRIPTwith a new page, and with a page gone from it.ALLOWEDlist with the wrong number of links, and with a page that has a link now.ownWordsOffandwidthReadsOverend their messages with these sentences, sobun scripts/design-lint.tsprints the same fix before a push. The failure lines intest/behaviors-rule.test.tsandtest/empty-states.test.tsare now built by small named helpers that do the same. The width message also shows the allowed count (n > allowed).OWN_WORDSone also checks the "moved to the table" wording.docs/design/areas/ratchets.mdhas one line per ratchet (OWN_WORDS,WIDTH_READS,OWN_SCRIPT,ALLOWED): what it holds, the fix, and when its line gets lowered or deleted.Not done:
WIDTH_READSstill only fails when a file goes over its count. A file that drops below it passes as it did before, because making that fail would change pass/fail behaviour.No new function duplicates an existing one; the messages are built from the existing
ownWordsOff/widthReadsOver.Checked:
bun x tsc --noEmitandbun scripts/gate.ts --explain(32 of 32 rules met) pass, andbun scripts/design-lint.tsreports nothing added outside the system.bun scripts/fast.tsnamed 148 test files, over its 5-minute budget, so I ran a hand-picked set instead and all 118 tests pass: the three ratchet tests,unused-exports,design-lint,cold-readandcheck-script-readers. The forge's full check runs the rest.To try it: add
<p class="muted">No rows</p>to any page undersrc/web/pages/and runbun test test/empty-words-all.test.ts. The failure ends with "Fix: add the words to the EMPTY_WORDS table …".🤖 Generated with Claude Code
Closes #17523