Scheduler v0
Scope
Defines v0 scheduling types, trigger behavior, misfire policy, and execution gating against lifecycle/lease constraints.Terminology
- Schedule types:
one-shot,interval,cron. - Misfire: missed schedule window.
- Defer-once: one-time delayed execution after a miss.
Normative Spec
Schedule Types
Scheduler v0 MUST support:one-shotintervalcron
Target Binding
Schedule target MUST bind stable identity:workspace_idagent_id
session_id MUST NOT be used as schedule identity.
Misfire Policy
- Default misfire policy:
skip. defer_onceMAY be used only forintervalandcron.one-shotusesskiponly.
Concurrency
Defaultmax_concurrent_runs SHOULD be 1 for a single schedule.
Trigger Gate
Scheduler triggers intent only; execution still requires Gateway command + valid lease. Recommended allowed states for execution:running, ready.
Event Requirements
Scheduler SHOULD emit:SCHEDULE_CREATEDSCHEDULE_UPDATEDSCHEDULE_TRIGGEREDMISFIRED_SKIPPEDMISFIRED_DEFERREDSCHEDULE_PAUSEDSCHEDULE_RESUMEDSCHEDULE_DISABLED
Examples
Error & Recovery
- Invalid type/spec mismatch: reject schedule.
- Invalid misfire policy for
one-shot: reject. - Missing target identity (
workspace_id + agent_id): reject.
Security & Audit
- Schedule updates and triggers MUST be auditable via metadata events.
- Production actions remain subject to platform approval policies.
Status
Current status:draft
Source discussions:
docs/maintainers/conversation-records/agent-platform/2026-03-24-scheduler-v0-draft.mddocs/maintainers/conversation-records/agent-platform/2026-03-24-p0-freeze-result-accepted.md
Changelog
- 2026-03-24: Initial skeleton created.
- 2026-03-24: Added schedule types, misfire rules, and target-binding constraints.