@intentius/chant 0.124.87 → 0.124.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-pins.d.ts +1 -0
- package/dist/action-pins.d.ts.map +1 -1
- package/dist/action-pins.js +2 -0
- package/dist/actor.d.ts +47 -0
- package/dist/actor.d.ts.map +1 -0
- package/dist/actor.js +56 -0
- package/dist/bundle-check.d.ts +20 -5
- package/dist/bundle-check.d.ts.map +1 -1
- package/dist/bundle-check.js +20 -5
- package/dist/chant-install.d.ts +98 -0
- package/dist/chant-install.d.ts.map +1 -1
- package/dist/chant-install.js +203 -2
- package/dist/ci-base.d.ts +30 -0
- package/dist/ci-base.d.ts.map +1 -0
- package/dist/ci-base.js +33 -0
- package/dist/ci-comment-commands.d.ts +177 -0
- package/dist/ci-comment-commands.d.ts.map +1 -0
- package/dist/ci-comment-commands.js +325 -0
- package/dist/ci-comment-replies.d.ts +40 -0
- package/dist/ci-comment-replies.d.ts.map +1 -0
- package/dist/ci-comment-replies.js +59 -0
- package/dist/ci-commit.d.ts +1 -1
- package/dist/ci-commit.d.ts.map +1 -1
- package/dist/ci-commit.js +1 -2
- package/dist/ci-control.d.ts +1 -1
- package/dist/ci-control.d.ts.map +1 -1
- package/dist/ci-control.js +1 -1
- package/dist/ci-evidence-claims.d.ts +59 -0
- package/dist/ci-evidence-claims.d.ts.map +1 -0
- package/dist/ci-evidence-claims.js +87 -0
- package/dist/ci-evidence-from-job.d.ts +128 -0
- package/dist/ci-evidence-from-job.d.ts.map +1 -0
- package/dist/ci-evidence-from-job.js +203 -0
- package/dist/ci-evidence-jobs.d.ts +68 -4
- package/dist/ci-evidence-jobs.d.ts.map +1 -1
- package/dist/ci-evidence-jobs.js +82 -5
- package/dist/ci-handover.d.ts +12 -0
- package/dist/ci-handover.d.ts.map +1 -1
- package/dist/ci-handover.js +15 -3
- package/dist/ci-identity.d.ts +32 -6
- package/dist/ci-identity.d.ts.map +1 -1
- package/dist/ci-identity.js +40 -8
- package/dist/ci-image.d.ts +65 -10
- package/dist/ci-image.d.ts.map +1 -1
- package/dist/ci-image.js +101 -22
- package/dist/ci-jobs.d.ts +1 -1
- package/dist/ci-jobs.d.ts.map +1 -1
- package/dist/ci-jobs.js +7 -2
- package/dist/ci-login.d.ts +75 -13
- package/dist/ci-login.d.ts.map +1 -1
- package/dist/ci-login.js +89 -37
- package/dist/ci-note-commands.d.ts +63 -3
- package/dist/ci-note-commands.d.ts.map +1 -1
- package/dist/ci-note-commands.js +69 -35
- package/dist/ci-product-words.d.ts +62 -1
- package/dist/ci-product-words.d.ts.map +1 -1
- package/dist/ci-product-words.js +52 -1
- package/dist/ci-product.d.ts +52 -2
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +51 -2
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/build.js +29 -2
- package/dist/cli/handlers/approve-confirm.d.ts +14 -0
- package/dist/cli/handlers/approve-confirm.d.ts.map +1 -1
- package/dist/cli/handlers/approve-confirm.js +46 -0
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +2 -1
- package/dist/cli/handlers/build.d.ts +1 -1
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/build.js +22 -1
- package/dist/cli/handlers/ci-check.d.ts +1 -1
- package/dist/cli/handlers/ci-check.d.ts.map +1 -1
- package/dist/cli/handlers/ci-check.js +37 -7
- package/dist/cli/handlers/ci-evidence.d.ts.map +1 -1
- package/dist/cli/handlers/ci-evidence.js +255 -20
- package/dist/cli/handlers/ci-forge-check.d.ts.map +1 -1
- package/dist/cli/handlers/ci-forge-check.js +34 -17
- package/dist/cli/handlers/components.d.ts.map +1 -1
- package/dist/cli/handlers/components.js +3 -1
- package/dist/cli/handlers/generated-check.d.ts +11 -0
- package/dist/cli/handlers/generated-check.d.ts.map +1 -0
- package/dist/cli/handlers/generated-check.js +71 -0
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.js +3 -0
- package/dist/cli/handlers/local-chant.d.ts +13 -0
- package/dist/cli/handlers/local-chant.d.ts.map +1 -1
- package/dist/cli/handlers/local-chant.js +42 -1
- package/dist/cli/handlers/lock.d.ts.map +1 -1
- package/dist/cli/handlers/lock.js +121 -4
- package/dist/cli/handlers/pr-comment.d.ts +21 -0
- package/dist/cli/handlers/pr-comment.d.ts.map +1 -0
- package/dist/cli/handlers/pr-comment.js +112 -0
- package/dist/cli/handlers/pr-env.d.ts.map +1 -1
- package/dist/cli/handlers/pr-env.js +6 -3
- package/dist/cli/handlers/pr.d.ts +23 -1
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +97 -14
- package/dist/cli/handlers/promote.d.ts.map +1 -1
- package/dist/cli/handlers/promote.js +2 -1
- package/dist/cli/handlers/release.d.ts.map +1 -1
- package/dist/cli/handlers/release.js +11 -2
- package/dist/cli/handlers/run-wave.d.ts.map +1 -1
- package/dist/cli/handlers/run-wave.js +36 -2
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/handlers/run.js +2 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +60 -4
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +82 -0
- package/dist/cli/registry.d.ts +35 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/auto-release.d.ts.map +1 -1
- package/dist/components/auto-release.js +2 -1
- package/dist/components/check-hooks.d.ts +10 -0
- package/dist/components/check-hooks.d.ts.map +1 -1
- package/dist/components/check-hooks.js +18 -0
- package/dist/components/pr-checks.d.ts +169 -0
- package/dist/components/pr-checks.d.ts.map +1 -0
- package/dist/components/pr-checks.js +180 -0
- package/dist/components/pr-pipeline.d.ts +38 -0
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +6 -1
- package/dist/components/product-pipeline.d.ts +58 -2
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +76 -9
- package/dist/components/product-plan.d.ts +445 -7
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +426 -15
- package/dist/config.d.ts +10 -6
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +11 -6
- package/dist/control/consumers.d.ts +6 -0
- package/dist/control/consumers.d.ts.map +1 -1
- package/dist/control/consumers.js +6 -0
- package/dist/dead-guards.d.ts.map +1 -1
- package/dist/dead-guards.js +9 -6
- package/dist/discovery/files.d.ts +1 -1
- package/dist/discovery/files.js +1 -1
- package/dist/drift-issue.d.ts +20 -3
- package/dist/drift-issue.d.ts.map +1 -1
- package/dist/drift-issue.js +16 -0
- package/dist/drift-record.d.ts +52 -5
- package/dist/drift-record.d.ts.map +1 -1
- package/dist/drift-record.js +46 -6
- package/dist/floor-table.d.ts +6 -6
- package/dist/floor-table.d.ts.map +1 -1
- package/dist/floor-table.data.d.ts.map +1 -1
- package/dist/floor-table.data.js +81 -21
- package/dist/floor-table.js +10 -7
- package/dist/forge-check/contract.d.ts +19 -1
- package/dist/forge-check/contract.d.ts.map +1 -1
- package/dist/forge-check/contract.js +8 -2
- package/dist/forge-check/index.d.ts +4 -0
- package/dist/forge-check/index.d.ts.map +1 -1
- package/dist/forge-check/index.js +4 -0
- package/dist/forge-flags.d.ts +10 -0
- package/dist/forge-flags.d.ts.map +1 -1
- package/dist/forge-flags.js +31 -0
- package/dist/forge-remote.d.ts +47 -0
- package/dist/forge-remote.d.ts.map +1 -0
- package/dist/forge-remote.js +69 -0
- package/dist/gate-resume-run.d.ts +9 -1
- package/dist/gate-resume-run.d.ts.map +1 -1
- package/dist/gate-resume-run.js +26 -3
- package/dist/generated-check.d.ts +88 -0
- package/dist/generated-check.d.ts.map +1 -0
- package/dist/generated-check.js +248 -0
- package/dist/image-pins.d.ts +26 -0
- package/dist/image-pins.d.ts.map +1 -0
- package/dist/image-pins.js +19 -0
- package/dist/lexicon.d.ts +27 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/git.d.ts +11 -0
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lifecycle/git.js +30 -3
- package/dist/lifecycle/publish-npm.d.ts +26 -0
- package/dist/lifecycle/publish-npm.d.ts.map +1 -1
- package/dist/lifecycle/publish-npm.js +76 -4
- package/dist/lifecycle/reach-locks.d.ts +131 -0
- package/dist/lifecycle/reach-locks.d.ts.map +1 -0
- package/dist/lifecycle/reach-locks.js +118 -0
- package/dist/lifecycle/release-cut.d.ts +3 -1
- package/dist/lifecycle/release-cut.d.ts.map +1 -1
- package/dist/lifecycle/release-cut.js +15 -0
- package/dist/lifecycle/release-images.d.ts +22 -1
- package/dist/lifecycle/release-images.d.ts.map +1 -1
- package/dist/lifecycle/release-images.js +26 -3
- package/dist/lifecycle/release-ledger.d.ts +4 -3
- package/dist/lifecycle/release-ledger.d.ts.map +1 -1
- package/dist/lifecycle/release-ledger.js +3 -2
- package/dist/local-chant.d.ts +57 -3
- package/dist/local-chant.d.ts.map +1 -1
- package/dist/local-chant.js +122 -13
- package/dist/notify-product.d.ts +12 -3
- package/dist/notify-product.d.ts.map +1 -1
- package/dist/notify-product.js +10 -6
- package/dist/op/activities/source-release.d.ts.map +1 -1
- package/dist/op/activities/source-release.js +2 -1
- package/dist/op/activities/source-rollback.d.ts.map +1 -1
- package/dist/op/activities/source-rollback.js +2 -1
- package/dist/op/index.d.ts +2 -0
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +1 -0
- package/dist/op/op-waves-evidence-jobs.d.ts +97 -0
- package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -0
- package/dist/op/op-waves-evidence-jobs.js +118 -0
- package/dist/op/op-waves-evidence.d.ts +12 -1
- package/dist/op/op-waves-evidence.d.ts.map +1 -1
- package/dist/op/op-waves-evidence.js +23 -2
- package/dist/op/op-waves-render-spec.d.ts +100 -0
- package/dist/op/op-waves-render-spec.d.ts.map +1 -0
- package/dist/op/op-waves-render-spec.js +162 -0
- package/dist/op/op-waves-run.d.ts +14 -1
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +56 -4
- package/dist/op/op-waves.d.ts +12 -0
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +14 -1
- package/dist/op/schedule-overdue.d.ts +39 -2
- package/dist/op/schedule-overdue.d.ts.map +1 -1
- package/dist/op/schedule-overdue.js +148 -10
- package/dist/op/wave-stop.d.ts +64 -0
- package/dist/op/wave-stop.d.ts.map +1 -0
- package/dist/op/wave-stop.js +127 -0
- package/dist/planned-files.d.ts +76 -0
- package/dist/planned-files.d.ts.map +1 -0
- package/dist/planned-files.js +108 -0
- package/dist/pr-forge-job.d.ts +22 -0
- package/dist/pr-forge-job.d.ts.map +1 -0
- package/dist/pr-forge-job.js +46 -0
- package/dist/pr-forge-reads.d.ts +21 -1
- package/dist/pr-forge-reads.d.ts.map +1 -1
- package/dist/pr-forge-reads.js +19 -1
- package/dist/pr-forge.d.ts +7 -1
- package/dist/pr-forge.d.ts.map +1 -1
- package/dist/pr-forge.js +7 -2
- package/dist/pr-loop.d.ts +3 -6
- package/dist/pr-loop.d.ts.map +1 -1
- package/dist/pr-loop.js +4 -81
- package/dist/pr-plan-note.d.ts +121 -0
- package/dist/pr-plan-note.d.ts.map +1 -1
- package/dist/pr-plan-note.js +104 -1
- package/dist/pr-plan-record.d.ts +47 -0
- package/dist/pr-plan-record.d.ts.map +1 -0
- package/dist/pr-plan-record.js +89 -0
- package/dist/pr-post.d.ts +68 -3
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +218 -13
- package/dist/pr-requires.d.ts +8 -0
- package/dist/pr-requires.d.ts.map +1 -1
- package/dist/pr-requires.js +3 -1
- package/dist/pr-status.d.ts +16 -0
- package/dist/pr-status.d.ts.map +1 -0
- package/dist/pr-status.js +90 -0
- package/dist/ref-gate-init.d.ts +90 -0
- package/dist/ref-gate-init.d.ts.map +1 -0
- package/dist/ref-gate-init.js +155 -0
- package/dist/ref-gate-rules.d.ts +19 -0
- package/dist/ref-gate-rules.d.ts.map +1 -0
- package/dist/ref-gate-rules.js +17 -0
- package/dist/release-floors.d.ts +100 -16
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +101 -17
- package/dist/render-module.d.ts +15 -0
- package/dist/render-module.d.ts.map +1 -0
- package/dist/render-module.js +73 -0
- package/dist/state-migration.d.ts +24 -1
- package/dist/state-migration.d.ts.map +1 -1
- package/dist/state-migration.js +39 -4
- package/dist/state-unlock.d.ts +32 -1
- package/dist/state-unlock.d.ts.map +1 -1
- package/dist/state-unlock.js +31 -0
- package/dist/wave-runtime.mjs +307 -297
- package/dist/workspace/ci-green-cli.d.ts.map +1 -1
- package/dist/workspace/ci-green-cli.js +15 -8
- package/dist/workspace/drift-cli.d.ts +1 -1
- package/dist/workspace/drift-cli.d.ts.map +1 -1
- package/dist/workspace/drift-cli.js +5 -12
- package/dist/workspace/forge-work.d.ts +3 -2
- package/dist/workspace/forge-work.d.ts.map +1 -1
- package/dist/workspace/forge-work.js +7 -17
- package/dist/workspace/lexicon-outputs.js +2 -2
- package/dist/workspace/release-train.d.ts.map +1 -1
- package/dist/workspace/release-train.js +2 -1
- package/dist/workspace/release-workflow.d.ts +27 -3
- package/dist/workspace/release-workflow.d.ts.map +1 -1
- package/dist/workspace/release-workflow.js +52 -7
- package/dist/workspace/trust/check-evidence-report.d.ts +25 -2
- package/dist/workspace/trust/check-evidence-report.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence-report.js +28 -8
- package/dist/workspace/trust/check-evidence.d.ts +13 -1
- package/dist/workspace/trust/check-evidence.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence.js +8 -3
- package/dist/workspace/trust/evidence.d.ts +5 -0
- package/dist/workspace/trust/evidence.d.ts.map +1 -1
- package/dist/workspace/trust/evidence.js +5 -0
- package/dist/workspace/trust/open-evidence.d.ts +67 -0
- package/dist/workspace/trust/open-evidence.d.ts.map +1 -0
- package/dist/workspace/trust/open-evidence.js +92 -0
- package/dist/workspace/trust/ref-gate-cli.d.ts +10 -1
- package/dist/workspace/trust/ref-gate-cli.d.ts.map +1 -1
- package/dist/workspace/trust/ref-gate-cli.js +93 -11
- package/dist/workspace/trust/ref-gate.d.ts +61 -2
- package/dist/workspace/trust/ref-gate.d.ts.map +1 -1
- package/dist/workspace/trust/ref-gate.js +72 -7
- package/dist/workspace/workspace-run.d.ts.map +1 -1
- package/dist/workspace/workspace-run.js +2 -1
- package/package.json +1 -1
- package/src/action-pins.ts +2 -0
- package/src/actor.test.ts +78 -0
- package/src/actor.ts +79 -0
- package/src/bundle-check.test.ts +22 -0
- package/src/bundle-check.ts +33 -5
- package/src/chant-install.test.ts +108 -1
- package/src/chant-install.ts +242 -2
- package/src/ci-base.test.ts +41 -0
- package/src/ci-base.ts +43 -0
- package/src/ci-comment-commands.test.ts +376 -0
- package/src/ci-comment-commands.ts +389 -0
- package/src/ci-comment-replies.ts +78 -0
- package/src/ci-commit.test.ts +51 -6
- package/src/ci-commit.ts +1 -2
- package/src/ci-control.ts +1 -0
- package/src/ci-evidence-claims.ts +102 -0
- package/src/ci-evidence-from-job.test.ts +165 -0
- package/src/ci-evidence-from-job.ts +251 -0
- package/src/ci-evidence-jobs.ts +88 -6
- package/src/ci-handover.ts +16 -3
- package/src/ci-identity.test.ts +3 -3
- package/src/ci-identity.ts +51 -11
- package/src/ci-image.test.ts +187 -16
- package/src/ci-image.ts +157 -25
- package/src/ci-jobs.ts +7 -2
- package/src/ci-login.test.ts +131 -3
- package/src/ci-login.token-drop.test.ts +204 -0
- package/src/ci-login.ts +137 -39
- package/src/ci-note-commands.ts +104 -41
- package/src/ci-product-words.ts +89 -0
- package/src/ci-product.ts +62 -1
- package/src/cli/commands/__fixtures__/source-dir-root/migrations/0001-init/backfill.ts +3 -0
- package/src/cli/commands/build.test.ts +41 -0
- package/src/cli/commands/build.ts +27 -2
- package/src/cli/handlers/approve-confirm.test.ts +35 -0
- package/src/cli/handlers/approve-confirm.ts +44 -0
- package/src/cli/handlers/approve.ts +2 -1
- package/src/cli/handlers/build-source-dir.test.ts +4 -0
- package/src/cli/handlers/build.ts +20 -2
- package/src/cli/handlers/ci-check.ts +37 -7
- package/src/cli/handlers/ci-evidence-open.test.ts +164 -0
- package/src/cli/handlers/ci-evidence.ts +233 -18
- package/src/cli/handlers/ci-forge-check.ts +22 -9
- package/src/cli/handlers/components.ts +3 -1
- package/src/cli/handlers/generated-check.ts +69 -0
- package/src/cli/handlers/lifecycle.test.ts +20 -0
- package/src/cli/handlers/lifecycle.ts +4 -0
- package/src/cli/handlers/local-chant.ts +39 -1
- package/src/cli/handlers/lock-reach.test.ts +103 -0
- package/src/cli/handlers/lock.ts +100 -4
- package/src/cli/handlers/pr-comment.ts +104 -0
- package/src/cli/handlers/pr-env.ts +6 -3
- package/src/cli/handlers/pr-record.test.ts +1 -1
- package/src/cli/handlers/pr.ts +93 -15
- package/src/cli/handlers/promote.ts +2 -1
- package/src/cli/handlers/release.e2e.test.ts +35 -0
- package/src/cli/handlers/release.ts +14 -2
- package/src/cli/handlers/run-wave.ts +35 -2
- package/src/cli/handlers/run.ts +2 -1
- package/src/cli/main.ts +60 -4
- package/src/cli/parse-args.ts +58 -0
- package/src/cli/registry.ts +35 -0
- package/src/components/auto-release.ts +2 -1
- package/src/components/check-hooks.ts +22 -0
- package/src/components/check-report-summary.test.ts +78 -0
- package/src/components/pr-checks.ts +254 -0
- package/src/components/pr-pipeline.ts +43 -1
- package/src/components/product-pipeline.ts +113 -9
- package/src/components/product-plan.test.ts +140 -1
- package/src/components/product-plan.ts +707 -20
- package/src/config.ts +13 -8
- package/src/control/consumers.ts +7 -0
- package/src/dead-guards.test.ts +27 -5
- package/src/dead-guards.ts +9 -6
- package/src/discovery/files.ts +1 -1
- package/src/drift-issue.test.ts +29 -1
- package/src/drift-issue.ts +28 -3
- package/src/drift-record.test.ts +45 -0
- package/src/drift-record.ts +71 -6
- package/src/floor-table.data.ts +81 -21
- package/src/floor-table.ts +12 -9
- package/src/forge-check/contract.ts +23 -2
- package/src/forge-check/forge-check.test.ts +25 -0
- package/src/forge-check/index.ts +4 -0
- package/src/forge-flags.test.ts +25 -1
- package/src/forge-flags.ts +34 -0
- package/src/forge-remote.test.ts +37 -0
- package/src/forge-remote.ts +79 -0
- package/src/gate-resume-run.ts +27 -3
- package/src/generated-check.e2e.test.ts +118 -0
- package/src/generated-check.test.ts +170 -0
- package/src/generated-check.ts +310 -0
- package/src/image-pins.ts +31 -0
- package/src/lexicon.ts +28 -0
- package/src/lifecycle/git.test.ts +48 -0
- package/src/lifecycle/git.ts +27 -4
- package/src/lifecycle/publish-npm.ts +87 -4
- package/src/lifecycle/reach-locks.test.ts +87 -0
- package/src/lifecycle/reach-locks.ts +169 -0
- package/src/lifecycle/release-catalog.test.ts +2 -2
- package/src/lifecycle/release-cut.ts +17 -1
- package/src/lifecycle/release-images-dockerfile.test.ts +20 -0
- package/src/lifecycle/release-images.test.ts +100 -0
- package/src/lifecycle/release-images.ts +38 -3
- package/src/lifecycle/release-ledger.ts +4 -3
- package/src/local-chant.e2e.test.ts +81 -6
- package/src/local-chant.test.ts +22 -3
- package/src/local-chant.ts +130 -13
- package/src/notify-product.ts +19 -8
- package/src/op/activities/source-release.ts +2 -1
- package/src/op/activities/source-rollback.ts +2 -1
- package/src/op/gate-resume.test.ts +27 -0
- package/src/op/index.ts +10 -0
- package/src/op/op-waves-evidence-jobs.ts +140 -0
- package/src/op/op-waves-evidence.test.ts +36 -3
- package/src/op/op-waves-evidence.ts +23 -3
- package/src/op/op-waves-notify-words.test.ts +18 -0
- package/src/op/op-waves-render-spec.test.ts +160 -0
- package/src/op/op-waves-render-spec.ts +171 -0
- package/src/op/op-waves-run.ts +59 -3
- package/src/op/op-waves.ts +16 -2
- package/src/op/schedule-overdue.test.ts +126 -1
- package/src/op/schedule-overdue.ts +164 -12
- package/src/op/wave-stop.test.ts +72 -0
- package/src/op/wave-stop.ts +137 -0
- package/src/planned-files.test.ts +80 -0
- package/src/planned-files.ts +134 -0
- package/src/pr-forge-job.test.ts +53 -0
- package/src/pr-forge-job.ts +46 -0
- package/src/pr-forge-reads-compare.test.ts +2 -1
- package/src/pr-forge-reads.ts +37 -1
- package/src/pr-forge.ts +14 -3
- package/src/pr-loop-narrowed.test.ts +2 -1
- package/src/pr-loop-words.test.ts +2 -1
- package/src/pr-loop.test.ts +1 -2
- package/src/pr-loop.ts +4 -80
- package/src/pr-plan-note.ts +184 -3
- package/src/pr-plan-record.test.ts +75 -0
- package/src/pr-plan-record.ts +101 -0
- package/src/pr-post-plan-note.test.ts +60 -0
- package/src/pr-post-replan.test.ts +144 -0
- package/src/pr-post-subject.test.ts +230 -0
- package/src/pr-post.test.ts +32 -1
- package/src/pr-post.ts +254 -15
- package/src/pr-requires.test.ts +20 -0
- package/src/pr-requires.ts +10 -1
- package/src/pr-status.ts +91 -0
- package/src/ref-gate-init.ts +208 -0
- package/src/ref-gate-rules.ts +26 -0
- package/src/release-floors.ts +139 -17
- package/src/render-module.ts +73 -0
- package/src/state-migration-record.test.ts +89 -0
- package/src/state-migration.test.ts +1 -1
- package/src/state-migration.ts +52 -4
- package/src/state-unlock.test.ts +33 -1
- package/src/state-unlock.ts +49 -1
- package/src/workspace/ci-green-cli.ts +14 -7
- package/src/workspace/ci-green-workflow.test.ts +32 -1
- package/src/workspace/drift-cli.ts +6 -18
- package/src/workspace/forge-work.ts +7 -14
- package/src/workspace/lexicon-outputs.ts +2 -2
- package/src/workspace/release-train.ts +2 -1
- package/src/workspace/release-workflow.test.ts +104 -3
- package/src/workspace/release-workflow.ts +60 -9
- package/src/workspace/trust/check-evidence-report.ts +39 -8
- package/src/workspace/trust/check-evidence.test.ts +5 -0
- package/src/workspace/trust/check-evidence.ts +17 -5
- package/src/workspace/trust/evidence.ts +5 -0
- package/src/workspace/trust/open-evidence.ts +129 -0
- package/src/workspace/trust/ref-gate-cli.ts +88 -10
- package/src/workspace/trust/ref-gate-pieces.test.ts +220 -0
- package/src/workspace/trust/ref-gate.e2e.test.ts +17 -0
- package/src/workspace/trust/ref-gate.test.ts +10 -0
- package/src/workspace/trust/ref-gate.ts +87 -6
- package/src/workspace/workspace-run.ts +2 -1
package/src/floor-table.data.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Written by scripts/floor-table.ts (#4792) from the floor constants under
|
|
2
|
-
// packages/core/src
|
|
2
|
+
// packages/core/src and in each lexicon's src/chant-floors.ts (#4916); run
|
|
3
|
+
// `npx tsx scripts/floor-table.ts` after adding one.
|
|
3
4
|
// scripts/release-floors.ts fails while this file is stale.
|
|
4
5
|
import { NEXT_RELEASE } from "./release-floors";
|
|
5
6
|
import type { FloorRow } from "./floor-table";
|
|
@@ -10,6 +11,7 @@ export const FLOOR_ROWS: readonly FloorRow[] = [
|
|
|
10
11
|
{ name: "CAPABILITY_TEMPLATES_FLOOR", version: "0.124.54", gates: "The first chant whose capabilities document carries `templates` (#4531).", issue: "#4531", file: "capabilities/templates.ts", modules: ["@intentius/chant/capabilities/templates"] },
|
|
11
12
|
{ name: "CHANGE_SET_GROUP_FLOOR", version: "0.124.54", gates: "The first chant whose change set can carry a member's `group` (ws-107, #4440).", issue: "#4440", file: "change-set.ts", modules: ["@intentius/chant/change-set"] },
|
|
12
13
|
{ name: "CHANGE_SET_PLACEHOLDERS_FLOOR", version: "0.124.54", gates: "The first chant whose change set can carry a member's `placeholders` (#4463).", issue: "#4463", file: "change-set.ts", modules: ["@intentius/chant/change-set"] },
|
|
14
|
+
{ name: "CHANT_RUN_FLOOR", version: "0.124.88", gates: "The first chant with `runChant`, `lastJsonLine`, `installResolveFallback` and `fallbackImportArgs` in `@intentius/chant/chant-install` (#4889): a product runs chant and reads its `--json` document, and a file with no `node_modules` above it imports the product's packages, with no code of the product's own.", issue: "#4889", file: "chant-install.ts", modules: ["@intentius/chant/chant-install"] },
|
|
13
15
|
{ name: "CI_AGENT_FLOOR", version: "0.124.55", gates: "The first chant with the agent job and the scheduled Op spec's `agent` and `runner` (#4616).", issue: "#4616", file: "ci-agent.ts", modules: ["@intentius/chant/ci-agent","@intentius/chant/ci-product"] },
|
|
14
16
|
{ name: "CI_AUDIT_FLOOR", version: "0.124.56", gates: "The first chant with drift attribution and the unrecorded writer audit in core.", file: "ci-audit/index.ts", modules: ["@intentius/chant/ci-audit","@intentius/chant/ci-audit/index"] },
|
|
15
17
|
{ name: "CI_COMMIT_FLOOR", version: "0.124.71", gates: "The first chant with the commit job and the scheduled Op spec's `commit` (#4722).", issue: "#4722", file: "ci-commit.ts", modules: ["@intentius/chant/ci-commit"] },
|
|
@@ -18,7 +20,7 @@ export const FLOOR_ROWS: readonly FloorRow[] = [
|
|
|
18
20
|
{ name: "CI_COMMIT_REPLY_FLOOR", version: "0.124.77", gates: "The first chant whose commit job takes `commandEnv`, gives the command `CHANT_COMMIT_PR`, keeps the tail of its standard error and replies with a product's refusal text (setCommitRefusalReply) (#4724).", issue: "#4724", file: "ci-commit.ts", modules: ["@intentius/chant/ci-commit"] },
|
|
19
21
|
{ name: "CI_COMMIT_ARG_FLOOR", version: "0.124.78", gates: "The first chant whose commit job takes `commentArg`, one argument after the comment's word passed into the argv (#4820).", issue: "#4820", file: "ci-commit.ts", modules: ["@intentius/chant/ci-commit"] },
|
|
20
22
|
{ name: "CI_COMMIT_HARNESS_BREAK_FLOOR", version: "0.124.78", gates: "The first chant whose `commit land` reads COMMIT_HARNESS_BREAK_ENV in a BREAK arm of chant's e2e harness (#4836).", issue: "#4836", file: "ci-commit.ts", modules: ["@intentius/chant/ci-commit"] },
|
|
21
|
-
{ name: "CI_COMMIT_REFUSAL_REPLY_FLOOR", version:
|
|
23
|
+
{ name: "CI_COMMIT_REFUSAL_REPLY_FLOOR", version: "0.124.86", gates: "The first chant whose `commit land` replies to a comment refused as it is read, such as a bad argument or a stray word (#4838).", issue: "#4838", file: "ci-commit.ts", modules: ["@intentius/chant/ci-commit"] },
|
|
22
24
|
{ name: "CI_CONTROL_FLOOR", version: "0.124.55", gates: "The first chant with `@intentius/chant/ci-control` (#4568).", issue: "#4568", file: "ci-control.ts", modules: ["@intentius/chant/ci-control"] },
|
|
23
25
|
{ name: "CONTROL_APPLIED_FLOOR", version: "0.124.55", gates: "The first chant that records the applies a dispatch carries and marks cross-stack edges (#4617).", issue: "#4617", file: "ci-control.ts", modules: ["@intentius/chant/ci-control"] },
|
|
24
26
|
{ name: "CONTROL_NOTE_CHECKOUT_FLOOR", version: "0.124.55", gates: "The first chant whose note jobs read the control repo for the cross-stack edges (#4619).", issue: "#4619", file: "ci-control.ts", modules: ["@intentius/chant/ci-control"] },
|
|
@@ -30,7 +32,16 @@ export const FLOOR_ROWS: readonly FloorRow[] = [
|
|
|
30
32
|
{ name: "CI_PRODUCT_FLOOR", version: "0.124.55", gates: "The first chant with the product pipeline (#4550): the words, the `pull-request` op-wave approval source, `runCommandInProcess(argv, { words })`, the lexicons' `ciSetup`, and the member detail sections of the note (#4573).", issue: "#4573", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
31
33
|
{ name: "NOTIFY_RELAY_FLOOR", version: "0.124.55", gates: "The first chant with `chant notify relay` and the notify relay buttons (#4611).", issue: "#4611", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
32
34
|
{ name: "PR_PREVIEW_FLOOR", version: "0.124.55", gates: "The first chant whose product pipeline has the comment preview (`previewComment`, `build --pr-loop --preview-comment`) and whose `components pr-plan` takes `--target` (#4620).", issue: "#4620", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
33
|
-
{ name: "PRODUCT_PLAN_FLOOR", version:
|
|
35
|
+
{ name: "PRODUCT_PLAN_FLOOR", version: "0.124.86", gates: "The product plan (#4799): `productPipelineJobs(forge, env, { words, productPlan })` runs the product's plan verb in place of `pr-plan`, one plan job and one plan-note job per target, each with only its target's variables and secrets and an optional write probe, and `pr-post` posts the plan note hand-off the verb wrote (`planNoteHandoff`, `PR_PLAN_NOTE_FILE` in `@intentius/chant/pr-plan-note`).", issue: "#4799", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
36
|
+
{ name: "PRODUCT_PLAN_STEPS_FLOOR", version: "0.124.88", gates: "The first chant whose product plan carries the plan-job steps beside the plan verb and the note job's own lines (#4899, #4931): `productPlan.login` and a target's `login` (ci-login) with the job's OIDC token, `idTokens`, `pending`, `controlRead`, `setup` steps, job-level `env`, `report`, `concurrency`, the comment re-plan `replan`, and `noteSteps`; a hand-off's `marker` kept under the note words' `productMarker`; and the note job's notices and overdue Ops under a hand-off's counts.", issue: "#4899", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
37
|
+
{ name: "COMMENT_LEAVES_COMMIT_FLOOR", version: "0.124.88", gates: "The first chant whose `parseProductComment` takes `leaveCommit` and that has `commitWordOf` (#4890): a comment job that is not the commit job leaves every comment for a commit word to it, a malformed one included, so the comment gets one reply.", issue: "#4890", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
38
|
+
{ name: "COMMENT_COMMANDS_FLOOR", version: NEXT_RELEASE, gates: "The first chant with the comment job on GitHub and Forgejo and the replies to commands no job runs (#4946): `commentJob` in the product pipeline (`chant components pr-comment`, `answerProductComment` in `@intentius/chant/ci-comment-commands`), which replies to a refusal and to a command the pipeline runs no job for, and with waves on merge starts a merged pull request's apply again; the words' `replies` and an alias's `refuse`, which the GitLab note poll reads too, as `chantNoteRuns`' `members`; `retryApply`; and `locks: \"plan\"` in GitHub's and Forgejo's product plan, with the lock, unlock and comment lock jobs.", issue: "#4946", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
39
|
+
{ name: "PRODUCT_PLAN_REACH_LOCKS_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose product plan locks what a change reaches (#4979): `productPlan.reach`, a reach line the lock job runs at the target branch's commit with `chant lock --reach` (`@intentius/chant/lifecycle/reach-locks`), on GitHub, Forgejo and GitLab, where the lock job runs in the plan notes pipeline with `--open` beside the comment lock and unlock jobs; and whose comment job answers a re-plan comment with flags the product plan's re-plan cannot take (`noPlanFlags`).", issue: "#4979", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
40
|
+
{ name: "WAVE_STOP_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose comment job stops a merged pull request's re-run at a wave (#4979): `/<product> apply wave-<n>` writes a stop for the merge commit on `chant/lifecycle` (`_waves/<op>.stops.json`, `@intentius/chant/op/wave-stop`) before GitHub's re-run or Forgejo's dispatch, and `chant run wave` leaves each wave after n waiting (exit 3).", issue: "#4979", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
41
|
+
{ name: "PRODUCT_PLAN_WATCHES_FLOOR", version: "0.124.88", gates: "The first chant whose product plan takes `watches`, the product's own scheduled jobs the note job's `pr-post` checks for having stopped with the job's token (#4888), and whose `checkOverdueOps` and `overdueOpsAt` take a product's `logPrefix` and `label`.", issue: "#4888", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
42
|
+
{ name: "PRODUCT_PLAN_RECORD_FLOOR", version: "0.124.88", gates: "The first chant whose product plan takes `record` (#4899): the plan step writes the plan job's run record into the hand-off, and the note job keeps it as Op `pr-plan` on `chant/lifecycle` with `pr-post --record-run <plan job>` (`--open` on GitLab), as `chant ci run plan --in-place` records `pr-plan`'s.", issue: "#4899", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
43
|
+
{ name: "PRODUCT_PLAN_REPLAN_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose product plan carries what terragucci's and sql-yodeler's plan jobs did themselves (#4963, #4951): `trade` (a plan's or a target's) before the checkout, `replan: { dispatch, reply, notAffected }` (a re-plan from `workflow_dispatch`, a reply to a comment no other job takes, `pr-post --not-affected`), `previousMarker` (`CHANT_PLAN_PREVIOUS_MARKER`), `noteSteps.pullRequest`, a `PrReport`'s `marker`, and a hand-off of the product's own note text (`planBodyHandoff`).", issue: "#4963", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
44
|
+
{ name: "PRODUCT_PLAN_SUBJECT_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose note job compares the plan's subject with the previous note's (#4972), on GitHub, Forgejo and GitLab: a plan note hand-off's `subject` (`PrPlanSubject`, an id and named parts) is kept in the note, and `pr-post` adds the note words' `sinceLast` line, naming the parts added, gone and changed (`subjectParts`), when the previous note kept another id.", issue: "#4972", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
34
45
|
{ name: "PRODUCT_ACTIONS_FLOOR", version: "0.124.58", gates: "Day-2 actions in the product pipeline (#4654): the `action` comment command counted as answered by the product's own workflow (`productPipelineJobs(forge, env, { words, actions: true })`), or the pipeline's own action job (`actionJob`, `build --pr-loop --action-job`), which answers the comment and a dispatch with a member and an action input, and runs the product's action verb with `--from-event`.", issue: "#4654", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
35
46
|
{ name: "APPROVAL_STATUS_FLOOR", version: "0.124.56", gates: "The approval status before merge (#4630): under a `pr-review` wave, the op waves generators add a job that posts `<product>/approval` on each open pull request's head.", issue: "#4630", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
36
47
|
{ name: "APPROVAL_STATUS_PULL_REQUEST_FLOOR", version: "0.124.56", gates: "The approval status for `pull-request` waves too (#4630, 2026-10-28 ruling): the generators add the record-plans and approval-status jobs for a spec whose waves take the pull request's own approval, and the status reads that approval's coverage of each wave's change set.", issue: "#4630", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
@@ -39,6 +50,7 @@ export const FLOOR_ROWS: readonly FloorRow[] = [
|
|
|
39
50
|
{ name: "FORGEJO_RUN_GROUP_FLOOR", version: "0.124.77", gates: "The Forgejo generators write a workflow-level run group a product asks for (#4771): `runGroup: \"pull-request\"` on the components pipeline (`chant build --components --generate forgejo --run-group pull-request`) and `runGroup: \"commit\"` on an op waves spec (its `options`, or `chant run --generate forgejo --spec <file> --run-group commit`).", issue: "#4771", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
40
51
|
{ name: "PR_LOOP_CONTROL_FLOOR", version: "0.124.77", gates: "`chant build --pr-loop` takes the control repo (#4772): `--control <repo>` and `--control-setting <key>=<value>` (op, member, readTokenSecret, and the rest of the control settings) are the pull request loop's `control`, so the note job the build writes reads the control repo's records itself, the step `productPipelineJobs(...).post.control` returns.", issue: "#4772", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
41
52
|
{ name: "PRODUCT_MCP_HOOK_FLOOR", version: "0.124.55", gates: "Telemetry and MCP (#4555).", issue: "#4555", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
53
|
+
{ name: "APPROVE_CONFIRM_FLOOR", version: "0.124.55", gates: "The first chant with `confirmApproval` here, the type-the-name confirmation a product's approve word asks through (#4575).", issue: "#4575", file: "cli/handlers/approve-confirm.ts", modules: ["@intentius/chant/cli/handlers/approve-confirm"] },
|
|
42
54
|
{ name: "PRODUCT_MCP_PROPOSE_FLOOR", version: "0.124.58", gates: "The first chant whose `chant serve mcp` has the `--propose` tier and serves `forgeWrite` product tools on it (chant#4655).", issue: "#4655", file: "cli/mcp/product-tools.ts", modules: ["@intentius/chant/ci-product","@intentius/chant/cli/mcp/product-tools"] },
|
|
43
55
|
{ name: "MCP_TOOL_ANNOTATIONS_FLOOR", version: "0.124.79", gates: "The first chant whose `tools/list` gives MCP tool annotations: a tool's `annotations`, and `readOnlyHint`/`destructiveHint` from `readOnly: true` or `forgeWrite: true` (chant#4823).", issue: "#4823", file: "cli/mcp/product-tools.ts", modules: ["@intentius/chant/ci-product","@intentius/chant/cli/mcp/product-tools"] },
|
|
44
56
|
{ name: "DEPLOY_ADOPT_FLOOR", version: "0.124.55", gates: "The first chant whose `run --components` takes `--adopt`.", file: "components/adoption.ts", modules: ["@intentius/chant/components/adoption"] },
|
|
@@ -47,6 +59,7 @@ export const FLOOR_ROWS: readonly FloorRow[] = [
|
|
|
47
59
|
{ name: "PR_ENV_APPEND_FLOOR", version: "0.124.55", gates: "The first chant that exports appendPrEnvRecord and readPrEnvRecords (#4551).", issue: "#4551", file: "components/pr-env-ledger.ts", modules: ["@intentius/chant/components/pr-env-ledger"] },
|
|
48
60
|
{ name: "UNCHANGED_INPUTS_FLOOR", version: "0.124.65", gates: "The first chant that reads a component's `inputs` and writes `unchangedSince` on a release record (#4695).", issue: "#4695", file: "components/unchanged-inputs.ts", modules: ["@intentius/chant/components/unchanged-inputs"] },
|
|
49
61
|
{ name: "NORMALIZED_INPUTS_FLOOR", version: "0.124.68", gates: "The first chant that reads `inputs.normalize` and writes `normalizedInputs` on a skip record (#4718).", issue: "#4718", file: "components/unchanged-inputs.ts", modules: ["@intentius/chant/components/unchanged-inputs"] },
|
|
62
|
+
{ name: "CONTROL_CONSUMERS_FLOOR", version: "0.124.55", gates: "The first chant with the consumers join, joinControlConsumers and readControlConsumers on `@intentius/chant/ci-control` (#4600).", issue: "#4600", file: "control/consumers.ts", modules: ["@intentius/chant/ci-control","@intentius/chant/control/consumers"] },
|
|
50
63
|
{ name: "CONTROL_DEPENDENTS_FLOOR", version: "0.124.47", gates: "The first chant with `chant workspace run --dependents-of`, which the control repo's package.json pins.", file: "control/dispatch.ts", modules: ["@intentius/chant/ci-control","@intentius/chant/control/dispatch"] },
|
|
51
64
|
{ name: "E2E_HARNESS_FLOOR", version: "0.124.56", gates: "The first chant with the e2e harness.", file: "e2e-harness/index.ts", modules: ["@intentius/chant/e2e-harness","@intentius/chant/e2e-harness/index"] },
|
|
52
65
|
{ name: "E2E_HARNESS_PULL_STEPS_FLOOR", version: "0.124.58", gates: "The first chant whose harness follows a pull request a product opened (chant#4650): the await-pull and comment steps, the pull and gated outcomes, and the forge reads under them.", issue: "#4650", file: "e2e-harness/index.ts", modules: ["@intentius/chant/e2e-harness","@intentius/chant/e2e-harness/index"] },
|
|
@@ -82,9 +95,10 @@ export const FLOOR_ROWS: readonly FloorRow[] = [
|
|
|
82
95
|
{ name: "RELEASE_CUT_OVERRIDE_FLOOR", version: "0.124.64", gates: "The first chant that cuts a commit that is not green under an override and writes `override` on the cut line (#4693).", issue: "#4693", file: "lifecycle/release-cut.ts", modules: ["@intentius/chant/lifecycle/release-cut"] },
|
|
83
96
|
{ name: "RELEASE_IMAGES_FLOOR", version: "0.124.71", gates: "The first chant with `release.images`, `CHANT_RELEASE_DIGESTS`, `chant release images` and an npm target's `pins` (#4657).", issue: "#4657", file: "lifecycle/release-images.ts", modules: ["@intentius/chant/lifecycle/release-images"] },
|
|
84
97
|
{ name: "RELEASE_IMAGE_DOCKERFILE_FLOOR", version: "0.124.78", gates: "The first chant whose `release.images` takes a Dockerfile entry, with `releaseImagePins` and `writeReleaseImagePins` for a product's package build (#4819).", issue: "#4819", file: "lifecycle/release-images.ts", modules: ["@intentius/chant/lifecycle/release-images"] },
|
|
98
|
+
{ name: "RELEASE_IMAGE_ARGS_FLOOR", version: "0.124.88", gates: "The first chant whose Dockerfile entry in `release.images` takes `args`, build arguments beside the two chant passes (#4908).", issue: "#4908", file: "lifecycle/release-images.ts", modules: ["@intentius/chant/lifecycle/release-images"] },
|
|
85
99
|
{ name: "RUN_ORIGIN_CHANT_FLOOR", version: "0.124.30", gates: "The first chant that writes `runOrigin.forge: \"chant\"`, for a job `chant ci run` ran (#4094).", issue: "#4094", file: "lifecycle/release-ledger.ts", modules: ["@intentius/chant","@intentius/chant/index","@intentius/chant/lifecycle/index","@intentius/chant/lifecycle/release-ledger"] },
|
|
86
100
|
{ name: "RUN_ORIGIN_JOB_FLOOR", version: "0.124.32", gates: "The first chant that writes `runOrigin.jobId` and `runOrigin.attempt`, for a forge job that ran `chant ci run` (#4156).", issue: "#4156", file: "lifecycle/release-ledger.ts", modules: ["@intentius/chant","@intentius/chant/index","@intentius/chant/lifecycle/index","@intentius/chant/lifecycle/release-ledger"] },
|
|
87
|
-
{ name: "
|
|
101
|
+
{ name: "RELEASE_RECORD_VERSION_FLOOR", version: "0.124.55", gates: "The first chant that writes and reads `releaseVersion` on a release record (#4595).", issue: "#4595", file: "lifecycle/release-ledger.ts", modules: ["@intentius/chant","@intentius/chant/index","@intentius/chant/lifecycle/index","@intentius/chant/lifecycle/release-ledger"] },
|
|
88
102
|
{ name: "RELEASE_STATUS_FLOOR", version: "0.124.55", gates: "The first chant that writes and reads `<env>/release-status.jsonl`, and lists the `release_status` table (#4596).", issue: "#4596", file: "lifecycle/release-status.ts", modules: ["@intentius/chant/lifecycle/release-status"] },
|
|
89
103
|
{ name: "RELEASE_IMAGE_REF_FLOOR", version: "0.124.65", gates: "The first chant that writes and reads an artifact's `ref` (#4694).", issue: "#4694", file: "lifecycle/release-store.ts", modules: ["@intentius/chant/lifecycle/release-store"] },
|
|
90
104
|
{ name: "RELEASE_VERSION_FLOOR", version: "0.124.79", gates: "The first chant with `release.version` and `chant release stamp` (#4840).", issue: "#4840", file: "lifecycle/release-version.ts", modules: ["@intentius/chant/lifecycle/release-version"] },
|
|
@@ -127,16 +141,19 @@ export const FLOOR_ROWS: readonly FloorRow[] = [
|
|
|
127
141
|
{ name: "PR_REPORT_CROSS_STACK_FLOOR", version: "0.124.55", gates: "The first chant whose report carries PrReport.crossStackEdges (#4617).", issue: "#4617", file: "pr-loop.ts", modules: ["@intentius/chant/pr-loop"] },
|
|
128
142
|
{ name: "PR_PLAN_NOTE_FLOOR", version: "0.124.78", gates: "The first chant with the product plan note (#4810).", issue: "#4810", file: "pr-plan-note.ts", modules: ["@intentius/chant/pr-plan-note"] },
|
|
129
143
|
{ name: "REPORT_URL_CLOUDS_FLOOR", version: "0.124.55", gates: "The first chant that reads a `gs://` or `az://` report URL (#4554).", issue: "#4554", file: "pr-report-url.ts", modules: ["@intentius/chant/pr-report-url"] },
|
|
130
|
-
{ name: "LOCAL_CHANT_FLOOR", version:
|
|
131
|
-
{ name: "REF_GATE_FLOOR", version:
|
|
132
|
-
{ name: "OVERDUE_PIPELINE_FILES_FLOOR", version:
|
|
133
|
-
{ name: "TERRAFORM_APPLY_COMMAND_HOOK_FLOOR", version:
|
|
134
|
-
{ name: "
|
|
135
|
-
{ name: "
|
|
136
|
-
{ name: "
|
|
137
|
-
{ name: "
|
|
138
|
-
{ name: "
|
|
139
|
-
{ name: "
|
|
144
|
+
{ name: "LOCAL_CHANT_FLOOR", version: "0.124.86", gates: "The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787).", issue: "#4787", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
145
|
+
{ name: "REF_GATE_FLOOR", version: "0.124.86", gates: "The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867).", issue: "#4867", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
146
|
+
{ name: "OVERDUE_PIPELINE_FILES_FLOOR", version: "0.124.86", gates: "The first chant whose overdue check finds a schedule in any pipeline file, and whose `ScheduledWatch` takes a product's `files` and GitLab `schedule` selector (#4789).", issue: "#4789", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
147
|
+
{ name: "TERRAFORM_APPLY_COMMAND_HOOK_FLOOR", version: "0.124.86", gates: "The first chant whose `terraformApplyCapabilityWith` takes `onCommand`, a hook around each engine command `terraform-apply` runs for a root, its reads' upstreams included (#4865).", issue: "#4865", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
148
|
+
{ name: "TERRAFORM_ENGINE_TIMINGS_FLOOR", version: "0.124.88", gates: "The first chant whose terraform lexicon times each root's engine commands and reads its spans and lock waits (`@intentius/chant-lexicon-terraform/engine-timings`, `engineTimings()` as `terraformApplyCapabilityWith`'s `onCommand`), and runs a composed group's commands through that hook (#4887).", issue: "#4887", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
149
|
+
{ name: "TERRAFORM_ROOT_HELPERS_FLOOR", version: "0.124.88", gates: "The first chant whose terraform lexicon finds live roots and estates (`live-roots`), places a Terragrunt unit (`terragruntUnitPlace`), reads a state migration's history and revert from its finished lines (`migration-history`), and runs the binary without the forge's tokens (`tokenlessBinaryExec`, `engineEnv`) (#4910).", issue: "#4910", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
150
|
+
{ name: "TERRAFORM_ENGINE_RUNNER_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose terraform lexicon has one runner of the engine for a product (`engineRunner` in `engine-runner`: a hooked `exec`, `execSync`, `terragrunt` and the tokenless `script`), traces each engine command (`commandTrace`, `commandTraceEnv`), sends each Terragrunt unit's plan through `planTerragruntWave({ onCommand })`, and resolves a live root's record store (`liveRecordStore`, `writtenRecordStore`, `rootBackendAttrs` in `live-roots`) (#4954).", issue: "#4954", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
151
|
+
{ name: "PRODUCT_HELPERS_FLOOR", version: "0.124.86", gates: "The first chant with `@intentius/chant/forge-flags` (`forgeTargetWith`, `forgeTargetFromFlags`, `apiBaseOf`), `@intentius/chant/chant-install` (`bundledChant`, `chantArgv`, `installChantResolveFallback`) and `noteLimit` and `fitNote` in `@intentius/chant/plan-summary` (#4800).", issue: "#4800", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
152
|
+
{ name: "CI_IMAGE_FLOOR", version: "0.124.86", gates: "The first chant with `@intentius/chant/ci-image`: `productImageStages`, `productImageDockerfile` and `derivedImageDockerfile` for a product's CI image, and `ciToolFetchScript`, `ciToolInstallLine` and `installCiTool`, the digest-checked engine installs, with the terraform lexicon's `choudoufuInstallLine` checked the same way (#4784).", issue: "#4784", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
153
|
+
{ name: "DRIFT_ISSUE_FLOOR", version: "0.124.86", gates: "The first chant with `@intentius/chant/drift-issue`, whose `keepDriftIssue` keeps one drift issue per environment from a product's words and the drift records (#4790).", issue: "#4790", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
154
|
+
{ name: "SOURCE_DIR_RULE_FLOOR", version: "0.124.86", gates: "The first chant whose `chant build` with no path builds the config's `sourceDir`, whose root build leaves a top-level `scripts/` out, and whose `@intentius/chant/config` exports `resolveSourceDir`, the one source-dir rule every command shares (#4794).", issue: "#4794", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
155
|
+
{ name: "PULUMI_STACK_OPS_ON_CORE_FLOOR", version: "0.124.86", gates: "The first chant whose pulumi lexicon runs `gatedStackExport`, `gatedStackCancel` and `gatedStackMove` on core's `exportStateVersion`, `releaseStateLock` and `runStateMigration`: export by version, the live-run check before a cancel (`liveRuns`, `forge`), and the check that nothing moved between a move's plan and its write (#4808).", issue: "#4808", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
156
|
+
{ name: "TERRAFORM_STATE_VERSION_READS_FLOOR", version: "0.124.86", gates: "The first chant whose terraform lexicon's state stores read versions (`version`, `hasVersion`, `readVersion`, `isAt`, `listVersions`), with `readStateVersion` and `listStateVersions`, and lock and write a GitLab-managed http backend's state (#4793).", issue: "#4793", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
140
157
|
{ name: "TERRAFORM_APPLY_INSTANCE_READS_FLOOR", version: "0.124.80", gates: "The first chant whose terraform lexicon's `terraform-apply` reads take `dir` and `workspace`, and read an upstream with `resolveRoot`'s binary and `readEnv` (terragucci issue 1303).", issue: "terragucci issue 1303", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
141
158
|
{ name: "TERRAFORM_APPLY_ROOT_BINARY_FLOOR", version: "0.124.80", gates: "The first chant whose terraform lexicon's `terraform-apply` takes `binary`, and `terraformApplyCapabilityWith({ resolveRoot })` gives each root its own binary (terragucci issue 1303).", issue: "terragucci issue 1303", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
142
159
|
{ name: "OP_WAVE_STEP_CWD_FLOOR", version: "0.124.80", gates: "The first chant whose op wave hands a step's capability the wave's `cwd` (`DeployContext.cwd`), where `terraform-apply` looks for `chant.config.*` and `terragrunt-apply` runs when the step names neither (#4854).", issue: "#4854", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
@@ -150,19 +167,59 @@ export const FLOOR_ROWS: readonly FloorRow[] = [
|
|
|
150
167
|
{ name: "PR_FORGE_RUN_READS_FLOOR", version: "0.124.80", gates: "The first chant whose forge reads answer `headRuns`, `run`, `runJobs` and `artifacts`: a head's workflow runs (GitLab's pipelines), a run, its jobs and its artifacts by name (#4846).", issue: "#4846", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
151
168
|
{ name: "PR_FORGE_READS_FLOOR", version: "0.124.78", gates: "The first chant whose `@intentius/chant/pr-forge-reads` exports the forge reads beside the clients (#4809).", issue: "#4809", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
152
169
|
{ name: "SCHEDULED_RUNS_SELECTOR_FLOOR", version: "0.124.78", gates: "The first chant whose GitLab `scheduledRuns` takes `schedule`, the selector of an Op's `gitlab.scheduleRule` (#4813).", issue: "#4813", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
153
|
-
{ name: "OP_WAVES_JOB_INPUTS_FLOOR", version:
|
|
154
|
-
{ name: "FLOOR_TABLE_FLOOR", version:
|
|
155
|
-
{ name: "CLOUD_LOGIN_FLOOR", version:
|
|
156
|
-
{ name: "CHECK_EVIDENCE_FLOOR", version:
|
|
157
|
-
{ name: "LOCAL_EVIDENCE_FLOOR", version:
|
|
158
|
-
{ name: "KEYLESS_EVIDENCE_FLOOR", version:
|
|
170
|
+
{ name: "OP_WAVES_JOB_INPUTS_FLOOR", version: "0.124.86", gates: "The first chant whose Op waves pipeline takes `waveJobs` and `recordPlans`, a product's login, report, artifact and plans-job inputs, so it edits nothing chant wrote (#4791).", issue: "#4791", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
171
|
+
{ name: "FLOOR_TABLE_FLOOR", version: "0.124.86", gates: "The first chant with `@intentius/chant/floor-table` (`FLOOR_TABLE`, `floorVersion`, `chantMeets`), every floor as one table, and `chant dev dead-guards` with `@intentius/chant/dead-guards` (`findDeadGuards`), which fails on a feature-detect the product's chant pin meets (#4792).", issue: "#4792", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
172
|
+
{ name: "CLOUD_LOGIN_FLOOR", version: "0.124.86", gates: "The first chant with `@intentius/chant/ci-login`: `githubCloudLogin`, `gitlabCloudLogin` and `forgejoCloudLogin` render a job's AWS, GCP and Azure login from the OIDC token file, per target too (#4788).", issue: "#4788", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
173
|
+
{ name: "CHECK_EVIDENCE_FLOOR", version: "0.124.86", gates: "The first chant whose generated pipelines sign evidence for each named check they run, with `chant ci evidence`, `ci check` signing each hook, and an Op waves spec's `evidence.requires` (#4870).", issue: "#4870", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs","@intentius/chant/release-floors"] },
|
|
174
|
+
{ name: "LOCAL_EVIDENCE_FLOOR", version: "0.124.86", gates: "The first chant that accepts local evidence (#4868): `local` in `.chant/trust.json`, `chant ci evidence sign --local`, and `chant ci check` skipping a hook whose current local evidence the policy at base accepts.", issue: "#4868", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs","@intentius/chant/release-floors"] },
|
|
175
|
+
{ name: "KEYLESS_EVIDENCE_FLOOR", version: "0.124.87", gates: "The first chant that signs runner statements keyless from the CI job's OIDC identity and verifies them against `keyless` in `.chant/trust.json`, with `evidence.identity: \"oidc\"` in the generators (#4869).", issue: "#4869", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs","@intentius/chant/release-floors"] },
|
|
176
|
+
{ name: "WAVE_EVIDENCE_JOB_FLOOR", version: "0.124.88", gates: "The first chant whose waves generators run each wave's policy as a step of its own (`chant run wave --policy-only`; on GitLab a `<wave job>-policy` job) and sign its checks in a `<wave job>-evidence` job with `chant ci evidence sign --from-job`, from the forge's record of the wave job's steps, so a wave that trades cloud credentials signs keyless with `evidence.identity: \"oidc\"` instead of being refused (#4926).", issue: "#4926", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs","@intentius/chant/release-floors"] },
|
|
177
|
+
{ name: "CLOUD_LOGIN_SAME_STEP_FLOOR", version: "0.124.88", gates: "The first chant whose cloud login leaves the region to the job unless the spec names one, takes `sameStep` to export into the step that runs it, accepts an AWS spec with no role (the token file alone), and whose trade sets `CHANT_CLOUD_TRADED` so a login's targets file is told from a trade's (#4930).", issue: "#4930", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
178
|
+
{ name: "RELEASE_WORKFLOW_QEMU_FLOOR", version: "0.124.88", gates: "The first chant whose `chant release workflow` sets up QEMU in the cut and publish jobs for the platforms `release.images` builds that the runner can't (`docker/setup-qemu-action` at its pin on GitHub and Forgejo, a `tonistiigi/binfmt` run line on GitLab), and whose `release.images` command entries take `platforms` (#4876).", issue: "#4876", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
179
|
+
{ name: "NPM_CARRIES_IMAGE_FLOOR", version: "0.124.88", gates: "The first chant whose npm publish target refuses at plan time a package that would carry an image archive the release records (`publish-npm-carries-image`), naming the file and the `files` entry that leaves it out (#4934).", issue: "#4934", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
180
|
+
{ name: "LIVE_DRIFT_RECORDS_FLOOR", version: "0.124.88", gates: "The first chant with `driftRunFingerprint` in `@intentius/chant/drift-issue` and `lexiconDriftRecords` in `@intentius/chant/drift-record`, whose `chant lifecycle diff --live --json` writes a lexicon's `absent`, and whose sql lexicon reports a declared object the server lacks as `missing` instead of `pending` (#4896).", issue: "#4896", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
181
|
+
{ name: "SQL_TYPES_PATH_FLOOR", version: "0.124.88", gates: "The first chant whose `chant sql types --path` prints where `sql-types.d.ts` is by the source-dir rule, the path `sqlTypesPath` answers (#4897).", issue: "#4897", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
182
|
+
{ name: "FORGE_TARGET_ORIGIN_FLOOR", version: "0.124.88", gates: "The first chant whose forge target carries its web `origin` (`forgeTargetWith`) and whose `@intentius/chant/forge-flags` has `jobForgeTarget`, a job's target or undefined where the job cannot reach the forge, so a product keeps no target type of its own (#4888).", issue: "#4888", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
183
|
+
{ name: "STACK_OPS_PRODUCT_HELPERS_FLOOR", version: "0.124.88", gates: "The first chant with `actorFromEnv` (`@intentius/chant/actor`), `forgeTargetLiveRuns` and `forgeLiveRunsOf` in `@intentius/chant/state-unlock`, and a pulumi lexicon whose stack ops take the product's `approveCommand`, with `pulumiStackLockToCancel` and `pulumiMoveDestStack`, a move naming its own `--dest` from both sides' `project` (#4911).", issue: "#4911", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
184
|
+
{ name: "FORGE_REMOTE_FLOOR", version: "0.124.88", gates: "The first chant with `@intentius/chant/forge-remote` (`forgeOfRemote`, `forgeOfCheckout`, `forgeKindOfHost`), the forge and repository a checkout's origin remote names, and a pulumi `gatedStackCancel` that reads the forge's runs from it on a laptop (#4920).", issue: "#4920", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
185
|
+
{ name: "GENERATED_CHECK_FLOOR", version: "0.124.88", gates: "The first chant with `chant dev generated-check` (`chantGenerated` in a product's root package.json, `@intentius/chant/generated-check`) and `chant dev local-image` (`localChantImage` in `@intentius/chant/local-chant`): a drift check of a product's committed generated files, and an image build with the product's chant, local or pinned, without the product's own scripts (#4909).", issue: "#4909", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
186
|
+
{ name: "LOCAL_CHANT_NEXT_RELEASE_FLOOR", version: "0.124.88", gates: "The first chant whose `chant dev local` keeps the product's peer dependencies installed and packs the checkout at its `NEXT_RELEASE`, and whose root build of a project with no `sourceDir` leaves its top-level `migrations/` out, with the sql lexicon opening no `.sql` file under a `migrations` directory (#4921).", issue: "#4921", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
187
|
+
{ name: "CHANT_EXTERNAL_PACKAGES_FLOOR", version: "0.124.88", gates: "The first chant whose `chantExternalPlugin` keeps external only the chant packages it is given, by default the ones in the package's `dependencies`, so a product that bundles its lexicons uses it as is (#4922).", issue: "#4922", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
188
|
+
{ name: "CI_IMAGE_NON_ROOT_FLOOR", version: "0.124.88", gates: "The first chant whose `ciToolInstallLine` takes `sudo` and `binDir` and a root under a shell variable, for a job that is not root, whose `CI_TOOL_SHA256` records terraform 1.14.9, terragrunt 1.2.0 and the AWS CLI 2.37.9, and whose Pulumi lexicon's `ciFetchScript` and `PINNED_SHA256` are ci-image's (#4908).", issue: "#4908", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
189
|
+
{ name: "CI_IMAGE_DOCKER_STAGES_FLOOR", version: "0.124.88", gates: "The first chant whose `productImageStages` stages type as the docker lexicon's `DockerfileStage[]` under `exactOptionalPropertyTypes`, so `new Dockerfile({ stages: productImageStages(spec) })` compiles (#4932).", issue: "#4932", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
190
|
+
{ name: "OP_SETUP_STEP_NAME_FLOOR", version: "0.124.88", gates: "The first chant whose setup steps (`OpSetupStep`: an Op waves spec's wave and job group `setup`, a scheduled Op's `setup`, `release.workflow.setup`) take a `name`, rendered as the step's name on GitHub and Forgejo (#4932).", issue: "#4932", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
191
|
+
{ name: "CLOUD_LOGIN_RESTART_FLOOR", version: "0.124.88", gates: "The first chant whose cloud login takes `restart` (log in, then start the step's script again without the token request variables, and empty the token files when the step exits), sets `CHANT_CLOUD_TOKEN_FILES` for `LOGIN_CLEAR_TOKENS`, takes a full token URL as GCP's `stsEndpoint`, and whose GitLab trade evaluates its exports without writing a file (#4912).", issue: "#4912", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
192
|
+
{ name: "PR_LOOP_EVIDENCE_FLOOR", version: "0.124.88", gates: "The first chant whose `chant build --pr-loop` takes `evidence` (`--evidence-runner-key-secret`, `--evidence-identity oidc`, `--evidence-audience`) and signs the plan job's `plan` and `policy` checks in its note job on GitHub, GitLab and Forgejo (#4935).", issue: "#4935", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs","@intentius/chant/components/pr-checks","@intentius/chant/release-floors"] },
|
|
193
|
+
{ name: "CHECK_JOB_FLOOR", version: "0.124.88", gates: "The first chant whose pull request pipelines take `checkJob` (`--check-job`): a check job that runs `chant ci check` on the pull request's commit with no token or runner identity, and with `evidence` a `check-evidence` job that signs each passed hook from its report with `chant ci evidence sign --from-report .chant/check` (#4935).", issue: "#4935", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs","@intentius/chant/components/pr-checks","@intentius/chant/release-floors"] },
|
|
194
|
+
{ name: "GITLAB_OPEN_EVIDENCE_FLOOR", version: "0.124.88", gates: "The first chant whose GitLab pipelines sign evidence in the target branch's plan notes pipeline, in jobs that name the `chant-evidence` environment, with `chant ci evidence sign --open`, and whose `pr-post --open --evidence-dir` ends each merge request's note with the checks line; no job of a merge request pipeline holds the runner key (#4914).", issue: "#4914", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs","@intentius/chant/components/pr-checks","@intentius/chant/release-floors"] },
|
|
195
|
+
{ name: "CHECK_SUMMARY_FLOOR", version: "0.124.88", gates: "The first chant whose `chant ci check` takes `--summary <file>` and whose `checkReportSummary` renders the check report's markdown section, so a product's check step runs chant's check stage and keeps the section in its own report (#4914).", issue: "#4914", file: "release-floors.ts", modules: ["@intentius/chant/components/check-hooks","@intentius/chant/release-floors"] },
|
|
196
|
+
{ name: "REF_GATE_STATUS_JOB_FLOOR", version: "0.124.88", gates: "The first chant whose pull request pipelines take `refGateStatus` (`--ref-gate-status`): a `ref-gate` job that runs `chant workspace ref-gate status` for the pull request's commit, and on GitLab `ref-gate status --open` for every open merge request (#4935).", issue: "#4935", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs","@intentius/chant/components/pr-checks","@intentius/chant/release-floors"] },
|
|
197
|
+
{ name: "REF_GATE_PIECES_FLOOR", version: "0.124.88", gates: "The first chant with `@intentius/chant/ref-gate-rules` (`refGateRulesAt`), `require` in `checkPrRequires`, `refGateStatus` in `pipelineContract` and `ci forge-check --ref-gate-status`, `@intentius/chant/ref-gate-init` (`refGateInitPlan`, `writeRefGateInit`), and a pre-receive refusal that prints the command recording the override request (#4913).", issue: "#4913", file: "release-floors.ts", modules: ["@intentius/chant/forge-check","@intentius/chant/forge-check/index","@intentius/chant/pr-requires","@intentius/chant/ref-gate-init","@intentius/chant/ref-gate-rules","@intentius/chant/release-floors"] },
|
|
198
|
+
{ name: "RELEASE_CUT_RECORD_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose `chant release cut --yes` pushes `chant/lifecycle` again when the remote refuses it, and exits non-zero untagged (`release-record-not-pushed`) when the release record never lands, so the release workflow does not push the tag (#4965).", issue: "#4965", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
199
|
+
{ name: "RELEASE_CUT_CARRIES_IMAGE_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose release cut refuses, before it records or tags, a release whose npm publish target would carry an image archive (`publish-npm-carries-image`), and whose GitLab release workflow runs the binfmt image by digest from `IMAGE_PINS` (#4941).", issue: "#4941", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
200
|
+
{ name: "CI_TOOL_NODE_DOWNLOAD_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose `ciToolFetchScript` and `ciToolInstallLine` take `download: \"node\"`, a fetch and unzip with node for an image with no curl or unzip, whose `CI_TOOL_SHA256` records just 1.36.0 and act 0.2.89 and checks them against their releases' checksums files, and whose overdue check deepens a shallow checkout before it dates a pipeline file (#4952).", issue: "#4952", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
201
|
+
{ name: "RENDER_KINDS_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose `chant build -o <dir>/` writes a build's additional files (a docker project's Dockerfiles) into the directory with no primary file, whose `chantGenerated` renders take a `module` and its `export` (a `{ path: text }` object or a function returning one) and `chant dev render <module> <export>` writes them in place, and whose `chant ci workflow` and `chant release workflow` write into `chant dev generated-check`'s render tree with no `--output` (#4950).", issue: "#4950", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
202
|
+
{ name: "SQL_LIVE_COLUMNS_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose sql lexicon's `chant lifecycle diff --live` addresses a table's columns by name (`columns[#country].default.expr`), compares a ClickHouse table's column order as `columnOrder`, and reports a column the server has and the declaration does not as pending, and whose `lexiconDriftRecords` counts a deep read's pending changes (that column, a ClickHouse or Postgres privilege granted by hand) as drift (#4944).", issue: "#4944", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
203
|
+
{ name: "DRIFT_NOTIFY_STACKS_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose `driftNotifyFields` takes `stacks`, each member's drift records, and from them names the drifted members and computes the run's fingerprint (#4944).", issue: "#4944", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
204
|
+
{ name: "MEMBER_SIGNED_CHECKS_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose workspace member's pull request pipeline takes `evidence`, `checkJob` and `refGateStatus` (`chant build --pr-loop` in a member), signing the member's plan job as `plan:<member>` and `policy:<member>` (`ci evidence sign --member`, `memberEvidenceCheck`) and running the check job in the member's directory (#4964).", issue: "#4964", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs","@intentius/chant/components/pr-checks","@intentius/chant/release-floors"] },
|
|
205
|
+
{ name: "PRODUCT_CHECK_JOBS_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose `checkJob` takes `{ services, env, before, dir, args }` (`PrCheckJobOptions`: service containers, the check step's variables and lines, the report directory, the arguments after `--base`) and whose github, forgejo and gitlab lexicons render the check, check evidence and ref gate jobs for a product's own workflow (`productCheckJobs`, `forgejoProductCheckJobs`, `gitlabProductCheckJobs`) (#4964).", issue: "#4964", file: "release-floors.ts", modules: ["@intentius/chant/components/pr-checks","@intentius/chant/release-floors"] },
|
|
206
|
+
{ name: "GITLAB_WAVE_KEY_SCOPE_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose GitLab Op waves pipeline with a runner key hands it to no wave job: each deciding wave's `<wave job>-evidence` job names the `chant-evidence` environment and signs `plan:<wave>` from the wave job (#4964).", issue: "#4964", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs","@intentius/chant/release-floors"] },
|
|
207
|
+
{ name: "ACTOR_ORDER_FLOOR", version: NEXT_RELEASE, gates: "The first chant with `actorOf` and `actorOrder` in `@intentius/chant/actor`: the actor fallback with `GITHUB_TRIGGERING_ACTOR` ahead of the forge's actor and git's `user.name` before the login, each place switched on or off by the caller (#4966).", issue: "#4966", file: "release-floors.ts", modules: ["@intentius/chant/actor","@intentius/chant/release-floors"] },
|
|
208
|
+
{ name: "CI_BASE_REF_FLOOR", version: NEXT_RELEASE, gates: "The first chant with `@intentius/chant/ci-base` (`ciBaseRef`), the base a CI job measures a change from (the pull request's target branch, else the default branch for a push to another branch), and whose `chant ci check` defaults `--base` to it (#4966).", issue: "#4966", file: "release-floors.ts", modules: ["@intentius/chant/ci-base","@intentius/chant/release-floors"] },
|
|
209
|
+
{ name: "PLANNED_FILES_FLOOR", version: NEXT_RELEASE, gates: "The first chant with `@intentius/chant/planned-files` (`planFile`, `planRemoval`, `writePlannedFiles`, `staleGeneratedFiles`): an init's planned files with their modes, written or removed in one call, and the generated files a product no longer renders, found by their header (#4966).", issue: "#4966", file: "release-floors.ts", modules: ["@intentius/chant/planned-files","@intentius/chant/release-floors"] },
|
|
210
|
+
{ name: "FORGE_CHECK_OWN_JOBS_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose `pipelineContract` takes `jobs`, the jobs a product builds from its own config, beside or in place of `pipelines`, so a product's forge check gets the required statuses and `refGateStatus` from chant (#4966).", issue: "#4966", file: "release-floors.ts", modules: ["@intentius/chant/forge-check","@intentius/chant/forge-check/index","@intentius/chant/release-floors"] },
|
|
211
|
+
{ name: "BEFORE_MERGE_REF_GATE_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose `chant components pr-apply --before-merge` waits for the ref gate's status: the status the policy at base sets for the target branch is passed as `require` to the `checks` require (#4966).", issue: "#4966", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
212
|
+
{ name: "TARGET_SIGNED_CHECKS_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose product plan with `targets` and `evidence` signs each target's plan job as `plan:<target>` and `policy:<target>` (`ci evidence sign --member <target>`, `targetEvidenceCheck`, `productPlanEvidenceChecks`), and whose `refGateInitPlan` takes `targets` and names those checks in the `refs` rule (#4978).", issue: "#4978", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs","@intentius/chant/ref-gate-init","@intentius/chant/release-floors"] },
|
|
213
|
+
{ name: "RUNTIME_WAVES_SPEC_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose Op waves generators take `renderSpec` (the wave jobs run `chant run wave --render-spec`, and `CHANT_WAVES_SPEC_COMMAND` names the product command that prints the spec at the commit in `CHANT_WAVES_SPEC_AT`), so a product whose spec is built from its config at base renders its wave jobs, policy step, evidence job and cloud trade through chant (#4982).", issue: "#4982", file: "release-floors.ts", modules: ["@intentius/chant/op","@intentius/chant/op/index","@intentius/chant/op/op-waves-render-spec","@intentius/chant/release-floors"] },
|
|
214
|
+
{ name: "GITLAB_WAVE_EVIDENCE_RETRY_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose `chant run resume` (`resumeGateRun`) on GitLab retries a wave job's `<wave job>-evidence` with the wave job when the evidence job already ran, and whose `ci evidence sign --from-job` waits for a job it reads to finish, so a resumed wave's evidence job signs from the new try (#4978).", issue: "#4978", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs","@intentius/chant/release-floors"] },
|
|
159
215
|
{ name: "RUN_EVENT_FLOOR", version: "0.124.28", gates: "The first chant that writes contract version 1 of the run-event stream.", file: "run-event.ts", modules: ["@intentius/chant","@intentius/chant/index","@intentius/chant/run-event"] },
|
|
160
216
|
{ name: "RUN_EVENT_FAILURE_FLOOR", version: "0.124.30", gates: "The first chant that writes `failure` on `run-settle` (#4094).", issue: "#4094", file: "run-event.ts", modules: ["@intentius/chant","@intentius/chant/index","@intentius/chant/run-event"] },
|
|
161
217
|
{ name: "RUN_EVENT_COMPONENT_SKIP_FLOOR", version: "0.124.29", gates: "The first chant that writes `blocked`, `already-applied` and `blockedBy` on `component-settle` (#4007).", issue: "#4007", file: "run-event.ts", modules: ["@intentius/chant","@intentius/chant/index","@intentius/chant/run-event"] },
|
|
162
218
|
{ name: "RUN_EVENT_RESOURCES_FLOOR", version: "0.124.55", gates: "The first chant that writes `resources` on `step-settle` (#4615).", issue: "#4615", file: "run-event.ts", modules: ["@intentius/chant","@intentius/chant/index","@intentius/chant/run-event"] },
|
|
163
219
|
{ name: "STATE_EXPORT_FLOOR", version: "0.124.77", gates: "The first chant with the engine-neutral state export (#4762).", issue: "#4762", file: "state-export.ts", modules: ["@intentius/chant/state-export"] },
|
|
164
220
|
{ name: "STATE_MIGRATION_FLOOR", version: "0.124.77", gates: "The first chant with the engine-neutral state migration (#4762).", issue: "#4762", file: "state-migration.ts", modules: ["@intentius/chant/state-migration"] },
|
|
165
|
-
{ name: "STATE_MIGRATION_SOURCE_FLOOR", version:
|
|
221
|
+
{ name: "STATE_MIGRATION_SOURCE_FLOOR", version: "0.124.86", gates: "The first chant whose migration binds a root's `source` (an engine's `source` read under the locks) and answers `approval-moved`, and whose terraform lexicon plans backend moves (`planTerraformMigration`'s `backends`) and choudoufu estate migrations (`planEstateMigration`) onto it (#4806).", issue: "#4806", file: "state-migration.ts", modules: ["@intentius/chant/state-migration"] },
|
|
222
|
+
{ name: "STATE_MIGRATION_RECORD_FLOOR", version: "0.124.88", gates: "The first chant whose `runStateMigration` takes a product's `record`, which the request's attachment binds beside the roots and `chant approve` shows (#4928).", issue: "#4928", file: "state-migration.ts", modules: ["@intentius/chant/state-migration"] },
|
|
166
223
|
{ name: "STATE_UNLOCK_FLOOR", version: "0.124.77", gates: "The first chant with the engine-neutral lock release and forgeLiveRuns (#4762).", issue: "#4762", file: "state-unlock.ts", modules: ["@intentius/chant/state-unlock"] },
|
|
167
224
|
{ name: "TEMPLATE_REQUEST_FLOOR", version: "0.124.58", gates: "The first chant that writes and reads template-request/v1 and template.yml/v1 (#4651).", issue: "#4651", file: "template-request/template-request.ts", modules: ["@intentius/chant/template-request","@intentius/chant/template-request/index","@intentius/chant/template-request/template-request"] },
|
|
168
225
|
{ name: "CI_GREEN_LANES_FLOOR", version: "0.124.61", gates: "The first chant that reads and writes green lanes, `ci.green.lanes` (#4662).", issue: "#4662", file: "workspace/ci-green.ts", modules: ["@intentius/chant/workspace/ci-green"] },
|
|
@@ -178,4 +235,7 @@ export const FLOOR_ROWS: readonly FloorRow[] = [
|
|
|
178
235
|
{ name: "READ_CONTRACT_FLOOR", version: "0.81.0", gates: "The first chant release that writes contract version 1.", file: "workspace/reason-codes.ts", modules: ["@intentius/chant/workspace/reason-codes"] },
|
|
179
236
|
{ name: "RELEASE_CANDIDATES_CLOSES_FLOOR", version: "0.124.63", gates: "The first chant whose candidates carry `changes[].closes` and `groups[].issue` (#4649).", issue: "#4649", file: "workspace/release-candidates.ts", modules: ["@intentius/chant/workspace/release-candidates"] },
|
|
180
237
|
{ name: "RELEASE_CANDIDATES_LANE_FLOOR", version: "0.124.64", gates: "The first chant whose candidates document carries `lane` and reads a lane's tags (#4692).", issue: "#4692", file: "workspace/release-candidates.ts", modules: ["@intentius/chant/workspace/release-candidates"] },
|
|
238
|
+
{ name: "MODULE_CONSUMERS_FLOOR", version: "0.124.55", gates: "The first chant whose terraform lexicon has `moduleConsumers`, the scan of every registry module call a root makes, with `readRegistryCatalog` and `deprecatedPins` beside it on `./registry` (#4599).", issue: "#4599", file: "lexicons/terraform/src/chant-floors.ts", modules: ["@intentius/chant-lexicon-terraform/chant-floors","@intentius/chant-lexicon-terraform/registry","@intentius/chant-lexicon-terraform/registry/index"] },
|
|
239
|
+
{ name: "USED_SOURCES_FLOOR", version: "0.124.55", gates: "The first chant whose terraform lexicon has `usedSources`, every module source and provider address a root uses, with `moduleSourceForms`, `providerAddressForms` and `lockedProviders` on `./registry` (#3924).", issue: "#3924", file: "lexicons/terraform/src/chant-floors.ts", modules: ["@intentius/chant-lexicon-terraform/chant-floors","@intentius/chant-lexicon-terraform/registry","@intentius/chant-lexicon-terraform/registry/index"] },
|
|
240
|
+
{ name: "MODULE_CATALOG_FLOOR", version: "0.124.55", gates: "The first chant whose terraform lexicon has `./module-catalog`, the known-module catalog TF047 reads (#4560).", issue: "#4560", file: "lexicons/terraform/src/chant-floors.ts", modules: ["@intentius/chant-lexicon-terraform/chant-floors","@intentius/chant-lexicon-terraform/module-catalog","@intentius/chant-lexicon-terraform/module-catalog/index"] },
|
|
181
241
|
];
|
package/src/floor-table.ts
CHANGED
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
* feature-detect on, as one table, and the version compare a product asks it
|
|
4
4
|
* with.
|
|
5
5
|
*
|
|
6
|
-
* A floor is a constant `<NAME>_FLOOR` in chant core
|
|
7
|
-
*
|
|
6
|
+
* A floor is a constant `<NAME>_FLOOR` in chant core, or in a lexicon's
|
|
7
|
+
* src/chant-floors.ts (#4916), naming the first chant release with a part
|
|
8
|
+
* (an export, a field chant writes, a flag). Lexicons release with chant at
|
|
9
|
+
* the same version, so a lexicon's floor is a chant version too. A product
|
|
8
10
|
* that runs on several chant releases checks one before it calls the part. The
|
|
9
11
|
* rows are written by scripts/floor-table.ts from the constants themselves
|
|
10
12
|
* (./floor-table.data.ts), and scripts/release-floors.ts fails while a floor
|
|
11
13
|
* is missing from them. A floor added since the last release has the version
|
|
12
|
-
* of the next one, NEXT_RELEASE, which the release moves on.
|
|
14
|
+
* of the next one, NEXT_RELEASE, which the release moves on. Each name is
|
|
15
|
+
* declared once (#4916), and scripts/floor-table.ts fails on a second.
|
|
13
16
|
*
|
|
14
17
|
* `chant dev dead-guards` (./dead-guards.ts) reads this table against a
|
|
15
18
|
* product's chant pin and names each check the pin already meets.
|
|
@@ -26,24 +29,24 @@ export interface FloorRow {
|
|
|
26
29
|
gates: string;
|
|
27
30
|
/** The issue that added it, `#4784`, or a product's (`terragucci issue 1303`). */
|
|
28
31
|
issue?: string;
|
|
29
|
-
/** The file under packages/core/src that declares it. */
|
|
32
|
+
/** The file under packages/core/src that declares it, or a lexicon's floors file from the repository root (`lexicons/terraform/src/chant-floors.ts`). */
|
|
30
33
|
file: string;
|
|
31
|
-
/** The
|
|
34
|
+
/** The subpaths a product can import the constant from: `@intentius/chant/...`, or the lexicon's own. */
|
|
32
35
|
modules: readonly string[];
|
|
33
36
|
}
|
|
34
37
|
|
|
35
|
-
/** Every floor, in the order
|
|
38
|
+
/** Every floor, core's in the order its files declare them, then each lexicon's. */
|
|
36
39
|
export const FLOOR_TABLE: readonly FloorRow[] = FLOOR_ROWS;
|
|
37
40
|
|
|
38
|
-
/** The rows named `name`: one, or
|
|
41
|
+
/** The rows named `name`: one, or none. A table a caller builds may hold more. */
|
|
39
42
|
export function floorRows(name: string): FloorRow[] {
|
|
40
43
|
return FLOOR_TABLE.filter((r) => r.name === name);
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
/**
|
|
44
47
|
* The version a product must reach for the floor `name`, or undefined when no
|
|
45
|
-
* file declares it.
|
|
46
|
-
* check that passes holds for either.
|
|
48
|
+
* file declares it. Should a name ever have two rows, the higher version, so
|
|
49
|
+
* a check that passes holds for either.
|
|
47
50
|
*/
|
|
48
51
|
export function floorVersion(name: string): string | undefined {
|
|
49
52
|
const rows = floorRows(name);
|
|
@@ -167,13 +167,29 @@ export interface ContractPipeline {
|
|
|
167
167
|
export interface PipelineContractInput {
|
|
168
168
|
forge: ForgeKind;
|
|
169
169
|
repository: ForgeCheckRepository;
|
|
170
|
+
/** chant's generated pipelines. Empty for a product whose jobs are all its own (`jobs`). */
|
|
170
171
|
pipelines: ContractPipeline[];
|
|
172
|
+
/**
|
|
173
|
+
* Jobs a product builds from its own config (#4966), such as terragucci's
|
|
174
|
+
* per-environment stages, after the pipelines' jobs. They add no status
|
|
175
|
+
* of their own: a product whose jobs are all its own names its
|
|
176
|
+
* `requiredStatuses`.
|
|
177
|
+
*/
|
|
178
|
+
jobs?: ForgeCheckJob[];
|
|
171
179
|
/** The product's words: the stage words in job names and the default required statuses. */
|
|
172
180
|
words?: CiProductWordsInput | CiProductWords;
|
|
173
181
|
/** Default: the default branch. */
|
|
174
182
|
protectedBranches?: string[];
|
|
175
183
|
/** Default: each pipeline's plan status, such as `chant/plan` or `plywood/preview/<member>`. */
|
|
176
184
|
requiredStatuses?: string[];
|
|
185
|
+
/**
|
|
186
|
+
* The ref gate's status (#4913), added to the required statuses: the one
|
|
187
|
+
* the generated `ref-gate` job sets when the pipeline renders it
|
|
188
|
+
* (`refGateStatus`, `--ref-gate-status`). Read it with `refGateRulesAt`
|
|
189
|
+
* (`@intentius/chant/ref-gate-rules`): its `status` for the default branch,
|
|
190
|
+
* by default `chant/ref-gate`.
|
|
191
|
+
*/
|
|
192
|
+
refGateStatus?: string;
|
|
177
193
|
gitlabVariables?: string[];
|
|
178
194
|
}
|
|
179
195
|
|
|
@@ -182,7 +198,9 @@ export interface PipelineContractInput {
|
|
|
182
198
|
* the plan job (pull request, plan identities), the record job (default
|
|
183
199
|
* branch, plan identities) and the apply job (default branch or its forge
|
|
184
200
|
* environment, apply identities). A Forgejo forge has no environments, so
|
|
185
|
-
* `forgeEnvironment` is left out there.
|
|
201
|
+
* `forgeEnvironment` is left out there. A product's own `jobs` follow
|
|
202
|
+
* them, so the required statuses, the ref gate's status and the protected
|
|
203
|
+
* branches are chant's however the jobs were built (#4966).
|
|
186
204
|
*/
|
|
187
205
|
export function pipelineContract(input: PipelineContractInput): ForgeCheckContract {
|
|
188
206
|
const words = resolveProductWords(input.words);
|
|
@@ -204,12 +222,15 @@ export function pipelineContract(input: PipelineContractInput): ForgeCheckContra
|
|
|
204
222
|
const ctx = productStatusContext(words, "plan", p.member);
|
|
205
223
|
if (!statuses.includes(ctx)) statuses.push(ctx);
|
|
206
224
|
}
|
|
225
|
+
jobs.push(...(input.jobs ?? []));
|
|
226
|
+
const required = [...(input.requiredStatuses ?? statuses)];
|
|
227
|
+
if (input.refGateStatus && !required.includes(input.refGateStatus)) required.push(input.refGateStatus);
|
|
207
228
|
return {
|
|
208
229
|
forge,
|
|
209
230
|
repository,
|
|
210
231
|
jobs,
|
|
211
232
|
protectedBranches: input.protectedBranches ?? [repository.defaultBranch],
|
|
212
|
-
requiredStatuses:
|
|
233
|
+
requiredStatuses: required,
|
|
213
234
|
...(input.gitlabVariables ? { gitlabVariables: input.gitlabVariables } : {}),
|
|
214
235
|
};
|
|
215
236
|
}
|
|
@@ -165,6 +165,31 @@ describe("the contract chant's pipelines make (#4608)", () => {
|
|
|
165
165
|
expect(c.jobs[2]!.pulumi).toEqual({ organization: "acme", tokens: ["team:deployers"], audience: "urn:pulumi:org:acme", apiUrl: PULUMI_API });
|
|
166
166
|
});
|
|
167
167
|
|
|
168
|
+
test("the ref gate's status is required beside the plan status when the pipeline sets it (#4913)", () => {
|
|
169
|
+
const c = pipelineContract({ forge: "github", repository: repo(), pipelines: [{ name: "production", identity: awsIdentity }], refGateStatus: "chant/ref-gate" });
|
|
170
|
+
expect(c.requiredStatuses).toEqual(["chant/plan", "chant/ref-gate"]);
|
|
171
|
+
const given = pipelineContract({ forge: "github", repository: repo(), pipelines: [{ name: "production", identity: awsIdentity }], requiredStatuses: ["acme/ci", "acme/gate"], refGateStatus: "acme/gate" });
|
|
172
|
+
expect(given.requiredStatuses).toEqual(["acme/ci", "acme/gate"]);
|
|
173
|
+
expect(pipelineContract({ forge: "github", repository: repo(), pipelines: [{ name: "production", identity: awsIdentity }] }).requiredStatuses).toEqual(["chant/plan"]);
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
test("a product's own jobs follow the pipelines' jobs, with chant's statuses, ref gate status and protected branches (#4966)", () => {
|
|
177
|
+
const own: ForgeCheckContract["jobs"][number] = {
|
|
178
|
+
name: "production apply",
|
|
179
|
+
identity: "apply",
|
|
180
|
+
token: jobToken("github", repo(), { on: "branch", forgeEnvironment: "production" }),
|
|
181
|
+
forgeEnvironment: "production",
|
|
182
|
+
aws: { roles: ["arn:aws:iam::123456789012:role/apply"], audience: "sts.amazonaws.com" },
|
|
183
|
+
};
|
|
184
|
+
const alone = pipelineContract({ forge: "github", repository: repo(), pipelines: [], jobs: [own], requiredStatuses: ["terragucci/plan"], refGateStatus: "chant/ref-gate", protectedBranches: [] });
|
|
185
|
+
expect(alone.jobs).toEqual([own]);
|
|
186
|
+
expect(alone.requiredStatuses).toEqual(["terragucci/plan", "chant/ref-gate"]);
|
|
187
|
+
expect(alone.protectedBranches).toEqual([]);
|
|
188
|
+
const both = pipelineContract({ forge: "github", repository: repo(), pipelines: [{ name: "dev", identity: awsIdentity }], jobs: [own] });
|
|
189
|
+
expect(both.jobs.map((j) => j.name)).toEqual(["dev plan", "dev record", "dev apply", "production apply"]);
|
|
190
|
+
expect(both.requiredStatuses).toEqual(["chant/plan"]);
|
|
191
|
+
});
|
|
192
|
+
|
|
168
193
|
test("Forgejo has no environments, so an apply environment is left out", () => {
|
|
169
194
|
const c = pipelineContract({ forge: "forgejo", repository: { ...repo(), host: "code.example.com" }, pipelines: [{ name: "p", identity: awsIdentity, forgeEnvironment: "prod" }] });
|
|
170
195
|
expect(c.jobs[2]!.forgeEnvironment).toBeUndefined();
|
package/src/forge-check/index.ts
CHANGED
|
@@ -40,4 +40,8 @@ export {
|
|
|
40
40
|
type FederatedCredential,
|
|
41
41
|
} from "./trust";
|
|
42
42
|
export { pulumiRows, policyGrants, PULUMI_TOKEN_ENV } from "./pulumi";
|
|
43
|
+
/** `refGateStatus` in `pipelineContract` (#4913). */
|
|
44
|
+
export { REF_GATE_PIECES_FLOOR } from "../release-floors";
|
|
45
|
+
/** `jobs` in `pipelineContract` (#4966). */
|
|
46
|
+
export { FORGE_CHECK_OWN_JOBS_FLOOR } from "../release-floors";
|
|
43
47
|
export { forgeCheck, forgeCheckExit, describeForgeCheck, countRows, forgeCheckCommand, forgeCheckSchema, forgeCheckTarget, uncheckedClouds, ForgeCheckTargetError, type ForgeCheckInput } from "./check";
|
package/src/forge-flags.test.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { describe, expect, test } from "vitest";
|
|
8
|
-
import { apiBaseOf, ForgeFlagError, forgeFlagHints, forgeTargetFromFlags, forgeTargetOptionsFromFlags, forgeTargetWith } from "./forge-flags";
|
|
8
|
+
import { apiBaseOf, ForgeFlagError, forgeFlagHints, forgeTargetFromFlags, forgeTargetOptionsFromFlags, forgeTargetWith, jobForgeTarget } from "./forge-flags";
|
|
9
9
|
import { ForgeEnvironmentError } from "./pr-forge";
|
|
10
10
|
|
|
11
11
|
const SHA = "a".repeat(40);
|
|
@@ -108,3 +108,27 @@ describe("forgeTargetFromFlags (#4800)", () => {
|
|
|
108
108
|
expect(forgeFlagHints(missing as ForgeEnvironmentError, { requirePr: true })).toEqual(["outside CI pass --repo, --pr and --api-url", "name another token variable with --token-env"]);
|
|
109
109
|
});
|
|
110
110
|
});
|
|
111
|
+
|
|
112
|
+
// #4888: the one target type terragucci needs: the web origin on it, and undefined where the job cannot reach the forge.
|
|
113
|
+
describe("the target's web origin and jobForgeTarget (#4888)", () => {
|
|
114
|
+
test("the origin is --url, else the job's server, else https on the host", () => {
|
|
115
|
+
expect(forgeTargetWith({ FORGEJO_TOKEN: "f" }, { kind: "forgejo", repo: "a/b", url: "http://forgejo:3000/" }).origin).toBe("http://forgejo:3000");
|
|
116
|
+
expect(forgeTargetWith({ GITHUB_ACTIONS: "true", GITHUB_REPOSITORY: "a/b", GITHUB_SERVER_URL: "https://ghe.example", GITHUB_API_URL: "https://ghe.example/api/v3", GITHUB_TOKEN: "t" }).origin).toBe("https://ghe.example");
|
|
117
|
+
expect(forgeTargetWith({ GITLAB_CI: "true", CI_SERVER_URL: "https://gl.example", CI_API_V4_URL: "https://gl.example/api/v4", CI_PROJECT_ID: "7", GITLAB_TOKEN: "g" }).origin).toBe("https://gl.example");
|
|
118
|
+
expect(forgeTargetWith({ GITHUB_TOKEN: "t" }, { kind: "github", repo: "a/b", apiUrl: "https://api.github.com" }).origin).toBe("https://github.com");
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
const job = { GITHUB_ACTIONS: "true", GITHUB_REPOSITORY: "acme/infra", GITHUB_SERVER_URL: "https://github.com", TG_TOKEN: "tg" };
|
|
122
|
+
|
|
123
|
+
test("a job's target with the token the product holds, or with none for a read", () => {
|
|
124
|
+
expect(jobForgeTarget({ token: "given" }, job)).toMatchObject({ kind: "github", repo: "acme/infra", token: "given", origin: "https://github.com" });
|
|
125
|
+
expect(jobForgeTarget({ tokenEnv: "TG_TOKEN" }, job)).toMatchObject({ token: "tg", tokenSource: "TG_TOKEN" });
|
|
126
|
+
expect(jobForgeTarget({ tokenEnv: "TG_TOKEN" }, { ...job, TG_TOKEN: "" }, { tokenOptional: true })).toMatchObject({ token: "", repo: "acme/infra" });
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
test("undefined where the job names no forge or lacks a piece, and a bad flag still throws", () => {
|
|
130
|
+
expect(jobForgeTarget({ tokenEnv: "TG_TOKEN" }, {})).toBeUndefined();
|
|
131
|
+
expect(jobForgeTarget({ tokenEnv: "TG_TOKEN" }, { ...job, TG_TOKEN: "" })).toBeUndefined();
|
|
132
|
+
expect(() => jobForgeTarget({ forge: "svn" }, job)).toThrow(ForgeFlagError);
|
|
133
|
+
});
|
|
134
|
+
});
|
package/src/forge-flags.ts
CHANGED
|
@@ -34,6 +34,15 @@ export interface ForgeOverrides {
|
|
|
34
34
|
|
|
35
35
|
const trimUrl = (u: string | undefined): string | undefined => u?.trim().replace(/\/+$/, "") || undefined;
|
|
36
36
|
|
|
37
|
+
/** `scheme://host[:port]` of a URL, the path dropped. */
|
|
38
|
+
const originOf = (url: string): string => {
|
|
39
|
+
try {
|
|
40
|
+
return new URL(url).origin;
|
|
41
|
+
} catch {
|
|
42
|
+
return url;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
37
46
|
const hostOf = (url: string): string | undefined => {
|
|
38
47
|
try {
|
|
39
48
|
return new URL(url).host.toLowerCase();
|
|
@@ -102,6 +111,9 @@ export function forgeTargetWith(env: Record<string, string | undefined> = proces
|
|
|
102
111
|
const out: ForgeTarget = { ...t };
|
|
103
112
|
if (noToken) Object.assign(out, { token: "", tokenSource: "" });
|
|
104
113
|
if (kind !== "gitlab" && apiUrl && !url) out.host = hostOf(apiUrl)!.replace(/^api\.github\.com$/, "github.com");
|
|
114
|
+
// #4888: the web origin, for a product's links and messages: `url`, else the job's server when it is the target's host, else https on the host.
|
|
115
|
+
const server = url ?? trimUrl(kind === "gitlab" ? e.CI_SERVER_URL : ((fj ? e.FORGEJO_SERVER_URL : undefined) ?? e.GITHUB_SERVER_URL));
|
|
116
|
+
out.origin = server && /^https?:\/\//i.test(server) && hostOf(server) === out.host ? originOf(server) : `https://${out.host}`;
|
|
105
117
|
if (kind !== "gitlab" && (repo || url)) {
|
|
106
118
|
const server = trimUrl(job("SERVER_URL"));
|
|
107
119
|
const jobRepo = job("REPOSITORY");
|
|
@@ -193,6 +205,28 @@ export function forgeTargetFromFlags(
|
|
|
193
205
|
return { ...t, tokenSource: "the token given" };
|
|
194
206
|
}
|
|
195
207
|
|
|
208
|
+
/**
|
|
209
|
+
* {@link forgeTargetFromFlags}, or undefined where it would throw
|
|
210
|
+
* {@link ForgeEnvironmentError} (#4888): the environment names no forge, or
|
|
211
|
+
* lacks the repository or the token. For a product step that does its
|
|
212
|
+
* forge work only when the job can, as terragucci's own `targetFromEnv`
|
|
213
|
+
* did: give the token the product holds as `token`, the one variable to
|
|
214
|
+
* read as `tokenEnv`, and `tokenOptional` for a read a public repository
|
|
215
|
+
* answers with none.
|
|
216
|
+
*/
|
|
217
|
+
export function jobForgeTarget(
|
|
218
|
+
flags: ForgeFlags,
|
|
219
|
+
env: Record<string, string | undefined> = process.env,
|
|
220
|
+
opts: Pick<ForgeTargetOptions, "requirePr" | "readFile"> & Pick<ForgeOverrides, "tokenOptional"> = {},
|
|
221
|
+
): ForgeTarget | undefined {
|
|
222
|
+
try {
|
|
223
|
+
return forgeTargetFromFlags(flags, env, opts);
|
|
224
|
+
} catch (err) {
|
|
225
|
+
if (err instanceof ForgeEnvironmentError) return undefined;
|
|
226
|
+
throw err;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
196
230
|
/**
|
|
197
231
|
* The flags that would supply what a {@link ForgeEnvironmentError} says is
|
|
198
232
|
* missing, for a product's message: `outside CI pass --repo, --pr and
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* #4920: the forge a checkout's origin remote names, public, so a laptop
|
|
3
|
+
* command needs no repository setting.
|
|
4
|
+
*/
|
|
5
|
+
import { execFileSync } from "node:child_process";
|
|
6
|
+
import { mkdtempSync } from "node:fs";
|
|
7
|
+
import { tmpdir } from "node:os";
|
|
8
|
+
import { join } from "node:path";
|
|
9
|
+
import { describe, expect, test } from "vitest";
|
|
10
|
+
import { forgeKindOfHost, forgeOfCheckout, forgeOfRemote } from "./forge-remote";
|
|
11
|
+
|
|
12
|
+
describe("forgeOfRemote (#4920)", () => {
|
|
13
|
+
test("https, ssh and scp remotes on each forge", () => {
|
|
14
|
+
expect(forgeOfRemote("https://github.com/acme/infra.git")).toEqual({ kind: "github", host: "github.com", url: "https://github.com", repo: "acme/infra" });
|
|
15
|
+
expect(forgeOfRemote("git@gitlab.com:group/sub/proj.git")).toEqual({ kind: "gitlab", host: "gitlab.com", url: "https://gitlab.com", repo: "group/sub/proj" });
|
|
16
|
+
expect(forgeOfRemote("ssh://git@codeberg.org:22/acme/infra")).toEqual({ kind: "forgejo", host: "codeberg.org", url: "https://codeberg.org", repo: "acme/infra" });
|
|
17
|
+
expect(forgeOfRemote("http://forgejo.lan:3000/acme/infra.git")).toEqual({ kind: "forgejo", host: "forgejo.lan:3000", url: "http://forgejo.lan:3000", repo: "acme/infra" });
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
test("a host no forge is named for, unless the kind is given; no repository path is none", () => {
|
|
21
|
+
expect(forgeOfRemote("git@git.corp.example:acme/infra.git")).toBeUndefined();
|
|
22
|
+
expect(forgeOfRemote("git@git.corp.example:acme/infra.git", { kind: "gitlab" })).toMatchObject({ kind: "gitlab", repo: "acme/infra", url: "https://git.corp.example" });
|
|
23
|
+
expect(forgeOfRemote("https://github.com/")).toBeUndefined();
|
|
24
|
+
expect(forgeOfRemote(undefined)).toBeUndefined();
|
|
25
|
+
expect(forgeKindOfHost("GitHub.example.com")).toBe("github");
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
test("a checkout's origin, read with git", () => {
|
|
29
|
+
// A temporary checkout, left for the OS to clear.
|
|
30
|
+
const dir = mkdtempSync(join(tmpdir(), "chant-forge-remote-"));
|
|
31
|
+
execFileSync("git", ["-C", dir, "init", "-q"]);
|
|
32
|
+
expect(forgeOfCheckout(dir)).toBeUndefined();
|
|
33
|
+
execFileSync("git", ["-C", dir, "remote", "add", "origin", "git@github.com:acme/infra.git"]);
|
|
34
|
+
expect(forgeOfCheckout(dir)).toMatchObject({ kind: "github", repo: "acme/infra" });
|
|
35
|
+
expect(forgeOfCheckout(dir, { remote: "upstream" })).toBeUndefined();
|
|
36
|
+
});
|
|
37
|
+
});
|