feat(providers): generate the local proxy-core config from a subscription's nodes
Problem / Use Case
A local proxy core only applies a new member list on restart, and each restart drops in-flight streams. On one installation, subscription-composition refreshes dominate core restarts, while only a small share follow an actual failure.
Meanwhile the operator hand-writes the core config alone: every evolution is a restart. OmniRoute already owns the local entries (one per line, each synced to its own registry row) since the light path of #13460, and per-entry steering without restart has since been merged (#14752). What is still missing is the generation step: turning subscription nodes into core config — local entries fronting selector groups, node definitions passed through as provided. Without it, the heavy path of #13460 stays half-built: steering works, but on an operator-written file.
Proposed Solution
OmniRoute generates what it owns — local entries and node distribution, each entry fronting a selector group — passes node definitions through, and picks the active member over the control API when one exists (per #14752). With no control channel, generation stays useful and reload is operator-declared. Restart remains only for a genuinely new member list.
- Generation writes to an operator-adopted file only, validated through the core's native check before replacing.
- An absent control channel is not an error (e.g. containers).
- No node-protocol remodeling; the choice of core binary stays open (per #13460); installing and supervising the binary is a separate follow-up.
Alternatives Considered
- Keep hand-written config plus steering: works after #14752 but leaves every new member list on the manual path, with its restart.
- Full supervision in the same step: matches the heavy-path outcome but bundles two decisions of very different sizes.
Acceptance Criteria
- Subscription nodes produce entries matching the synced local entries, each fronting a
selectorgroup. - Re-selecting among existing members needs no restart; a new member list goes through the operator-declared reload path. Restarting the core stays with the supervision follow-up.
- Only an operator-adopted file is ever overwritten, after the native check passes.
Open point (not a precondition of this issue)
- Measure what regenerated configs actually change (reorder vs new members) and set the grouping policy accordingly; separate child item.
Area
Proxy / Routing
Related Provider(s)
None specific.
Additional Context
Heavy path of #13460 (light path via #13923, steering via #14752).
Expected Test Plan
- Unit coverage for generated entries and native-check validation; existing subscription and proxy suites stay green.
Source: diegosouzapw/OmniRoute