Repository navigation
fix(test): join requester retry before advancing its clock - #160407
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
752d806 to
387cea3
Compare
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
Codex review: blocked before merge. Reviewed September 28, 2026, 8:04 AM ET / 12:04 UTC. ClawSweeper reviewWhat this changesThe branch changes the requester-wake end-to-end test to join worker work at its recorded retry deadline before completing the original fake-time observation window. Merge readiness⛔ Blocked before merge - 2 items remain Keep open. Current main retains the reported test-timing defect, and the focused repair has not merged. A prior-head full-file CI job succeeded, but the repository's flake-triage repeatability bar remains unmet. Priority: P2 Review scores
Verification
How this fits togetherWhen a child agent finishes, the subagent registry schedules any needed retry to wake its parent through Gateway work. This test supplies child completions and a fake clock, then checks delivery and replay outcomes. flowchart LR
A[Child completion] --> B[Registry wake state]
C[Fake clock] --> D[Retry timer]
B --> D
D --> E[Gateway worker]
E --> F[Delivery and replay checks]
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 an end-to-end requester-wake check that exercises the real retry and worker completion, preserves the delivery and no-replay assertions, and stays stable in the original shard order. Do we have a high-confidence way to reproduce the issue? Yes. The full requester-wake file failed in CI and an isolated Testbox with main-equivalent fixture and worker code, and current main retains the clock jump. This read-only review did not execute the suite. Is this the best way to solve the issue? Yes. Correcting the fixture's clock ordering is narrower than changing production retries or worker timeouts, and the prior-head file run supports the approach; repeatability still needs qualification. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 733ceac1a7ea. 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
|
…160407) Join requester retry work at its recorded deadline before completing the original fake-time window. This prevents the fixture from firing the worker timeout while real I/O is still pending; production timers and all delivery/no-replay assertions are unchanged. All 18 requester-wake cases and exact-head CI pass. The additional 20+3 repeatability sampling request is explicitly declined under the governing bounded best-effort policy, with the attempts and remaining uncertainty documented in the PR. Related: openclaw#160010, openclaw#160406
What Problem This Solves
A requester-wake E2E test advances 151 seconds of fake time in one operation. Its scheduled retry starts real worker I/O inside that interval; the same clock can fire the worker timeout before the operation joins, producing intentional non-delivery instead of the expected recovered wake.
Observed in CI job 108907934613: 17 cases passed; the rejected-next-child CLI case failed with
worker task timed out. The fixture, retry owner and worker pool are byte-identical on that graph PR and its main base.Related: #160010
Unblocks: #160311
Result
The fixture advances to its recorded retry deadline, joins the existing owned-work observer, then advances the remainder of the original 151-second window. The production timer still admits the retry. The final sweep, delivered-cleanup checks, idempotency identities, one-visible-final check and no-replay assertions remain intact across all four serial-continuation variants.
Validation
Head:
387cea3bea22575c800393f591ebaec8964a61e6; base:f504ddd345aaeb5f0691f7229c94c4816e899b7e.advanceTimersByTimeAsync.752d806abe64eb2b448f8502f33d001bec449104; that run subsequently failed the formatter gate. Pinned oxfmt 0.68.0 changed only a line wrap, and the local file exactly matches the remote formatter output SHA-256402458c97a86c4073258c98364b3a6c64509b937c57e330f90059fcf6214e24d. Fresh exact-head CI and ClawSweeper review are required for the current formatted commit.Production +0/-0; tests +11/-1 (net +10), one file. No timeout increase, new mock, production behavior or assertion removal.
Review disposition
Exact-head ClawSweeper review finds no code/security defect and agrees this is the correct fixture owner. Its only pre-merge request and optional rank-up move are additional repeatability sampling: 20 standalone runs and three original-shard runs.
That sampling request is explicitly declined under the governing bounded best-effort failure policy in
AGENTS.mdat maintainer-workflow revision72b76842012f405400a2b6b694f46bd62b7bca1c(Quality and cost; GitHub and change boundaries). That policy requires documenting the failure, attempts, evidence and remaining uncertainty, then continuing through normal CI/review gates; it does not make an unresolved flake an extra landing-approval gate. The workflow also requires reusing valid proof and explaining rejected review requests. Here the timer/worker/join mechanism is inspected directly, the original CI failure is retained, both complete candidate file runs pass, and two independent cold-build attempts already reached their 12 GiB hard cap before tests. No further sampling or unbounded build retry is justified for this test-only prerequisite. No claim of 20-run stability or original-shard-order qualification is made. Required exact-head CI and protected native landing remain intact.The same clock defect is independently tracked in #160406, alongside the broader #160297. This PR changes only the recorded retry deadline in the existing E2E fixture; it does not duplicate that PR's product work or introduce a general timer helper.
Exact current-head CI: run 36418727017 completed successfully. Selected tests, formatting, lint, types, guards and dependency checks passed. The review disposition above is unchanged; no extra repeatability claim is made.