Repository navigation
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 updates the SIGKILL QA test to require one recovery input, no original-input replay, and successful subsequent messaging. Example: The Gateway is killed while processing the prompt marked KILL-RESTART-PROMPT.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR corrects an obsolete recovery expectation without changing runtime behavior; no actionable patch defects were found, but the failing ratchet check remains unattributed. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe QA channel drives an isolated Gateway child against a synthetic provider, then observes provider requests, outbound replies, persisted session status, and transcript events across process death and restart. flowchart TD
A[QA channel input] --> B[Gateway child]
B --> C[Synthetic provider]
B --> D[Session database]
E[SIGKILL and restart] --> B
C --> F[Request assertions]
D --> G[Transcript and settlement assertions]
B --> H[Outbound reply assertions]
Technical reviewBest possible solution: Keep the existing Gateway QA scenario and replace its obsolete oracle with assertions for one continuation, preserved transcript input, and subsequent same-session delivery. Do we have a high-confidence way to reproduce the issue? Current-main source and documentation contradict the old empty-request assertion, and the PR reports a matching unchanged-test failure; this review ran no target code. Is this the best way to solve the issue? The patch is a focused oracle repair using existing Gateway, provider-observation, and transcript owners, with distinct assertions for duplicate continuation and user-input replay. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9e8cd4fd9266. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +39, Other +2. Total +41 across 2 files. Added test files: 0. View PR surface stats
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 Reviewed November 3, 2026, 7:49 PM ET / November 4, 2026, 00:49 UTC. |
Current disposition: superseded by merged #192996
The original recovery-test repair is already on main in #192996, commit
5b0e4e8c0c934c3d75b92bdbf66bb815dbc1fd95. Its real-Gateway QA lane and complete CI run passed.Resolved this branch's conflict by retaining main's test and removing the obsolete 39-line allocation. Reconciliation commit
8952d5be8c97has a tree identical to integrated maincc595f5c0f6be5aedfad37507ef7c7dd2b50ee3c; no product or test delta remains against that base.git diff --cached --check, exact tree comparison, and independent source comparison passed. No runtime test rerun is claimed for this no-delta reconciliation, and upstream CI is identified as upstream proof rather than a new branch CI run.Main preserves the intended contracts: one ordinary crash-resume input, no original-prompt replay, the same persisted session, and successful subsequent message delivery/settlement. It explicitly aborts the resumed multi-restart fixture before the subsequent message. The old branch submitted that message during recovery, but that timing was not a separate requested invariant. No duplicate regression was retained. This PR no longer needs to be merged.
Historical failed-CI attribution
Original head
058bb9d16ad8f4c5a34672a8b4cf885dac625c70: ratchet job 126306012265 reportedTest lines: 6446674; ceiling: 6446537; over by: 137; net delta: +39.Main parentbf10667561bfdf36fed14c70a5f8ec97b4a01f09already had 6,446,635 lines against a 6,446,498 ceiling: the same 137-line debt. This PR's 39-line growth was matched by its 39-line allocation. The debt came from toast #192013 (+46), #192014 (+66), #192015 (+17), and #192016 (+8). The aggregate CI gate failed downstream of that ratchet; no QA assertion failed in that run.The classifier labeled this
newbased on a passing comparison main job, while explicitly lacking selected-scope comparison and the job log. Exact job evidence and source arithmetic establish the inherited failure instead; no matching-signature classifier result is claimed. No scalar increase or checker relaxation was made here.Original proposal and proof (historical; superseded)
What Problem This Solves
Fixes a release-validation QA failure when an eligible active session resumes after its Gateway is killed with
SIGKILL.User Impact
No runtime behavior changes. The QA test now checks the current crash-recovery contract instead of requiring eligible work to remain idle.
Why This Change Was Made
The test retained the no-resume expectation from #185730. #190964 intentionally added recovery of persisted active runs after
SIGKILL, and #190995 restricted unmarked recovery to the immediately preceding Gateway lifetime. The release failure and an unchanged local reproduction both contained the actual restart-resume input, not merely a late pre-kill request.The test now observes requests after confirmed process death, distinguishes fresh user input from provider history, and requires exactly one resume input without replaying the original user input. It also verifies one original input and one resume in the transcript, a successful subsequent user reply, and terminal settlement in the same session. The existing Gateway recovery E2E retains the abandoned-session negative boundary; this PR does not change that boundary or production code.
Evidence
expected []failure on macOS with pinned OpenClaw Bun; wrapper elapsed 263.88s including private runtime build/cold compilation.OPENCLAW_VITEST_FS_MODULE_CACHE_PATH=/tmp/qa-kill-restart-vitest-cache node scripts/run-vitest.mjs extensions/qa-lab/src/gateway-kill-restart-send.e2e.test.ts --maxWorkers=1pnpm tsgo:extensions:test— passed.pnpm exec oxlint --type-aware extensions/qa-lab/src/gateway-kill-restart-send.e2e.test.ts— passed.pnpm exec oxfmt --check extensions/qa-lab/src/gateway-kill-restart-send.e2e.test.ts— passed.d27139b2b220327d6f65b659c6fba0b0110fad97: exact +39 test-line allocation, zero slack;git diff --checkpassed.058bb9d16ad8f4c5a34672a8b4cf885dac625c70againstd27139b2b220327d6f65b659c6fba0b0110fad97: no actionable findings. Read-only review did not itself run tests; execution results above are separate proof.