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: blocked before merge. Reviewed September 28, 2026, 9:18 AM ET / 13:18 UTC (Revision 4). ClawSweeper reviewWhat this changesThe branch advances the requester-wake end-to-end test clock to a stored retry deadline, waits for worker activity to settle, then completes a bounded 151-second window. Merge readiness⛔ Blocked before merge - 3 items remain Current main already contains the requester retry clock repair through merged #160407. This branch adds a small window-bound guard, still conflicts with main, and is identified as member-authored in Repository State, so its disposition needs maintainer review. Priority: P3 Review scores
Verification
How this fits togetherThe subagent registry records child completion and schedules a retry when a requester needs to be resumed. This test advances simulated time while exercising registry persistence and real worker I/O, then checks that the requester continues once. flowchart LR
A[Child completion] --> B[Requester wake registry]
B --> C[Stored retry deadline]
C --> D{Next child accepted?}
D -- No --> E[Advance clock and join worker]
D -- Yes --> F[Complete retry window]
E --> F
F --> G[Assert one continuation]
Decision needed
Why: The central repair is merged, but this branch has a small unique assertion and conflicting author-association signals; its current head also conflicts with main. Before merge
Agent review detailsSecurityNone. PR surfaceTests +10. Total +10 across 1 file. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the merged fixture repair as the single implementation, retarget the dependent provider refactor to main, and retain the extra window-bound assertion only if its distinct value warrants a focused follow-up. Do we have a high-confidence way to reproduce the issue? No current-main failing reproduction was run in this read-only review. The pre-fix timeout was observed in CI and an isolated Testbox, and current main contains the merged clock repair. Is this the best way to solve the issue? No—the merged fixture repair is already the narrow solution to the timeout. The branch's additional bound check should be considered only if it protects a distinct test invariant. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d6aa710c5091. LabelsLabel changes: No label 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
History |
What Problem This Solves
The requester-wake regression suite can time out real worker I/O while its fake clock jumps across a retry window, failing CI under runner load.
User Impact
No production behavior changes. The fixture lets the admitted retry finish before advancing past its worker deadline, while retaining the original 151-second window and exact no-duplicate-continuation assertions.
Why This Change Was Made
A single 151-second timer advance starts the 30-second requester retry and can also expire its newly created 60-second state-worker task before real I/O completes. The no-next-child case now advances to the persisted retry time, joins the retry's owned work, then advances the remainder of the original window. Native retry timers still execute; no timeout, retry count, assertion, or skip is weakened.
This was found while validating #160038 and is kept separate from the provider refactor.
Evidence
preserves serial continuation without replaying an accepted wave (cli, next child accepted=false, requester final=false)with completed cleanup but delivery errorworker task timed out.tbx_01m3kw5zqt1eqbp5w6tcsp20mjverified commit19759973fb6bb3e98badc36595d69459c7b66863, treee7a45c9b7416fff1d417b29ace656cc659afea96. 20 complete file runs passed (360 cases); three original eight-target job runs passed (24 target invocations); full selected changed checks passed. The command exited 0, and the lease was stopped.pnpm test src/agents/subagents/registry/subagent-registry.requester-wake.e2e.test.ts --maxWorkers=1took 46.94s median wall across 20 runs (range 35.99–69.79s). This existing 18-case E2E suite owns durable settlement and no-replay behavior through real worker I/O plus CLI/native composition; no tests or process boots were added.19759973fb6bb3e98badc36595d69459c7b66863CI 36419185500 passed. Its file invocation took 74.27s, with Vitest reporting 72.44s total and approximately 27.5s in tests; transforms dominate the remaining time.Remote commands and original job selection
All commands ran serially through
node scripts/crabbox-wrapper.mjs run --provider blacksmith-testbox --id tbx_01m3kw5zqt1eqbp5w6tcsp20mj --timing-json -- OPENCLAW_TESTBOX=1 OPENCLAW_TESTBOX_REMOTE_RUN=1 ..., after frozen install and source verification.pnpm install --frozen-lockfile pnpm test src/agents/subagents/registry/subagent-registry.requester-wake.e2e.test.ts --maxWorkers=1 node --import tsx scripts/ci-run-node-test-shard.mts node scripts/check-changed.mjs --base origin/main --head HEAD --timed -- src/agents/subagents/registry/subagent-registry.requester-wake.e2e.test.tsThe file command ran 20 times without retrying failures. The shard runner used the captured original
OPENCLAW_NODE_TEST_TARGETS_JSON, two inner workers, and one admitted plan to preserve the original job order:Final disposition
Closed as superseded by #160407, merged as
88e3331026a1daf43b093fbfa6a27c7494b72b86. A fresh main fetch confirmed the same retry-before-clock-advance repair at the fixture owner. This PR was not merged.The final local follow-up also bounds the recorded retry by the original 151-second horizon. Blacksmith Testbox
tbx_01m3m0yhnp5ydfaaavdqvar80dpassed all 18 cases and selected changed checks for final fixture blobbedd093b4cee162ce17ca28e662d12b0be4490a7(headf2d8a8ede1accf04afdfd4e24b03aa9b8719d0c9). An adverse control changing the native retry delay from 30 seconds to 180 seconds failed specifically at the bound assertion; production bytes were restored before checks. This proves the added assertion, not exact-head CI for the follow-up or a claim that main contains that extra assertion. The original 20-file-run and three-job-run evidence above remains the repeatability evidence for the shared scheduling mechanism.