2.8 KiB
2.8 KiB
M-CONFIGURATION-01..05 — Bounded Schemas, Provenance Redaction & Transactional Async Reload
- Wave: Wave 8 (
feat/roadmap-p2-wave8, branched frommainatd83d0f4) - Roadmap reference:
docs/roadmap/modules/Configuration.md,docs/roadmap/DEPENDENCIES.md
Scope & Ownership
src/Configuration/module.cmake:INTERNAL_DEPS Core Functional System Data Time LogState,EXCLUDE_HEADERS Void/Configuration/ReloadController.hpp.src/ConfigurationAsync/module.cmake:INTERNAL_DEPS Configuration SystemAsync Async Time Functional LogState,EXTRA_HEADERS Void/Configuration/ReloadController.hpp.include/Void/Configuration/Bind.hpp: non-breaking field annotationsSecret{},RestartRequired{},Deprecated{},IntRange{},RealRange{}while keepingbind<T>intact.include/Void/Configuration/Schema.hpp+src/Configuration/Schema.cpp:kConfigurationErrorDomain = 24,ConfigErrorCode,ConfigLimits(1 MiB/source, 8 sources, 4 MiB merged, 10,000 keys, 4 KiB key, 64 KiB scalar, depth 32, 1,024 vector items, 100 diagnostics, 64 participants, 4 retained generations, 128 notifications, 5s prepare timeout).SourceKind,SourceId,SourceLocation,ValueState(Missing,Empty,Null,Present,Removed),KeyProvenance,Provenance,SourceSpec,SourceSet,MergedConfig.load_sources(...): deterministic precedence (defaults < files in order < allowlisted/prefixed env < explicit CLI), rejects literal-dot vs nested JSON collisions, enforces byte/key/depth/vector caps, redacts secrets in diagnostics.Schema<T>,validate<T>(...)(rejects unknown keys by default, rejects vector gaps, no malformed-to-default fallback, cross-field constraints, up to 100 diagnostics with redacted secrets),detect_restart_required_changes(...).
include/Void/Configuration/ReloadController.hpp+src/ConfigurationAsync/ReloadController.cpp:- Immutable
Snapshot<T>,PreparedChange,ReloadParticipant<T>,ReloadReport, serializedReloadController<T>with falliblecreate(...), participant prepare/reverse-rollback/join on unregister, 4-generation retention cap, single atomic pointer swap, post-commit stop observation (committed = true, stop_observed_after_commit = true), bounded notification queue + exception isolation, external coordinator prepare port,WatcherServicecoalescing adapter.
- Immutable
- Tests & consumers:
tests/standalone/Configuration/ConfigurationHardening.cpp,tests/standalone/ConfigurationAsync/ConfigurationAsync.cpp,tests/package/ConfigurationOnly/*,tests/package/ConfigurationAsyncOnly/*,tests/package/InstalledComponents.cmake.
Verification Criteria
- Standalone
ConfigurationAsync;TestingRelWithDebInfo-Werror:Configuration*tests +ctest2/2 (ConfigurationOnly,ConfigurationAsyncOnly). - Full Wave 8 RelWithDebInfo
-Werror, ASan+UBSan-Werror, and Wave 8 TSan.