Repository navigation
fix(agents): preserve host authority across module reloads - #163725
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 4:32 PM ET / 20:32 UTC (Revision 2). ClawSweeper reviewWhat this changesShares recognition of host-issued agent authority across independently loaded modules and adds regression coverage for inheritance, scope narrowing, revocation, and copied-object rejection. Merge readiness✅ Ready for maintainer review The fix remains useful: current main and the latest release still use module-local issuer recognition. No actionable correctness or security defect was found in the introduced patch; the author is a repository member, so cleanup closure does not apply. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway captures an operator’s authority and carries it into agent runs and continuations. Host issuance establishes provenance, while the original authority’s live checks continue to control execution. flowchart TD
A[Authenticated operator] --> B[Host issues authority]
B --> C[Shared weak issuer registry]
B --> D[Original authority object]
C --> E[Gateway inheritance check]
D --> E
E --> F[Scope and live authority checks]
F --> G[Agent execution or rejection]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +5, Tests +122. Total +127 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep issuance recognition shared across module instances while preserving exact-object identity and the original source’s scope, revocation, and lifecycle checks. Do we have a high-confidence way to reproduce the issue? Yes, from source: an authority issued by one loaded module is absent from another module’s local WeakSet and fails the inherited-authority consumer. The added regression exercises that boundary, but this review did not execute it. Is this the best way to solve the issue? Yes. Sharing weak issuance provenance repairs the recognition failure without replacing the original authority or duplicating its live authorization policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5e6982748add. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
bd1481b to
e8fb6de
Compare
|
Merged via squash.
|
* commit '79be075e5aa46be9e42dbd53ed6e30e81469210a': (33 commits) fix(ui): keep selected-text comment input readable while scrolling (#163772) test(memory): open corpus database explicitly fix: bound Doctor migration capture to plugin data (#163780) fix(ui): gate system information at the shared reader (#160982) chore(db): reclassify worker inventory sites with caller evidence (#163754) refactor(channels): deslop Slack and Matrix (#163740) fix(agents): reject empty sessions_search queries in the tool schema (#129120) perf(nodes): load only what a worker turn needs (#160442) test(cli): assert concise Gateway failure copy in CLI process tests (#163649) refactor(discord): deslop discord (#163728) fix(workboard): make Sessions boards work on multi-agent Gateways (#163761) test(gateway): add sustained heap retention diagnostics (#163764) test(ui): disambiguate session filter controls refactor(plugins): deslop imessage, mattermost, and voice-call (#163767) fix(qa): run Telegram plugin source in --source-gateway userbot runs (#163718) feat(macos): add a --no-activate launch flag for background automation (#163758) fix(agents): preserve host authority across module reloads (#163725) perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup (#163690) fix: keep video widgets scrollable and preload initial frames (#163762) feat(memory): add a provider-neutral memory provider runtime (#162175) ...
* commit '1fda703fb4d3630e4633461967b2a2186e8f15fd': (33 commits) fix(ui): keep selected-text comment input readable while scrolling (openclaw#163772) test(memory): open corpus database explicitly fix: bound Doctor migration capture to plugin data (openclaw#163780) fix(ui): gate system information at the shared reader (openclaw#160982) chore(db): reclassify worker inventory sites with caller evidence (openclaw#163754) refactor(channels): deslop Slack and Matrix (openclaw#163740) fix(agents): reject empty sessions_search queries in the tool schema (openclaw#129120) perf(nodes): load only what a worker turn needs (openclaw#160442) test(cli): assert concise Gateway failure copy in CLI process tests (openclaw#163649) refactor(discord): deslop discord (openclaw#163728) fix(workboard): make Sessions boards work on multi-agent Gateways (openclaw#163761) test(gateway): add sustained heap retention diagnostics (openclaw#163764) test(ui): disambiguate session filter controls refactor(plugins): deslop imessage, mattermost, and voice-call (openclaw#163767) fix(qa): run Telegram plugin source in --source-gateway userbot runs (openclaw#163718) feat(macos): add a --no-activate launch flag for background automation (openclaw#163758) fix(agents): preserve host authority across module reloads (openclaw#163725) perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup (openclaw#163690) fix: keep video widgets scrollable and preload initial frames (openclaw#163762) feat(memory): add a provider-neutral memory provider runtime (openclaw#162175) ...
What Problem This Solves
Fixes trusted agent work being rejected with “operator run authority must be issued by the host” when its original authority crosses independently loaded runtime modules.
User Impact
Authorized agent turns and continuations can retain their existing authority across source, bundled, or reloaded module graphs. Scope limits, source revocation, cancellation, and release still apply. Copied or unissued objects remain rejected; no configuration change is required.
Why This Change Was Made
Use the existing process-local singleton owner for the weak issuer registry. Only provenance is shared; the original authority object and its lifetime checks remain authoritative.
Release note: prevent false host-authority rejection across independently loaded runtime modules.
Evidence
e8fb6de6bcf4ceb6de9937d571209b211d149988, all five module-identity cases and the full 39-case spawn production-boundary suite pass, covering exact-object inheritance, narrowing, source/signal revocation, balanced retention, and the existing continuation boundary.This is source-level regression proof; deployment and incident recovery are separate.