Skip to content

Changes in 0.4.53

llms.txtlists every page for an agent

Release 0.4.53 is on npm as @intentius/terragucci@0.4.53, and its GitHub release lists every change.

To upgrade Run
Each repo npx @intentius/terragucci@0.4.53 init, then merge the pipeline it writes, with chant.config.ts in a repo of plain roots
Each approver terragucci approve where you ran chant approve; installing terragucci is enough (approve)

Under it is chant 0.124.81, pinned by the package and by each CI image.

A control repo keeps its projects and defaults only as chant’s entries on its chant/lifecycle. The record files under terragucci/records are no longer read, and terragucci control records init is gone.

  • 0.4.54 is the last release with terragucci control records migrate. A control repo that still has record files runs npx @intentius/terragucci@0.4.54 control records migrate and pushes chant/lifecycle. Then it upgrades.
  • control records put, defaults, import and retire write the entries on chant/lifecycle from the first one, so a new control repo needs no setup step.
  • The plan job reads the control repo through chant’s read step alone. On GitHub and Forgejo it no longer checks the control repo out into .terragucci-control, and on GitLab it no longer clones it. TERRAGUCCI_CONTROL_DIR is no longer set by the job, though a plan still reads a checkout it names.
  • TERRAGUCCI_CHANT is no longer read.
  • A plan that reads the control repo through TERRAGUCCI_CONTROL_READ_TOKEN now finds its estate owners. The clone it read was removed before the read finished, so it found none.
  • The review agent reads the pull request, the pipeline’s runs and jobs, and the review artifacts through chant’s forge reads. A review artifact whose run the forge no longer lists is passed over, and the log says so.

On GitLab, the comments schedule answers merge request notes through chant’s note commands:

  • Who may ask is read as a role. A note from below Developer is ignored, and the job’s log names that role.
  • A reply ends with the user it ran for. What terragucci adds, such as that the job reads the merge request again, comes before that, in parentheses.
  • /terragucci apply on a merged merge request retries in the newest push pipeline at its merge commit that has an apply job, in chant’s words. A later commit with the apply status still refuses it.
  • A note whose change cannot be compared in full gets no reply, and the next poll reads it again.

Every wave now plans and applies on chant’s step, and terragucci’s own wave plan and apply are gone:

  • A wave whose roots pin their own releases. chant runs the release each root pins once terragucci has installed it and checked its version. The binary in chant.config.ts no longer matters, and a repo with no chant.config.ts plans each root by its directory.
  • A wave under approval: pr-review or approval_rules runs on the step. chant decides its gate and counts the review terragucci records. It leaves out the people behind the change and the agent’s account, and it counts approval_rules. The report’s rules and review come from that decision.
  • With agent.token_env and no agent.login, the job leaves out the account the agent’s token acts as.
  • An Atmos read of another instance’s outputs is read from that instance’s own workspace, with its role and its pinned release.
  • --parallelism and parallelism run a wave’s roots side by side as before. Their inits take turns on the wave’s provider cache, and the job says how many roots run at once.
  • The binary each root runs still sees no forge token, whether named as one or holding the same value.
  • A root an estate migration adopts into is left out of its wave until the migration has applied, and the next run plans it.
  • chant records a pull request’s approving review itself. Each reviewer is named by forge principal, such as github:alice.
  • A choudoufu wave that meets a resource another live run is applying ends at once with exit 5. A push’s wave used to wait for that run.
  • A stock binary’s root is held as one row of pr-apply while it applies.
  • The wave’s report has no per-root plan or apply times and no spans, and a failed root’s outcome names no error.
  • A Terragrunt repo’s waves run on chant’s terragrunt-apply step. Each wave still plans its units with one run --all per pair of releases, and applies exactly those saved plans.
  • With waves.compose, the composed run is chant’s: its wave lists the run’s roots, and chant plans and applies them together as one run. That run keeps the binary the project names.
  • A gate whose only change is an output now waits for an approval, where before it let the wave through as empty.
  • A share job applies its saved plans even when they change nothing.
  • A root that names its workspace plans and applies in it on the step. Its init runs in default. Then the workspace is selected, and created first when the backend does not list it yet.

This release pins chant 0.124.79 in the package and the CI images.

  • Every record terragucci writes on chant/lifecycle, such as a state export, a lock release, a migration, an agent run or a template request, goes through chant’s ledger writer. In a checkout with no remote the record stays on the local branch, where the command used to fail.
  • A choudoufu wave holds its resources only through chant’s row leases, in _locks/rows/pr-apply.json; _locks/apply-rows.json is no longer read or written. Whether a holding run is gone is chant’s answer too: a holder that keeps a heartbeat is judged by it, and CHANT_LOCK_STALE and CHANT_FORGE_TOKEN are read before TG_LOCK_STALE and TG_TOKEN.
  • terragucci state export and terragucci unlock-state run on chant’s state export and lock release. An export is refused in a CI job and into any git working tree, and a request that was exported already exits 1. unlock-state exits 5, not 1, when a run that may hold the lock is still alive, and 1, not 4, for a request that released already; a new lock is a request of its own, which waits for its own approval.
  • A pull request’s ephemeral copy is planned, applied and destroyed by chant’s pull request environments of Terraform roots, with the same state key suffix and records. An azurerm copy’s location is now recorded as az://<account>/<container>/<key>; copies recorded before are still destroyed.
  • terragucci reads pull requests and who may comment through chant’s forge reads. On GitHub, a comment whose author’s permission the job’s token cannot read is ignored as one without write access; the job no longer fails on it. A rollout no longer takes a pull request from a fork for one of its waves.
  • On GitLab the overdue drift check asks chant which schedules are drift’s, by the drift job’s own rule. That rule now always leaves out the comments, resume, rollouts and ephemeral schedules, whichever of those the config turns on.
  • More waves plan and apply through chant’s terraform-apply step. secrets, cost and ci.hooks no longer keep a wave on terragucci’s own plan. Nor does a choudoufu root, or a read of another root’s state.
  • Each root on the step runs the binary chant.config.ts names, from the directory of the job’s binary or of the version the root pins. A root that plans with another binary keeps terragucci’s own plan, and the job says why. So does a wave under approval: pr-review or approval_rules.
  • A wave on the step plans its roots one at a time. Each root’s plan file is chant.tfplan in its own directory.
  • terragucci mcp lists each tool’s MCP annotations, as its own server did before it moved onto chant’s. plan_result is the one change: it is listed as not read-only, since it is served with the propose tools.
  • An MCP tool that answers with a list, such as index or templates, now gives it as structuredContent.items. Its text block still holds the list.
  • A release takes its version from its label: the publish run stamps it into the package for its build, and each image’s version label comes from the build. main keeps its committed version, and a release no longer needs a commit that moves it.

On chant 0.124.76, the drift check, the formatting commit, the chat relay and the release itself run as chant’s jobs, so terragucci no longer writes its own.

  • The drift check is chant’s drift Op in a workflow of its own on every forge. Run init and merge what it writes; a run that finds drift without agent.drift now stays green.
  • The formatting commit is chant’s commit job. It starts only when the check finds formatting (exit 3), and it never pushes to a head whose plan is already approved.
  • Approving from chat needs notify.relay_key set to the variable that holds the relay key (approve from chat). A Teams reply is now approve <reference>.
  • dora.json is built by chant’s delivery code from the same records, and keeps its fields and values.
  • A release is cut and published by chant in one run under the tag release/<version>, which pushes the images, publishes the package and makes the GitHub release together.

The three releases before this one were tagged but never reached npm, while chant’s release jobs learned what a repository’s first release needs: the cut’s images handed to the publish job, and the token the GitHub release is made with.

With chant 0.124.58 underneath, requesting an app or an add-on from a template, gated day-2 actions, requests from an agent and upgrade waves all run through chant, so terragucci drops the fallbacks it kept for an older chant. Each of those has a published guide now.

The release before this one was tagged but never reached npm, because its request workflow goldens still named the image from the release before it and the publish run’s tests failed.

The package and the CI images move to chant 0.124.57, and more of what terragucci did itself is done by chant.

  • A wave with nothing keeping it back plans and applies through chant’s terraform-apply step. Such a wave waits for its root’s row on chant’s ledger, and its run and release records are pushed again when another job pushed first.
  • terragucci check-job is chant’s job guard. A job that runs where its stack is not set to apply exits 9 (misplaced) and runs nothing. On GitHub the job’s token is asked for the chant-check-job audience.
  • Drift attribution reads CloudTrail and the known writes through chant’s audit log reads. The unrecorded writer audit is still terragucci’s.
  • terragucci no longer keeps its own copies of chant code such as the comment words. Each of those parts behaves as chant’s does.

This release is built on chant 0.124.55, whose wave runtime the CI images carry, and much of what terragucci carried itself now comes from chant.

  • Exit codes are chant’s table: 0 done, 1 failed, 2 drift, 3 waiting, 4 moved, 5 held, 6 superseded, 7 denied, 8 declined. A usage or config error now exits 1, where it exited 2. stage tf-apply passes chant’s 7 and 8 through, where it gave 1 and 4. Exit codes lists each command’s.
  • When a repo has plain roots, init also writes chant.config.ts and .chant/op-waves/tf-apply.spec.json for chant. Each wave then plans and applies through chant’s terraform-apply step.
  • A composed run (waves.compose) is chant’s. Its temporary root is .chant-compose/, and a state it could not write is kept as <key>.chant-unwritten. chant can leave a root out of the run and compose the rest; the note and compose.left_out in the report name each root left out with its reason.
  • modules.publish takes a GitLab module registry (gitlab), HCP Terraform (hcp://<organization>) and Artifactory or Nexus. terragucci registry edge writes an edge function for a bucket-hosted registry, with an optional token check. modules.registry.providers: mirror serves providers from the same registry. See Publish modules.
  • Each release is recorded on chant’s ledger and listed in a release catalog beside the registry, which terragucci modules reads. modules deprecate and modules yank mark a version, and modules restore clears the mark. Roots on a deprecated version get the terragucci-deprecated-version tip, and modules.require: attested refuses a yanked pin.
  • sources.proxies names an Artifactory or Nexus registry proxy, so a source written through it matches the entry for its upstream.
  • check.pre_commit: true runs the repo’s .pre-commit-config.yaml in tf-check (Run your pre-commit hooks in CI).
  • A choudoufu root’s derived record store is read wherever its state was. The estate page and the terragucci-module-table tip give each module version’s row in choudoufu’s module table.
  • State exports, lock releases and migrations record their approvals as chant’s gated requests, in _gates/<op>/applied.jsonl on chant/lifecycle, with the digest of what each one wrote.
  • The CLI bundle imports chant core from the installed @intentius/chant instead of carrying it.
  • waves.compose works with binary: choudoufu. A composed set whose roots all run choudoufu is planned and applied once as estates, and the composed root calls each estate’s own directory. Nothing is pulled or split back. A terraform_estate_outputs read of an estate in the same run counts as a read of that member, so a value unknown at plan holds the run for an approval as it does in any composed run.
  • The apply report records the values that were unknown at plan. Once a wave or a composed set has applied, each root’s state supplies every attribute its plan marked unknown, and the report states it as the value after. A sensitive value stays sensitive and carries no value. Report schema minor 48.
  • tf-check checks the roots in parallel, up to parallelism from terragucci.yml at once. With one root or parallelism: 1 it checks them one at a time as before. Terragrunt repos keep their own check script.
  • chant moves to 0.124.52 in the package and the CI images.
  • Every chant pin is 0.124.50, and the CI images carry its wave runtime.
  • Ephemeral environments run on chant’s pull request environments (#1228). A copy’s plan that changes something now waits for an approval whatever gate says, so gate: on-destructive and gate: never no longer let a copy that only creates resources apply on its own. A plan with nothing to change applies without one. terragucci approve ephemeral <n> --plan <digest> is still the command; it now runs chant approve pr-<n> pr-env --plan <digest>, and the approval is kept in _gates/pr-<n>.jsonl. The copies are recorded in _pr-envs/records.jsonl on chant/lifecycle instead of _gates/tf-ephemeral/done.jsonl. terragucci still reads the old file, so a copy applied before you upgrade is destroyed on close or at expiry as before. A destroy that fails is tried once more in the same run, and its audit entry counts the roots destroyed instead of carrying the destroy plans’ digest.
  • A waiting wave’s log names each approval that does not count, with its reason, for example approvals that do not count: alice (alice opened pull request 7).
  • terragucci view runs behold 0.30.0 (was 0.26.0), which reads terragucci.components.json and draws the roots grouped by wave.

terragucci runs on chant 0.124.43.

  • Roots that plan side by side run their hooks side by side again, through chant’s async stage-hook runner (#1235). Each root’s hook output stays together.
  • On Forgejo, a pull request still being checked for conflicts is asked again before apply.requires refuses it. A refusal that never settles reads “Forgejo reports conflicts with main, or is still checking for them” (#1236).
  • apply.requires hands its list straight to chant, so a check you leave out makes no forge call (#1238).
  • The approved refusal names each approver who did not count and why, for example visitor has no write access. A review by the pipeline’s own token is named as such instead of being skipped. On GitLab, the check that the latest push is recorded now runs before approvals are read (#1239).
  • The CLI bundle is about 1.9 MB. The MCP SDK loads only when terragucci mcp starts (#1234).

terragucci now runs on chant 0.124.42 and uses chant’s own versions of the CI features it used to carry (INTENTIUS/chant#4287). Most config keys read as before. These are the changes you can see:

  • steps: is gone. Move each one to ci.hooks in chant.workspace.json; config check refuses steps: and says where each one went (#1220). chant’s stage-hook runner runs them, so when roots plan side by side their hooks now take turns (#1225). Each hook’s environment gains the CHANT_WAVE* variables and CHANT_HOLD.
  • approval_rules keeps its keys and is judged by chant’s approvals.quorum rule (#1217). A reviewer is matched by their full forge principal now. A grant to a bare login no longer gives that reviewer a role, and neither does a gitea: grant or a github: grant on another host. The approvals guide covers the migration under “A reviewer’s roles”.
  • apply.requires runs chant’s four requires checks (#1226). A refusal lists every check that failed. approved also leaves out anyone who wrote a commit in the change. checks needs at least one status to have reported. undiverged is read from the forge. A forge API error gets a refusal reply instead of failing the job.
  • apply.branches uses chant’s branch routing (#1212). A root that matches two branches is refused by config check and by the apply job. Its globs follow picomatch, so envs/prod/** also matches envs/prod and * skips a name that starts with a dot.
  • Root locks now come from chant’s target locks (#1216). The overdue drift check uses chant’s scheduled-Op verdict (#1221), and a failed root blocks its dependents through chant’s wave-blocked rule (#1222). Their config is unchanged.
  • Under opa, the policy engine counts packages one level under the namespace, so a deny in main.<child> now fails the root (#1218).
  • The re-plan trades its OIDC token with chant’s trade before it checks out the head (#1213). terragucci query uses chant query’s statement check (#1214). The review command and risk line come from chant’s review agent (#1224).
  • A step that runs the change’s code also drops CHANT_*_TOKEN, GITLAB_TOKEN and CI_JOB_TOKEN. A restarted step carries CHANT_NO_FORGE_TOKEN in place of TG_NO_FORGE_TOKEN (#1219). Run init to pick up the new pipeline.
  • Terragrunt 1.2.0 is in the image. Dependency outputs are read through the binary, and expanded stack unit blocks are refused (#1209). oci:// unit sources are pinned and checked, and the azurerm backend bootstrap works (#1211).
  • publish pushes an OCI module as one archive/zip layer and republishes versions that were pushed as a tar (#1210).
  • A wave’s gate is the stricter of the pipeline’s --gate and the top-level gate in terragucci.yml at base, as every other hold key already was (#1202). A pull request that loosens gate applies its own merge under the old gate, its plan note says so, and the new gate takes effect from the next merge. One that tightens gate takes effect on its own merge. When the config at base cannot be read, a wave under gate: never does not apply. The apply jobs can now write chant/lifecycle under every gate, so run init to pick up the new pipeline.
  • terragucci init --gate never|on-destructive|always writes gate: into terragucci.yml and renders the pipeline with it. A config that already sets another gate makes init exit 2 unless you pass --force (#1201). The agent setup prompt asks whether waves should wait for an approval.
  • A new guide, Run without approvals, covers gate: never, the holds that still wait under it, and keeping the plan identity read-only (#1203).
  • On GitHub, the check, plan and replan jobs end with the step that runs the change’s code, as they do on Forgejo, so no later step in those jobs holds an API token (#1193). The report goes to the next job as job outputs, which GitHub caps at 1 MB: a plan report over about 330 KB gzipped reaches the note as the note, the status, report.json and drift-schedule.json, and a reports bucket still keeps all of it.
  • Each applied root’s binary, provider and module versions go to versions.json in the reports bucket and to roots[].versions in the report. The estate page lists every version in use with the roots on it, and terragucci query has a versions table (#1190).
  • A change the root’s last 3 applied waves each made again folds into its own plan note section, Changes on every run, with the usual fixes beside it (#1189).
  • tf-publish refuses a module whose version bump is smaller than its interface change, and names each change and the bump it needs (#1191).
  • Two tips: terragucci-secret-in-state, for a sensitive value in state that a write-only argument or an ephemeral resource could keep out, and terragucci-choudoufu-secrets, for a choudoufu root whose records can hold secret values (#1192).
  • A later wave’s report lists the roots it applied. It used to list none when an earlier wave ran a migration (#1187).
  • A migration’s progress.moved counts each resource once, also when it follows two resources (#1186).
  • terragucci apply names the run view it writes as a bucket object, s3://<bucket>/<key> (or gs://, az://), not a path that reads like a link (#1184).
  • The repository’s history before 0.4.38 is now one commit, which keeps a clone to a few megabytes. Every earlier version stays on npm and its pull requests still show each change, but the git tags and GitHub releases before 0.4.39 are gone: pin terragucci by its npm version, not by a git tag.
  • The fan-out demo’s plan step says a wave waits for an approval only when its plan destroys something. It used to say a reviewer approves every plan, which this demo never asks for (#1181).
  • The demo’s fan-out scenarios mark the steps a viewer should not miss, and behold opens each one as a short note over the step (#1176).
  • The stack runs a newer floci, which describes a change set’s changes (#1174).
  • Each release now has a GitHub release with its notes from this page, and releases back to 0.4.8 have one too (#1175).
  • A failed root blocks only the roots that depend on it (#1164). The rest of the next wave still applies, and the wave report lists each blocked root and what blocked it.
  • On Forgejo, every job that plans ends with the step that runs the change’s code (#1151).
  • The audit records state versions that no wave or migration wrote (#1149).
  • terragucci mcp --propose and terragucci guard (#1148).
  • A tip for running plan and apply on one persistent runner, and runners in the threat model (#1147).
  • The docs have a batch of new estate guides (#1150).
  • The demo’s new fan-out runs fifteen roots on stock OpenTofu. When cluster-a fails, only its six apps are blocked (#1165).
  • The same fan-out on choudoufu (#1166, #1168). The fix plans cluster-a as a cone of one block, and an operator applies to an estate while the pipeline applies to it, and both land.
  • The demo runs its choudoufu roots on release 0.30.0 (#1168).
  • The demo’s chant pipeline is checked against chant’s generator output (#1170).
  • The demo’s runs copy reads a failed run again until its later waves end (#1171).
  • The demo’s housekeeping runs beside the next cycle, and its prunes run every tenth reset (#1169).
  • The demo’s thin shared-root scenario is removed (#1155, #1156, #1158).
  • A failed wave’s index row counts its roots as failed (#1124).
  • An Atmos or Terramate read of an upstream the change moved holds its wave (#1125).
  • Each reset prunes old wave reports from the reports bucket (#1126).
  • Each cloud identity gets its own apply job (#1127). Root secrets can come from the cloud’s secret store.
  • approval_rules can ask for more than one approval (#1128). Policy can hold a wave or let it run unattended.
  • Each estate’s roster is written after each wave and estate migration (#1132).
  • Estate migrations report per-resource progress (#1133).
  • A demo scenario adopts one shared root on choudoufu, then splits it (#1134).
  • The demo’s job image has choudoufu 0.29.0 (#1135); the published choudoufu image keeps 0.28.0.
  • up reads the shared root’s state key (#1136).
  • An adoption is proven by live-import’s preview (#1137). Its root plans once it applies.
  • A move between estates is proven by live-mv’s dry runs (#1138). Joining roots plan once it applies.
  • The shared root’s stock apply runs through the pipeline (#1139).
  • Adoptions read IAM drift correctly with choudoufu 0.29.1 (#1140).
  • A reader always plans on an upstream planned in the same run (#1141).
  • A cycle of the shared root scenario takes under 10 minutes (#1142).
  • The next action has a start time (#1121). The kiosk draws a bar from it.
  • Each reset deletes old closed pull requests (#1118).
  • A wave’s trace shows the gate’s hold and each root’s apply result (#1114).
  • The docs header links to the live site (#1113).
  • Wave job phases are traced to Tempo on the stack (#1110).
  • The home page no longer offers Terramate (#1091).
  • The change failure rate keeps six decimals (#1107).
  • An apply whose wave failed counts as a failed change (#1102).
  • A failed view checkout is retried (#1104).
  • The demo’s chant pipeline keeps its reports with upload-artifact@v3 on Forgejo (#1094).
  • The demo runs estate each cycle so the kiosk shows DORA numbers (#1097).
  • Deploy frequency divides by the span the history covers (#1099).
  • Pipeline metrics time each apply wave and each root’s init, to the millisecond (#1093).
  • The stack collects pipeline metrics in Prometheus for each run and wave (#1087).
  • The demo’s chant scenario runs its jobs in an image with OpenTofu and chant, so nothing downloads at job time (#1086).
  • The demo’s migration step runs in a shallow checkout; a failed up keeps the last base (#1083).
  • The demo’s failure scenario runs a real SQL Yodeler migration on Postgres, which fails on duplicate rows until the driver removes them (#1080).
  • The demo’s failure scenario calls its failing step a setup step, which is what it is (#1076).
  • The demo has a chant scenario: chant’s own pull request loop on its own repo, run by name (#1077).
  • With DEMO_VIEWS set, the demo checks out each step’s commit for the viewer before it writes the step, so a viewer reading demo.json finds the checkout already there (#1073).
  • Every line the demo shows says what happens, in fewer words: the intro, the scenario titles, the cards and the step lines (#1070).
  • The demo’s default loop runs the Terragrunt scenario too, after the two scenarios it already ran (#1067).
  • The demo’s up no longer dies of SIGPIPE right after bootstrap. A failure in up prints where it happened: its file and line, and the functions that called it (#1064).
  • The demo driver runs each scenario on its own tool’s demo repo, and publishes each tool’s latest clean cycle for replay (#1056).
  • The demo has a Terragrunt scenario, run by name: a new unit is planned on its upstream’s real planned outputs (#1057).
  • Each tool’s docs page says what the tool already does natively and when to use it, then what terragucci adds (#1060).
  • Every string in the demo’s header fits a length budget, held by lint-docs (#1061).
  • The demo driver plays an author and a reviewer, so its approvals pass the involvement rule (#1052).
  • By default the demo loop runs two scenarios, told in plain words for people new to Terraform (#1050).
  • The demo driver runs the reset during the last step’s hold and polls every second, and each reset deletes the demo repo’s old finished Forgejo runs beyond the newest 100 (#1047).
  • An approval counts only from someone who had no hand in the change: the pull request’s author, its commits’ authors and committers, the people who asked an agent for the change, and the agent’s account, which agent.login names; approval.require_signed: true refuses unsigned ledger approvals (#1044).
  • terragucci init writes terragucci.components.json, which lists each root as a chant component, grouped by wave under the job that applies it (#1043).
  • Each demo scenario’s card text is in its about.json, the demo driver writes it into demo.json, and just lint-docs lints it (#1041).
  • A lock file with no provider entries covers a root that uses only the built-in terraform provider, and every root in example-demo/ sets required_version and commits its lock file (#1037).
  • The demo driver copies the demo repo’s pipeline runs, with their jobs, steps and log tails, into the reports bucket, and keeps the newest 30 (#1038).
  • A wave that applies records the spend of its approval whichever gate let it through, so the next push’s waves wait instead of being refused as changed after approval, and on /terragucci apply a read unknown at review is judged by the plan that changed the upstream (#1030).
  • With waves.compose, a wave the composed run emptied keeps its number in chant’s spec, and the merge’s apply composes the set the pull request reviewed (#1031).
  • On a commit’s first run, a plan of the upstream that changes nothing counts its outputs as known, so a push whose reader changes and whose upstream does not applies without waiting (#1033).
  • stack/demo.sh passes the scenario label to jq as $text, so it runs under jq 1.6 (#1026).
  • stack/demo.sh finds a Forgejo run by commit_sha when the runs API leaves head_sha empty (#1027).
  • stack/demo.sh scenario 2 says each wave that read an output unknown at review waits for the driver’s approval (#1029).
  • stack/demo.sh up builds the CI images again when the checkout’s commit moves (#1032).
  • stack/demo.sh up writes the last base snapshot back before it pushes the base (#1034).
What Where
waves.compose: true, opt-in beside the waves, plans the roots a change reaches and the roots they read as one plan and applies them as one apply of tofu or terraform, each root keeping its own state. A value one root reads from another that is known only after apply is computed in that apply. The note names the roots and the wave that runs them, or says in one line why the change applies in waves instead A composed run
Under gate: on-destructive, a wave that read an upstream output known only once the upstream applied waits for an approval of the plan it applies, even when that plan destroys nothing, and its log names each read that holds it. Under gate: never it applies as before Linked roots
The plan note has a total line across roots, such as 3 to add, 2 to change, 0 to destroy across 3 roots; report.json carries totals_roots, and each wave in run.json its totals and totals_roots The plan note
Each resource in blast.resources reaches carries depth, its distance from the changed resource, and the reaches are sorted nearest first Fields
  • Changed under gate: on-destructive: a wave that read an output unknown when the change was reviewed used to apply without an approval when it destroyed nothing. It now waits for one.
What Where
environments in terragucci.yml names each environment’s roots, gate, roles, runner, forge environment and audience; each wave applies in one job per environment, holding that environment’s identities alone Separate environments
oidc.audience takes a map, plan, apply and drift, so a role that trusts the apply audience refuses a plan job’s token Trust per environment
An environment’s apply job checks its forge environment, ref and runner before it takes a cloud token, and config check tips on shared apply identities Separate environments
terragucci config identities --json prints each stage’s identities and the trust each role needs; the provider reads it as terragucci_environments and terragucci_trust_policy Read the environments’ trust
terragucci forge check compares that contract with the forge and the cloud, reading only, and the provider returns its rows as terragucci_forge_check forge check
The choudoufu image runs choudoufu 0.28.0. In a pull request that plans both, a root that reads another estate’s outputs through terraform_estate_outputs plans on the outputs the upstream’s plan makes; one that reads an output known only after apply is named with the wave that settles it Linked roots
With binary: choudoufu, a pull request plans each root under a live block as the cone of its change, the note names each cone’s size or why the whole estate was planned, and a cone’s addresses are part of its plan digest Cone plans

0.4.8 fixes a security issue: in 0.4.7 and earlier, the code of a pull request re-planned with /terragucci plan could get a token the apply role trusts, or leave files in the Terragrunt cache that the apply jobs restore. Upgrade every repo that has a re-plan job.

What Where
A re-plan trades its OIDC token for the plan identities before the pull request’s code runs, so that code holds no token the apply role trusts. With oidc.azure it plans as before and warns in its log Re-plan
A re-plan restores the Terragrunt cache and saves none, so what a pull request’s code leaves in .terragrunt-cache never reaches an apply job Re-plan
sources refuses module and provider sources outside an allow list before init, and checks what init fetched and locked before the plan Allow only listed sources
A change outside every root plans the roots it reaches: var files, symlinks, terragucci.yml settings and the synth command Changes outside every root
State reads resolve when the address comes from a -backend-config file or a Terragrunt remote_state block Addresses outside the backend block
Parallel Terraform plans on roots with no lock file share one provider cache with one download Pipeline
  • Changed for webhook receivers: the event notify.webhook gets is chant’s chant.notify/v1, with the stage’s outcome in detail, and its signature covers <timestamp>.<body>, where X-Terragucci-Timestamp carries the timestamp. A receiver that checks the old signature over the body alone refuses every event until it is updated (Headers).
What Where
A wave refused because its plans moved after the approval names the terragucci approve command for the new plans Fix a refused wave
What Where
Approvals are one command, terragucci approve, for waves, migrations, state exports, lock releases and pull request environments, and every printed hint names it approve
The choudoufu image runs choudoufu 0.25.0. Resource history lists each choudoufu record’s past versions, and the estate page shows the count Change history

0.4.6 carries every change of 0.4.5, listed by area below. Upgrading from 0.4.4 or earlier, also note:

From 0.4.4 Run
A Terragrunt repo that uses generate terragucci generate again, so each unit’s state key reads the ephemeral suffix (In a Terragrunt repo)
  • Changed default: a pull request that changes a Terragrunt unit also previews the units that depend on it, provisional and outside every digest. Set terragrunt.dependents: follow to keep the old behavior (The terragrunt block).
  • Applies now run per root. With stock binaries, two overlapping pushes to one root can fail the newer apply with “Saved plan is stale”; run it again and it plans again (Two applies of one estate).
What Where
Pushes that change different roots apply at the same time; a root’s own applies take turns at its state lock, and a superseded push stands down Applies side by side
With choudoufu, a wave waits only for a run changing one of its own resources Two applies of one estate
The choudoufu image runs choudoufu 0.24.0: a killed apply leaves records for the resources it finished Stock and choudoufu
One page for every lock layer, from the backend’s state lock to choudoufu, by repo shape and forge Locking and staleness
A gated choudoufu wave whose approved apply was killed or failed applies the rest under the same approval, and the resume job finds a killed one Stopped applies
A choudoufu wave’s run view shows each resource done, in flight or waiting while it applies, read from the estate’s records Progress
What Where
waves.after orders plain roots that no terraform_remote_state read links Root order
The plan note’s blast radius lists each changed resource and the resources that depend on it, in its root and in roots that read an output it reaches Resources in the radius
Every backend type gets a state address (local, pg, http, consul, kubernetes, remote), and config check names a read it cannot resolve State addresses
ephemeral gives each open pull request its own copy of the roots you name, behind a gate, destroyed after a TTL; Terragrunt units and synthesized roots too Ephemeral environments
apply.branches maps a branch to root or unit globs, and a push there applies those alone behind the gate; drift plans them from their branch Apply from other branches
A re-plan started by workflow_dispatch, with a pull request and an optional root Re-plans by dispatch
What Where
oidc.roles gives each environment’s roots their own plan and apply roles, and config check warns when one role serves two Keep each environment’s roles to its own state
terragucci state export downloads a state version locally, after a second person approves, with an audit entry Export a state version
The estate page marks each cross-state read stale, current or unknown against the producer’s last apply Cross-state edges
GitLab-managed state: each apply records its serial, and state export, unlock-state and ephemeral copies work on it GitLab-managed state
gcs and azurerm roots get state versions, state export, unlock-state and migrations, and oidc.gcp.roles and oidc.azure.roles give each environment its own identity GCP and Azure
A backend move reads an HCP Terraform, Scalr or OTF workspace over the TFE API, or an exported state file Workspaces
With choudoufu, which keeps per-resource state with no database to run, migration files retag resources between roots and adopt a root from a state file Estates
Migrations move state to and from pg, kubernetes, consul and http backends, which keep no versions Unversioned backends
What Where
Terragrunt units get cost, steps, waves.jobs, drift pull requests and attribution, migrations, per-unit version pins, generate and state export Differences
A Terragrunt pull request plans each later layer on the earlier layers’ planned outputs, never on mock_outputs Later layers
Units a terragrunt.stack.hcl generates go through every stage Explicit stacks
generate.disable_init: false, and the apply job has Terragrunt create the state bucket Bucket bootstrap
Atmos instances as roots, in waves from dependencies.components, with roles by stack Use Atmos
Terramate stacks as roots, in waves from after and before, with outputs sharing; stale generated code fails the job Use Terramate
What Where
Drift on a choudoufu root under live resource markers, from a normal plan Live roots
What Where
terragucci mcp, a read-only MCP server over what the runs wrote Read the estate over MCP
agent.drift opens a pull request that fixes drift Have an agent fix drift
The AI review runs from the default branch’s workflow, so a pull request cannot change the review it gets The review
GitLab gets the agent comment, the AI review and waves.jobs The agent comment
What Where
runner picks each stage’s runner: runs-on on GitHub and Forgejo, tags on GitLab Self-hosted runners
pass hands named CI secrets and variables to the jobs that plan, apply and check drift Secrets and variables
A JSON Schema for terragucci.yml, for config check and your editor Schema
own_jobs keeps your own jobs in the pipeline across init runs Jobs of your own
A Terraform and OpenTofu provider manages the control repo’s projects and defaults Manage the control repo with Terraform
modules.registry serves module releases over the registry protocol from a bucket or Pages site Serve a module registry
What Where
terragucci query runs SQL over the reports bucket, in process Query the estate with SQL
An optional resource graph beside the estate page, with drift marked A resource graph beside the page
What Where
terragucci import hcp, import otf and import scalr write terragucci.yml from a platform’s workspaces over its API Import the workspaces
terragucci import spacelift and import env0 write terragucci.yml from their config files and admin Terraform Use terragucci with Spacelift or env zero
terragucci import terragrunt-scale keeps a Terragrunt Scale repo’s plan and apply roles per environment Terragrunt Scale
Guides for HCP Terraform, Scalr and OTF, and for Spacelift and env zero Use terragucci with HCP Terraform, Scalr or OTF, Use terragucci with Spacelift or env zero
A Standards section: the open standards terragucci uses, and its tacos.guru answers Standards
What Where
unlock-state on a choudoufu root under live markers says there is nothing to release Release a state lock
An Atmos pull request that changes a stack manifest locks the instances it reaches Pull requests
A CDK Terrain pull request in a repo that synthesizes its stacks locks every stack Pull request locks
On Forgejo, a pipeline with more than five levels of job dependencies plans Pipeline
A pull request whose format fix was pushed gets its lock answer Plan locks
A live block inside terraform makes a root Choose a binary

terragucciHelp setting it up: Intentius

These docs count page views and clicks with PostHog. They set no cookies, store nothing in your browser, and send nothing when your browser asks not to be tracked.