Repository navigation
fix(qa): follow durable finals after streamed previews - #119378
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 1:22 AM ET / 05:22 UTC. ClawSweeper reviewWhat this changesThe PR changes two QA scenarios to prove that a streamed preview was deleted before selecting the distinct durable final reply. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessThe patch correctly repairs the QA-only false verdict and resolves the prior direct-conversation identity finding. It remains open because the protected Priority: P2 Review scores
Verification
How this fits togetherQA Lab runs mock-provider scenarios through an ephemeral Gateway and QA Channel, then evaluates the QA bus event log as verdict evidence. This change makes two scenario verdicts follow the channel’s preview-replacement lifecycle rather than retain the first transient reply. flowchart LR
A[QA scenario] --> B[QA Channel preview]
B --> C[QA bus event log]
C --> D[Preview deletion check]
D --> E[Durable final selection]
E --> F[Scenario verdict]
Decision needed
Why: The patch has no remaining actionable defect, but the Before merge
Agent review detailsSecurityNone. PR surfaceTests +121, Other +36. Total +157 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Land the exact-head QA-only repair after the protected-label maintainer confirms it; retain the strict account, conversation-kind, conversation-ID, and cursor-order predicates. Do we have a high-confidence way to reproduce the issue? Yes — current source shows the first-live-preview binding, and the supplied Testbox runs reproduce the false verdict before the exact-head repair passes both affected scenarios. Is this the best way to solve the issue? Yes — the channel intentionally replaces a tool-backed preview, so repairing the QA scenario to consume its recorded send/delete/final lifecycle is the correct owner boundary rather than changing channel delivery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 72fd25d47d1d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review Addressed the prior P2 at exact head
The PR body now contains the full before/after and exact-head proof. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Addressed the ordering P2 at exact head
The PR body now contains the full before/after and exact-head proof. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
7425aad to
6e4dde3
Compare
|
@clawsweeper re-review Addressed the ordering P2 at rebased exact head
The PR body now contains the full before/after and exact-head proof. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Addressed the causality/evidence findings at exact head
The PR body now contains the full before/after and exact-head proof. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Land-ready proof for exact head
|
|
@clawsweeper re-review Addressed the causality/evidence findings at exact head
The PR body now contains the full before/after and exact-head proof. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* test(qa): isolate memory scenario evidence * test(qa): follow durable progress completion * test(qa): run doctor migration noninteractively * test(qa): split active memory follow-up * test(qa): wait for preview retirement * test(qa): require ordered preview retirement * test(qa): record ordered durable reply evidence * test(qa): preserve durable delivery budgets * test(qa): isolate durable lifecycle by account * test(qa): scope durable reply assertions by account * test(qa): preserve durable conversation identity
Closes #119368
What Problem This Solves
Fixes an issue where maintainers running concurrent QA scenarios would see false failures when a tool-backed final reply correctly replaced its streamed preview with a new durable message ID.
Why This Change Was Made
The channel-memory and progress-evidence scenarios now wait until the event log proves a strict preview-send -> same-preview-delete -> distinct-final-send cursor order, then evaluate the sole non-deleted final reply. Their request-chain, artifact-ordering, reply-target, content, retired-preview, and exactly-once assertions remain intact.
The lifecycle waits preserve the scenarios' existing policy-aware delivery budgets: 30 seconds for the memory scenario and 60 seconds for progress evidence. No retry, product runtime, provider, channel, or memory behavior changed.
User Impact
There is no user-visible product behavior change. Maintainers and contributors get reliable QA verdicts for the channel's documented tool-backed preview replacement flow.
Production LOC delta: 0. QA tests/scenarios: +185 / -28.
Evidence
memory-tools-channel-contextcomparing the sole visible final against a retired preview ID.tbx_01kz7ffteq8qkr1y201t2ecptktbx_01kz7gtmegnf47d1wx585qb5kmagent-progress-evidence; the corrected five-iteration progress/terminal-finalization matrix then passed 40/40 with no retries.tbx_01kz7hss9yw8724yb4hgr70245, https://github.com/openclaw/openclaw/actions/runs/30960194646tbx_01kz7kdzfgdr31v4d8vnj6knxs, https://github.com/openclaw/openclaw/actions/runs/30961778473tbx_01kz7rn31fxazt9k9eejtjva9v60cfd836149566recorded preview sends at cursor 2, matching deletions at cursor 3, and distinct durable finals at cursor 4 for both scenarios.tbx_01kz7wbx7jrsxcebgk9ba17pcgf8fda63ebbef94e4a580f7eac730ea2eef289c8dpassed both affected scenarios 2/2.OPENCLAW_BUILD_PRIVATE_QA=1 pnpm openclaw qa suite --provider-mode mock-openai --scenario memory-tools-channel-context --scenario agent-progress-evidence --concurrency 1tbx_01kz7yfajh7t7bcqn8z4yv157vda2fdfb852ac1b8d2b73a5e2b1230e1f4a7aa6cbpassed both affected scenarios 2/2.OPENCLAW_BUILD_PRIVATE_QA=1 pnpm openclaw qa suite --provider-mode mock-openai --scenario memory-tools-channel-context --scenario agent-progress-evidence --concurrency 1tbx_01kz7zjm20s5zyk7qjry749yhs0da7ee83bad514dd02c4af3e4d42a3c0f26eaa66passed both affected scenarios 2/2.OPENCLAW_BUILD_PRIVATE_QA=1 pnpm openclaw qa suite --provider-mode mock-openai --scenario memory-tools-channel-context --scenario agent-progress-evidence --concurrency 1tbx_01kz82r32atk9g5t9287hp5ap3(account, conversation kind, conversation id)through every lifecycle and downstream selector, exact head86b3c128956c58a14f768b6c4b3ae77271f6a7c4passed both affected scenarios 2/2.OPENCLAW_BUILD_PRIVATE_QA=1 pnpm openclaw qa suite --provider-mode mock-openai --scenario memory-tools-channel-context --scenario agent-progress-evidence --concurrency 1tbx_01kz85d41ms5xp50nb99hwbw6rnode scripts/run-vitest.mjs extensions/qa-lab/src/scenario-catalog-causality.test.ts extensions/qa-lab/src/scenario-catalog.test.ts extensions/qa-lab/src/scenario-catalog-channels.test.ts.tbx_01kz7me92tx3dbnkfh5rmyz6cjAI-assisted: yes. I understand the changes and verified the affected owner paths and pressure behavior directly.