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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR removes a stale kill-record timestamp rewrite and forced sweep from the parent Stop product test. Example: The test stops parent session agent:main:subagent-awaited-parent-stop-parent.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it removes obsolete fixture machinery while preserving the Stop assertions, and no actionable defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway product test drives parent and child sessions through public RPCs, then observes registry cleanup and requester notifications. flowchart TD
A[Scripted model fixture] --> B[Gateway parent session]
B --> C[Child session]
D[Public sessions abort RPC] --> E[Session controller settlement]
E --> F[Registry kill confirmation]
F --> G[Cleanup and notification assertions]
Technical reviewBest possible solution: Retain the minimal fixture deletion and let the existing controller owner perform confirmation and cleanup. Do we have a high-confidence way to reproduce the issue? Source establishes that confirmation can remove the reconciliation record before the fixture mutation; the PR reports the matching baseline TypeError, but this review executed no tests. Is this the best way to solve the issue? The deletion is the smallest complete repair: it removes fixture interference with the existing confirmation owner while retaining cleanup, obligation-retirement, notification, and separate sweeper coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 39e17758b345. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -11. Total -11 across 1 file. 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 October 24, 2026, 6:15 PM ET / 22:15 UTC. |
|
Superseded by #183054, which landed a fix for the same settled parent-stop fixture first. Closing. |
What Problem This Solves
Fixes the scheduled-main parent Stop test crashing when it tries to rewrite a kill record that controller settlement has already cleared.
User Impact
No user-visible behavior, production code, or migration changes. The existing product test continues to verify that stopping the parent settles its child without sending the parent a redundant notice.
Why This Change Was Made
Commit 36e277d (#175837) made controller settlement confirm provisional kills immediately. The ordinary parent-stop fixture still waited for the transient record, rewrote its timestamp, and forced a sweep; confirmation could clear the record before that rewrite. Remove that obsolete fixture machinery and its unused import. The public
sessions.abortcall and every terminal-cleanup, obligation-retirement, and no-notice assertion remain unchanged. The separate overlapping-confirmation/sweeper test is unchanged.Evidence
row.killReconciliation.killedAtundefined. Run 40130094950 repeats the same failure.killedAtTypeError: 1 failed, 10 skipped; 269.29 seconds wrapper wall time. Command:OPENCLAW_VITEST_RUNTIME=node node scripts/run-vitest.mjs src/gateway/server.subagent-stop-followup.product.test.ts --maxWorkers=1 -t 'tells a parent 0'.git diff --checkpassed. The lint wrapper's artifact-preparation lock prevented its run; the explicitly permitted direct oxlint route passed.5186a9692d1817df976ea4dd4ec7965a34f737b2: the changed product-test job passed 11/11 tests, including the previously failing parent-stop case (7.274 seconds). Full-file Vitest duration: 193.71 seconds; job duration: 242 seconds. This supplies the green proof missing from the loaded-host probe.Cannot find module .../runtime/standalone-runtime-profile.mjs, imported bypackages/llm-core/src/validation.ts. Main commit 4a38dbd (fix: validate dynamic schemas without code generation in AOT builds #182856), included by the required fresh-main merge, added that import;createSourceRuntimeindoctor-config-preflight.process.test-support.tsdoes not copy the new root file. Neither file is changed by this PR, and the failure is in a separate test job. The latest completed scheduled-main run at diagnosis, 40134490303, predates that import and passed PostgreSQL; it is not a matching scheduled-main failure witness. No CI rerun or unrelated patch was made.