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 real behavior proof before merge. What this changesThis PR measures Windows Scheduler evidence and Startup fallback waits with a monotonic clock. Example: The wall clock moves backward ten minutes during the 15-second Scheduler evidence wait.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR repairs a current-main deadline bug with a focused change; no actionable code defects were found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherWindows service installation and restart consume runtime observations from the scheduled-task owner to complete takeover, retain a fallback, or report failure. flowchart TD
A[Windows install or restart] --> B[Scheduled task runtime owner]
B --> C[Monotonic wait deadline]
B --> D[Task Scheduler probe]
B --> E[Startup process inspection]
D --> F[Takeover result]
E --> F
C --> F
Technical reviewBest possible solution: Use performance.now consistently in the existing wait owners while preserving their probe, fallback, and process-ownership rules. Do we have a high-confidence way to reproduce the issue? Current-main source directly establishes the clock-domain failure, and the PR reports red-to-green rewind regressions; no target code was executed during this read-only review. Is this the best way to solve the issue? This is the smallest complete repair: it changes the deadline clock in the existing owners and adapts their tests without introducing state, wrappers, or competing policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 286b334736db. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +37, Docs +3. Total +40 across 4 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 HistoryReview history (2 earlier review cycles)
Reviewed October 25, 2026, 8:29 PM ET / October 26, 2026, 00:29 UTC (Revision 3). |
439583e to
16adf28
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Use the existing monotonic clock for Scheduler evidence and Startup reprobe budgets. Cover a wall-clock rewind during each wait and retain the native probe deadline boundaries and startup fallback consumer fixtures. Co-authored-by: mikasa0818 <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
openclaw#182859) Use the existing monotonic clock for Scheduler evidence and Startup reprobe budgets so a backward wall-clock correction cannot extend scheduled-task fallback waits. Retain the native probe deadline boundaries and startup fallback consumer fixtures, and cover clock rewinds at both owning waits. All 93 focused tests and exact-head CI passed. Native Windows takeover was not independently live-tested. Co-authored-by: mikasa0818 <[email protected]>
#182859) Use the existing monotonic clock for Scheduler evidence and Startup reprobe budgets so a backward wall-clock correction cannot extend scheduled-task fallback waits. Retain the native probe deadline boundaries and startup fallback consumer fixtures, and cover clock rewinds at both owning waits. All 93 focused tests and exact-head CI passed. Native Windows takeover was not independently live-tested. Co-authored-by: mikasa0818 <[email protected]> (cherry picked from commit 871e7cb) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Windows service takeover can keep waiting long after its intended budget when the system clock moves backward during startup or restart.
User Impact
The Scheduler evidence wait and Startup login-item reprobe retain their existing elapsed-time budgets across clock corrections.
Why This Change Was Made
Use the same monotonic clock as the other runtime inspection deadlines. Keep the existing takeover decisions, native probe allowances, and process ownership checks.
Thanks to @mikasa0818 for the original fix and supplied Windows trace. The contributor's commits are preserved.
Evidence