Public: anyone can read this; the crew can change it.
The model-review proposal can be applied or declined through the existing scorecard MCP tool, in the words of the page's button #15282
Merged 11d 20h ago, live in production
The scorecard MCP tool now takes action: apply|decline with change, the id of one waiting model-review proposal. It does what the page's Move to … / Leave it buttons do and answers with the page's sentence. I did not run the full suite; the forge runs it on this push.
-
Reviews
Changes requested — before the latest pushThe change does what the issue asks and the code is tidy, but two things fail the list.
Fix first: the agent refusal is not tested on the path it was written for. In test/mcp-scorecard-decide.test.ts the agent (is_agent=1, not admin) is stopped by
visible()in src/http/mcp/shared.ts with "no tool named scorecard…", beforerunis reached. So CHANGE_WORDS.person, the sentence the issue and docs promise, is never asserted. Make an agent that is an admin (set is_admin=1 on the bot), call apply, and assert the text contains CHANGE_WORDS.person. Also assert the sentence on the non-agent, non-admin path if it is reachable, or drop that dead branch.Second, the issue says an agent is refused "with the page's sentence". The page has no agent sentence, so a new one was invented. Say in the description that this is the choice, or reuse an existing ADMIN_WORDS sentence.
Minor:
change.length > 40repeats the schema's maxLength, which is fine as a boundary check. The helpercallresemblesmcpin test/xlarge-size.test.ts; reuse the shared one if a helper exists.ApprovedEarlier asks are met: the agent refusal is now tested on the admin-agent path that reaches
run, with the model and change left untouched, and the decision words live in oneCHANGE_WORDSso the page and tool cannot drift. The tool checks who (a person who administers), capschange, validatesaction, and goes through the existingdecideChange. The no-argument read is unchanged. The docs live in docs/features, not README. The page change only moves the words, so there is no visible change. The merge of main adds nothing to review. Non-blocking: thecalltest helper resemblesmcpin xlarge-size.test.ts. -
Checks
shipped production is serving it deploy de6ec9b
-
History
- Merge main 39d117e
- The gate runs from the base commit's gate script, so a pull cannot loosen the check that judges it (#15284) 17b720c
- Test the agent refusal on the path it was written for: an agent that administers 14f0f96
- The hunters get a speed lane: each top page's median over five GETs, a finding when it passes its page budget (#15274) a04c9cd
- /settings/runners lists the forge's check runners: name, state, last seen, jobs run, and a remove button for hand-made ones (#15270) de73be1
- Pages that answer under a measured budget: /system, /feed, /board, /fleet, /talk and a pull page join the page-budget roster (#15269) d6cbb79
- After a data import or its undo the running app is restarted for you, and the page says so (#15280) 73a87b3
- A hunter finding files itself: one issue per key, a comment only when its evidence changes (#15279) d92129a
- scorecard now writes when given an action: name it in the ask-first list, and let the read-only admin sweep call it bare 9b30b1e
- A template's own page shows its first ask, so a client sees what the new forge will open with (#15281) 5013692
- /oembed?url= answers a public app or repository link with a rich card for other tools (#15079) b707483
- Gate lines for the crew page edit 3f64733
- A child forge's Bun processes start with a smaller heap, with the resident memory before and after in the pull (#15273) c9cf042
- Each deepsec sweep records the findings a person marked false positive, so blocking the gate has a measured rate (#15267) c7babf2
- An outliving cell's egress bytes are counted in the host's gauges (#15277) 0e1969c
- Try: call the scorecard MCP tool with action decline and a waiting change's id d3af888
- scorecard MCP tool: action apply|decline answers a model-review proposal in the page's words 1eb1085
- checks.concurrency counts a runner's capacity, so adding a runner raises how many checks run at once (#15268) 913eacc
- Flaky test: 500 entries: GET /changelog answers in under 50 ms (median of 3 warm runs) (#15250) 8b57058
- Full suite red: 3 files in check run 01m7ys3y4hj03keaxqsq3vkemy (#15249) 42bd748
6 earlier comments
The scorecard MCP tool now takes action: apply|decline with change, the id of one waiting model-review proposal. It does what the page's Move to … / Leave it buttons do and answers with the page's sentence. I did not run the full suite; the forge runs it on this push.
- What it answers:
{ change, agent, from, to, state, says }.saysis "sonnet it is." on apply and "Left as it was." on decline. A change that is no longer waiting gets "That change is no longer waiting." - Who may: only a person who administers the forge. An agent is refused outright with a new sentence, "the model review's button is a person's who administers the forge; an agent cannot press it". Agents can't move a model, their own or anyone else's.
- Same words as the page: the page and the tool both take their wording from
CHANGE_WORDSinsrc/actions/model_review.ts, so they can't drift. The page's behaviour is unchanged. The tool's code path isanswerChange, which calls the existingdecideChange(the one the page and terminal use). - No-argument call: it still reads the scorecard as before.
readsWithout: "action"keeps a read-only token able to make that read. - Size: no tool was added and no ceiling was raised.
test/mcp-size.test.tspasses. - Docs:
docs/features/model-review.mdnow says the button is on the tool, anddocon the tool carries it fordocs/MCP.md.
Tests: test/mcp-scorecard-decide.test.ts covers apply, decline, an agent being refused with the model and change untouched, and a bad or missing argument. I also ran the model-review, scorecard, MCP size, MCP doc and MCP tools tests. All of them pass, and tsc is clean. scripts/fast.ts said the diff was too broad to name tests, so I picked these myself.
Not done: the review still doesn't look at an agent running on the runner's default model.
Push: the pre-push hook wants a "Try:" commit, so the last commit is an empty one: call scorecard with { "action": "decline", "change": "<id from modelReview.changes>" } as an admin token.
No page change, so there are no review steps or before/after looks.
<!-- look-pages d3af888cc9cf --> Look pages for d3af888, from the gate:
look pages (none): this pull changes src/web/pages/crew.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
The MCP scorecard tool can now apply or decline a waiting model-review proposal, using the same words as the page. The first push failed the "both doors" gate rule, and I've pushed a fix that satisfies it. I didn't re-run the gate, tests or type check here, so the forge's check on this push is the first verdict on the fix.
- What changed:
scorecardtakesaction: apply|declineand a waiting change's id. The decision words now live inCHANGE_WORDSinsrc/actions/model_review.ts. The crew page,modelReviewDecideinsrc/web/pages/crew.ts, reads them from there. The wording shown on the page is unchanged.docs/features/model-review.mdandtest/mcp-scorecard-decide.test.tsare updated. - The gate failure: the page edit only moves where the words come from, so the terminal has nothing new to show. An empty commit carries a
No door:line saying so, plus aNo look:line for the "could not trace/settings/security/controls" warning. Both are in the commit message. - Not done: the gate also warned that
callintest/mcp-scorecard-decide.test.tslooks 0.71 similar tomcpintest/xlarge-size.test.ts. It is a note, not a failure, and I left the two helpers separate. - To try it: call the
scorecardtool withaction: "apply"or"decline"and the id of a waiting change. The crew settings page at/settings/crewshows the same message afterward.
🤖 Generated with Claude Code
I made no new change for this feedback, because the look-pages comment was written against d3af888, before my last push. That push, 3f647330b, already carries the line the gate asked for: No look: the rendered words are unchanged, only their source moved to a shared constant. I haven't seen a gate or check result for that commit yet, so I can't say it clears the warning.
I did not add a Looks: <path> line, because there is no page to point at. The gate couldn't trace the route behind src/web/pages/crew.ts. Only the source of the decision words moved, to CHANGE_WORDS, and the page renders the same text. If you'd rather name /settings/crew as the nearest page, say so and I'll add the line.
What changed: the scorecard MCP tool now takes action: apply|decline plus a waiting change's id, answering in the page's own words. Those words now live in CHANGE_WORDS in src/actions/model_review.ts, and the crew page reads them from there. docs/features/model-review.md and test/mcp-scorecard-decide.test.ts are updated.
Left alone: the gate's note that call in test/mcp-scorecard-decide.test.ts resembles mcp in test/xlarge-size.test.ts. It is a note, not a failure, so I kept the two helpers separate.
To try it: call scorecard with action: "apply" or "decline" and a waiting change's id. /settings/crew shows the same message afterward.
🤖 Generated with Claude Code
Two of the three failures came from scorecard becoming a write tool. I fixed both and pushed 9b30b1eaa. The third was a flake. Before pushing, the four affected test files passed and bun x tsc --noEmit and bun scripts/gate.ts --fix were clean, except for the test-similarity note below.
conversation-confirm.test.ts: everywrites: truetool must be on the ask-first list or theNOT_ASKEDlist. I putscorecardonNOT_ASKED, next to the other settings an admin can put back. This putsscorecardin the same group asweekandupstream, which also gained a write action behind a read-only call.route-marks.test.ts: the admin sweep that calls each read-only admin tool with no arguments now also counts a tool that reads when given none, such asscorecardandforges. Without that, only 3 tools were left and the test's "more than 3" check failed.sentinel-causes.test.ts("the key is the run kind…"): it passes on its own here and doesn't touch anything this pull changed. I treated it as a flake and made no change.
The gate's similarity note between call in test/mcp-scorecard-decide.test.ts and mcp in test/xlarge-size.test.ts still shows. It is a note, not a failure, so I left it.
The commit message carries a No door: line, since only tests changed. I haven't run the full check; the forge does that on this push.
🤖 Generated with Claude Code
The agent refusal is now tested on the path it was written for, and I've pushed it as 14f0f96d6. The scorecard test file passes (5 tests) and bun x tsc --noEmit is clean. I did not re-run bun scripts/gate.ts or the other tests after this commit.
- New test: the test sets
is_admin=1on the bot, callsapplyon a waiting change, and asserts the error containsCHANGE_WORDS.person. It also asserts the change staysaskedand the agent's model is untouched. The admin flag is put back afterwards. - Existing test, kept: the non-admin agent test now only covers the refusal from
visible(), where the agent never reachesrun. It still checks that nothing changes. Thekind !== "user"branch can only be reached by an admin agent, so the new test is the one that covers it. - The sentence is a choice, not a reuse. The page has no sentence for an agent, so I wrote one:
CHANGE_WORDS.person, "the model review's button is a person's who administers the forge; an agent cannot press it". I did not reuse anADMIN_WORDSsentence because none of them says an agent can't press this button. Say if you'd rather have an existing one. - Test helper: I kept my own
callintest/mcp-scorecard-decide.test.ts. I did not find a shared MCP call helper to reuse, so the similarity note from the gate stays. maxLength:change.length > 40stays as a boundary check that repeats the schema'smaxLength.
🤖 Generated with Claude Code
The three failures don't come from this change, and I changed no code to fix them. I pushed a merge of current main into the branch (39d117e9f) to get a fresh check run.
- Failing tests: the crawler screen test (
test/tui-crawlers.test.ts), the event-stream test intest/strangers.test.ts, and the blob-page switch test intest/media.test.ts. - Why I think they're load-sensitive: each failed in a different shard of the 83-shard check, and none touches the scorecard decision code or the crew-page message strings this pull edits. Run alone, all three files pass, three times in a row, on this branch before the merge. The check itself found
test/strangers.test.tsgreen onmain, but that doesn't show whether it passes on this branch alone. - If it fails again: the check's log will show whether the same three tests fail in the same shards.
After the merge, bun x tsc --noEmit is clean and these pass: test/tui-crawlers.test.ts, test/strangers.test.ts, test/mcp-scorecard-decide.test.ts, test/route-marks.test.ts. I did not re-run test/media.test.ts after the merge. I did not run the full suite, as instructed.
The gate printed two notes, both left alone. One is a comment line over 100 columns in test/route-marks.test.ts, which the nightly rewrap handles on main. The other is a duplication hint between call in test/mcp-scorecard-decide.test.ts and mcp in test/xlarge-size.test.ts, which I didn't fold together.
I had first rebased onto main, but the forge refuses a force push, so I went back to the pushed branch and merged instead.
The
scorecardMCP tool now takesaction: apply|declinewithchange, the id of one waiting model-review proposal. It does what the page's Move to … / Leave it buttons do and answers with the page's sentence. I did not run the full suite; the forge runs it on this push.{ change, agent, from, to, state, says }.saysis "sonnet it is." on apply and "Left as it was." on decline. A change that is no longer waiting gets "That change is no longer waiting."CHANGE_WORDSinsrc/actions/model_review.ts, so they can't drift. The page's behaviour is unchanged. The tool's code path isanswerChange, which calls the existingdecideChange(the one the page and terminal use).readsWithout: "action"keeps a read-only token able to make that read.test/mcp-size.test.tspasses.docs/features/model-review.mdnow says the button is on the tool, anddocon the tool carries it fordocs/MCP.md.Tests:
test/mcp-scorecard-decide.test.tscovers apply, decline, an agent being refused with the model and change untouched, and a bad or missing argument. I also ran the model-review, scorecard, MCP size, MCP doc and MCP tools tests. All of them pass, andtscis clean.scripts/fast.tssaid the diff was too broad to name tests, so I picked these myself.Not done: the review still doesn't look at an agent running on the runner's default model.
Push: the pre-push hook wants a "Try:" commit, so the last commit is an empty one: call
scorecardwith{ "action": "decline", "change": "<id from modelReview.changes>" }as an admin token.No page change, so there are no
reviewsteps or before/after looks.Closes #15265