feat: settings stratification + parametric-aspect injection (Spike 5 demo)#1
Merged
Conversation
Old pin (908ea70) predated mkAspectSchema; demo failed to eval standalone. Bump to current HEAD so the settings cascade evaluates without --override-input.
gen-algebra#1 merged; demo cascade proofs now eval without --override-input gen-algebra (only the gen-aspects override remains until this PR merges).
Owner
Author
|
gen-algebra#1 merged. Bumped the demo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the
examples/demofaithfully prove Spike 5 — adefault < env < host < policysettings cascade with full provenance, settings composing onto parametric aspects, and resolved settings injected back into parametric class content.composition.nixfolds the policy patch as the final layer viarecord.foldLayersTraced; per-host gen-derive dispatch (act.configure), layer labels from a parallelraw-settings-idsneron attribute, full provenance surfaced.firewallbecomes parametric (static settings schema + settings-consumingnixos),hardeningdemoted to plain.injection.nixinjectAspectSettingsinjects resolvedcomposedSettings.<host>.<leaf>into each aspect's class content viagen-bind(demo-local prototype; graduation togen-aspects.libdeferred). nginx refactored to a second parametric aspect, proving the construct generalizes.outputs.nix): firewall + nginx full loops, policy-overrides-host (discriminating), negative control, append accumulation, recursive per-subkey provenance.Design spec:
~/Documents/papers/den-architecture/specs/2026-05-31-settings-stratification-injection-design.md.Dependency / required follow-up
record.foldLayersTraced). The demo'sflake.lockcurrently pins agen-algebrawithout that function, so the cascade proofs require--override-input gen-algebra <local>until feat: settings stratification + parametric-aspect injection (Spike 5 demo) #1 merges.examples/demo/flake.lockgen-algebrato the merged rev — then the demo evals standalone.Test Plan
nix eval .#fwInjectionMatchesCascade→true(firewall: resolved+appended cascade ports == injectedallowedTCPPorts)nix eval .#nginxInjectionResolved→true(nginx: resolved settings renderworker_processes 32).#loggingLevelProdWeb1→"error"(policy overrides env"warn"— proves policy folds last).#workersProdWeb1Winner→"host"(negative control — policy doesn't blanket-override).#dbBackupSubkeyProvenance→{schedule=policy; retention=policy; method=host; destination=host}(recursive per-subkey)--override-inputafter the gen-algebra lock bumpnix flake checkfailure inqueries.nix(observabilityattr) predates this branch and is out of scope.