File item 476: load no MCP server in the bench's headless claude calls that are denied tools
CI / tests (pull_request) Has been cancelled
CI / tests (pull_request) Has been cancelled
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
`Bar = 0.1`
|
||||
|
||||
`Next ID = 476`
|
||||
`Next ID = 477`
|
||||
|
||||
## Items
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
| 472 | 0.15.0 | 454 | owner | **Let a project's config name a working branch per epic, such as `TW-12345`, that chunks branch off, merge into and keep level with `main`, so a person merges the finished epic into `main` in one pull request.** | 4 | 2 | 3 | 7 | 7 | 1.5 by 6, 1.6 by 7 | 1.1 |
|
||||
| 467 | 0.15.0 | 454, 472 | question | **Cut 0.15.0 as soon as items 449, 450, 453, 454, 468, 470 and 472 have merged, before its release review, and run that review in 0.15.1.** | 1 | 1 | 1 | 1 | 1 | | 0.0 |
|
||||
| 473 | 0.15.0 | | security | **Load no MCP server in a headless claude call that is denied tools, so text an outsider wrote cannot reach one.** | 2 | 2 | 2 | 4 | 3 | 4 by 4 | 5.0 |
|
||||
| 476 | 0.15.0 | 473 | security | **Load no MCP server in the bench's headless claude calls that are denied tools, as item 473 did for the loop's six.** | 2 | 2 | 1 | 3 | 2 | 4 by 3 | 4.2 |
|
||||
| 469 | 0.15.1 | | | **Move a do-epic parent issue whose sub-tasks a person filed to Release Ready once every sub-task has landed, and to Done once every sub-task is done, by transitions its config names.** | 3 | 2 | 2 | 5 | 4 | 1.2 by 4, 1.5 by 4, 1.6 by 3 | 3.1 |
|
||||
| 446 | 0.16.0 | | question | **Kill the process a stuck check names where its verdict is `stuck`, once the human says the recorded verdicts match what they would have done.** | 2 | 2 | 3 | 5 | 3 | 1.5 by 3 | 1.0 |
|
||||
| 462 | 0.16.0 | | | **Run under `mutate-changes` the tests that today fail in mutmut's copy of the tree, so a mutant of a line only they cover is killed.** | 2 | 1 | 2 | 3 | 3 | code health by 3 | 4.7 |
|
||||
@@ -166,6 +167,26 @@ Touches:
|
||||
- `bin/agent_cycle/test_stuck_workers.py`: `StuckWorkers`
|
||||
- `bin/review_replay/test_review_replay.py`
|
||||
|
||||
### 476. Load no MCP server in the bench's headless claude calls that are denied tools, as item 473 did for the loop's six.
|
||||
|
||||
Exposure: item 473 added `--strict-mcp-config`, without `--mcp-config`, beside `--tools` at six headless `claude -p` calls in `bin/` that deny the model tools while their prompt holds text an outsider can write. Without the flag, MCP servers from the user's or the project's config still load, so a prompt injection in that text can call an MCP tool. Two more calls in the repo's bench folders deny tools the same way and still lack the flag:
|
||||
|
||||
- `workflow-bench/advisor_bench.py:185`, the judge's argument list in `grade`. `--setting-sources ""` doesn't stop MCP servers from the user's config. Its prompt holds a plan item's text and two diffs of this repo, so an outsider reaches it only through a merged change.
|
||||
- `reviewer-merge-trials/analyze.py:54`, `args` in `new_findings`. Its prompt holds reviewer reports, which quote the reviewed project's code, so whoever wrote that code reaches it. `matched` in the same file calls review_replay's `match`, which item 473 already fixed.
|
||||
|
||||
Fix: pass `--strict-mcp-config` beside `--tools` at both. In `workflow-bench/test_advisor_bench.py`, extend the grade test's expected arguments in `Orchestration`. `reviewer-merge-trials/` has no test file, and no test can import `analyze.py`, since it loads the gitignored `runs.pkl` when imported. So add a check under `bin/repo_checks/` instead: every Python file of the repo, tests left out, that passes `"--tools"` passes `"--strict-mcp-config"` too. It covers both sites and item 473's six, and fails on the next call that denies tools without the flag. That needs item 473's six in place, hence the block.
|
||||
|
||||
The trials folder isn't frozen. `docs/decisions.md` → the reviewer-merge trials entry says to replay the merge with these scripts when a reviewer's definition changes, and `bin/repo_checks/test_trials_imports.py` keeps their imports from `bin/` working for that. A comprehension seat called the trial frozen at `reviewer-merge-trials/driver.py:4`; this item doesn't touch that place. The flag changes no recorded result, so `reviewer-merge-trials/README.md` stays as it is.
|
||||
|
||||
Found while shipping item 473.
|
||||
|
||||
Touches:
|
||||
|
||||
- `workflow-bench/advisor_bench.py`: `grade` (small)
|
||||
- `workflow-bench/test_advisor_bench.py`: `Orchestration` (small)
|
||||
- `reviewer-merge-trials/analyze.py`: `new_findings` (small)
|
||||
- `bin/repo_checks/test_headless_mcp.py`
|
||||
|
||||
### 469. Move a do-epic parent issue whose sub-tasks a person filed to Release Ready once every sub-task has landed, and to Done once every sub-task is done, by transitions its config names.
|
||||
|
||||
do-epic moves to done only a parent it split itself (`split_items_closed`). A parent whose sub-tasks a person filed stays as Jira holds it, and `--status` says "its sub-tasks are done; close it in Jira". Until someone moves it, the parent blocks every issue it blocks, and through it their sub-tasks. On TW-13503, TW-13505 blocks most of the critical path this way, and TW-13547's sub-tasks are all Release Ready while the parent stays In Progress. The human asked, on 2026-11-20, for deterministic code to move these parents, not a worker or a person.
|
||||
|
||||
Reference in New Issue
Block a user