Repository navigation
Description
chant lifecycle health reports runtime health and always exits 0 (guide/checking-health.mdx). health-gate, wait-endpoint and ApplyOp's verify check a single step. Nothing in chant holds promotion to the next environment until the one before it has stayed healthy for a while.
terragucci already has one in the product: rollouts.soak (packages/terragucci/src/rollout/soak.ts) holds a module version's next consumer wave on drift, apply and policy conditions, with overrides and /terragucci skip-soak. Per this epic's first rule, chant's soak takes those as check kinds, and terragucci moves onto it (INTENTIUS/terragucci#1497).
Add a soak to a stage: checks that must pass continuously for a duration after the stage applied, before the next stage's gate opens. It fits the gate model, so no process waits: a promotion during the soak records the pending fact and exits 3, a re-run reads the elapsed time and the checks, and a failing check holds the next stage and notifies.
Needs #5324. Health for terraform and pulumi members needs #5338.
Acceptance criteria
- A stage declares soak checks and a duration in the pipeline (pipeline: one TypeScript declaration of stages and waves, folded to a spec before anything runs #5324), and so can a wave, so a module rollout's consumer waves soak one after another.
- Checks and durations can be set per member glob, covering
rollouts.soak's per-module overrides. - Checks: HTTP status and body match, a Prometheus query against a threshold, a CloudWatch alarm state, a command's exit code,
lifecycle healthfor the stage's environment (unknown does not count as passing), and terragucci's drift, apply and policy conditions. - Promotion to the next stage exits 3 during the soak, with the time left in the output and on the ledger.
- Each check says what a failure does:
restart(the default; the soak starts over once the check passes again) orhold(the next stage stays held until a person ends the soak or the check passes, with the elapsed time kept), which is howrollouts.soaktreats a finding today. Either way the next stage is held and achant.notify/v1event of a new kind added toNOTIFY_EVENTSis sent. - The soak's clock starts at the stage's or wave's last apply, recorded on the ledger. Module rollouts soak on chant's soak terragucci#1497's fixtures of today's
rollouts.soakbehaviour pass on chant's soak. - A person can end a soak early through the stage's gate (a product maps its comment, such as
/terragucci skip-soak, onto it), and the ledger records who. - The plan note for a change shows the soak of every later stage it will pass through.
-
reference/exit-codessays exit 3 also covers a clock wait, and the product exit-code tables follow. - The folded spec (pipeline: one TypeScript declaration of stages and waves, folded to a spec before anything runs #5324) carries a scheduled re-run of pending promotions, and pipeline: one TypeScript declaration of stages and waves, folded to a spec before anything runs #5324's GitHub, GitLab and Forgejo generators render it as a job. This issue adds the spec field and its golden files, not a second generator path.
- Tests with a fake clock and fake checks; a docs page.
- The capability is exported with a
*_FLOORconstant naming the chant release that carries it, so products can check or pin to it.
Activity
lex00 commentedon Nov 20, 2026
From #5338 (#5364):
lifecycle healthon a terraform root or pulumi stack reports each resource type without a provider health reader asunknown, as #5338 states. With this issue's rule that unknown does not count as passing, a health check over a whole root holds on any uncovered resource. The check here may want a way to name the resources or types it covers, so a soak can pass on what it can observe while the unscoped default keeps holding.lex00 commentedon Nov 20, 2026
#5390 changes chant's
reference/exit-codesandexit-codes.tsso exit 3 also covers a clock wait. The product exit-code tables live in each product's repository, so they change in the adoption lines that map the soak:The terragucci fixtures from INTENTIUS/terragucci#1505 (83 cases) are copied into
packages/core/src/pipeline/__fixtures__/soak/and pass on chant's soak insoak-fixtures.test.ts.feat(pipeline): soak checks that hold the next stage (#5326)
feat(pipeline): soak checks that hold the next stage (#5326)