Accept terragucci's current terragucci.yml #14

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

(bug)
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.

src/services/tgconfig.ts refuses configs written the way terragucci's docs now say, whatever terragucci version runs:

  • gate: on-destructive, the name since 0.4.10 (GATES takes only the on-destroy alias; terragucci config.ts:25).
  • approval: as a map {mode, require_signed} (0.4.13; terragucci config.ts:54). #8 covers which mode is in effect; this is only parsing it.
  • version: as a per-root map (terragucci config.ts:488).

Also out of step:

  • waves.after (0.4.5) is ignored, so the --layers sluice builds can be in the wrong order (terragucci detect.ts:871-936).
  • rootDependencies reads only key/bucket from terraform_remote_state. terragucci also resolves backend-type addresses (state-address.ts), locals, -backend-config files, Atmos reads and choudoufu terraform_estate_outputs (0.4.5, 0.4.8, 0.4.9).
  • sluice's layers: key isn't in terragucci's SETTING_KEYS (config.ts:1014), so terragucci's own config load refuses a file that uses it. waves.after is the supported way to say the same thing.

Since then:

  • 0.4.40: terragucci init --gate never|on-destructive|always writes gate: into terragucci.yml in its canonical spelling (terragucci#1201, init.ts:456), so an estate set up with the current init and --gate on-destructive is refused by sluice.
  • Next release (terragucci#1220): steps: is a config-check error carrying STEPS_MOVED; hooks move to ci.hooks in chant.workspace.json, which the stage reads itself at base. 0.4.40 still accepts steps:.
  • Next release (terragucci#1212): apply.branches routes roots through chant's ci.branches, and a root two branches match is a hard ConfigError. sluice ignores pushes to anything but the default branch (webhooks/github.ts:241), so roots routed elsewhere never apply.
  • Next release (terragucci#1216): root locks are chant target locks. locks: plan and the /terragucci lock and unlock comments are silently ignored under sluice: terragucci takes and checks them only in comment-apply.ts, and the merge apply sluice runs never checks them. sluice's Postgres advisory locks (runs.ts:171, background.ts:184) are separate and don't conflict.

Done when: each form above parses; --layers matches what terragucci computes for the same checkout, ideally by asking it (terragucci config check --json, or the stage computing layers itself) rather than re-deriving; layers: is deprecated in favour of waves.after with a message; tests cover each form. Also:

  • steps: is refused with terragucci's STEPS_MOVED text once the pin is past 0.4.40.
  • apply.branches is parsed and checked with routeConflicts from @intentius/chant/workspace/ci-branches (2KB, picomatch); conflicts are refused, and the estate page says sluice applies only the default branch's roots (or pushes are routed with appliesFrom).
  • chant.workspace.json is read at base for identity.gates (#8) and ci.hooks, with a warning when hooks exist and minReader is below 0.124.41.
  • locks: plan is refused, the way apply.when: pull-request is (tgconfig.ts:107), until sluice honours chant's locks.

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.

(bug) 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. `src/services/tgconfig.ts` refuses configs written the way terragucci's docs now say, whatever terragucci version runs: - `gate: on-destructive`, the name since 0.4.10 (`GATES` takes only the `on-destroy` alias; terragucci `config.ts:25`). - `approval:` as a map `{mode, require_signed}` (0.4.13; terragucci `config.ts:54`). #8 covers which mode is in effect; this is only parsing it. - `version:` as a per-root map (terragucci `config.ts:488`). Also out of step: - `waves.after` (0.4.5) is ignored, so the `--layers` sluice builds can be in the wrong order (terragucci `detect.ts:871-936`). - `rootDependencies` reads only `key`/`bucket` from `terraform_remote_state`. terragucci also resolves backend-type addresses (`state-address.ts`), locals, `-backend-config` files, Atmos reads and choudoufu `terraform_estate_outputs` (0.4.5, 0.4.8, 0.4.9). - sluice's `layers:` key isn't in terragucci's `SETTING_KEYS` (`config.ts:1014`), so terragucci's own config load refuses a file that uses it. `waves.after` is the supported way to say the same thing. Since then: - 0.4.40: `terragucci init --gate never|on-destructive|always` writes `gate:` into terragucci.yml in its canonical spelling (terragucci#1201, `init.ts:456`), so an estate set up with the current init and `--gate on-destructive` is refused by sluice. - Next release (terragucci#1220): `steps:` is a config-check error carrying `STEPS_MOVED`; hooks move to `ci.hooks` in `chant.workspace.json`, which the stage reads itself at base. 0.4.40 still accepts `steps:`. - Next release (terragucci#1212): `apply.branches` routes roots through chant's `ci.branches`, and a root two branches match is a hard ConfigError. sluice ignores pushes to anything but the default branch (`webhooks/github.ts:241`), so roots routed elsewhere never apply. - Next release (terragucci#1216): root locks are chant target locks. `locks: plan` and the `/terragucci lock` and `unlock` comments are silently ignored under sluice: terragucci takes and checks them only in `comment-apply.ts`, and the merge apply sluice runs never checks them. sluice's Postgres advisory locks (`runs.ts:171`, `background.ts:184`) are separate and don't conflict. Done when: each form above parses; `--layers` matches what terragucci computes for the same checkout, ideally by asking it (`terragucci config check --json`, or the stage computing layers itself) rather than re-deriving; `layers:` is deprecated in favour of `waves.after` with a message; tests cover each form. Also: - `steps:` is refused with terragucci's `STEPS_MOVED` text once the pin is past 0.4.40. - `apply.branches` is parsed and checked with `routeConflicts` from `@intentius/chant/workspace/ci-branches` (2KB, picomatch); conflicts are refused, and the estate page says sluice applies only the default branch's roots (or pushes are routed with `appliesFrom`). - `chant.workspace.json` is read at base for `identity.gates` (#8) and `ci.hooks`, with a warning when hooks exist and `minReader` is below 0.124.41. - `locks: plan` is refused, the way `apply.when: pull-request` is (`tgconfig.ts:107`), until sluice honours chant's locks. 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.
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#14
No description provided.