Moving Static Checks from Terragrunt Plan to Validate Workflow
This push relocates static policy and security checks out of the Terragrunt Plan workflow and into the validate workflow, while renaming the Terragrunt Plan static job to plan-scope so it focuses narrowly on detecting whether a protected live plan is required.
Workflow Reorganization
The terragrunt-plan.yml workflow renames the unprivileged static-policy job to plan-scope. The job drops Nix installation, nix-checks.sh, and static-checks.sh, retaining only live-scope detection and the requires-live-plan output. The terragrunt-plan job now depends on plan-scope instead of static-policy. In validate.yml, the PR trigger gains ready_for_review, and a new Run Static Checks step executes nix develop –command bash scripts/ci/static-checks.sh –offline-verified on pull_request events, covering Checkov and rendered Conftest policies alongside signed offline Nix outputs.
Test and Documentation Updates
The mastodon-release-check-test.py baseline swaps STATIC_RESULT for SCOPE_RESULT. The offline-checks.sh script rewrites its workflow assertions to inspect plan-scope and validate.yml instead of static-policy and terragrunt-plan.yml, removing nix-cache.json and git show references. The terragrunt-plan-stage-test.py adds a static-checks-skipped mutation that flips the static checks condition from pull_request to push, exercising validation workflow handling. The docs/ci-cd.md and openwiki/operations/validation-gates.md pages replace Terragrunt Gate and static-policy terminology with validate / repo and plan-scope, and remove the Terragrunt Gate rollout section.
Verification Status and Platform Transfer
These are configuration and test changes to CI workflows and supporting scripts; no runtime or deployment verification is shown in this push. The next check is to open or synchronize a PR and confirm that plan-scope emits the correct requires-live-plan output, that validate runs static checks on PRs, and that terragrunt-plan skips when no live inputs are present. The pattern of separating scope detection from static enforcement transfers to any platform team running GitOps or infrastructure-as-code pipelines where protected plan execution must be gated on lightweight preflight checks.