Cron configuration block: [scheduling] in config.example.toml with EngineConfig translation #779

Closed
opened 2026-10-27 13:37:43 +00:00 by sam · 0 comments
Owner

Operator input for the cron/scheduling slice: a [scheduling] block in config.example.toml (interval, max_parallel, job_timeout, events_sink) plus a translation layer in internal/infrastructure/configuration that produces the scheduling.EngineConfig.

Without this, the engine has no path from operator input to runtime. The translator is the bridge the wiring slice then hands to internal/app/archied/.

Acceptance criteria

  • config.example.toml shows a [scheduling] block with all four fields and their default behaviour on zero values (mirrors scheduling.Default* constants).
  • Configuration translator yields a fully-resolved scheduling.EngineConfig with documented defaults applied; negative values are validated and surface as a startup error, not a panic.
  • Sink plumbing produces a concrete scheduling.Sink from the events-bus emitter; absent sink leaves Events nil, which the engine already documents as a valid (unobservable) configuration.

Close reason

SchedulingInput + config.example.toml [scheduling] block + schedulingConfig translation with defaults/validation; TestSchedulingConfig* green on origin/main


Imported from beads archie-core-1786637496320-249-be6d9a20.5 · GitHub #676 · type task · priority P2 · created 2026-08-27 · closed 2026-09-18

Operator input for the cron/scheduling slice: a `[scheduling]` block in `config.example.toml` (`interval`, `max_parallel`, `job_timeout`, `events_sink`) plus a translation layer in `internal/infrastructure/configuration` that produces the `scheduling.EngineConfig`. Without this, the engine has no path from operator input to runtime. The translator is the bridge the wiring slice then hands to `internal/app/archied/`. ### Acceptance criteria - `config.example.toml` shows a `[scheduling]` block with all four fields and their default behaviour on zero values (mirrors `scheduling.Default*` constants). - Configuration translator yields a fully-resolved `scheduling.EngineConfig` with documented defaults applied; negative values are validated and surface as a startup error, not a panic. - Sink plumbing produces a concrete `scheduling.Sink` from the events-bus emitter; absent sink leaves `Events` nil, which the engine already documents as a valid (unobservable) configuration. ### Close reason SchedulingInput + config.example.toml [scheduling] block + schedulingConfig translation with defaults/validation; TestSchedulingConfig* green on origin/main --- _Imported from beads `archie-core-1786637496320-249-be6d9a20.5` · GitHub #676 · type task · priority P2 · created 2026-08-27 · closed 2026-09-18_
sam added the mediumtaskfeature labels 2026-10-27 13:37:43 +00:00
sam self-assigned this 2026-10-27 13:37:43 +00:00
sam closed this issue 2026-10-27 13:37:43 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#779