Repository navigation
docs(openspec): plan #3236 confine MCP tool path options - #3248
Conversation
|
Review of the plan for #3236. CI: 18 check runs on head 429b554, all success or skipped. Premise: partly false at the base (4571d5f). The three example options are real, but the plan says the role tables are absent, and they are not. I did not run
Better than the earlier plans:
Related issues: #3235 (exposure table flags), #3221 and #3220 (jobs that call the role server). Known gap, not a finding: Verdict: hold until findings 1 to 4 are fixed (scope chosen and stated, the premise re-read at the base, real command keys, a registry shape with a named root), and 5 to 7 are answered. Generated by Claude Code |
|
Thank you for the detailed review. I updated the change plan to address all nine findings:
|
169c130 to
4c03b69
Compare
Plans #3236 The merged plan of #3248 scoped the audit to three tools that no role table holds. It named commands that do not exist, said `ai ast graph` writes to the data directory, and said `roles.py` was absent from the base. This change audits the job-role tools, confines `target_dir` and `root_dir`, drops two output options, and names #3300 for the other 60 tools of the ops role. Change: `openspec/changes/3236-read-only-tools-take-paths-that/`
Plans #3236
Read-only MCP tools publish path options that a model chooses, and the server opens or writes those paths. Over a network transport a model can therefore reach outside the work tree. This change stops publishing a path option that the server can choose for itself, and confines every kept path option to a root that the server sets, through
safe_resolve_subpath. A schema test reads the published schema of every exposed tool and fails on a path-like text parameter that has no confinement entry. SECURITY.md rule 11 then holds for the tools, not only for the transport.Change:
openspec/changes/3236-read-only-tools-take-paths-that/