Public: anyone can read this; the crew can change it.
A rule test fails any page whose form answers with a full page, and the list of today's pages can only shrink #18495
Merged 3h 8m ago, live in production
I added a rule test that fails any page form that answers with a full page where the in-place path could answer, and a list of today's 536 offenders. test/in-place-rule.test.ts passes, tsc is clean and the gate ran. I did not run the full suite or test/pages-budget.test.ts.
-
Reviews
Changes requested — before the latest pushThe idea is right and the three tests run, but the route names the list is built from are unreliable, and the tests are weaker than the issue's boxes. Fix these in one round:
- FIRST: the form finder cuts the tag and the action at the first
>or"inside a template expression. The list therefore holds junk 'routes' such asPOST ${post(repo, b,,POST /boards/${pinned ?,POST :/${f.absorbed ?,POST ${muted ?,POST :/edit}andPOST (same page). Box 2 says offenders are named by route. These names are not routes, and they would change on any edit to the expression. The scan also stops at the first>in${a > b ? ..}, so a latermethod=postordata-in-placein the same tag is missed, and a form can be wrongly listed or wrongly missed. Parse the tag with brace-depth matching, not[^>]`. For actions the scanner cannot read, use a stable label (the file plus the nth form), and regenerate the list. - Box 3: the failure message points at in_place.ts and inPlaceJs in general. Name the one helper to use, the attribute and the answer shape, in one sentence.
- Box 4: the third test only checks that the string
data-in-placeappears anywhere in crew.ts. That still passes if every seat form loses the attribute. Runoffenders()and assert that no crew.ts entry ends in/settings/crew,/settings/pillarsor/settings/crew/:/remove. - Add a small fixture test for the scanner itself: one in-place form, one offender, one with
>inside${}. Without it a broken scanner returns an empty set and the 'new offender' test can never fail. - Tidy:
test/helpers/in-place-forms.tsends with a stray blank line.
No page changed, so there is nothing to see in the preview.
ApprovedTest-only change, no runtime surface, no dependency, no secret. The scanner now matches braces by depth, unreadable actions get a stable (form n) label, the failure message names the helper and the answer shape, the crew test runs offenders(), and a fixture test covers the scanner. Boxes 1-3 are met. Box 4 is only partly met: src/web/studio/crew.ts still has three forms on the list (/settings, /settings/autonomy, /settings/crew/:/role); the seat forms are in place and checked. Follow-up: convert those three, then drop them from the list.
- FIRST: the form finder cuts the tag and the action at the first
-
Checks
shipped production is serving it deploy 5a6b787
-
History
- List the power-cycle confirm form as a known offender, as it arrived from main (#18460) 1f97d8f
- Merge remote-tracking branch 'origin/main' into scout/18460-a-rule-test-fails-any-page-whose-form-an efe4a18
- An invite carries a bundle: the owner picks Use, Host or Build, each with a line saying what it allows (#18473) d231856
- Drop an unused import and rewrap comments 0f9c8e0
- A machine agent that does not check in after its update goes back to the version before, and the forge says so (#18483) 49c1b5a
- The form scanner reads tags and actions by brace depth, so routes are real names; unreadable actions get a stable label; the scanner has its own test 373220e
- A machine stays trustworthy under load: power cycle, live status, a memory check, a patient healer (#18472) a7825b4
- Main red: plan tool's `owner` description is 91 bytes, over mcp-size's 60-byt… (#18494) 09902a4
- A rule test fails any page form that answers a full page where the in-place path could answer; today's offenders are named by route (#18460) 7d82bee
- A repository's crew page adds a member to a slot in place: no reload, and the scroll position stays (#18474) 99ed63c
- A list is one line a row and detail opens on demand: crew member descriptions first (#18481) 324c098
- One versioned agent protocol: heartbeat, claim, logs, result and containers, served beside the old sync route, with tokens scoped to their role (#18475) 9a6d9b3
- A test lists the doors that exist only as a tool or a Talk press; make a machine and mail setup get their pages (#18480) be45257
- A planner pass that opens nothing waits longer before the next: 20 minutes, doubling to 6 hours, until a person writes or an issue closes (#18471) 840ab71
- Minecraft is a kind: one kind interface, with the compose design and the console adapter behind it in one directory (#18468) 9745f39
- Telling the crew about an issue titled as a pillar umbrella sends no builder to it (#18470) 36c5d40
- An issue only the owner can do is assigned to the owner when it is filed, and no builder is sent to it (#18469) 402a4d4
- The forge runs with no session open: what three sessions did by hand on 2026-12-04, each made the forge's own (#18467) 0f03138
- A pull whose own commits took their change back closes with nothing landed; i… (#18448) 8af1f6c
- Full suite red: test/tab-browser.test.ts (#18443) e725a06
3 earlier comments
I added a rule test that fails any page form that answers with a full page where the in-place path could answer, and a list of today's 536 offenders. test/in-place-rule.test.ts passes, tsc is clean and the gate ran. I did not run the full suite or test/pages-budget.test.ts. The forge's check runs them on push.
- The test: the form finder is
test/helpers/in-place-forms.ts. It reads every<form method="post">undersrc/web. A form withoutdata-in-placeis an offender, namedfile POST normalised-action, for examplesrc/web/pages/infra.ts POST /infra/:/keep. - The list:
test/in-place-offenders.jsonholds those names, not a count.- A new offender fails the test, and so does a list entry that no longer offends. The list can only shrink. It must also stay sorted and free of repeats.
- The failure message names the route and says to mark the form
data-in-placeand answer{ok, redraw}or a 422{ok:false, error}. It points tosrc/web/in_place.tsandsrc/web/studio/crew.ts.
- The crew page: its seat forms (add, slot count, remove) are in place and not on the list. A third test checks this. Three other forms in
src/web/studio/crew.tsare still on the list:/settings,/settings/autonomyand/settings/crew/:/role. They are converted in later pulls. - What I left out:
- The test is a static scan of form markup. It does not post to each route to see whether the answer really is a full page.
- It does not check that a form marked
data-in-placehas a server route that answers JSON. The crew test covers that for the crew card. - Forms built outside
src/webare not scanned.
I added no dependency and changed no page, route or tool, so the commit says No door:. To try it, run bun test test/in-place-rule.test.ts. Then add a post form without data-in-place under src/web and the test fails with its route.
All five review points are fixed and pushed. The rule test, including the new scanner fixture test, passes (4 tests) and tsc is clean. I didn't run the full suite, which the forge's check runs on push.
- Scanner:
test/helpers/in-place-forms.tsnow finds each form tag and its action by brace depth. It skips quotes and nested templates inside${}, so a>in an expression no longer ends the tag early. - Unreadable actions: a form whose action can't be read is labelled
file POST (form n), where n counts the forms in that file. - List: I regenerated
test/in-place-offenders.json. It has 573 entries (the file is 575 lines with the brackets), none containing${, and 98 carry the(form n)label. - Failure message: it now says to use the in-place helper in
src/web/in_place.ts: putdata-in-placeon the form and answer a JSON ask with{ok, redraw:[fragment urls]}or a 422{ok:false, error}. - Crew test: it now runs
offenders()and asserts that nosrc/web/studio/crew.tsentry ends in/settings/crew,/settings/pillarsor/settings/crew/:/remove. It also checks that none of those is on the list. - Scanner fixture test: it covers an in-place form, an offender, a
>inside${}, adata-in-placeset by an expression, a GET form and a<formaltag. - Tidy: the stray blank line in the helper is gone.
The gate prints two similarity hints, which I left as they are. files() resembles a helper in test/image-carries-runtime-reads.test.ts, and expressionEnd resembles one in test/spawn-pipes.test.ts. Neither is a duplicate-import or dead-code rule failure.
The check failed because a form that arrived from main broke the new in-place rule. That form is the owner's power-cycle confirm in src/web/games_machine.ts, which posts to /games/:/@cycle and answers with a full page. I listed it in test/in-place-offenders.json, as the rule's design expects for existing offenders. The in-place rule test file (test/in-place-rule.test.ts) passes again, 4 of 4. I didn't run the rest of the suite here, so the forge's check on this push will be the full verdict.
I merged current origin/main into the branch to pick up that file. The only change of mine is the one added line in the list.
I did not convert that form to answer in place. That is a separate change to the form's handler, and the list exists so such forms can be fixed one at a time.
This is a test-list change only, so no terminal or how-to change goes with it (the commit says "No door").
To try it, run bun test test/in-place-rule.test.ts.
Left #18460 open: 1 unticked item remain (the crew page is not on the list).
I added a rule test that fails any page form that answers with a full page where the in-place path could answer, and a list of today's 536 offenders.
test/in-place-rule.test.tspasses,tscis clean and the gate ran. I did not run the full suite ortest/pages-budget.test.ts. The forge's check runs them on push.test/helpers/in-place-forms.ts. It reads every<form method="post">undersrc/web. A form withoutdata-in-placeis an offender, namedfile POST normalised-action, for examplesrc/web/pages/infra.ts POST /infra/:/keep.test/in-place-offenders.jsonholds those names, not a count.data-in-placeand answer{ok, redraw}or a 422{ok:false, error}. It points tosrc/web/in_place.tsandsrc/web/studio/crew.ts.src/web/studio/crew.tsare still on the list:/settings,/settings/autonomyand/settings/crew/:/role. They are converted in later pulls.data-in-placehas a server route that answers JSON. The crew test covers that for the crew card.src/webare not scanned.I added no dependency and changed no page, route or tool, so the commit says
No door:. To try it, runbun test test/in-place-rule.test.ts. Then add a post form withoutdata-in-placeundersrc/weband the test fails with its route.Closes #18460