Repository navigation
Description
Status (2026-11-05): #691 has merged and removed the Knative/KEDA path, including the
cron-dispatchCronJob. Archetype C has no P6 equivalent; this issue tracks the replacement. It no longer gates the removal. Its sibling for async fan-out (Archetype A) is #686.
Problem
The scheduled on-ramp (Archetype C: a Kubernetes CronJob running cron-dispatch) ran only on the Knative/KEDA path. #691 removed it (ADR-0041) along with:
packages/knative-server/src/cron-dispatch.tsdeploy/knative/leaf-cron.yamlleaf-cron-smoke.sh- the async-enqueue route it dispatched through.
POST /runs {async:true}now answers400 async_removed.
ADR-0041's "Still owed" note and docs/concepts/dispatch-archetypes.md record C as "Removed … no P6 equivalent yet". The P6 spec (§2.2, §8) puts scheduled dispatch on the VM out of scope for round one. #490 found no respondent depending on cron.
The removed code is the reference for parity. Pin it to the last pre-removal commit, 38aa2146:
Scope
- A design note (spec in
docs/specs/, plus an ADR if it changes a decision): how scheduled dispatch runs on P6 acrossdeploy/vm,deploy/composeanddeploy/k8s.- The VM spec names a supervisor timer over
cron-dispatchas the intended replacement. Compare it with a systemd timer, a Kubernetes CronJob ondeploy/k8s, and an external scheduler calling the API. - Who the dispatch runs as. A schedule has no interactive caller, so under MI1 the grants must be minted from a record the control plane owns (see Coding-agent subagents B1: design — async leaf turns on sessions for P6 (spec + ADR) #386 and Coding-agent subagents B3: grants minted at dequeue from the turn record (no bearer in the queue) #388), not from an ambient credential.
- Overlap policy (skip, queue or replace a run that is still going), missed-run catch-up after downtime, and idempotency of a fired run.
- The VM spec names a supervisor timer over
- Dependency on async leaf turns. A schedule fires work that nobody waits for, so this most likely builds on the async consumer that the Epic: P6 async fan-out — replace the KEDA leaf-worker (Archetype A) removed by #691 #686 epic delivers (Coding-agent subagents B1: design — async leaf turns on sessions for P6 (spec + ADR) #386, Coding-agent subagents B2: control plane — async turn submission and turn records #387, Coding-agent subagents B3: grants minted at dequeue from the turn record (no bearer in the queue) #388, Coding-agent subagents B4: async leaf worker on P6 (deploy/vm, compose) #389), not on sync
/runs. - Per-subject admission and quota (Supervisor: per-subject admission quota #360) apply to scheduled runs too.
- Docs: once the path exists, update the Archetype C row and section of
docs/concepts/dispatch-archetypes.mdand ADR-0041's "Still owed" note, and add a configuration-reference entry.
Acceptance
- A decision recorded on where the scheduler lives and how it authenticates.
- Implementation issues filed from the design, or a stated decision not to support schedules on P6.
dispatch-archetypes.mdand ADR-0041 no longer say "no P6 equivalent" for Archetype C, or they record the decision not to support it.
Related
#691 (removal), #686 (Archetype A epic), #490 (migration poll, closed by #691), #386, #389, #360, #378
Activity
docs(readme): link the archetype C tracking issue (rossoctl#536)
[-]P6 scheduled dispatch: replace the cron-dispatch CronJob (Archetype C) before Knative/KEDA removal[/-][+]P6 scheduled dispatch: replace the cron-dispatch CronJob (Archetype C) removed by #691[/+]docs: design the P6 async fan-out replacement (#686, #386)
docs: point Archetype A at its design instead of "no P6 equivalent"
docs: register P6.4 (async fan-out) in the spec milestone registry
docs: address rossoctl#884 review (denylist input, README wording, gl…
docs: address rossoctl#884 review (denylist input, README wording, gl…