Repository navigation
Description
Problem or Motivation
A command run by the planner can cause damage if it writes state, deletes keys, or exposes private paths (such as the defect in #3218 where config unset deleted a key). As decided in ADR 0018 (docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.md, #3242), the run tool must enforce a strict allow-list before executing any command in the sandbox.
Proposed Solution & Architectural Design
Implement the allow-list builder and validator for planner commands:
- Build the allow-list table of permitted command paths from:
- Help commands for every command:
devops <command> --help. - Each read-only command from
CONST_MCP_EXPOSURE_TABLEinsrc/devops_cli/config/constants.pywith options permitted by its MCP tool. - Exclude any command that publishes an option for a path, as governed by
_PATH_PARAM_RESTRICTIONSinsrc/devops_cli/ai/mcp/generator.py(even if marked read-only in the exposure table).
- Help commands for every command:
- Refuse any command path not in the allow-list table and return the refusal reason so the planner continues planning without running the command.
- Prohibit any user-supplied path options: the run tool operates solely on the mounted read-only staged commit.
Depends on: #3242 (ADR 0018).
Target Subsystem
AI & Agentic Review Pipeline
Existing Tool Considered
The existing CONST_MCP_EXPOSURE_TABLE and _PATH_PARAM_RESTRICTIONS tables in DevOps CLI already classify read-only commands and path parameters. Reusing these tested tables avoids duplicating command definitions. Building the allow-list comparison logic costs approximately 10,000 tokens and 0.5 elapsed days.
Proposed design
Problem statement
The planner runs devops CLI commands in a sandbox. A write command can delete state or expose a private path; devops config unset deleted a key in #3218. ADR 0018 requires a strict allow-list before the sandbox runs any command. This change builds that allow-list from the read-only rows of CONST_MCP_EXPOSURE_TABLE and narrows each command through _PATH_PARAM_RESTRICTIONS. The validator refuses every other command and returns one reason, so the planner continues planning.
Acceptance criteria
Requirement: Read-only command enters the allow-list
The allow-list builder SHALL hold each command path whose CONST_MCP_EXPOSURE_TABLE row is read-only and whose permitted Click parameters hold no path option.
Scenario: A read-only command with no path option
- WHEN The builder runs and the row of
gh labels listis read-only and its permitted Click parameters hold no path option - THEN The table holds
('gh', 'labels', 'list')withrepoamong its options
Requirement: Write command stays out
The allow-list builder SHALL leave out each command path whose CONST_MCP_EXPOSURE_TABLE row is not read-only.
Scenario: A write command
- WHEN The validator checks
valkey flush, whose row is not read-only - THEN The table holds no entry for
('valkey', 'flush')and the validator returns the reasonnot read-only
Requirement: Path option of a restricted command leaves it out
The allow-list builder SHALL leave out each command path whose permitted options hold an option that Typer types as a path.
Scenario: A restricted command with a path option
- WHEN The builder runs and the
allowedset oftf planholdsdirectory, whose Click type istyper.models.TyperPath - THEN The table holds no entry for
('tf', 'plan')and the validator returns the reasonpath option
Requirement: Path option of an unrestricted command leaves it out
The allow-list builder SHALL leave out each read-only command path whose Click parameters hold an option that Typer types as a path.
Scenario: An unrestricted command with a path option
- WHEN The builder runs and the
repoparameter ofai readhas the typetyper.models.TyperPath - THEN The table holds no entry for
('ai', 'read')and the validator returns the reasonpath option
Requirement: The restrictions narrow the options
The allow-list builder SHALL take the permitted options of a command that _PATH_PARAM_RESTRICTIONS names from that entry's allowed set.
Scenario: A restricted command with no path option
- WHEN The builder runs and
('telemetry', 'profile')allows onlytrace_id - THEN The table holds
('telemetry', 'profile')withtrace_idas its only option
Requirement: Help of every command is permitted
The validator SHALL permit the --help form of every command path that the Click tree holds.
Scenario: Help of a write command
- WHEN The validator checks
valkey flushwith the--helpoption - THEN It permits the run and returns no reason
Requirement: Unknown command is refused
The validator SHALL refuse each command path that the allow-list does not hold and SHALL return the reason.
Scenario: The command of the defect in #3218
- WHEN The validator checks
config unset ai.vllm_url - THEN It refuses the run with the reason
unknown commandand names the path('config', 'unset')
Requirement: An unpermitted option is refused
The validator SHALL refuse each option that the permitted set of the command does not hold.
Scenario: A withheld option of an allowed command
- WHEN The validator checks
ai benchmarkwith theoutputoption - THEN It refuses the run with the reason
option not permittedand namesoutput
Existing Tool Considered
No alternatives check has run. No open, maintained library builds an allow-list of read-only Click commands from the project's exposure table. Click and Typer give the command tree and the option types, and the project's CONST_MCP_EXPOSURE_TABLE and _PATH_PARAM_RESTRICTIONS give the policy. The change reuses those tables, the Click tree that resolve_click_command reads, and the path check of tests/ai/mcp/test_path_confinement.py. The comparison logic is built here, at a written cost of about 10,000 tokens to build, keep and fix, and 0.5 elapsed days.
Key questions
- Is ADR 0018 in the repository at this commit?: Yes.
docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.mdis in the repository. Its Follow-ups section names the allow-list builder as item 2. Its Decision section gives the two rules of the table: the read-only rows ofCONST_MCP_EXPOSURE_TABLE, and no command that publishes a path option. [sources: docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.md] - Which table gives the command paths and the read-only flag?:
CONST_MCP_EXPOSURE_TABLEinsrc/devops_cli/config/constants.py. Each row holds the command path tuple, a timeout in seconds, theread_onlyflag and theformat_jsonflag. [sources: src/devops_cli/config/constants.py, docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.md] - How does the builder read the options that a command permits?:
resolve_click_command(path)insrc/devops_cli/ai/mcp/generator.pyreturns the Click command of a path. The builder readsclick_cmd.paramsand applies the filter of_introspect_command_parameters. It skips_IGNORED_PARAM_NAMESand the JSON parameters when the row setsformat_json. It keeps only theallowedset when_PATH_PARAM_RESTRICTIONSnames the path, and it keeps no second list of options. [sources: src/devops_cli/ai/mcp/generator.py] - How does the builder tell a path option from another option?: By the Click type that Typer builds:
typer.models.TyperPathfor aPathannotation andtyper._click.types.Filefor aFileTextorFileBinaryReadannotation. Neither class is a subclass ofclick.Path. The builder usesisinstance(param.type, (TyperPath, TyperFile)), the check of the audit intests/ai/mcp/test_path_confinement.py. SECURITY.md rule 11 makes a file path from a model untrusted input. (best practice) [sources: tests/ai/mcp/test_path_confinement.py, openspec/changes/archive/2026-11-05-3480-mcp-path-audit-reads-types/design.md, SECURITY.md, docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.md]- Chosen: Read the Typer Click type. Typer builds
TyperPathorFilefrom the annotation, so a new path option needs no list; aclick.Pathcheck misses both classes. - Rejected: Keep a list of path option names. A new command's path option would go unseen, and the list repeats metadata that the annotation holds.
- Rejected: Check
click.Path. TyperPath and File are not subclasses ofclick.Path, so the check finds no Typer path option.
- Chosen: Read the Typer Click type. Typer builds
- What does a command that
_PATH_PARAM_RESTRICTIONSnames add to the allow-list?: Only the options of itsallowedset. The command leaves the allow-list when one of those options is a path option.telemetry profilekeepstrace_id.tf planleaves because itsallowedset holdsdirectory, atyper.models.TyperPath. (best practice) [sources: src/devops_cli/ai/mcp/generator.py, src/devops_cli/commands/tf.py]- Chosen: Keep the command with its
allowedoptions. The table withholds options, so the command publishes only the allowed ones, and a safe command such astelemetry profilestays. - Rejected: Leave out every command that the table names. It drops safe read-only commands such as
telemetry profileandvalkey ping, which publish no path.
- Chosen: Keep the command with its
- Does the allow-list permit the
--helpform of a write command?: Yes. The allow-list permits--helpfor every command path in the Click tree. Click handles the help option itself and exits before the command body runs, so the help of a write command writes nothing.test_all_registered_subcommands_have_helpshows that every command group answers--helpwith a usage line. (best practice) [sources: tests/commands/test_all_commands_help_dryrun.py, docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.md]- Chosen: Permit
--helpfor every path. Click handles the help option itself and runs no command body. - Rejected: Permit
--helponly for a path in the allow-list. The planner learns the options of a command from its help, and the help of a write command writes nothing.
- Chosen: Permit
- What does the validator return when it refuses a run?: A refusal that holds the command path and one reason from a closed set. The reason is
unknown commandfor a path that no row ofCONST_MCP_EXPOSURE_TABLEnames. It isnot read-onlyfor a row whose flag is false. It ispath optionfor a read-only row whose permitted options hold a path. It isoption not permittedfor an option outside the permitted set. (best practice) [sources: src/devops_cli/config/constants.py, src/devops_cli/roadmap/stage/stage_tools.py]- Chosen: A closed set of reason words. A test asserts one word, and the planner branches on it with no parse of free text.
- Rejected: A free-text message. No test can assert it, and the planner cannot branch on it.
- Where does the allow-list builder live, and what does it expose?: A new module
src/devops_cli/roadmap/stage/stage_run_allowlist.py, beside the planner's read-only tools insrc/devops_cli/roadmap/stage/stage_tools.py. It exposesbuild_allowlist(), which returns the table, andcheck_command(path, options), which returnsNoneor the refusal. (best practice) [sources: docs/roadmap/package-layout.md, src/devops_cli/roadmap/stage/stage_tools.py]- Chosen: A module beside the planner's tools. The run tool is a tool of the stage planner, and the planner's tools live in
src/devops_cli/roadmap/stage/stage_tools.py; the builder stays out of the MCP transport and the sandbox engine. - Rejected: A module under
src/devops_cli/ai/mcp/. The MCP server is no caller, and the builder must not depend on the MCP transport. - Rejected: A module under
src/devops_cli/sandbox/. The sandbox package holds the workload and host sandbox engines, not the planner's command policy.
- Chosen: A module beside the planner's tools. The run tool is a tool of the stage planner, and the planner's tools live in
- Where do the tests of the builder live?:
tests/roadmap/stage/test_stage_run_allowlist.py, beside the tests of the other stage modules. The tests oftests/roadmap/mirror the layout ofsrc/devops_cli/roadmap/. [sources: docs/roadmap/package-layout.md]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-09: none.
Tool: none found.
Activity
devops-cli-service commentedon Nov 7, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The change stops destructive planner commands and is a prerequisite for the run tool.The allow-list prevents writes and key deletion such as the defect in #3218.The candidate states about 10,000 tokens and 0.5 elapsed days of work.Both concern the ADR 0018 run tool; #3242 designs the tool and the candidate builds the allow-list check.devops-cli-service commentedon Nov 7, 2026
Refine cannot set this item to Ready at 5520193 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
devops-cli-service commentedon Nov 7, 2026
Status set to Ready at 226394c (see proposed design in issue body).
devops-cli-service commentedon Nov 9, 2026
Alternatives check: none
Reason: Two searches (Click CLI allow-list validators and LLM-agent command allow-lists) returned only unrelated MDN pages. No open, maintained tool builds an allow-list from this project's
CONST_MCP_EXPOSURE_TABLEand_PATH_PARAM_RESTRICTIONS. The issue already reuses those tables, plus Click and Typer introspection, and builds only the comparison logic.Tool: none found
Lacks:
Searches run:
Checked on 2026-11-09. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 10, 2026
Staged: branch
feat/4004-allow-list-builder-for-planner-read, draft pull request #4357. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
A model review of the plan found these points. They stop no draft, and a person judges them:
false_premiseat group 1 (the builder's path-option rule), and thewhat_changesandsecuritysections: The builder finds a path option only by the Click type that Typer builds, so the read-only row(("scan", "sast"), 300.0, True, False)enters the allow-list with itsconfigoption permitted, anddevops scan sast --config <path>names a file path that the type check cannot see. The plan's claim that no path option enters the table, so the planner names no file and the run reads only the mounted copy, is therefore false, and the plan breaks the issue's rule that no user-supplied path option runs. Evidence: "_TEXT_PATH_OPTIONS: Mapping[str, frozenset[str]] = {"scan_sast": frozenset({"config"})}"false_premiseat feasibility: The plan says the exposure table holds 149 rows, butCONST_MCP_EXPOSURE_TABLEholds 144 rows: lines 286-434 are 149 lines and five of them (319, 361, 371, 397, 399) are comments. The group 1 census test that fails when the count is not 149 therefore fails on the base, and the plan's row count is wrong. Evidence: "the plan takes the set as the 149 rows above that line"contrived_testat group 1: The only test of the text-path clause builds a small Typer app and patches only the confinement table, butbuild_allowlist()walksCONST_MCP_EXPOSURE_TABLEand resolves each row throughresolve_click_command, so the app never becomes a row. The test asserts an absence it never caused and passes whatever the builder does, leaving the text-path rule untested. Evidence: "build a small Typer app with aconfig: stroption, give its tool name an entry in the confinement table with monkeypatch, and assert the row leaves"contrived_testat feasibility: The census test recomputes each row's decision with the same rule as the builder, so it mirrors the builder's code instead of checking it and a builder that applies the rule wrongly in the same way still passes; only the hardcoded count is an independent check. Evidence: "The census decides each row from its own data"contrived_testat specs: The text-path scenario usesscan sast, whosetargetis already a typed path, so the case passes even if the builder never readsPATH_CONFINEMENTSand does not assert the requirement's second clause. Evidence: "the type check alone already leaves the rowsrc/devops_cli/config/constants.py:410: (("scan", "sast"), 300.0, True, False),out of the table."contrived_testat group 1: The test builds a small Typer app and gives only its tool name an entry in the confinement table, butbuild_allowlist()walksCONST_MCP_EXPOSURE_TABLEand resolves commands from the Click tree, so the synthetic command is never a row and the test cannot assert that a row leaves. Evidence: "build a small Typer app with aconfig: stroption, give its tool name an entry in the confinement table with monkeypatch, and assert the row leaves"contrived_testat group 1: The census test decides each row with the same rule as the builder, so it repeats the code and passes whatever the builder does; only the count of 144 is independent. Evidence: "The census decides each row from its own data: a row whose flag is false is removed withnot read-only, a read-only row whose permitted parameter is a path is removed withpath option, a row whose command the Click tree does not resolve is removed withunknown command, and every other read-only row is allowlisted."The runs of the planner and the review made 146 model request(s), and used 9610632 input tokens and 268898 output tokens. The tool calls, in order:
file_symbols({"path":"src/devops_cli/ai/mcp/generator.py"})list_files({"directory":"tests/roadmap/stage"})read_file({"path":"docs/roadmap/package-layout.md"})read_issue({"number":3242})read_file({"path":"src/devops_cli/ai/mcp/generator.py","start_line":1,"end_line":120})read_file({"path":"src/devops_cli/ai/mcp/generator.py","start_line":185,"end_line":330})read_file({"path":"tests/ai/mcp/test_path_confinement.py","end_line":80})search_code({"text":"(\"gh\", \"labels\", \"list\")"})search_code({"text":"(\"tf\", \"plan\")"})search_code({"text":"(\"ai\", \"read\")"})read_file({"end_line":190,"path":"src/devops_cli/ai/mcp/generator.py","start_line":120})read_file({"path":"src/devops_cli/config/constants.py","start_line":296,"end_line":345})read_spec({"capability":"roadmap-stage"})read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","end_line":90})search_code({"text":"(\"valkey\", \"flush\")"})search_code({"text":"(\"telemetry\", \"profile\")"})read_file({"end_line":300,"path":"src/devops_cli/config/constants.py","start_line":268})read_file({"end_line":470,"path":"src/devops_cli/config/constants.py","start_line":345})search_code({"text":"allowlist"})search_code({"text":"package-layout.md"})read_spec({"capability":"roadmap-package-layout"})file_symbols({"path":"tests/invariants/test_source_tree.py"})search_code({"text":"trace_id"})search_code({"text":"def list_labels"})read_file({"path":"src/devops_cli/commands/gh.py","start_line":233,"end_line":262})read_file({"path":"src/devops_cli/commands/telemetry.py","start_line":374,"end_line":400})search_code({"text":"def plan("})search_code({"text":"\"unset\""})file_symbols({"path":"src/devops_cli/commands/tf.py"})read_file({"end_line":198,"path":"src/devops_cli/commands/tf.py","start_line":159})search_code({"text":"CONST_HELP_OPTION_NAMES = "})file_symbols({"path":"src/devops_cli/commands/vault.py"})read_file({"end_line":205,"path":"src/devops_cli/commands/vault.py","start_line":136})list_files({"directory":"tests/invariants"})search_code({"text":"RunRefusal"})search_code({"text":"check_command"})search_code({"text":"ci docs"})read_issue({"number":3218})find_issues({"terms":"allow-list run tool"})list_files({"directory":"openspec/changes"})read_file({"path":"src/devops_cli/ai/mcp/generator.py","start_line":1,"end_line":200})read_file({"path":"tests/ai/mcp/test_path_confinement.py","start_line":1,"end_line":80})list_files({"directory":"src/devops_cli/roadmap/stage"})list_files({"directory":"tests/roadmap/stage"})search_code({"text":"(\"gh\", \"labels\", \"list\")"})search_code({"text":"(\"telemetry\", \"profile\")"})search_code({"text":"(\"ai\", \"read\")"})search_code({"text":"CONST_MCP_EXPOSURE_TABLE"})search_code({"text":"(\"tf\", \"plan\")"})search_code({"text":"(\"valkey\", \"flush\")"})search_code({"text":"(\"ai\", \"benchmark\")"})search_code({"text":"def resolve_click_command"})search_code({"text":"def labels_list"})search_code({"text":"target_path: Annotated[Path"})search_code({"text":"directory: Annotated[Path"})search_code({"text":"@app.command(\"unset\")"})file_symbols({"path":"src/devops_cli/commands/tf.py"})search_code({"text":"labels"})file_symbols({"path":"src/devops_cli/commands/gh.py"})search_code({"text":"def ai_read"})read_file({"end_line":245,"path":"src/devops_cli/commands/gh.py","start_line":225})search_code({"text":"@app.command(\"read\")"})search_code({"text":"repo: Annotated[Path"})search_code({"text":"def read_command"})search_code({"text":"command(\"read\")"})search_code({"text":"target_path"})read_file({"end_line":1945,"path":"src/devops_cli/commands/ai.py","start_line":1895})read_file({"end_line":300,"path":"src/devops_cli/config/constants.py","start_line":282})read_file({"end_line":435,"path":"src/devops_cli/config/constants.py","start_line":306})read_file({"end_line":265,"path":"src/devops_cli/ai/mcp/generator.py","start_line":183})search_code({"text":"def _introspect_command_parameters"})search_code({"text":"trace_id: Annotated"})search_code({"text":"stage_tools"})search_code({"text":"\"benchmark\""})read_file({"end_line":400,"path":"src/devops_cli/commands/telemetry.py","start_line":372})search_code({"text":"\"--output\""})read_spec({"capability":"roadmap-stage"})read_file({"end_line":165,"path":"src/devops_cli/commands/benchmark.py","start_line":148})read_file({"end_line":330,"path":"src/devops_cli/commands/config.py","start_line":310})read_file({"end_line":14,"path":"docs/roadmap/package-layout.md","start_line":1})list_files({"directory":"src/devops_cli/roadmap/stage"})list_files({"directory":"tests/roadmap/stage"})list_files({"directory":"docs/adr"})read_file({"path":"docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.md"})read_file({"path":"docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.md","start_line":50,"end_line":120})read_file({"path":"docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.md","start_line":85,"end_line":160})search_code({"text":"(\"vault\", \"get\")"})search_code({"text":"(\"vault\", \"get\"),"})read_file({"path":"src/devops_cli/ai/mcp/generator.py","start_line":175,"end_line":200})search_code({"text":"def vault_get"})read_file({"end_line":180,"path":"src/devops_cli/commands/vault.py","start_line":120})read_file({"end_line":260,"path":"src/devops_cli/commands/gh.py","start_line":215})read_file({"end_line":345,"path":"src/devops_cli/config/constants.py","start_line":280})read_file({"end_line":1955,"path":"src/devops_cli/commands/ai.py","start_line":1895})read_file({"end_line":420,"path":"src/devops_cli/commands/telemetry.py","start_line":370})read_file({"end_line":170,"path":"src/devops_cli/commands/benchmark.py","start_line":150})read_file({"end_line":340,"path":"src/devops_cli/commands/config.py","start_line":310})search_code({"text":"(\"valkey\", \"flush\"),"})read_spec({"capability":"roadmap-stage"})read_file({"end_line":95,"path":"src/devops_cli/ai/mcp/generator.py","start_line":60})search_code({"text":"allow-list"})search_code({"text":"allowlist"})search_code({"text":"_introspect_command_parameters"})file_symbols({"path":"src/devops_cli/ai/mcp/generator.py"})read_file({"end_line":325,"path":"src/devops_cli/ai/mcp/generator.py","start_line":284})search_code({"text":"def ci_test"})search_code({"text":"ci docs"})search_code({"text":"@app.command(\"test\")"})search_code({"text":"def test_cmd"})search_code({"text":"\"test\""})search_code({"text":"\"ci\": ("})search_code({"text":"def ci_test_command"})file_symbols({"path":"src/devops_cli/commands/ci.py"})read_file({"end_line":1920,"path":"src/devops_cli/commands/ci.py","start_line":1860})search_code({"text":"package-layout"})read_spec({"capability":"roadmap-package-layout"})read_file({"end_line":215,"path":"src/devops_cli/commands/vault.py","start_line":174})read_spec({"capability":"roadmap-stage","requirement":"Criteria mapping in the stage reply"})read_spec({"capability":"roadmap-stage","requirement":"An unmapped criterion is refused"})search_code({"text":"read_only"})read_file({"path":"src/devops_cli/ai/mcp/roles.py"})read_file({"end_line":222,"path":"src/devops_cli/ai/mcp/generator.py","start_line":192})read_file({"end_line":440,"path":"src/devops_cli/config/constants.py","start_line":415})read_file({"path":"tests/ai/mcp/test_path_confinement.py","start_line":150,"end_line":330})search_code({"text":"TyperPath"})list_files({"directory":""})read_issue({"number":3242})find_issues({"terms":"allow-list planner run tool"})read_spec({"capability":"roadmap-stage","requirement":"The planner has a read-only toolbox"})read_spec({"capability":"roadmap-stage","requirement":"A document task starts with the Edit verb"})read_spec({"capability":"roadmap-stage","requirement":"The documentation field starts with an imperative verb"})file_symbols({"path":"src/devops_cli/ai/mcp/path_confinement.py"})read_file({"path":"src/devops_cli/ai/mcp/path_confinement.py","start_line":1,"end_line":80})file_symbols({"path":"src/devops_cli/roadmap/implement/implement_shell_policy.py"})read_file({"end_line":60,"path":"src/devops_cli/roadmap/implement/implement_shell_policy.py","start_line":1})read_file({"end_line":250,"path":"src/devops_cli/roadmap/implement/implement_shell_policy.py","start_line":140})search_code({"text":"CONST_MCP_EXPOSURE_TABLE"})search_code({"text":"package_layout"})search_code({"text":"package-layout.md"})read_spec({"capability":"roadmap-stage","requirement":"A verify command has the project form"})read_file({"end_line":80,"path":"docs/TESTING.md","start_line":50})read_file({"path":"src/devops_cli/roadmap/stage/stage_commands.py","start_line":1,"end_line":60})search_code({"text":"(\"scan\", \"sast\")"})search_code({"text":"_TEXT_PATH_OPTIONS"})search_code({"text":"\"sast\""})read_file({"path":"src/devops_cli/commands/scan.py","start_line":360,"end_line":430})read_file({"path":"src/devops_cli/ai/mcp/generator.py","start_line":20,"end_line":200})read_file({"path":"src/devops_cli/ai/mcp/generator.py","start_line":200,"end_line":330})read_file({"path":"tests/ai/mcp/test_path_confinement.py","start_line":1,"end_line":130})search_code({"text":"scan_sast"})read_file({"path":"tests/ai/mcp/test_path_confinement.py","start_line":240,"end_line":300})read_file({"path":"docs/MCP_TOOLS.md","start_line":2122,"end_line":2175})read_file({"path":"tests/ai/mcp/test_path_confinement.py","start_line":130,"end_line":240})search_code({"text":"_PATH_PARAM_KEYWORDS"})read_file({"path":"src/devops_cli/ai/mcp/path_confinement.py"})search_code({"text":"(\"k8s\", \"lint\")"})search_code({"text":"(\"scan\", \"sbom\")"})search_code({"text":"command(\"lint\")"})search_code({"text":"command(\"sbom\")"})search_code({"text":"def k8s_lint("})read_file({"path":"src/devops_cli/commands/scan.py","start_line":492,"end_line":525})read_file({"path":"src/devops_cli/commands/k8s/security_audit.py","start_line":100,"end_line":160})search_code({"text":"(\"k8s\", \"diff-helm\")"})search_code({"text":"(\"tls\", \"inspect\")"})search_code({"text":"def k8s_diff_helm("})search_code({"text":"diff-helm"})search_code({"text":"def diff_helm_cmd("})read_file({"path":"src/devops_cli/commands/k8s/diagnostics.py","start_line":185,"end_line":225})search_code({"text":"(\"review\", \"stats\")"})search_code({"text":"(\"repos\", \"list\")"})search_code({"text":"(\"branches\", \"list\")"})search_code({"text":"(\"ai\", \"ingest\", \"query-library\")"})search_code({"text":"def repos_list("})search_code({"text":"def review_stats("})read_file({"path":"src/devops_cli/commands/review.py","start_line":1455,"end_line":1485})search_code({"text":"base_dir: Annotated["})read_file({"path":"src/devops_cli/config/constants.py","start_line":425,"end_line":440})search_code({"text":"len(CONST_MCP_EXPOSURE_TABLE)"})list_files({"directory":"src/devops_cli/roadmap/stage"})list_files({"directory":"tests/roadmap/stage"})search_code({"text":"CONST_MCP_EXPOSURE_TABLE"})read_spec({"capability":"roadmap-stage"})search_code({"text":"allow-list"})search_code({"text":"(\"gh\", \"labels\", \"list\")"})search_code({"text":"(\"vault\", \"sync\")"})search_code({"text":"ci docs"})search_code({"text":"CONST_MCP_EXPOSURE_TABLE:"})read_file({"path":"src/devops_cli/config/constants.py","start_line":300,"end_line":360})read_file({"path":"src/devops_cli/config/constants.py","start_line":360,"end_line":440})read_file({"path":"src/devops_cli/config/constants.py","start_line":280,"end_line":300})read_file({"end_line":200,"path":"src/devops_cli/ai/mcp/generator.py","start_line":160})read_file({"end_line":255,"path":"tests/ai/mcp/test_path_confinement.py","start_line":235})read_spec({"capability":"roadmap-stage","requirement":"The planner has a read-only toolbox"})read_spec({"capability":"roadmap-stage","requirement":"A new test module sits in a mirror directory"})search_code({"text":"def read("})search_code({"text":"(\"labels\", \"list\")"})search_code({"text":"def plan("})search_code({"text":"def benchmark("})search_code({"text":"target_path"})search_code({"text":"\"labels\""})list_files({"directory":"src/devops_cli/commands"})read_file({"end_line":1945,"path":"src/devops_cli/commands/ai.py","start_line":1898})read_file({"end_line":240,"path":"src/devops_cli/commands/gh.py","start_line":136})search_code({"text":"directory"})search_code({"text":"def tf_plan"})file_symbols({"path":"src/devops_cli/commands/tf.py"})search_code({"text":"(\"ai\", \"benchmark\")"})read_file({"end_line":198,"path":"src/devops_cli/commands/tf.py","start_line":159})search_code({"text":"output"})file_symbols({"path":"src/devops_cli/commands/benchmark.py"})search_code({"text":"\"--output\""})search_code({"text":"allowlist"})search_code({"text":"build_allowlist"})read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":1,"end_line":60})read_file({"end_line":305,"path":"src/devops_cli/ai/mcp/generator.py","start_line":286})read_file({"end_line":112,"path":"tests/ai/mcp/test_path_confinement.py","start_line":98})search_code({"text":"test_all_registered_subcommands_have_help"})list_files({"directory":"docs/adr"})read_spec({"capability":"roadmap-stage","requirement":"An unmapped criterion is refused"})read_spec({"capability":"roadmap-stage","requirement":"Criteria mapping in the stage reply"})read_spec({"capability":"roadmap-stage","requirement":"A verify command has the project form"})read_file({"end_line":40,"path":"docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.md","start_line":1})read_file({"end_line":120,"path":"docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.md","start_line":95})search_code({"text":"exposure table"})search_code({"text":"check_command"})search_code({"text":"package-layout"})search_code({"text":"test_source_tree"})read_spec({"capability":"roadmap-package-layout"})search_code({"text":"roadmap/package-layout.md"})read_issue({"number":3242})find_issues({"terms":"allow-list run tool"})read_file({"end_line":395,"path":"src/devops_cli/commands/scan.py","start_line":368})read_file({"end_line":25,"path":"tests/ai/mcp/test_path_confinement.py","start_line":1})search_code({"text":"private"})search_code({"text":"ai.mcp"})search_code({"text":"def get("})read_file({"path":"src/devops_cli/commands/vault.py","start_line":1,"end_line":120})search_code({"text":"vault get"})search_code({"text":"def vault_get"})read_file({"path":"src/devops_cli/config/constants.py","start_line":280,"end_line":440})read_file({"path":"src/devops_cli/ai/mcp/generator.py","start_line":1,"end_line":120})read_file({"end_line":440,"path":"src/devops_cli/config/constants.py","start_line":421})read_file({"end_line":330,"path":"src/devops_cli/ai/mcp/generator.py","start_line":121})read_spec({})read_file({"path":"src/devops_cli/config/constants.py","start_line":280,"end_line":440})list_files({"directory":"src/devops_cli/roadmap/stage"})list_files({"directory":"tests/roadmap/stage"})read_spec({"capability":"roadmap-stage"})read_file({"path":"src/devops_cli/config/constants.py","start_line":421,"end_line":440})read_file({"path":"src/devops_cli/ai/mcp/generator.py","start_line":170,"end_line":210})read_file({"path":"src/devops_cli/ai/mcp/generator.py","start_line":280,"end_line":310})read_spec({"capability":"roadmap-stage","requirement":"A verify command has the project form"})read_spec({"capability":"roadmap-stage","requirement":"The planner has a read-only toolbox"})search_code({"text":"allow-list"})search_code({"text":"allowlist"})search_code({"text":"def test("})search_code({"text":"ci docs"})search_code({"text":"package-layout"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":1866,"end_line":1930})read_spec({"capability":"roadmap-package-layout"})search_code({"text":"package_layout"})search_code({"text":"def _resolve_test_targets"})search_code({"text":"package-layout.md"})search_code({"text":"def docs("})read_file({"path":"src/devops_cli/commands/ci.py","start_line":1759,"end_line":1830})read_file({"path":"src/devops_cli/commands/ci.py","start_line":2130,"end_line":2200})search_code({"text":"labels"})read_file({"path":"src/devops_cli/ai/mcp/path_confinement.py","start_line":55,"end_line":70})read_file({"path":"tests/ai/mcp/test_path_confinement.py","start_line":95,"end_line":115})read_file({"path":"tests/ai/mcp/test_path_confinement.py","start_line":235,"end_line":255})search_code({"text":"labels_list"})read_file({"path":"tests/ai/mcp/test_path_confinement.py","start_line":34,"end_line":44})search_code({"text":"_PATH_PARAM_KEYWORDS"})search_code({"text":"def read("})read_file({"path":"src/devops_cli/commands/scan.py","start_line":360,"end_line":390})read_file({"path":"src/devops_cli/ai/mcp/path_confinement.py","start_line":14,"end_line":30})read_file({"path":"src/devops_cli/ai/mcp/path_confinement.py","start_line":88,"end_line":100})search_code({"text":"name=\"read\""})search_code({"text":"def read_command"})search_code({"text":"@app.command(\"read\")"})search_code({"text":"def labels_list("})search_code({"text":"list_labels"})search_code({"text":"ai_read"})list_files({"directory":"src/devops_cli/commands"})read_file({"path":"src/devops_cli/commands/gh.py","start_line":225,"end_line":265})search_code({"text":"\"read\""})search_code({"text":"def inspect"})read_file({"path":"src/devops_cli/commands/ai.py","start_line":1895,"end_line":1960})search_code({"text":"def plan("})search_code({"text":"def plan_cmd"})search_code({"text":"def tf_plan"})search_code({"text":"@app.command(\"plan\")"})read_file({"path":"src/devops_cli/commands/tf.py","start_line":157,"end_line":200})read_file({"path":"src/devops_cli/ai/mcp/generator.py","start_line":30,"end_line":60})search_code({"text":"def get("})search_code({"text":"@app.command(\"get\")"})search_code({"text":"def vault_get"})read_file({"path":"src/devops_cli/commands/vault.py","start_line":130,"end_line":175})read_file({"path":"src/devops_cli/commands/telemetry.py","start_line":1,"end_line":20})read_file({"path":"docs/adr/0018-a-sandboxed-read-only-run-tool-for-the-planner.md","start_line":1,"end_line":130})read_file({"path":"src/devops_cli/ai/mcp/path_confinement.py","start_line":100,"end_line":180})search_code({"text":"stage_request"})search_code({"text":"stage_tools"})Tool calls: file_symbols=12 (empty=0), find_issues=3 (empty=0), list_files=16 (empty=0), read_file=103 (empty=0), read_issue=4 (empty=0), read_spec=23 (empty=0), search_code=142 (empty=20)
The stage job read the open pull requests and their files in 1 GraphQL request(s).
docs(openspec): plan #4004 Add the planner run-command allow-list bui…
17 remaining items
devops-cli-service commentedon Nov 10, 2026
Cleared the stop at group 1 by the rule
retry: a person commentedimplement: retry. The item is Planned again, and the Service takes it in the next round.feat(roadmap): List the new module in the package layout (#4004)
docs(openspec): archive the change (#4004)
devops-cli-service commentedon Nov 10, 2026
Pull request #4378 is ready for review. The checks passed.
Spend: 95 model requests, 8304022 input tokens, 44441 output tokens.
devops-cli-service commentedon Nov 10, 2026
The runner Job devops-cli-runner-20261110-145932-273d ended: succeeded.
Image digest: sha256:b76fd2adaee82311d01b551ad1d82a0873b7226df7956a98c217d69015be28eb
The last lines of its log:
devops-cli-service commentedon Nov 10, 2026
Released in v0.108.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.108.0
devops-cli-service commentedon Nov 10, 2026
Live since 2026-11-10 16:07 UTC