Skip to content

Add configure: change a bot's model, effort, instructions and gate - #144

Merged
lydakis merged 5 commits into
mainfrom
claude/project-thread-45hlbm-configure
Oct 26, 2026
Merged

lydakis merged 5 commits into
mainfrom
claude/project-thread-45hlbm-configure

Conversation

@lydakis

@lydakis lydakis commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

First of five stacked PRs that bring in Sonny, a terminal coordinator for a folder's agents. Merge them bottom-up. This one is daemon-only, and nothing in it knows Sonny exists.

What

Protocol 14 adds configure. It changes what a bot's client chose when it made the bot:

  • instructions
  • model of the same provider family, with an optional effort. The history stays in that family's shape.
  • the gate (approve, approver, approve_expire_ms). Only a root bot can change its gate. A bot another bot made keeps the gate it inherited and gets gates_inherited. Passing approve: [] alone removes the gate.

Behavior:

  • It is refused with bot_busy while a turn runs or waits parked. The gate changes first, so a refused gate leaves the rest unchanged.
  • It answers {bot, bot_id, changed: [...]}.
  • When something changed, followers get a live configured event (durable: false), so a client's footer can follow a change made elsewhere.
  • ready.providers.NAME now carries efforts, the efforts that binding's family takes, and agent-client keeps providers from the ready line.

Docs: docs/RUST_PROTOTYPE.md (configure, ready fields, approvals) and docs/CLIENT.md.

Tests

  • cargo test --workspace: all pass, except remote::tests::no_ssh_config_changes_what_the_app_forces. That test fails on main too, in a container with no ssh.
  • New store contract test: a_root_bot_changes_its_gate_and_a_made_bot_keeps_its_own.
  • New daemon test, test_configure_changes_a_bot_and_tells_its_followers, run with AGENT_TEST_RUNTIME=1. It covers model, effort and gate changes, bot_busy, gates_inherited, and the configured event.

No visible change, so no screenshots.

Stack

  1. This PR: configure
  2. Client and app share the project file and ~/.agent/env reader
  3. Sonny
  4. Sonny pictures
  5. Sonny Homebrew formula

Protocol 14. configure replaces what a bot's client chose when it made
it: its instructions, a model of the same family with an optional
effort, and a root bot's gate (approve: [] alone removes it; a bot
another bot made keeps the gates it descends from). It is refused
while a turn runs or waits parked, answers which fields changed, and
tells followers with a live configured event. ready.providers now
names the efforts each binding's family takes, and the client keeps
it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T02:30:09.200426Z f02dfb7 New commits
🔒 Security Review ✅ Completed 2026-10-26T02:31:22.048620Z f02dfb7 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d7c612adff

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/store/db.rs Resolved
Comment thread src/store/db.rs Resolved
Clearing the thinking binding makes the next request strip thinking
written under the old instructions. The docs now say a client-made
fork's gates can be replaced too, since that client could make an
ungated bot anyway.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks

lydakis commented Oct 26, 2026

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9e722eccc0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/store/db.rs Resolved
Comment thread src/store/db.rs Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 9e722eccc0

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

…figure

A turn that ran before configure moved the bot keeps the model and effort
it ran at, in its record and as the cache the next turn takes as held. A
keyed creation keeps a fingerprint of the instructions it was sent with,
so a resend still matches after they are replaced. Schema 49.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
@lydakis
lydakis merged commit 78f1fa7 into main Oct 26, 2026
1 check passed
This was referenced Oct 26, 2026
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