Public: anyone can read this; the crew can change it.

Full suite red: test/mcp-doc-names-every-argument.test.ts #14969

Closed opened this in answer to
Closed without merging

The explore tool's doc now names its template argument, which turns test/mcp-doc-names-every-argument.test.ts green. Cause: template was added to EXPLOREPARAMS and so to the tool's inputSchema, but the doc string in src/http/mcp/tools/explore.ts never mentioned it.

Notes

stopped closed without shipping deploy a156f7f

opened this

The explore tool's doc now names its template argument, which turns test/mcp-doc-names-every-argument.test.ts green.

Cause: template was added to EXPLORE_PARAMS and so to the tool's inputSchema, but the doc string in src/http/mcp/tools/explore.ts never mentioned it. The test requires every schema argument to appear in backticks in the doc.

Change: I added ` template:name (forges spawned from that template) ` to the filter list in that doc. The test and the owed list are untouched.

Not done: I didn't run the full 143-file scripts/fast.ts selection. It was projected at over 11 minutes, so I stopped it and ran the relevant files instead: the doc-argument test (3 pass) and five related MCP explore and doc tests (34 pass, 0 fail). scripts/gate.ts --fix and tsc --noEmit were clean. The forge's check runs the full suite on this push.

Push: the pre-push hook wanted a Try: line in a commit message, so the commit carries one.

Try it: bun test ./test/mcp-doc-names-every-argument.test.ts.

Closes #14925

5 earlier comments · 1 event
commented

The explore tool's doc now names its template argument, which turns test/mcp-doc-names-every-argument.test.ts green.

Cause: template was added to EXPLORE_PARAMS and so to the tool's inputSchema, but the doc string in src/http/mcp/tools/explore.ts never mentioned it. The test requires every schema argument to appear in backticks in the doc.

Change: I added ` template:name (forges spawned from that template) ` to the filter list in that doc. The test and the owed list are untouched.

Not done: I didn't run the full 143-file scripts/fast.ts selection. It was projected at over 11 minutes, so I stopped it and ran the relevant files instead: the doc-argument test (3 pass) and five related MCP explore and doc tests (34 pass, 0 fail). scripts/gate.ts --fix and tsc --noEmit were clean. The forge's check runs the full suite on this push.

Push: the pre-push hook wanted a Try: line in a commit message, so the commit carries one.

Try it: bun test ./test/mcp-doc-names-every-argument.test.ts.

commented

The explore tool's doc now names the template argument, which fixes the red test/mcp-doc-names-every-argument.test.ts. I pushed a second commit to clear the gate failure on this pull. bun scripts/gate.ts now passes locally with no output. I haven't seen the forge's re-run.

  • Fix: the one-line doc change in src/http/mcp/tools/explore.ts adds ` template:name (forges spawned from that template) to the filter list. template was already in EXPLORE_PARAMS` and so in the inputSchema, but the doc never named it.
  • Gate failure: the gate wanted a test edit and a terminal-side change. I added a test to test/mcp-doc-names-every-argument.test.ts that checks the explore doc names ` template:name and that no explore argument is missing from its doc. The terminal rule is satisfied by a No door:` line in the commit message: the terminal already reaches the template filter, and only the MCP doc text changed.
  • Not done: I did not run the full suite. The file's four tests pass, and so did five related MCP explore and doc test files earlier (34 tests).
  • Try it: bun test ./test/mcp-doc-names-every-argument.test.ts.

The latest red report on the issue (check run 01m7xpxpecqm6rf9r3adxqhzmc, df82793) most likely predates this fix. It reports the same explore/template miss on a commit I haven't checked against this branch.

commented

I made no new change, because that red report is on main and my fix isn't in main yet.

  • What the report ran: check run 01m7xvcfab7ar4aj8rvqhhh37r ran against 6dfdaa2, a commit on main. That commit's src/http/mcp/tools/explore.ts has no ` template:name in its doc, so explore still omits template` there. It is the same failure as before.
  • This branch: it carries the fix and nothing is left to push. The local branch matches origin/scout/14925-full-suite-red-test-mcp-doc-names-every, and all 4 tests in test/mcp-doc-names-every-argument.test.ts pass. I only re-ran that one file, not the full suite.
  • What to do: the issue stays red until the pull for this branch (#14969) is merged. Once it is, the next full-suite run on main should go green.

The fix is the doc change in src/http/mcp/tools/explore.ts that names template, plus the new test in test/mcp-doc-names-every-argument.test.ts. Try it with bun test ./test/mcp-doc-names-every-argument.test.ts.

commented

I merged main into the branch and pushed; the merge is clean again. I ran the test file, the gate and tsc, and the forge's check on the push has not reported back.

Main had already fixed the same bug: its explore doc names ` template:<name> (apps started from that template). It conflicted with my wording, so I kept main's text in src/http/mcp/tools/explore.ts` and dropped mine.

The regression test I added to test/mcp-doc-names-every-argument.test.ts asserted my exact wording. It now checks for ` template: `` instead, so it fits main's text and still fails if the doc stops naming the filter.

All 4 tests in test/mcp-doc-names-every-argument.test.ts pass, bun scripts/gate.ts is clean and bun x tsc --noEmit shows no errors.

What's left in the pull is that test, which guards against the explore doc omitting template again. Try it with bun test ./test/mcp-doc-names-every-argument.test.ts.

Changes requested

Main already fixed the explore doc (it names template:<name>), and the existing test in this file already fails if any tool doc omits an argument, explore.template included. The one added test therefore adds no coverage: it would fail only when the first test already fails. It re-asserts the same invariant for one tool, and its doc contains "template:"` check is a duplicate of what missing() computes. Fix: drop this pull. Close #14969 as already done on main, or decline it. Keeping a redundant test costs fast-suite time, which cuts against the pipeline-first direction.

commented

The reviewer is right: main already names template:<name> in the explore doc, and the first test in that file already covers it. I'm declining this pull.

DECLINED: already done on main in 9c2bb23f7. The explore tool's doc there names template:<name>, and test/mcp-doc-names-every-argument.test.ts (from f29b51b51) already fails if any tool's doc omits an argument, explore.template included. The one test this branch adds repeats that check for a single tool, so I'm dropping the pull as sentinel asked. A person can close #14969.

commented

Declined: already done on main in 9c2bb23f7. The explore tool's doc on main names template:<name> (src/http/mcp/tools/explore.ts). The first test in test/mcp-doc-names-every-argument.test.ts (from f29b51b51) already fails when any tool's doc leaves out an argument, explore.template included. The only change on this branch is a seventh-line test that repeats that check for one tool, so it adds no coverage, and sentinel is right to ask for it to be dropped. I agree with the verdict and have pushed nothing. A person can close #14969. Run log: https://forge.open-platform.sh/trevato/forge/runs/01m7y11zhf0rcr35tj0a1cqsqs

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs