claw-code-parity/rust/crates/runtime/src
Yeachan-Heo bf59abc9e9 Restore prompt-approved tool execution in CLI parity runs
ConversationRuntime already performs permission-policy checks and interactive approvals before dispatching a tool. The CLI tool executor was routing those same tool calls back through GlobalToolRegistry::execute, which re-ran the enforcer without a prompter and flipped approved bash calls back into denials.

Add a preauthorized execution path for runtime-dispatched tools, keep registry enforcement for direct callers, and format the files that were already tripping rustfmt on main.

Constraint: CI on main was failing both cargo fmt and the mock parity harness after permission enforcement landed
Rejected: Remove registry enforcement globally | would reopen direct-dispatch permission gaps
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Use execute_preauthorized only after ConversationRuntime or an equivalent caller has already completed permission gating
Tested: cargo fmt --all --check; cargo test -p rusty-claude-cli; cargo test -p tools
Not-tested: Full workspace test matrix beyond the Rust CI workflow targets
2026-04-03 09:32:29 +00:00
..
bash.rs fix: auto compaction threshold default 200k tokens 2026-04-01 03:55:00 +00:00
bootstrap.rs feat(runtime): add tests and improve error handling across runtime crate 2026-04-02 18:10:12 +09:00
compact.rs fix: align session tests with jsonl persistence 2026-04-02 11:31:53 +09:00
config.rs Merge branch 'dori/mcp-parity' 2026-04-02 18:35:38 +09:00
conversation.rs feat: ultraclaw session outputs — registry tests, MCP bridge, PARITY.md, cleanup 2026-04-03 18:23:03 +09:00
file_ops.rs feat(file_ops): add edge-case guards — binary detection, size limits, workspace boundary, symlink escape 2026-04-03 17:09:54 +09:00
hooks.rs feat(hooks): add PostToolUseFailure propagation, validation, and tests 2026-04-02 18:24:12 +09:00
json.rs fix: auto compaction threshold default 200k tokens 2026-04-01 03:55:00 +00:00
lib.rs feat(runtime+tools): PermissionEnforcer — permission mode enforcement layer 2026-04-03 17:55:04 +09:00
lsp_client.rs feat: ultraclaw session outputs — registry tests, MCP bridge, PARITY.md, cleanup 2026-04-03 18:23:03 +09:00
mcp.rs feat(mcp): add toolCallTimeoutMs, timeout/reconnect/error handling 2026-04-02 18:24:30 +09:00
mcp_client.rs feat(mcp): add toolCallTimeoutMs, timeout/reconnect/error handling 2026-04-02 18:24:30 +09:00
mcp_stdio.rs fix: post-merge clippy/fmt cleanup (9407-9410 integration) 2026-04-03 05:12:51 +09:00
mcp_tool_bridge.rs Restore prompt-approved tool execution in CLI parity runs 2026-04-03 09:32:29 +00:00
oauth.rs feat: ultraclaw session outputs — registry tests, MCP bridge, PARITY.md, cleanup 2026-04-03 18:23:03 +09:00
permission_enforcer.rs feat: ultraclaw session outputs — registry tests, MCP bridge, PARITY.md, cleanup 2026-04-03 18:23:03 +09:00
permissions.rs wip: hook-pipeline progress 2026-04-01 04:30:25 +00:00
prompt.rs fix: stabilize merge fallout test fixtures 2026-04-02 11:31:53 +09:00
remote.rs fix: auto compaction threshold default 200k tokens 2026-04-01 03:55:00 +00:00
sandbox.rs fix(sandbox): probe unshare capability instead of binary existence 2026-04-03 16:24:02 +09:00
session.rs feat(runtime): add tests and improve error handling across runtime crate 2026-04-02 18:10:12 +09:00
sse.rs feat(runtime): add tests and improve error handling across runtime crate 2026-04-02 18:10:12 +09:00
task_registry.rs feat: ultraclaw session outputs — registry tests, MCP bridge, PARITY.md, cleanup 2026-04-03 18:23:03 +09:00
team_cron_registry.rs feat: ultraclaw session outputs — registry tests, MCP bridge, PARITY.md, cleanup 2026-04-03 18:23:03 +09:00
usage.rs wip: jsonl-session progress 2026-04-01 04:30:27 +00:00