Repository navigation
fix: project authoritative conversation delivery settlement - #169650
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. What this changesThis PR projects initial conversation-send results from the authoritative stored delivery outcome. Example: ClickClack accepts operation accepted-without-identity with HTTP 201 but returns no message ID.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: current main still reports conflicting initial and replay outcomes, and this focused repair has no actionable review findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway conversation sends and turns use shared outbound delivery, whose queue settles durable operation records before results return to callers. flowchart LR
A[Conversation caller] --> B[Gateway send or turn]
B --> C[Shared outbound delivery]
C --> D[Channel client]
C --> E[Queue settlement]
E --> F[Operation store]
F --> G[Canonical result projection]
G --> B
Technical reviewBest possible solution: Use the existing authoritative operation projection for initial delivery and replay while retaining current queue custody and transition rules. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the mismatch, and the supplied regression reports a baseline failure through the actual send and persistence owners; this read-only review ran no tests. Is this the best way to solve the issue? The patch repairs response projection through its existing owner, preserving transport behavior, persistence, idempotency, and terminal settlement rather than adding another interpretation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9ea2d5edd52a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -1, Tests +90. Total +89 across 2 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 12, 2026, 2:55 AM ET / 06:55 UTC (Revision 2). |
|
Merged via squash.
|
Preserve the deployed requester-bound mail recovery checkpoint repair while integrating the reviewed backend recovery, question, model, and delivery fixes. Upstream OpenClaw backports and adaptations: - MCP listener recovery, openclaw#183352 / 7058d9e: Nice De Cc, songc, and Peter Steinberger. - Process lineage sharing, 7dc3350: Dallin Romney. - Model publication supersession, openclaw#179144 / 5a97c90: Peter Steinberger; adapted to this fork's successful skipped-candidate batches. - Authoritative delivery settlement, openclaw#169650 / c2fe11f: Peter Steinberger. - Blocking question routing, openclaw#170039 / e163d81: Peter Steinberger. - fast-uri security backport, openclaw#187285 / 9f492b6: Dallin Romney; upstream parser fixes by Vincent Le Goff and Ulises Gascon. - Nodemailer sender parsing, openclaw#187301 / 0692808: Dallin Romney; upstream parser fixes by Andris Reinman. Keep existing local question-answer custody and synchronous native Codex steering; preserve both published SDK module/ingress ownership repairs.
What Problem This Solves
A channel can accept a message without returning its identity. The first conversation send response then reported
suppressed, even though the durable operation wasunknown; replaying the same operation reportedunknown.User Impact
The first response now reports the authoritative delivery outcome consistently with later replay. An uncertain accepted send stays uncertain and is not sent again.
Why This Change Was Made
Both sent and suppressed transitions now use the existing operation projection, which preserves terminal outcomes already recorded by queue settlement. This removes duplicated response assembly and shrinks production code by one line. Queue state, retries, persistence, and the public schema retain their existing contracts.
Evidence
unknownand retainedunknown_after_sendcustody; the same operation replayed without a second transport call. Baseline failed the first-response/replay assertion:suppressedversusunknown.node scripts/run-vitest.mjs src/gateway/conversation-send.test.ts src/gateway/conversation-turn.test.ts --maxWorkers=1: 77.70 seconds Vitest, 82.079 seconds wall time, and 6.934 seconds for the new case. This boundary needs the actual worker-backed persistence and replay owners; a fabricated unknown marker would miss the producer/projection disagreement. No Gateway process boots, sleeps, polling, or new production test seams were added.git diff --checkpassed.core-test-gateway-roottest-consumer graph passed in 55.478 seconds. The dead-export gate is pending its coordinated resource slot. No complete local changed-check pass is claimed. Hosted CI seconds have not been measured yet.The HTTP response is virtual fixture evidence; no live external API or credentials are used or claimed.