Skip to content

fix(cron): prevent missed events and broken recovery - #149673

Merged
steipete merged 14 commits into
mainfrom
codex/cron-scheduler-repairs
Sep 16, 2026
Merged

steipete merged 14 commits into
mainfrom
codex/cron-scheduler-repairs

Conversation

@steipete

@steipete steipete commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Follows #149697 (merged). This PR contains only the scheduler repairs; the already-merged delivery commits have been removed from its stack.

What Problem This Solves

Fixes cron jobs losing observed exits or stream matches, evaluating conditions too soon after maintenance or restart, and failing to recover cleanly after interruption or automatic disablement.

User Impact

Conditions retain their minimum interval, matching stream lines fire before delivery truncation, and interrupted or timed-out runs retain useful history and output. Operators can re-enable declarations and on-exit watches, including while the preceding payload is still finishing. Existing configuration needs no migration or new settings. Database schemas, stored job/receipt/history formats, and retention are unchanged; existing-state restart and recovery regressions cover the repaired lifecycle.

Why This Change Was Made

The repairs stay with the existing scheduler, admission, receipt, and watcher owners:

  • Preserve pending trigger intervals through maintenance and restart; quiet condition evaluations count as completed occurrences for catch-up.
  • Use one recovery event owner for startup, timer recovery, and receipt-settlement waits, recording interrupted task/history results without replaying the payload or duplicating history.
  • Keep an observed exit pending until the preceding durable receipt settles, including cleanup after a timeout response. Disable the watch and reserve its payload atomically; preserve a consumed occurrence when its successor is rearmed. Cancellation and handler handoff retire pending waits while admitted work keeps its settlement owner.
  • Match complete source lines before truncating their delivery batch. Prefixes cut at the raw-intake limit remain unmatched. Matching runs in lifecycle-owned workers, preserving serialized source handling and shutdown accounting.
  • Join command settlement with the existing bounded timeout cleanup so captured output and the command timeout reason reach history. Completion delivery does not start after the deadline.
  • Reset failure counters when an explicit declaration re-enables a stopped job, using the same recovery behavior as ordinary enablement. Routine reconciliation preserves failure streaks and operator-disabled state.

Stream matching uses at most two shared-compute workers, 32 outstanding requests, 8 MiB of accounted input, and a three-second request deadline covering queueing and execution. Exceeding a budget stops the source with a recorded error; operators can inspect the expression or Gateway load and re-enable it. The deadline includes shared-compute queueing, so sustained load can stop a valid stream. This is an intentional availability tradeoff; the failure is visible and recovery is explicit.

Evidence

The integrated focused run passed 517 tests across 28 files, covering scheduler cadence, declarations, receipt recovery, command timeout/cancellation, watcher races, stream handling, Gateway drain, and worker lifecycle. The additional dead-receipt regression failed with the retired helper name and passed with the correction; it checks interrupted history/events before successor reservation and both final receipt outcomes. All seven matcher tests passed again after the final lint repairs. Targeted typed lint and diff checks passed, and independent reviews through P2 are clean, including the final integration and regression.

The complete production build and permanent five-flow public-CLI Gateway suite passed at final head 1b2e54aa6c2ac16ae93e9b7a877f58e3d9077c3d: quiet-trigger restart timing, full-line matching and child shutdown, command timeout output, rearming during a pending payload, and repeated declarative recovery.

A separate registered-Gateway-owner proof used real supervised children with a payload runner deliberately held after abort. Before release, two observed exits produced one reservation and one payload while the receipt remained active. After release, exactly two reservations and payloads completed, history retained the timeout and success, the job was disabled, and the receipt retired. All owned children and isolated state were cleaned up. This supplements the public-CLI suite; it does not claim an HTTP or model round trip. Earlier two-process recovery proof also recorded exactly one interrupted task/history event without payload replay.

A final-head registered-Gateway fixture also injected one benign matcher timeout. It verified durable error/history with no payload, completed source teardown, and successful matching after cron.update(enabled: true): exactly one payload and both history entries retained. Recovery used the real matcher worker; the process and outbound sink were fixtures. This joins the existing queue/deadline/overload tests without claiming public-CLI saturation testing.

Hosted live checks passed the five scheduler flows and all ten tool-allowlist cases across OpenClaw and Codex at ff6e92471fba9e808df121b97f10f5e868b164fd.

CI then found a strict-indexing type error in the first-reservation guard. The final correction explicitly narrows that entry and reuses the existing receipt map instead of allocating a duplicate set. It preserves admission behavior and passed 71 tests across six files, core and services-test type checks, typed lint, formatting and fresh independent review through P2.

Current candidate: 1b2e54aa6c2ac16ae93e9b7a877f58e3d9077c3d. All 14 scheduler commits are patch-identical after moving the stack onto merged main. Required CI completed successfully on this head. Final-head production build and all five public-CLI Gateway flows also passed.

@clawsweeper

clawsweeper Bot commented Sep 16, 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.

@steipete
steipete marked this pull request as ready for review September 16, 2026 04:12
@steipete
steipete requested a review from a team as a code owner September 16, 2026 04:12
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Sep 16, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. 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. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 16, 2026, 1:50 AM ET / 05:50 UTC (Revision 3).

ClawSweeper review

What this changes

Repairs automation timing, interrupted-run recovery, command timeout reporting, stream matching, and command-exit rearming, while including the related delivery/accounting fixes and small CI repairs.

Merge readiness

⛔ Blocked before merge - 2 items remain

The scheduler repairs remain useful and are not implemented on the inspected main revision. Both previous findings are addressed; this review found no new blocking correctness defect. The related PR covers only the shared delivery/accounting portion.

Priority: P2
Reviewed head: ff6e92471fba9e808df121b97f10f5e868b164fd

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful production-flow evidence and focused regressions support the repairs, and both earlier blockers are resolved.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The captured evidence records real public-CLI Gateway scheduling flows and registered-owner proof with supervised children, including a replacement exit held behind active timeout cleanup and exactly-once execution after receipt settlement. Related delivery/accounting evidence covers the included stacked changes; tests supplement those observations.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The captured evidence records real public-CLI Gateway scheduling flows and registered-owner proof with supervised children, including a replacement exit held behind active timeout cleanup and exactly-once execution after receipt settlement. Related delivery/accounting evidence covers the included stacked changes; tests supplement those observations.
Evidence reviewed 10 items Current main still needs the scheduler repairs: Main still uses bounded-window regex matching and separately disables an exit watcher before invoking the force-run path. These differ from the proposed full-line worker matching and atomic exit admission.
Previous regex finding addressed: Matching now executes in workers with two-worker, 32-request, 8 MiB, and three-second bounds. The existing pool terminates timed-out workers before releasing execution capacity. Matcher and pool regressions cover queue deadlines and actual worker termination. This structural isolation addresses the earlier Gateway-thread backtracking concern; the supplied public-CLI scenario does not specifically exercise the earlier pathological pattern.
Previous settlement finding addressed: Exit admission waits for durable receipt settlement, then reserves the payload and disables the job in the same transaction. Regressions cover timeout settlement, failed receipt finalization, cancellation, queued rearming, and interrupted-history publication before successor reservation.
Findings None None.
Security None None.

How this fits together

OpenClaw’s Gateway scheduler turns saved schedules, watched command exits, and stream output into automation runs. It coordinates execution ownership, completion history, and delivery to conversations or webhooks.

flowchart TD
  A[Saved jobs and schedules] --> C[Scheduler and event watchers]
  B[Command exits and stream lines] --> C
  C --> D[Bounded matching and eligibility]
  D --> E[Durable run admission]
  E --> F[Payload execution]
  F --> G[Settlement and recovery]
  G --> H[Run history and delivery]
Loading

Before merge

  • Resolve merge risk (P1) - The new matching deadline includes shared-compute queueing: sustained load can stop otherwise valid match-mode streams until operators re-enable them. This intentional tradeoff is documented in the PR, but saturation behavior is not demonstrated by the cited public-CLI run.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +724, Tests +2414, Docs +12. Total +3150 across 60 files.

View PR surface stats
Area Files Added Removed Net
Source 36 1253 529 +724
Tests 19 2656 242 +2414
Docs 5 14 2 +12
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 60 3923 773 +3150

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +724 lines; tests and test support net +2,414 lines Production growth is explained by bounded worker matching and coordinated receipt admission, with most growth in regression and Gateway-flow coverage.
Matching budgets 2 workers; 32 requests; 8 MiB; 3 seconds per request These bounds protect Gateway responsiveness and define when a stream stops pending operator recovery.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/cron/service/ops-lifecycle.ts, migration/backfill/repair: src/cron/service/run-recovery-events.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Retain the documented bounded failure behavior (recommended)
    Accept the explicitly documented stop-and-reenable tradeoff when matching exceeds its processing or queue budget.

Technical review

Best possible solution:

Keep matching off the Gateway thread and preserve atomic receipt ownership, with the author-documented bounded failure and explicit re-enable behavior.

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

Yes: current main’s truncated matching path and separate exit-disable/run sequence establish concrete failure mechanisms, with focused regressions and recorded Gateway scenarios. This read-only review did not execute them.

Is this the best way to solve the issue?

Yes: the patch repairs the existing scheduler, receipt, and watcher owners rather than adding competing scheduling state, while preserving current configuration and storage formats.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 29ed7e3b810a.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The captured evidence records real public-CLI Gateway scheduling flows and registered-owner proof with supervised children, including a replacement exit held behind active timeout cleanup and exactly-once execution after receipt settlement. Related delivery/accounting evidence covers the included stacked changes; tests supplement those observations.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The captured evidence records real public-CLI Gateway scheduling flows and registered-owner proof with supervised children, including a replacement exit held behind active timeout cleanup and exactly-once execution after receipt settlement. Related delivery/accounting evidence covers the included stacked changes; tests supplement those observations.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, 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: The PR repairs bounded automation reliability defects without evidence of a release-wide emergency.
  • merge-risk: 🚨 availability: Queue or processing exhaustion now stops the affected stream until explicit re-enablement, including when shared-compute load delays a valid match.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The captured evidence records real public-CLI Gateway scheduling flows and registered-owner proof with supervised children, including a replacement exit held behind active timeout cleanup and exactly-once execution after receipt settlement. Related delivery/accounting evidence covers the included stacked changes; tests supplement those observations.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured evidence records real public-CLI Gateway scheduling flows and registered-owner proof with supervised children, including a replacement exit held behind active timeout cleanup and exactly-once execution after receipt settlement. Related delivery/accounting evidence covers the included stacked changes; tests supplement those observations.

Evidence

What I checked:

  • Current main still needs the scheduler repairs: Main still uses bounded-window regex matching and separately disables an exit watcher before invoking the force-run path. These differ from the proposed full-line worker matching and atomic exit admission. (src/gateway/server-cron.ts:1168, 29ed7e3b810a)
  • Previous regex finding addressed: Matching now executes in workers with two-worker, 32-request, 8 MiB, and three-second bounds. The existing pool terminates timed-out workers before releasing execution capacity. Matcher and pool regressions cover queue deadlines and actual worker termination. This structural isolation addresses the earlier Gateway-thread backtracking concern; the supplied public-CLI scenario does not specifically exercise the earlier pathological pattern. (src/gateway/cron-stream-matcher.ts:30, ff6e92471fba)
  • Previous settlement finding addressed: Exit admission waits for durable receipt settlement, then reserves the payload and disables the job in the same transaction. Regressions cover timeout settlement, failed receipt finalization, cancellation, queued rearming, and interrupted-history publication before successor reservation. (src/cron/service/run-receipt-settlement.test.ts:114, ff6e92471fba)
  • Production-flow evidence: The captured PR body reports five public-CLI Gateway flows at ef7cc70704f7e0c790a5b28b0b1d61a9fa889ccb and a separate registered-Gateway-owner run using real supervised children. The latter observed one reservation while predecessor cleanup remained active, then exactly two completed payloads after release, with timeout/success history and receipt retirement. The permanent CLI suite exercises actual scheduler entrypoints. These are contributor-recorded results, not executions performed by this review. Captured context identity: f123bdf9c7fd93b4cd5f1dc13f5360f7e3d1a92abbbe3aecde2dc05b73d365ab. (src/gateway/gateway-cron-scheduler.live.test.ts:50, ff6e92471fba)
  • Related work is a partial dependency: fix(cron): suppress control tokens and retain retry usage #149697 is open in the captured context and supplies the included completion normalization, retry accounting, and CI repairs. Its recorded Gateway observations include silent-token suppression, preserved media bytes, and two-prompt accounting; it does not replace the remaining scheduler work. (c2b2b7a00168)
  • Accounting contract and dependency signal: The included accounting changes preserve per-prompt billing while retaining final-request context. The related PR expressly cites Codex compatibility checks, and the bundled Codex usage projection independently distinguishes accumulated response billing from latest-call context. (extensions/codex/src/app-server/event-projector-usage.ts:127, ff6e92471fba)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Shakker: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-16T04:19:48.862Z sha aee17fe29b0306589ec0e6ce7727fdfcea75a5b5 :: blocked before merge. :: [P1] Bound regex computation before matching complete stream lines
  • reviewed 2026-09-16T04:28:00.042Z sha aee17fe29b0306589ec0e6ce7727fdfcea75a5b5 :: blocked before merge. :: [P1] Bound regex computation before matching complete stream lines | [P2] Wait for durable run settlement before consuming a replacement exit

@steipete
steipete force-pushed the codex/cron-scheduler-repairs branch from aee17fe to ff6e924 Compare September 16, 2026 05:43
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Sep 16, 2026
@clawsweeper clawsweeper Bot added 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 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. labels Sep 16, 2026
Share the existing enable reset for disabled and exhausted jobs, persist recovered stream state through declaration no-op detection, and retain running jobs’ failure streaks during routine convergence.
Carry reclaimed run outcomes into the shared recovery publisher so timer recovery finalizes the exact task, preserves failed history, and emits a finished event before scheduling a successor. Keep startup and foreign-owner recovery on the same publisher.
Evaluate complete intake-bounded lines before batch truncation so long anchored patterns do not silently miss events. Keep safe pattern compilation and oversized-input handling unchanged.
Keep the pending minimum interval after quiet, fired, and busy trigger
checks, including evaluations that finish between cron expression slots.
Count completed quiet evaluations during restart catch-up so a previous
fired payload does not cause an already evaluated occurrence to replay.

Preserve stale-slot repair and genuinely missed catch-up. Add service
regressions covering maintenance, restart, and exact eligibility boundaries,
and document the existing interval and quiet-evaluation contracts.

Validation: 207 focused cron tests passed; regressions failed before repair;
isolated review found no actionable P0-P2 findings. Targeted formatting,
diff checks, and docs MDX checks passed.
Share the pending trigger interval predicate between scheduling repair and
restart admission without growing the scheduling owner. Inline its only
backoff wrapper at the existing repair decision and explicitly enable the
cadence regression fixtures required by the creation contract.

Validation: 167 focused cron tests, syntax lint including max-lines,
formatting, and diff checks passed. Independent review found no actionable
P0-P2 findings.
Keep observed exits pending through durable receipt cleanup, then reserve their run and disable the job in the existing admission transaction. Preserve cancellation, FIFO capacity waits, queued rearming, and delete-after-run ownership. Gate adopted exits until the replacement scheduler starts, including retry after startup failure, and cancel outer Gateway admission waits with the watcher.

Validation: 101 focused Gateway, watcher, receipt, and admission checks; meaningful negative controls for queue ownership, handoff ordering, and closed-fence cancellation; real ProcessSupervisor and durable-receipt timeout proof. Fresh full-owner Codex review is clean through P2. No schema, configuration, or public API changes.
@steipete
steipete force-pushed the codex/cron-scheduler-repairs branch from 931cfc0 to 1b2e54a Compare September 16, 2026 05:59
@openclaw-barnacle openclaw-barnacle Bot removed the app: web-ui App: web-ui label Sep 16, 2026
@steipete
steipete merged commit c82292b into main Sep 16, 2026
213 checks passed
@steipete
steipete deleted the codex/cron-scheduler-repairs branch September 16, 2026 06:22
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@vincentkoc

vincentkoc commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

@steipete The canonical test-only follow-up is #149836; it was already being prepared by another lane when I checked this merged PR after the exact CI failure blocked #148962. run-receipt-settlement.test.ts expected two payload calls and observed three in the competing-manual-run case.

The directly authored on-exit fixture inherits a due nextRunAtMs from makeTimedJob. Manual force completion preserves that timestamp, allowing a timer contender while observed-exit admission waits for the receipt. This is source-supported attribution; the failed log does not identify the third call's dispatcher. Its shared on-exit fixture helper initializes empty state, preserving the exact two-call, receipt, payload, and real-timer assertions, with full settlement-file and scheduling-sibling qualification still required. No production scheduler change or timing relaxation.

I am reusing the existing repair at 8ec6ce0a83cd9f192ce344c9330e056b8b3b03b1 and leaving its branch with its current owner. The separate question of explicit public on-exit runtime-state scheduling remains a contract-clarification follow-up.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
* fix(cron): reset failures when declarations re-enable jobs

Share the existing enable reset for disabled and exhausted jobs, persist recovered stream state through declaration no-op detection, and retain running jobs’ failure streaks during routine convergence.

* fix(cron): record interrupted runs during timer recovery

Carry reclaimed run outcomes into the shared recovery publisher so timer recovery finalizes the exact task, preserves failed history, and emits a finished event before scheduling a successor. Keep startup and foreign-owner recovery on the same publisher.

* fix(cron): match complete stream source lines

Evaluate complete intake-bounded lines before batch truncation so long anchored patterns do not silently miss events. Keep safe pattern compilation and oversized-input handling unchanged.

* fix(cron): preserve trigger cadence through maintenance and restart

Keep the pending minimum interval after quiet, fired, and busy trigger
checks, including evaluations that finish between cron expression slots.
Count completed quiet evaluations during restart catch-up so a previous
fired payload does not cause an already evaluated occurrence to replay.

Preserve stale-slot repair and genuinely missed catch-up. Add service
regressions covering maintenance, restart, and exact eligibility boundaries,
and document the existing interval and quiet-evaluation contracts.

Validation: 207 focused cron tests passed; regressions failed before repair;
isolated review found no actionable P0-P2 findings. Targeted formatting,
diff checks, and docs MDX checks passed.

* fix(cron): rearm on-exit jobs during payload completion

* fix(cron): retain command timeout output after cleanup

* fix(cron): retain rearmed exits until prior payloads settle

* test(cron): cover scheduler recovery through the public CLI

* refactor(cron): isolate pending trigger interval checks

Share the pending trigger interval predicate between scheduling repair and
restart admission without growing the scheduling owner. Inline its only
backoff wrapper at the existing repair decision and explicitly enable the
cadence regression fixtures required by the creation contract.

Validation: 167 focused cron tests, syntax lint including max-lines,
formatting, and diff checks passed. Independent review found no actionable
P0-P2 findings.

* refactor(cron): isolate declaration comparison helpers

* fix(cron): bound full-line stream matching in workers

* fix(cron): atomically admit observed exits after settlement

Keep observed exits pending through durable receipt cleanup, then reserve their run and disable the job in the existing admission transaction. Preserve cancellation, FIFO capacity waits, queued rearming, and delete-after-run ownership. Gate adopted exits until the replacement scheduler starts, including retry after startup failure, and cancel outer Gateway admission waits with the watcher.

Validation: 101 focused Gateway, watcher, receipt, and admission checks; meaningful negative controls for queue ownership, handoff ordering, and closed-fence cancellation; real ProcessSupervisor and durable-receipt timeout proof. Fresh full-owner Codex review is clean through P2. No schema, configuration, or public API changes.

* fix(cron): publish recovered receipts before on-exit admission

* fix(cron): narrow committed on-exit reservations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

2 participants