@intentius/chant 0.124.27 → 0.124.28
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/README.md +1 -1
- package/dist/__golden__/wave-loop/fan-out-gated.json +8 -0
- package/dist/__golden__/wave-loop/fan-out-no-members.json +4 -0
- package/dist/__golden__/wave-loop/fan-out-only.json +6 -0
- package/dist/__golden__/wave-loop/op-by-apply-hold.json +2 -0
- package/dist/__golden__/wave-loop/op-cost-member.json +3 -0
- package/dist/__golden__/wave-loop/op-held-on-before-apply.json +1 -0
- package/dist/__golden__/wave-loop/op-held-on.json +2 -0
- package/dist/__golden__/wave-loop/op-hooks-held.json +2 -0
- package/dist/__golden__/wave-loop/op-hooks-hold-before-apply.json +2 -0
- package/dist/__golden__/wave-loop/op-hooks-refused-at-base.json +3 -0
- package/dist/__golden__/wave-loop/op-hooks-share.json +3 -0
- package/dist/__golden__/wave-loop/op-per-run.json +7 -0
- package/dist/__golden__/wave-loop/op-pr-review.json +7 -0
- package/dist/__golden__/wave-loop/op-sealed.json +3 -0
- package/dist/__golden__/wave-loop/op-spend.json +3 -0
- package/dist/__golden__/wave-loop/op-wave-commands.json +7 -0
- package/dist/__golden__/wave-loop/op-wide-waiting.json +4 -0
- package/dist/change-set-graph.d.ts +56 -0
- package/dist/change-set-graph.d.ts.map +1 -0
- package/dist/change-set-graph.js +128 -0
- package/dist/change-set.d.ts +52 -3
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +35 -4
- package/dist/chant-version.d.ts +9 -0
- package/dist/chant-version.d.ts.map +1 -0
- package/dist/chant-version.js +16 -0
- package/dist/cli/commands/build.d.ts +8 -0
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/build.js +9 -8
- package/dist/cli/commands/check-lexicon-docs.d.ts.map +1 -1
- package/dist/cli/commands/check-lexicon-docs.js +30 -2
- package/dist/cli/commands/check-lexicon.d.ts.map +1 -1
- package/dist/cli/commands/check-lexicon.js +13 -2
- package/dist/cli/commands/init-lexicon/templates/docs.d.ts +4 -1
- package/dist/cli/commands/init-lexicon/templates/docs.d.ts.map +1 -1
- package/dist/cli/commands/init-lexicon/templates/docs.js +6 -6
- package/dist/cli/commands/init-lexicon.d.ts.map +1 -1
- package/dist/cli/commands/init-lexicon.js +17 -8
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +19 -4
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/build.js +28 -0
- package/dist/cli/handlers/change-set.d.ts +10 -0
- package/dist/cli/handlers/change-set.d.ts.map +1 -1
- package/dist/cli/handlers/change-set.js +51 -1
- package/dist/cli/handlers/fan-out.d.ts +1 -1
- package/dist/cli/handlers/fan-out.d.ts.map +1 -1
- package/dist/cli/handlers/fan-out.js +14 -3
- package/dist/cli/handlers/pr.d.ts +8 -2
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +148 -24
- package/dist/cli/handlers/promote.d.ts.map +1 -1
- package/dist/cli/handlers/promote.js +256 -21
- package/dist/cli/handlers/release.d.ts +34 -0
- package/dist/cli/handlers/release.d.ts.map +1 -0
- package/dist/cli/handlers/release.js +203 -0
- package/dist/cli/handlers/run.d.ts +28 -2
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/handlers/run.js +170 -13
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +88 -13
- package/dist/cli/mcp/workspace-tools.js +1 -1
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +49 -3
- package/dist/cli/registry.d.ts +29 -3
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/cli/run-events.d.ts +29 -0
- package/dist/cli/run-events.d.ts.map +1 -0
- package/dist/cli/run-events.js +47 -0
- package/dist/cli/version.d.ts +3 -5
- package/dist/cli/version.d.ts.map +1 -1
- package/dist/cli/version.js +3 -13
- package/dist/codegen/docs-in-site.d.ts +71 -0
- package/dist/codegen/docs-in-site.d.ts.map +1 -0
- package/dist/codegen/docs-in-site.js +177 -0
- package/dist/codegen/docs-types.d.ts +14 -1
- package/dist/codegen/docs-types.d.ts.map +1 -1
- package/dist/codegen/docs.d.ts +18 -1
- package/dist/codegen/docs.d.ts.map +1 -1
- package/dist/codegen/docs.js +40 -7
- package/dist/codegen/rehype-base-url.mjs +15 -9
- package/dist/components/auto-release.d.ts +4 -1
- package/dist/components/auto-release.d.ts.map +1 -1
- package/dist/components/auto-release.js +2 -0
- package/dist/components/cli-support.d.ts +6 -0
- package/dist/components/cli-support.d.ts.map +1 -1
- package/dist/components/cli-support.js +10 -9
- package/dist/components/driver.d.ts +42 -9
- package/dist/components/driver.d.ts.map +1 -1
- package/dist/components/driver.js +81 -54
- package/dist/components/fan-out-run.d.ts +7 -0
- package/dist/components/fan-out-run.d.ts.map +1 -1
- package/dist/components/fan-out-run.js +35 -26
- package/dist/components/pr-run.d.ts +11 -0
- package/dist/components/pr-run.d.ts.map +1 -1
- package/dist/components/pr-run.js +20 -1
- package/dist/components/promote-order.d.ts +38 -0
- package/dist/components/promote-order.d.ts.map +1 -0
- package/dist/components/promote-order.js +62 -0
- package/dist/components/promote.d.ts +15 -2
- package/dist/components/promote.d.ts.map +1 -1
- package/dist/components/promote.js +17 -0
- package/dist/components/release-compile.d.ts +133 -0
- package/dist/components/release-compile.d.ts.map +1 -0
- package/dist/components/release-compile.js +376 -0
- package/dist/components/release-gate.d.ts +125 -0
- package/dist/components/release-gate.d.ts.map +1 -0
- package/dist/components/release-gate.js +282 -0
- package/dist/components/release-promote.d.ts +96 -0
- package/dist/components/release-promote.d.ts.map +1 -0
- package/dist/components/release-promote.js +204 -0
- package/dist/components/run-progress.d.ts +7 -0
- package/dist/components/run-progress.d.ts.map +1 -1
- package/dist/components/wave-plan.d.ts +3 -1
- package/dist/components/wave-plan.d.ts.map +1 -1
- package/dist/components/wave-plan.js +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/lifecycle/change-set-store.d.ts +67 -0
- package/dist/lifecycle/change-set-store.d.ts.map +1 -0
- package/dist/lifecycle/change-set-store.js +96 -0
- package/dist/lifecycle/commit-sha.d.ts +13 -0
- package/dist/lifecycle/commit-sha.d.ts.map +1 -0
- package/dist/lifecycle/commit-sha.js +21 -0
- package/dist/lifecycle/gate-change-set.d.ts +69 -0
- package/dist/lifecycle/gate-change-set.d.ts.map +1 -0
- package/dist/lifecycle/gate-change-set.js +106 -0
- package/dist/lifecycle/gate-ledger.d.ts +49 -1
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.js +18 -0
- package/dist/lifecycle/release-cut.d.ts +107 -0
- package/dist/lifecycle/release-cut.d.ts.map +1 -0
- package/dist/lifecycle/release-cut.js +273 -0
- package/dist/lifecycle/release-ledger.d.ts +54 -0
- package/dist/lifecycle/release-ledger.d.ts.map +1 -1
- package/dist/lifecycle/release-ledger.js +53 -20
- package/dist/lifecycle/release-store.d.ts +190 -0
- package/dist/lifecycle/release-store.d.ts.map +1 -0
- package/dist/lifecycle/release-store.js +318 -0
- package/dist/lifecycle/run-ledger.d.ts +4 -0
- package/dist/lifecycle/run-ledger.d.ts.map +1 -1
- package/dist/lifecycle/run-ledger.js +2 -0
- package/dist/op/activities/change-coverage.d.ts.map +1 -1
- package/dist/op/activities/change-coverage.js +4 -2
- package/dist/op/activities/source-release.d.ts.map +1 -1
- package/dist/op/activities/source-release.js +7 -3
- package/dist/op/activities/source-rollback.d.ts.map +1 -1
- package/dist/op/activities/source-rollback.js +7 -3
- package/dist/op/gate-name.d.ts +11 -2
- package/dist/op/gate-name.d.ts.map +1 -1
- package/dist/op/gate-name.js +12 -3
- package/dist/op/gate-run-locator.d.ts +22 -0
- package/dist/op/gate-run-locator.d.ts.map +1 -1
- package/dist/op/gate-run-locator.js +31 -0
- package/dist/op/gate.d.ts +27 -3
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/gate.js +57 -3
- package/dist/op/local-executor.d.ts +36 -1
- package/dist/op/local-executor.d.ts.map +1 -1
- package/dist/op/local-executor.js +158 -52
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +4 -0
- package/dist/op/run-live.d.ts +2 -0
- package/dist/op/run-live.d.ts.map +1 -1
- package/dist/op/run-live.js +1 -1
- package/dist/op/runtime.d.ts +46 -0
- package/dist/op/runtime.d.ts.map +1 -1
- package/dist/op/runtimes/local.d.ts.map +1 -1
- package/dist/op/runtimes/local.js +8 -0
- package/dist/point-decision.d.ts +2 -0
- package/dist/point-decision.d.ts.map +1 -1
- package/dist/point-decision.js +9 -2
- package/dist/run-event-store.d.ts +77 -0
- package/dist/run-event-store.d.ts.map +1 -0
- package/dist/run-event-store.js +204 -0
- package/dist/run-event-stream.d.ts +132 -0
- package/dist/run-event-stream.d.ts.map +1 -0
- package/dist/run-event-stream.js +238 -0
- package/dist/run-event.d.ts +267 -0
- package/dist/run-event.d.ts.map +1 -0
- package/dist/run-event.js +207 -0
- package/dist/wave-runtime.mjs +204 -199
- package/dist/workspace/__fixtures__/run-event-check.d.ts +19 -0
- package/dist/workspace/__fixtures__/run-event-check.d.ts.map +1 -0
- package/dist/workspace/__fixtures__/run-event-check.js +59 -0
- package/dist/workspace/change-set-show.d.ts +56 -0
- package/dist/workspace/change-set-show.d.ts.map +1 -0
- package/dist/workspace/change-set-show.js +54 -0
- package/dist/workspace/change-set-show.schema.json +102 -0
- package/dist/workspace/change-set.schema.json +28 -1
- package/dist/workspace/changes-cli.d.ts.map +1 -1
- package/dist/workspace/changes-cli.js +10 -1
- package/dist/workspace/changes.d.ts +37 -0
- package/dist/workspace/changes.d.ts.map +1 -1
- package/dist/workspace/changes.js +49 -2
- package/dist/workspace/changes.schema.json +135 -0
- package/dist/workspace/ci-green-cli.d.ts +19 -4
- package/dist/workspace/ci-green-cli.d.ts.map +1 -1
- package/dist/workspace/ci-green-cli.js +75 -12
- package/dist/workspace/ci-green-forge.d.ts +20 -3
- package/dist/workspace/ci-green-forge.d.ts.map +1 -1
- package/dist/workspace/ci-green-forge.js +6 -4
- package/dist/workspace/ci-green-workflow.d.ts +11 -0
- package/dist/workspace/ci-green-workflow.d.ts.map +1 -1
- package/dist/workspace/ci-green-workflow.js +6 -0
- package/dist/workspace/ci-green.d.ts +273 -13
- package/dist/workspace/ci-green.d.ts.map +1 -1
- package/dist/workspace/ci-green.js +449 -38
- package/dist/workspace/ci-last-green.schema.json +32 -2
- package/dist/workspace/ci-list.schema.json +525 -0
- package/dist/workspace/commit-links.d.ts +85 -0
- package/dist/workspace/commit-links.d.ts.map +1 -0
- package/dist/workspace/commit-links.js +163 -0
- package/dist/workspace/declaration.d.ts +19 -0
- package/dist/workspace/declaration.d.ts.map +1 -1
- package/dist/workspace/declaration.js +1 -1
- package/dist/workspace/declaration.schema.json +12 -0
- package/dist/workspace/identity-gate-rule.d.ts +37 -0
- package/dist/workspace/identity-gate-rule.d.ts.map +1 -1
- package/dist/workspace/identity-gate-rule.js +72 -7
- package/dist/workspace/identity.d.ts +12 -0
- package/dist/workspace/identity.d.ts.map +1 -1
- package/dist/workspace/identity.js +13 -1
- package/dist/workspace/intent.d.ts +6 -1
- package/dist/workspace/intent.d.ts.map +1 -1
- package/dist/workspace/intent.js +51 -1
- package/dist/workspace/ls.d.ts +4 -0
- package/dist/workspace/ls.d.ts.map +1 -1
- package/dist/workspace/ls.js +2 -0
- package/dist/workspace/ls.schema.json +3 -1
- package/dist/workspace/member-pipeline.d.ts +6 -0
- package/dist/workspace/member-pipeline.d.ts.map +1 -1
- package/dist/workspace/member-pipeline.js +6 -0
- package/dist/workspace/promotion-order.d.ts +41 -0
- package/dist/workspace/promotion-order.d.ts.map +1 -0
- package/dist/workspace/promotion-order.js +95 -0
- package/dist/workspace/reason-codes.d.ts +2 -0
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/reason-codes.js +4 -1
- package/dist/workspace/releases.d.ts +72 -0
- package/dist/workspace/releases.d.ts.map +1 -0
- package/dist/workspace/releases.js +94 -0
- package/dist/workspace/releases.schema.json +391 -0
- package/dist/workspace/run-event.schema.json +288 -0
- package/dist/workspace/status-gates.d.ts +26 -1
- package/dist/workspace/status-gates.d.ts.map +1 -1
- package/dist/workspace/status-gates.js +31 -2
- package/dist/workspace/status-stewards.d.ts +4 -0
- package/dist/workspace/status-stewards.d.ts.map +1 -1
- package/dist/workspace/status-stewards.js +2 -0
- package/dist/workspace/status.d.ts +39 -0
- package/dist/workspace/status.d.ts.map +1 -1
- package/dist/workspace/status.js +48 -1
- package/dist/workspace/status.schema.json +70 -1
- package/dist/workspace/trust/ci-tag-statement.d.ts +102 -0
- package/dist/workspace/trust/ci-tag-statement.d.ts.map +1 -0
- package/dist/workspace/trust/ci-tag-statement.js +123 -0
- package/dist/workspace/trust/op-run-statement.d.ts +91 -0
- package/dist/workspace/trust/op-run-statement.d.ts.map +1 -0
- package/dist/workspace/trust/op-run-statement.js +143 -0
- package/dist/workspace/trust/rotation.d.ts +18 -2
- package/dist/workspace/trust/rotation.d.ts.map +1 -1
- package/dist/workspace/trust/rotation.js +65 -16
- package/dist/workspace/trust/seal.d.ts +11 -0
- package/dist/workspace/trust/seal.d.ts.map +1 -1
- package/dist/workspace/trust/seal.js +9 -0
- package/dist/workspace/trust/ssh-commit.d.ts.map +1 -1
- package/dist/workspace/trust/ssh-commit.js +10 -10
- package/package.json +1 -1
- package/src/__golden__/wave-loop/fan-out-gated.json +8 -0
- package/src/__golden__/wave-loop/fan-out-no-members.json +4 -0
- package/src/__golden__/wave-loop/fan-out-only.json +6 -0
- package/src/__golden__/wave-loop/op-by-apply-hold.json +2 -0
- package/src/__golden__/wave-loop/op-cost-member.json +3 -0
- package/src/__golden__/wave-loop/op-held-on-before-apply.json +1 -0
- package/src/__golden__/wave-loop/op-held-on.json +2 -0
- package/src/__golden__/wave-loop/op-hooks-held.json +2 -0
- package/src/__golden__/wave-loop/op-hooks-hold-before-apply.json +2 -0
- package/src/__golden__/wave-loop/op-hooks-refused-at-base.json +3 -0
- package/src/__golden__/wave-loop/op-hooks-share.json +3 -0
- package/src/__golden__/wave-loop/op-per-run.json +7 -0
- package/src/__golden__/wave-loop/op-pr-review.json +7 -0
- package/src/__golden__/wave-loop/op-sealed.json +3 -0
- package/src/__golden__/wave-loop/op-spend.json +3 -0
- package/src/__golden__/wave-loop/op-wave-commands.json +7 -0
- package/src/__golden__/wave-loop/op-wide-waiting.json +4 -0
- package/src/change-set-graph.test.ts +72 -0
- package/src/change-set-graph.ts +133 -0
- package/src/change-set.ts +76 -6
- package/src/chant-version.ts +16 -0
- package/src/cli/commands/build.ts +19 -8
- package/src/cli/commands/check-lexicon-docs.test.ts +51 -0
- package/src/cli/commands/check-lexicon-docs.ts +39 -2
- package/src/cli/commands/check-lexicon.ts +14 -2
- package/src/cli/commands/init-lexicon/templates/docs.ts +7 -6
- package/src/cli/commands/init-lexicon.test.ts +25 -0
- package/src/cli/commands/init-lexicon.ts +18 -8
- package/src/cli/handlers/approve-release.test.ts +80 -0
- package/src/cli/handlers/approve.ts +18 -2
- package/src/cli/handlers/build.test.ts +52 -0
- package/src/cli/handlers/build.ts +29 -0
- package/src/cli/handlers/change-set.ts +49 -1
- package/src/cli/handlers/fan-out.test.ts +48 -0
- package/src/cli/handlers/fan-out.ts +15 -3
- package/src/cli/handlers/operator.test.ts +37 -0
- package/src/cli/handlers/pr.test.ts +194 -0
- package/src/cli/handlers/pr.ts +168 -34
- package/src/cli/handlers/promote.test.ts +389 -5
- package/src/cli/handlers/promote.ts +279 -20
- package/src/cli/handlers/release-implicit.e2e.test.ts +153 -0
- package/src/cli/handlers/release.e2e.test.ts +85 -0
- package/src/cli/handlers/release.ts +206 -0
- package/src/cli/handlers/run-auto-release.test.ts +71 -0
- package/src/cli/handlers/run-events-cmd.test.ts +92 -0
- package/src/cli/handlers/run.test.ts +30 -0
- package/src/cli/handlers/run.ts +176 -15
- package/src/cli/main.test.ts +7 -0
- package/src/cli/main.ts +88 -13
- package/src/cli/mcp/never-over-mcp.test.ts +2 -0
- package/src/cli/mcp/workspace-tools.ts +1 -1
- package/src/cli/parse-args.ts +37 -3
- package/src/cli/registry.ts +29 -3
- package/src/cli/run-events.ts +54 -0
- package/src/cli/version.ts +3 -13
- package/src/codegen/docs-in-site.test.ts +166 -0
- package/src/codegen/docs-in-site.ts +182 -0
- package/src/codegen/docs-site/AgentPrompt.astro +26 -1
- package/src/codegen/docs-types.ts +14 -1
- package/src/codegen/docs.ts +60 -7
- package/src/codegen/rehype-base-url.d.mts +3 -1
- package/src/codegen/rehype-base-url.mjs +15 -9
- package/src/codegen/rehype-base-url.test.ts +34 -0
- package/src/components/auto-release.test.ts +21 -0
- package/src/components/auto-release.ts +6 -1
- package/src/components/cli-support.test.ts +82 -0
- package/src/components/cli-support.ts +16 -9
- package/src/components/driver.ts +129 -56
- package/src/components/fan-out-run.ts +56 -35
- package/src/components/pr-run.ts +30 -1
- package/src/components/promote-order.test.ts +90 -0
- package/src/components/promote-order.ts +75 -0
- package/src/components/promote.test.ts +10 -1
- package/src/components/promote.ts +26 -1
- package/src/components/release-compile.test.ts +147 -0
- package/src/components/release-compile.ts +445 -0
- package/src/components/release-gate.test.ts +215 -0
- package/src/components/release-gate.ts +341 -0
- package/src/components/release-promote.test.ts +159 -0
- package/src/components/release-promote.ts +232 -0
- package/src/components/run-progress.ts +7 -0
- package/src/components/wave-plan.ts +1 -1
- package/src/config.ts +7 -1
- package/src/index.ts +2 -0
- package/src/lifecycle/change-set-store.test.ts +217 -0
- package/src/lifecycle/change-set-store.ts +112 -0
- package/src/lifecycle/commit-sha.ts +23 -0
- package/src/lifecycle/gate-change-set.e2e.test.ts +122 -0
- package/src/lifecycle/gate-change-set.ts +133 -0
- package/src/lifecycle/gate-ledger.test.ts +33 -0
- package/src/lifecycle/gate-ledger.ts +66 -1
- package/src/lifecycle/release-cut-signed.test.ts +180 -0
- package/src/lifecycle/release-cut.test.ts +411 -0
- package/src/lifecycle/release-cut.ts +367 -0
- package/src/lifecycle/release-ledger.test.ts +14 -0
- package/src/lifecycle/release-ledger.ts +85 -17
- package/src/lifecycle/release-store.ts +423 -0
- package/src/lifecycle/run-ledger.test.ts +10 -0
- package/src/lifecycle/run-ledger.ts +6 -0
- package/src/op/activities/change-coverage.ts +4 -1
- package/src/op/activities/source-release.ts +8 -3
- package/src/op/activities/source-rollback.ts +8 -4
- package/src/op/commit-run-gate-deploy-join.test.ts +117 -0
- package/src/op/gate-name.ts +13 -3
- package/src/op/gate-release.test.ts +126 -0
- package/src/op/gate-run-locator.test.ts +110 -0
- package/src/op/gate-run-locator.ts +35 -0
- package/src/op/gate.ts +88 -6
- package/src/op/local-executor.ts +207 -52
- package/src/op/op-waves-run.ts +4 -0
- package/src/op/run-events.test.ts +166 -0
- package/src/op/run-live.ts +1 -1
- package/src/op/runtime.ts +39 -0
- package/src/op/runtimes/local.test.ts +16 -0
- package/src/op/runtimes/local.ts +9 -0
- package/src/point-decision.ts +12 -2
- package/src/run-event-store.test.ts +144 -0
- package/src/run-event-store.ts +213 -0
- package/src/run-event-stream.test.ts +175 -0
- package/src/run-event-stream.ts +306 -0
- package/src/run-event.test.ts +277 -0
- package/src/run-event.ts +451 -0
- package/src/wave-loop-golden.test.ts +9 -0
- package/src/workspace/__fixtures__/run-event-check.ts +58 -0
- package/src/workspace/ancestry-index.test.ts +93 -0
- package/src/workspace/change-set-show.schema.json +102 -0
- package/src/workspace/change-set-show.ts +72 -0
- package/src/workspace/change-set.schema.json +28 -1
- package/src/workspace/changes-cli.ts +10 -1
- package/src/workspace/changes.schema.json +135 -0
- package/src/workspace/changes.test.ts +1 -1
- package/src/workspace/changes.ts +84 -2
- package/src/workspace/ci-green-cli.ts +75 -13
- package/src/workspace/ci-green-forge.ts +24 -4
- package/src/workspace/ci-green-runs.test.ts +242 -0
- package/src/workspace/ci-green-signed.test.ts +302 -0
- package/src/workspace/ci-green-workflow.test.ts +16 -0
- package/src/workspace/ci-green-workflow.ts +12 -0
- package/src/workspace/ci-green.test.ts +131 -2
- package/src/workspace/ci-green.ts +624 -42
- package/src/workspace/ci-last-green.schema.json +32 -2
- package/src/workspace/ci-list.schema.json +525 -0
- package/src/workspace/commit-links.test.ts +279 -0
- package/src/workspace/commit-links.ts +183 -0
- package/src/workspace/declaration.schema.json +12 -0
- package/src/workspace/declaration.ts +22 -2
- package/src/workspace/identity-gate-rule.ts +91 -7
- package/src/workspace/identity.ts +14 -1
- package/src/workspace/intent.ts +48 -1
- package/src/workspace/ls.schema.json +3 -1
- package/src/workspace/ls.ts +6 -0
- package/src/workspace/member-pipeline.test.ts +17 -0
- package/src/workspace/member-pipeline.ts +9 -0
- package/src/workspace/promotion-order.ts +97 -0
- package/src/workspace/read-contract.e2e.test.ts +4 -1
- package/src/workspace/reason-codes.test.ts +2 -1
- package/src/workspace/reason-codes.ts +4 -1
- package/src/workspace/releases.schema.json +391 -0
- package/src/workspace/releases.test.ts +108 -0
- package/src/workspace/releases.ts +122 -0
- package/src/workspace/run-event.schema.json +288 -0
- package/src/workspace/status-contract.test.ts +52 -1
- package/src/workspace/status-gates.ts +56 -1
- package/src/workspace/status-stewards.ts +6 -0
- package/src/workspace/status.schema.json +70 -1
- package/src/workspace/status.ts +80 -1
- package/src/workspace/trust/ci-tag-statement.ts +151 -0
- package/src/workspace/trust/op-run-statement.ts +148 -0
- package/src/workspace/trust/rotation.ts +61 -14
- package/src/workspace/trust/seal.ts +10 -0
- package/src/workspace/trust/ssh-commit.ts +10 -9
- package/src/cli/commands/__fixtures__/init-lexicon-output/docs/astro.config.mjs +0 -14
- package/src/cli/commands/__fixtures__/init-lexicon-output/docs/package.json +0 -16
- package/src/cli/commands/__fixtures__/init-lexicon-output/docs/src/content/docs/index.mdx +0 -8
- package/src/cli/commands/__fixtures__/init-lexicon-output/docs/src/content.config.ts +0 -15
- package/src/cli/commands/__fixtures__/init-lexicon-output/docs/tsconfig.json +0 -10
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
65
65
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
66
66
|
"description": "wave 1 of 3: net",
|
|
67
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
67
68
|
"planDigest": "jcs1-sha256:95bbd78ad48471cefeb1cb32a3f308abde40b2d299eac36ab86b0614f23bcccf"
|
|
68
69
|
},
|
|
69
70
|
"waves": [
|
|
@@ -136,6 +137,7 @@
|
|
|
136
137
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
137
138
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
138
139
|
"description": "wave 1 of 3: net",
|
|
140
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
139
141
|
"planDigest": "jcs1-sha256:95bbd78ad48471cefeb1cb32a3f308abde40b2d299eac36ab86b0614f23bcccf"
|
|
140
142
|
}
|
|
141
143
|
],
|
|
@@ -234,6 +236,7 @@
|
|
|
234
236
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
235
237
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
236
238
|
"description": "wave 2 of 3: a, b",
|
|
239
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
237
240
|
"planDigest": "jcs1-sha256:f56bc903abaf2bb2f593fcb6f83b48322c7079deed286c1439d2a4e0310e2bdd"
|
|
238
241
|
},
|
|
239
242
|
"waves": [
|
|
@@ -407,6 +410,7 @@
|
|
|
407
410
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
408
411
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
409
412
|
"description": "wave 2 of 3: a, b",
|
|
413
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
410
414
|
"planDigest": "jcs1-sha256:f56bc903abaf2bb2f593fcb6f83b48322c7079deed286c1439d2a4e0310e2bdd"
|
|
411
415
|
}
|
|
412
416
|
],
|
|
@@ -479,6 +483,7 @@
|
|
|
479
483
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
480
484
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
481
485
|
"description": "wave 1 of 3: net",
|
|
486
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
482
487
|
"planDigest": "jcs1-sha256:95bbd78ad48471cefeb1cb32a3f308abde40b2d299eac36ab86b0614f23bcccf"
|
|
483
488
|
},
|
|
484
489
|
"waves": [
|
|
@@ -553,6 +558,7 @@
|
|
|
553
558
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
554
559
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
555
560
|
"description": "wave 1 of 3: net",
|
|
561
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
556
562
|
"planDigest": "jcs1-sha256:95bbd78ad48471cefeb1cb32a3f308abde40b2d299eac36ab86b0614f23bcccf"
|
|
557
563
|
}
|
|
558
564
|
],
|
|
@@ -625,6 +631,7 @@
|
|
|
625
631
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
626
632
|
"expiresAt": "2026-10-11T02:00:00.000Z",
|
|
627
633
|
"description": "the release",
|
|
634
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
628
635
|
"planDigest": "jcs1-sha256:95bbd78ad48471cefeb1cb32a3f308abde40b2d299eac36ab86b0614f23bcccf"
|
|
629
636
|
},
|
|
630
637
|
"waves": [
|
|
@@ -697,6 +704,7 @@
|
|
|
697
704
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
698
705
|
"expiresAt": "2026-10-11T02:00:00.000Z",
|
|
699
706
|
"description": "the release",
|
|
707
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
700
708
|
"planDigest": "jcs1-sha256:95bbd78ad48471cefeb1cb32a3f308abde40b2d299eac36ab86b0614f23bcccf"
|
|
701
709
|
}
|
|
702
710
|
],
|
|
@@ -565,6 +565,7 @@
|
|
|
565
565
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
566
566
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
567
567
|
"description": "wave 1 of 3: net",
|
|
568
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
568
569
|
"planDigest": ""
|
|
569
570
|
},
|
|
570
571
|
"waves": [
|
|
@@ -627,6 +628,7 @@
|
|
|
627
628
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
628
629
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
629
630
|
"description": "wave 1 of 3: net",
|
|
631
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
630
632
|
"planDigest": ""
|
|
631
633
|
}
|
|
632
634
|
],
|
|
@@ -725,6 +727,7 @@
|
|
|
725
727
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
726
728
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
727
729
|
"description": "wave 2 of 3: a, b",
|
|
730
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
728
731
|
"planDigest": "jcs1-sha256:f56bc903abaf2bb2f593fcb6f83b48322c7079deed286c1439d2a4e0310e2bdd"
|
|
729
732
|
},
|
|
730
733
|
"waves": [
|
|
@@ -888,6 +891,7 @@
|
|
|
888
891
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
889
892
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
890
893
|
"description": "wave 2 of 3: a, b",
|
|
894
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
891
895
|
"planDigest": "jcs1-sha256:f56bc903abaf2bb2f593fcb6f83b48322c7079deed286c1439d2a4e0310e2bdd"
|
|
892
896
|
}
|
|
893
897
|
],
|
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
120
120
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
121
121
|
"description": "wave 1 of 3: net",
|
|
122
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
122
123
|
"planDigest": "jcs1-sha256:95bbd78ad48471cefeb1cb32a3f308abde40b2d299eac36ab86b0614f23bcccf"
|
|
123
124
|
},
|
|
124
125
|
"waves": [
|
|
@@ -191,6 +192,7 @@
|
|
|
191
192
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
192
193
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
193
194
|
"description": "wave 1 of 3: net",
|
|
195
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
194
196
|
"planDigest": "jcs1-sha256:95bbd78ad48471cefeb1cb32a3f308abde40b2d299eac36ab86b0614f23bcccf"
|
|
195
197
|
}
|
|
196
198
|
],
|
|
@@ -269,6 +271,7 @@
|
|
|
269
271
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
270
272
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
271
273
|
"description": "wave 2 of 3: a, b",
|
|
274
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
272
275
|
"planDigest": "jcs1-sha256:f56bc903abaf2bb2f593fcb6f83b48322c7079deed286c1439d2a4e0310e2bdd"
|
|
273
276
|
},
|
|
274
277
|
"waves": [
|
|
@@ -351,6 +354,7 @@
|
|
|
351
354
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
352
355
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
353
356
|
"description": "wave 2 of 3: a, b",
|
|
357
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
354
358
|
"planDigest": "jcs1-sha256:f56bc903abaf2bb2f593fcb6f83b48322c7079deed286c1439d2a4e0310e2bdd"
|
|
355
359
|
}
|
|
356
360
|
],
|
|
@@ -432,6 +436,7 @@
|
|
|
432
436
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
433
437
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
434
438
|
"description": "wave 2 of 3: b",
|
|
439
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
435
440
|
"planDigest": "jcs1-sha256:cdbfa0d8006aa5a0b18a4cd6ca51375882107ad8395f4f12e0f2ae19a95a5483"
|
|
436
441
|
},
|
|
437
442
|
"waves": [
|
|
@@ -504,6 +509,7 @@
|
|
|
504
509
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
505
510
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
506
511
|
"description": "wave 2 of 3: b",
|
|
512
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
507
513
|
"planDigest": "jcs1-sha256:cdbfa0d8006aa5a0b18a4cd6ca51375882107ad8395f4f12e0f2ae19a95a5483"
|
|
508
514
|
}
|
|
509
515
|
],
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
105
105
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
106
106
|
"description": "wave 1 (prod): 1 run, gate never, approval ledger, held by before-apply hook lag (t1)",
|
|
107
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
107
108
|
"planDigest": "jcs1-sha256:bd002be383b5e5991600692d985c09fb3ff0bc3370a8264d1ea8f118518dcc1e"
|
|
108
109
|
},
|
|
109
110
|
"recorded": true,
|
|
@@ -122,6 +123,7 @@
|
|
|
122
123
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
123
124
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
124
125
|
"description": "wave 1 (prod): 1 run, gate never, approval ledger, held by before-apply hook lag (t1)",
|
|
126
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
125
127
|
"planDigest": "jcs1-sha256:bd002be383b5e5991600692d985c09fb3ff0bc3370a8264d1ea8f118518dcc1e"
|
|
126
128
|
}
|
|
127
129
|
],
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
54
54
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
55
55
|
"description": "wave 1 (layer): 2 runs, gate always, approval ledger",
|
|
56
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
56
57
|
"planDigest": "jcs1-sha256:138f28c4ef2e87abe7454a8f47db147636932e106e166a399866b5bf470a21af"
|
|
57
58
|
},
|
|
58
59
|
"recorded": true,
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
72
73
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
73
74
|
"description": "wave 1 (layer): 2 runs, gate always, approval ledger",
|
|
75
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
74
76
|
"planDigest": "jcs1-sha256:138f28c4ef2e87abe7454a8f47db147636932e106e166a399866b5bf470a21af"
|
|
75
77
|
}
|
|
76
78
|
],
|
|
@@ -181,6 +183,7 @@
|
|
|
181
183
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
182
184
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
183
185
|
"description": "wave 1 (layer): 2 runs, gate always, approval ledger",
|
|
186
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
184
187
|
"planDigest": "jcs1-sha256:138f28c4ef2e87abe7454a8f47db147636932e106e166a399866b5bf470a21af"
|
|
185
188
|
},
|
|
186
189
|
"recorded": true,
|
|
@@ -140,6 +140,7 @@
|
|
|
140
140
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
141
141
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
142
142
|
"description": "move the queues",
|
|
143
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
143
144
|
"planDigest": "sha256:qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"
|
|
144
145
|
}
|
|
145
146
|
],
|
|
@@ -110,6 +110,7 @@
|
|
|
110
110
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
111
111
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
112
112
|
"description": "move the queues",
|
|
113
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
113
114
|
"planDigest": "sha256:qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"
|
|
114
115
|
}
|
|
115
116
|
],
|
|
@@ -250,6 +251,7 @@
|
|
|
250
251
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
251
252
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
252
253
|
"description": "move the topics",
|
|
254
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
253
255
|
"planDigest": "sha256:tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt"
|
|
254
256
|
}
|
|
255
257
|
],
|
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
113
113
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
114
114
|
"description": "wave 1 (prod): 2 runs, gate never, approval ledger, held by after-plan hook check (t2)",
|
|
115
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
115
116
|
"planDigest": "jcs1-sha256:52d1b04601e89971eab0e24094024707e878042be4b79ad476d6230ac5ef383f"
|
|
116
117
|
},
|
|
117
118
|
"recorded": true,
|
|
@@ -152,6 +153,7 @@
|
|
|
152
153
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
153
154
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
154
155
|
"description": "wave 1 (prod): 2 runs, gate never, approval ledger, held by after-plan hook check (t2)",
|
|
156
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
155
157
|
"planDigest": "jcs1-sha256:52d1b04601e89971eab0e24094024707e878042be4b79ad476d6230ac5ef383f"
|
|
156
158
|
}
|
|
157
159
|
],
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
96
96
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
97
97
|
"description": "wave 1 (prod): 2 runs, gate never, approval ledger, held by before-apply hook lag",
|
|
98
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
98
99
|
"planDigest": "jcs1-sha256:52d1b04601e89971eab0e24094024707e878042be4b79ad476d6230ac5ef383f"
|
|
99
100
|
},
|
|
100
101
|
"recorded": true,
|
|
@@ -113,6 +114,7 @@
|
|
|
113
114
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
114
115
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
115
116
|
"description": "wave 1 (prod): 2 runs, gate never, approval ledger, held by before-apply hook lag",
|
|
117
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
116
118
|
"planDigest": "jcs1-sha256:52d1b04601e89971eab0e24094024707e878042be4b79ad476d6230ac5ef383f"
|
|
117
119
|
}
|
|
118
120
|
],
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
46
46
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
47
47
|
"description": "wave 1 (prod): 2 runs, gate never, approval ledger, held by the hooks at base cannot be run (waves.json at bbbbbbbbbbbb: `hooks.before.plan[0].command` must be a command as argv, a non-empty array of strings.)",
|
|
48
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
48
49
|
"planDigest": "jcs1-sha256:52d1b04601e89971eab0e24094024707e878042be4b79ad476d6230ac5ef383f"
|
|
49
50
|
},
|
|
50
51
|
"recorded": true,
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
64
65
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
65
66
|
"description": "wave 1 (prod): 2 runs, gate never, approval ledger, held by the hooks at base cannot be run (waves.json at bbbbbbbbbbbb: `hooks.before.plan[0].command` must be a command as argv, a non-empty array of strings.)",
|
|
67
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
66
68
|
"planDigest": "jcs1-sha256:52d1b04601e89971eab0e24094024707e878042be4b79ad476d6230ac5ef383f"
|
|
67
69
|
}
|
|
68
70
|
],
|
|
@@ -138,6 +140,7 @@
|
|
|
138
140
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
139
141
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
140
142
|
"description": "wave 1 (prod): 2 runs, gate never, approval ledger, held by the hooks at base cannot be run (waves.json at bbbbbbbbbbbb: `hooks.before.plan[0].command` must be a command as argv, a non-empty array of strings.)",
|
|
143
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
141
144
|
"planDigest": "jcs1-sha256:52d1b04601e89971eab0e24094024707e878042be4b79ad476d6230ac5ef383f"
|
|
142
145
|
},
|
|
143
146
|
"recorded": true,
|
|
@@ -113,6 +113,7 @@
|
|
|
113
113
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
114
114
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
115
115
|
"description": "wave 1 (prod): 2 runs, gate never, approval ledger, held by after-plan hook check (t2)",
|
|
116
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
116
117
|
"planDigest": "jcs1-sha256:52d1b04601e89971eab0e24094024707e878042be4b79ad476d6230ac5ef383f"
|
|
117
118
|
},
|
|
118
119
|
"recorded": true,
|
|
@@ -153,6 +154,7 @@
|
|
|
153
154
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
154
155
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
155
156
|
"description": "wave 1 (prod): 2 runs, gate never, approval ledger, held by after-plan hook check (t2)",
|
|
157
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
156
158
|
"planDigest": "jcs1-sha256:52d1b04601e89971eab0e24094024707e878042be4b79ad476d6230ac5ef383f"
|
|
157
159
|
}
|
|
158
160
|
],
|
|
@@ -254,6 +256,7 @@
|
|
|
254
256
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
255
257
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
256
258
|
"description": "wave 1 (prod): 2 runs, gate never, approval ledger, held by after-plan hook check (t2)",
|
|
259
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
257
260
|
"planDigest": "jcs1-sha256:52d1b04601e89971eab0e24094024707e878042be4b79ad476d6230ac5ef383f"
|
|
258
261
|
},
|
|
259
262
|
"recorded": true,
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
81
81
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
82
82
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval ledger",
|
|
83
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
83
84
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
84
85
|
},
|
|
85
86
|
"recorded": true,
|
|
@@ -98,6 +99,7 @@
|
|
|
98
99
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
99
100
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
100
101
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval ledger",
|
|
102
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
101
103
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
102
104
|
}
|
|
103
105
|
],
|
|
@@ -146,6 +148,7 @@
|
|
|
146
148
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
147
149
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
148
150
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval ledger",
|
|
151
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
149
152
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
150
153
|
},
|
|
151
154
|
"recorded": true,
|
|
@@ -164,6 +167,7 @@
|
|
|
164
167
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
165
168
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
166
169
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval ledger",
|
|
170
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
167
171
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
168
172
|
}
|
|
169
173
|
],
|
|
@@ -257,6 +261,7 @@
|
|
|
257
261
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
258
262
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
259
263
|
"description": "wave 2 (staging): 1 run, gate always, approval ledger",
|
|
264
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
260
265
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
261
266
|
},
|
|
262
267
|
"recorded": true,
|
|
@@ -275,6 +280,7 @@
|
|
|
275
280
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
276
281
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
277
282
|
"description": "wave 2 (staging): 1 run, gate always, approval ledger",
|
|
283
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
278
284
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
279
285
|
}
|
|
280
286
|
],
|
|
@@ -508,6 +514,7 @@
|
|
|
508
514
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
509
515
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
510
516
|
"description": "wave 2 (staging): 1 run, gate always, approval ledger",
|
|
517
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
511
518
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
512
519
|
},
|
|
513
520
|
"recorded": true,
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
57
57
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
58
58
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval pr-review",
|
|
59
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
59
60
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
60
61
|
}
|
|
61
62
|
],
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
"approver": {
|
|
71
72
|
"kind": "human"
|
|
72
73
|
},
|
|
74
|
+
"gitSha": "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh",
|
|
73
75
|
"note": "approved by the review of #7 at hhhhhhhhhhhh: github:erin",
|
|
74
76
|
"url": "https://example.test/pr/7",
|
|
75
77
|
"review": {
|
|
@@ -125,6 +127,7 @@
|
|
|
125
127
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
126
128
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
127
129
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval pr-review",
|
|
130
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
128
131
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
129
132
|
},
|
|
130
133
|
"recorded": true,
|
|
@@ -149,6 +152,7 @@
|
|
|
149
152
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
150
153
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
151
154
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval pr-review",
|
|
155
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
152
156
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
153
157
|
}
|
|
154
158
|
],
|
|
@@ -198,6 +202,7 @@
|
|
|
198
202
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
199
203
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
200
204
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval pr-review",
|
|
205
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
201
206
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
202
207
|
},
|
|
203
208
|
"recorded": true,
|
|
@@ -225,6 +230,7 @@
|
|
|
225
230
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
226
231
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
227
232
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval pr-review",
|
|
233
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
228
234
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
229
235
|
}
|
|
230
236
|
],
|
|
@@ -378,6 +384,7 @@
|
|
|
378
384
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
379
385
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
380
386
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval pr-review",
|
|
387
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
381
388
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
382
389
|
},
|
|
383
390
|
"recorded": true,
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
40
40
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
41
41
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval sealed",
|
|
42
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
42
43
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
43
44
|
},
|
|
44
45
|
"recorded": true,
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
58
59
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
59
60
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval sealed",
|
|
61
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
60
62
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
61
63
|
}
|
|
62
64
|
],
|
|
@@ -115,6 +117,7 @@
|
|
|
115
117
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
116
118
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
117
119
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval sealed",
|
|
120
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
118
121
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
119
122
|
},
|
|
120
123
|
"recorded": true,
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
51
51
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
52
52
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval ledger",
|
|
53
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
53
54
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
54
55
|
}
|
|
55
56
|
],
|
|
@@ -114,6 +115,7 @@
|
|
|
114
115
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
115
116
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
116
117
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval ledger",
|
|
118
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
117
119
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
118
120
|
},
|
|
119
121
|
"recorded": true,
|
|
@@ -132,6 +134,7 @@
|
|
|
132
134
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
133
135
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
134
136
|
"description": "wave 2 (staging): 1 run, gate on-destructive, approval ledger",
|
|
137
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
135
138
|
"planDigest": "jcs1-sha256:121fce9fb501cc2872d4239f620d465480edef5fcbe86d290f3b17c017231e8d"
|
|
136
139
|
}
|
|
137
140
|
],
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"gate": "wave-1",
|
|
83
83
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
84
84
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
85
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
85
86
|
"planDigest": "jcs1-sha256:e8c434b396fbbce2b501a5fb746548ad4db81a26543b4dc2c757ec148379f853",
|
|
86
87
|
"neverOverMcp": true
|
|
87
88
|
},
|
|
@@ -110,6 +111,7 @@
|
|
|
110
111
|
"gate": "wave-1",
|
|
111
112
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
112
113
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
114
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
113
115
|
"planDigest": "jcs1-sha256:e8c434b396fbbce2b501a5fb746548ad4db81a26543b4dc2c757ec148379f853",
|
|
114
116
|
"neverOverMcp": true
|
|
115
117
|
}
|
|
@@ -299,6 +301,7 @@
|
|
|
299
301
|
"gate": "wave-1",
|
|
300
302
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
301
303
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
304
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
302
305
|
"planDigest": "jcs1-sha256:e8c434b396fbbce2b501a5fb746548ad4db81a26543b4dc2c757ec148379f853",
|
|
303
306
|
"neverOverMcp": true
|
|
304
307
|
},
|
|
@@ -333,6 +336,7 @@
|
|
|
333
336
|
"gate": "wave-1",
|
|
334
337
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
335
338
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
339
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
336
340
|
"planDigest": "jcs1-sha256:e8c434b396fbbce2b501a5fb746548ad4db81a26543b4dc2c757ec148379f853",
|
|
337
341
|
"neverOverMcp": true
|
|
338
342
|
}
|
|
@@ -743,6 +747,7 @@
|
|
|
743
747
|
"gate": "wave-1",
|
|
744
748
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
745
749
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
750
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
746
751
|
"planDigest": "jcs1-sha256:e8c434b396fbbce2b501a5fb746548ad4db81a26543b4dc2c757ec148379f853",
|
|
747
752
|
"neverOverMcp": true
|
|
748
753
|
},
|
|
@@ -1150,6 +1155,7 @@
|
|
|
1150
1155
|
"gate": "wave-1",
|
|
1151
1156
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
1152
1157
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
1158
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
1153
1159
|
"planDigest": "jcs1-sha256:e8c434b396fbbce2b501a5fb746548ad4db81a26543b4dc2c757ec148379f853",
|
|
1154
1160
|
"neverOverMcp": true
|
|
1155
1161
|
},
|
|
@@ -1662,6 +1668,7 @@
|
|
|
1662
1668
|
"gate": "wave-1",
|
|
1663
1669
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
1664
1670
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
1671
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
1665
1672
|
"planDigest": "jcs1-sha256:e8c434b396fbbce2b501a5fb746548ad4db81a26543b4dc2c757ec148379f853",
|
|
1666
1673
|
"neverOverMcp": true
|
|
1667
1674
|
},
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
50
50
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
51
51
|
"description": "wave 3 (prod): 3 runs, gate always, approval ledger",
|
|
52
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
52
53
|
"planDigest": "jcs1-sha256:106d25f35ee6bc02e9aa253d0b2633a764396833c82e0c5ec5a4ad83a2a85b4e"
|
|
53
54
|
},
|
|
54
55
|
"recorded": true,
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
68
69
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
69
70
|
"description": "wave 3 (prod): 3 runs, gate always, approval ledger",
|
|
71
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
70
72
|
"planDigest": "jcs1-sha256:106d25f35ee6bc02e9aa253d0b2633a764396833c82e0c5ec5a4ad83a2a85b4e"
|
|
71
73
|
}
|
|
72
74
|
],
|
|
@@ -125,6 +127,7 @@
|
|
|
125
127
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
126
128
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
127
129
|
"description": "wave 3 (prod): 3 runs, gate always, approval ledger",
|
|
130
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
128
131
|
"planDigest": "jcs1-sha256:106d25f35ee6bc02e9aa253d0b2633a764396833c82e0c5ec5a4ad83a2a85b4e"
|
|
129
132
|
},
|
|
130
133
|
"recorded": true,
|
|
@@ -221,6 +224,7 @@
|
|
|
221
224
|
"timestamp": "2026-10-11T00:00:00.000Z",
|
|
222
225
|
"expiresAt": "2026-10-13T00:00:00.000Z",
|
|
223
226
|
"description": "wave 3 (prod): 3 runs, gate always, approval ledger",
|
|
227
|
+
"gitSha": "1111111111111111111111111111111111111111",
|
|
224
228
|
"planDigest": "jcs1-sha256:106d25f35ee6bc02e9aa253d0b2633a764396833c82e0c5ec5a4ad83a2a85b4e"
|
|
225
229
|
},
|
|
226
230
|
"recorded": true,
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mapping a change set's entries onto graph node ids (#4022). The real-estate
|
|
3
|
+
* tests read the graph from `chant graph --format ir`: the five tofu roots in
|
|
4
|
+
* `lexicons/terraform/src/components/pr-loop.tofu.test.ts` and the aws
|
|
5
|
+
* workspace member in `lifecycle/gate-change-set.e2e.test.ts`. This holds the
|
|
6
|
+
* address rules and the digest.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { readFileSync } from "node:fs";
|
|
10
|
+
import { join } from "node:path";
|
|
11
|
+
import { describe, expect, test } from "vitest";
|
|
12
|
+
import { composeChangeSet, lifecyclePlanPart, verifyChangeSetDigest, type ChangeSetEntry } from "./change-set";
|
|
13
|
+
import { changeSetNodeCandidates, mapChangeSetToGraph, terraformBlockKey } from "./change-set-graph";
|
|
14
|
+
import type { ChangeSet as LifecycleChangeSet } from "./lifecycle/change-set";
|
|
15
|
+
|
|
16
|
+
const plan = JSON.parse(readFileSync(join(import.meta.dirname, "__fixtures__", "change-set", "lifecycle-plan.floci.json"), "utf8")) as LifecycleChangeSet;
|
|
17
|
+
|
|
18
|
+
describe("terraformBlockKey", () => {
|
|
19
|
+
test("names the block the terraform lexicon keys, without the instance index", () => {
|
|
20
|
+
expect(terraformBlockKey("terraform_data.keep")).toBe("terraform_data.keep");
|
|
21
|
+
expect(terraformBlockKey("module.app.terraform_data.instance[0]")).toBe("module.app/terraform_data.instance");
|
|
22
|
+
expect(terraformBlockKey('module.cdn["eu"].module.bucket[1].aws_s3_bucket.this["a.b]"]')).toBe("module.cdn/module.bucket/aws_s3_bucket.this");
|
|
23
|
+
expect(terraformBlockKey("data.aws_iam_policy.boundary")).toBe("data.aws_iam_policy.boundary");
|
|
24
|
+
expect(terraformBlockKey("module.app.data.aws_ami.ubuntu")).toBe("module.app/data.aws_ami.ubuntu");
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
test("a terraform entry tries <root>/<block key>, then its address", () => {
|
|
28
|
+
expect(changeSetNodeCandidates({ member: "estate", planner: "tofu", address: "module.app.terraform_data.instance[1]" })).toEqual([
|
|
29
|
+
"estate/module.app/terraform_data.instance",
|
|
30
|
+
"module.app.terraform_data.instance[1]",
|
|
31
|
+
]);
|
|
32
|
+
expect(changeSetNodeCandidates({ member: "delivery", planner: "chant", address: "jobs" })).toEqual(["jobs"]);
|
|
33
|
+
expect(changeSetNodeCandidates({ member: "org", planner: "warden", address: "team.platform" })).toEqual(["team.platform"]);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
describe("mapChangeSetToGraph", () => {
|
|
38
|
+
const doc = composeChangeSet([lifecyclePlanPart({ member: "delivery", plan })]);
|
|
39
|
+
|
|
40
|
+
test("keeps the ids the graph holds, puts the member in front, and leaves the digest alone", () => {
|
|
41
|
+
const mapped = mapChangeSetToGraph(doc, { member: "delivery", at: "a".repeat(40), ids: ["jobs", "events", "dlq"] });
|
|
42
|
+
expect(mapped.entries.map((e) => [e.address, e.node])).toEqual([
|
|
43
|
+
["alerts", null],
|
|
44
|
+
["dlq", "delivery/dlq"],
|
|
45
|
+
["events", "delivery/events"],
|
|
46
|
+
["jobs", "delivery/jobs"],
|
|
47
|
+
]);
|
|
48
|
+
expect(mapped.graph).toEqual({ member: "delivery", at: "a".repeat(40) });
|
|
49
|
+
expect(mapped.digest).toBe(doc.digest);
|
|
50
|
+
expect(verifyChangeSetDigest(mapped)).toBe(true);
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
test("outside a workspace the id is the member's own", () => {
|
|
54
|
+
const mapped = mapChangeSetToGraph(doc, { member: null, at: null, ids: ["jobs"] });
|
|
55
|
+
expect(mapped.entries.find((e) => e.address === "jobs")!.node).toBe("jobs");
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
test("no graph gives every entry a null node", () => {
|
|
59
|
+
const mapped = mapChangeSetToGraph(doc, null);
|
|
60
|
+
expect(mapped.graph).toBeNull();
|
|
61
|
+
expect(mapped.entries.every((e: ChangeSetEntry) => e.node === null)).toBe(true);
|
|
62
|
+
expect(verifyChangeSetDigest(mapped)).toBe(true);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
test("a node is not hashed, and every other part of an entry still is", () => {
|
|
66
|
+
const mapped = mapChangeSetToGraph(doc, { member: null, at: null, ids: ["jobs"] });
|
|
67
|
+
const moved = { ...mapped, entries: mapped.entries.map((e) => ({ ...e, node: "elsewhere" })) };
|
|
68
|
+
expect(verifyChangeSetDigest(moved)).toBe(true);
|
|
69
|
+
const changed = { ...mapped, entries: mapped.entries.map((e, i) => (i === 0 ? { ...e, address: "other" } : e)) };
|
|
70
|
+
expect(verifyChangeSetDigest(changed)).toBe(false);
|
|
71
|
+
});
|
|
72
|
+
});
|