Expand description
Performance / operational config matrix.
Two tiers:
- Tier A (
Critical) — self-healing on boot. If the key is missing fromred_config, the loader writes the default in. Operators always see these viaSHOW CONFIGso they know what guarantees and tuning they have. - Tier B (
Optional) — in-memory default. Never self-populated. Appears inSHOW CONFIGonly after an explicitSET CONFIG.
The matrix is the single source of truth for perf / durability /
concurrency / storage keys introduced by the perf-parity push.
It intentionally does not cover the pre-existing red.*
trees (ai, server, storage, search, etc.) — those have their own
lifecycle in impl_core. Keys here live under the new
cache.*, durability.*, concurrency.*, storage.* namespaces.
Structs§
- Config
Default - Default value encoded as JSON so the loader can delegate to
set_config_treewhich already handles everyValuevariant.
Enums§
Constants§
- MATRIX
- The full matrix. Keep sorted by namespace for readability.
Functions§
- default_
for - Fetch the JSON default for a matrix key. Returns
Nonewhen the key is not in the matrix (callers should treat that as a programming error — unknown key, unknown tier, unknown semantics). - heal_
critical_ keys - Boot-time self-healing pass: for every
Tier::Criticalkey, ifred_configdoes not already contain the key, write the default in. Idempotent — re-running produces no writes. - tier_
for - Tier lookup — useful for tests and for introspection commands that want to report whether a key is expected to self-heal.