You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
generated CI: merge- or comment-triggered apply bound to the PR's plan, affected members only #3183
Part of the boundaries epic, #3166 (infra/platform teams). Builds on PrPlanReport (github lexicon), the GitLab MR report shape, #2300 and #3048.
Problem
chant already posts a sticky plan comment per environment on a pull request (lexicons/github/src/composites/pr-plan-report.ts; Forgejo inherits it; lifecycle plan --report has a GitLab MR shape). What platform teams compare against Atlantis, Digger or Terraform Cloud is the rest of the loop:
apply on merge, or on a /chant apply comment, bound to the plan the PR showed
Affected-member selection from the workspace graph: a change to a member plans it and the members that link to its outputs.
Per-member check runs or statuses, and the existing sticky comment updated with apply results.
Done when
A PR touching one of five Terraform roots plans only that root and its dependents, applies on merge with the approved digest, and refuses with a clear message if the plan changed after review.
Decisions taken while building this (PR linked above):
Apply triggers on merge only. There is no comment-triggered apply, per #3452 ruling 1 ("never apply, approve or unlock by comment"). Approval is chant approve pr-<n> pr-apply --plan <digest> --approver <forge identity> --sign, run by a reviewer. With --require-review, the default in generated CI, the approver must also have a standing approving review on the forge.
Statuses: one commit status per stage (chant/plan, chant/apply), per #3448 ruling 3. Per-member results are in the sticky note and pr-*.json.
The gate is pr-apply under op pr-<n>. The fixed gate name lets identity.gates require signed approvals. The per-PR op keeps approvals apart.
The plan job writes nothing to chant/lifecycle because it runs PR code. The apply job records the pending fact.
Activity
lex00 commentedon Oct 4, 2026
Decisions taken while building this (PR linked above):
chant approve pr-<n> pr-apply --plan <digest> --approver <forge identity> --sign, run by a reviewer. With--require-review, the default in generated CI, the approver must also have a standing approving review on the forge.chant/plan,chant/apply), per #3448 ruling 3. Per-member results are in the sticky note andpr-*.json.pr-applyunder oppr-<n>. The fixed gate name letsidentity.gatesrequire signed approvals. The per-PR op keeps approvals apart.chant/lifecyclebecause it runs PR code. The apply job records the pending fact.inputsMoved. Gated waves (gated waves: a gate per wave bound to the wave's set digest, for any Terraform-family root (choudoufu#1749) #3049) carry moved outputs through.feat(components): generated CI per forge, plan on the pull request an…
feat(components): generated CI per forge, plan on the pull request an…
fix: document changedUnits and catalogue pr-forge.ts egress (#3183 fo…