Watch model roles, repositories, scheduling policy and providers; re-layer them into the running config #507

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

These fields already reload from the file (reload.go reloadableFields: Models, ModelLimits, Repos, Dispatch, PollInterval, BotUser...) because every task copies them at dispatch (Config.ForTask). The control-plane copies are only layered at boot (runtime_config.go). Extend the workflow-execution-settings watch pattern (control_plane_watch.go keepWatch, its backoff rules) to model-role-assignments, repository-policies, scheduling-policy and provider-settings: on a new version, run the same layering reload uses and republish through config.Holder, keeping last-known-good on a validation failure and reporting through apply status. Providers also feed the gateway chat runtime (chat_models.go), which must rebuild its provider set on change. Flip the four kinds to ApplyMode live.

Close reason

done


Imported from beads archie-core-zfb0.1 · GitHub #999 · type task · priority P1 · created 2026-09-25 · closed 2026-09-28

These fields already reload from the file (reload.go reloadableFields: Models, ModelLimits, Repos, Dispatch, PollInterval, BotUser...) because every task copies them at dispatch (Config.ForTask). The control-plane copies are only layered at boot (runtime_config.go). Extend the workflow-execution-settings watch pattern (control_plane_watch.go keepWatch, its backoff rules) to model-role-assignments, repository-policies, scheduling-policy and provider-settings: on a new version, run the same layering reload uses and republish through config.Holder, keeping last-known-good on a validation failure and reporting through apply status. Providers also feed the gateway chat runtime (chat_models.go), which must rebuild its provider set on change. Flip the four kinds to ApplyMode live. ### Close reason done --- _Imported from beads `archie-core-zfb0.1` · GitHub #999 · type task · priority P1 · created 2026-09-25 · closed 2026-09-28_
sam added the hightask labels 2026-10-27 13:36:35 +00:00
sam self-assigned this 2026-10-27 13:36:35 +00:00
sam closed this issue 2026-10-27 13:36:36 +00:00
sam added a new dependency 2026-10-27 13:42:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#507