checkwright 0.21.0 → 0.23.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 +1013 -50
- package/lib/common/digest.sh +18 -0
- package/lib/common/lock.sh +40 -0
- package/lib/common/profile.sh +33 -0
- package/lib/common/recipe.sh +56 -43
- package/lib/diff.sh +64 -0
- package/lib/doctor.sh +81 -7
- package/lib/init.sh +167 -52
- package/lib/uninstall.sh +212 -0
- package/lib/update.sh +34 -0
- package/package.json +2 -2
- package/payload/artifact/targets.list +30 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -0
- package/payload/canon-kit/README.md +2 -0
- package/payload/canon-kit/SPEC.md +666 -59
- package/payload/canon-kit/checks/check-amendment-queue.sh +1 -0
- package/payload/canon-kit/checks/check-comment-tier.gate +3 -0
- package/payload/canon-kit/checks/check-deprecation-task.gate +3 -0
- package/payload/canon-kit/checks/check-docs-cmd.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.sh +12 -4
- package/payload/canon-kit/checks/check-install-claim.gate +3 -0
- package/payload/canon-kit/checks/check-knob-citation.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +1 -0
- package/payload/canon-kit/checks/check-manifest-count.gate +3 -0
- package/payload/canon-kit/checks/check-manifest-temporal.gate +3 -0
- package/payload/canon-kit/checks/check-md-refs.gate +3 -0
- package/payload/canon-kit/checks/check-measured-claim.gate +3 -0
- package/payload/canon-kit/checks/check-payload-claim.gate +3 -0
- package/payload/canon-kit/checks/check-prose-enum.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.sh +1 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.gate +3 -0
- package/payload/canon-kit/checks/check-spec-dod-singleton.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +1 -0
- package/payload/canon-kit/checks/check-spec-fence-balance.gate +3 -0
- package/payload/canon-kit/checks/check-spec-pointer.gate +3 -0
- package/payload/canon-kit/checks/check-surface-duplication.sh +1 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.gate +3 -0
- package/payload/canon-kit/checks/check-tracking-claim.gate +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/.workflow/fixture-state.txt +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/templates/bad-tmpl.sh +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +29 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/OUTSIDE.md +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/index.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/OUTSIDE.md +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/methodology.md +8 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +94 -0
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +32 -8
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +61 -9
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +12 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +23 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +90 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/README.md +15 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/install.md +19 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/posts/note.md +6 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/payload-claims.sh +7 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/README.md +15 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/install.md +20 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/posts/note.md +6 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/payload-claims.sh +7 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +27 -4
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +21 -7
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/widget.sh +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/widget.sh +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -2
- package/payload/canon-kit/lib/spec.sh +109 -70
- package/payload/canon-kit/smoke/install.sh +21 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +9 -2
- package/payload/context-kit/README.md +4 -1
- package/payload/context-kit/SPEC.md +166 -9
- package/payload/context-kit/bin/env-probe.sh +19 -6
- package/payload/context-kit/checks/check-brevity.sh +1 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +1 -0
- package/payload/context-kit/checks/check-memory-off.sh +1 -0
- package/payload/context-kit/checks/check-settings-paths.sh +94 -0
- package/payload/context-kit/checks/check-settings-pins.sh +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +12 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/real-tool.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/tools/real-tool.sh +4 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +9 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
- package/payload/context-kit/lib/toolfloor.sh +15 -4
- package/payload/context-kit/smoke/agents-md.sh +12 -1
- package/payload/context-kit/smoke/install.sh +4 -1
- package/payload/delegation-kit/README.md +3 -3
- package/payload/delegation-kit/SPEC.md +499 -26
- package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +97 -0
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +1 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +2 -1
- package/payload/delegation-kit/checks/check-rule-citation.sh +1 -0
- package/payload/delegation-kit/lib/delegation.sh +1 -0
- package/payload/delegation-kit/smoke/install.sh +2 -1
- package/payload/delegation-kit/templates/agent-dispatch-guard.sh +61 -0
- package/payload/delegation-kit/templates/agent-execution.md +127 -12
- package/payload/delegation-kit/templates/delegation-config.sh +4 -0
- package/payload/delegation-kit/templates/dispatch-checklists.md +1 -1
- package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
- package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +30 -0
- package/payload/doctrine-kit/DOCTRINE.md +112 -11
- package/payload/doctrine-kit/README.md +12 -3
- package/payload/doctrine-kit/SPEC.md +163 -11
- package/payload/doctrine-kit/bin/install-doctrine.sh +167 -17
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +41 -11
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +82 -2
- package/payload/doctrine-kit/smoke/install.sh +167 -1
- package/payload/drift-kit/README.md +3 -2
- package/payload/drift-kit/SPEC.md +264 -22
- package/payload/drift-kit/bin/kfric.sh +21 -2
- package/payload/drift-kit/bin/stage-economics.sh +157 -3
- package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +42 -0
- package/payload/drift-kit/smoke/install.sh +183 -1
- package/payload/drift-kit/templates/economics.md +9 -0
- package/payload/drift-kit/templates/kpis.list +6 -1
- package/payload/evidence-kit/README.md +20 -6
- package/payload/evidence-kit/SPEC.md +355 -17
- package/payload/evidence-kit/bin/run-validate.sh +51 -9
- package/payload/evidence-kit/checks/check-battery-roster.sh +87 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +1 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +1 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +35 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/args +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/runner.md +14 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +7 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/args +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/runner.md +14 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +7 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +68 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/args +1 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/run-validate.lock +1 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/good/args +1 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/good/expect.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/good/run-validate.lock +1 -0
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +109 -0
- package/payload/evidence-kit/lib/evidence.sh +18 -0
- package/payload/evidence-kit/smoke/install.sh +17 -3
- package/payload/gate-sdk/README.md +17 -1
- package/payload/gate-sdk/SPEC.md +4427 -92
- package/payload/gate-sdk/bin/build-native.sh +38 -0
- package/payload/gate-sdk/bin/enforcement-map.sh +2 -1
- package/payload/gate-sdk/bin/gen-pre-commit.sh +32 -2
- package/payload/gate-sdk/bin/port-blockers.sh +445 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +129 -2
- package/payload/gate-sdk/bin/run-gate-tests.sh +61 -9
- package/payload/gate-sdk/bin/run-gates.sh +37 -2
- package/payload/gate-sdk/bin/upgrade-smoke.sh +55 -7
- package/payload/gate-sdk/checks/check-action-gh-repo.gate +3 -0
- package/payload/gate-sdk/checks/check-action-pinning.gate +3 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +4 -1
- package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-msg.sh +1 -0
- package/payload/gate-sdk/checks/check-commit-subject.sh +1 -0
- package/payload/gate-sdk/checks/check-core-files.sh +28 -4
- package/payload/gate-sdk/checks/check-crate-arms.sh +61 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +1 -0
- package/payload/gate-sdk/checks/check-exec-bit.sh +21 -1
- package/payload/gate-sdk/checks/check-gate-assertions.sh +31 -6
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +107 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +7 -7
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-output.sh +41 -3
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +333 -0
- package/payload/gate-sdk/checks/check-graph.sh +5 -5
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +1 -0
- package/payload/gate-sdk/checks/check-identity.sh +1 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +92 -0
- package/payload/gate-sdk/checks/check-kit-enum.sh +1 -0
- package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.sh +6 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +71 -21
- package/payload/gate-sdk/checks/check-root-tiering.sh +1 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +1 -0
- package/payload/gate-sdk/checks/check-template-registry-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-test-hermetic.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +1 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +2 -1
- package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +16 -1
- package/payload/gate-sdk/gate-tests/check-core-files.test.sh +64 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +12 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/kitroot/checks/check-vendored.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/check-ported.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stamp.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stub-bin +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/kitroot/checks/check-vendored.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/check-ported.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stamp.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stub-bin +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +81 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +3 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +3 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/gates/check-sample.sh +3 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-sample.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/src/gates/native_sample.rs +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-sample.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/src/gates/native_sample.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +111 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/conservation.md +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/impl/gate.rs +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/check-orphan.rs +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/publish.yml +15 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-dup.gate +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-dup.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/targets.list +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/conservation.md +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/impl/gate.rs +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kitroot/check-other.rs +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/publish.yml +15 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-ported.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/targets.list +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +184 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +6 -5
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +139 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/templates/widgets.list +4 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/widgets/widget-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/widgets/widget-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/templates/widgets.list +4 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/widgets/widget-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/widgets/widget-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +8 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/beta-kit/templates/rules.list +5 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/beta-kit/templates/table.tsv +4 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
- package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +4 -4
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +151 -1
- package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
- package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +144 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +41 -4
- package/payload/gate-sdk/lib/gate.sh +208 -9
- package/payload/gate-sdk/lib/inject.sh +46 -1
- package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
- package/payload/gate-sdk/smoke/install.sh +61 -1
- package/payload/guard-kit/README.md +18 -14
- package/payload/guard-kit/SPEC.md +366 -72
- package/payload/guard-kit/bin/compare-settings-allow.sh +40 -7
- package/payload/guard-kit/bin/run-guard-tests.sh +1 -0
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +64 -0
- package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
- package/payload/guard-kit/guard-tests/cases.tsv +49 -7
- package/payload/guard-kit/lib/guard.sh +277 -54
- package/payload/guard-kit/templates/close-triage.md +38 -10
- package/payload/guard-kit/templates/guard-config.sh +3 -0
- package/payload/guard-kit/templates/settings-hooks.json +7 -1
- package/payload/lifecycle-kit/README.md +12 -1
- package/payload/lifecycle-kit/SPEC.md +991 -41
- package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +139 -13
- package/payload/lifecycle-kit/bin/file-gap.sh +60 -2
- package/payload/lifecycle-kit/bin/file-survey.sh +69 -0
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +1 -0
- package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +3 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.gate +3 -0
- package/payload/lifecycle-kit/checks/check-scratch-citation.gate +3 -0
- package/payload/lifecycle-kit/checks/check-shim-restatement.gate +3 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +1 -0
- package/payload/lifecycle-kit/checks/check-stage-evidence.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +3 -0
- package/payload/lifecycle-kit/checks/check-survey-record.gate +3 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -2
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/gap-inbox.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +3 -3
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/surfaces/queue.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +31 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +9 -5
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +4 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +18 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +83 -0
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +122 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +102 -0
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
- package/payload/lifecycle-kit/lib/stages.sh +12 -2
- package/payload/lifecycle-kit/smoke/install.sh +83 -4
- package/payload/lifecycle-kit/templates/consult.md +73 -0
- package/payload/lifecycle-kit/templates/lead.md +139 -7
- package/payload/lifecycle-kit/templates/stages/align.md +12 -0
- package/payload/lifecycle-kit/templates/stages/build.md +8 -0
- package/payload/lifecycle-kit/templates/stages/close.md +45 -5
- package/payload/lifecycle-kit/templates/stages/scope.md +42 -3
- package/payload/lifecycle-kit/templates/stages/spec.md +13 -1
- package/payload/lifecycle-kit/templates/stages/validate.md +8 -0
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
- package/payload/queue-kit/README.md +6 -1
- package/payload/queue-kit/SPEC.md +350 -6
- package/payload/queue-kit/bin/queue-counts.sh +35 -0
- package/payload/queue-kit/bin/queue-edges.sh +78 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +3 -0
- package/payload/queue-kit/checks/check-queue-hygiene.gate +3 -0
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +1 -0
- package/payload/queue-kit/checks/check-queue-sections.gate +3 -0
- package/payload/queue-kit/checks/check-queue-slug-liveness.gate +3 -0
- package/payload/queue-kit/checks/check-queue-wrap.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +1 -0
- package/payload/queue-kit/checks/check-tag-lead-line.gate +3 -0
- package/payload/queue-kit/checks/check-task-conservation.gate +4 -0
- package/payload/queue-kit/checks/check-task-names.gate +3 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +5 -0
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +116 -0
- package/payload/queue-kit/gate-tests/queue-edges.test.sh +130 -0
- package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
- package/payload/queue-kit/lib/queue.sh +4 -19
- package/payload/queue-kit/smoke/install.sh +4 -1
- package/payload/queue-kit/templates/TASK-QUEUE.md +3 -0
- package/payload/site-kit/SPEC.md +64 -27
- package/payload/site-kit/checks/check-docs-cname-parity.sh +1 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
- package/payload/site-kit/smoke/install.sh +9 -1
- package/profiles.list +36 -8
- package/payload/canon-kit/checks/check-comment-tier.sh +0 -211
- package/payload/canon-kit/checks/check-deprecation-task.sh +0 -90
- package/payload/canon-kit/checks/check-docs-cmd.sh +0 -153
- package/payload/canon-kit/checks/check-install-claim.sh +0 -146
- package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
- package/payload/canon-kit/checks/check-manifest-count.sh +0 -46
- package/payload/canon-kit/checks/check-manifest-temporal.sh +0 -83
- package/payload/canon-kit/checks/check-md-refs.sh +0 -128
- package/payload/canon-kit/checks/check-prose-enum.sh +0 -115
- package/payload/canon-kit/checks/check-spec-derivable-section.sh +0 -69
- package/payload/canon-kit/checks/check-spec-dod-singleton.sh +0 -45
- package/payload/canon-kit/checks/check-spec-fence-balance.sh +0 -42
- package/payload/canon-kit/checks/check-spec-pointer.sh +0 -180
- package/payload/canon-kit/checks/check-todo-task-liveness.sh +0 -80
- package/payload/canon-kit/checks/check-tracking-claim.sh +0 -136
- package/payload/gate-sdk/checks/check-action-gh-repo.sh +0 -321
- package/payload/gate-sdk/checks/check-action-pinning.sh +0 -55
- package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
- package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
- package/payload/gate-sdk/checks/check-test-hermetic.sh +0 -119
- package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +0 -98
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +0 -54
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +0 -69
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +0 -97
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +0 -59
- package/payload/lifecycle-kit/checks/check-stage-evidence.sh +0 -81
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +0 -47
- package/payload/queue-kit/checks/check-queue-entry-budget.sh +0 -104
- package/payload/queue-kit/checks/check-queue-hygiene.sh +0 -81
- package/payload/queue-kit/checks/check-queue-sections.sh +0 -44
- package/payload/queue-kit/checks/check-queue-slug-liveness.sh +0 -63
- package/payload/queue-kit/checks/check-queue-wrap.sh +0 -56
- package/payload/queue-kit/checks/check-tag-lead-line.sh +0 -70
- package/payload/queue-kit/checks/check-task-conservation.sh +0 -50
- package/payload/queue-kit/checks/check-task-names.sh +0 -128
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# graph: couples=.tmp/run-validate.lock dir=one valve=none tier=align-only
|
|
3
|
+
# install: never
|
|
4
|
+
# spec: evidence-kit/SPEC.md §check-producer-liveness — a stage entry is refused while the evidence producer's lock names a live PID
|
|
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
|
+
LOCK="${1:-$EVIDENCE_KIT_LOCK_FILE}"
|
|
12
|
+
|
|
13
|
+
holder="$(ek_lock_read "$LOCK")"; hs=$?
|
|
14
|
+
|
|
15
|
+
if [[ "$hs" -eq 2 ]]; then
|
|
16
|
+
echo "check-producer-liveness: $LOCK carries no readable 'pid=<n> run=<key>' record" >&2 # exit 2: the lock is published whole or not at all, so an unparseable one is corruption, never a free reading
|
|
17
|
+
exit 2
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
if [[ "$hs" -ne 0 ]]; then
|
|
21
|
+
echo "PRODUCER-LIVENESS: clean (no producer lock at $LOCK — nothing in flight)"
|
|
22
|
+
exit 0
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
pid="${holder%% *}"
|
|
26
|
+
runkey="${holder#* }"
|
|
27
|
+
|
|
28
|
+
if ek_pid_alive "$pid"; then
|
|
29
|
+
echo "check-producer-liveness: $LOCK: the evidence producer for run key '$runkey' is still running (pid $pid)"
|
|
30
|
+
echo " help: wait for that run-validate to finish — it is still writing the evidence manifest, so anything read now can change underneath you; if pid $pid is gone, the lock is stale and deleting $LOCK clears it"
|
|
31
|
+
exit 1
|
|
32
|
+
fi
|
|
33
|
+
|
|
34
|
+
echo "PRODUCER-LIVENESS: clean (lock at $LOCK names dead pid $pid for run key '$runkey' — no producer in flight)"
|
|
35
|
+
exit 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
runner.md
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
suite 'beta' is absent from the battery-roster block
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# fixture runner doc
|
|
2
|
+
|
|
3
|
+
1. Run the verification suites:
|
|
4
|
+
|
|
5
|
+
<!-- battery-roster:begin -->
|
|
6
|
+
```bash
|
|
7
|
+
bash bin/run-alpha.sh # alpha
|
|
8
|
+
bash bin/run-delta.sh # a suite validate no longer runs
|
|
9
|
+
```
|
|
10
|
+
<!-- battery-roster:end -->
|
|
11
|
+
|
|
12
|
+
`bash bin/run-beta.sh` appears here, outside the markers, for a different
|
|
13
|
+
rhetorical job — so beta is undocumented and gamma is missing outright, while
|
|
14
|
+
the delta line resolves to no configured suite.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# spec: evidence-kit/SPEC.md §check-battery-roster — fixture consumer config: the same three suites as good/, so the pair differs only in the runner doc
|
|
3
|
+
# shellcheck disable=SC2034 # consumed by evidence-kit/lib/evidence.sh after sourcing
|
|
4
|
+
EVIDENCE_KIT_SUITES=(alpha beta gamma)
|
|
5
|
+
EVIDENCE_KIT_RUN_alpha='bash bin/run-alpha.sh'
|
|
6
|
+
EVIDENCE_KIT_RUN_beta='env FIXTURE_VERBOSE=1 bash bin/run-beta.sh'
|
|
7
|
+
EVIDENCE_KIT_RUN_gamma='bash bin/run-gamma.sh --deep'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
runner.md
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
BATTERY-ROSTER: clean
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# fixture runner doc
|
|
2
|
+
|
|
3
|
+
1. Run the verification suites:
|
|
4
|
+
|
|
5
|
+
<!-- battery-roster:begin -->
|
|
6
|
+
```bash
|
|
7
|
+
bash bin/run-alpha.sh # alpha
|
|
8
|
+
bash bin/run-beta.sh # beta — the env prefix is normalized away
|
|
9
|
+
bash bin/run-gamma.sh --deep # gamma — arguments are part of the command
|
|
10
|
+
```
|
|
11
|
+
<!-- battery-roster:end -->
|
|
12
|
+
|
|
13
|
+
The indented markers, the fence lines, and the annotation clauses are all
|
|
14
|
+
outside what the parity compare reads.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# spec: evidence-kit/SPEC.md §check-battery-roster — fixture consumer config: three suites, one env-prefixed, so the pair exercises the invocation normalization the parity compare runs on
|
|
3
|
+
# shellcheck disable=SC2034 # consumed by evidence-kit/lib/evidence.sh after sourcing
|
|
4
|
+
EVIDENCE_KIT_SUITES=(alpha beta gamma)
|
|
5
|
+
EVIDENCE_KIT_RUN_alpha='bash bin/run-alpha.sh'
|
|
6
|
+
EVIDENCE_KIT_RUN_beta='env FIXTURE_VERBOSE=1 bash bin/run-beta.sh'
|
|
7
|
+
EVIDENCE_KIT_RUN_gamma='bash bin/run-gamma.sh --deep'
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Behavioral test of checks/check-battery-roster.sh — the branches the one
|
|
3
|
+
# good/bad pair cannot hold: the three fail-closed misconfigurations (absent
|
|
4
|
+
# doc, doc with no marker block, empty suite roster), the normalization arm the
|
|
5
|
+
# pair does not reach (leading VAR=value assignments with no `env` token), and
|
|
6
|
+
# the suite whose EVIDENCE_KIT_RUN_<suite> is unset, which run-validate rejects
|
|
7
|
+
# and this gate therefore leaves alone rather than reporting as undocumented.
|
|
8
|
+
#
|
|
9
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
10
|
+
set -uo pipefail
|
|
11
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
12
|
+
|
|
13
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # evidence-kit/
|
|
14
|
+
GATE="$DIR/checks/check-battery-roster.sh"
|
|
15
|
+
|
|
16
|
+
fails=0
|
|
17
|
+
tmp="$(mktemp -d)"
|
|
18
|
+
trap 'rm -rf "$tmp"' EXIT
|
|
19
|
+
|
|
20
|
+
# case_run <name> <config-body> <doc-body|SKIP> <want> <expect>
|
|
21
|
+
case_run() {
|
|
22
|
+
local name="$1" cfg="$2" doc="$3" want="$4" expect="$5"
|
|
23
|
+
local d="$tmp/$name" out rc; mkdir -p "$d/scripts"
|
|
24
|
+
printf '%b' "$cfg" >"$d/scripts/evidence-config.sh"
|
|
25
|
+
[[ "$doc" == "SKIP" ]] || printf '%b' "$doc" >"$d/runner.md"
|
|
26
|
+
out="$( cd "$d" && env -u EVIDENCE_KIT_CONFIG_FILE GATE_SDK_GATES_DIR=scripts "$GATE" runner.md 2>&1 )"; rc=$?
|
|
27
|
+
if [[ "$rc" -ne "$want" ]]; then
|
|
28
|
+
echo " FAIL: $name expected exit $want, got $rc: $out"; fails=$((fails + 1)); return
|
|
29
|
+
fi
|
|
30
|
+
if ! grep -qF -- "$expect" <<<"$out"; then
|
|
31
|
+
echo " FAIL: $name exit OK but output lacks '$expect': $out"; fails=$((fails + 1))
|
|
32
|
+
fi
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
CFG1='EVIDENCE_KIT_SUITES=(alpha)\nEVIDENCE_KIT_RUN_alpha="bash bin/run-alpha.sh"\n'
|
|
36
|
+
BLOCK='<!-- battery-roster:begin -->\nbash bin/run-alpha.sh\n<!-- battery-roster:end -->\n'
|
|
37
|
+
|
|
38
|
+
# A — the configured runner doc does not exist: misconfiguration, not a clean.
|
|
39
|
+
case_run "no-doc" "$CFG1" SKIP 2 "runner doc not found"
|
|
40
|
+
|
|
41
|
+
# B — the doc exists but carries no marker block: a consumer keeping no register
|
|
42
|
+
# opts out by not registering the gate, so an unmarked doc is exit 2 and
|
|
43
|
+
# never a vacuous pass over a doc the gate cannot locate the register in.
|
|
44
|
+
case_run "no-markers" "$CFG1" 'nothing to see\n' 2 "marker block"
|
|
45
|
+
|
|
46
|
+
# C — an empty suite roster leaves nothing to hold the doc against.
|
|
47
|
+
case_run "empty-suites" 'EVIDENCE_KIT_SUITES=()\n' "$BLOCK" 2 "EVIDENCE_KIT_SUITES is empty"
|
|
48
|
+
|
|
49
|
+
# D — leading VAR=value assignments with no `env` token normalize away too: the
|
|
50
|
+
# harness's environment is not what a contributor types, whichever spelling
|
|
51
|
+
# the config uses.
|
|
52
|
+
case_run "bare-assignment-prefix" \
|
|
53
|
+
'EVIDENCE_KIT_SUITES=(alpha)\nEVIDENCE_KIT_RUN_alpha="VERBOSE=1 bash bin/run-alpha.sh"\n' \
|
|
54
|
+
"$BLOCK" 0 "BATTERY-ROSTER: clean"
|
|
55
|
+
|
|
56
|
+
# E — a suite with no EVIDENCE_KIT_RUN_<suite> has no documented invocation to
|
|
57
|
+
# compare, and run-validate already exits 2 on it; reporting it here as an
|
|
58
|
+
# undocumented suite would send the reader to the doc to fix a config bug.
|
|
59
|
+
case_run "suite-without-command" \
|
|
60
|
+
'EVIDENCE_KIT_SUITES=(alpha orphan)\nEVIDENCE_KIT_RUN_alpha="bash bin/run-alpha.sh"\n' \
|
|
61
|
+
"$BLOCK" 0 "BATTERY-ROSTER: clean"
|
|
62
|
+
|
|
63
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
64
|
+
echo "check-battery-roster.test: $fails assertion(s) failed"
|
|
65
|
+
exit 1
|
|
66
|
+
fi
|
|
67
|
+
echo "check-battery-roster.test: ok (absent doc + unmarked doc + empty suite roster fail closed; bare assignment prefix normalized, command-less suite left alone)"
|
|
68
|
+
exit 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
run-validate.lock
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
the evidence producer for run key 'demo-iter' is still running (pid 1)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pid=1 run=demo-iter
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
run-validate.lock
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pid=2147483646 run=demo-iter
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Behavioral test of the producer-liveness lock — the halves no gate fixture
|
|
3
|
+
# pair can hold. The pair covers the reader's two static verdicts; everything
|
|
4
|
+
# below needs a process the test itself owns (a live PID) or a run of the
|
|
5
|
+
# writer (refusal, bounded reclaim, conditional release).
|
|
6
|
+
#
|
|
7
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
8
|
+
set -uo pipefail
|
|
9
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
10
|
+
|
|
11
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # evidence-kit/
|
|
12
|
+
GATE="$DIR/checks/check-producer-liveness.sh"
|
|
13
|
+
RV="$DIR/bin/run-validate.sh"
|
|
14
|
+
|
|
15
|
+
fails=0
|
|
16
|
+
tmp="$(mktemp -d)"
|
|
17
|
+
live=""
|
|
18
|
+
cleanup() { [[ -n "$live" ]] && kill "$live" 2>/dev/null; rm -rf "$tmp"; }
|
|
19
|
+
trap cleanup EXIT
|
|
20
|
+
|
|
21
|
+
sleep 60 &
|
|
22
|
+
live=$!
|
|
23
|
+
|
|
24
|
+
mk_tree() {
|
|
25
|
+
rm -rf "$1"; mkdir -p "$1/.workflow" "$1/scripts" "$1/.tmp"
|
|
26
|
+
printf '# baseline\ngreen green pass\n' >"$1/.workflow/validate-baseline.txt"
|
|
27
|
+
printf '# contract: evidence-manifest v1\n' >"$1/.workflow/validate-evidence.txt"
|
|
28
|
+
printf "EVIDENCE_KIT_SUITES=(green)\nEVIDENCE_KIT_PARSER=exit-code\nEVIDENCE_KIT_RUN_ID=lock-test\nEVIDENCE_KIT_RUN_green='%s'\n" \
|
|
29
|
+
"${2:-true}" >"$1/scripts/evidence-config.sh"
|
|
30
|
+
}
|
|
31
|
+
# test-hermetic pins EVIDENCE_KIT_CONFIG_FILE to a shared empty file, so each
|
|
32
|
+
# scratch tree names its own config rather than relying on the cwd lookup.
|
|
33
|
+
_rv() { ( cd "$1" && EVIDENCE_KIT_CONFIG_FILE=scripts/evidence-config.sh bash "$RV" 2>&1 ); }
|
|
34
|
+
|
|
35
|
+
# A — the reader reds on a PID the test owns. The fixture pair's bad case can
|
|
36
|
+
# only reach for PID 1, so the live-PID verdict is pinned here against a
|
|
37
|
+
# process whose liveness this test controls end to end.
|
|
38
|
+
printf 'pid=%s run=owned-run\n' "$live" >"$tmp/a.lock"
|
|
39
|
+
out="$(bash "$GATE" "$tmp/a.lock" 2>&1)"; rc=$?
|
|
40
|
+
if [[ "$rc" -ne 1 ]] || [[ "$out" != *"still running (pid $live)"* ]]; then
|
|
41
|
+
echo " FAIL: the reader did not red on a live PID the test owns (rc=$rc): $out"; fails=$((fails + 1))
|
|
42
|
+
fi
|
|
43
|
+
|
|
44
|
+
# B — a lock that does not parse is exit 2, never a free reading. The claim
|
|
45
|
+
# publishes the record whole, so an unparseable lock is corruption.
|
|
46
|
+
printf 'garbage\n' >"$tmp/b.lock"
|
|
47
|
+
out="$(bash "$GATE" "$tmp/b.lock" 2>&1)"; rc=$?
|
|
48
|
+
if [[ "$rc" -ne 2 ]]; then
|
|
49
|
+
echo " FAIL: an unparseable lock must be exit 2, got rc=$rc: $out"; fails=$((fails + 1))
|
|
50
|
+
fi
|
|
51
|
+
|
|
52
|
+
# C — delta 6's headline: the writer refuses to start against a *live* PID,
|
|
53
|
+
# names the blocking run key, and attempts no reclaim — the lock it found
|
|
54
|
+
# is still there, untouched, when it exits.
|
|
55
|
+
mk_tree "$tmp/c"
|
|
56
|
+
printf 'pid=%s run=blocking-run\n' "$live" >"$tmp/c/.tmp/run-validate.lock"
|
|
57
|
+
out="$(_rv "$tmp/c")"; rc=$?
|
|
58
|
+
if [[ "$rc" -eq 0 ]] || [[ "$out" != *"blocking-run"* ]]; then
|
|
59
|
+
echo " FAIL: the writer did not refuse a live lock naming its run key (rc=$rc): $out"; fails=$((fails + 1))
|
|
60
|
+
fi
|
|
61
|
+
if [[ "$(cat "$tmp/c/.tmp/run-validate.lock" 2>/dev/null)" != "pid=$live run=blocking-run" ]]; then
|
|
62
|
+
echo " FAIL: the refusal disturbed the live holder's lock"; fails=$((fails + 1))
|
|
63
|
+
fi
|
|
64
|
+
if grep -q '^lock-test ' "$tmp/c/.workflow/validate-evidence.txt"; then
|
|
65
|
+
echo " FAIL: a refused run still recorded evidence"; fails=$((fails + 1))
|
|
66
|
+
fi
|
|
67
|
+
|
|
68
|
+
# D — a dead-PID lock is reclaimed, the run proceeds, and the trap releases the
|
|
69
|
+
# lock it then owned.
|
|
70
|
+
mk_tree "$tmp/d"
|
|
71
|
+
printf 'pid=2147483646 run=stale-run\n' >"$tmp/d/.tmp/run-validate.lock"
|
|
72
|
+
out="$(_rv "$tmp/d")"; rc=$?
|
|
73
|
+
if [[ "$rc" -ne 0 ]] || ! grep -q '^lock-test green ' "$tmp/d/.workflow/validate-evidence.txt"; then
|
|
74
|
+
echo " FAIL: a dead-PID lock was not reclaimed (rc=$rc): $out"; fails=$((fails + 1))
|
|
75
|
+
fi
|
|
76
|
+
if [[ -e "$tmp/d/.tmp/run-validate.lock" ]]; then
|
|
77
|
+
echo " FAIL: the EXIT trap did not release the run's own lock"; fails=$((fails + 1))
|
|
78
|
+
fi
|
|
79
|
+
|
|
80
|
+
# E — the reclaim is bounded. A claim that keeps failing with no live holder
|
|
81
|
+
# must refuse on the second attempt rather than loop. An unclaimable lock
|
|
82
|
+
# path is the deterministic stand-in: losing the reclaim race to another
|
|
83
|
+
# producer reaches the same branch but cannot be scheduled reliably, and its
|
|
84
|
+
# more common outcome is the live-holder refusal arm C already pins.
|
|
85
|
+
mk_tree "$tmp/e"
|
|
86
|
+
printf "EVIDENCE_KIT_LOCK_FILE='no-such-dir/run-validate.lock'\n" >>"$tmp/e/scripts/evidence-config.sh"
|
|
87
|
+
out="$(timeout 30 bash -c "cd '$tmp/e' && EVIDENCE_KIT_CONFIG_FILE=scripts/evidence-config.sh bash '$RV' 2>&1")"; rc=$?
|
|
88
|
+
if [[ "$rc" -eq 124 ]] || [[ "$out" != *"refusing to start rather than retrying"* ]]; then
|
|
89
|
+
echo " FAIL: the reclaim is not bounded to one retry (rc=$rc): $out"; fails=$((fails + 1))
|
|
90
|
+
fi
|
|
91
|
+
|
|
92
|
+
# F — the release is conditional. The suite command removes this run's lock out
|
|
93
|
+
# of band and a second producer claims the freed slot; the exiting run must
|
|
94
|
+
# leave that live record alone. An unconditional rm -f deletes it, which is
|
|
95
|
+
# this unit's own defect reproduced inside its own mechanism.
|
|
96
|
+
mk_tree "$tmp/f" "bash scripts/steal-lock.sh"
|
|
97
|
+
printf '#!/usr/bin/env bash\nrm -f .tmp/run-validate.lock\nprintf "pid=%%s run=second-producer\\n" "%s" > .tmp/run-validate.lock\nexit 0\n' \
|
|
98
|
+
"$live" >"$tmp/f/scripts/steal-lock.sh"
|
|
99
|
+
out="$(_rv "$tmp/f")"; rc=$?
|
|
100
|
+
if [[ "$(cat "$tmp/f/.tmp/run-validate.lock" 2>/dev/null)" != "pid=$live run=second-producer" ]]; then
|
|
101
|
+
echo " FAIL: the EXIT trap removed a lock that was no longer ours (rc=$rc): $out"; fails=$((fails + 1))
|
|
102
|
+
fi
|
|
103
|
+
|
|
104
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
105
|
+
echo "producer-lock.test: $fails assertion(s) failed"
|
|
106
|
+
exit 1
|
|
107
|
+
fi
|
|
108
|
+
echo "producer-lock.test: ok (live-PID red, unparseable lock exit 2, writer refusal on a live lock, bounded reclaim of a dead one, conditional release)"
|
|
109
|
+
exit 0
|
|
@@ -38,6 +38,7 @@ declare -p EVIDENCE_KIT_SUITES &>/dev/null || EVIDENCE_KIT_SUITES=()
|
|
|
38
38
|
[[ -v EVIDENCE_KIT_QUEUE_FILE ]] || EVIDENCE_KIT_QUEUE_FILE="${GATE_SDK_QUEUE_FILE:-TASK-QUEUE.md}"
|
|
39
39
|
[[ -v EVIDENCE_KIT_STATE_FILE ]] || EVIDENCE_KIT_STATE_FILE="${GATE_SDK_WORKFLOW_DIR:-.workflow}/WORKFLOW-STATE.txt"
|
|
40
40
|
[[ -v EVIDENCE_KIT_TMP_DIR ]] || EVIDENCE_KIT_TMP_DIR="${GATE_SDK_TMP_DIR:-.tmp}"
|
|
41
|
+
[[ -v EVIDENCE_KIT_LOCK_FILE ]] || EVIDENCE_KIT_LOCK_FILE="$EVIDENCE_KIT_TMP_DIR/run-validate.lock"
|
|
41
42
|
[[ -v EVIDENCE_KIT_RUN_ID ]] || EVIDENCE_KIT_RUN_ID=""
|
|
42
43
|
[[ -v EVIDENCE_KIT_PRE_HOOK ]] || EVIDENCE_KIT_PRE_HOOK=""
|
|
43
44
|
declare -p EVIDENCE_KIT_SCENARIO_GLOBS &>/dev/null || declare -A EVIDENCE_KIT_SCENARIO_GLOBS=()
|
|
@@ -110,6 +111,23 @@ ek_parse() {
|
|
|
110
111
|
esac
|
|
111
112
|
}
|
|
112
113
|
|
|
114
|
+
# spec: evidence-kit/SPEC.md §The producer-liveness lock — the one liveness predicate all three readers share; `kill -0` is the cheap same-uid answer and `ps -p` the portable fallback, so a live process this uid may not signal reads held rather than free
|
|
115
|
+
ek_pid_alive() {
|
|
116
|
+
local pid="${1:-}"
|
|
117
|
+
[[ "$pid" =~ ^[1-9][0-9]*$ ]] || return 1
|
|
118
|
+
kill -0 "$pid" 2>/dev/null && return 0
|
|
119
|
+
ps -p "$pid" >/dev/null 2>&1
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
# spec: evidence-kit/SPEC.md §The producer-liveness lock — prints the lock record's '<pid> <run key>'; 1 = no lock (the free reading), 2 = a lock that does not parse, which no reader may treat as free
|
|
123
|
+
ek_lock_read() {
|
|
124
|
+
local lock="${1:-$EVIDENCE_KIT_LOCK_FILE}" line
|
|
125
|
+
[[ -f "$lock" ]] || return 1
|
|
126
|
+
IFS= read -r line <"$lock" || return 2
|
|
127
|
+
[[ "$line" =~ ^pid=([1-9][0-9]*)[[:space:]]run=([^[:space:]]+)$ ]] || return 2
|
|
128
|
+
printf '%s %s\n' "${BASH_REMATCH[1]}" "${BASH_REMATCH[2]}"
|
|
129
|
+
}
|
|
130
|
+
|
|
113
131
|
ek_data_lines() {
|
|
114
132
|
grep -Ev '^[[:space:]]*(#|$)' "$1" 2>/dev/null || true
|
|
115
133
|
}
|
|
@@ -11,6 +11,8 @@ check-evidence-baseline
|
|
|
11
11
|
check-evidence-manifest
|
|
12
12
|
EOF
|
|
13
13
|
|
|
14
|
+
# smoke-unregistered: check-producer-liveness — entry-preflight only, never gates.list-registered: its subject is a producer-in-flight transition, not tree state, and a consumer battery that includes itself (this repo's does) would red every run against the lock run-validate just claimed (evidence-kit/SPEC.md §check-producer-liveness)
|
|
15
|
+
|
|
14
16
|
mkdir -p .workflow
|
|
15
17
|
[[ -f .workflow/validate-baseline.txt ]] \
|
|
16
18
|
|| printf '# contract: evidence-kit/SPEC.md §Baseline manifest — held-constant validate baseline: <suite> <scenario> <status> [<slug>]\n' > .workflow/validate-baseline.txt
|
|
@@ -18,19 +20,23 @@ mkdir -p .workflow
|
|
|
18
20
|
|| printf '# contract: evidence-manifest v1\n' > .workflow/validate-evidence.txt
|
|
19
21
|
|
|
20
22
|
bash "$SDK/bin/gen-pre-commit.sh" --write >/dev/null
|
|
21
|
-
bash "$SDK/checks/check-graph.sh" --emit >
|
|
23
|
+
bash "$SDK/checks/check-graph.sh" --emit > scripts/CHECK-GRAPH.html
|
|
22
24
|
|
|
23
25
|
# spec: evidence-kit/SPEC.md §bin/run-validate.sh — exercise run-validate end-to-end (advisory tool, no fixture pair): a one-suite exit-code run appends a clean evidence line.
|
|
24
26
|
es="$PWD/.tmp/run-validate-smoke"
|
|
25
27
|
rm -rf "$es"; mkdir -p "$es/.workflow" "$es/scripts" "$es/.tmp"
|
|
26
|
-
printf '# baseline\ngreen green pass\nmulti a pass\nmulti b pass\n' > "$es/.workflow/validate-baseline.txt"
|
|
28
|
+
printf '# baseline\ngreen green pass\nuntouched_tree untouched_tree pass\nmulti a pass\nmulti b pass\n' > "$es/.workflow/validate-baseline.txt"
|
|
27
29
|
printf '# contract: evidence-manifest v1\n' > "$es/.workflow/validate-evidence.txt"
|
|
28
30
|
printf '#!/usr/bin/env bash\nprintf "a pass\\nb pass\\n"\n' > "$es/scripts/multi-parser.sh"
|
|
31
|
+
# spec: evidence-kit/SPEC.md §Evidence manifest — a suite standing in for one whose precondition is a clean worktree: it reds if the manifest already carries a data line at its turn, which is what an earlier suite's row means. Second in the roster on purpose — first, it would pass under either writer
|
|
32
|
+
printf '#!/usr/bin/env bash\ngrep -qEv "^[[:space:]]*(#|$)" .workflow/validate-evidence.txt \\\n && { echo "the spine wrote the tracked manifest before this suite ran" >&2; exit 1; }\nexit 0\n' \
|
|
33
|
+
> "$es/scripts/untouched-tree.sh"
|
|
29
34
|
cat > "$es/scripts/evidence-config.sh" <<'EOF'
|
|
30
|
-
EVIDENCE_KIT_SUITES=(green multi)
|
|
35
|
+
EVIDENCE_KIT_SUITES=(green untouched_tree multi)
|
|
31
36
|
EVIDENCE_KIT_PARSER=exit-code
|
|
32
37
|
EVIDENCE_KIT_RUN_ID=smoke
|
|
33
38
|
EVIDENCE_KIT_RUN_green='true'
|
|
39
|
+
EVIDENCE_KIT_RUN_untouched_tree='bash scripts/untouched-tree.sh'
|
|
34
40
|
EVIDENCE_KIT_RUN_multi='true'
|
|
35
41
|
EVIDENCE_KIT_PARSER_multi='bash scripts/multi-parser.sh'
|
|
36
42
|
EOF
|
|
@@ -42,4 +48,12 @@ grep -qE '^smoke green sha256=[0-9a-f]{64} pass=1 fail=0 ignore=0 verdict=clean
|
|
|
42
48
|
grep -qE '^smoke multi sha256=[0-9a-f]{64} pass=2 fail=0 ignore=0 verdict=clean ' \
|
|
43
49
|
"$es/.workflow/validate-evidence.txt" \
|
|
44
50
|
|| { echo "smoke(run-validate): per-suite parser override did not reach the spine" >&2; exit 1; }
|
|
51
|
+
# spec: evidence-kit/SPEC.md §Evidence manifest — the single fold, asserted from the suite's own vantage rather than from the finished file: a spine writing per suite reddens this one, so its clean row is the property
|
|
52
|
+
grep -qE '^smoke untouched_tree sha256=[0-9a-f]{64} pass=1 fail=0 ignore=0 verdict=clean ' \
|
|
53
|
+
"$es/.workflow/validate-evidence.txt" \
|
|
54
|
+
|| { echo "smoke(run-validate): the spine wrote the manifest before the roster finished" >&2; exit 1; }
|
|
55
|
+
# spec: evidence-kit/SPEC.md §Evidence manifest — the rows land in configured-suite order, so a repeat run relocates nothing
|
|
56
|
+
diff <(grep -v '^#' "$es/.workflow/validate-evidence.txt" | awk '{print $2}') \
|
|
57
|
+
<(printf 'green\nuntouched_tree\nmulti\n') >/dev/null \
|
|
58
|
+
|| { echo "smoke(run-validate): the folded rows are not in configured-suite order" >&2; exit 1; }
|
|
45
59
|
rm -rf "$es"
|
|
@@ -26,6 +26,17 @@ honest:
|
|
|
26
26
|
`commit-msg` hooks *generated* from per-gate `# graph:` coupling manifests
|
|
27
27
|
(`tier=precommit` vs `tier=commit-msg`); adding a gate to a hook is
|
|
28
28
|
manifest-only, so hook membership cannot drift.
|
|
29
|
+
- `bin/build-native.sh` — the one spelling of the crate build for the binary
|
|
30
|
+
substrate: resolves the crate from `GATE_SDK_NATIVE_CRATE`, passes trailing
|
|
31
|
+
arguments to cargo (so a per-target build reuses it), and returns cargo's own
|
|
32
|
+
exit code. Every reader of that command cites this script rather than copying it.
|
|
33
|
+
- `bin/port-blockers.sh` — the port-sequencing report, in two exclusive arms.
|
|
34
|
+
The default arm gives, per registered gate, the external programs its rule
|
|
35
|
+
requires beyond `GATE_SDK_PROGRAM_FLOOR`; `--group` partitions the still-shell
|
|
36
|
+
members by derived corpus derivation, largest group first, with the
|
|
37
|
+
mechanically derivable port criteria beside each member. Both derive from the
|
|
38
|
+
tree rather than from a list anywhere, and both count what they could not
|
|
39
|
+
decide. Advisory — never a `gates.list` member, and nothing parses either.
|
|
29
40
|
- `checks/` — the meta-gates that hold the family to its own standard:
|
|
30
41
|
ShellCheck self-lint, the output contract, the fail-closed contract, fixture
|
|
31
42
|
coverage, SPEC↔code assertion coupling, exemption-list hygiene, and manifest
|
|
@@ -62,7 +73,7 @@ EOF
|
|
|
62
73
|
|
|
63
74
|
mkdir -p .workflow docs
|
|
64
75
|
bash gate-sdk/bin/gen-pre-commit.sh --write # generate the hook
|
|
65
|
-
bash gate-sdk/checks/check-graph.sh --emit >
|
|
76
|
+
bash gate-sdk/checks/check-graph.sh --emit > scripts/CHECK-GRAPH.html
|
|
66
77
|
bash gate-sdk/bin/enforcement-map.sh --emit > docs/enforcement.md # the enforcement map (regenerate on any class-registry change)
|
|
67
78
|
bash gate-sdk/bin/install-hooks.sh # opt in this clone
|
|
68
79
|
|
|
@@ -87,6 +98,10 @@ check-gate-output
|
|
|
87
98
|
check-gate-fail-closed
|
|
88
99
|
check-gate-fixture-coverage
|
|
89
100
|
check-gate-assertions
|
|
101
|
+
check-gate-substrate-parity
|
|
102
|
+
check-gate-binary-fresh
|
|
103
|
+
check-crate-arms
|
|
104
|
+
check-install-disposition
|
|
90
105
|
check-test-hermetic
|
|
91
106
|
check-assertion-strength
|
|
92
107
|
check-gate-exemption-tasks
|
|
@@ -110,6 +125,7 @@ check-commit-msg
|
|
|
110
125
|
check-commit-subject
|
|
111
126
|
check-tree-terms
|
|
112
127
|
check-template-copy-parity
|
|
128
|
+
check-template-registry-parity
|
|
113
129
|
```
|
|
114
130
|
<!-- gate-roster:end -->
|
|
115
131
|
|