Skip to content

DOS-1601 add runtime autonomy controls - #17

Draft
mdostal wants to merge 1 commit into
mainfrom
agent/dostal-dev/f3de185c
Draft

DOS-1601 add runtime autonomy controls#17
mdostal wants to merge 1 commit into
mainfrom
agent/dostal-dev/f3de185c

Conversation

@mdostal

@mdostal mdostal commented Jul 23, 2026

Copy link
Copy Markdown

What Changed

Implements DOS-1601 runtime autonomy controls for Multica agents:

  • Adds runtime_config.autonomy_mode with validated values supervised and full-access.
  • Adds multica agent create/update --autonomy-mode supervised|full-access.
  • Propagates the selected mode through daemon task preparation/reuse.
  • Enforces Codex mode at the per-task CODEX_HOME/config.toml boundary:
    • supervised: managed approval policy on-request, existing sandbox policy.
    • full-access: managed sandbox danger-full-access and approval policy never.
  • Filters Codex custom args and -c / --config overrides that attempt to replace managed sandbox or approval settings.
  • Surfaces the selected mode in task progress and daemon logs.
  • Documents rollback: omit/clear autonomy_mode to return to supervised default behavior.

Validation

  • go test ./pkg/agent -run 'TestBuildCodexArgs(ExtraArgsBeforeCustomArgsAndFiltersBoth|BlocksRuntimeBoundaryConfigOverrides|DoesNotLeakMcpToArgv)|TestFilterCodexCustomConfigOverrides'
  • go test ./internal/daemon/execenv ./internal/daemon ./cmd/multica ./internal/handler -run 'TestCodexSandboxPolicy|TestEnsureCodexSandboxConfig|TestDecodeRuntimeAutonomyMode|TestResolveRuntimeConfigAutonomyMode|TestValidateAgentRuntimeConfigAutonomyMode'
  • git diff --check

pnpm typecheck could not run because node_modules is absent and turbo is not installed locally.

Full go test ./internal/handler still hits existing DB fixture failures around daemon runtime registration constraints, unrelated to this diff.

Co-authored-by: multica-agent <github@multica.ai>
@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@mdostal, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 51 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5c6f9f11-9772-4124-a7bc-f5cf59ce7eae

📥 Commits

Reviewing files that changed from the base of the PR and between 9696a37 and ed49be0.

📒 Files selected for processing (15)
  • CLI_AND_DAEMON.md
  • packages/core/types/agent.ts
  • server/cmd/multica/cmd_agent.go
  • server/cmd/multica/cmd_agent_test.go
  • server/internal/daemon/daemon.go
  • server/internal/daemon/execenv/codex_home.go
  • server/internal/daemon/execenv/codex_sandbox.go
  • server/internal/daemon/execenv/execenv.go
  • server/internal/daemon/execenv/execenv_test.go
  • server/internal/daemon/runtime_autonomy.go
  • server/internal/daemon/runtime_autonomy_test.go
  • server/internal/handler/agent.go
  • server/internal/handler/agent_runtime_autonomy_test.go
  • server/pkg/agent/codex.go
  • server/pkg/agent/codex_test.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/dostal-dev/f3de185c

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant