Skip to content

fix(cron): scheduled runs silently skipped when the scheduler wakes late with skipMissedJobs - #197484

Merged
obviyus merged 6 commits into
openclaw:mainfrom
Stronggenetics:fix/cron-late-tick-skip-missed
Nov 12, 2026
Merged

obviyus merged 6 commits into
openclaw:mainfrom
Stronggenetics:fix/cron-late-tick-skip-missed

Conversation

@Stronggenetics

@Stronggenetics Stronggenetics commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Related: #179927 (a different silent-drop path, already closed)

What Problem This Solves

Fixes: enabled cron jobs silently lose whole runs (no run record, no error, no log line) when cron.skipMissedJobs is on and the scheduler's timer fires more than 2 s late, which happens routinely on a busy Gateway.

User Impact

User impact: with cron.skipMissedJobs: true, a slot that comes due while the Gateway is running now runs even if the scheduler wakes late. Slots are still skipped after downtime or a clock jump, as documented. No config, schema, log or protocol change. With skipMissedJobs off nothing changes (late ticks already ran their slots).

Why This Change Was Made

A scheduler tick that arrives more than MIN_REFIRE_GAP_MS (2 s) after its planned wake sets catchupNeeded, exactly like a wall-clock jump, and goes through boundedCatchup. There, skipMissedJobs moves every due cron/every slot to its next occurrence without running it. So an event-loop stall or a slow SQLite write was treated like downtime.

The catch-up pass now skips missed slots only at startup or when the wall clock jumped (wall time outran monotonic time since the last tick). A pass that is only late still runs slots whose nextRunAtMs has come due, bounded and staggered as before. A slot found missed only from its last run (its nextRunAtMs is still in the future) is still advanced, as before. The jump is measured at tick time; a refresh keeps the last tick's baselines, so no extra actor state is needed.

Evidence

Focused tests: src/cron/store/scheduler-actor.worker.test.ts passes 24/24 at this head. With the same test file on main, only the new late-wake row fails. Three rows were added to the existing catch-up table, and the run-finalization setup the file repeated is now one helper, so the file has fewer lines than on main:

Row (skipMissedJobs on) This head main
late wake (slots due at +60 s; wall and monotonic both +63 s) 5 of 7 due slots accepted at once (the catch-up limit) none run
clock jump (wall +60 min, monotonic +63 s) none run none run
clock jump with a refresh before the tick none run none run

Built Gateway in Docker (proof comment): on main, a Gateway stalled across a slot (SIGSTOP/SIGCONT) has no run for that slot, twice. At this head the slot runs once, about 3 s late, twice. Restarting after real downtime, a process-local clock step and the setting off all behave as before.

Running Gateway. A Linux systemd Gateway with about 105 enabled automations, cron.skipMissedJobs: true, on stable 2026.11.3 plus local patches. The same run/skip change was deployed there on 2026-11-11 at 12:43 ET. That build also logged an info line for each skip (cron: skipped missed slots); this head does not add that log line. Excerpts below are raw output with job names, run summaries, store paths and tokens removed; job ids are cut to 8 characters, times are ET. Run records come from openclaw cron runs --all --json; slot is the scheduled time encoded in each run id (cron-slot-v1.<base64url [storeKey, jobId, slotMs]>).

1. With the fix: the scheduler wakes 23 s late and the due slots run (2026-11-11 19:50 ET)

Gateway log (/tmp/openclaw/openclaw-2026-11-11.log, UTC):

00:50:23.143Z slow agent database reservation {"operation":"worker","isMainThread":true,"elapsedMs":8648,"writerExecutionMs":8648}
00:50:23.351Z cron: skipped missed slots (cron.skipMissedJobs) {"jobIds":["4d1cdd28","b42c6ac4","3455ec8f"],"lateTick":true}
00:50:23.352Z cron: staggering missed jobs to prevent gateway overload {"immediateCount":5,"deferredCount":6,"totalMissed":11}

The three ids on the skip line are jobs whose last slot was dropped before the fix was deployed (nothing was due for them). Run records for the 19:50 slots:

