Repository navigation
fix(qa): wait for config restart wake completion - #126721
vincentkoc wants to merge 2 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 4:36 PM ET / 20:36 UTC. ClawSweeper reviewWhat this changesThe PR makes the QA config-restart capability scenario wait for the correlated post-restart agent run before checking restored capabilities. Merge readiness⛔ Blocked before merge - 4 items remain Keep this PR open: its new sentinel assertion rejects a valid recovered restart result before the correlated-run wait can execute. Its lifecycle-wait idea remains useful, but it must be rebased onto the shipped restart-boundary scenario on current main. Priority: P2 Review scores
Verification
How this fits togetherQA Lab runs declarative qualification scenarios against an ephemeral Gateway and mock channel/provider environment. This scenario changes Gateway configuration, observes the restart wake, then checks that the agent sees the restored tool capability. flowchart LR
A[QA scenario] --> B[Apply restart-required configuration]
B --> C[Gateway restart wake]
C --> D[Correlated agent run]
D --> E[Restored tool check]
E --> F[Qualification result]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +127, Tests +212, Other +9. Total +348 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Accept the recovered config.apply result as a completed restart, then apply the correlated-run wait to current main’s terminal-setting scenario and validate the real restart path. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: inject the supported restart-race recovery result Is this the best way to solve the issue? No; the correlated-run wait is a sound addition, but requiring a sentinel on every successful apply contradicts the owner’s supported recovery result and the branch needs rebasing onto the current scenario. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 762063f08f0e. LabelsLabel 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
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
f15af38 to
fc70d69
Compare
|
Closing as superseded by #127285, landed in 0d727c3 and retained on current main 6b07b94. The current QA flow waits directly for the restart wake message before polling restored tools: openclaw/qa/scenarios/config/config-restart-capability-flip.yaml Lines 139 to 160 in 6b07b94 Its follow-up prompt helper starts the run and awaits openclaw/extensions/qa-lab/src/suite-runtime-agent-process.ts Lines 405 to 422 in 6b07b94 Restart work is durably enqueued before sentinel consumption and the exact wake/continuation entries are drained afterward: openclaw/src/gateway/server-restart-sentinel.ts Lines 656 to 700 in 6b07b94 That makes the historical |
Related: #126259
What Problem This Solves
Fixes an issue where daily-main qualification could treat the config-restart wake session as settled while its correlated agent run had not started or had failed, making the capability-flip scenario race the restart lifecycle.
Why This Change Was Made
The QA harness now records the restart request timestamp and waits for a correlated session run. It uses
agent.waitwhensessions.listexposes one exact active run ID, otherwise it requires a correlated terminal row and surfaces the gateway-redacted failure reason. Timeout diagnostics allowlist only lifecycle state.The scenario retains the real restart-required
config.applypath. This PR does not change product restart, auth, provider, failover, or cooldown behavior.User Impact
No product runtime behavior changes. Maintainers get deterministic qualification evidence for the config restart capability flip instead of a false idle success or a racy follow-up prompt.
Evidence
f15af388f4c87d8fe908361f75723ac8cc8fa338pnpm tsgo:extensions:allpassed.git diff --checkpassed.check-changedpassed all pre-typecheck gates, including full-tree Knip after disabling the inherited sparse profile. Its only code finding was a TypeScript narrowing error; the classified extension-typecheck retry passed after the fix.52c37be00173761a48cc1d5fa26d8b9467ae1895.