checkwright 0.23.0 → 0.25.0
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 +175 -13
- package/lib/common/lock.sh +7 -0
- package/lib/common/recipe.sh +1 -1
- package/lib/diff.sh +2 -0
- package/lib/init.sh +40 -16
- package/lib/uninstall.sh +2 -0
- package/package.json +2 -2
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/README.md +2 -0
- package/payload/canon-kit/SPEC.md +454 -28
- package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
- package/payload/canon-kit/checks/check-amendment-update-target.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
- package/payload/canon-kit/checks/check-unmarked-claim.gate +3 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/SPEC-thing.md +26 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +47 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +82 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +11 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +18 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +85 -0
- package/payload/canon-kit/lib/spec.sh +16 -0
- package/payload/canon-kit/smoke/install.sh +3 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +17 -2
- package/payload/context-kit/README.md +6 -4
- package/payload/context-kit/SPEC.md +256 -76
- package/payload/context-kit/bin/always-loaded.sh +5 -21
- package/payload/context-kit/bin/env-probe.sh +2 -17
- package/payload/context-kit/checks/check-brevity.gate +3 -0
- package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
- package/payload/context-kit/checks/check-memory-off.gate +3 -0
- package/payload/context-kit/checks/check-settings-paths.gate +3 -0
- package/payload/context-kit/checks/check-settings-pins.gate +3 -0
- package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
- package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
- package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +5 -5
- package/payload/context-kit/index-tests/toolfloor-cases.sh +5 -5
- package/payload/context-kit/lib/context.sh +56 -0
- package/payload/context-kit/lib/toolfloor.sh +1 -1
- package/payload/context-kit/smoke/agents-md.sh +16 -4
- package/payload/context-kit/smoke/install.sh +3 -2
- package/payload/context-kit/templates/session-context.sh +5 -5
- package/payload/delegation-kit/README.md +11 -1
- package/payload/delegation-kit/SPEC.md +652 -11
- package/payload/delegation-kit/bin/wait-probe.sh +184 -0
- package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
- package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
- package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
- package/payload/delegation-kit/gate-tests/subagent-stop-liveness.test.sh +99 -0
- package/payload/delegation-kit/smoke/install.sh +21 -1
- package/payload/delegation-kit/templates/agent-execution.md +88 -4
- package/payload/delegation-kit/templates/subagent-stop-liveness.sh +56 -0
- package/payload/doctrine-kit/SPEC.md +1 -1
- package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +2 -3
- package/payload/doctrine-kit/smoke/install.sh +17 -4
- package/payload/drift-kit/README.md +2 -2
- package/payload/drift-kit/SPEC.md +71 -7
- package/payload/drift-kit/bin/stage-economics.sh +1 -1
- package/payload/drift-kit/lib/drift.sh +43 -0
- package/payload/drift-kit/smoke/install.sh +21 -14
- package/payload/evidence-kit/README.md +3 -1
- package/payload/evidence-kit/SPEC.md +160 -19
- package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +42 -2
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
- package/payload/evidence-kit/lib/evidence.sh +2 -0
- package/payload/evidence-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/README.md +17 -9
- package/payload/gate-sdk/SPEC.md +4680 -295
- package/payload/gate-sdk/bin/build-native.sh +66 -1
- package/payload/gate-sdk/bin/install-hooks.sh +14 -2
- package/payload/gate-sdk/bin/port-blockers.sh +37 -9
- package/payload/gate-sdk/bin/run-gate-tests.sh +1 -2
- package/payload/gate-sdk/bin/run-gates.sh +137 -13
- package/payload/gate-sdk/bin/upgrade-smoke.sh +21 -16
- package/payload/gate-sdk/checks/check-action-run-shell.sh +2 -1
- package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
- package/payload/gate-sdk/checks/check-core-files.gate +3 -0
- package/payload/gate-sdk/checks/check-crate-arms.sh +1 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-assertions.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +132 -15
- package/payload/gate-sdk/checks/check-graph.gate +3 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-identity.gate +3 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +1 -0
- package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
- package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
- package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.gate +3 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
- package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +5 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +22 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-count.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-extra.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-zero.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +27 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-qux.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +117 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +4 -5
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kit-spec.md +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-nospec.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-ungrounded.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kit-spec.md +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +49 -4
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
- package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
- package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/multi.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/second-leak.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/worktrees/vendored-note.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +94 -0
- package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +94 -1
- package/payload/gate-sdk/lib/gate.sh +232 -25
- package/payload/gate-sdk/smoke/install.sh +28 -1
- package/payload/guard-kit/README.md +4 -3
- package/payload/guard-kit/SPEC.md +578 -47
- package/payload/guard-kit/bin/compare-settings-allow.sh +36 -12
- package/payload/guard-kit/bin/run-guard-tests.sh +27 -4
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +46 -1
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
- package/payload/guard-kit/guard-tests/background-cases.tsv +14 -0
- package/payload/guard-kit/guard-tests/cases.tsv +67 -9
- package/payload/guard-kit/lib/guard.sh +361 -18
- package/payload/guard-kit/templates/bash-guard.sh +2 -0
- package/payload/guard-kit/templates/close-triage.md +10 -3
- package/payload/guard-kit/templates/guard-config.sh +3 -0
- package/payload/lifecycle-kit/README.md +3 -2
- package/payload/lifecycle-kit/SPEC.md +509 -77
- package/payload/lifecycle-kit/bin/enter-stage.sh +72 -33
- package/payload/lifecycle-kit/bin/file-gap.sh +2 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +22 -22
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +120 -10
- package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +11 -11
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
- package/payload/lifecycle-kit/lib/stages.sh +5 -0
- package/payload/lifecycle-kit/smoke/install.sh +29 -15
- package/payload/lifecycle-kit/templates/lead.md +32 -0
- package/payload/lifecycle-kit/templates/stages/align.md +20 -2
- package/payload/lifecycle-kit/templates/stages/build.md +3 -3
- package/payload/lifecycle-kit/templates/stages/close.md +20 -6
- package/payload/lifecycle-kit/templates/stages/scope.md +20 -1
- package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
- package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +1 -1
- package/payload/queue-kit/README.md +10 -10
- package/payload/queue-kit/SPEC.md +379 -84
- package/payload/queue-kit/bin/queue-counts.sh +1 -1
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +1 -1
- package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +1 -1
- package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
- package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
- package/payload/queue-kit/lib/queue.sh +0 -49
- package/payload/queue-kit/smoke/install.sh +1 -1
- package/payload/site-kit/SPEC.md +41 -2
- package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
- package/payload/site-kit/smoke/install.sh +1 -1
- package/payload/canon-kit/checks/check-amendment-queue.sh +0 -117
- package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -79
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -240
- package/payload/canon-kit/checks/check-prose-tells.sh +0 -208
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -134
- package/payload/context-kit/bin/footprint.sh +0 -144
- package/payload/context-kit/checks/check-brevity.sh +0 -124
- package/payload/context-kit/checks/check-footprint-fresh.sh +0 -39
- package/payload/context-kit/checks/check-memory-off.sh +0 -113
- package/payload/context-kit/checks/check-settings-paths.sh +0 -94
- package/payload/context-kit/checks/check-settings-pins.sh +0 -111
- package/payload/context-kit/gate-tests/check-memory-off/bad/args +0 -1
- package/payload/context-kit/gate-tests/check-memory-off/good/args +0 -1
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -62
- package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -140
- package/payload/delegation-kit/checks/check-rule-citation.sh +0 -77
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -246
- package/payload/drift-kit/bin/trajectory.sh +0 -242
- package/payload/evidence-kit/checks/check-battery-roster.sh +0 -87
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -104
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -105
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
- package/payload/gate-sdk/bin/enforcement-map.sh +0 -273
- package/payload/gate-sdk/checks/check-commit-msg.sh +0 -51
- package/payload/gate-sdk/checks/check-commit-subject.sh +0 -44
- package/payload/gate-sdk/checks/check-core-files.sh +0 -76
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -38
- package/payload/gate-sdk/checks/check-exec-bit.sh +0 -96
- package/payload/gate-sdk/checks/check-gate-assertions.sh +0 -148
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -107
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -106
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -85
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -93
- package/payload/gate-sdk/checks/check-gate-output.sh +0 -103
- package/payload/gate-sdk/checks/check-graph.sh +0 -632
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -46
- package/payload/gate-sdk/checks/check-identity.sh +0 -135
- package/payload/gate-sdk/checks/check-kit-enum.sh +0 -95
- package/payload/gate-sdk/checks/check-readme-roster.sh +0 -108
- package/payload/gate-sdk/checks/check-reads-couples.sh +0 -200
- package/payload/gate-sdk/checks/check-root-tiering.sh +0 -67
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -127
- package/payload/gate-sdk/checks/check-tree-terms.sh +0 -66
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -85
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
- package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -64
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -198
- package/payload/queue-kit/bin/queue-index.sh +0 -182
- package/payload/queue-kit/bin/roadmap.sh +0 -76
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -64
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -111
- package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -81
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# spec: drift-kit/SPEC.md §The published-evidence extractor — governed-trajectory table, pure function of committed history
|
|
3
|
-
# usage: trajectory.sh [--emit] (bare: human header + table; --emit: table only, for the committed projection)
|
|
4
|
-
# advisory by construction: exit is always 0, never joins gates.list; the
|
|
5
|
-
# consumer freshness gate (check-trajectory-fresh) is what blocks a stale emission.
|
|
6
|
-
set -uo pipefail
|
|
7
|
-
|
|
8
|
-
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
|
|
9
|
-
cd "$REPO_ROOT" 2>/dev/null || exit 0
|
|
10
|
-
|
|
11
|
-
_ds_cfg="${DRIFT_KIT_CONFIG_FILE:-}"
|
|
12
|
-
if [[ -n "$_ds_cfg" ]]; then
|
|
13
|
-
[[ -f "$_ds_cfg" ]] || {
|
|
14
|
-
echo "drift-kit: DRIFT_KIT_CONFIG_FILE not found: $_ds_cfg" >&2
|
|
15
|
-
exit 2
|
|
16
|
-
}
|
|
17
|
-
# shellcheck source=/dev/null # consumer config path is resolved at runtime
|
|
18
|
-
source "$_ds_cfg"
|
|
19
|
-
else
|
|
20
|
-
_ds_cfg="${GATE_SDK_GATES_DIR:-scripts}/drift-config.sh"
|
|
21
|
-
if [[ -f "$_ds_cfg" ]]; then
|
|
22
|
-
# shellcheck source=/dev/null # consumer config path is resolved at runtime
|
|
23
|
-
source "$_ds_cfg"
|
|
24
|
-
fi
|
|
25
|
-
fi
|
|
26
|
-
unset _ds_cfg
|
|
27
|
-
|
|
28
|
-
# spec: drift-kit/SPEC.md §Layout and configuration — DRIFT_KIT_TRAJECTORY_SURFACES is "<state-file> <evidence-file>"
|
|
29
|
-
_wf="${GATE_SDK_WORKFLOW_DIR:-.workflow}"
|
|
30
|
-
: "${DRIFT_KIT_TRAJECTORY_SURFACES:=$_wf/WORKFLOW-STATE.txt $_wf/validate-evidence.txt}"
|
|
31
|
-
: "${DRIFT_KIT_GATES_FILE:=${GATE_SDK_GATES_DIR:-scripts}/gates.list}"
|
|
32
|
-
unset _wf
|
|
33
|
-
read -r STATE_FILE EVIDENCE_FILE _ <<<"$DRIFT_KIT_TRAJECTORY_SURFACES"
|
|
34
|
-
|
|
35
|
-
# spec: drift-kit/SPEC.md §Layout and configuration — DRIFT_KIT_STAGES is the ordered stage roster the trajectory table renders; unset falls open to the historical five so standalone/un-upgraded emission stays byte-identical (drift re-derives with its own knob, never sourcing lifecycle — the DRIFT_KIT_STATE_FILE precedent)
|
|
36
|
-
declare -p DRIFT_KIT_STAGES &>/dev/null || DRIFT_KIT_STAGES=(scope align build validate close)
|
|
37
|
-
|
|
38
|
-
# spec: drift-kit/SPEC.md §The published-evidence extractor — each stage's slot label is its shortest prefix unique among the roster; header legend and cells read this one map so they cannot drift, and a non-colliding roster reduces every label to its single letter (five-stage default byte-identical)
|
|
39
|
-
declare -A STAGE_ABBR
|
|
40
|
-
for _s in "${DRIFT_KIT_STAGES[@]}"; do
|
|
41
|
-
_len=1
|
|
42
|
-
while (( _len < ${#_s} )); do
|
|
43
|
-
_pfx="${_s:0:_len}"
|
|
44
|
-
_collide=0
|
|
45
|
-
for _o in "${DRIFT_KIT_STAGES[@]}"; do
|
|
46
|
-
[[ "$_o" == "$_s" ]] && continue
|
|
47
|
-
[[ "${_o:0:_len}" == "$_pfx" ]] && { _collide=1; break; }
|
|
48
|
-
done
|
|
49
|
-
(( _collide )) || break
|
|
50
|
-
_len=$(( _len + 1 ))
|
|
51
|
-
done
|
|
52
|
-
STAGE_ABBR[$_s]="${_s:0:_len}"
|
|
53
|
-
done
|
|
54
|
-
_stage_legend=""
|
|
55
|
-
for _s in "${DRIFT_KIT_STAGES[@]}"; do
|
|
56
|
-
_stage_legend="$_stage_legend${_stage_legend:+ }${STAGE_ABBR[$_s]}"
|
|
57
|
-
done
|
|
58
|
-
unset _s _o _len _pfx _collide
|
|
59
|
-
|
|
60
|
-
# spec: drift-kit/SPEC.md §The published-evidence extractor — the case-arm membership test and the git-log grep pre-filter build one alternation from the roster, so the two roster reads cannot diverge
|
|
61
|
-
_stage_alt="$(IFS='|'; printf '%s' "${DRIFT_KIT_STAGES[*]}")"
|
|
62
|
-
|
|
63
|
-
emit=0
|
|
64
|
-
[[ "${1:-}" == "--emit" ]] && emit=1
|
|
65
|
-
|
|
66
|
-
# spec: drift-kit/SPEC.md §The published-evidence extractor — iteration+stages harvest; state file truncates at scope, history keeps every stamp
|
|
67
|
-
ITERS=() # iteration names, chronological (all, in-flight included — for range boundaries)
|
|
68
|
-
declare -A START_COMMIT # iter -> first commit that added any of its stamps
|
|
69
|
-
declare -A CLOSE_COMMIT # iter -> commit that added its 'close' stamp (unset if never closed)
|
|
70
|
-
declare -A STAGES # iter -> space-joined stage names seen, in first-seen order
|
|
71
|
-
|
|
72
|
-
if git cat-file -e "HEAD:$STATE_FILE" 2>/dev/null; then
|
|
73
|
-
while IFS= read -r line; do
|
|
74
|
-
case "$line" in
|
|
75
|
-
COMMIT\ *) cur_commit="${line#COMMIT }" ;;
|
|
76
|
-
+*)
|
|
77
|
-
stamp="${line#+}"
|
|
78
|
-
read -r it st _ <<<"$stamp"
|
|
79
|
-
case " ${DRIFT_KIT_STAGES[*]} " in
|
|
80
|
-
*" $st "*) ;;
|
|
81
|
-
*) continue ;;
|
|
82
|
-
esac
|
|
83
|
-
if [[ -z "${START_COMMIT[$it]:-}" ]]; then
|
|
84
|
-
START_COMMIT[$it]="$cur_commit"
|
|
85
|
-
ITERS+=("$it")
|
|
86
|
-
STAGES[$it]=""
|
|
87
|
-
fi
|
|
88
|
-
case " ${STAGES[$it]} " in
|
|
89
|
-
*" $st "*) ;;
|
|
90
|
-
*) STAGES[$it]="${STAGES[$it]:+${STAGES[$it]} }$st" ;;
|
|
91
|
-
esac
|
|
92
|
-
[[ "$st" == close ]] && CLOSE_COMMIT[$it]="$cur_commit"
|
|
93
|
-
;;
|
|
94
|
-
esac
|
|
95
|
-
done < <(git log --reverse --format='COMMIT %H' -p -U0 -- "$STATE_FILE" 2>/dev/null \
|
|
96
|
-
| grep -E "^COMMIT |^\+[a-z0-9-]+ ($_stage_alt) ")
|
|
97
|
-
fi
|
|
98
|
-
|
|
99
|
-
# spec: drift-kit/SPEC.md §The published-evidence extractor — every range-scoped column freezes at (close(N-1), close(N)]; no column reads HEAD, so the emission is a pure function of closed history
|
|
100
|
-
declare -A COMMIT_ITER FEAT DEBT # commit -> owning closed iteration (range-attributed); per-iteration feat/debt subject split
|
|
101
|
-
CLOSED_ITERS=()
|
|
102
|
-
for it in "${ITERS[@]}"; do
|
|
103
|
-
[[ -n "${CLOSE_COMMIT[$it]:-}" ]] && CLOSED_ITERS+=("$it")
|
|
104
|
-
done
|
|
105
|
-
prev_close=""
|
|
106
|
-
for it in "${CLOSED_ITERS[@]}"; do
|
|
107
|
-
close_c="${CLOSE_COMMIT[$it]}"
|
|
108
|
-
if [[ -n "$prev_close" ]]; then
|
|
109
|
-
range="$prev_close..$close_c" # (close(N-1), close(N)]
|
|
110
|
-
else
|
|
111
|
-
range="$close_c" # first row: close(0) is the empty boundary — every ancestor up to close(1)
|
|
112
|
-
fi
|
|
113
|
-
f=0; d=0
|
|
114
|
-
while IFS=' ' read -r h subj; do
|
|
115
|
-
COMMIT_ITER["$h"]="$it"
|
|
116
|
-
case "$subj" in
|
|
117
|
-
feat*) f=$((f + 1)) ;;
|
|
118
|
-
fix* | refactor*) d=$((d + 1)) ;;
|
|
119
|
-
esac
|
|
120
|
-
done < <(git log --format='%H %s' "$range" 2>/dev/null)
|
|
121
|
-
FEAT[$it]="$f"; DEBT[$it]="$d"
|
|
122
|
-
prev_close="$close_c"
|
|
123
|
-
done
|
|
124
|
-
|
|
125
|
-
# spec: drift-kit/SPEC.md §The published-evidence extractor — amendment-latency harvest, fixture/template paths excluded
|
|
126
|
-
declare -A ADD_DATE AMEND_COUNT AMEND_MAXLAG
|
|
127
|
-
while IFS= read -r line; do
|
|
128
|
-
case "$line" in
|
|
129
|
-
COMMIT\ *)
|
|
130
|
-
rest="${line#COMMIT }"
|
|
131
|
-
read -r cur_commit cur_date <<<"$rest"
|
|
132
|
-
;;
|
|
133
|
-
A$'\t'*)
|
|
134
|
-
path="${line#A$'\t'}"
|
|
135
|
-
case "$path" in */gate-tests/*|*/templates/*) continue ;; esac
|
|
136
|
-
ADD_DATE["$path"]="$cur_date"
|
|
137
|
-
;;
|
|
138
|
-
D$'\t'*)
|
|
139
|
-
path="${line#D$'\t'}"
|
|
140
|
-
case "$path" in */gate-tests/*|*/templates/*) continue ;; esac
|
|
141
|
-
add_date="${ADD_DATE[$path]:-}"
|
|
142
|
-
[[ -n "$add_date" ]] || continue
|
|
143
|
-
owner="${COMMIT_ITER[$cur_commit]:-}"
|
|
144
|
-
[[ -n "$owner" ]] || continue
|
|
145
|
-
a_epoch="$(date -d "$add_date" +%s 2>/dev/null)" || continue
|
|
146
|
-
d_epoch="$(date -d "$cur_date" +%s 2>/dev/null)" || continue
|
|
147
|
-
lag=$(((d_epoch - a_epoch) / 86400))
|
|
148
|
-
AMEND_COUNT[$owner]=$(( ${AMEND_COUNT[$owner]:-0} + 1 ))
|
|
149
|
-
[[ "$lag" -gt "${AMEND_MAXLAG[$owner]:-0}" ]] && AMEND_MAXLAG[$owner]="$lag"
|
|
150
|
-
;;
|
|
151
|
-
esac
|
|
152
|
-
done < <(git log --reverse --format='COMMIT %H %ad' --date=short --diff-filter=AD \
|
|
153
|
-
--name-status -- '*/SPEC-*.md' 'SPEC-*.md' 2>/dev/null)
|
|
154
|
-
|
|
155
|
-
# spec: drift-kit/SPEC.md §The published-evidence extractor — validate-attestation harvest (evidence manifest also truncates at scope)
|
|
156
|
-
declare -A VAL_SUITES VAL_FAIL VAL_PRESENT
|
|
157
|
-
if [[ -n "$EVIDENCE_FILE" ]] && git cat-file -e "HEAD:$EVIDENCE_FILE" 2>/dev/null; then
|
|
158
|
-
while IFS= read -r stamp; do
|
|
159
|
-
read -r it _suite rest <<<"$stamp"
|
|
160
|
-
[[ -n "$it" ]] || continue
|
|
161
|
-
VAL_PRESENT[$it]=1
|
|
162
|
-
VAL_SUITES[$it]=$(( ${VAL_SUITES[$it]:-0} + 1 ))
|
|
163
|
-
case "$rest" in
|
|
164
|
-
*"fail=0 "*) ;;
|
|
165
|
-
*"fail="*)
|
|
166
|
-
fv="${rest##*fail=}"; fv="${fv%% *}"
|
|
167
|
-
[[ "$fv" =~ ^[0-9]+$ ]] && VAL_FAIL[$it]=$(( ${VAL_FAIL[$it]:-0} + fv ))
|
|
168
|
-
;;
|
|
169
|
-
esac
|
|
170
|
-
done < <(
|
|
171
|
-
for c in $(git log --format='%H' -- "$EVIDENCE_FILE" 2>/dev/null); do
|
|
172
|
-
git show "$c:$EVIDENCE_FILE" 2>/dev/null
|
|
173
|
-
done | grep -E '^[a-z0-9-]+ [a-z_]+ sha256=' | sort -u
|
|
174
|
-
)
|
|
175
|
-
else
|
|
176
|
-
EVIDENCE_FILE="${EVIDENCE_FILE:-(unset)}"
|
|
177
|
-
fi
|
|
178
|
-
|
|
179
|
-
# spec: drift-kit/SPEC.md §The published-evidence extractor — gate-roster growth (gates.list count at close commit)
|
|
180
|
-
declare -A GATE_COUNT
|
|
181
|
-
for it in "${!CLOSE_COMMIT[@]}"; do
|
|
182
|
-
roster="$(git show "${CLOSE_COMMIT[$it]}:$DRIFT_KIT_GATES_FILE" 2>/dev/null)" \
|
|
183
|
-
&& GATE_COUNT[$it]="$(printf '%s\n' "$roster" | grep -Evc '^[[:space:]]*(#|$)')" \
|
|
184
|
-
|| GATE_COUNT[$it]="n/a"
|
|
185
|
-
done
|
|
186
|
-
|
|
187
|
-
# spec: drift-kit/SPEC.md §The published-evidence extractor — one slot per configured stage in roster order, present as its roster-unique abbreviation or absent as '·'
|
|
188
|
-
render_stages() {
|
|
189
|
-
local seen=" $1 " out="" s
|
|
190
|
-
for s in "${DRIFT_KIT_STAGES[@]}"; do
|
|
191
|
-
case "$seen" in
|
|
192
|
-
*" $s "*) out="$out${out:+ }${STAGE_ABBR[$s]}" ;;
|
|
193
|
-
*) out="$out${out:+ }·" ;;
|
|
194
|
-
esac
|
|
195
|
-
done
|
|
196
|
-
printf '%s' "$out"
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
state_missing=0
|
|
200
|
-
git cat-file -e "HEAD:$STATE_FILE" 2>/dev/null || state_missing=1
|
|
201
|
-
|
|
202
|
-
if [[ "$emit" -eq 0 ]]; then
|
|
203
|
-
echo "=== Governed trajectory (advisory — this repo's own committed history) ==="
|
|
204
|
-
echo "One row per closed iteration; pure function of committed history (drift-kit/SPEC.md)."
|
|
205
|
-
echo
|
|
206
|
-
fi
|
|
207
|
-
|
|
208
|
-
echo "| iteration | stages ($_stage_legend) | commits (feat/debt) | amendments (merged · max lag) | validate (suites) | gates.list |"
|
|
209
|
-
echo "| --- | --- | --- | --- | --- | --- |"
|
|
210
|
-
|
|
211
|
-
if [[ "$state_missing" -eq 1 ]]; then
|
|
212
|
-
echo "| n/a (no $STATE_FILE) | · | · | · | · | · |"
|
|
213
|
-
exit 0
|
|
214
|
-
fi
|
|
215
|
-
|
|
216
|
-
for it in "${ITERS[@]}"; do
|
|
217
|
-
[[ -n "${CLOSE_COMMIT[$it]:-}" ]] || continue # closed iterations only
|
|
218
|
-
|
|
219
|
-
stages_cell="$(render_stages "${STAGES[$it]}")"
|
|
220
|
-
commits_cell="${FEAT[$it]:-0}f/${DEBT[$it]:-0}d"
|
|
221
|
-
|
|
222
|
-
ac="${AMEND_COUNT[$it]:-0}"
|
|
223
|
-
if [[ "$ac" -eq 0 ]]; then
|
|
224
|
-
amend_cell="0"
|
|
225
|
-
else
|
|
226
|
-
amend_cell="$ac · ≤${AMEND_MAXLAG[$it]:-0}d"
|
|
227
|
-
fi
|
|
228
|
-
|
|
229
|
-
if [[ -n "${VAL_PRESENT[$it]:-}" ]]; then
|
|
230
|
-
vf="${VAL_FAIL[$it]:-0}"
|
|
231
|
-
if [[ "$vf" -eq 0 ]]; then
|
|
232
|
-
val_cell="${VAL_SUITES[$it]}s clean"
|
|
233
|
-
else
|
|
234
|
-
val_cell="${VAL_SUITES[$it]}s ${vf}✗"
|
|
235
|
-
fi
|
|
236
|
-
else
|
|
237
|
-
val_cell="n/a (pre-evidence-kit)"
|
|
238
|
-
fi
|
|
239
|
-
|
|
240
|
-
echo "| $it | $stages_cell | $commits_cell | $amend_cell | $val_cell | ${GATE_COUNT[$it]:-n/a} |"
|
|
241
|
-
done
|
|
242
|
-
exit 0
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=README.md,scripts/evidence-config.sh,gate-sdk/lib/gate.sh dir=bi valve=none tier=precommit
|
|
3
|
-
# install: on-surface
|
|
4
|
-
# spec: evidence-kit/SPEC.md §check-battery-roster — the runner doc's battery-roster block holds name-set parity with EVIDENCE_KIT_SUITES, both directions
|
|
5
|
-
#
|
|
6
|
-
# usage: check-battery-roster.sh [runner-doc]
|
|
7
|
-
# bare: EVIDENCE_KIT_RUNNER_DOC (default README.md) against the git toplevel;
|
|
8
|
-
# positional: taken as given, so a fixture tree can be pointed at.
|
|
9
|
-
set -uo pipefail
|
|
10
|
-
|
|
11
|
-
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
12
|
-
# shellcheck source=../lib/evidence.sh
|
|
13
|
-
source "$KIT/lib/evidence.sh"
|
|
14
|
-
|
|
15
|
-
BEGIN="<!-- battery-roster:begin -->"
|
|
16
|
-
END="<!-- battery-roster:end -->"
|
|
17
|
-
|
|
18
|
-
DOC="${1:-}"
|
|
19
|
-
if [[ -z "$DOC" ]]; then
|
|
20
|
-
top="$(git rev-parse --show-toplevel)" \
|
|
21
|
-
|| { echo "check-battery-roster: not a git repository and no runner-doc argument" >&2; exit 2; }
|
|
22
|
-
DOC="$top/${EVIDENCE_KIT_RUNNER_DOC:-README.md}"
|
|
23
|
-
fi
|
|
24
|
-
[[ -f "$DOC" ]] || { echo "check-battery-roster: runner doc not found: $DOC" >&2; exit 2; }
|
|
25
|
-
[[ ${#EVIDENCE_KIT_SUITES[@]} -gt 0 ]] \
|
|
26
|
-
|| { echo "check-battery-roster: EVIDENCE_KIT_SUITES is empty — no suite roster to hold $DOC against" >&2; exit 2; }
|
|
27
|
-
grep -qF -- "$BEGIN" "$DOC" \
|
|
28
|
-
|| { echo "check-battery-roster: no '$BEGIN' marker block in $DOC" >&2; exit 2; }
|
|
29
|
-
|
|
30
|
-
# spec: evidence-kit/SPEC.md §check-battery-roster — a suite's documented invocation is EVIDENCE_KIT_RUN_<suite> minus a leading 'env' and its VAR=value assignments, the validate harness's environment being no part of what a contributor types
|
|
31
|
-
normalize_invocation() {
|
|
32
|
-
local -a t=()
|
|
33
|
-
read -r -a t <<<"${1-}"
|
|
34
|
-
local out="" tok head=1
|
|
35
|
-
for tok in ${t[@]+"${t[@]}"}; do
|
|
36
|
-
if [[ "$head" -eq 1 ]]; then
|
|
37
|
-
[[ "$tok" == "env" || "$tok" =~ ^[A-Za-z_][A-Za-z0-9_]*= ]] && continue
|
|
38
|
-
head=0
|
|
39
|
-
fi
|
|
40
|
-
out+="${out:+ }$tok"
|
|
41
|
-
done
|
|
42
|
-
printf '%s\n' "$out"
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
roster="$(awk -v b="$BEGIN" -v e="$END" '
|
|
46
|
-
{ line = $0; sub(/#.*$/, "", line); gsub(/^[ \t]+|[ \t\r]+$/, "", line); gsub(/[ \t]+/, " ", line) }
|
|
47
|
-
line == b { inb = 1; next }
|
|
48
|
-
line == e { inb = 0; next }
|
|
49
|
-
inb && line ~ /^[a-z][a-z0-9_-]* / { print FNR ":" line }
|
|
50
|
-
' "$DOC")"; st=$?
|
|
51
|
-
fail_closed "$st" check-battery-roster awk
|
|
52
|
-
|
|
53
|
-
declare -A roster_line=()
|
|
54
|
-
while IFS= read -r r; do
|
|
55
|
-
[[ -n "$r" ]] || continue
|
|
56
|
-
roster_line["${r#*:}"]="${r%%:*}"
|
|
57
|
-
done <<<"$roster"
|
|
58
|
-
|
|
59
|
-
declare -A suite_of=()
|
|
60
|
-
for s in "${EVIDENCE_KIT_SUITES[@]}"; do
|
|
61
|
-
c="$(normalize_invocation "$(ek_suite_cmd "$s")")"
|
|
62
|
-
[[ -n "$c" ]] && suite_of["$c"]="$s"
|
|
63
|
-
done
|
|
64
|
-
|
|
65
|
-
findings=()
|
|
66
|
-
# assertion A: every configured suite's documented invocation is a roster line
|
|
67
|
-
for c in "${!suite_of[@]}"; do
|
|
68
|
-
[[ -n "${roster_line[$c]:-}" ]] \
|
|
69
|
-
|| findings+=("$DOC: suite '${suite_of[$c]}' is absent from the battery-roster block — no line reads '$c'")
|
|
70
|
-
done
|
|
71
|
-
# assertion B: every roster line resolves to a configured suite
|
|
72
|
-
for c in "${!roster_line[@]}"; do
|
|
73
|
-
[[ -n "${suite_of[$c]:-}" ]] \
|
|
74
|
-
|| findings+=("$DOC:${roster_line[$c]}: roster line runs no configured suite: '$c'")
|
|
75
|
-
done
|
|
76
|
-
|
|
77
|
-
if [[ ${#findings[@]} -gt 0 ]]; then
|
|
78
|
-
printf '%s\n' "check-battery-roster: the battery-roster block is out of parity with EVIDENCE_KIT_SUITES:"
|
|
79
|
-
printf ' %s\n' "${findings[@]}" | sort
|
|
80
|
-
echo " help: keep the block in name-set parity with the configured suites — add the"
|
|
81
|
-
echo " missing suite's documented invocation, or drop the line whose command"
|
|
82
|
-
echo " runs no configured suite (evidence-kit/SPEC.md §check-battery-roster)."
|
|
83
|
-
exit 1
|
|
84
|
-
fi
|
|
85
|
-
|
|
86
|
-
echo "BATTERY-ROSTER: clean (${#EVIDENCE_KIT_SUITES[@]} configured suite(s) in name-set parity with the battery-roster block in $DOC)"
|
|
87
|
-
exit 0
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=.workflow/validate-baseline.txt,TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
3
|
-
# install: zero-config
|
|
4
|
-
# spec: evidence-kit/SPEC.md §check-evidence-baseline — held-constant baseline grammar, blocking-slug liveness, and (when scenario globs are configured) manifest↔disk set equality
|
|
5
|
-
set -uo pipefail
|
|
6
|
-
|
|
7
|
-
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
8
|
-
# shellcheck source=../lib/evidence.sh
|
|
9
|
-
source "$KIT/lib/evidence.sh"
|
|
10
|
-
|
|
11
|
-
BASELINE="${1:-$EVIDENCE_KIT_BASELINE_FILE}"
|
|
12
|
-
QUEUE="${2:-$EVIDENCE_KIT_QUEUE_FILE}"
|
|
13
|
-
|
|
14
|
-
[[ -f "$BASELINE" ]] || {
|
|
15
|
-
echo "EVIDENCE-BASELINE: baseline not found: $BASELINE"
|
|
16
|
-
echo " help: create $BASELINE with a comment header and one '<suite> <scenario> <status> [<slug>]' line per known scenario"
|
|
17
|
-
exit 1
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
errors=()
|
|
21
|
-
|
|
22
|
-
declare -A slug_of=()
|
|
23
|
-
while IFS= read -r line; do
|
|
24
|
-
read -r suite scenario status slug rest <<<"$line"
|
|
25
|
-
if [[ -z "$suite" || -z "$scenario" || -z "$status" ]]; then
|
|
26
|
-
errors+=("malformed line (want '<suite> <scenario> <status> [<slug>]'): $line"); continue
|
|
27
|
-
fi
|
|
28
|
-
if [[ -n "$rest" ]]; then
|
|
29
|
-
errors+=("too many fields (a slug is a single token): $line"); continue
|
|
30
|
-
fi
|
|
31
|
-
case "$status" in
|
|
32
|
-
pass)
|
|
33
|
-
[[ -z "$slug" ]] || errors+=("a 'pass' scenario takes no blocking slug: $line")
|
|
34
|
-
;;
|
|
35
|
-
fail|ignore)
|
|
36
|
-
if [[ -z "$slug" ]]; then
|
|
37
|
-
errors+=("a '$status' scenario requires a blocking slug (a live task or permanent marker): $line")
|
|
38
|
-
else
|
|
39
|
-
slug_of["$slug"]=1
|
|
40
|
-
fi
|
|
41
|
-
;;
|
|
42
|
-
*)
|
|
43
|
-
errors+=("bad status '$status' (want pass|fail|ignore): $line")
|
|
44
|
-
;;
|
|
45
|
-
esac
|
|
46
|
-
done < <(ek_data_lines "$BASELINE")
|
|
47
|
-
|
|
48
|
-
if [[ ${#slug_of[@]} -gt 0 ]]; then
|
|
49
|
-
declare -A permanent=()
|
|
50
|
-
for p in ${EVIDENCE_KIT_PERMANENT_SLUGS[@]+"${EVIDENCE_KIT_PERMANENT_SLUGS[@]}"}; do permanent["$p"]=1; done
|
|
51
|
-
declare -A live=() done_only=()
|
|
52
|
-
if [[ -f "$QUEUE" ]]; then
|
|
53
|
-
while read -r qslug qsec; do
|
|
54
|
-
if [[ "$qsec" == "Done" ]]; then
|
|
55
|
-
[[ -n "${live[$qslug]:-}" ]] || done_only["$qslug"]=1
|
|
56
|
-
else
|
|
57
|
-
live["$qslug"]=1
|
|
58
|
-
unset 'done_only[$qslug]'
|
|
59
|
-
fi
|
|
60
|
-
done < <(awk '
|
|
61
|
-
/^##[[:space:]]/ { sec = $0; sub(/^##[[:space:]]*/, "", sec); next }
|
|
62
|
-
/^-[[:space:]]+\*\*[^*]+\*\*/ {
|
|
63
|
-
s = $0; sub(/^-[[:space:]]+\*\*/, "", s); sub(/\*\*.*$/, "", s)
|
|
64
|
-
print s, sec
|
|
65
|
-
}
|
|
66
|
-
' "$QUEUE")
|
|
67
|
-
fi
|
|
68
|
-
for slug in "${!slug_of[@]}"; do
|
|
69
|
-
[[ -n "${permanent[$slug]:-}" ]] && continue
|
|
70
|
-
[[ -n "${live[$slug]:-}" ]] && continue
|
|
71
|
-
if [[ -n "${done_only[$slug]:-}" ]]; then
|
|
72
|
-
errors+=("blocking slug '$slug' is a Done task — stale; promote the scenario or repoint the slug")
|
|
73
|
-
else
|
|
74
|
-
errors+=("blocking slug '$slug' resolves to no live task in $QUEUE and no permanent marker")
|
|
75
|
-
fi
|
|
76
|
-
done
|
|
77
|
-
fi
|
|
78
|
-
|
|
79
|
-
for suite in "${!EVIDENCE_KIT_SCENARIO_GLOBS[@]}"; do
|
|
80
|
-
glob="${EVIDENCE_KIT_SCENARIO_GLOBS[$suite]}"
|
|
81
|
-
declare -A on_disk=() in_base=()
|
|
82
|
-
shopt -s nullglob
|
|
83
|
-
for f in $glob; do on_disk["$(basename "$f")"]=1; done
|
|
84
|
-
shopt -u nullglob
|
|
85
|
-
while read -r bsuite bscen _; do
|
|
86
|
-
[[ "$bsuite" == "$suite" ]] && in_base["$bscen"]=1
|
|
87
|
-
done < <(ek_data_lines "$BASELINE")
|
|
88
|
-
for s in "${!in_base[@]}"; do
|
|
89
|
-
[[ -n "${on_disk[$s]:-}" ]] || errors+=("suite '$suite': baseline scenario '$s' matches no file under glob '$glob'")
|
|
90
|
-
done
|
|
91
|
-
for s in "${!on_disk[@]}"; do
|
|
92
|
-
[[ -n "${in_base[$s]:-}" ]] || errors+=("suite '$suite': on-disk scenario '$s' (glob '$glob') has no baseline line")
|
|
93
|
-
done
|
|
94
|
-
unset on_disk in_base
|
|
95
|
-
done
|
|
96
|
-
|
|
97
|
-
if [[ ${#errors[@]} -gt 0 ]]; then
|
|
98
|
-
echo "EVIDENCE-BASELINE: ${#errors[@]} issue(s) in $BASELINE:"
|
|
99
|
-
printf ' %s\n' "${errors[@]}"
|
|
100
|
-
echo " help: each line is '<suite> <scenario> <status> [<slug>]'; a fail/ignore carries a live blocking slug; the baseline is edited by human commit only"
|
|
101
|
-
exit 1
|
|
102
|
-
fi
|
|
103
|
-
echo "EVIDENCE-BASELINE: clean ($(ek_data_lines "$BASELINE" | grep -c . || true) scenario(s); grammar, slug liveness, and coverage hold in $BASELINE)"
|
|
104
|
-
exit 0
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=.workflow/validate-evidence.txt,TASK-QUEUE.md,.workflow/WORKFLOW-STATE.txt dir=one valve=none tier=precommit
|
|
3
|
-
# install: zero-config
|
|
4
|
-
# spec: evidence-kit/SPEC.md §check-evidence-manifest — (B) manifest grammar + current-iteration scoping; with lifecycle configured also (A) close-entry green block and (C) validate-stamp↔evidence coupling
|
|
5
|
-
set -uo pipefail
|
|
6
|
-
|
|
7
|
-
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
8
|
-
# shellcheck source=../lib/evidence.sh
|
|
9
|
-
source "$KIT/lib/evidence.sh"
|
|
10
|
-
|
|
11
|
-
MANIFEST="${1:-$EVIDENCE_KIT_MANIFEST_FILE}"
|
|
12
|
-
QUEUE="${2:-$EVIDENCE_KIT_QUEUE_FILE}"
|
|
13
|
-
STATE="${3:-$EVIDENCE_KIT_STATE_FILE}"
|
|
14
|
-
|
|
15
|
-
[[ -f "$MANIFEST" ]] || {
|
|
16
|
-
echo "EVIDENCE-MANIFEST: manifest not found: $MANIFEST"
|
|
17
|
-
echo " help: seed it with a '# contract: $EVIDENCE_MANIFEST_CONTRACT' header; run-validate appends one line per suite"
|
|
18
|
-
exit 1
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
want_header="# contract: $EVIDENCE_MANIFEST_CONTRACT"
|
|
22
|
-
if [[ "$(head -n1 "$MANIFEST")" != "$want_header" ]]; then
|
|
23
|
-
echo "EVIDENCE-MANIFEST: first line is not the versioned wire-format header '$want_header' in $MANIFEST"
|
|
24
|
-
echo " help: the manifest's first line declares the wire contract the attestation payload is versioned by; run-validate never rewrites it, and the iteration-boundary truncation preserves it"
|
|
25
|
-
exit 1
|
|
26
|
-
fi
|
|
27
|
-
|
|
28
|
-
iter=""; stage=""
|
|
29
|
-
iter="$(ek_queue_iteration "$QUEUE" 2>/dev/null || true)"
|
|
30
|
-
stage="$(ek_state_stage "$STATE" 2>/dev/null || true)"
|
|
31
|
-
|
|
32
|
-
# assertion B: every manifest line carries the version header, the eight-field shape, and the current iteration
|
|
33
|
-
grammar_errs=()
|
|
34
|
-
declare -A clean_suite_date=()
|
|
35
|
-
have_line_for_iter=0
|
|
36
|
-
while IFS= read -r line; do
|
|
37
|
-
read -r f1 f2 f3 f4 f5 f6 f7 f8 rest <<<"$line"
|
|
38
|
-
if [[ -z "$f8" || -n "$rest" ]]; then
|
|
39
|
-
grammar_errs+=("malformed line (want '<iteration> <suite> sha256=… pass=… fail=… ignore=… verdict=… <date>'): $line"); continue
|
|
40
|
-
fi
|
|
41
|
-
ok=1
|
|
42
|
-
[[ "$f3" =~ ^sha256=[0-9a-f]{64}$ ]] || { grammar_errs+=("bad sha256 field '$f3': $line"); ok=0; }
|
|
43
|
-
[[ "$f4" =~ ^pass=[0-9]+$ ]] || { grammar_errs+=("bad pass field '$f4': $line"); ok=0; }
|
|
44
|
-
[[ "$f5" =~ ^fail=[0-9]+$ ]] || { grammar_errs+=("bad fail field '$f5': $line"); ok=0; }
|
|
45
|
-
[[ "$f6" =~ ^ignore=[0-9]+$ ]] || { grammar_errs+=("bad ignore field '$f6': $line"); ok=0; }
|
|
46
|
-
[[ "$f7" =~ ^verdict=(clean|new-failures)$ ]] || { grammar_errs+=("bad verdict field '$f7' (want verdict=clean|new-failures): $line"); ok=0; }
|
|
47
|
-
[[ "$f8" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] || { grammar_errs+=("bad date '$f8': $line"); ok=0; }
|
|
48
|
-
[[ "$ok" -eq 1 ]] || continue
|
|
49
|
-
if [[ -n "$iter" && "$f1" != "$iter" ]]; then
|
|
50
|
-
grammar_errs+=("foreign iteration '$f1' (current is '$iter') — the iteration-boundary truncation was skipped: $line"); continue
|
|
51
|
-
fi
|
|
52
|
-
have_line_for_iter=1
|
|
53
|
-
if [[ "$f7" == "verdict=clean" ]]; then
|
|
54
|
-
clean_suite_date["$f2"]="$f8"
|
|
55
|
-
fi
|
|
56
|
-
done < <(ek_data_lines "$MANIFEST")
|
|
57
|
-
|
|
58
|
-
if [[ ${#grammar_errs[@]} -gt 0 ]]; then
|
|
59
|
-
echo "EVIDENCE-MANIFEST: ${#grammar_errs[@]} grammar issue(s) in $MANIFEST:"
|
|
60
|
-
printf ' %s\n' "${grammar_errs[@]}"
|
|
61
|
-
echo " help: every line is the eight-field '$EVIDENCE_MANIFEST_CONTRACT' shape and carries the current iteration; a foreign line means the iteration-boundary truncation (LIFECYCLE_KIT_BOUNDARY_TRUNCATE) did not clear the manifest"
|
|
62
|
-
exit 1
|
|
63
|
-
fi
|
|
64
|
-
|
|
65
|
-
# spec: evidence-kit/SPEC.md §check-evidence-manifest — an empty cursor disarms A and C here, at the declared early-out, rather than letting an empty stage slip past two live assertions; the no-cursor window (state file truncated to its preamble at the iteration boundary) is reachable in normal operation
|
|
66
|
-
if [[ -z "$iter" || ! -f "$STATE" || -z "$stage" ]]; then
|
|
67
|
-
echo "EVIDENCE-MANIFEST: clean (grammar holds in $MANIFEST; no lifecycle state — close-entry/stamp-coupling disarmed)"
|
|
68
|
-
exit 0
|
|
69
|
-
fi
|
|
70
|
-
|
|
71
|
-
earliest_validate=""
|
|
72
|
-
have_validate=0
|
|
73
|
-
while read -r s1 s2 _ s4 _; do
|
|
74
|
-
[[ "$s1" == "$iter" && "$s2" == "validate" ]] || continue
|
|
75
|
-
have_validate=1
|
|
76
|
-
if [[ -z "$earliest_validate" || "$s4" < "$earliest_validate" ]]; then earliest_validate="$s4"; fi
|
|
77
|
-
done < <(awk '/^---[[:space:]]*$/{f=1; next} f && NF {print}' "$STATE")
|
|
78
|
-
|
|
79
|
-
errors=()
|
|
80
|
-
|
|
81
|
-
# assertion C: a validate stamp demands ≥1 evidence line, re-armed only once the cursor has advanced past validate (the entry stamp precedes the suites)
|
|
82
|
-
if [[ "$have_validate" -eq 1 && "$stage" != "validate" && "$have_line_for_iter" -eq 0 ]]; then
|
|
83
|
-
errors+=("iteration '$iter' has a validate stamp but no evidence line — validate ran and recorded nothing (run evidence-kit/bin/run-validate.sh)")
|
|
84
|
-
fi
|
|
85
|
-
|
|
86
|
-
# assertion A: a close-entry cursor requires the full green block — every configured suite a clean line dated on/after the earliest validate stamp
|
|
87
|
-
if [[ "$stage" == "close" ]]; then
|
|
88
|
-
for suite in ${EVIDENCE_KIT_SUITES[@]+"${EVIDENCE_KIT_SUITES[@]}"}; do
|
|
89
|
-
d="${clean_suite_date[$suite]:-}"
|
|
90
|
-
if [[ -z "$d" ]]; then
|
|
91
|
-
errors+=("close entry: suite '$suite' has no clean evidence line for '$iter'")
|
|
92
|
-
elif [[ -n "$earliest_validate" && "$d" < "$earliest_validate" ]]; then
|
|
93
|
-
errors+=("close entry: suite '$suite' clean line is dated $d, before the earliest validate stamp $earliest_validate — stale evidence")
|
|
94
|
-
fi
|
|
95
|
-
done
|
|
96
|
-
fi
|
|
97
|
-
|
|
98
|
-
if [[ ${#errors[@]} -gt 0 ]]; then
|
|
99
|
-
echo "EVIDENCE-MANIFEST: ${#errors[@]} issue(s) coupling $MANIFEST to $STATE:"
|
|
100
|
-
printf ' %s\n' "${errors[@]}"
|
|
101
|
-
echo " help: record a run-validate evidence line per suite before the close entry is stamped; the entry stamp proves invocation, the evidence line proves the green result"
|
|
102
|
-
exit 1
|
|
103
|
-
fi
|
|
104
|
-
echo "EVIDENCE-MANIFEST: clean (grammar + close-entry/stamp-coupling hold for '$iter' at stage '$stage' in $MANIFEST)"
|
|
105
|
-
exit 0
|