Inherit tool restrictions for delegated sessions [AI]#80979
Conversation
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: yes. source-reproducible. Current main excludes native tools from loopback MCP callers but does not persist or forward that effective restriction through sessions_spawn into ACP or native delegated children. Real behavior proof Next step before merge Security Review detailsBest possible solution: Merge the inheritance fix after maintainer policy review and redacted runtime proof demonstrate restricted caller-to-child delegation for both native subagent and ACP paths. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible. Current main excludes native tools from loopback MCP callers but does not persist or forward that effective restriction through sessions_spawn into ACP or native delegated children. Is this the best way to solve the issue? Yes for the implementation direction. The latest head uses current OpenClaw tool ids for ACP checks and threads inherited policy through the right handoff points, but merge should wait for real behavior proof and maintainer approval. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against dfd63a214516. |
|
Not applicable to this automation stage; changelog/release-note and external real behavior proof requirements are handled outside auto-pr stages. Quoted comment from @clawsweeper:
|
* fix: inherit tool restrictions for delegated sessions * addressing review-skill * addressing review-skill * addressing review-skill * addressing review-skill * addressing codex review * addressing codex review * addressing codex review * addressing codex review * addressing codex review * addressing review-skill * addressing codex review * addressing claude review * addressing ci * docs: add changelog entry for PR merge
* fix: inherit tool restrictions for delegated sessions * addressing review-skill * addressing review-skill * addressing review-skill * addressing review-skill * addressing codex review * addressing codex review * addressing codex review * addressing codex review * addressing codex review * addressing review-skill * addressing codex review * addressing claude review * addressing ci * docs: add changelog entry for PR merge
* fix: inherit tool restrictions for delegated sessions * addressing review-skill * addressing review-skill * addressing review-skill * addressing review-skill * addressing codex review * addressing codex review * addressing codex review * addressing codex review * addressing codex review * addressing review-skill * addressing codex review * addressing claude review * addressing ci * docs: add changelog entry for PR merge
* fix: inherit tool restrictions for delegated sessions * addressing review-skill * addressing review-skill * addressing review-skill * addressing review-skill * addressing codex review * addressing codex review * addressing codex review * addressing codex review * addressing codex review * addressing review-skill * addressing codex review * addressing claude review * addressing ci * docs: add changelog entry for PR merge
Summary
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
Root Cause (if applicable)
Regression Test Plan (if applicable)
src/gateway/mcp-http.test.ts,src/agents/tools/sessions-spawn-tool.test.ts,src/agents/subagent-spawn.depth-limits.test.ts,src/agents/pi-tools.policy.test.ts,src/gateway/sessions-patch.test.tsUser-visible / Behavior Changes
Delegated child sessions inherit caller-scoped tool denies. A child session may now have fewer tools when it is created from a restricted caller surface.
Diagram (if applicable)
Security Impact (required)
Yes, explain risk + mitigation: delegated sessions now inherit caller tool restrictions, reducing the chance that delegation widens command or file access beyond the caller's effective tool policy.Repro + Verification
Environment
Steps
exec.Expected
Actual
Evidence
Targeted regression tests were added but not executed in this handoff.
Human Verification (required)
Review Conversations
No review conversations were addressed in this branch handoff.
Compatibility / Migration
Risks and Mitigations