Skip to content

refactor(scheduled-task): make Runtime Host the sole global authority - #2655

Merged
jackwener merged 2 commits into
mainfrom
codex/scheduled-task-global
Aug 11, 2026
Merged

refactor(scheduled-task): make Runtime Host the sole global authority#2655
jackwener merged 2 commits into
mainfrom
codex/scheduled-task-global

Conversation

@jackwener

@jackwener jackwener commented Aug 10, 2026

Copy link
Copy Markdown
Member

Summary

  • move the global ScheduledTask catalog, clock, fire admission, and recovery into one Runtime Host coordinator
  • expose one bounded Host query/mutation protocol and route the Agent tool directly to the same authority
  • keep Desktop as a thin IPC proxy plus native local/bot delivery provider
  • delete the legacy Desktop scheduler and reverse ScheduledTask authority path
  • remove the raw SQLite constructor and duplicate root-barrel export so every writer requires the interactive root lease

Correctness boundaries

  • persist stable Session/Turn/Run/message identity before AgentRun admission
  • persist native delivery state before crossing the non-replayable effect boundary
  • wait durably for a native provider while still allowing safe pause/update/delete
  • keep expiry, pagination revision, residency, and change signals under the same Host clock

Validation

  • @maka/core build
  • @maka/storage build
  • @maka/runtime build
  • @maka/runtime-host build
  • @maka/desktop typecheck

Per request, the local test suite was not run; PR CI is the test authority.

@jackwener
jackwener force-pushed the codex/scheduled-task-global branch 7 times, most recently from 130e35a to 74de024 Compare August 10, 2026 19:34
@jackwener
jackwener force-pushed the codex/scheduled-task-global branch from 74de024 to 18f8f0d Compare August 11, 2026 06:29
@jackwener
jackwener force-pushed the codex/scheduled-task-global branch from 18f8f0d to 6449498 Compare August 11, 2026 06:32
@jackwener
jackwener merged commit c9591d7 into main Aug 11, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant