feat: merge source registry at startup

This commit is contained in:
lda
2026-06-04 00:29:44 +07:00 Verified
parent 4e8726f36d
commit 2433d58988
10 changed files with 273 additions and 24 deletions
@@ -53,7 +53,7 @@ The next executable slice is startup merge:
- Keep config merge out of scope.
3. **Slice 3: Startup Merge**
- **Status: planned.**
- **Status: complete.**
- Load registry at broker/server startup.
- Merge config and registry with config precedence.
- Emit events/diagnostics for shadowed registry entries.
@@ -262,13 +262,10 @@ profile, transport details, enabled state, and source-registry origin.
### Slice 3: Startup Merge
Implementation plan:
[2026-06-03 source registry startup merge](../plans/2026-06-03-source-registry-startup-merge.md).
- Load registry during server/broker construction.
- Merge config + registry deterministically.
- Emit diagnostics/events for ignored shadowed entries.
- Preserve existing config-only behavior when registry file is absent.
Status: complete. Broker/service construction now loads `source_registry.json`,
merges config-defined connections with dynamic registry entries, preserves config
precedence, and emits `source_registry_ignored_config_shadow` for shadowed
registry entries.
### Slice 4: Read Registry Through Admin