Repository navigation
refactor(cli)!: remove --tools overrides - #1894
Conversation
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 5 selected item(s). |
f97b047 to
a98941f
Compare
NanaseInori
left a comment
There was a problem hiding this comment.
Reviewed the CLI/runtime removal, embedded loader, changed tests and multilingual migration/documentation changes at a054871. I found no blocking implementation defect.
The removal is consistent across review and scan: the option fields and registrations disappear, both runtime call sites use LoadDefault(), and the external JSON loading path is removed rather than silently ignoring the old flag. The regression tests include separate/inline/empty --tools forms and preview invocations, while retaining --max-tools. The embedded definitions themselves are unchanged, and the independent-load test checks that one caller cannot mutate another caller's definitions.
The migration text accurately calls out the intentional breaking change, the lack of a runtime replacement for built-in tool redefinition, the review-only MCP boundary and the recommendation to restart sessions created with custom definitions. Existing customization anchor links are explicitly retained and tested.
The requirement here is the PR's stated decision to version the dedicated agent and its built-in tool definitions together; no linked issue is claimed. The duplicate search surfaced max-tools budget fixes and a diff-only proposal, not another removal of this override.
This approval covers the source change under that explicitly declared breaking-change scope. I did not run the Go/ACP/site suites or an external benchmark locally, and this review does not certify the author's unchecked human/CLA attestations.
This review was conducted by NanaseInori's review bot, using the model GPT-6 Astra Pro. If you need a human review, please manually @NanaseInori.
Description
Remove runtime overrides of the dedicated review agent's built-in tools. Keep the core tool definitions and workflow versioned and benchmark-validated together, while retaining MCP for external business context.
--toolsfrom bothocr reviewandocr scan, including option fields and external-file loading.toolsconfig.LoadDefault(). Preserve tool schemas, prompts, phase assignments, MCP registration, and--max-toolsbudgets.Breaking change and migration
Invocations containing
--toolsnow fail withunknown flag: --tools, including preview runs. Remove the flag and its file argument from scripts and aliases. Project guidance belongs in review rules or background context; external business context belongs in MCP. There is no runtime replacement for disabling or redefining built-in tools.mcp_servers.<name>.toolsand--max-toolsremain supported. MCP remains connected only inreview; adding it toscanis out of scope. Existing session files remain readable, but sessions created with custom tool definitions should be restarted rather than resumed.Type of Change
How Has This Been Tested?
make checkmake test(race enabled, rerun after rebasing ontoorigin/main)make coverage(90% minimum)make build--tools; separate, inline, and preview invocations reject it;--max-toolsremains advertised.make -C acp test GOTESTFLAGS='-v -race -count=1 -p 1'npm --prefix pages test(48 tests) andnpm --prefix pages run buildocr review --audience agent --format json --background "...": all 5 selected production files completed, 0 comments, no failed or waived files. The 8 test files and 31 Markdown files were not selected by OCR.An ACP timing test timed out during the initial concurrent validation, then passed both in isolation and in the full serial suite. The documentation build reports bundle-size warnings. No external benchmark was rerun; built-in definitions, prompt templates, and execution-equivalence fixtures are unchanged.
Local Go validation used a working installed toolchain with the stale
GOROOTunset. Temporary executables stayed under the Git-ignoreddist/verify/tmpdirectory, with a Git discovery ceiling to isolate non-repository test fixtures.Checklist
go fmt,go vet)AI/LLM disclosure
Codex using
gpt-6-astraassisted with design, implementation, tests, documentation, and PR preparation. Open Code Review (ocrv1.13.6), also usinggpt-6-astra, performed the automated production-code review. No AI attribution or co-author trailers were added to the commit.Human self-review, the CLA, and the author's responsibility for answering maintainer questions must be confirmed by the author; those checklist items are intentionally left unchecked.
Related Issues
None linked.