Repository navigation
fix: keep automation delivery owned in multi-agent fleets - #123283
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 13, 2026 18:23
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 14, 2026
…23283) * fix: preserve automation owner during channel bootstrap * fix: retain scoped runtime during cron delivery * style: format cron delivery regression * chore: defer release changelog entry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #77700
AI-assisted: yes
What Problem This Solves
Fixes an issue where heartbeat and isolated cron runs owned by a configured agent could finish successfully but fail while delivering their result in an explicit multi-agent fleet. The final delivery path discarded the admitted agent owner and attempted ambient default-agent selection, producing
AGENT_SELECTION_REQUIREDafter the model had already completed its work.Why This Change Was Made
Outbound preparation, channel handler creation, durability checks, channel resolution, and durable recovery now carry the existing session
agentIdinto lazy channel bootstrap. Bootstrap uses that owner only for agent-scoped workspace discovery and keys cached outcomes by owner plus channel; genuinely ownerless calls still fail closed. The same owner invariant now avoids eagerly resolving a default agent when an account-scoped conversation binding already contains an agent-scoped session key.The production growth (+91/-29, net +62) is the typed ownership boundary needed to keep live delivery and persisted replay on the same admitted agent. Tests are +105/-1; docs/changelog are +2/-1.
User Impact
Operators with explicit multi-agent ownership can receive heartbeat and cron results from the correct agent workspace. Delivery replay and reconciliation keep the original owner after a restart, and ownerless operations remain selection errors rather than silently choosing another agent.
Evidence
AgentSelectionRequiredErrorduring final delivery.2a70d849e8a8bde3d66562bc441d96fb95388bafplus the new regressions: 3 intended failures, including the exact outbound-preparation stack throughresolveChannelOutboundDirectiveOptionsandchannel-bootstrap.runtime.ts.59ead899663c945772864400d805b021d25d05fc: 6 focused files, 345 tests passed across outbound bootstrap, durable queue recovery, agent delivery, account-scoped bindings, and cron delivery targeting.pnpm check:docspassed: formatting, Markdown lint, MDX, glossary, 6,482 internal links with 0 broken, and config examples.git diff --checkpassed..agents/skills/autoreview/scripts/autoreview --mode localreturned no accepted/actionable findings (overall correct 0.96).Proof gap: no source-blind live send was run for this head. Blacksmith Testbox
tbx_01kzy4sxqr5s80etyrvt4qtd84remained queued for 3m56s and was stopped; the owned AWS fallback was unavailable because this host has no managed Crabbox broker login. The deterministic owner-boundary regression and all classified checks are green, but they are not presented as live channel proof.