checkwright 0.31.0 → 0.32.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 +7 -6
- package/bin/checkwright.ps1 +3 -3
- package/package.json +10 -3
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
- package/payload/artifact/targets.list +5 -5
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
- 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/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/README.md +8 -4
- package/payload/canon-kit/checks/check-amendment-queue.gate +1 -1
- package/payload/canon-kit/checks/check-comment-tier.gate +2 -2
- package/payload/canon-kit/checks/check-delta-agreement.gate +4 -0
- package/payload/canon-kit/checks/check-deprecation-task.gate +1 -1
- package/payload/canon-kit/checks/check-docs-page-length.gate +4 -0
- package/payload/canon-kit/checks/check-docs-page-repeat.gate +2 -2
- package/payload/canon-kit/checks/check-fence-command-head.gate +1 -1
- package/payload/canon-kit/checks/check-fence-paste-unit.gate +4 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.gate +1 -1
- package/payload/canon-kit/checks/check-manifest-count.gate +3 -3
- package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
- package/payload/canon-kit/checks/check-pendency-contradiction.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
- package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
- package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
- package/payload/canon-kit/checks/check-spec-pointer.gate +1 -1
- package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-widget.md +7 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +7 -0
- package/payload/canon-kit/gate-tests/check-citation-link/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-citation-link/bad/site/unclosed.md +4 -0
- package/payload/canon-kit/gate-tests/check-citation-link/good/site/page.md +10 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +9 -1
- package/payload/canon-kit/gate-tests/check-delta-agreement/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-delta-agreement/bad/scripts/canon-config.knobs +14 -0
- package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/base/notes/spec.md +9 -0
- package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/changes/one/deltas/notes/spec.md +7 -0
- package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/changes/two/deltas/cli/spec.md +3 -0
- package/payload/canon-kit/gate-tests/check-delta-agreement/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-delta-agreement/good/scripts/canon-config.knobs +14 -0
- package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/base/notes/spec.md +9 -0
- package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/changes/one/deltas/notes/spec.md +19 -0
- package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/changes/two/deltas/cli/spec.md +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd.test.sh +20 -4
- package/payload/canon-kit/gate-tests/check-docs-page-length/bad/expect.txt +5 -0
- package/payload/canon-kit/gate-tests/check-docs-page-length/bad/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/item.md +5 -0
- package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/nested.md +7 -0
- package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/page.md +13 -0
- package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/short.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/unclosed.md +4 -0
- package/payload/canon-kit/gate-tests/check-docs-page-length/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-page-length/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-docs-page-length/good/site/generated.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-page-length/good/site/page.md +15 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/scripts/canon-config.knobs +2 -1
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/_chrome/footer.html +4 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/page.md +4 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/unclosed.md +6 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/expect.txt +2 -1
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/scripts/canon-config.knobs +2 -1
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/_chrome/layout.html +8 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/page.md +13 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +4 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +10 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +6 -0
- package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/site/page.md +17 -0
- package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/site/page.md +39 -0
- package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +8 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +14 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +27 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-manifest-count/good/posts/note.md +7 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/good/SPEC.md +7 -0
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +17 -1
- package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/dotted.md +10 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/good/dotted.md +6 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +6 -0
- package/payload/canon-kit/gate-tests/check-pendency-contradiction/bad/SPEC.md +14 -0
- package/payload/canon-kit/gate-tests/check-pendency-contradiction/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/README.md +3 -0
- package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/SPEC.md +16 -0
- package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/absence-unclosed.md +8 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/absence.md +13 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/expect.txt +4 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -1
- package/payload/canon-kit/gate-tests/check-prose-tells/good/absence.md +17 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/canon-config.knobs +4 -1
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/SPEC.md +9 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/expect.txt +2 -1
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC.md +14 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/expect.txt +2 -1
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/long.md +7 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/doc.md +13 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +7 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +8 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-repeat.md +11 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-task-label-resolution/good/work/tasks.md +6 -0
- package/payload/canon-kit/gate-tests/check-task-path-claim/good/work/tasks.md +6 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/README.md +4 -0
- package/payload/context-kit/README.md +5 -7
- package/payload/context-kit/checks/check-brevity.gate +1 -1
- package/payload/context-kit/gate-tests/check-brevity.test.sh +1 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +25 -1
- 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 +16 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/checkwright-gates +2 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -2
- 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/checkwright-gates +2 -0
- package/payload/context-kit/gate-tests/session-context-spawn.test.sh +52 -0
- package/payload/context-kit/templates/nudge-delegation.txt +4 -0
- package/payload/context-kit/templates/settings-sessionstart.json +2 -2
- package/payload/delegation-kit/README.md +14 -8
- package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +1 -0
- package/payload/delegation-kit/checks/check-gate-tamper.gate +1 -1
- package/payload/delegation-kit/close-surfaces.txt +3 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/stale-effort.md +10 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/stale.md +9 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/unbound.md +8 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/expect.txt +3 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/scripts/delegation-config.knobs +3 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-cheap.md +3 -1
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-paired.md +10 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/expect.txt +1 -1
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/scripts/delegation-config.knobs +3 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/exception-arrays.sh +44 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +12 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/staged-files +12 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/exception-arrays.sh +44 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/staged-files +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +22 -1
- package/payload/delegation-kit/templates/agent-execution.md +7 -6
- package/payload/delegation-kit/templates/delegation-config.knobs +32 -0
- package/payload/delegation-kit/usage-tests/cases.tsv +35 -25
- package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +12 -3
- package/payload/doctrine-kit/DOCTRINE.md +109 -25
- package/payload/doctrine-kit/README.md +2 -2
- package/payload/drift-kit/README.md +15 -6
- package/payload/drift-kit/close-surfaces.txt +2 -0
- package/payload/drift-kit/templates/economics.md +7 -3
- package/payload/drift-kit/templates/kpis.list +1 -0
- package/payload/evidence-kit/README.md +3 -3
- 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 +2 -1
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +3 -1
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/runner.md +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +3 -1
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +18 -2
- package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +2 -3
- package/payload/evidence-kit/gate-tests/run-member-door.test.sh +50 -0
- package/payload/gate-sdk/README.md +9 -13
- package/payload/gate-sdk/bin/build-native.sh +11 -14
- package/payload/gate-sdk/bin/run-gates.ps1 +149 -24
- package/payload/gate-sdk/bin/run-gates.sh +57 -14
- package/payload/gate-sdk/checks/check-commit-msg.gate +1 -1
- package/payload/gate-sdk/checks/check-gate-substrate-parity.gate +1 -1
- package/payload/gate-sdk/checks/check-graph.gate +2 -2
- package/payload/gate-sdk/checks/check-install-disposition.gate +1 -1
- package/payload/gate-sdk/checks/check-path-dialect.gate +1 -1
- package/payload/gate-sdk/checks/check-psscriptanalyzer.gate +4 -0
- package/payload/gate-sdk/checks/check-shellcheck.gate +1 -1
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +1 -1
- package/payload/gate-sdk/checks/check-tree-terms.gate +1 -1
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/args +2 -1
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/tree/workflows/shapes.yml +29 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/bad/args +2 -1
- package/payload/gate-sdk/gate-tests/check-action-permissions/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/shapes.yml +22 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/demo-kit/index.md +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +17 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +12 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-array-axes.sh +44 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-array-axes.sh +46 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/check-psopt.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/check-psopt.ps1 +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/scripts/gates.list +3 -1
- 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 +4 -2
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/checks/check-kitexec.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/checks/check-kitexec.ps1 +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-climb.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-direxec.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twoexec.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-txtexec.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-txtexec.txt +1 -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/scripts/check-psgood.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-psgood.ps1 +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-rsgood.gate +3 -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.test.sh +42 -5
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +1 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +9 -1
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +2 -2
- package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +15 -29
- 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 +3 -1
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/portability-patterns.notes.list +1 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/args +1 -1
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/demo-kit/templates/portability-patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/rosters/constructs.list +6 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +15 -2
- package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/noisy.ps1 +1 -0
- package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/pwsh +8 -0
- package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/clean.ps1 +1 -0
- package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/pwsh +7 -0
- package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/{warn.sh → alpha-kit/gate-tests/kit-warn.sh} +1 -1
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/scripts/gate-tests/tests-warn.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/{ok.sh → alpha-kit/gate-tests/kit-ok.sh} +1 -1
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/scripts/gate-tests/tests-ok.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +4 -1
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/stray/templates/session-note.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +6 -2
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/drift-kit/templates/kpis.list +1 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/drift-kit/templates/kpis.list +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/msg-patterns.old.list +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/args +2 -2
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/demo-kit/templates/msg-patterns.list +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/rosters/extra.list +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +1 -0
- package/payload/gate-sdk/gate-tests/emit-arm-shape.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +10 -2
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +29 -3
- package/payload/gate-sdk/gate-tests/lib-test-hermetic.test.sh +24 -0
- package/payload/gate-sdk/gate-tests/native-git-hooks.test.sh +261 -0
- package/payload/gate-sdk/gate-tests/native-rustflags.test.sh +20 -0
- package/payload/gate-sdk/gate-tests/run-arm-contract.test.sh +11 -4
- package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +2 -1
- package/payload/gate-sdk/gate-tests/run-for-path.test.sh +11 -1
- package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +64 -4
- package/payload/gate-sdk/lib/gate.sh +46 -6
- package/payload/gate-sdk/lib/test-hermetic.sh +16 -8
- package/payload/gate-sdk/templates/adopt.md +1 -1
- package/payload/gate-sdk/templates/msg-patterns.list +1 -1
- package/payload/gate-sdk/templates/portability-patterns.list +1 -1
- package/payload/guard-kit/README.md +12 -7
- package/payload/guard-kit/close-surfaces.txt +3 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/README.md +1 -1
- package/payload/guard-kit/gate-tests/check-door-binding/bad/expect.txt +1 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/guard-config.knobs +2 -1
- package/payload/guard-kit/gate-tests/check-door-binding/bad/src/remedy.rs +3 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/expect.txt +1 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/guard-config.knobs +2 -1
- package/payload/guard-kit/gate-tests/check-door-binding/good/site/register.md +8 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/src/remedy.rs +13 -0
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +0 -1
- package/payload/guard-kit/gate-tests/consumer-rules.test.sh +105 -3
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +64 -2
- package/payload/guard-kit/gate-tests/guard-config-knobs.test.sh +18 -5
- package/payload/guard-kit/gate-tests/guard-verdict.test.sh +74 -0
- package/payload/guard-kit/gate-tests/worktree-confinement.test.sh +49 -5
- package/payload/guard-kit/guard-tests/background-cases.tsv +103 -1
- package/payload/guard-kit/guard-tests/cases.tsv +834 -64
- package/payload/guard-kit/guard-tests/powershell-cases.tsv +51 -2
- package/payload/guard-kit/guard-tests/variant-limits.tsv +14 -0
- package/payload/guard-kit/templates/close-triage.md +2 -2
- package/payload/guard-kit/templates/guard-config.knobs +9 -0
- package/payload/guard-kit/templates/settings-allow.json +1 -1
- package/payload/guard-kit/templates/settings-hooks.json +4 -4
- package/payload/lifecycle-kit/README.md +11 -6
- package/payload/lifecycle-kit/checks/check-disposed-findings.gate +3 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.gate +1 -1
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +1 -1
- package/payload/lifecycle-kit/close-surfaces.txt +2 -0
- package/payload/lifecycle-kit/gate-tests/boundary-set-record.test.sh +82 -0
- package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +11 -2
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +11 -1
- package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/disposed-findings.txt +5 -0
- package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/expect.txt +5 -0
- package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/disposed-findings.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +1 -1
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +27 -2
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +34 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +3 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/scripts/lifecycle-config.knobs +3 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +3 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/scripts/lifecycle-config.knobs +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage.test.sh +22 -2
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +9 -2
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +27 -1
- package/payload/lifecycle-kit/gate-tests/journal-arm.test.sh +251 -0
- package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +46 -5
- package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +16 -2
- package/payload/lifecycle-kit/templates/consult.md +9 -5
- package/payload/lifecycle-kit/templates/frames/project-critique.md +18 -0
- package/payload/lifecycle-kit/templates/frames/stage-contract-sweep.md +18 -0
- package/payload/lifecycle-kit/templates/frames/stage-contract.md +15 -0
- package/payload/lifecycle-kit/templates/host-protocol.md +10 -0
- package/payload/lifecycle-kit/templates/lead.md +30 -25
- package/payload/lifecycle-kit/templates/stages/align.md +4 -0
- package/payload/lifecycle-kit/templates/stages/build.md +5 -3
- package/payload/lifecycle-kit/templates/stages/close.md +8 -6
- package/payload/lifecycle-kit/templates/stages/scope.md +6 -2
- package/payload/lifecycle-kit/templates/stages/spec.md +4 -0
- package/payload/lifecycle-kit/templates/stages/validate.md +4 -2
- package/payload/lifecycle-kit/templates/upgrade.md +1 -1
- package/payload/queue-kit/README.md +3 -2
- package/payload/queue-kit/close-surfaces.txt +3 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/bad/scripts/queue-config.knobs +2 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/good/TASK-QUEUE.md +1 -1
- package/payload/queue-kit/gate-tests/check-queue-sections/good/scripts/queue-config.knobs +2 -0
- package/payload/queue-kit/gate-tests/check-queue-sections.test.sh +65 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +10 -1
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +4 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +4 -0
- package/payload/queue-kit/gate-tests/check-task-conservation.test.sh +38 -0
- package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +3 -0
- package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +3 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +8 -0
- package/payload/queue-kit/gate-tests/roadmap-lag.test.sh +137 -0
- package/payload/site-kit/README.md +3 -3
- package/payload/site-kit/gate-tests/check-docs-collapsible/bad/docs/unclosed.md +8 -0
- package/payload/site-kit/gate-tests/check-docs-collapsible/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/regions.md +7 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/dotted.md +9 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/dotted.md +7 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/expect.txt +1 -1
- package/payload/site-kit/gate-tests/site-health-probe.test.sh +219 -0
- package/payload/site-kit/templates/site-health.yml +181 -132
- package/profiles.list +11 -10
- package/recipes/openspec/canon-config.knobs +5 -0
- package/recipes/openspec-overlap/canon-config.knobs +12 -0
- package/recipes/openspec-overlap/unregister.list +1 -0
- package/payload/context-kit/checks/check-footprint-fresh.gate +0 -4
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/args +0 -4
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/emit.txt +0 -12
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/expect.txt +0 -1
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/projection.txt +0 -11
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/CLAUDE.md +0 -6
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/SPEC.md +0 -3
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/templates/guide.md +0 -3
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +0 -32
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/expect.txt +0 -1
- package/payload/context-kit/templates/session-context.sh +0 -148
- package/payload/delegation-kit/checks/check-rule-citation.gate +0 -3
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/args +0 -1
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/expect.txt +0 -1
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/spec.md +0 -9
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/tmpl.md +0 -4
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/args +0 -1
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/expect.txt +0 -1
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/spec.md +0 -20
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/tmpl.md +0 -5
- package/payload/drift-kit/templates/kpi-deprecated-surface.sh +0 -54
- package/payload/gate-sdk/checks/check-crate-arms.gate +0 -3
- package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +0 -3
- package/payload/gate-sdk/checks/check-hook-exec-bit.gate +0 -3
- package/payload/gate-sdk/checks/check-kit-roots-dialect.gate +0 -3
- package/payload/gate-sdk/checks/check-packed-links.gate +0 -3
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +0 -7
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +0 -12
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +0 -5
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.knobs +0 -3
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +0 -7
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +0 -11
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +0 -2
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.knobs +0 -3
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/args +0 -2
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/expect.txt +0 -5
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/kitroot/checks/check-vendored.gate +0 -2
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/check-ported.gate +0 -2
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.knobs +0 -2
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gates.list +0 -4
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stamp.txt +0 -1
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stub-bin +0 -6
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/args +0 -2
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/expect.txt +0 -5
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/kitroot/checks/check-vendored.gate +0 -2
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/check-ported.gate +0 -2
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.knobs +0 -2
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gates.list +0 -4
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stamp.txt +0 -1
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stub-bin +0 -5
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +0 -97
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/expect.txt +0 -1
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/hooks/pre-commit +0 -2
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/args +0 -1
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/expect.txt +0 -1
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/hooks/pre-commit +0 -2
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/args +0 -5
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/expect.txt +0 -1
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/checks/placeholder.txt +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/gate-tests/alpha.test.sh +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/lib/alpha.sh +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/checks/placeholder.txt +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/gate-tests/beta.test.sh +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/lib/beta.sh +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/checks/placeholder.txt +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/lib/gate.sh +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gate-sdk-config.knobs +0 -7
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gates.list +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/args +0 -7
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/expect.txt +0 -1
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/checks/placeholder.txt +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/gate-tests/alpha.test.sh +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/lib/alpha.sh +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/checks/placeholder.txt +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/gate-tests/beta.test.sh +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/lib/beta.sh +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/checks/placeholder.txt +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/lib/gate.sh +0 -3
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/scripts/gates.list +0 -3
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/alpha-kit/README.md +0 -5
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/args +0 -5
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/beta-kit/README.md +0 -5
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/expect.txt +0 -2
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/scripts/gate-sdk-config.knobs +0 -4
- package/payload/gate-sdk/gate-tests/check-packed-links/good/alpha-kit/README.md +0 -5
- package/payload/gate-sdk/gate-tests/check-packed-links/good/args +0 -8
- package/payload/gate-sdk/gate-tests/check-packed-links/good/beta-kit/README.md +0 -9
- package/payload/gate-sdk/gate-tests/check-packed-links/good/expect.txt +0 -1
- package/payload/gate-sdk/gate-tests/check-packed-links/good/gamma-kit/SPEC.md +0 -4
- package/payload/gate-sdk/gate-tests/check-packed-links/good/scripts/gate-sdk-config.knobs +0 -6
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/patterns.list +0 -5
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/portability-patterns.list +0 -5
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +0 -2
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +0 -3
- /package/payload/gate-sdk/gate-tests/{check-shellcheck → check-psscriptanalyzer}/bad/args +0 -0
- /package/payload/gate-sdk/gate-tests/{check-shellcheck → check-psscriptanalyzer}/good/args +0 -0
- /package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/{delegation-kit → vendor/delegation-kit}/templates/agent-budget-guard.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/agent-budget-guard.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/delegation-config.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/session-note.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/usage-poller.sh +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# Behavioral test of check-evidence-baseline — the slug-liveness and
|
|
3
3
|
# scenario-coverage branches the one good/bad pair (grammar) cannot hold: a Done
|
|
4
|
-
# slug is stale-red, an unknown slug is red, a permanent marker is accepted, a
|
|
4
|
+
# slug is stale-red under the configured finished section, an unknown slug is red, a permanent marker is accepted, a
|
|
5
5
|
# configured scenario glob asserts manifest↔disk set equality both ways, a row whose
|
|
6
6
|
# suite left a non-empty roster is red, and the
|
|
7
7
|
# flip assertion judges reproduces-at against a scratch repository's iteration start.
|
|
@@ -38,7 +38,23 @@ case_run "live-slug-clean" \
|
|
|
38
38
|
# B — a fail slug that is a Done task is stale-red.
|
|
39
39
|
case_run "done-slug-stale" \
|
|
40
40
|
'u a fail gone-task\n' '## Done\n- gone-task\n' \
|
|
41
|
-
1 "is a Done
|
|
41
|
+
1 "is a task under '## Done'"
|
|
42
|
+
|
|
43
|
+
# B2 — the finished section is EVIDENCE_KIT_DONE_SECTION: a renamed one is stale-red, and a
|
|
44
|
+
# section merely named Done is live.
|
|
45
|
+
_done_cfg() {
|
|
46
|
+
local d="$tmp/done"; mkdir -p "$d/scripts"
|
|
47
|
+
printf 'EVIDENCE_KIT_DONE_SECTION = Shipped\n' >"$d/scripts/evidence-config.knobs"
|
|
48
|
+
printf '# fixture\nu a fail gone-task\nu b fail kept-task\n' >"$d/base.txt"
|
|
49
|
+
printf '## Done\n- kept-task\n## Shipped\n- gone-task\n' >"$d/queue.md"
|
|
50
|
+
( cd "$d" && unset EVIDENCE_KIT_KNOB_FILE \
|
|
51
|
+
&& gate_env GATE_SDK_GATES_DIR=scripts \
|
|
52
|
+
&& gate_run check-evidence-baseline "$DIR/checks" base.txt queue.md 2>&1 )
|
|
53
|
+
}
|
|
54
|
+
out="$(_done_cfg)"
|
|
55
|
+
if ! grep -qF "'gone-task' is a task under '## Shipped'" <<<"$out" || grep -qF "kept-task" <<<"$out"; then
|
|
56
|
+
echo " FAIL: done-section knob not honoured: $out"; fails=$((fails + 1))
|
|
57
|
+
fi
|
|
42
58
|
|
|
43
59
|
# C — a fail slug that resolves nowhere is red.
|
|
44
60
|
case_run "unknown-slug" \
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
# registered gate, and because what is under test is an argument grammar plus a
|
|
5
5
|
# refusal rather than a verdict over a tree.
|
|
6
6
|
#
|
|
7
|
-
# spec: evidence-kit/SPEC.md §bin/diff-baseline.sh — driven through the front end
|
|
8
|
-
#
|
|
9
|
-
# three behaviours the port ADDS, so they are asserted rather than carried over.
|
|
7
|
+
# spec: evidence-kit/SPEC.md §bin/diff-baseline.sh — driven through the front end, which is
|
|
8
|
+
# also where the `-h`/`--help` arm lives; cases G, H and I are the three argv-shape behaviours.
|
|
10
9
|
#
|
|
11
10
|
# The defect it pins: the tool used to hand the parser a hardcoded 0, so an
|
|
12
11
|
# exit-code suite reported pass for every log it was ever handed and the tool
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: evidence-kit/SPEC.md §Layout and configuration — a fixture suite's derived run member binds its door and its directories to the one working directory, so a binary run from a tree root that is not the repository's toplevel runs the suite there.
|
|
3
|
+
#
|
|
4
|
+
# Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
|
|
5
|
+
set -uo pipefail
|
|
6
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
7
|
+
|
|
8
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # evidence-kit/
|
|
9
|
+
SDK="$(cd "$DIR/../gate-sdk" && pwd)"
|
|
10
|
+
|
|
11
|
+
fails=0
|
|
12
|
+
tmp="$(mktemp -d)"
|
|
13
|
+
trap 'rm -rf "$tmp"' EXIT
|
|
14
|
+
|
|
15
|
+
# The tree root sits one directory below the toplevel, and its door is a relative pin, so a door
|
|
16
|
+
# bound to the toplevel names a path that does not exist.
|
|
17
|
+
p="$tmp/proj"
|
|
18
|
+
mkdir -p "$p/probe-kit/gate-tests" "$p/probe-kit/checks" "$p/scripts" "$p/.workflow" "$p/.tmp" "$p/bin"
|
|
19
|
+
git -C "$tmp" init -q . >/dev/null 2>&1
|
|
20
|
+
ln -s "$GATE_SDK_NATIVE_BIN" "$p/bin/cw"
|
|
21
|
+
printf '#!/usr/bin/env bash\ntouch "%s/ran"\n' "$tmp" >"$p/probe-kit/gate-tests/ok.test.sh"
|
|
22
|
+
printf 'GATE_SDK_KIT_DIRS = probe-kit\nGATE_SDK_NATIVE_BIN = bin/cw\n' >"$p/scripts/gate-sdk-config.knobs"
|
|
23
|
+
printf 'EVIDENCE_KIT_SUITES[] <- EVIDENCE_KIT_FIXTURE_SUITES\nEVIDENCE_KIT_RUN_ID = door-test\n' >"$p/scripts/evidence-config.knobs"
|
|
24
|
+
printf '# baseline\n' >"$p/.workflow/validate-baseline.txt"
|
|
25
|
+
printf '# contract: evidence-manifest v1\n' >"$p/.workflow/validate-evidence.txt"
|
|
26
|
+
|
|
27
|
+
prefix="$(git -C "$p" rev-parse --show-prefix 2>&1)"
|
|
28
|
+
if [[ "$prefix" != "proj/" ]]; then
|
|
29
|
+
echo " FAIL: the tree root must sit below its repository's toplevel, git answers prefix '$prefix'"; fails=$((fails + 1))
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
out="$( cd "$p" && env -u GATE_SDK_NATIVE_BIN -u GATE_SDK_TMP_DIR -u GATE_SDK_GATES_DIR -u GATE_SDK_KIT_DIRS \
|
|
33
|
+
GATE_SDK_ROOT="$SDK" GATE_SDK_KNOB_FILE=scripts/gate-sdk-config.knobs \
|
|
34
|
+
EVIDENCE_KIT_KNOB_FILE=scripts/evidence-config.knobs ./bin/cw --run-validate 2>&1 )"; rc=$?
|
|
35
|
+
if [[ "$rc" -ne 0 ]] || [[ "$out" != *"probe_kit -> clean"* ]]; then
|
|
36
|
+
echo " FAIL: the derived member did not run clean from a tree root below the toplevel (rc=$rc): $out"; fails=$((fails + 1))
|
|
37
|
+
fi
|
|
38
|
+
if [[ ! -e "$tmp/ran" ]]; then
|
|
39
|
+
echo " FAIL: the suite's unit test never ran, so the clean verdict is vacuous: $out"; fails=$((fails + 1))
|
|
40
|
+
fi
|
|
41
|
+
if ! grep -q '^door-test probe_kit .* verdict=clean ' "$p/.workflow/validate-evidence.txt"; then
|
|
42
|
+
echo " FAIL: no clean evidence line was folded: $(cat "$p/.workflow/validate-evidence.txt")"; fails=$((fails + 1))
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
46
|
+
echo "run-member-door.test: $fails assertion(s) failed"
|
|
47
|
+
exit 1
|
|
48
|
+
fi
|
|
49
|
+
echo "run-member-door.test: ok (a fixture suite's derived member runs through a relative door from a tree root below the toplevel)"
|
|
50
|
+
exit 0
|
|
@@ -5,15 +5,16 @@ A self-testing lint framework for the surfaces conventional linters ignore: mark
|
|
|
5
5
|
A **gate** is a small program checking one invariant across one or more governed surfaces. The kit ships the machinery that keeps a gate family honest:
|
|
6
6
|
|
|
7
7
|
- `lib/gate.sh` — the one sourced helper: the `fail_closed` wrapper (a crashed parser must never read as "clean"), the fixture-tree prune adapters, and the registry/resolution helpers.
|
|
8
|
-
- `bin/run-gates.sh` — the aggregate battery: every gate in your `gates.list`, one shot, per-gate timings. Two selectors narrow it without losing the knob files or the output contract: `--only <name>...` runs the gates you name (in registry order; an unregistered name is a refusal), and `--for <path>...` runs the gates coupling to the paths you name, exactly as the
|
|
8
|
+
- `bin/run-gates.sh` — the aggregate battery: every gate in your `gates.list`, one shot, per-gate timings. Two selectors narrow it without losing the knob files or the output contract: `--only <name>...` runs the gates you name (in registry order; an unregistered name is a refusal), and `--for <path>...` runs the gates coupling to the paths you name, exactly as the pre-commit hook would. On a native-Windows host with no bash on `PATH`, its PowerShell twin `bin/run-gates.ps1` takes the same arguments.
|
|
9
9
|
- the `--run-gate-tests` arm — the golden-fixture runner: every gate proves it accepts a `good/` case and rejects a `bad/` case with the right error text.
|
|
10
10
|
- the `--run-consumer-smoke` arm — the end-to-end check no fixture makes: builds a fresh scratch consumer, runs each vendored kit's `smoke/` installer, and asserts the battery is green under zero config (then red on each kit's crafted violation). Each kit ships a `smoke/` directory to join the party.
|
|
11
|
-
- the `--
|
|
11
|
+
- the `--run-config-variant` arm — rehearses a config change: runs the battery over a scratch copy of your tree as committed and again with the knob files in a directory you name, and prints each gate the change reds, greens or moves.
|
|
12
|
+
- the `--install-hooks` arm — places the `pre-commit` and `commit-msg` hooks in a clone, each the gate binary under the hook's name, which git starts with no shell; what a hook runs is read at commit from per-gate `# graph:` coupling manifests (`tier=precommit` vs `tier=commit-msg`), so adding a gate to a hook is manifest-only and hook membership cannot drift. A manifest's trigger reach is read with `--for`, never off the field ([SPEC.md §Reading a `couples=` field's reach](https://checkwright.dev/gate-sdk/SPEC#reading-a-couples-fields-reach)).
|
|
12
13
|
- `bin/build-native.sh` — the one spelling of the crate build for the binary substrate: resolves the crate from `GATE_SDK_NATIVE_CRATE`, passes trailing arguments to cargo (so a per-target build reuses it), and returns cargo's own exit code. Every reader of that command cites this script rather than copying it.
|
|
13
|
-
- `checks/` — the meta-gates that hold the family to its own standard: ShellCheck self-lint, the output contract, the fail-closed contract, fixture coverage, SPEC↔code assertion coupling, exemption-list hygiene, and manifest /
|
|
14
|
+
- `checks/` — the meta-gates that hold the family to its own standard: ShellCheck self-lint, the output contract, the fail-closed contract, fixture coverage, SPEC↔code assertion coupling, exemption-list hygiene, and manifest / graph-artifact freshness (`check-graph`).
|
|
14
15
|
- `templates/check-skeleton.sh` — the copy-paste skeleton a new gate starts from; `templates/gates-workflow.yml` — the CI workflow a consumer copies to `.github/workflows/gates.yml`; `templates/adopt.md` — the walk an agent follows after `init`: knobs fitted to your layout, first reds triaged.
|
|
15
16
|
|
|
16
|
-
Enforcement runs in three concentric tiers, each an outer backstop for the one inside it: the
|
|
17
|
+
Enforcement runs in three concentric tiers, each an outer backstop for the one inside it: the `pre-commit` hook, the local and bypassable inner tier; `run-gates.sh`'s pre-push full battery, whole-tree before the work leaves the machine; and the CI workflow, the server-side backstop that catches a `--no-verify` or a clone that never opted in. Only CI is a guarantee — see [SPEC.md §Enforcement tiers](https://checkwright.dev/gate-sdk/SPEC#enforcement-tiers) for the full definition, including the deferred hosted-attestation rung beyond these three (so CI cannot be edited away in the same change) that is out of scope here.
|
|
17
18
|
|
|
18
19
|
The design contracts, the manifest grammar, and each component's full contract live in [SPEC.md](https://checkwright.dev/gate-sdk/SPEC).
|
|
19
20
|
|
|
@@ -43,11 +44,10 @@ Then run these arms with the gate binary `GATE_SDK_NATIVE_BIN` names, where `ini
|
|
|
43
44
|
|
|
44
45
|
```sh
|
|
45
46
|
gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
|
|
46
|
-
"$gates" --emit git-hooks --write # generate the hooks
|
|
47
47
|
"$gates" --emit graph > scripts/CHECK-GRAPH.html # the coupling graph
|
|
48
48
|
"$gates" --emit enforcement-map > docs/enforcement.md # the enforcement map (regenerate on any class-registry change)
|
|
49
49
|
"$gates" --emit port-blockers --tree # the port report over the tracked shell tree
|
|
50
|
-
"$gates" --install-hooks #
|
|
50
|
+
"$gates" --install-hooks # place the hooks in this clone
|
|
51
51
|
|
|
52
52
|
"$gates" --run # the full battery
|
|
53
53
|
"$gates" --only check-graph # one gate's verdict
|
|
@@ -55,7 +55,7 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
|
|
|
55
55
|
"$gates" --run-gate-tests gate-sdk/gate-tests gate-sdk/checks # the kit's own tests
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
Write your first gate by copying `gate-sdk/templates/check-skeleton.sh` to `scripts/check-<area>.sh`, editing it, adding `check-<area>` to `scripts/gates.list`, and shipping a `scripts/gate-tests/check-<area>/{good,bad}/` fixture pair. The meta-gates will hold you to the rest.
|
|
58
|
+
Write your first gate by copying `gate-sdk/templates/check-skeleton.sh` to `scripts/check-<area>.sh`, editing it, adding `check-<area>` to `scripts/gates.list`, and shipping a `scripts/gate-tests/check-<area>/{good,bad}/` fixture pair. To write it in PowerShell, write a `scripts/check-<area>.gate` descriptor whose `# exec: check-<area>.ps1` line names the script `scripts/check-<area>.ps1` beside it, and set `GATE_SDK_POWERSHELL`; or let the `# exec:` line name a program you build, with no extension, such as a gate written in Rust ([SPEC.md §The gate-authoring surface](https://checkwright.dev/gate-sdk/SPEC#the-gate-authoring-surface)). The meta-gates will hold you to the rest.
|
|
59
59
|
|
|
60
60
|
## Gates
|
|
61
61
|
|
|
@@ -64,13 +64,12 @@ The [Quick start](#quick-start) registers the subset a new consumer begins with;
|
|
|
64
64
|
<!-- gate-roster:begin -->
|
|
65
65
|
```
|
|
66
66
|
check-shellcheck
|
|
67
|
+
check-psscriptanalyzer
|
|
67
68
|
check-gate-output
|
|
68
69
|
check-gate-fail-closed
|
|
69
70
|
check-gate-fixture-coverage
|
|
70
71
|
check-gate-assertions
|
|
71
72
|
check-gate-substrate-parity
|
|
72
|
-
check-gate-binary-fresh
|
|
73
|
-
check-crate-arms
|
|
74
73
|
check-install-disposition
|
|
75
74
|
check-test-hermetic
|
|
76
75
|
check-path-dialect
|
|
@@ -83,13 +82,10 @@ check-reads-couples
|
|
|
83
82
|
check-enforcement-fresh
|
|
84
83
|
check-kit-enum
|
|
85
84
|
check-kit-registration
|
|
86
|
-
check-kit-roots-dialect
|
|
87
85
|
check-readme-roster
|
|
88
|
-
check-packed-links
|
|
89
86
|
check-smoke-entry-guard
|
|
90
87
|
check-core-files
|
|
91
88
|
check-identity
|
|
92
|
-
check-hook-exec-bit
|
|
93
89
|
check-exec-bit
|
|
94
90
|
check-root-tiering
|
|
95
91
|
check-workflow-tiering
|
|
@@ -111,7 +107,7 @@ check-template-registry-parity
|
|
|
111
107
|
|
|
112
108
|
## Requirements
|
|
113
109
|
|
|
114
|
-
The toolchain contract is the table in [`docs/
|
|
110
|
+
The toolchain contract is the table in [`docs/requirements.md` §Installing and running the shipped gates](https://github.com/checkwright/checkwright/blob/master/docs/requirements.md#installing-and-running-the-shipped-gates), with the contributor's rows in `CONTRIBUTING.md`: the roster and each pinned floor. The constructs that force each floor are [installer/SPEC.md §Requirements](https://github.com/checkwright/checkwright/blob/master/installer/SPEC.md#requirements)'. `check-install-toolchain` holds both tables to `native/src/toolfloor.rs`, the roster's owner, so the requirement has one statement and no copy.
|
|
115
111
|
|
|
116
112
|
## License
|
|
117
113
|
|
|
@@ -51,20 +51,8 @@ command -v cargo >/dev/null 2>&1 || {
|
|
|
51
51
|
exit 2
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
# spec: gate-sdk/SPEC.md §build-native —
|
|
55
|
-
|
|
56
|
-
# home, so an unremapped binary ships the builder's home directory to every adopter.
|
|
57
|
-
BN_REMAP=()
|
|
58
|
-
for _bn_from in "${CARGO_HOME:-$HOME/.cargo}" "${HOME:-}"; do
|
|
59
|
-
# spec: gate-sdk/SPEC.md §build-native — a remap of `/` would rewrite every absolute path in
|
|
60
|
-
# the binary, so an empty or root prefix contributes no flag rather than a catastrophic one
|
|
61
|
-
[[ -n "$_bn_from" && "$_bn_from" != "/" ]] || continue
|
|
62
|
-
BN_REMAP+=("--remap-path-prefix=${_bn_from%/}=/builder")
|
|
63
|
-
done
|
|
64
|
-
unset _bn_from
|
|
65
|
-
# spec: gate-sdk/SPEC.md §build-native — appended to the caller's RUSTFLAGS rather than replacing
|
|
66
|
-
# them, or a caller passing its own flags would silently lose them to this one
|
|
67
|
-
RUSTFLAGS="${RUSTFLAGS:+$RUSTFLAGS }${BN_REMAP[*]}"
|
|
54
|
+
# spec: gate-sdk/SPEC.md §build-native — every cargo writer reads the library's build flags
|
|
55
|
+
RUSTFLAGS="$(gate_native_rustflags)"
|
|
68
56
|
export RUSTFLAGS
|
|
69
57
|
|
|
70
58
|
cargo build --release --manifest-path "$CRATE/Cargo.toml" "$@" || exit $?
|
|
@@ -124,3 +112,12 @@ if [[ ${#BN_PATFILES[@]} -gt 0 ]]; then
|
|
|
124
112
|
exit 2
|
|
125
113
|
fi
|
|
126
114
|
fi
|
|
115
|
+
|
|
116
|
+
# spec: gate-sdk/SPEC.md §build-native — a host build re-places an opted-in clone's hooks through
|
|
117
|
+
# the arm, never by linking them here; a cross build's artifact may not run on this host, and a
|
|
118
|
+
# failed refresh is named while the status stays cargo's
|
|
119
|
+
if [[ -z "$BN_TARGET" ]]; then
|
|
120
|
+
"$BN_ART" --install-hooks --refresh ||
|
|
121
|
+
echo "build-native: the placed git hooks could not be refreshed, so they stay on the previous build — run --install-hooks to re-place them." >&2
|
|
122
|
+
fi
|
|
123
|
+
exit 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env pwsh
|
|
2
2
|
# spec: gate-sdk/SPEC.md §run-gates — the PowerShell twin of bin/run-gates.sh, for a native-Windows host with no bash on PATH: the same residue in the same order, held to the stub by the executed comparison --run-front-end-parity rather than by reading
|
|
3
|
-
# no-port: gate-sdk/SPEC.md §run-gates, The front-end's port disposition — the stub's own per-file bootstrap cause: the front-end locates the binary it runs, which the binary cannot do for itself. It serves a harness
|
|
3
|
+
# no-port: gate-sdk/SPEC.md §run-gates, The front-end's port disposition — the stub's own per-file bootstrap cause: the front-end locates the binary it runs, which the binary cannot do for itself. It serves a harness value only a shell can run and a pre-build clone rather than an adopter door now, and neither audience leaves the binary able to answer for itself. Structural, not a sizing judgment.
|
|
4
4
|
#
|
|
5
5
|
# usage: run-gates.ps1 [gates-dir] | --only <name>... [-- <arg>...] | --for <path>... | --emit <arm> [args...] | -h | --help
|
|
6
6
|
# every arm, its refusals and the knobs print from the tool itself: run-gates.ps1 --help
|
|
@@ -9,7 +9,7 @@ Set-StrictMode -Version Latest
|
|
|
9
9
|
$ErrorActionPreference = 'Stop'
|
|
10
10
|
|
|
11
11
|
# spec: gate-sdk/SPEC.md §run-gates — the installer bootstrap's two pinned settings, on its ground: tokens reach the binary unrewritten, and the binary's non-zero status stays a status rather than a thrown exception
|
|
12
|
-
if (Test-Path Variable:PSNativeCommandArgumentPassing) {
|
|
12
|
+
if (Test-Path Variable:PSNativeCommandArgumentPassing) { Set-Variable -Name PSNativeCommandArgumentPassing -Value 'Standard' }
|
|
13
13
|
if (Test-Path Variable:PSNativeCommandUseErrorActionPreference) { $PSNativeCommandUseErrorActionPreference = $false }
|
|
14
14
|
|
|
15
15
|
# spec: gate-sdk/SPEC.md §run-gates — the stub's lines are UTF-8 with a bare LF, so they are written as those bytes rather than through a console encoding that differs per host
|
|
@@ -30,13 +30,152 @@ function Write-StubLine {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
$onWindows = [System.IO.Path]::DirectorySeparatorChar -eq '\'
|
|
33
|
-
$
|
|
33
|
+
$cmp = if ($onWindows) { [StringComparison]::OrdinalIgnoreCase } else { [StringComparison]::Ordinal }
|
|
34
|
+
$SDK =(Resolve-Path -LiteralPath (Join-Path $PSScriptRoot '..')).ProviderPath
|
|
35
|
+
|
|
36
|
+
# spec: gate-sdk/SPEC.md §run-gates — the stub's repository mark, held here as there: a non-empty GIT_DIR, or a .git entry at the working directory or above, the ascent stopping where GIT_CEILING_DIRECTORIES stops git's own, which ignores a relative entry
|
|
37
|
+
function Test-RepositoryMark {
|
|
38
|
+
if ($env:GIT_DIR) { return $true }
|
|
39
|
+
$ceilings = @()
|
|
40
|
+
if ($env:GIT_CEILING_DIRECTORIES) {
|
|
41
|
+
foreach ($c in $env:GIT_CEILING_DIRECTORIES.Split([System.IO.Path]::PathSeparator)) {
|
|
42
|
+
if ($c -cnotmatch '^([/\\]|[A-Za-z]:[/\\])') { continue }
|
|
43
|
+
$r = Resolve-Path -LiteralPath $c -ErrorAction SilentlyContinue
|
|
44
|
+
if ($r) { $ceilings += $r.ProviderPath.TrimEnd('\', '/') }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
$d = (Get-Location).ProviderPath
|
|
48
|
+
$n = 0
|
|
49
|
+
while ($d) {
|
|
50
|
+
if ($n -gt 0 -and ($ceilings -contains $d.TrimEnd('\', '/'))) { return $false }
|
|
51
|
+
if (Get-Item -LiteralPath (Join-Path $d '.git') -Force -ErrorAction SilentlyContinue) { return $true }
|
|
52
|
+
$d = Split-Path -Parent $d
|
|
53
|
+
$n++
|
|
54
|
+
}
|
|
55
|
+
return $false
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
# spec: gate-sdk/SPEC.md §lib/gate.sh — an entry of any type, a dangling link included, which Get-Item does not report on every host
|
|
59
|
+
function Test-Entry {
|
|
60
|
+
param([string] $Path)
|
|
61
|
+
if (Get-Item -LiteralPath $Path -Force -ErrorAction SilentlyContinue) { return $true }
|
|
62
|
+
try {
|
|
63
|
+
$fi = New-Object System.IO.FileInfo($Path)
|
|
64
|
+
if ($fi.Exists -or [System.IO.Directory]::Exists($Path)) { return $true }
|
|
65
|
+
$lt = $fi.PSObject.Properties['LinkTarget']
|
|
66
|
+
if ($lt -and $lt.Value) { return $true }
|
|
67
|
+
} catch { return $false }
|
|
68
|
+
return $false
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
# spec: gate-sdk/SPEC.md §run-gates — a git directory's physical path, every symbolic link and junction on it resolved one component at a time before a `..` past it is taken, which the stub's `cd … && pwd -P` and the crate's canonicalize compare and Resolve-Path, folding a `..` lexically and following no link, does not; $null where it does not resolve
|
|
72
|
+
function Resolve-GitDir {
|
|
73
|
+
param([string] $Path)
|
|
74
|
+
if (-not $Path) { return $null }
|
|
75
|
+
$seps = [char[]]@([System.IO.Path]::DirectorySeparatorChar, [System.IO.Path]::AltDirectorySeparatorChar)
|
|
76
|
+
$base = (Get-Location).ProviderPath
|
|
77
|
+
try {
|
|
78
|
+
$full = if ([System.IO.Path]::IsPathRooted($Path)) { $Path } else { $base + [System.IO.Path]::DirectorySeparatorChar + $Path }
|
|
79
|
+
$root = [System.IO.Path]::GetPathRoot($full)
|
|
80
|
+
} catch { return $null }
|
|
81
|
+
$cur = if ($root.TrimEnd($seps)) { $root } else { [System.IO.Path]::GetPathRoot($base) }
|
|
82
|
+
$todo = New-Object 'System.Collections.Generic.List[string]'
|
|
83
|
+
$todo.AddRange([string[]] $full.Substring($root.Length).Split($seps, [StringSplitOptions]::RemoveEmptyEntries))
|
|
84
|
+
$hops = 0
|
|
85
|
+
while ($todo.Count -gt 0) {
|
|
86
|
+
$name = $todo[0]
|
|
87
|
+
$todo.RemoveAt(0)
|
|
88
|
+
if ($name -ceq '.') { continue }
|
|
89
|
+
if ($name -ceq '..') {
|
|
90
|
+
$up = Split-Path -Parent $cur
|
|
91
|
+
if ($up) { $cur = $up }
|
|
92
|
+
continue
|
|
93
|
+
}
|
|
94
|
+
$next = Join-Path $cur $name
|
|
95
|
+
$item = Get-Item -LiteralPath $next -Force -ErrorAction SilentlyContinue
|
|
96
|
+
if (-not $item) { return $null }
|
|
97
|
+
$kind = $item.PSObject.Properties['LinkType']
|
|
98
|
+
if ($kind -and (@('SymbolicLink', 'Junction') -ccontains [string] $kind.Value)) {
|
|
99
|
+
$hops++
|
|
100
|
+
if ($hops -gt 40) { return $null }
|
|
101
|
+
$target = [string] (@($item.Target) | Select-Object -First 1)
|
|
102
|
+
if (-not $target) { return $null }
|
|
103
|
+
$root = ''
|
|
104
|
+
if ([System.IO.Path]::IsPathRooted($target)) {
|
|
105
|
+
$root = [System.IO.Path]::GetPathRoot($target)
|
|
106
|
+
$cur = $root
|
|
107
|
+
}
|
|
108
|
+
$todo.InsertRange(0, [string[]] $target.Substring($root.Length).Split($seps, [StringSplitOptions]::RemoveEmptyEntries))
|
|
109
|
+
continue
|
|
110
|
+
}
|
|
111
|
+
$cur = $next
|
|
112
|
+
}
|
|
113
|
+
return $cur.TrimEnd($seps)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
# spec: gate-sdk/SPEC.md §lib/gate.sh — gate_skipped_mark, re-held here because the library is bash
|
|
117
|
+
function Get-SkippedMark {
|
|
118
|
+
param([string] $Top, [string] $Prefix)
|
|
119
|
+
if ($env:GIT_DIR) { return $null }
|
|
120
|
+
$runs = @($Prefix.Split('/') | Where-Object { $_ })
|
|
121
|
+
for ($n = $runs.Count; $n -ge 1; $n--) {
|
|
122
|
+
$run = ($runs[0..($n - 1)]) -join '/'
|
|
123
|
+
$mark = "$Top/$run/.git"
|
|
124
|
+
if (-not (Test-Entry $mark)) { continue }
|
|
125
|
+
$target = $mark
|
|
126
|
+
if (Test-Path -LiteralPath $mark -PathType Leaf) {
|
|
127
|
+
$target = $null
|
|
128
|
+
$line = @(Get-Content -LiteralPath $mark -TotalCount 1 -ErrorAction SilentlyContinue)
|
|
129
|
+
if ($line.Count -gt 0 -and ([string] $line[0]).StartsWith('gitdir: ')) {
|
|
130
|
+
$target = ([string] $line[0]).Substring(8)
|
|
131
|
+
if ($target -cnotmatch '^([/\\]|[A-Za-z]:[/\\])') { $target = "$Top/$run/$target" }
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
$selected = $null
|
|
135
|
+
try { $selected = Resolve-GitDir ([string] (& git rev-parse --absolute-git-dir 2>$null)) } catch { $selected = $null }
|
|
136
|
+
$resolved = if ($target) { Resolve-GitDir $target } else { $null }
|
|
137
|
+
if ($selected -and $resolved -and [string]::Equals($selected, $resolved, $cmp)) { return $null }
|
|
138
|
+
return $mark
|
|
139
|
+
}
|
|
140
|
+
return $null
|
|
141
|
+
}
|
|
34
142
|
|
|
143
|
+
# spec: gate-sdk/SPEC.md §run-gates — the stub's fail-open set on its one declaration line, held to the crate by check-front-end-fail-open and read off the leading token before the lookup and the grammar below
|
|
144
|
+
$argv = @($args)
|
|
145
|
+
$lead = if ($argv.Count -gt 0) { [string] $argv[0] } else { '' }
|
|
146
|
+
$unavailable = 2
|
|
147
|
+
$FailOpenArms = @('--hook', '--statusline')
|
|
148
|
+
if ($FailOpenArms -ccontains $lead) { $unavailable = 0 }
|
|
149
|
+
|
|
150
|
+
# spec: gate-sdk/SPEC.md §The harness-integration arm — a tree whose repository git refuses or skips runs no binary, so a fail-open arm declines there as on an absent binary
|
|
151
|
+
function Exit-Refused {
|
|
152
|
+
param([string] $Line)
|
|
153
|
+
Write-StubError $Line
|
|
154
|
+
if ($lead -ceq '--hook') {
|
|
155
|
+
Write-StubLine -Text '{"systemMessage":"run-gates: git refuses or skips the repository this session stands in, so every hook guard in this tree is off and each guarded call is allowed. git status prints its reason, or git --git-dir=<that .git> status for a skipped one"}'
|
|
156
|
+
}
|
|
157
|
+
exit $unavailable
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
# spec: gate-sdk/SPEC.md §run-gates — the one lookup, split as the crate splits it (§The crate's crosser); the mark test runs before the directory changes
|
|
161
|
+
$answer = $null
|
|
162
|
+
try { $answer = @(& git rev-parse --show-toplevel --show-prefix 2>$null) } catch { $answer = $null }
|
|
163
|
+
if ($answer -and $LASTEXITCODE -ne 0) { $answer = $null }
|
|
35
164
|
$top = $null
|
|
36
|
-
|
|
165
|
+
if ($answer) {
|
|
166
|
+
$text = $answer -join "`n"
|
|
167
|
+
$at = $text.IndexOf("`n")
|
|
168
|
+
$top = if ($at -ge 0) { $text.Substring(0, $at) } else { $text }
|
|
169
|
+
$prefix = if ($at -ge 0) { $text.Substring($at + 1).TrimEnd("`n") } else { '' }
|
|
170
|
+
if ($top -and (Get-SkippedMark -Top $top -Prefix $prefix)) {
|
|
171
|
+
Exit-Refused 'run-gates: git skipped the repository a .git entry marks between here and the toplevel it answered, and answered the enclosing one; git --git-dir=<that .git> status prints its reason'
|
|
172
|
+
}
|
|
173
|
+
}
|
|
37
174
|
if (-not $top -or -not (Test-Path -LiteralPath $top -PathType Container)) {
|
|
38
|
-
|
|
39
|
-
|
|
175
|
+
if (Test-RepositoryMark) {
|
|
176
|
+
Exit-Refused 'run-gates: git refuses the repository marked here (GIT_DIR, or a .git entry here or above); git status prints its reason'
|
|
177
|
+
}
|
|
178
|
+
Exit-Refused 'run-gates: not inside a git repository'
|
|
40
179
|
}
|
|
41
180
|
Set-Location -LiteralPath $top
|
|
42
181
|
$here = (Get-Location).ProviderPath
|
|
@@ -44,7 +183,6 @@ $here = (Get-Location).ProviderPath
|
|
|
44
183
|
|
|
45
184
|
# spec: gate-sdk/SPEC.md §Layout and configuration — the gate-sdk root locator, relative when the root lies under the repository root, as the stub exports it
|
|
46
185
|
$sep = [System.IO.Path]::DirectorySeparatorChar
|
|
47
|
-
$cmp = if ($onWindows) { [StringComparison]::OrdinalIgnoreCase } else { [StringComparison]::Ordinal }
|
|
48
186
|
$prefix = $here.TrimEnd($sep) + $sep
|
|
49
187
|
if ($SDK.StartsWith($prefix, $cmp)) {
|
|
50
188
|
$env:GATE_SDK_ROOT = $SDK.Substring($prefix.Length).Replace('\', '/')
|
|
@@ -73,13 +211,14 @@ function Get-KnobFileValue {
|
|
|
73
211
|
return $null
|
|
74
212
|
}
|
|
75
213
|
|
|
76
|
-
# spec: gate-sdk/SPEC.md §lib/gate.sh — _gate_prebinary_knob: the environment, the local overlay, the tracked file or GATE_SDK_KNOB_FILE, then the default; an empty value at any tier falls through
|
|
214
|
+
# spec: gate-sdk/SPEC.md §lib/gate.sh — _gate_prebinary_knob: the environment, the local overlay or GATE_SDK_LOCAL_KNOB_FILE, the tracked file or GATE_SDK_KNOB_FILE, then the default; an empty value at any tier falls through
|
|
77
215
|
function Get-PrebinaryKnob {
|
|
78
216
|
param([string] $Name, [string] $Default)
|
|
79
217
|
$v = [Environment]::GetEnvironmentVariable($Name)
|
|
80
218
|
if ($v) { return $v }
|
|
81
219
|
$dir = Get-GatesDir
|
|
82
|
-
$
|
|
220
|
+
$local = if ($env:GATE_SDK_LOCAL_KNOB_FILE) { $env:GATE_SDK_LOCAL_KNOB_FILE } else { "$dir/gate-sdk-config.local.knobs" }
|
|
221
|
+
$v = Get-KnobFileValue -File $local -Name $Name
|
|
83
222
|
if ($v) { return $v }
|
|
84
223
|
$tracked = if ($env:GATE_SDK_KNOB_FILE) { $env:GATE_SDK_KNOB_FILE } else { "$dir/gate-sdk-config.knobs" }
|
|
85
224
|
$v = Get-KnobFileValue -File $tracked -Name $Name
|
|
@@ -98,13 +237,6 @@ function Get-NativeBinSpelled {
|
|
|
98
237
|
# spec: gate-sdk/SPEC.md §lib/gate.sh — gate_exe_suffix's host half
|
|
99
238
|
$exeSuffix = if ($onWindows) { '.exe' } else { '' }
|
|
100
239
|
|
|
101
|
-
# spec: gate-sdk/SPEC.md §run-gates — the stub's fail-open set on its one declaration line, held to the crate by check-front-end-fail-open and read off the leading token before the grammar below rewrites it
|
|
102
|
-
$argv = @($args)
|
|
103
|
-
$lead = if ($argv.Count -gt 0) { [string] $argv[0] } else { '' }
|
|
104
|
-
$unavailable = 2
|
|
105
|
-
$FailOpenArms = @('--hook', '--statusline')
|
|
106
|
-
if ($FailOpenArms -ccontains $lead) { $unavailable = 0 }
|
|
107
|
-
|
|
108
240
|
# spec: gate-sdk/SPEC.md §run-gates — the stub's residual argv grammar, case for case
|
|
109
241
|
switch -CaseSensitive -Regex ($lead) {
|
|
110
242
|
'^(-h|--help)$' { $argv = @('--run') + $argv; break }
|
|
@@ -129,14 +261,6 @@ function Test-Runnable {
|
|
|
129
261
|
return $true
|
|
130
262
|
}
|
|
131
263
|
|
|
132
|
-
function Resolve-GitDir {
|
|
133
|
-
param([string] $Path)
|
|
134
|
-
if (-not $Path) { return $null }
|
|
135
|
-
$r = Resolve-Path -LiteralPath $Path -ErrorAction SilentlyContinue
|
|
136
|
-
if (-not $r) { return $null }
|
|
137
|
-
return $r.ProviderPath.TrimEnd([char[]]@('/', '\'))
|
|
138
|
-
}
|
|
139
|
-
|
|
140
264
|
# spec: gate-sdk/SPEC.md §lib/gate.sh — _gate_main_checkout_bin: inside a linked worktree whose common dir is <main>/.git, the main checkout's own resolution of the knob, rooted; $null otherwise
|
|
141
265
|
function Get-MainCheckoutBin {
|
|
142
266
|
param([string] $Default)
|
|
@@ -194,6 +318,7 @@ function Get-SourceStamp {
|
|
|
194
318
|
|
|
195
319
|
# spec: gate-sdk/SPEC.md §lib/gate.sh — gate_verdict_bin's linked-worktree half: the main checkout's binary linked into the door path when the door is gitignored and, in a tree carrying crate source, its source stamp is the tree's; never a build. Returns the refused condition, or $null once the door runs
|
|
196
320
|
function Resolve-VerdictLink {
|
|
321
|
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingEmptyCatchBlock', '', Justification = 'a failed directory, link or copy is read by the Test-Runnable that follows, which names the failure')]
|
|
197
322
|
param([string] $Default, [string] $Door, [string] $DoorExe)
|
|
198
323
|
$mainBin = Get-MainCheckoutBin -Default $Default
|
|
199
324
|
if (-not $mainBin) { return '' }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# spec: gate-sdk/SPEC.md §run-gates — the battery front-end, reduced to its residue: resolve the repo root, locate the binary, export the gate-sdk root locator, exec the binary. The argument grammar, the usage text, the selectors, the dispatch and the output contract are all the binary's `--run` arm's.
|
|
3
|
-
# no-port: gate-sdk/SPEC.md §run-gates, The front-end's port disposition — this is the residue that stub cut left, and it stays shell on a per-file bootstrap cause: the front-end locates the binary it executes, which the binary cannot do for itself. It serves a harness
|
|
3
|
+
# no-port: gate-sdk/SPEC.md §run-gates, The front-end's port disposition — this is the residue that stub cut left, and it stays shell on a per-file bootstrap cause: the front-end locates the binary it executes, which the binary cannot do for itself. It serves a harness value only a shell can run and a pre-build clone rather than an adopter door now, and neither audience leaves the binary able to answer for itself. Structural, not a sizing judgment.
|
|
4
4
|
#
|
|
5
5
|
# usage: run-gates.sh [gates-dir] | --only <name>... [-- <arg>...] | --for <path>... | --emit <arm> [args...] | --pack-installer [--version <semver>] [--out <dir>] [--artifacts <dir>] [--root <dir>] | -h | --help
|
|
6
6
|
# every arm, its refusals and the knobs print from the tool itself: run-gates.sh --help
|
|
@@ -11,10 +11,62 @@ SDK="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
|
11
11
|
# shellcheck source=../lib/gate.sh
|
|
12
12
|
source "$SDK/lib/gate.sh"
|
|
13
13
|
|
|
14
|
-
# spec: gate-sdk/SPEC.md §run-gates — the
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
# spec: gate-sdk/SPEC.md §run-gates — the crosser's repository mark, held here because the crate runs after this stub's cd: a non-empty GIT_DIR, or a .git entry at the physical working directory or above, the ascent stopping where GIT_CEILING_DIRECTORIES stops git's own, which ignores a relative entry
|
|
15
|
+
_run_gates_marked() {
|
|
16
|
+
[[ -n "${GIT_DIR:-}" ]] && return 0
|
|
17
|
+
local sep=: d c n=0
|
|
18
|
+
local -a ceil=()
|
|
19
|
+
case "${OSTYPE:-}" in msys* | cygwin* | win32*) sep=';' ;; esac
|
|
20
|
+
IFS="$sep" read -r -a ceil <<<"${GIT_CEILING_DIRECTORIES:-}"
|
|
21
|
+
d="$(pwd -P)"
|
|
22
|
+
while :; do
|
|
23
|
+
if ((n > 0)); then
|
|
24
|
+
for c in "${ceil[@]}"; do
|
|
25
|
+
gate_path_rooted "$c" && [[ "$d" == "$(cd -P "$c" 2>/dev/null && pwd -P)" ]] && return 1
|
|
26
|
+
done
|
|
27
|
+
fi
|
|
28
|
+
[[ -e "$d/.git" || -L "$d/.git" ]] && return 0
|
|
29
|
+
[[ -z "$d" || "$d" == / ]] && return 1
|
|
30
|
+
d="$(dirname "$d")"
|
|
31
|
+
n=$((n + 1))
|
|
32
|
+
done
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
# spec: gate-sdk/SPEC.md §run-gates — the one piece of per-arm knowledge the stub keeps, the fail-open set on one declaration line check-front-end-fail-open holds to the crate's FAIL_OPEN_ARMS: the unavailable status is read on precisely the paths where no binary runs, so it cannot be asked of the binary that would report it
|
|
36
|
+
ARM_UNAVAILABLE_STATUS=2
|
|
37
|
+
FAIL_OPEN_ARMS='--hook --statusline'
|
|
38
|
+
for arm in $FAIL_OPEN_ARMS; do
|
|
39
|
+
if [[ "${1-}" == "$arm" ]]; then
|
|
40
|
+
ARM_UNAVAILABLE_STATUS=0
|
|
41
|
+
fi
|
|
42
|
+
done
|
|
43
|
+
|
|
44
|
+
# spec: gate-sdk/SPEC.md §The harness-integration arm — a tree whose repository git refuses or skips runs no binary, so a fail-open arm declines there as on an absent binary
|
|
45
|
+
_run_gates_refuse() { # <line> <leading arm>
|
|
46
|
+
echo "$1" >&2
|
|
47
|
+
if [[ "$2" == --hook ]]; then
|
|
48
|
+
printf '%s\n' '{"systemMessage":"run-gates: git refuses or skips the repository this session stands in, so every hook guard in this tree is off and each guarded call is allowed. git status prints its reason, or git --git-dir=<that .git> status for a skipped one"}'
|
|
49
|
+
fi
|
|
50
|
+
exit "$ARM_UNAVAILABLE_STATUS"
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
# spec: gate-sdk/SPEC.md §run-gates — the refusal is the stub's own line alone. The one lookup splits as the crate splits it (§The crate's crosser), and a failed one hands `cd` a path that is never a directory rather than an empty one: bash before 5.3 takes `cd ""` as a silent success
|
|
54
|
+
# spec: gate-sdk/SPEC.md §The path-dialect contract — recorded verdict: the toplevel is only opened, by the mark test and the cd, never compared or composed as a string
|
|
55
|
+
if answer="$(git rev-parse --show-toplevel --show-prefix 2>/dev/null)" && [[ -n "$answer" ]]; then
|
|
56
|
+
top="${answer%%$'\n'*}"
|
|
57
|
+
prefix=''
|
|
58
|
+
[[ "$answer" == *$'\n'* ]] && prefix="${answer#*$'\n'}"
|
|
59
|
+
if gate_skipped_mark "$top" "$prefix" >/dev/null; then
|
|
60
|
+
_run_gates_refuse "run-gates: git skipped the repository a .git entry marks between here and the toplevel it answered, and answered the enclosing one; git --git-dir=<that .git> status prints its reason" "${1-}"
|
|
61
|
+
fi
|
|
62
|
+
else
|
|
63
|
+
top=/dev/null
|
|
64
|
+
fi
|
|
65
|
+
cd "$top" 2>/dev/null || {
|
|
66
|
+
if _run_gates_marked; then
|
|
67
|
+
_run_gates_refuse "run-gates: git refuses the repository marked here (GIT_DIR, or a .git entry here or above); git status prints its reason" "${1-}"
|
|
68
|
+
fi
|
|
69
|
+
_run_gates_refuse "run-gates: not inside a git repository" "${1-}"
|
|
18
70
|
}
|
|
19
71
|
|
|
20
72
|
# spec: gate-sdk/SPEC.md §Layout and configuration — the gate-sdk root locator, exported from this front-end's own location so every arm reaches the exact root
|
|
@@ -25,7 +77,6 @@ else
|
|
|
25
77
|
fi
|
|
26
78
|
|
|
27
79
|
# spec: gate-sdk/SPEC.md §run-gates — the binary located and exec'd with the environment this process already carries. $ARM_UNAVAILABLE_STATUS is the status a *dispatch* failure exits — 2 for every arm whose verdict a battery or a session reads, 0 for a harness-integration arm gating a user action, which §The non-gate arm rules must decline rather than wedge the session
|
|
28
|
-
ARM_UNAVAILABLE_STATUS=2
|
|
29
80
|
exec_arm() {
|
|
30
81
|
local bin why=''
|
|
31
82
|
if [[ "$ARM_UNAVAILABLE_STATUS" -eq 0 ]]; then
|
|
@@ -49,14 +100,6 @@ exec_arm() {
|
|
|
49
100
|
exec "$bin" "$@"
|
|
50
101
|
}
|
|
51
102
|
|
|
52
|
-
# spec: gate-sdk/SPEC.md §run-gates — the one piece of per-arm knowledge the stub keeps, the fail-open set on one declaration line check-front-end-fail-open holds to the crate's FAIL_OPEN_ARMS: the unavailable status is read on precisely the path where the binary is absent, so it cannot be asked of the binary that would report it
|
|
53
|
-
FAIL_OPEN_ARMS='--hook --statusline'
|
|
54
|
-
for arm in $FAIL_OPEN_ARMS; do
|
|
55
|
-
if [[ "${1-}" == "$arm" ]]; then
|
|
56
|
-
ARM_UNAVAILABLE_STATUS=0
|
|
57
|
-
fi
|
|
58
|
-
done
|
|
59
|
-
|
|
60
103
|
# spec: gate-sdk/SPEC.md §run-gates — the residual argv grammar, and the whole of it: the *gates-dir positional* is the one token the crate cannot tell from a gate name, so the front-end resolves it and spells it `--gates-dir`. Every other form of the battery's own grammar — the two selectors, the help request, the `--` escape and every refusal — travels to the `--run` arm untouched, and every other leading token is an arm name the crate's own parser normalizes
|
|
61
104
|
case "${1-}" in
|
|
62
105
|
-h | --help)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
# graph: couples=knob:GATE_SDK_GATES_DIR/msg-patterns.list dir=one valve=none tier=commit-msg
|
|
2
|
-
# install:
|
|
2
|
+
# install: on-surface
|
|
3
3
|
# armed-by: content GATE_SDK_MSG_PATTERN_FILES GATE_SDK_MSG_PATTERN_FILES_LOCAL
|
|
4
4
|
# spec: gate-sdk/SPEC.md §check-commit-msg — the commit message matches no banned pattern (the leak guard for the message surface the pre-commit hook never sees)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# graph: couples=knob:GATE_SDK_GATES_DIR/gates.list,kit:checks/*,gate-sdk/SPEC.md,kit:SPEC.md,native/*,.github/workflows/publish.yml,knob:GATE_SDK_GATES_DIR/*.sh,kit:*.sh dir=one valve=none tier=precommit
|
|
1
|
+
# graph: couples=knob:GATE_SDK_GATES_DIR/gates.list,kit:checks/*,gate-sdk/SPEC.md,kit:SPEC.md,native/*,.github/workflows/publish.yml,knob:GATE_SDK_GATES_DIR/*.sh,kit:*.sh,knob:GATE_SDK_GATES_DIR/*.gate,knob:GATE_SDK_GATES_DIR/*.ps1 dir=one valve=none tier=precommit
|
|
2
2
|
# install: on-surface
|
|
3
3
|
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — one declaration per member, descriptor/subcommand parity both ways, a recorded disposition for every substrate-sensitive member, no implementation source inside the vendoring set, and one owner for the target roster the artifact path derives from
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# graph: couples=knob:GATE_SDK_GATES_DIR/gates.list,knob:GATE_SDK_GATES_DIR/*.sh,kit:*.sh,knob:
|
|
2
|
-
# projection: knob:GATE_SDK_GRAPH_ARTIFACT
|
|
1
|
+
# graph: couples=knob:GATE_SDK_GATES_DIR/gates.list,knob:GATE_SDK_GATES_DIR/*.sh,kit:*.sh,knob:GATE_SDK_GRAPH_ARTIFACT,knob:GATE_SDK_GRAPH_THEME_DIR/*,knob:GATE_SDK_GATES_DIR/*-config.knobs,*SPEC-*.md,kit:templates/SPEC-*.md,knob:GATE_SDK_GRAPH_VOCAB dir=one valve=none tier=precommit
|
|
2
|
+
# projection: knob:GATE_SDK_GRAPH_ARTIFACT
|
|
3
3
|
# install: zero-config
|
|
4
4
|
# spec: gate-sdk/SPEC.md §check-graph — manifest well-formedness, trigger parity, cycle valves, artifact drift, and amendment-body manifest validation (assertion G); the emitter is native/src/emit/graph.rs, reached in process rather than spawned
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# graph: couples=kit:checks/check-*.sh,kit:checks/check-*.gate,kit:smoke/install.sh,
|
|
1
|
+
# graph: couples=kit:checks/check-*.sh,kit:checks/check-*.gate,kit:smoke/install.sh,knob:GATE_SDK_NATIVE_SRC/installer/recipe.rs dir=one valve=none tier=precommit
|
|
2
2
|
# install: zero-config
|
|
3
3
|
# spec: gate-sdk/SPEC.md §check-install-disposition — every shipped gate declares one install disposition, every zero-config gate is registrable in its kit's smoke, and the installer keeps no second copy of the roster
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# graph: couples=knob:GATE_SDK_GATES_DIR/*.sh,kit:*.sh,kit:bin/*.sh,kit:lib/*.sh,kit:checks/*.sh,kit:templates/*.sh,native/src/*.rs,native/src/gates/*.rs dir=one valve=none tier=precommit trigger=*
|
|
2
|
-
# install:
|
|
2
|
+
# install: on-surface
|
|
3
3
|
# spec: gate-sdk/SPEC.md §check-path-dialect — every platform-native path producer in the tracked shell tree and the crate converts at its own point of production, or records the verdict at the site; every text-level path primitive in the crate is the speller's, or declares its value out of the filesystem namespace, and every shell absoluteness test in the tree asks gate_path_rooted
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# graph: couples=knob:GATE_SDK_GATES_DIR/*.ps1,knob:GATE_SDK_TESTS_DIR/*.ps1,kit:*.ps1,knob:GATE_SDK_LINT_EXTRA_DIRS/*.ps1,knob:GATE_SDK_GATES_DIR/*.gate dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# armed-by: GATE_SDK_POWERSHELL
|
|
4
|
+
# spec: gate-sdk/SPEC.md §check-psscriptanalyzer — PSScriptAnalyzer lint of the PowerShell family at Warning and above (the self-lint contract)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# graph: couples=knob:GATE_SDK_GATES_DIR/*.sh,kit:*.sh dir=one valve=none tier=precommit
|
|
1
|
+
# graph: couples=knob:GATE_SDK_GATES_DIR/*.sh,knob:GATE_SDK_TESTS_DIR/*.sh,kit:*.sh,knob:GATE_SDK_LINT_EXTRA_DIRS/*.sh dir=one valve=none tier=precommit
|
|
2
2
|
# install: on-surface
|
|
3
3
|
# spec: gate-sdk/SPEC.md §check-shellcheck — ShellCheck lint of the gate family at -S warning (the self-lint contract)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# graph: couples
|
|
1
|
+
# graph: couples=kit:templates/*.sh,knob:GATE_SDK_GATES_DIR/*.sh dir=bi valve=none tier=precommit
|
|
2
2
|
# install: on-surface
|
|
3
3
|
# spec: gate-sdk/SPEC.md §check-template-copy-parity — a kit template and its vendored consumer copy agree on their declared contract surface, with copy-side additions declared
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
# graph: couples=knob:GATE_SDK_GATES_DIR/msg-patterns.list dir=one valve=none tier=precommit trigger=*
|
|
2
|
-
# install:
|
|
2
|
+
# install: on-surface
|
|
3
3
|
# armed-by: content GATE_SDK_MSG_PATTERN_FILES GATE_SDK_MSG_PATTERN_FILES_LOCAL
|
|
4
4
|
# spec: gate-sdk/SPEC.md §check-tree-terms — no tracked file matches the banned-pattern set (the tracked-files half of the leak guard; the pattern files and their templates are self-exempt)
|