Repository navigation
fix: explicit agent ownership no longer breaks system surfaces - #123339
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 9:21 AM ET / 13:21 UTC. ClawSweeper reviewWhat this changesThe PR carries a configured or selected agent through System Agent setup, prepared model runtime, Skills UI requests, compaction, and Google Meet instead of forcing an implicit default agent. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open for explicit maintainer review: the unmerged, maintainer-labeled branch has no source-proven defect, but it changes compatibility-sensitive agent selection and still has exact-head checks running. Priority: P2 Review scores
Verification
How this fits togetherAgent ownership enters from configuration, a session, or Control UI selection, then drives setup, model/auth preparation, and plugin actions. The changed paths pass that owner to runtime and UI requests so explicit multi-agent setups do not require a retired ambient default. flowchart LR
Config[Agent and System Agent config] --> Select[Resolve authoritative agent]
Session[Session or UI selection] --> Select
Select --> Setup[System Agent setup]
Select --> Runtime[Model and compaction runtime]
Select --> Skills[Skills UI requests]
Select --> Meet[Google Meet sessions]
Decision needed
Why: This is a compatibility-sensitive interpretation of explicit ownership across existing UI and setup workflows; source proves the implementation is coherent, but maintainers own acceptance of that user-facing selection policy. Before merge
Agent review detailsSecurityNone. PR surfaceSource +9, Tests +204. Total +213 across 35 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the canonical prepared-runtime legacy-auth fallback, use the configured System Agent for system surfaces, and land the branch once maintainers accept the explicit-roster Skills selection contract and exact-head checks pass. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main eagerly resolves an implicit default in Google Meet and emits ownerless Skills requests, both incompatible with an explicit multi-agent roster; the branch adds focused regressions for those paths. Is this the best way to solve the issue? Yes: removing caller-side implicit-default resolution while retaining the prepared runtime’s canonical legacy-auth fallback is a cleaner owner-boundary repair than adding per-surface guards. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 641821f25e3e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
a61eb12 to
8fa8ced
Compare
8fa8ced to
d9ee4bd
Compare
d9ee4bd to
e5b2eff
Compare
…law#123339) * fix: honor explicit agent ownership in system surfaces * oc-000: fix explicit-owner runtime preparation
What Problem This Solves
Fixes an issue where users with multiple explicitly owned agents could see Custodian, Skills, setup, or Google Meet fail by asking for a retired implicit default agent instead of using the owner already selected by configuration or UI state.
Why This Change Was Made
The affected paths now resolve the authoritative System Agent, route, or UI-selected agent once and carry that ID through subsequent work. Skills status requests cannot be emitted without an agent owner, and Google Meet defers legacy fallback resolution until neither request nor plugin configuration supplies an owner.
User Impact
Operators can use Custodian and the Skills page with explicit multi-agent ownership without an
AgentSelectionRequiredError. System Agent setup and recovery consistently affect the configured System Agent owner, while Google Meet honors its configured realtime agent without first requiring an implicit default.Evidence
skills.statusrequest followed by an ownerless request that overwrote the page; the request producer now requiresagentId.src/system-agent/setup-inference.test.ts: 127/127 passed after rebasing onto currentmain.src/system-agent/operations.test.ts: 59/59 passed.git diff --checkpassed.Production LOC: +132/-95 (net +37) | Tests/test support: +136/-26
The mocked browser regression is included for CI; local Blacksmith capacity was unavailable during the earlier live-debug pass.