cfgcanary
Progressive delivery for configuration: validate, canary, promote and roll back config like code.
$ docker compose run --rm cli demobad-oversized.json rejected [limits/too_large]bad-doubled.json rejected [relative/size_grew] x2.42bad-blank-service.json rejected [schema/minLength]v3-harmful-timeout.json → v3 (validation passed)BAKING ring=0 accepted=8/8ROLLED_BACK ring=0 gate=FAIL(look 1)blast radius: 8 of 50 instancesdetect 20.6s · roll back 200msThe problem
Code goes through canaries; runtime configuration often doesn't. A generated feature file or policy document is published and the whole fleet reads it within seconds, so a bad file breaks everything at once.
Every config version is validated (including by the consumer's own parser, sandboxed), signed and delivered ring by ring. A Prometheus health gate compares each ring with instances that didn't get the change, then promotes, halts or rolls back.
What it does
- Validation before delivery: byte and item limits, relative-change guards, strict JSON, JSON Schema, CUE, and the consumer's parser compiled to WASM and run in a wazero sandbox.
- Ring-by-ring rollout with a holdout control cohort.
- Three gate verdicts: PASS promotes, FAIL rolls back, INCONCLUSIVE keeps baking and halts. Unknown evidence never promotes.
- Agents apply updates atomically; the Go SDK keeps applications on their last-known-good config when anything goes wrong.
- Compose demo with 50 simulated instances running the real agent and SDK.
How it works
- 1
A submission passes schema, CUE, limits, relative-change and WASM-parser checks; anything rejected reaches no instance.
- 2
Ring 0 is the canary. The gate compares it to a control cohort with a non-inferiority test and decides at declared looks.
- 3
On FAIL, a new generation pointing at the previous version is rolled out and confirmed per instance.
Decisions worth noting
Time is not evidence
An INCONCLUSIVE gate halts after its last look. A release is never promoted just because nothing went wrong for long enough.