milestone: enforce required services and add mongo logger PoC path

This commit is contained in:
2026-04-06 18:16:48 -07:00
parent dd04fb5168
commit 836a968806
17 changed files with 1081 additions and 112 deletions

View File

@@ -12,6 +12,21 @@ templates/
└── mst_logger_rec.toml ← logger collection template
```
## Runtime Template Registry (Implemented)
At IPL, BEDS now loads REC templates from `templates/` into a typed runtime registry and validates them before service connectivity checks.
Current runtime validation enforces:
- Any field listed in `protected_fields` must exist in `[fields]`.
- Any field listed in `index_fields` must exist in `[fields]`.
- Any key in `[single_field_indexes]`, `[unique_indexes]`, and `[ttl_indexes]` must exist in `[fields]`.
- Every field used in `[compound_indexes]` and `partial_indexes` qualifiers must exist in `[fields]`.
- Every field used in `regex_pattern_indexing` and `[cache_map]` must exist in `[fields]`.
- Every `compound_indexes` index name must be present in `index_name_list`.
In `production`, template registry validation failures are fatal during IPL. In non-production environments, failures are warning-only to preserve local POC workflows.
## Two Template Types
| Type | Schema | Database | Use Case |