Repository navigation
fix: keep channel sends on the selected plugin - #134564
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 8:27 PM ET / September 1, 2026, 00:27 UTC. ClawSweeper reviewWhat this changesThis PR prevents channel actions and outbound sends from borrowing a same-ID plugin’s adapter by retaining the selected plugin registration and request-scoped registry through delivery. Merge readinessKeep open. The patch consistently makes the selected plugin registration own its actions, adapters, capabilities, bootstrap result, and deferred callbacks; the protected maintainer label and intentional fallback change require maintainer confirmation plus exact-head CI. Priority: P1 Review scores
Verification
How this fits togetherOutbound delivery resolves a channel plugin, prepares its transport handler, and sends through its outbound or message adapter. The registry scope carries the selected plugin’s identity and capabilities across asynchronous delivery callbacks. flowchart LR
A[Channel send or action] --> B[Selected plugin registration]
B --> C[Request-scoped registry]
C --> D[Prepared delivery handler]
D --> E[Selected transport adapter]
E --> F[Delivery receipt or unavailable result]
Decision needed
Why: This removes an accidental fallback that could have become relied upon by unusual installed-plugin configurations; the compatibility contract needs explicit maintainer confirmation. Before merge
Agent review detailsSecurityNone. PR surfaceSource -3, Tests +317, Docs +6. Total +320 across 10 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one selected registration authoritative from dispatch through deferred delivery, with absent capabilities reported for that plugin instead of borrowing another plugin’s transport. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: pinned main independently selected outbound and message surfaces, while the new same-ID registry tests exercise the resulting mismatch. This read-only review did not execute the contributor’s stated local transport run. Is this the best way to solve the issue? Yes. Selecting the whole registration at the registry owner and carrying its scoped handle into deferred delivery removes the mixed-owner path without adding configuration or a parallel transport flow. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5dd4c6e3b087. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* fix: keep channel sends on the selected plugin * test: make pricing fixtures independent of the wall clock
What Problem This Solves
Fixes an issue where users sending or broadcasting through an installed channel plugin could invoke a different implementation with the same channel ID, fail before delivery, or use the wrong action handler. The selected account and its credentials could be correct while no message reached the selected transport.
Why This Change Was Made
Channel registration now keeps the selected implementation, origin, runtime binding, and send capabilities together. Delivery projects both adapters from that registration and retains its registry for later callbacks. Scoped setup activation cannot be replaced by a process-root sender or a previously warmed root cache. Unrelated root channels, bundled discovery, and the shipped installed-plugin bootstrap contract remain available.
The change removes the independent message-adapter fallback search. It adds no configuration option, SDK contract, database schema, or persistent store.
User Impact
Installed channel plugins receive their own sends and actions. Missing capabilities remain missing on the selected implementation, and a prepared delivery continues to use the same plugin when invoked later.
Evidence
The broader upgrade retest passed on source 1c9770a: 791 existing focused tests; 21 native macOS and 21 native Linux Gateway turns with nine-agent migration/repeat repair; Windows installer and actual package-upgrade workflow 33452237126 with live OpenAI replies. Those results establish the retest baseline, not this candidate's proof.
Regression provenance: exact introducing commit is not established. The installed-plugin CLI contract in 4c52d3f is reachable from stable v2026.8.1 and is preserved.
Related follow-up: the source CLI compile-cache respawn wrapper intermittently exited1 during a synthetic Gateway teardown after channel assertions passed. The paired direct-launch control exited0; this separate launcher lifecycle issue is outside the registration repair.
Compact actual-runtime verdict (candidate production hashes remain unchanged through the test-only CI fixes):
ClawSweeper follow-through: selected-registration ownership is intentional for this repair. A selected plugin without a capability must report it as unavailable; it must not borrow another registration's adapter or provenance. The stable installed-plugin addressability contract and root/bundled overlay for unrelated scoped IDs remain preserved. No supported same-ID cross-adapter fallback contract was found. The review's remaining rank-up item is exact-head green CI; the follow-up changes only tests and leaves the reviewed production bytes unchanged.
Final CI: run 33455972821 completed successfully for exact head
d69f770fc683002da1fa3b5ce96772810e49a7fb, including the repository CI gate. The reviewed ownership decision and exact-head CI rank-up items are satisfied.