Skip to content

Add autonomy toggle commands - #651

Open
jamiepine wants to merge 2 commits into
jamiepine/resident-autonomy-channelfrom
jamiepine/autonomy-toggle-commands
Open

Add autonomy toggle commands#651
jamiepine wants to merge 2 commits into
jamiepine/resident-autonomy-channelfrom
jamiepine/autonomy-toggle-commands

Conversation

@jamiepine

Copy link
Copy Markdown
Member

Summary

  • Add /autonomy for public status and authority-only /autonomy-on and /autonomy-off controls.
  • Restore the last non-off level when autonomy is enabled, with observe as the first-use fallback.
  • Serialize level changes with epoch and heartbeat admission so turning autonomy off stops new work while the current epoch settles.
  • Keep configured and effective levels distinct when the instance ceiling applies.
  • Register the controls across Discord, Telegram, and Slack, with text-command parity for other adapters.
  • Align Discord thread admission, Telegram addressing, Slack argument validation, and Mattermost command replies.

Lifecycle

Autonomy transitions and supervisor admission share one lock. An off transition cannot race a new epoch or heartbeat claim. Existing turns and owned workers are not cancelled, but no additional wake events or heartbeat work enter the active epoch after the transition commits.

This PR is stacked on #650.

Testing

  • cargo test agent::autonomy::tests
  • cargo test api::config::tests
  • cargo test commands::
  • Targeted Discord, Slack, Telegram, Mattermost, and settings tests
  • just preflight
  • just gate-pr

@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: 42b39a4b-c4bf-4d3e-bbc0-978647d97491

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 17, 2026 00:03
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