job       schedule        slot          runAt         late    status
9f970168  */5 * * * *     19:50:00.000  19:50:23.113  23.1 s  ok
8975a4c6  50 1-23/2 * * * 19:50:00.000  19:50:23.113  23.1 s  ok
6bcebed0  */5 * * * *     19:50:00.000  19:50:23.113  23.1 s  ok
f595bc44  */5 * * * *     19:53:02.935  19:53:03.595   0.7 s  ok   (deferred by the existing stagger)
fc815d35  */5 * * * *     19:53:07.935  19:53:09.836   1.9 s  ok   (deferred by the existing stagger)

On main this wake (more than 2 s after the planned 19:50:00 wake) takes the same catch-up path and moves each of these jobs to its next slot unrun.

2. Intentional skip diagnostics: slots missed during downtime are still skipped (restart 2026-11-11 14:26 ET)
19:26:57.671Z cron: skipped missed slots (cron.skipMissedJobs) {"jobIds":["f3d16cb4","bd8dc050","dd453562","610b8ae2","4d1cdd28","fa6b5b44","b42c6ac4","c413ef6c","3455ec8f","6bcebed0","86496561","6e5bf307","f595bc44","2724edaf","fc815d35","977a19b3","4d1392b8"],"lateTick":false}
19:26:57.672Z cron: started

17 jobs had a slot while the host was down; they were skipped, then resumed on their next slot. This head skips them the same way; it does not add the log line.

3. Before the fix: the same 5-minute jobs lose a slot with no trace (2026-11-11 11:35 ET, build without this change)
job       schedule     11:25 slot      11:30 slot      11:35 slot  11:40 slot
9f970168  */5 * * * *  ran +0.005 s    ran +0.004 s    no run      ran +0.005 s
fc815d35  */5 * * * *  ran +0.005 s    ran +0.252 s    no run      ran +0.005 s
6bcebed0  */5 * * * *  ran +0.005 s    ran +0.004 s    no run      ran +0.005 s
f595bc44  */5 * * * *  ran +0.005 s    ran +0.004 s    no run      ran +0.005 s

Gateway journal from the same minutes shows the event loop stalled (a build was running on the host from 11:09 to 11:44):

2026-11-11T11:34:05.086-05:00 [ws] ⇄ res ✓ health 24993ms
2026-11-11T11:34:21.761-05:00 [ws] ⇄ res ✓ health 11668ms

The old code logs nothing when it moves a slot, so there is no skip line to show; the detailed file log for that period was lost in a host reboot.

Whole-day comparison (every slot each cron expression should have produced vs. the run records):

Before the fix (07:30-12:31 ET) With the fix (12:43-20:30 ET, excluding a host freeze and reboot 14:05-14:26)
Runs that started more than 2 s after their slot 1 of 2,078 (max 2.7 s) 135 of 5,568 (max 109 s)
Slots of jobs running once a minute or slower with no run at all 11 1 (14:28, two minutes after the reboot while agents were still starting)

After the reboot the late-tick catch-up path ran at least 80 times in 7 hours, and 64 of those passes started 152 slots that had come due more than 2 s before the wake.

Gaps: jobs that run every 5-30 s were not counted (they overlap their own previous runs by design). One 30-second slot at 21:05:30 ET did not run during a 19.6 s main-thread SQLite write; the late pass at 21:05:57 found that job's nextRunAtMs already past the slot, so an earlier step moved it, and its receipts were pruned before the cause could be checked. Not claimed as fixed here.

…with skipMissedJobs

A scheduler tick that arrives more than MIN_REFIRE_GAP_MS (2 s) after its
planned wake sets catchupNeeded and takes the catch-up path. With
cron.skipMissedJobs on, that path moves every due cron/every slot to its
next occurrence instead of running it, so on a busy host (event-loop stalls
of a few seconds) enabled jobs silently lose whole slots: no run record,
no error, no log line.

skipMissedJobs is meant for slots missed while the Gateway was down. Keep
the bounded, staggered catch-up for late ticks, but skip slots only at
startup or when wall time outran monotonic time (clock step, suspend). A
slot that came due before a merely late tick now runs.

Skips are now logged ("cron: skipped missed slots (cron.skipMissedJobs)")
with the job ids and the reason (startup or clock-jump). Only slots the
pass actually moves are listed, so a slot passed over earlier is not
reported again on every later catch-up.
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR runs due recurring jobs after a late scheduler wake while preserving missed-slot skipping at startup and after clock jumps.

Example: With cron.skipMissedJobs enabled, a process stall delays a 05:39:00 cron slot until 05:39:03.

  • Before: The slot produces neither a command execution nor a run record.
  • After: The command executes once at 05:39:03.2 and has one run record.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused owner-level repair with shipped-Gateway A/B evidence, preserved neighboring behavior, and all earlier findings resolved.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Obviyus exercised the changed scheduler through a built Gateway in secretless Docker: real process stalls lose slots on main and execute each delayed slot once on the candidate, with restart, clock-step, and setting-off controls; subsequent commits only remove unused state and fix test types.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Enabled recurring automations silently lose entire occurrences when a busy Gateway wakes its scheduler more than two seconds late.
Reason: The repair restores live scheduled execution while preserving the documented downtime opt-out, without adding configuration or another scheduling owner.

Merge readiness

✅ Ready for maintainer review

This PR fixes a current scheduler bug and resolves the previous review findings; no actionable defects remain, with exact-head CI still pending.

Priority: P2
Reviewed head: 4cf5d8cade2dc0c02efb18156f6e4354cd51455b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The cron worker receives scheduler commands, job rows, and timing observations, selects eligible occurrences, and passes them to the existing run queue for receipt-backed execution.

flowchart TD
  A[Gateway scheduler] --> B[Cron worker actor]
  C[Stored jobs] --> B
  B --> D[Late wake or clock jump]
  D --> E[Bounded catch-up]
  E --> F[Existing run queue]
  F --> G[Execution and run records]
Loading

Technical review

Best possible solution:

Merge the focused scheduler repair once the existing exact-head CI gates pass.

Do we have a high-confidence way to reproduce the issue?

Yes: the supplied built-Gateway A/B proof reproduces lost slots on main using a real process stall, and current-main source confirms the responsible catch-up branch.

Is this the best way to solve the issue?

The patch repairs the decision in the existing scheduler owner, reuses timing baselines, preserves bounded staggering and queue admission, and adds distinct late-wake and clock-jump regressions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3b13df5767c2.

