Repository navigation
refactor(outbound): consolidate transport completion - #130460
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 6:33 PM ET / 22:33 UTC. ClawSweeper reviewWhat this changesThis PR consolidates durable, text, fallback-media, and media transport completion into one shared outbound-delivery tail while preserving their branch-specific send behavior. Merge readinessKeep open for maintainer review: the refactor has no source-backed correctness finding, but its protected maintainer label and incomplete exact-head CI require an explicit merge decision. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherOutbound delivery sends prepared payloads through a channel adapter, then records delivery results, emits message events, mirrors transcripts, optionally pins media, and runs adapter callbacks. This change unifies the post-send completion work while leaving the transport selection and send operations distinct. flowchart LR
A[Prepared outbound payload] --> B[Select durable, text, fallback, or media transport]
B --> C[Channel adapter send]
C --> D[Reconciled delivery results]
D --> E[Shared completion tail]
E --> F[Events and transcript mirror]
E --> G[Pin and adapter callback]
Decision needed
Why: The patch is behavior-preserving by source review, but the protected maintainer label and unresolved exact-head gate require maintainer intent rather than automated cleanup. Before merge
Agent review detailsSecurityNone. PR surfaceSource -100, Tests +45. Total -55 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the single canonical completion tail and land only after an outbound owner accepts the refactor and exact-head CI completes successfully. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-preserving refactor, and its critical completion invariants are directly covered by focused tests rather than a reported user failure. Is this the best way to solve the issue? Yes: the shared tail removes duplicated completion logic while the durable identityless exception and media-specific final-identity handling remain explicit at their owner boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 60ea3554f92b. 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.
|
* origin/main: (26 commits) fix(plugins): preserve registry epoch on activation rollback (#129232) refactor(plugins): make discovery invocation-owned (#130486) feat(ui): save appearance preferences per user profile (#130340) fix: Buzz bots recover relay stalls and reject revoked senders (#130467) fix(code-mode): serialize catalog handles nested in final values (#130276) fix(webchat): CLI skill and harness-injected turns render as operator-sent messages (#130427) fix(agents): read the published model catalog owner from session_status (#130277) fix(channels): preserve long presentation text (#130368) fix(agents): route CLI bootstrap truncation notice into the system prompt (#130325) refactor(plugins): unify setup registration and artifact selection (#130474) fix(memory): prevent forgotten session content from returning (#130451) refactor(outbound): consolidate transport completion (#130460) fix(workers): protect in-flight workspace manifests from concurrent retention (#130449) fix(portals): keep worker previews reachable and owned by the active environment (#130434) fix(config): keep core channels keys in the generated config schema (#120736) chore(deps): refresh dependencies after seven-day cooldown (#130296) fix(agents): remind exec models to quote shell metacharacters (#125485) fix(auth): honor shared-store ownership in temp-state exec and agent deletion (#130437) fix(openshell): preserve file writes during concurrent mirror commands (#130447) fix(workers): report full nodes as at capacity, not offline (#130445) ...
What Problem This Solves
Outbound delivery maintained parallel completion tails for durable and direct transport branches. The duplicated result projection made identity, media pinning, event emission, and completion-callback ordering harder to reason about and easier to drift.
Why This Change Was Made
The outbound owner now projects one internal transport-completion outcome and shares the common completion tail. Branch-specific behavior remains explicit: identityless durable deliveries still return early, unsupported-media fallback keeps its mirrored text-only payload, and media/event identities continue to come from the final adapter result. No public API, persistence format, queue authority, or transport contract changes.
User Impact
There is no intended user-visible behavior change. The delivery lifecycle has one smaller canonical completion path while retaining existing results, events, media handling, and callback order.
Evidence