Skip to content

Build resident autonomy channels - #650

Open
jamiepine wants to merge 1 commit into
jamiepine/opencode-worker-contextfrom
jamiepine/resident-autonomy-channel
Open

Build resident autonomy channels#650
jamiepine wants to merge 1 commit into
jamiepine/opencode-worker-contextfrom
jamiepine/resident-autonomy-channel

Conversation

@jamiepine

Copy link
Copy Markdown
Member

Summary

  • Keep one autonomy channel resident per agent and deliver heartbeats through a coalescing wake doorbell.
  • Treat autonomy runs as durable epochs with atomic admission, generation fencing, transactional wake claims, and restart reconciliation.
  • Retain interactive workers across heartbeats and restarts while blocking epoch completion until owned work settles.
  • Scope autonomy tools by observe, suggest, and act authority. Autonomy cannot self-approve pending work.
  • Remove autonomy run timeouts and update the lifecycle, prompt, and worker reliability docs.

Lifecycle

The resident channel moves between idle, running, and finishing epochs. Atomic run admission prevents overlapping epochs. Child registration and completion share one synchronization boundary, so completion cannot race worker or branch creation. Shutdown closes active epochs and converges retained worker state before database teardown.

This PR is stacked on #649.

Testing

  • just preflight
  • just gate-pr
  • cargo test agent::autonomy
  • cargo test tools::autonomy_complete
  • cargo test wakes::runs
  • cargo test autonomy_cannot
  • cargo test autonomy_channel_prompt_renders_per_level

@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 110bc543-3141-40c2-87bf-5325cba53b82

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@jamiepine
jamiepine marked this pull request as ready for review August 16, 2026 02:35
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