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,148 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# spec: context-kit/SPEC.md §The session-context hook (template) — consumer-copy SessionStart hook; assembles the session brief, every step guarded, never fails a session
|
|
3
|
-
# no-port: gate-sdk/SPEC.md §The harness-template port disposition — the class ruling, reached by ground rather than by scope: this file carries an [EDIT ME] gap at every layout-judgment step (tool paths, the dirty-surface pre-run, the stage-conditioned nudges, the index footer), and context-kit/README.md tells an adopter to edit them as layout judgment rather than mechanism. The gaps ARE the extension point, so porting the file leaves an adopter nothing to fill. Structural, not a sizing judgment.
|
|
4
|
-
|
|
5
|
-
set -uo pipefail
|
|
6
|
-
|
|
7
|
-
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" 2>/dev/null || exit 0
|
|
8
|
-
REPO_ROOT="$(pwd -P)"
|
|
9
|
-
|
|
10
|
-
# spec: context-kit/SPEC.md §The session-context hook — consumer layout: the vendored gate-sdk library and a governed queue file, retarget to yours [EDIT ME]. The queue index and the three index arms are arms of the gate binary GATE_SDK_NATIVE_BIN names, spelled as a command by gate-sdk's own accessor; this hook already runs at the git toplevel, where each arm reads a consumer's section and cap overrides itself (gate-sdk/SPEC.md §The non-gate arm). The library is sourced rather than subshelled because it defines functions and runs nothing, so no read of it can fail a session.
|
|
11
|
-
NATIVE_BIN=""
|
|
12
|
-
# shellcheck source=/dev/null
|
|
13
|
-
[[ -f gate-sdk/lib/gate.sh ]] && source gate-sdk/lib/gate.sh
|
|
14
|
-
declare -F gate_native_bin_spelled >/dev/null && NATIVE_BIN="$(gate_native_bin_spelled)"
|
|
15
|
-
DRIFT_ARM="${CONTEXT_KIT_DRIFT_REPORT:-}"
|
|
16
|
-
STAGE_RULES="${CONTEXT_KIT_STAGE_RULES:-}"
|
|
17
|
-
STATE_FILE="${CONTEXT_KIT_STATE_FILE:-${GATE_SDK_WORKFLOW_DIR:-.workflow}/WORKFLOW-STATE.txt}"
|
|
18
|
-
|
|
19
|
-
echo "── Session context (context-kit session-context hook) ──────────────────"
|
|
20
|
-
echo
|
|
21
|
-
|
|
22
|
-
# spec: context-kit/SPEC.md §The session-context hook — step 1 queue index
|
|
23
|
-
# spec: context-kit/SPEC.md §The session-context hook — the stage cursor is the state file's last data line; read from a named file, never stdin, which the session-role signal below consumes exactly once. An absent file or one with no data line yields empty, which falls to the branch every non-close, non-scope stage already takes.
|
|
24
|
-
stage=""
|
|
25
|
-
if [[ -f "$STATE_FILE" ]]; then
|
|
26
|
-
marker=""
|
|
27
|
-
while IFS= read -r line || [[ -n "$line" ]]; do
|
|
28
|
-
if [[ "$line" =~ ^---[[:space:]]*$ ]]; then marker=1; stage=""; continue; fi
|
|
29
|
-
read -r f1 f2 _ <<< "$line"
|
|
30
|
-
[[ -n "$marker" && -n "${f1:-}" ]] && stage="${f2:-}"
|
|
31
|
-
done 2>/dev/null < "$STATE_FILE"
|
|
32
|
-
fi
|
|
33
|
-
if [[ -x "$NATIVE_BIN" ]]; then
|
|
34
|
-
if [[ "$stage" == close || "$stage" == scope ]]; then
|
|
35
|
-
"$NATIVE_BIN" --emit queue-index 2>/dev/null || echo "(queue-index unavailable)"
|
|
36
|
-
else
|
|
37
|
-
"$NATIVE_BIN" --emit queue-index --collapse-deferred 2>/dev/null || echo "(queue-index unavailable)"
|
|
38
|
-
fi
|
|
39
|
-
echo
|
|
40
|
-
fi
|
|
41
|
-
|
|
42
|
-
# spec: context-kit/SPEC.md §The session-context hook — step 2 dirty-surface pre-run; component detection + index command are layout assumptions [EDIT ME]
|
|
43
|
-
mapfile -t changed < <(
|
|
44
|
-
git status --porcelain 2>/dev/null \
|
|
45
|
-
| while read -r l; do p="${l##* }"; [[ "$p" == */* && -d "${p%%/*}/src" ]] && echo "${p%%/*}"; done \
|
|
46
|
-
| sort -u
|
|
47
|
-
)
|
|
48
|
-
# spec: context-kit/SPEC.md §The session-context hook — the public-surface block guards on the gate binary: the index tools are arms of it, and a missing binary would print the header and nothing under it on every host the artifact roster does not cover. Read the binary first and the block is absent rather than empty — the way the deleted `-f` guard degraded.
|
|
49
|
-
if [[ ${#changed[@]} -gt 0 && -x "$NATIVE_BIN" ]]; then
|
|
50
|
-
echo "Uncommitted changes touch: ${changed[*]}"
|
|
51
|
-
echo "Public API surface of those components (pub-index — read the file for bodies):"
|
|
52
|
-
echo
|
|
53
|
-
for c in "${changed[@]}"; do
|
|
54
|
-
"$NATIVE_BIN" --emit pub-index "$c/src/" 2>/dev/null || true
|
|
55
|
-
done
|
|
56
|
-
echo
|
|
57
|
-
fi
|
|
58
|
-
|
|
59
|
-
# spec: context-kit/SPEC.md §The session-context hook — step 3 drift line (drift-kit owns the report; the seam is this optional line). The knob names an **arm** of the gate binary, not a script path: a `-f` test on an arm name is a test nothing can pass, so the guard is a non-empty name plus the binary's own presence.
|
|
60
|
-
if [[ -n "$DRIFT_ARM" && -x "$NATIVE_BIN" ]]; then
|
|
61
|
-
drift_line="$("$NATIVE_BIN" --emit "$DRIFT_ARM" --trend 2>/dev/null)" || true
|
|
62
|
-
if [[ -n "$drift_line" ]]; then
|
|
63
|
-
echo "$drift_line (full: $NATIVE_BIN --emit $DRIFT_ARM)"
|
|
64
|
-
echo
|
|
65
|
-
fi
|
|
66
|
-
fi
|
|
67
|
-
|
|
68
|
-
# spec: context-kit/SPEC.md §The session-context hook — session-role signal: lead iff the marker's id matches this fire's payload session id (the payload, never CLAUDE_CODE_SESSION_ID — a subagent inherits its parent's); guarded, signal absent = byte-identical output
|
|
69
|
-
role=""
|
|
70
|
-
ROLE_FILE="${CONTEXT_KIT_SESSION_ROLE_FILE:-${GATE_SDK_TMP_DIR:-.tmp}/session-role}"
|
|
71
|
-
if [[ -f "$ROLE_FILE" && ! -t 0 ]]; then
|
|
72
|
-
payload="$(cat 2>/dev/null)" || true
|
|
73
|
-
hook_sid="$(grep -oE '"session_id"[[:space:]]*:[[:space:]]*"[^"]*"' <<<"${payload:-}" 2>/dev/null | head -1 | sed -E 's/.*"([^"]*)"$/\1/')" || true
|
|
74
|
-
read -r m_role m_sid _ < "$ROLE_FILE" 2>/dev/null || true
|
|
75
|
-
if [[ "${m_role:-}" == "lead" && -n "${m_sid:-}" && "${hook_sid:0:8}" == "${m_sid:-}" ]]; then
|
|
76
|
-
role=lead
|
|
77
|
-
fi
|
|
78
|
-
fi
|
|
79
|
-
|
|
80
|
-
# spec: context-kit/SPEC.md §The session-context hook — step 4 stage-conditioned nudges; which stages get which nudge is consumer judgment [EDIT ME]; suppressed for a lead (executor-facing)
|
|
81
|
-
if [[ "$role" != lead ]]; then
|
|
82
|
-
case "$stage" in
|
|
83
|
-
scope | align | build)
|
|
84
|
-
echo "Delegation is the primary token lever and is pre-authorized here: send"
|
|
85
|
-
echo "read-heavy cross-SPEC audits and mechanical rename/merge sweeps to a sub-agent"
|
|
86
|
-
echo "without waiting to be asked — this standing licence satisfies the Agent tool's"
|
|
87
|
-
echo "ask-first default (see your delegation protocol)."
|
|
88
|
-
echo
|
|
89
|
-
;;
|
|
90
|
-
esac
|
|
91
|
-
fi
|
|
92
|
-
|
|
93
|
-
# spec: context-kit/SPEC.md §The session-context hook — step 5 memory-off backstop; check-memory-off fires at commit, this surfaces pollution between commits
|
|
94
|
-
# spec: gate-sdk/SPEC.md §The path-dialect contract — this fold compares against a harness-owned directory name, the one place the per-substrate dialects would meet; which spelling the harness uses on Windows is not decidable from this tree, so the producer above is normalized like any other and this open question is recorded rather than guessed (gap filed)
|
|
95
|
-
MEM_DIRS="${CONTEXT_KIT_MEMORY_DIRS:-$HOME/.claude/projects/$(printf '%s' "$REPO_ROOT" | tr '/.' '-')/memory}"
|
|
96
|
-
for _md in $MEM_DIRS; do
|
|
97
|
-
[[ -d "$_md" ]] || continue
|
|
98
|
-
if find "$_md" -type f ! -name .gitkeep -print -quit 2>/dev/null | grep -q .; then
|
|
99
|
-
echo "⚠ harness memory dir holds content ($_md) — durable facts belong in a tracked surface (context-kit/SPEC.md §The memory-off doctrine), not per-session memory."
|
|
100
|
-
echo
|
|
101
|
-
break
|
|
102
|
-
fi
|
|
103
|
-
done
|
|
104
|
-
|
|
105
|
-
# spec: context-kit/SPEC.md §The session-context hook — step 6 scratch sweep
|
|
106
|
-
TMP_DIR="${GATE_SDK_TMP_DIR:-.tmp}"
|
|
107
|
-
if [[ -d "$TMP_DIR" ]]; then
|
|
108
|
-
swept="$(find "$TMP_DIR" -mindepth 1 ! -name .gitkeep ! -name .gitignore -mmin +1440 -depth -print -delete 2>/dev/null | wc -l | tr -d ' ')"
|
|
109
|
-
if [[ "${swept:-0}" -gt 0 ]]; then
|
|
110
|
-
echo "Tidied $swept stale scratch path(s) from $TMP_DIR/."
|
|
111
|
-
echo
|
|
112
|
-
fi
|
|
113
|
-
fi
|
|
114
|
-
|
|
115
|
-
# spec: context-kit/SPEC.md §The session-context hook — step 7 index-reminder footer; list your actual index commands [EDIT ME]
|
|
116
|
-
cat <<EOF
|
|
117
|
-
Before opening source for a task, run the matching surface index first
|
|
118
|
-
(index, then read the one you need):
|
|
119
|
-
• $NATIVE_BIN --emit pub-index <component>/src/ — public API surface (ships rust, ts)
|
|
120
|
-
• $NATIVE_BIN --emit md-index <file.md> — large markdown / SPEC outline
|
|
121
|
-
• $NATIVE_BIN --emit md-section <file.md> "<head>" — extract one section by heading
|
|
122
|
-
EOF
|
|
123
|
-
|
|
124
|
-
# spec: context-kit/SPEC.md §The session-context hook — step 8 stage-routed craft-rule pointers; doctrine-kit owns the emitter, the seam is this optional block (drift-line precedent); suppressed for a lead (executor-facing)
|
|
125
|
-
if [[ "$role" != lead && -n "$stage" && -n "$STAGE_RULES" ]]; then
|
|
126
|
-
rules_rc=0
|
|
127
|
-
rules_block="$(bash -c "$STAGE_RULES \"\$1\"" stage-rules "$stage" 2>/dev/null)" || rules_rc=$?
|
|
128
|
-
# spec: context-kit/SPEC.md §The session-context hook — step 8 reports a configured command that fails rather than dropping the block silently
|
|
129
|
-
if [[ "$rules_rc" -ne 0 ]]; then
|
|
130
|
-
echo
|
|
131
|
-
echo "⚠ craft rules unavailable: the CONTEXT_KIT_STAGE_RULES command exited $rules_rc — fix the knob (context-kit/SPEC.md §Layout and configuration)."
|
|
132
|
-
elif [[ -n "$rules_block" ]]; then
|
|
133
|
-
echo
|
|
134
|
-
echo "Craft rules for the $stage stage — follow the doctrine link before the matching action:"
|
|
135
|
-
echo "$rules_block"
|
|
136
|
-
fi
|
|
137
|
-
fi
|
|
138
|
-
|
|
139
|
-
# spec: context-kit/SPEC.md §The session-context hook — step 9 env profile; consumer-local machine profile re-probed then emitted verbatim when present (env-profile seam, drift-line precedent)
|
|
140
|
-
ENV_PROFILE_FILE="${CONTEXT_KIT_ENV_PROFILE_FILE:-ENV.local.md}"
|
|
141
|
-
if [[ -f "$ENV_PROFILE_FILE" ]]; then
|
|
142
|
-
# spec: context-kit/SPEC.md §The session-context hook — per-session auto-refresh: re-probe inside the file-present guard (never auto-seeds), output suppressed; an arm of the gate binary like every other, so retarget the library source above to your layout [EDIT ME]
|
|
143
|
-
[[ -x "$NATIVE_BIN" ]] && "$NATIVE_BIN" --emit env-probe >/dev/null 2>&1 || true
|
|
144
|
-
echo
|
|
145
|
-
echo "Local env profile ($ENV_PROFILE_FILE) — adapt commands to this box:"
|
|
146
|
-
cat "$ENV_PROFILE_FILE" 2>/dev/null || true
|
|
147
|
-
fi
|
|
148
|
-
echo "────────────────────────────────────────────────────────────────────────"
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
# graph: couples=delegation-kit/SPEC.md,delegation-kit/templates/agent-execution.md dir=one valve=none tier=precommit
|
|
2
|
-
# install: on-surface
|
|
3
|
-
# spec: delegation-kit/SPEC.md §One template, a resident pointer — every `the template's **<name>** rule` citation in SPEC §The delegation model resolves to a template bullet's bold lead-in (forward direction only)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
spec.md tmpl.md
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
does not resolve to a template lead-in
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# fixture SPEC
|
|
2
|
-
|
|
3
|
-
## The delegation model
|
|
4
|
-
|
|
5
|
-
The template's **Supervisor owns rulings; agents surface, never guess** rule
|
|
6
|
-
resolves, but the template's **Gate-driven worklist where one exists** rule
|
|
7
|
-
names a lead-in the template does not carry — a dangling citation.
|
|
8
|
-
|
|
9
|
-
## Next section
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
spec.md tmpl.md
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
RULE-CITATION: clean
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# fixture SPEC
|
|
2
|
-
|
|
3
|
-
## The delegation model
|
|
4
|
-
|
|
5
|
-
Intro paragraph with a non-citation **bold** span that is not followed by the
|
|
6
|
-
keyword.
|
|
7
|
-
|
|
8
|
-
The template's **Supervisor owns rulings; agents surface, never guess** rule is
|
|
9
|
-
cited by its verbatim lead-in. The template's **Serialize on shared files;
|
|
10
|
-
≤`FIXTURE_FAN_WIDTH`-wide otherwise** rule cites a backtick-bearing name, and
|
|
11
|
-
the template's **Budget-check before *each* dispatch in a fan-out** rule cites
|
|
12
|
-
one with inner emphasis.
|
|
13
|
-
|
|
14
|
-
The grammar itself, `the template's **<name>** rule`, is fenced and must not
|
|
15
|
-
count as a citation.
|
|
16
|
-
|
|
17
|
-
## Next section
|
|
18
|
-
|
|
19
|
-
Out of scope: the template's **Supervisor owns rulings; agents surface, never
|
|
20
|
-
guess** rule cited here is outside the scanned section.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
CONSUMER BINDING — a minimal template fixture for check-rule-citation.
|
|
2
|
-
|
|
3
|
-
- **Supervisor owns rulings; agents surface, never guess.** body prose.
|
|
4
|
-
- **Serialize on shared files; ≤`FIXTURE_FAN_WIDTH`-wide otherwise.** body prose.
|
|
5
|
-
- **Budget-check before *each* dispatch in a fan-out** body prose.
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# spec: drift-kit/SPEC.md §Out of scope — kpi-deprecated-surface (example template): live deprecation-marker count over the canon-kit roster, trending the between-major backlog
|
|
3
|
-
# no-port: gate-sdk/SPEC.md §The provenance seam — the seam's **worked example**. It ships as a template rather than as a bundled member precisely because its marker spelling is a consumer literal and it reads consumer array knobs through the knob-values arm; porting it would publish consumer rule content as kit mechanism in every adopter's binary. Structural, not a sizing judgment.
|
|
4
|
-
set -uo pipefail
|
|
5
|
-
|
|
6
|
-
trend=0
|
|
7
|
-
[[ "${1:-}" == "--trend" ]] && trend=1
|
|
8
|
-
|
|
9
|
-
# spec: drift-kit/SPEC.md §Out of scope — the handoff's `gate-sdk` member locates the LIBRARY, and the library spells the door: gate_native_bin_spelled resolves GATE_SDK_NATIVE_BIN's own precedence, so this plugin carries no second copy of that order and no path of its own to the binary
|
|
10
|
-
door=""
|
|
11
|
-
while IFS= read -r root; do
|
|
12
|
-
# shellcheck source=/dev/null
|
|
13
|
-
[[ "${root##*/}" == gate-sdk && -f "$root/lib/gate.sh" ]] && source "$root/lib/gate.sh"
|
|
14
|
-
done <<< "${DRIFT_KIT_KIT_ROOTS:-}"
|
|
15
|
-
declare -F gate_native_bin_spelled >/dev/null && door="$(gate_native_bin_spelled)"
|
|
16
|
-
|
|
17
|
-
markers=()
|
|
18
|
-
surface=()
|
|
19
|
-
if [[ ! -x "$door" ]] || ! values="$("$door" --emit knob-values CANON_KIT_DEPRECATION_MARKERS CANON_KIT_COMMENT_SURFACE 2>/dev/null)"; then
|
|
20
|
-
[[ "$trend" -eq 1 ]] || printf 'lead\tdeprecated surface\tn/a (knob read failed)\n'
|
|
21
|
-
exit 0
|
|
22
|
-
fi
|
|
23
|
-
while IFS=$'\t' read -r name _ value; do
|
|
24
|
-
[[ -n "$value" ]] || continue
|
|
25
|
-
case "$name" in
|
|
26
|
-
CANON_KIT_DEPRECATION_MARKERS) markers+=("$value") ;;
|
|
27
|
-
CANON_KIT_COMMENT_SURFACE) surface+=("$value") ;;
|
|
28
|
-
esac
|
|
29
|
-
done <<< "$values"
|
|
30
|
-
|
|
31
|
-
if [[ ${#markers[@]} -eq 0 ]]; then
|
|
32
|
-
[[ "$trend" -eq 1 ]] || printf 'lead\tdeprecated surface\tn/a (no CANON_KIT_DEPRECATION_MARKERS roster)\n'
|
|
33
|
-
exit 0
|
|
34
|
-
fi
|
|
35
|
-
|
|
36
|
-
marker_re="$(printf '%s|' "${markers[@]}")"; marker_re="${marker_re%|}"
|
|
37
|
-
|
|
38
|
-
files=()
|
|
39
|
-
shopt -s nullglob globstar
|
|
40
|
-
for g in "${surface[@]:-**/*.sh}"; do
|
|
41
|
-
# shellcheck disable=SC2086 # $g is a surface glob, expansion intended
|
|
42
|
-
for f in $g; do [[ -f "$f" ]] && files+=("$f"); done
|
|
43
|
-
done
|
|
44
|
-
shopt -u nullglob globstar
|
|
45
|
-
|
|
46
|
-
count=0
|
|
47
|
-
[[ ${#files[@]} -gt 0 ]] && count="$(( $(grep -hE -- "$marker_re" "${files[@]}" 2>/dev/null | wc -l) ))"
|
|
48
|
-
|
|
49
|
-
if [[ "$trend" -eq 1 ]]; then
|
|
50
|
-
[[ "$count" -gt 0 ]] && printf 'deprecated-surface %d\n' "$count"
|
|
51
|
-
exit 0
|
|
52
|
-
fi
|
|
53
|
-
printf 'lead\tdeprecated surface\t%d live marker(s) — decommission or re-justify at the next major\n' "$count"
|
|
54
|
-
exit 0
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
# graph: couples=native/Cargo.toml,native/build.rs,native/src/*.rs,native/src/gates/*.rs dir=one valve=none tier=precommit
|
|
2
|
-
# install: never
|
|
3
|
-
# spec: gate-sdk/SPEC.md §check-crate-arms — the crate's lint and test arms run at commit time, so a battery that passes cannot coexist with a CI that fails on them
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
# graph: couples=kit:checks/*.gate,knob:GATE_SDK_GATES_DIR/gates.list,native/* dir=one valve=none tier=precommit
|
|
2
|
-
# install: never
|
|
3
|
-
# spec: gate-sdk/SPEC.md §check-gate-binary-fresh — whenever a registered member resolving to a .gate descriptor makes the binary load-bearing, the binary was built from the source now in the tree
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
# graph: couples=native/src/walk.rs dir=one valve=none tier=precommit
|
|
2
|
-
# install: zero-config
|
|
3
|
-
# spec: gate-sdk/SPEC.md §check-kit-roots-dialect — one kit tree vendored at the root and under a subdirectory must yield one kit-root-derived corpus, which is false the moment a reader joining a root onto a path is left on the kit-parent spelling
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
# graph: couples=kit:README.md dir=one valve=none tier=precommit
|
|
2
|
-
# install: zero-config
|
|
3
|
-
# spec: gate-sdk/SPEC.md §check-packed-links — a packed kit README carries no link to a path the payload withholds, and with an empty base the packed README is its tracked source byte for byte
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
the gate binary was not built from the source now in the tree
|
|
2
|
-
reports source stamp 7b30e5148d6ca2f09e1b84ff2d5c7a6033819e4c
|
|
3
|
-
stamp.txt hashes to 4f1c2a90bb7e5d3168ac04e2f5b7391dd0c6a812
|
|
4
|
-
2 descriptor(s) dispatch to that binary: check-ported check-vendored
|
|
5
|
-
help: rebuild it
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4f1c2a90bb7e5d3168ac04e2f5b7391dd0c6a812
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# A binary built from a source state this fixture tree no longer carries: its baked
|
|
3
|
-
# stamp is not stamp.txt's. The near-miss this case must not collapse into is the
|
|
4
|
-
# zero-descriptor tree, which exits 0 — so a red here can only be the stamp mismatch.
|
|
5
|
-
[[ "${1:-}" == --source-stamp ]] && { echo 7b30e5148d6ca2f09e1b84ff2d5c7a6033819e4c; exit 0; }
|
|
6
|
-
exit 2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4f1c2a90bb7e5d3168ac04e2f5b7391dd0c6a812
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# A binary built from the source the fixture tree carries: its baked stamp is the
|
|
3
|
-
# one stamp.txt reports, so the gate must reach the comparison and find them equal.
|
|
4
|
-
[[ "${1:-}" == --source-stamp ]] && { echo 4f1c2a90bb7e5d3168ac04e2f5b7391dd0c6a812; exit 0; }
|
|
5
|
-
exit 2
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# Behavioral test of check-gate-binary-fresh over the configurations the
|
|
3
|
-
# good/+bad/ pair cannot hold: the pair is one invocation each and both are
|
|
4
|
-
# "descriptors present, binary readable". These are the load-bearing predicate's
|
|
5
|
-
# own boundary — a descriptor on disk is a declaration, a registered member
|
|
6
|
-
# resolving to one is a dispatch — plus the two no-dispatch configurations this
|
|
7
|
-
# repo's battery and the consumer smoke used to be the only oracles for.
|
|
8
|
-
#
|
|
9
|
-
# Run by the --run-gate-tests arm (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)" # gate-sdk/
|
|
14
|
-
# shellcheck source=../lib/gate.sh
|
|
15
|
-
source "$DIR/lib/gate.sh"
|
|
16
|
-
SANDBOX="$(mktemp -d)"
|
|
17
|
-
trap 'rm -rf "$SANDBOX"' EXIT
|
|
18
|
-
|
|
19
|
-
fails=0
|
|
20
|
-
STAMP=4f1c2a90bb7e5d3168ac04e2f5b7391dd0c6a812
|
|
21
|
-
|
|
22
|
-
# One sandbox shape, re-pointed per case: a gates dir, a kit resolve dir, a stub
|
|
23
|
-
# binary whose baked stamp matches stamp.txt, and a registry the case rewrites.
|
|
24
|
-
mkdir -p "$SANDBOX/scripts" "$SANDBOX/kitroot/checks"
|
|
25
|
-
printf '%s\n' "$STAMP" > "$SANDBOX/stamp.txt"
|
|
26
|
-
cat > "$SANDBOX/stub-bin" <<EOF
|
|
27
|
-
#!/usr/bin/env bash
|
|
28
|
-
[[ "\${1:-}" == --source-stamp ]] && { echo $STAMP; exit 0; }
|
|
29
|
-
exit 2
|
|
30
|
-
EOF
|
|
31
|
-
chmod +x "$SANDBOX/stub-bin"
|
|
32
|
-
DESC='# graph: couples=docs/*.md dir=one valve=none tier=precommit
|
|
33
|
-
# spec: gate-sdk/SPEC.md §check-gate-binary-fresh — fixture descriptor'
|
|
34
|
-
|
|
35
|
-
# spec: gate-sdk/SPEC.md §check-gate-binary-fresh — this member's subject is the
|
|
36
|
-
# dispatch knob itself, so a case pointing GATE_SDK_NATIVE_BIN at a missing binary
|
|
37
|
-
# cannot reach the rule through an untouched dispatch: gate_command resolves the
|
|
38
|
-
# binary through that same knob and refuses first. The argv is resolved through
|
|
39
|
-
# gate_command (never a declaration path) before the case's value is exported, and the
|
|
40
|
-
# gate reads that exported value, which outranks every knob file.
|
|
41
|
-
gate_argv() { # gate_argv <knob> <value> -> ARGV
|
|
42
|
-
local knob="$1" val="$2"
|
|
43
|
-
mapfile -t ARGV < <(gate_command check-gate-binary-fresh "$DIR/checks")
|
|
44
|
-
[[ ${#ARGV[@]} -gt 0 ]] || return 2
|
|
45
|
-
export "$knob=$val"
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
run() { # run <bin> ; registry + descriptors are already in place
|
|
49
|
-
( cd "$SANDBOX" \
|
|
50
|
-
&& gate_env GATE_SDK_KIT_DIRS=kitroot GATE_SDK_NATIVE_CRATE=crate \
|
|
51
|
-
&& gate_argv GATE_SDK_NATIVE_BIN "$1" \
|
|
52
|
-
&& "${ARGV[@]}" scripts stamp.txt 2>&1 )
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
expect() { # expect <label> <want-rc> <substring> <got-rc> <output>
|
|
56
|
-
if [[ "$4" -ne "$2" ]]; then
|
|
57
|
-
echo " FAIL [$1]: want exit $2, got $4 -- $5"; fails=$((fails + 1))
|
|
58
|
-
elif ! grep -qF -- "$3" <<<"$5"; then
|
|
59
|
-
echo " FAIL [$1]: exit $2 but output lacks '$3': $5"; fails=$((fails + 1))
|
|
60
|
-
fi
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
# --- zero descriptors: clean, and the report says zero of each ---
|
|
64
|
-
printf 'check-shell\n' > "$SANDBOX/scripts/gates.list"
|
|
65
|
-
printf '#!/usr/bin/env bash\n' > "$SANDBOX/scripts/check-shell.sh"
|
|
66
|
-
out="$(run ./stub-bin)"; rc=$?
|
|
67
|
-
expect zero-descriptors 0 '0 .gate descriptor(s)' "$rc" "$out"
|
|
68
|
-
expect zero-descriptors-dispatch 0 '0 dispatched to by a live member' "$rc" "$out"
|
|
69
|
-
|
|
70
|
-
# --- descriptors present, none dispatching: clean, and the two counts differ ---
|
|
71
|
-
# The configuration every vendored tree is in after the first cohort lands: the
|
|
72
|
-
# descriptors ship with the kit root, no consumer registry names them, and no
|
|
73
|
-
# binary exists. Reading a descriptor's presence as a dispatch reds all of them.
|
|
74
|
-
printf '%s\n' "$DESC" > "$SANDBOX/scripts/check-ported.gate"
|
|
75
|
-
printf '%s\n' "$DESC" > "$SANDBOX/kitroot/checks/check-vendored.gate"
|
|
76
|
-
out="$(run ./nonexistent-bin)"; rc=$?
|
|
77
|
-
expect present-none-dispatching 0 '2 .gate descriptor(s)' "$rc" "$out"
|
|
78
|
-
expect present-none-dispatching-count 0 '0 dispatched to by a live member' "$rc" "$out"
|
|
79
|
-
|
|
80
|
-
# --- the near miss: a registered member resolves to a descriptor, no binary ---
|
|
81
|
-
# Exit 2, never 0: this is the state the corrected predicate must still fail
|
|
82
|
-
# closed on, and the one way a too-loose predicate passes its own good/ case.
|
|
83
|
-
printf 'check-shell\ncheck-ported\n' > "$SANDBOX/scripts/gates.list"
|
|
84
|
-
out="$(run ./nonexistent-bin)"; rc=$?
|
|
85
|
-
expect registered-no-binary 2 'registered member(s) dispatch to it' "$rc" "$out"
|
|
86
|
-
|
|
87
|
-
# --- absent registry: cannot verify, so exit 2 rather than a clean report ---
|
|
88
|
-
rm -f "$SANDBOX/scripts/gates.list"
|
|
89
|
-
out="$(run ./stub-bin)"; rc=$?
|
|
90
|
-
expect absent-registry 2 'no gate registry at' "$rc" "$out"
|
|
91
|
-
|
|
92
|
-
if [[ "$fails" -gt 0 ]]; then
|
|
93
|
-
echo "check-gate-binary-fresh.test.sh: $fails case(s) failed"
|
|
94
|
-
exit 1
|
|
95
|
-
fi
|
|
96
|
-
echo "check-gate-binary-fresh.test.sh: clean (load-bearing predicate: zero descriptors, descriptors with none dispatching, a registered dispatch with no binary, and an absent registry — 6 assertions over 4 cases)"
|
|
97
|
-
exit 0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hooks
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
not committed executable
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hooks
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
HOOK-EXEC-BIT: clean
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# The same tree, named relative to this case dir, carrying a GATE_SDK_KIT_DIRS
|
|
2
|
-
# override hand-listed for the flat layout. Nested, the three names resolve to
|
|
3
|
-
# nothing, the kit-root-derived corpora empty, and the arms still exit 0 — the
|
|
4
|
-
# silent class. The gate must REJECT, naming the arm and both counts.
|
|
5
|
-
tree
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
differs between the flat and the nested vendoring
|