Repository navigation
fix(qa): keep restart validation on the active pending wait - #128436
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 9:09 PM ET / August 24, 2026, 01:09 UTC. ClawSweeper reviewWhat this changesThe PR updates two Gateway-restart QA scenarios and their contract test so a restart occurs only while an issued Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open. Current main still uses the checkpoint ordinal rather than unmatched call-ID-correlated wait results; the patch corrects that QA qualification predicate without changing production runtime behavior. No blocking correctness or security finding was identified. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherQA Lab loads YAML scenarios that drive an isolated Gateway and qa-channel through restart checkpoints. Transcript summaries turn persisted assistant tool calls and tool results into scenario predicates before the harness restarts the Gateway and verifies recovery. flowchart LR
A[QA scenario YAML] --> B[Transcript summary]
B --> C[Issued and completed wait counts]
C --> D[Pending wait decision]
D --> E[Gateway restart]
E --> F[Recovery and delivery checks]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +7, Other 0. Total +7 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the narrow QA-only predicate change after exact-head checks complete, retaining the shared transcript-summary correlation rather than adding a parallel checkpoint tracker. Do we have a high-confidence way to reproduce the issue? Yes—source reproducible. Current main's ordinal predicate is visible in both restart scenarios, while the transcript owner exposes issued and call-ID-correlated completed wait counts needed to exercise the corrected condition. Is this the best way to solve the issue? Yes. Reusing the existing transcript-summary owner is the narrowest maintainable fix: it distinguishes issued from correlated completed waits in both invariant-sharing restart scenarios without adding runtime state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8646b061a20c. 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.
|
What Problem This Solves
Fixes an issue where restart qualification could treat an earlier completed
waitcall as proof that the current checkpoint was still pending when one session crossed multiple Gateway replacements.Why This Change Was Made
The restart scenarios now compare issued
waitcalls with call-ID-correlated completed results. This preserves the existing three-checkpoint flow while removing the incorrect dependency on checkpoint ordinal.User Impact
There is no production runtime change. Main and release qualification now restart only while the active checkpoint wait is genuinely pending, reducing false failures and false-positive restart timing.
Evidence
node scripts/run-vitest.mjs extensions/qa-lab/src/scenario-catalog-causality.test.ts extensions/qa-lab/src/scenario-catalog.runtime-pair.test.tspnpm openclaw qa suite --provider-mode mock-openai --concurrency 1 --model openai/gpt-5.6-luna --alt-model openai/gpt-5.6-luna-alt --scenario gateway-restart-inflight-run --output-dir .artifacts/qa-e2e/qa-wait-correlationnode_modules/.bin/oxfmt --check --threads=1 extensions/qa-lab/src/scenario-catalog-causality.test.ts qa/scenarios/runtime/gateway-restart-inflight-run.yaml qa/scenarios/runtime/gateway-restart-multi-live.yamlgit diff origin/main...HEAD --check