Provenance checked

  • Missed recurring-slot skipping keeps the original intent (feat(cron): optionally skip missed recurring jobs at startup #135071: Allow operators to avoid stale recurring work after Gateway downtime.)
  • Late-deadline and clock-jump catch-up changes intended behavior with a stated reason (17e87b0: Park idle scheduler actors while retaining clock-change observation and bounded recovery.)
  • Command-owned catch-up rows keeps the original intent (c6558f6: Reuse the synchronous scheduler command's loaded rows without redundant database reads.)
  • Recovery and deferred-admission test coverage keeps the original intent (59ac534: Protect missed-slot recovery and subsequent cadence; shared finalization setup retains those assertions and the separate deferred-admission scenario.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 17e87b0 adds src/cron/store/scheduler-actor.worker.ts:451 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 17e87b09199f; files: src/cron/store/scheduler-actor.worker.ts)
  • Andrew Bowlds: Raw commit 59ac534 adds src/cron/store/scheduler-actor.worker.ts:481 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 59ac53425d70; files: src/cron/store/scheduler-actor.worker.ts)

PR surface

Source +6, Tests -2. Total +4 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 10 4 +6
Tests 1 59 61 -2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 69 65 +4

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test growth Production +10/-4; tests +59/-61 The small production increase separates late wakes from clock jumps; regression rows reuse the existing table and consolidated finalization setup.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Silent scheduled-run loss affects operators who enable skipMissedJobs and encounter late scheduler wakes.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (4 earlier review cycles)
  • reviewed 2026-11-12T03:20:53.680Z sha 2e95c68 :: needs real behavior proof before merge. :: [P3] Limit the allocation to this PR's regression-test growth
  • reviewed 2026-11-12T03:46:33.030Z sha a17cb2b :: needs maintainer review before merge. :: none
  • reviewed 2026-11-12T05:47:47.651Z sha cdad834 :: needs changes before merge. :: [P2] Give every catch-up table row a consistent skip field | [P3] Remove the unused skipped-slot accumulator
  • reviewed 2026-11-12T06:01:20.922Z sha 5d70019 :: needs changes before merge. :: [P2] Give every catch-up table row a consistent skip field

Reviewed November 12, 2026, 1:16 AM ET / 06:16 UTC (Revision 5).

@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 12, 2026
@Stronggenetics

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@roboclaw-bot roboclaw-bot added the clawtributors PR from a clawtributor label Nov 12, 2026
Detect a clock jump at tick time instead of tracking it on the actor, drop the new skip log, fold the regression rows into the existing catch-up table, and remove the test-line allocation.
@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper clawsweeper Bot removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@obviyus

obviyus commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Proof on a built Gateway (secretless Docker, node:24.22.1). I ran openclaw gateway run with cron.skipMissedJobs, plus one * * * * * command job that appends the time to a file. A real stall: the whole Gateway process group gets SIGSTOP at :55 and SIGCONT 8 s later, so the :00 timer fires about 3 s late. There's no code injection.

  • main: 3e7fb1bfca.
  • Candidate: built at cdad834d3280. The current head, 4cf5d8cade2d, changes only test types and deletes a variable nothing used; the scheduler logic is the same.

"Run" is the time the job's command wrote. "Record" is the Gateway run record from openclaw cron runs --id <job> --json.

Run Setting Scenario The slot after the stall Runs and records
main 1 on stall over 05:34:00 no run, no record 05:32:00, 05:33:00, 05:35:00
main 2 on stall over 05:43:00 no run, no record 05:41:00, 05:42:00, 05:44:00
candidate 1 on stall over 05:39:00 runs once at 05:39:03.2 05:37:00, 05:38:00, 05:39:03, 05:40:00
candidate 2 on stall over 05:47:00 runs once at 05:47:03.0 05:45:00, 05:46:00, 05:47:03, 05:48:00

Controls:

Run Setting Scenario Result
candidate on Gateway stopped at 05:50:52 and restarted at 05:51:12 (05:51:00 passed while it was down) 05:51:00 is still skipped; the next run is 05:52:00
candidate on process-local Date step of +90 s at 05:55:20 (preload, monotonic time untouched) Gateway slots 05:56 and 05:57 are skipped; the next record is Gateway time 05:58:00 (wall 05:56:30)
main on the same clock step at 05:59:20 the same: slots 06:00 and 06:01 are skipped; the next record is 06:02:00
candidate off stall over 06:03:00 runs once at 06:03:03.1, like main
main off stall over 06:07:00 runs once at 06:07:03.2

In every candidate run, the late slot has exactly one run and one record.

Focused tests in the same container: src/cron/store/scheduler-actor.worker.test.ts passes 24/24 at 4cf5d8cade2d. With that test file on main, only the new late-wake row fails. The neighboring catch-up suites (service.startup-overflow-clobber, service/startup-notifications, service.restart-catchup, service.restart-catchup-pacing) pass 32/32.

Changes on top of @Stronggenetics's fix:

  • The clock jump is now measured at tick time instead of being stored on the actor. A refresh keeps the last tick's baselines, so a later tick still sees the jump; the refreshed-jump row covers that.
  • The new skip log line is removed.
  • The regression cases are now three rows in the existing catch-up table, and the run-finalization setup the file repeated is one helper.
  • The test-line allocation is removed.

Production code is +10/-4 against main; test code is -2 lines.

@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@obviyus
obviyus merged commit 87c10f5 into openclaw:main Nov 12, 2026
120 checks passed
@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Landed in 87c10f5. Thanks @Stronggenetics.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
…ate with skipMissedJobs (openclaw#197484)

fix(cron): run late slots that came due while the Gateway was up with skipMissedJobs

With cron.skipMissedJobs on, the scheduler treated any wake more than 2 seconds late like downtime, so a run that came due while the Gateway was up but briefly stalled was silently skipped with no record. Clock jumps are now detected at tick time, and a late wake without a jump runs the slot once. Skipping missed slots after real downtime and across a wall-clock jump is unchanged, and nothing stored changes. No text changes.

Evidence: a built Gateway in a secretless node:24.22.1 container with skipMissedJobs on and a one-minute command job, the whole Gateway process group stopped with SIGSTOP just before a slot and resumed 8 s later, two runs each. On main the stalled slot had no run and no record; with this change it runs once about 3 s late with one record. A restart after real downtime still skips the missed slot, a process-local +90 s Date step skips the slots it jumps over on both, and with the setting off the late slot runs once on both. The late-wake row in the existing catch-up table fails on main, at -2 net test lines. Details: openclaw#197484 (comment).

Thanks @Stronggenetics.

Co-authored-by: Ayaan Zaidi <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 14, 2026
…ate with skipMissedJobs (#197484)

fix(cron): run late slots that came due while the Gateway was up with skipMissedJobs

With cron.skipMissedJobs on, the scheduler treated any wake more than 2 seconds late like downtime, so a run that came due while the Gateway was up but briefly stalled was silently skipped with no record. Clock jumps are now detected at tick time, and a late wake without a jump runs the slot once. Skipping missed slots after real downtime and across a wall-clock jump is unchanged, and nothing stored changes. No text changes.

Evidence: a built Gateway in a secretless node:24.22.1 container with skipMissedJobs on and a one-minute command job, the whole Gateway process group stopped with SIGSTOP just before a slot and resumed 8 s later, two runs each. On main the stalled slot had no run and no record; with this change it runs once about 3 s late with one record. A restart after real downtime still skips the missed slot, a process-local +90 s Date step skips the slots it jumps over on both, and with the setting off the late slot runs once on both. The late-wake row in the existing catch-up table fails on main, at -2 net test lines. Details: #197484 (comment).

Thanks @Stronggenetics.

Co-authored-by: Ayaan Zaidi <[email protected]>

Backport: preserve the release runtime-row mutation owner and versioned scheduler snapshots; port late-wake classification without newer cached-job or deferred-admission architecture.

(cherry picked from commit 87c10f5)

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit b0c5872f3e6f5011cde0ba3394c39e32a743d11e)
RomneyDa added a commit that referenced this pull request Nov 15, 2026
Preserve the existing 2026.11.5 beta line and its pending test repairs.
Repair transcript admission, terminal SQLite iterators, binary attachment
classification, detached lifecycle calls, cron late wakes and reload handover.
Carry the explicitly requested Bonjour package-integrity fix and release guidance.

Selected backports: #188055, #198309, #190242, #198860, #198011, #197658,
#197484, #197606. #198011 is the operator-required open PR head, not a
merged-main claim. Cron tests are adapted to the existing beta runtime.

(cherry picked from commit e3064bf)
(cherry picked from commit afa871c)
(cherry picked from commit 2c0ab86)
(cherry picked from commit fee19a9)
(cherry picked from commit dbb6f39)
(cherry picked from commit 4d9f782)
(cherry picked from commit 87c10f5)
(cherry picked from commit ce76ed2)

Proof: frozen parent suite passed all 7 shards (265 tests) in 274.45s.
Separate unchanged-production baseline reproduced transcript/lifecycle,
late-wake and live-receipt failures. SQLite already passed on Node 26.12.1.
Independent review found no actionable P0/P1 defects in this snapshot.
The complete beta.4 candidate and stable-profile FRV remain pending.

Co-authored-by: jalehman <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: Yun. <[email protected]>
Co-authored-by: ava-perry <[email protected]>
Co-authored-by: Alfred J Berchtold <[email protected]>
Co-authored-by: Stronggenetics <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawtributors PR from a clawtributor P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants