Skip to content

feat(cron): add durable execution audit history - #61791

Merged
teknium1 merged 2 commits into
mainfrom
feat/cron-execution-ledger
Jul 17, 2026
Merged

feat(cron): add durable execution audit history#61791
teknium1 merged 2 commits into
mainfrom
feat/cron-execution-ledger

Conversation

@teknium1

@teknium1 teknium1 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Cron execution attempts now have bounded, indexed, restart-safe audit history with truthful unknown outcomes and an operator inspection surface.

Changes

  • Persist claimed → running → completed/failed/unknown attempts in profile-local cron/executions.db before executor/provider dispatch.
  • Make terminal transitions immutable and classify abandoned attempts only after PID + process-start fingerprint proves the owner is gone.
  • Bound terminal retention while never pruning active attempts; use indexed pagination and batch latest-attempt lookup.
  • Fail closed on corrupt ledger state instead of silently replacing audit history.
  • Finish rejected executor submissions and release the in-process running guard on every exception path.
  • Centralize recovery in the scheduler-provider ABC so built-in, Chronos, and standalone providers share the same contract.
  • Add hermes cron runs [job-id] --limit N / history, quick-backup coverage, and English/Chinese docs.

Validation

Check Result
Targeted cron/CLI/backup suites 566 passed
Real two-process restart E2E Running attempt restored as unknown; no retry manufactured; CLI showed original ID
Windows footgun audit 758 files clean
git diff --check Passed

This PR is intentionally held unmerged for soak and review after CI.

Infographic

Cron execution ledger

@alt-glitch alt-glitch added type/feature New feature or request comp/cron Cron scheduler and job management P3 Low — cosmetic, nice to have labels Jul 10, 2026
@teknium1
teknium1 force-pushed the feat/cron-execution-ledger branch from 4a20390 to 49b375f Compare July 13, 2026 06:51
@teknium1 teknium1 changed the title feat(cron): add truthful execution ledger feat(cron): add durable execution audit history Jul 13, 2026
@teknium1
teknium1 merged commit abc22cd into main Jul 17, 2026
31 checks passed
@teknium1
teknium1 deleted the feat/cron-execution-ledger branch July 17, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cron Cron scheduler and job management P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants