Repository navigation
fix(qa): stop treating deleted messages and failed streams as successful replies - #119660
Conversation
|
Codex review: needs changes before merge. Reviewed August 5, 2026, 12:20 PM ET / 16:20 UTC. ClawSweeper reviewWhat this changesThe PR makes QA transport checks ignore deleted reply tombstones and reject actionable failures from the awaited account before accepting a streamed final reply. Merge readinessKeep this PR open: its account-first failure check fixes the reported false-green path, but it still treats a failure reply that was later deleted as active and can produce a false failure. Priority: P2 Review scores
Verification
How this fits togetherQA Lab records channel events in a bus and passes them to shared transport waiters that determine whether ephemeral-Gateway scenarios passed. Those waiters feed QA channel and Crabline scenario results. flowchart LR
A[Channel and provider events] --> B[QA event bus]
B --> C[Lifecycle event history]
C --> D[Shared transport waiter]
D --> E{Visible final or active failure?}
E -->|Visible final| F[Scenario passes]
E -->|Failure or deletion| G[Scenario fails or waits]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +6, Tests +130. Total +136 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Resolve each account-owned message to its latest lifecycle state before extracting failures, then retain only visible failures as terminal evidence. Do we have a high-confidence way to reproduce the issue? Yes—source establishes a deterministic sequence: emit an owned failure, delete that message, then emit a visible successful final; the new loop still reads the earlier non-deleted failure event. Is this the best way to solve the issue? No—the account-first scope is correct, but failure detection must use latest lifecycle state so a deleted failure cannot override a later visible success. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3d669c761666. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What 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.
|
What Problem This Solves
Fixes an issue where QA channel checks could pass using a deleted reply tombstone or accept a normal-looking streaming final even though the same account emitted an actionable failure.
Why This Change Was Made
Exclude deleted messages at the canonical bus message waiter and check canonical owned-account failure replies before applying streaming conversation/thread filters, while preserving outbound/account/cursor isolation.
User Impact
Channel verdicts now require a genuinely visible successful reply and fail immediately with the actual provider error instead of producing a false green.
Evidence
Authentic RED showed deleted tombstones resolving as visible messages and failure-before/failure-after streams passing. All 33 bus/transport tests now pass, including replacement delivery and stale/foreign/inbound controls. Actual mock-provider ephemeral Gateways passed
channel-message-flows(preview -> final) andreaction-edit-delete, with four total Gateway scenarios passing. Full changed gate/build passed.Integrated trusted-Testbox proof: 609 tests passed, including five real Chromium extension E2E cases; complete production/test typechecks, lint, plugin-boundary/generated-contract checks, private production build, and four actual ephemeral-Gateway scenarios all passed.
Owner/risk review: Private QA transport owner only; no plugin SDK, auth, config, public protocol, or persistence changes. Production net +6 lines justified by visible-message and account-owned failure invariants.