Changes in 0.4.53
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) |
In 0.4.55
Section titled “In 0.4.55”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 runsnpx @intentius/terragucci@0.4.54 control records migrateand pusheschant/lifecycle. Then it upgrades. control records put,defaults,importandretirewrite the entries onchant/lifecyclefrom 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_DIRis no longer set by the job, though a plan still reads a checkout it names. TERRAGUCCI_CHANTis no longer read.- A plan that reads the control repo through
TERRAGUCCI_CONTROL_READ_TOKENnow 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 applyon 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.tsno longer matters, and a repo with nochant.config.tsplans each root by its directory. - A wave under
approval: pr-revieworapproval_rulesruns 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 countsapproval_rules. The report’s rules and review come from that decision. - With
agent.token_envand noagent.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.
--parallelismandparallelismrun 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-applywhile 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-applystep. Each wave still plans its units with onerun --allper 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.
In 0.4.54
Section titled “In 0.4.54”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.jsonis 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, andCHANT_LOCK_STALEandCHANT_FORGE_TOKENare read beforeTG_LOCK_STALEandTG_TOKEN. terragucci state exportandterragucci unlock-staterun 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-stateexits 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,rolloutsandephemeralschedules, whichever of those the config turns on. - More waves plan and apply through chant’s
terraform-applystep.secrets,costandci.hooksno 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.tsnames, 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 underapproval: pr-revieworapproval_rules. - A wave on the step plans its roots one at a time. Each root’s plan file is
chant.tfplanin its own directory. terragucci mcplists each tool’s MCP annotations, as its own server did before it moved onto chant’s.plan_resultis 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
indexortemplates, now gives it asstructuredContent.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.
In 0.4.53
Section titled “In 0.4.53”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
initand merge what it writes; a run that finds drift withoutagent.driftnow 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_keyset to the variable that holds the relay key (approve from chat). A Teams reply is nowapprove <reference>. dora.jsonis 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.
In 0.4.49
Section titled “In 0.4.49”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.
In 0.4.47
Section titled “In 0.4.47”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-applystep. 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-jobis 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 thechant-check-jobaudience.- 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.
In 0.4.46
Section titled “In 0.4.46”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-applypasses chant’s 7 and 8 through, where it gave 1 and 4. Exit codes lists each command’s. - When a repo has plain roots,
initalso writeschant.config.tsand.chant/op-waves/tf-apply.spec.jsonfor chant. Each wave then plans and applies through chant’sterraform-applystep. - 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 andcompose.left_outin the report name each root left out with its reason. modules.publishtakes a GitLab module registry (gitlab), HCP Terraform (hcp://<organization>) and Artifactory or Nexus.terragucci registry edgewrites an edge function for a bucket-hosted registry, with an optional token check.modules.registry.providers: mirrorserves 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 modulesreads.modules deprecateandmodules yankmark a version, andmodules restoreclears the mark. Roots on a deprecated version get theterragucci-deprecated-versiontip, andmodules.require: attestedrefuses a yanked pin. sources.proxiesnames an Artifactory or Nexus registry proxy, so a source written through it matches the entry for its upstream.check.pre_commit: trueruns the repo’s.pre-commit-config.yamlintf-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-tabletip 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.jsonlonchant/lifecycle, with the digest of what each one wrote. - The CLI bundle imports chant core from the installed
@intentius/chantinstead of carrying it.
In 0.4.45
Section titled “In 0.4.45”waves.composeworks withbinary: 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. Aterraform_estate_outputsread 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-checkchecks the roots in parallel, up toparallelismfromterragucci.ymlat once. With one root orparallelism: 1it 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.
In 0.4.44
Section titled “In 0.4.44”- Every chant pin is 0.124.50, and the CI images carry its wave runtime.
In 0.4.43
Section titled “In 0.4.43”- Ephemeral environments run on chant’s pull request environments (#1228). A copy’s plan that changes something now waits for an approval whatever
gatesays, sogate: on-destructiveandgate: neverno 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 runschant 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.jsonlonchant/lifecycleinstead 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 viewruns behold 0.30.0 (was 0.26.0), which readsterragucci.components.jsonand draws the roots grouped by wave.
In 0.4.42
Section titled “In 0.4.42”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.requiresrefuses it. A refusal that never settles reads “Forgejo reports conflicts with main, or is still checking for them” (#1236). apply.requireshands its list straight to chant, so a check you leave out makes no forge call (#1238).- The
approvedrefusal names each approver who did not count and why, for examplevisitor 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 mcpstarts (#1234).
In 0.4.41
Section titled “In 0.4.41”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 toci.hooksinchant.workspace.json;config checkrefusessteps: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 theCHANT_WAVE*variables andCHANT_HOLD.approval_ruleskeeps its keys and is judged by chant’sapprovals.quorumrule (#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 agitea:grant or agithub:grant on another host. The approvals guide covers the migration under “A reviewer’s roles”.apply.requiresruns chant’s four requires checks (#1226). A refusal lists every check that failed.approvedalso leaves out anyone who wrote a commit in the change.checksneeds at least one status to have reported.undivergedis read from the forge. A forge API error gets a refusal reply instead of failing the job.apply.branchesuses chant’s branch routing (#1212). A root that matches two branches is refused byconfig checkand by the apply job. Its globs follow picomatch, soenvs/prod/**also matchesenvs/prodand*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 inmain.<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 queryuses 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_TOKENandCI_JOB_TOKEN. A restarted step carriesCHANT_NO_FORGE_TOKENin place ofTG_NO_FORGE_TOKEN(#1219). Runinitto pick up the new pipeline. - Terragrunt 1.2.0 is in the image. Dependency outputs are read through the binary, and expanded stack
unitblocks are refused (#1209).oci://unit sources are pinned and checked, and the azurerm backend bootstrap works (#1211). publishpushes an OCI module as onearchive/ziplayer and republishes versions that were pushed as a tar (#1210).
In 0.4.40
Section titled “In 0.4.40”- A wave’s gate is the stricter of the pipeline’s
--gateand the top-levelgateinterragucci.ymlat base, as every other hold key already was (#1202). A pull request that loosensgateapplies its own merge under the old gate, its plan note says so, and the new gate takes effect from the next merge. One that tightensgatetakes effect on its own merge. When the config at base cannot be read, a wave undergate: neverdoes not apply. The apply jobs can now writechant/lifecycleunder every gate, so runinitto pick up the new pipeline. terragucci init --gate never|on-destructive|alwayswritesgate:intoterragucci.ymland renders the pipeline with it. A config that already sets another gate makesinitexit 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).
In 0.4.39
Section titled “In 0.4.39”- On GitHub, the
check,planandreplanjobs 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.jsonanddrift-schedule.json, and a reports bucket still keeps all of it. - Each applied root’s binary, provider and module versions go to
versions.jsonin the reports bucket and toroots[].versionsin the report. The estate page lists every version in use with the roots on it, andterragucci queryhas aversionstable (#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-publishrefuses 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, andterragucci-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.movedcounts each resource once, also when it follows two resources (#1186). terragucci applynames the run view it writes as a bucket object,s3://<bucket>/<key>(orgs://,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.
In 0.4.38
Section titled “In 0.4.38”- 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).
In 0.4.37
Section titled “In 0.4.37”- 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).
In 0.4.36
Section titled “In 0.4.36”- 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 --proposeandterragucci 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).
In 0.4.35
Section titled “In 0.4.35”- 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_rulescan 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.
upreads 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).
In 0.4.34
Section titled “In 0.4.34”- The next action has a start time (#1121). The kiosk draws a bar from it.
In 0.4.33
Section titled “In 0.4.33”- Each reset deletes old closed pull requests (#1118).
In 0.4.32
Section titled “In 0.4.32”- 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).
In 0.4.31
Section titled “In 0.4.31”- Wave job phases are traced to Tempo on the stack (#1110).
- The home page no longer offers Terramate (#1091).
In 0.4.30
Section titled “In 0.4.30”- The change failure rate keeps six decimals (#1107).
In 0.4.29
Section titled “In 0.4.29”- An apply whose wave failed counts as a failed change (#1102).
- A failed view checkout is retried (#1104).
In 0.4.28
Section titled “In 0.4.28”- 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).
In 0.4.27
Section titled “In 0.4.27”- Pipeline metrics time each apply wave and each root’s init, to the millisecond (#1093).
In 0.4.26
Section titled “In 0.4.26”- The stack collects pipeline metrics in Prometheus for each run and wave (#1087).
In 0.4.25
Section titled “In 0.4.25”- The demo’s chant scenario runs its jobs in an image with OpenTofu and chant, so nothing downloads at job time (#1086).
In 0.4.24
Section titled “In 0.4.24”- The demo’s migration step runs in a shallow checkout; a failed
upkeeps the last base (#1083).
In 0.4.23
Section titled “In 0.4.23”- The demo’s failure scenario runs a real SQL Yodeler migration on Postgres, which fails on duplicate rows until the driver removes them (#1080).
In 0.4.22
Section titled “In 0.4.22”- 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).
In 0.4.21
Section titled “In 0.4.21”- With
DEMO_VIEWSset, 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).
In 0.4.20
Section titled “In 0.4.20”- Every line the demo shows says what happens, in fewer words: the intro, the scenario titles, the cards and the step lines (#1070).
In 0.4.19
Section titled “In 0.4.19”- The demo’s default loop runs the Terragrunt scenario too, after the two scenarios it already ran (#1067).
In 0.4.18
Section titled “In 0.4.18”- The demo’s
upno longer dies of SIGPIPE right after bootstrap. A failure inupprints where it happened: its file and line, and the functions that called it (#1064).
In 0.4.17
Section titled “In 0.4.17”- 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).
In 0.4.16
Section titled “In 0.4.16”- The demo driver plays an author and a reviewer, so its approvals pass the involvement rule (#1052).
In 0.4.15
Section titled “In 0.4.15”- By default the demo loop runs two scenarios, told in plain words for people new to Terraform (#1050).
In 0.4.14
Section titled “In 0.4.14”- 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).
In 0.4.13
Section titled “In 0.4.13”- 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.loginnames;approval.require_signed: truerefuses unsigned ledger approvals (#1044). terragucci initwritesterragucci.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 intodemo.json, andjust lint-docslints it (#1041).
In 0.4.12
Section titled “In 0.4.12”- A lock file with no provider entries covers a root that uses only the built-in
terraformprovider, and every root inexample-demo/setsrequired_versionand 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).
In 0.4.11
Section titled “In 0.4.11”- 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 applya 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.shpasses the scenario label to jq as$text, so it runs under jq 1.6 (#1026).stack/demo.shfinds a Forgejo run bycommit_shawhen the runs API leaveshead_shaempty (#1027).stack/demo.shscenario 2 says each wave that read an output unknown at review waits for the driver’s approval (#1029).stack/demo.sh upbuilds the CI images again when the checkout’s commit moves (#1032).stack/demo.sh upwrites the last base snapshot back before it pushes the base (#1034).
In 0.4.10
Section titled “In 0.4.10”| 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.
In 0.4.9
Section titled “In 0.4.9”| 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 |
In 0.4.8
Section titled “In 0.4.8”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.webhookgets is chant’schant.notify/v1, with the stage’s outcome indetail, and its signature covers<timestamp>.<body>, whereX-Terragucci-Timestampcarries the timestamp. A receiver that checks the old signature over the body alone refuses every event until it is updated (Headers).
In 0.4.7
Section titled “In 0.4.7”| 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 |
In 0.4.6
Section titled “In 0.4.6”| 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 |
From 0.4.5
Section titled “From 0.4.5”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: followto 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).
Applies and locking
Section titled “Applies and locking”| 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 |
Plans and waves
Section titled “Plans and waves”| 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 |
Repo shapes
Section titled “Repo shapes”| 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 |
Binaries
Section titled “Binaries”| What | Where |
|---|---|
| Drift on a choudoufu root under live resource markers, from a normal plan | Live roots |
Agents and review
Section titled “Agents and review”| 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 |
Your setup
Section titled “Your setup”| 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 |
Estate and reports
Section titled “Estate and reports”| 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 |
Moving to terragucci
Section titled “Moving to terragucci”| 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.