Skip to content

feat(runtime): add one-shot sandbox escalation and auto review - #1016

Merged
likun666661 merged 4 commits into
apache:mainfrom
YayoiNanoka:feat/runtime-unsandboxed-retry-auto-review
Jul 15, 2026
Merged

likun666661 merged 4 commits into
apache:mainfrom
YayoiNanoka:feat/runtime-unsandboxed-retry-auto-review

Conversation

@YayoiNanoka

Copy link
Copy Markdown
Contributor

Summary

  • Add explicit one-shot require_escalated Bash execution, bound to the exact command, cwd, tool invocation, and user intent.
  • Route ask mode escalation to the user and execute mode escalation to an isolated no-tools automatic reviewer; timeout, cancellation, malformed output, or reviewer failure deny the request.
  • Apply approved grants to foreground and background Bash without silently retrying, and persist sandbox execution/escalation audit facts.
  • Surface bounded approval details in Desktop and CLI, with only allow-once/deny decisions and no turn-wide memory.
  • Narrow the macOS filesystem worker Seatbelt profile to the current exact/subtree operation while preserving explicit denies and runtime roots.

Safety properties

  • No silent unsandboxed retry and no fallback from automatic review to an interactive prompt.
  • Grants have a bounded TTL, are consumed once, and are revalidated against command, cwd, turn, tool call, and intent before execution.
  • Sandbox denial detection only supplies recovery guidance; the model must issue an explicit require_escalated request.
  • Automatic review receives bounded, redacted context and cannot call tools.

Validation

  • npm run typecheck
  • npm test
  • Runtime timeout coverage includes model adapters that ignore AbortSignal.

Out of scope

  • Linux sandbox backend completion
  • Domain-scoped managed network proxying

Related to #509

@likun666661
likun666661 merged commit ccd4ce0 into apache:main Jul 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants