Run the current terragucci in the sandbox, pinned, with terragrunt #21

Open
opened 2026-10-21 03:09:03 +00:00 by lex00 · 0 comments
Collaborator

(needs #14, #15, #16, #10; #8 should land with it)
Part of the terraform-plane epic (arugula-salad/arugula#1141). Lands after terragucci's next release, the first built on chant 0.124.41 or later (chant#4287); npm's newest is still 0.4.40, on chant 0.124.24.

The sandbox image is built with an empty TERRAGUCCI_VERSION (images/sandbox/Dockerfile:22), so scripts/sandbox-bootstrap.sh installs its default, 0.4.0. At run time TERRAGUCCI_VERSION=0.4 (src/config.ts:32) is satisfied by any 0.4.x, so runs stay on 0.4.0. The run log doesn't record which terragucci ran. The same script pins choudoufu 0.22.0 and terraform 1.14.0; terragucci now pins 0.28.0 and 1.14.9 (images.ts), and cone plans, estate-output reads and row holds need choudoufu 0.24 or later.

Since this was filed: 0.4.40 is out (pins terraform 1.14.9, choudoufu 0.28.0, tofu 1.13.1, terragrunt 1.1.6 in images.ts) and closes the gate-loosening hole (terragucci#1202). terragucci main pins chant 0.124.41, moves steps: to ci.hooks (refuses steps:), refuses apply.branches conflicts and moves terragrunt to 1.2.0 (#1209), reading dependency outputs through the binary, refusing expanded stack units and pinning oci:// unit sources (#1211). Pin the first release after 0.4.40 that carries this, with the #14 additions in the same change. Any chant module sluice imports (#15) goes in the same change too, at the chant version that terragucci pins.

The sandbox installs no terragrunt (images/sandbox/Dockerfile, scripts/sandbox-bootstrap.sh), though tgconfig.ts and stages.ts run Terragrunt mode. It needs the terragrunt that release pins, and egress to OCI registries for oci:// sources. ci.hooks also run in the sandbox, so the image has to carry what an estate's hooks call, or say what it carries.

terragucci --version doesn't work yet: it exits 2 with the usage text (terragucci#1197, open). Until it does, read the version from the installed package (npm ls -g @intentius/terragucci --json).

Upgrading alone would turn on the gate rules in #15 and #16 against sluice's old logic, so the bump ships with them, not before.

Done when: the image build passes an exact terragucci version, and the bootstrap's choudoufu, terraform, tofu and terragrunt match what that terragucci pins; the configured default is that exact version, not 0.4; the run page shows which terragucci ran; the dogfood estates plan, apply a gated wave and drift on it; render-diff (#17) is clean against it.

From a review of sluice against terragucci 0.4.39 and chant 0.124.27 (2026-10-20). Proposal for the maintainer; PRs would come from lex00/sluice.

Updated 2026-10-22 for terragucci main (pins chant 0.124.41, terragucci#1212–#1223) and chant 0.124.41–0.124.42.

(needs #14, #15, #16, #10; #8 should land with it) Part of the terraform-plane epic (arugula-salad/arugula#1141). Lands after terragucci's next release, the first built on chant 0.124.41 or later (chant#4287); npm's newest is still 0.4.40, on chant 0.124.24. The sandbox image is built with an empty `TERRAGUCCI_VERSION` (`images/sandbox/Dockerfile:22`), so `scripts/sandbox-bootstrap.sh` installs its default, `0.4.0`. At run time `TERRAGUCCI_VERSION=0.4` (`src/config.ts:32`) is satisfied by any 0.4.x, so runs stay on 0.4.0. The run log doesn't record which terragucci ran. The same script pins choudoufu 0.22.0 and terraform 1.14.0; terragucci now pins 0.28.0 and 1.14.9 (`images.ts`), and cone plans, estate-output reads and row holds need choudoufu 0.24 or later. Since this was filed: 0.4.40 is out (pins terraform 1.14.9, choudoufu 0.28.0, tofu 1.13.1, terragrunt 1.1.6 in `images.ts`) and closes the gate-loosening hole (terragucci#1202). terragucci main pins chant 0.124.41, moves `steps:` to `ci.hooks` (refuses `steps:`), refuses `apply.branches` conflicts and moves terragrunt to 1.2.0 (#1209), reading dependency outputs through the binary, refusing expanded stack units and pinning `oci://` unit sources (#1211). Pin the first release after 0.4.40 that carries this, with the #14 additions in the same change. Any chant module sluice imports (#15) goes in the same change too, at the chant version that terragucci pins. The sandbox installs no terragrunt (`images/sandbox/Dockerfile`, `scripts/sandbox-bootstrap.sh`), though `tgconfig.ts` and `stages.ts` run Terragrunt mode. It needs the terragrunt that release pins, and egress to OCI registries for `oci://` sources. `ci.hooks` also run in the sandbox, so the image has to carry what an estate's hooks call, or say what it carries. `terragucci --version` doesn't work yet: it exits 2 with the usage text (terragucci#1197, open). Until it does, read the version from the installed package (`npm ls -g @intentius/terragucci --json`). Upgrading alone would turn on the gate rules in #15 and #16 against sluice's old logic, so the bump ships with them, not before. Done when: the image build passes an exact terragucci version, and the bootstrap's choudoufu, terraform, tofu and terragrunt match what that terragucci pins; the configured default is that exact version, not `0.4`; the run page shows which terragucci ran; the dogfood estates plan, apply a gated wave and drift on it; `render-diff` (#17) is clean against it. From a review of sluice against terragucci 0.4.39 and chant 0.124.27 (2026-10-20). Proposal for the maintainer; PRs would come from lex00/sluice. Updated 2026-10-22 for terragucci main (pins chant 0.124.41, terragucci#1212–#1223) and chant 0.124.41–0.124.42.
lex00 changed title from Run terragucci 0.4.39 in the sandbox, pinned to Run the current terragucci in the sandbox, pinned, with terragrunt 2026-10-23 02:48:47 +00:00
Sign in to join this conversation.
No labels
terraform-plane
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/sluice#21
No description provided.