checkwright 0.23.0 → 0.24.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 +172 -10
- package/lib/common/lock.sh +7 -0
- package/lib/common/recipe.sh +1 -1
- package/lib/diff.sh +2 -0
- package/lib/init.sh +40 -16
- package/lib/uninstall.sh +2 -0
- package/package.json +2 -2
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/SPEC.md +125 -13
- package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
- package/payload/canon-kit/smoke/install.sh +1 -1
- package/payload/context-kit/README.md +6 -4
- package/payload/context-kit/SPEC.md +239 -70
- package/payload/context-kit/bin/always-loaded.sh +5 -21
- package/payload/context-kit/bin/env-probe.sh +2 -17
- package/payload/context-kit/checks/check-brevity.gate +3 -0
- package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
- package/payload/context-kit/checks/check-memory-off.gate +3 -0
- package/payload/context-kit/checks/check-settings-paths.gate +3 -0
- package/payload/context-kit/checks/check-settings-pins.gate +3 -0
- package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
- package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
- package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +5 -5
- package/payload/context-kit/index-tests/toolfloor-cases.sh +5 -5
- package/payload/context-kit/lib/context.sh +56 -0
- package/payload/context-kit/lib/toolfloor.sh +1 -1
- package/payload/context-kit/smoke/agents-md.sh +16 -4
- package/payload/context-kit/smoke/install.sh +3 -2
- package/payload/context-kit/templates/session-context.sh +5 -5
- package/payload/delegation-kit/SPEC.md +284 -9
- package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
- package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
- package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
- package/payload/delegation-kit/smoke/install.sh +1 -1
- package/payload/delegation-kit/templates/agent-execution.md +71 -4
- package/payload/doctrine-kit/SPEC.md +1 -1
- package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +2 -3
- package/payload/doctrine-kit/smoke/install.sh +17 -4
- package/payload/drift-kit/README.md +2 -2
- package/payload/drift-kit/SPEC.md +71 -7
- package/payload/drift-kit/bin/stage-economics.sh +1 -1
- package/payload/drift-kit/lib/drift.sh +43 -0
- package/payload/drift-kit/smoke/install.sh +21 -14
- package/payload/evidence-kit/README.md +3 -1
- package/payload/evidence-kit/SPEC.md +160 -19
- package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +42 -2
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
- package/payload/evidence-kit/lib/evidence.sh +2 -0
- package/payload/evidence-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/README.md +10 -7
- package/payload/gate-sdk/SPEC.md +3916 -265
- package/payload/gate-sdk/bin/install-hooks.sh +14 -2
- package/payload/gate-sdk/bin/port-blockers.sh +37 -9
- package/payload/gate-sdk/bin/run-gate-tests.sh +1 -2
- package/payload/gate-sdk/bin/run-gates.sh +22 -0
- package/payload/gate-sdk/bin/upgrade-smoke.sh +21 -16
- package/payload/gate-sdk/checks/check-action-run-shell.sh +1 -0
- package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
- package/payload/gate-sdk/checks/check-core-files.gate +3 -0
- package/payload/gate-sdk/checks/check-crate-arms.sh +1 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +78 -14
- package/payload/gate-sdk/checks/check-graph.gate +3 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-identity.gate +3 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +1 -0
- package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
- package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
- package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +1 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
- package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +4 -5
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +4 -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-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +49 -4
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
- package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
- package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
- package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +94 -1
- package/payload/gate-sdk/lib/gate.sh +232 -25
- package/payload/gate-sdk/smoke/install.sh +5 -1
- package/payload/guard-kit/SPEC.md +207 -28
- package/payload/guard-kit/bin/run-guard-tests.sh +6 -1
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
- package/payload/guard-kit/guard-tests/cases.tsv +37 -9
- package/payload/guard-kit/lib/guard.sh +170 -6
- package/payload/lifecycle-kit/README.md +3 -2
- package/payload/lifecycle-kit/SPEC.md +507 -75
- package/payload/lifecycle-kit/bin/enter-stage.sh +72 -33
- package/payload/lifecycle-kit/bin/file-gap.sh +2 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +22 -22
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +120 -10
- package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +11 -11
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
- package/payload/lifecycle-kit/lib/stages.sh +5 -0
- package/payload/lifecycle-kit/smoke/install.sh +29 -15
- package/payload/lifecycle-kit/templates/lead.md +24 -0
- package/payload/lifecycle-kit/templates/stages/align.md +20 -2
- package/payload/lifecycle-kit/templates/stages/build.md +3 -3
- package/payload/lifecycle-kit/templates/stages/close.md +20 -6
- package/payload/lifecycle-kit/templates/stages/scope.md +20 -1
- package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
- package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +1 -1
- package/payload/queue-kit/README.md +10 -10
- package/payload/queue-kit/SPEC.md +301 -84
- package/payload/queue-kit/bin/queue-counts.sh +1 -1
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +1 -1
- package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +1 -1
- package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
- package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
- package/payload/queue-kit/lib/queue.sh +0 -49
- package/payload/queue-kit/smoke/install.sh +1 -1
- package/payload/site-kit/SPEC.md +29 -2
- package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
- package/payload/site-kit/smoke/install.sh +1 -1
- package/payload/canon-kit/checks/check-amendment-queue.sh +0 -117
- package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -79
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -240
- package/payload/canon-kit/checks/check-prose-tells.sh +0 -208
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -134
- package/payload/context-kit/bin/footprint.sh +0 -144
- package/payload/context-kit/checks/check-brevity.sh +0 -124
- package/payload/context-kit/checks/check-footprint-fresh.sh +0 -39
- package/payload/context-kit/checks/check-memory-off.sh +0 -113
- package/payload/context-kit/checks/check-settings-paths.sh +0 -94
- package/payload/context-kit/checks/check-settings-pins.sh +0 -111
- package/payload/context-kit/gate-tests/check-memory-off/bad/args +0 -1
- package/payload/context-kit/gate-tests/check-memory-off/good/args +0 -1
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -62
- package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -140
- package/payload/delegation-kit/checks/check-rule-citation.sh +0 -77
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -246
- package/payload/drift-kit/bin/trajectory.sh +0 -242
- package/payload/evidence-kit/checks/check-battery-roster.sh +0 -87
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -104
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -105
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
- package/payload/gate-sdk/bin/enforcement-map.sh +0 -273
- package/payload/gate-sdk/checks/check-commit-msg.sh +0 -51
- package/payload/gate-sdk/checks/check-commit-subject.sh +0 -44
- package/payload/gate-sdk/checks/check-core-files.sh +0 -76
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -38
- package/payload/gate-sdk/checks/check-exec-bit.sh +0 -96
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -107
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -106
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -85
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -93
- package/payload/gate-sdk/checks/check-gate-output.sh +0 -103
- package/payload/gate-sdk/checks/check-graph.sh +0 -632
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -46
- package/payload/gate-sdk/checks/check-identity.sh +0 -135
- package/payload/gate-sdk/checks/check-kit-enum.sh +0 -95
- package/payload/gate-sdk/checks/check-readme-roster.sh +0 -108
- package/payload/gate-sdk/checks/check-reads-couples.sh +0 -200
- package/payload/gate-sdk/checks/check-root-tiering.sh +0 -67
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -127
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -85
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
- package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -64
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -198
- package/payload/queue-kit/bin/queue-index.sh +0 -182
- package/payload/queue-kit/bin/roadmap.sh +0 -76
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -64
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -111
- package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -81
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
|
@@ -32,12 +32,24 @@ fi
|
|
|
32
32
|
# spec: gate-sdk/SPEC.md §install-hooks — apply-and-verify rung: run check-identity
|
|
33
33
|
# once at opt-in so a fresh clone learns of a wrong-identity/wrong-remote mapping
|
|
34
34
|
# before its first commit; the gate's exit status surfaces through this script's.
|
|
35
|
+
# spec: gate-sdk/SPEC.md §install-hooks — the rung reaches the gate through gate_command
|
|
36
|
+
# rather than by interpreting the resolved declaration path: a .gate descriptor is a data
|
|
37
|
+
# file of comment lines, and `bash` on it exits 0, so the rung would pass silently
|
|
35
38
|
identity_rc=0
|
|
36
39
|
mapfile -t _check_dirs < <(gate_check_dirs)
|
|
37
|
-
|
|
40
|
+
_identity_argv_out=""
|
|
41
|
+
_identity_resolve_rc=0
|
|
42
|
+
_identity_argv_out="$(gate_command check-identity "${_check_dirs[@]}")" || _identity_resolve_rc=$?
|
|
43
|
+
if [[ "$_identity_resolve_rc" -eq 0 ]]; then
|
|
44
|
+
mapfile -t _identity_argv <<<"$_identity_argv_out"
|
|
38
45
|
echo ""
|
|
39
46
|
echo "Verifying git identity (check-identity)…"
|
|
40
|
-
|
|
47
|
+
"${_identity_argv[@]}" || identity_rc=$?
|
|
48
|
+
elif [[ "$_identity_resolve_rc" -ne 1 ]]; then
|
|
49
|
+
# spec: gate-sdk/SPEC.md §install-hooks — status 1 is "no such member here", which a
|
|
50
|
+
# consumer without the gate is entitled to; anything else is a dispatch that could not
|
|
51
|
+
# be built, already named on stderr, and it fails the opt-in rather than skipping it
|
|
52
|
+
identity_rc="$_identity_resolve_rc"
|
|
41
53
|
fi
|
|
42
54
|
|
|
43
55
|
echo "Active hooks:"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# spec: gate-sdk/SPEC.md §port-blockers — criterion 6's roster on the same tool and the same walk: the --group arm partitions the still-shell members by derived corpus derivation, so one tool is the derived roster for both criteria and neither is a maintained list
|
|
4
4
|
# usage: port-blockers.sh [--group]
|
|
5
5
|
# default arm: each registered gate's external-program requirements beyond GATE_SDK_PROGRAM_FLOOR, as '<member><TAB><program><TAB><file:line>' rows plus a trailing scanned/undecidable count line — the criterion-7 input a porting session reads when it sequences a cohort; advisory, never parsed, and what it cannot decide prints '?' and is counted.
|
|
6
|
-
# --group: the corpus-derivation partition over the still-shell members, groups largest first, each member carrying its criterion 2/3/7 columns and its expanded couples= — the criterion-6 input the session cutting the next cohort reads, advisory on the same terms and with an undecidable count of its own.
|
|
6
|
+
# --group: the corpus-derivation partition over the still-shell members, groups largest first, each member carrying its declaration line count, its criterion 2/3/7 columns and its expanded couples= — the criterion-6 input the session cutting the next cohort reads, advisory on the same terms and with an undecidable count of its own; lines= is a floor on a port's size and never a ranking of it.
|
|
7
7
|
set -uo pipefail
|
|
8
8
|
|
|
9
9
|
SDK="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
@@ -19,11 +19,15 @@ usage: port-blockers.sh [--group]
|
|
|
19
19
|
'<member><TAB><program><TAB><file:line>' row each.
|
|
20
20
|
--group criterion 6: the corpus-derivation partition over the
|
|
21
21
|
still-shell members, largest group first, each member
|
|
22
|
-
carrying its
|
|
22
|
+
carrying lines= (its declaration's line count), its
|
|
23
|
+
criterion 2/3/7 columns and expanded couples=.
|
|
23
24
|
-h, --help this text.
|
|
24
25
|
|
|
25
26
|
Both arms are advisory: nothing parses either output, and what cannot be
|
|
26
|
-
decided prints '?' and is counted rather than guessed.
|
|
27
|
+
decided prints '?' and is counted rather than guessed. lines= is one sizing
|
|
28
|
+
input beside the criterion columns, a floor on a port's size and never a
|
|
29
|
+
ranking of it: cost concentrated in interfaces, or behind a spawned tool,
|
|
30
|
+
is invisible to it.
|
|
27
31
|
EOF
|
|
28
32
|
}
|
|
29
33
|
|
|
@@ -59,7 +63,7 @@ while IFS= read -r _pb_root; do CHECK_DIRS+=("${_pb_root%/}/checks"); done < <(g
|
|
|
59
63
|
unset _pb_root
|
|
60
64
|
|
|
61
65
|
# spec: gate-sdk/SPEC.md §port-blockers — criterion 2's column reads the fixture dirs check-gate-fixture-coverage resolves, in that order, so the report and the gate can never disagree about whether a member carries a pair
|
|
62
|
-
TESTS_DIRS=("$
|
|
66
|
+
TESTS_DIRS=("$GATE_SDK_TESTS_DIR")
|
|
63
67
|
while IFS= read -r _pb_root; do TESTS_DIRS+=("${_pb_root%/}/gate-tests"); done < <(gate_kit_roots_rel)
|
|
64
68
|
unset _pb_root
|
|
65
69
|
|
|
@@ -287,6 +291,8 @@ declare -A GROUP_COUNT=()
|
|
|
287
291
|
group_unkeyed=""
|
|
288
292
|
group_unkeyed_n=0
|
|
289
293
|
ported_excluded=0
|
|
294
|
+
permanent_excluded=0
|
|
295
|
+
held_excluded=0
|
|
290
296
|
|
|
291
297
|
record() {
|
|
292
298
|
rows+="$1"$'\t'"$2"$'\t'"$3"$'\n'
|
|
@@ -344,6 +350,20 @@ while IFS= read -r member; do
|
|
|
344
350
|
undecidable=$((undecidable + 1))
|
|
345
351
|
continue
|
|
346
352
|
fi
|
|
353
|
+
# spec: gate-sdk/SPEC.md §port-blockers — a declared-permanent member leaves the partition on
|
|
354
|
+
# exactly the ported member's terms above, and only on this arm: the grouping orders the corpus
|
|
355
|
+
# this arm can take, while the default arm's criterion-7 row grounds the permanence itself
|
|
356
|
+
if [[ "$MODE" == group ]] && grep -Eq '^#[[:space:]]*no-port:' "$decl"; then
|
|
357
|
+
permanent_excluded=$((permanent_excluded + 1))
|
|
358
|
+
continue
|
|
359
|
+
fi
|
|
360
|
+
# spec: gate-sdk/SPEC.md §port-blockers — a temporarily-held member leaves the partition on the
|
|
361
|
+
# permanent member's terms but is counted apart from it: it is still owed, so the trailer prints
|
|
362
|
+
# the two numbers rather than leaving a reader to subtract a fourth class out of the third
|
|
363
|
+
if [[ "$MODE" == group ]] && grep -Eq '^#[[:space:]]*port-until:' "$decl"; then
|
|
364
|
+
held_excluded=$((held_excluded + 1))
|
|
365
|
+
continue
|
|
366
|
+
fi
|
|
347
367
|
|
|
348
368
|
declare -A seen=()
|
|
349
369
|
declare -A LOCAL_FUNCS=()
|
|
@@ -391,9 +411,11 @@ while IFS= read -r member; do
|
|
|
391
411
|
libkey="${libkey%,}"
|
|
392
412
|
fi
|
|
393
413
|
globkey="$(pb_glob_set "$decl")"
|
|
414
|
+
# spec: gate-sdk/SPEC.md §port-blockers — the line count is read off the same resolved $decl the row's other columns are, so the field cannot disagree with the rest of its own row about which file it describes; it is emitted on the unkeyed row too because a count decides nothing, which is why the ground for withholding the criterion columns there does not reach it
|
|
415
|
+
decl_lines=$(( $(wc -l < "$decl") ))
|
|
394
416
|
# spec: gate-sdk/SPEC.md §port-blockers — a member empty in both factors is reported, never grouped, and never grouped with another empty-keyed member: sharing an absence of evidence is not sharing a derivation
|
|
395
417
|
if [[ -z "$libkey" && -z "$globkey" ]]; then
|
|
396
|
-
group_unkeyed+=" ? $member"$'\t'"$decl"$'\n'
|
|
418
|
+
group_unkeyed+=" ? $member"$'\t'"lines=$decl_lines"$'\t'"$decl"$'\n'
|
|
397
419
|
group_unkeyed_n=$((group_unkeyed_n + 1))
|
|
398
420
|
else
|
|
399
421
|
if [[ "$member_undecidable" -eq 1 ]]; then
|
|
@@ -407,8 +429,9 @@ while IFS= read -r member; do
|
|
|
407
429
|
c3="$(gate_manifest_field "$decl" tier)"
|
|
408
430
|
gate_expand_couples_var couples_exp "$(gate_manifest_field "$decl" couples)"
|
|
409
431
|
key="libs=${libkey:--} globs=${globkey:--}"
|
|
410
|
-
|
|
411
|
-
|
|
432
|
+
# spec: gate-sdk/SPEC.md §port-blockers — lines= sits in the fixed-width run ahead of c2=, not appended: c7= is variable-width, so a field after it is the one column that cannot be aligned, and a cost column read down a list is the one that must be
|
|
433
|
+
GROUP_ROWS["$key"]+="$(printf ' %-36s lines=%-5s c2=%-10s c3=%-9s c7=%s\n couples=%s' \
|
|
434
|
+
"$member" "$decl_lines" "$c2" "${c3:--}" "$c7" "${couples_exp:--}")"$'\n'
|
|
412
435
|
GROUP_COUNT["$key"]=$((${GROUP_COUNT["$key"]:-0} + 1))
|
|
413
436
|
fi
|
|
414
437
|
fi
|
|
@@ -435,8 +458,13 @@ if [[ "$MODE" == group ]]; then
|
|
|
435
458
|
printf '%s\n' "${group_unkeyed%$'\n'}"
|
|
436
459
|
printf '\n'
|
|
437
460
|
fi
|
|
438
|
-
|
|
439
|
-
|
|
461
|
+
# spec: gate-sdk/SPEC.md §port-blockers — a held member is excluded from the partition and still
|
|
462
|
+
# owed, which falsifies the subtraction a reader would otherwise do, so both numbers are printed
|
|
463
|
+
still_owed=$((scanned - ported_excluded - permanent_excluded))
|
|
464
|
+
takeable=$((still_owed - held_excluded))
|
|
465
|
+
printf 'port-blockers --group: %d member(s) scanned, %d group(s) formed, %d undecidable, %d already ported and excluded, %d permanently shell and excluded, %d temporarily held and excluded; %d still owed, %d takeable at this cut\n' \
|
|
466
|
+
"$scanned" "$groups" "$group_unkeyed_n" "$ported_excluded" "$permanent_excluded" \
|
|
467
|
+
"$held_excluded" "$still_owed" "$takeable"
|
|
440
468
|
exit 0
|
|
441
469
|
fi
|
|
442
470
|
|
|
@@ -6,8 +6,7 @@ SDK="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
|
6
6
|
# shellcheck source=../lib/gate.sh
|
|
7
7
|
source "$SDK/lib/gate.sh"
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
TESTS_DIR="${1:-${GATE_SDK_TESTS_DIR:-$GATES_DIR_DEFAULT/gate-tests}}"
|
|
9
|
+
TESTS_DIR="${1:-$GATE_SDK_TESTS_DIR}"
|
|
11
10
|
if [[ $# -gt 1 ]]; then
|
|
12
11
|
GATE_DIRS=("${@:2}")
|
|
13
12
|
else
|
|
@@ -16,6 +16,28 @@ REPO_ROOT="$(git rev-parse --show-toplevel)" || {
|
|
|
16
16
|
}
|
|
17
17
|
cd "$REPO_ROOT" || exit 2
|
|
18
18
|
|
|
19
|
+
# spec: gate-sdk/SPEC.md §The non-gate arm — the emitter front-end: a ported arm receives no
|
|
20
|
+
# configuration, so a caller already sourcing this library resolves its bridged knobs and invokes
|
|
21
|
+
# it. The arm name is an operand here and a suffix in the crate, governed separately.
|
|
22
|
+
if [[ "${1:-}" == --emit ]]; then
|
|
23
|
+
shift
|
|
24
|
+
EMIT_ARM_NAME="${1:-}"
|
|
25
|
+
[[ -n "$EMIT_ARM_NAME" ]] || { echo "run-gates: --emit needs an arm name" >&2; exit 2; }
|
|
26
|
+
EMIT_ARM="--emit-$EMIT_ARM_NAME"
|
|
27
|
+
shift
|
|
28
|
+
EMIT_ARGS=("$@")
|
|
29
|
+
EMIT_BIN="$(gate_native_bin)"
|
|
30
|
+
if [[ ! -x "$EMIT_BIN" ]]; then
|
|
31
|
+
printf 'run-gates: --emit dispatches to the native binary, but %s is absent or not ' "$EMIT_BIN" >&2
|
|
32
|
+
printf 'executable — the projection could not be emitted. Build it: bash gate-sdk/bin/build-native.sh\n' >&2
|
|
33
|
+
exit 2
|
|
34
|
+
fi
|
|
35
|
+
EMIT_ENV="$(gate_knob_env "$EMIT_ARM")" || exit 2
|
|
36
|
+
EMIT_ELEMS=()
|
|
37
|
+
[[ -n "$EMIT_ENV" ]] && mapfile -t EMIT_ELEMS <<<"$EMIT_ENV"
|
|
38
|
+
exec env ${EMIT_ELEMS[@]+"${EMIT_ELEMS[@]}"} "$EMIT_BIN" "$EMIT_ARM" ${EMIT_ARGS[@]+"${EMIT_ARGS[@]}"}
|
|
39
|
+
fi
|
|
40
|
+
|
|
19
41
|
FOR_PATHS=()
|
|
20
42
|
if [[ "${1:-}" == --for ]]; then
|
|
21
43
|
shift
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# spec: gate-sdk/SPEC.md §upgrade-smoke — the two-phase upgrade proof on the consumer-smoke mechanics; the 'upgrade' validate suite each validate stage re-runs, and (TO=HEAD, the default) the standing pre-release assertion that the working tree upgrades cleanly from the last tag. Each phase runs its own ref's gate binary, built from a detached worktree at that ref. Harness-less: bare bash + git + cargo
|
|
2
|
+
# spec: gate-sdk/SPEC.md §upgrade-smoke — the two-phase upgrade proof on the consumer-smoke mechanics; the 'upgrade' validate suite each validate stage re-runs, and (TO=HEAD, the default) the standing pre-release assertion that the working tree upgrades cleanly from the last tag. Each phase runs its own ref's gate binary, built from a detached worktree at that ref. Harness-less: bare bash + git + cargo. Not network-free since the crate took its first dependency — a worktree build shares the host cargo home, so a warm registry cache needs no fetch and a cold one does.
|
|
3
3
|
set -uo pipefail
|
|
4
4
|
|
|
5
5
|
SDK="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
@@ -113,7 +113,7 @@ if [[ "$rc" -ne 0 ]] || ! grep -qE 'All [0-9]+ gates passed' <<<"$out"; then
|
|
|
113
113
|
exit 2
|
|
114
114
|
fi
|
|
115
115
|
|
|
116
|
-
# spec: gate-sdk/SPEC.md §upgrade-smoke — phase A: replace the vendored kit directories wholesale at TO
|
|
116
|
+
# spec: gate-sdk/SPEC.md §upgrade-smoke — phase A, step 1 of 2: replace the vendored kit directories wholesale at TO (the contract's consumer steps, docs/install.md §The upgrade contract)
|
|
117
117
|
declare -A kitname_seen=()
|
|
118
118
|
for r in "${fromroots[@]}"; do rm -rf "${CONS:?}/$(basename "$r")"; done
|
|
119
119
|
for r in "${toroots[@]}"; do
|
|
@@ -129,33 +129,38 @@ if [[ "$(csmoke_gate_descriptors "${toroots[@]}")" -gt 0 ]]; then
|
|
|
129
129
|
|| { echo "upgrade-smoke: FAIL(env) — could not place TO ($TO)'s gate binary in the scratch consumer" >&2; exit 2; }
|
|
130
130
|
fi
|
|
131
131
|
|
|
132
|
-
|
|
133
|
-
|| { echo "upgrade-smoke: phase A gen-pre-commit failed at TO ($TO)" >&2; exit 2; }
|
|
134
|
-
( cd "$CONS" && bash gate-sdk/checks/check-graph.sh --emit > scripts/CHECK-GRAPH.html ) \
|
|
135
|
-
|| { echo "upgrade-smoke: phase A check-graph --emit failed at TO ($TO)" >&2; exit 2; }
|
|
136
|
-
if [[ -f "$CONS/doctrine-kit/bin/install-doctrine.sh" ]]; then
|
|
137
|
-
( cd "$CONS" && bash doctrine-kit/bin/install-doctrine.sh >/dev/null ) \
|
|
138
|
-
|| { echo "upgrade-smoke: phase A install-doctrine failed at TO ($TO)" >&2; exit 2; }
|
|
139
|
-
fi
|
|
140
|
-
|
|
141
|
-
# spec: gate-sdk/SPEC.md §upgrade-smoke — determinism: git status shows changes only under kit roots and the two regenerated artifacts; anything else means phase A edited a consumer file (the wholesale-sync invariant broke)
|
|
132
|
+
# spec: gate-sdk/SPEC.md §upgrade-smoke — determinism is measured on the sync alone, before a regen step has run: the sync's whole claim is that it loses nothing a consumer owns, so its staged set must fall under the kit roots and nowhere else, with no exemption to state
|
|
142
133
|
git -C "$CONS" add -A
|
|
143
134
|
stray=()
|
|
144
135
|
while IFS= read -r p; do
|
|
145
136
|
[[ -n "$p" ]] || continue
|
|
146
|
-
case "$p" in
|
|
147
|
-
scripts/git-hooks/pre-commit|scripts/CHECK-GRAPH.html|CLAUDE.md) continue ;;
|
|
148
|
-
esac
|
|
149
137
|
top="${p%%/*}"
|
|
150
138
|
[[ -n "${kitname_seen[$top]:-}" ]] || stray+=("$p")
|
|
151
139
|
done < <(git -C "$CONS" diff --cached --name-only)
|
|
152
140
|
|
|
153
141
|
if [[ ${#stray[@]} -gt 0 ]]; then
|
|
154
|
-
echo "upgrade-smoke: FAIL — phase
|
|
142
|
+
echo "upgrade-smoke: FAIL — the phase-A kit sync is non-deterministic: it changed consumer files outside the kit roots:" >&2
|
|
155
143
|
for p in "${stray[@]}"; do echo " $p" >&2; done
|
|
156
144
|
echo " the wholesale kit-sync must lose nothing a consumer owns (docs/install.md §The upgrade contract)." >&2
|
|
157
145
|
exit 1
|
|
158
146
|
fi
|
|
147
|
+
|
|
148
|
+
# spec: gate-sdk/SPEC.md §upgrade-smoke — phase A, step 2 of 2: regenerate the generated artifacts, run after the sync has been judged. Which paths each emitter writes is that emitter's own contract, held by that emitter's own freshness gate, so nothing here names the set
|
|
149
|
+
( cd "$CONS" && bash gate-sdk/bin/gen-pre-commit.sh --write >/dev/null ) \
|
|
150
|
+
|| { echo "upgrade-smoke: phase A gen-pre-commit failed at TO ($TO)" >&2; exit 2; }
|
|
151
|
+
# spec: gate-sdk/SPEC.md §upgrade-smoke — the artifact's path is resolved rather than spelled again here: check-graph resolves the same knob for itself, and a second spelling mis-writes under a GATE_SDK_GRAPH_ARTIFACT or GATE_SDK_GATES_DIR the consumer does not share. It is resolved in the consumer's library and not in this tool's own — this tool sources the host repo's gate.sh, so the host's value is this repo's docs path while the scratch consumer is zero-config, and reading the host's would write the artifact where that consumer's own gate will not look. The emitter is a binary arm, so it is reached through the front-end that resolves its bridged knobs (§The non-gate arm), never by a path into the kit.
|
|
152
|
+
CONS_ARTIFACT="$( cd "$CONS" && bash -c 'source gate-sdk/lib/gate.sh; printf "%s" "$GATE_SDK_GRAPH_ARTIFACT"' )" \
|
|
153
|
+
|| { echo "upgrade-smoke: could not resolve the graph artifact path at TO ($TO)" >&2; exit 2; }
|
|
154
|
+
[[ -n "$CONS_ARTIFACT" ]] \
|
|
155
|
+
|| { echo "upgrade-smoke: the consumer's library resolved an empty graph artifact path at TO ($TO)" >&2; exit 2; }
|
|
156
|
+
( cd "$CONS" && bash gate-sdk/bin/run-gates.sh --emit graph > "$CONS_ARTIFACT" ) \
|
|
157
|
+
|| { echo "upgrade-smoke: phase A graph emit failed at TO ($TO)" >&2; exit 2; }
|
|
158
|
+
if [[ -f "$CONS/doctrine-kit/bin/install-doctrine.sh" ]]; then
|
|
159
|
+
( cd "$CONS" && bash doctrine-kit/bin/install-doctrine.sh >/dev/null ) \
|
|
160
|
+
|| { echo "upgrade-smoke: phase A install-doctrine failed at TO ($TO)" >&2; exit 2; }
|
|
161
|
+
fi
|
|
162
|
+
|
|
163
|
+
git -C "$CONS" add -A
|
|
159
164
|
git -C "$CONS" -c user.email=smoke@example.invalid -c user.name=smoke \
|
|
160
165
|
commit -q --no-verify --allow-empty -m "phase A: kits at $TO"
|
|
161
166
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=.github/workflows/*.yml,.github/workflows/*.yaml,.github/ISSUE_TEMPLATE/*.yml,docs/_config.yml,kit:templates/*.yml,kit:templates/*.yaml dir=one valve=none tier=precommit
|
|
3
3
|
# install: on-surface
|
|
4
|
+
# port-until: cohort-held-members-port-prerequisites
|
|
4
5
|
# spec: gate-sdk/SPEC.md §check-action-run-shell — every GitHub Actions `run:` literal block scalar in an Actions-shaped YAML file is ShellCheck-clean at -S warning under the dialect the step actually runs
|
|
5
6
|
#
|
|
6
7
|
# usage: check-action-run-shell.sh [scan-root]
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=scripts/msg-patterns.list,native/src/gates/commit_msg.rs,native/src/ere.rs,native/src/fresh.rs dir=one valve=none tier=commit-msg
|
|
2
|
+
# install: zero-config
|
|
3
|
+
# 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)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=gate-sdk/lib/gate.sh dir=one valve=none tier=commit-msg
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-commit-subject — the subject line parses as <type>(<scope>)?!?: <summary> with <type> in the shared roster, or matches a git-generated carve-out (the parse guarantee under the trajectory arm's feat/debt column)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=scripts/core-files.list,kit:SPEC.md,kit:README.md,native/src/gates/core_files.rs,native/src/fresh.rs dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-core-files — every path in the core-files manifest exists in the worktree and is tracked
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=native/Cargo.toml,native/build.rs,native/src/*.rs,native/src/gates/*.rs dir=one valve=none tier=precommit
|
|
3
3
|
# install: never
|
|
4
|
+
# no-port: gate-sdk/SPEC.md §check-crate-arms — criteria 4 and 7, not exception class (a): a gate running cargo over the crate cannot live inside the artifact it tests, and its rule invokes cargo
|
|
4
5
|
# 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
|
|
5
6
|
#
|
|
6
7
|
# usage: check-crate-arms.sh
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=docs/enforcement.md,scripts/gates.list,scripts/*.sh,kit:*.sh,scripts/kpis.list,.claude/settings.json,.github/workflows/*.yml,native/src/gates/enforcement_fresh.rs,native/src/emit/enforcement_map.rs,native/src/fresh.rs,native/src/diff.rs dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-enforcement-fresh — docs/enforcement.md is the byte-fresh projection of the enforcement-map emitter, which this member calls in-process rather than spawning
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=kit:checks/*.sh,kit:kpis/*.sh,kit:bin/*.sh,scripts/check-*.sh,scripts/kpi-*.sh,native/src/gates/exec_bit.rs,native/src/fresh.rs dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-exec-bit — every tracked *.sh matching an exec-glob carries git index mode 100755 and every tracked *.gate descriptor carries 100644, or a by-path-invoked kit script degrades silently to a skipped check / failed plugin in a fresh clone
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=kit:SPEC.md,scripts/*.sh,kit:*.sh,native/src/gates/*.rs dir=bi valve=none tier=align-only
|
|
3
3
|
# install: zero-config
|
|
4
|
+
# port-until: cohort-held-members-port-prerequisites
|
|
4
5
|
# spec: gate-sdk/SPEC.md §check-gate-assertions — couple each §<gate> enumerated-assertion span+count to the gate code's `# assertion` markers
|
|
5
6
|
#
|
|
6
7
|
# usage: check-gate-assertions.sh [spec [scripts-dir]] (defaults: kit SPEC.md set; kit checks/ dirs)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=kit:checks/*.gate,scripts/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
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=scripts/*.sh,kit:*.sh,TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
2
|
+
# install: zero-config
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-gate-exemption-tasks — every temporary-disposition annotation a gate declaration carries names a live task: an exception-list element's until:, or the declaration's own port-until: header field
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=scripts/*.sh,kit:*.sh,native/src/gates/gate_fail_closed.rs,native/src/fresh.rs dir=one valve=none tier=precommit
|
|
2
|
+
# install: zero-config
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-gate-fail-closed — every awk/jq capture in the gate family handles subprocess exit status
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=scripts/gates.list,scripts/*.sh,scripts/gate-tests/*,kit:*.sh,native/src/gates/gate_fixture_coverage.rs,native/src/fresh.rs dir=one valve=none tier=precommit
|
|
2
|
+
# install: zero-config
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-gate-fixture-coverage — every gates.list member has a fixture pair or a no-fixture opt-out
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=scripts/gates.list,scripts/*.sh,kit:*.sh,native/src/gates/gate_output.rs,native/src/ere.rs,native/src/fresh.rs dir=one valve=none tier=precommit
|
|
2
|
+
# install: zero-config
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-gate-output — every gates.list member emits a machine-keyable success line and a help: remedy
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=scripts/gates.list,kit:checks/*,gate-sdk/SPEC.md,native/*,.github/workflows/publish.yml dir=one valve=none tier=precommit
|
|
3
3
|
# install: on-surface
|
|
4
|
+
# no-port: gate-sdk/SPEC.md §The port-candidate criteria — exception class (a), permanent: the gate audits the dispatch relation, so a compiled form could check its own roster through the very binary in question
|
|
4
5
|
# 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
|
|
5
6
|
#
|
|
6
7
|
# usage: check-gate-substrate-parity.sh [gates-dir] [conservation-doc]
|
|
@@ -44,12 +45,25 @@ fail_closed "$st" check-gate-substrate-parity awk
|
|
|
44
45
|
|
|
45
46
|
findings=()
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
CRATE="$(gate_native_crate)"
|
|
49
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the publishing test is `gate_authoring_tree`
|
|
50
|
+
# (§lib/gate.sh), computed once and read twice: by assertion B's consumer-declared scope clause and
|
|
51
|
+
# assertion F's missing-roster arm. One holder, shared with §check-gate-exemption-tasks' scope rule
|
|
52
|
+
publishing_tree=0
|
|
53
|
+
gate_authoring_tree && publishing_tree=1
|
|
54
|
+
|
|
55
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion B's owner column: a kit
|
|
56
|
+
# directory basename, or CONSUMER_OWNER for a member the consumer's own gates directory declares
|
|
57
|
+
CONSUMER_OWNER='-'
|
|
58
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion B's two-clause scope rule: a
|
|
59
|
+
# kit-owned subcommand is in scope iff this tree vendored that kit, and a consumer-declared one
|
|
60
|
+
# iff this is the tree that declared it, which is the tree carrying the crate's tracked source
|
|
61
|
+
subcommand_in_scope() {
|
|
62
|
+
if [[ "$1" == "$CONSUMER_OWNER" ]]; then
|
|
63
|
+
[[ "$publishing_tree" == 1 ]]
|
|
64
|
+
return
|
|
65
|
+
fi
|
|
66
|
+
printf '%s\n' "${KIT_NAMES[@]+"${KIT_NAMES[@]}"}" | grep -qx -- "$1"
|
|
53
67
|
}
|
|
54
68
|
|
|
55
69
|
# assertion A: each member resolves to exactly one declaration — a dir carrying
|
|
@@ -59,6 +73,11 @@ declared=0
|
|
|
59
73
|
# a registered member resolving to one is a dispatch, and only a dispatch makes the binary
|
|
60
74
|
# load-bearing. Derived here because assertion A already resolves every member.
|
|
61
75
|
dispatching=0
|
|
76
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion G's two counters, derived in
|
|
77
|
+
# assertion A's own loop because the declaration set and its spelling are exactly its output
|
|
78
|
+
declpaths_shell=0
|
|
79
|
+
noport_declared=0
|
|
80
|
+
portuntil_declared=0
|
|
62
81
|
for m in "${MEMBERS[@]}"; do
|
|
63
82
|
for d in "${RESOLVE_DIRS[@]}"; do
|
|
64
83
|
if [[ -f "$d/$m.sh" && -f "$d/$m.gate" ]]; then
|
|
@@ -71,6 +90,44 @@ for m in "${MEMBERS[@]}"; do
|
|
|
71
90
|
fi
|
|
72
91
|
[[ "$src" == *.gate ]] && dispatching=$((dispatching + 1))
|
|
73
92
|
declared=$((declared + 1))
|
|
93
|
+
|
|
94
|
+
# assertion G: the port declaration lives on the shell spelling and carries a cause —
|
|
95
|
+
# a descriptor's existence is already the dispatch declaration, so a `# no-port:` line
|
|
96
|
+
# there asserts the negation of the file it sits in
|
|
97
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity
|
|
98
|
+
noport="$(grep -cE '^#[[:space:]]*no-port:' "$src")" || noport=0
|
|
99
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the held field's clauses are the
|
|
100
|
+
# permanent field's over a second spelling, plus the one neither owns alone: a declaration
|
|
101
|
+
# asserting both makes the two exclusion counts in port-blockers' trailer overlap
|
|
102
|
+
portuntil="$(grep -cE '^#[[:space:]]*port-until:' "$src")" || portuntil=0
|
|
103
|
+
if [[ "$src" == *.gate ]]; then
|
|
104
|
+
[[ "$noport" -gt 0 ]] \
|
|
105
|
+
&& findings+=("port declaration on a descriptor: $src carries a '# no-port:' line — a descriptor's existence is the dispatch declaration, so the field's domain is the <name>.sh spelling alone")
|
|
106
|
+
[[ "$portuntil" -gt 0 ]] \
|
|
107
|
+
&& findings+=("port declaration on a descriptor: $src carries a '# port-until:' line — a descriptor's existence is the dispatch declaration, so a ported member has no port question left to declare")
|
|
108
|
+
else
|
|
109
|
+
declpaths_shell=$((declpaths_shell + 1))
|
|
110
|
+
if [[ "$noport" -gt 1 ]]; then
|
|
111
|
+
findings+=("more than one port declaration: $src carries $noport '# no-port:' lines — a declaration carries at most one")
|
|
112
|
+
elif [[ "$noport" -eq 1 ]]; then
|
|
113
|
+
noport_declared=$((noport_declared + 1))
|
|
114
|
+
cause="$(grep -E '^#[[:space:]]*no-port:' "$src" | head -n 1)"
|
|
115
|
+
cause="${cause#*no-port:}"
|
|
116
|
+
[[ -n "${cause//[[:space:]]/}" ]] \
|
|
117
|
+
|| findings+=("port declaration with no cause: $src carries a bare '# no-port:' line — the cause names the ruling that makes the member permanent, and is the field's whole payload")
|
|
118
|
+
fi
|
|
119
|
+
if [[ "$portuntil" -gt 1 ]]; then
|
|
120
|
+
findings+=("more than one hold declaration: $src carries $portuntil '# port-until:' lines — a declaration carries at most one")
|
|
121
|
+
elif [[ "$portuntil" -eq 1 ]]; then
|
|
122
|
+
portuntil_declared=$((portuntil_declared + 1))
|
|
123
|
+
slug="$(grep -E '^#[[:space:]]*port-until:' "$src" | head -n 1)"
|
|
124
|
+
slug="${slug#*port-until:}"
|
|
125
|
+
[[ -n "${slug//[[:space:]]/}" ]] \
|
|
126
|
+
|| findings+=("hold declaration with no slug: $src carries a bare '# port-until:' line — the slug names the live queue entry that owns the blocker, and is the field's whole payload")
|
|
127
|
+
fi
|
|
128
|
+
[[ "$noport" -gt 0 && "$portuntil" -gt 0 ]] \
|
|
129
|
+
&& findings+=("contradictory port declarations: $src carries both '# no-port:' and '# port-until:' — permanent and temporarily-held are opposite verdicts about the same member")
|
|
130
|
+
fi
|
|
74
131
|
done
|
|
75
132
|
|
|
76
133
|
# assertion B: the .gate descriptors on disk and the binary's reported subcommand
|
|
@@ -121,12 +178,12 @@ if [[ -x "$BIN" ]]; then
|
|
|
121
178
|
printf '%s\n' "${subcommands[@]}" | grep -qx -- "$g" \
|
|
122
179
|
|| findings+=("descriptor names no subcommand: $g.gate declares a gate the binary does not carry")
|
|
123
180
|
done
|
|
124
|
-
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the roster half speaks only for
|
|
125
|
-
#
|
|
126
|
-
#
|
|
181
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the roster half speaks only for what
|
|
182
|
+
# this tree declared: a subcommand from an unvendored kit, or consumer-declared elsewhere, is
|
|
183
|
+
# out of scope rather than stranded, and it is counted rather than dropped silently
|
|
127
184
|
for i in "${!subcommands[@]}"; do
|
|
128
185
|
s="${subcommands[$i]}"
|
|
129
|
-
if [[ "$owner_state" == scoped ]] && !
|
|
186
|
+
if [[ "$owner_state" == scoped ]] && ! subcommand_in_scope "${owners[$i]}"; then
|
|
130
187
|
out_of_scope=$((out_of_scope + 1))
|
|
131
188
|
continue
|
|
132
189
|
fi
|
|
@@ -185,7 +242,6 @@ fi
|
|
|
185
242
|
# assertion E: opacity is held by structure — a ported gate's implementation source
|
|
186
243
|
# may not reach the vendoring set, whose members are exactly the kit roots
|
|
187
244
|
# spec: gate-sdk/SPEC.md §Consumer payload
|
|
188
|
-
CRATE="$(gate_native_crate)"
|
|
189
245
|
declare -A DESCRIPTOR_SET=()
|
|
190
246
|
for g in "${DESCRIPTORS[@]+"${DESCRIPTORS[@]}"}"; do DESCRIPTOR_SET["$g"]=1; done
|
|
191
247
|
kit_scanned=0
|
|
@@ -229,7 +285,7 @@ if [[ -f "$ROSTER" ]]; then
|
|
|
229
285
|
[[ "$t" =~ ^[A-Za-z0-9_]+(-[A-Za-z0-9_.]+){2,3}$ ]] \
|
|
230
286
|
|| findings+=("malformed target triple: '$t' in $ROSTER is not <arch>-<vendor>-<os>[-<env>]")
|
|
231
287
|
done
|
|
232
|
-
elif [[ "$dispatching" -gt 0
|
|
288
|
+
elif [[ "$dispatching" -gt 0 && "$publishing_tree" == 1 ]]; then
|
|
233
289
|
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion F rides the corrected
|
|
234
290
|
# predicate *and* the publishing-tree test: declaring platform support is the act of the tree
|
|
235
291
|
# that builds and publishes the artifact, and a consumer receives kit roots but never the crate
|
|
@@ -321,13 +377,21 @@ if [[ ${#findings[@]} -gt 0 ]]; then
|
|
|
321
377
|
echo " workflow's matrix from it rather than spelling a platform there, and"
|
|
322
378
|
echo " emit each artifact's digest in exactly one step, where its bytes are"
|
|
323
379
|
echo " produced. A runner mapping may name a platform; a matrix may not."
|
|
380
|
+
echo " help: a '# no-port:' line declares a member the port will never take — it goes on"
|
|
381
|
+
echo " the <name>.sh declaration only, at most once, and its cause names the SPEC"
|
|
382
|
+
echo " section ruling the member permanent. A ported member has no port question"
|
|
383
|
+
echo " left to declare, so drop the line rather than copying it into a descriptor."
|
|
384
|
+
echo " help: a '# port-until: <slug>' line declares a member the port still owes but cannot"
|
|
385
|
+
echo " take yet, and names the live queue entry owning the blocker. Same domain and"
|
|
386
|
+
echo " cardinality as '# no-port:', and never both on one declaration — permanent and"
|
|
387
|
+
echo " temporarily-held are opposite verdicts about the same member."
|
|
324
388
|
exit 1
|
|
325
389
|
fi
|
|
326
390
|
|
|
327
391
|
if [[ "$roster_read" == 1 ]]; then
|
|
328
|
-
roster="${#DESCRIPTORS[@]} descriptor(s) in parity with the ${#subcommands[@]}-subcommand roster ($in_scope in scope, $out_of_scope
|
|
392
|
+
roster="${#DESCRIPTORS[@]} descriptor(s) in parity with the ${#subcommands[@]}-subcommand roster ($in_scope in scope, $out_of_scope out of scope — an unvendored kit, or a consumer declaration from another tree — owner column $owner_state), $refonly reference-only"
|
|
329
393
|
else
|
|
330
394
|
roster="${#DESCRIPTORS[@]} descriptor(s), no binary at $BIN so no subcommand roster to compare"
|
|
331
395
|
fi
|
|
332
|
-
echo "GATE-SUBSTRATE-PARITY: clean ($declared member(s) with one declaration each, $dispatching of them dispatching to the binary; $roster; $sensitive substrate-sensitive member(s) all dispositioned; $impl_scanned implementation source(s) free of manifest-class annotation; $kit_scanned kit root(s) scanned for an implementation sibling, crate root $CRATE outside every kit root; target roster $roster_state at $ROSTER with $roster_targets well-formed target(s); publish workflow $wf_state at $WORKFLOW, $wf_matrix matrix declaration(s) roster-derived across $wf_jobs job(s) with one producer per digest)"
|
|
396
|
+
echo "GATE-SUBSTRATE-PARITY: clean ($declared member(s) with one declaration each, $dispatching of them dispatching to the binary; $noport_declared of the $declpaths_shell shell declaration(s) declare '# no-port:' with a cause and $portuntil_declared declare '# port-until:' with a slug, neither on any descriptor nor both on one declaration; $roster; $sensitive substrate-sensitive member(s) all dispositioned; $impl_scanned implementation source(s) free of manifest-class annotation; $kit_scanned kit root(s) scanned for an implementation sibling, crate root $CRATE outside every kit root; target roster $roster_state at $ROSTER with $roster_targets well-formed target(s); publish workflow $wf_state at $WORKFLOW, $wf_matrix matrix declaration(s) roster-derived across $wf_jobs job(s) with one producer per digest)"
|
|
333
397
|
exit 0
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=scripts/gates.list,scripts/*.sh,kit:*.sh,scripts/git-hooks/pre-commit,scripts/CHECK-GRAPH.html,docs/check-graph.html,SPEC-*.md,*/SPEC-*.md,native/src/gates/graph.rs,native/src/emit/graph.rs dir=one valve=none tier=precommit
|
|
2
|
+
# install: zero-config
|
|
3
|
+
# 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,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=kit:checks/check-*.sh,kit:checks/check-*.gate,kit:smoke/install.sh,installer/lib/common/recipe.sh dir=one valve=none tier=precommit
|
|
3
3
|
# install: zero-config
|
|
4
|
+
# no-port: gate-sdk/SPEC.md §The port-candidate criteria — exception class (a), permanent: the gate audits the dispatch relation, so a compiled form could pass itself with a broken binary
|
|
4
5
|
# 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
|
|
5
6
|
#
|
|
6
7
|
# usage: check-install-disposition.sh [root]
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=scripts/gates.list,kit:checks/*.sh,native/src/gates/kit_enum.rs,native/src/fresh.rs dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-kit-enum — a literal hand list of >=2 kit roots sharing a glob must name every kit root with matching tracked files; the fix is the kit:<glob> token, not a longer list
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=kit:checks/*.sh,scripts/*.sh,scripts/gates.list,native/src/*.rs,native/src/gates/*.rs dir=one valve=none tier=precommit trigger=*
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-reads-couples — every statically resolvable recursive walk in a registered gate has its tracked read set covered by the gate's expanded couples; the undecidable remainder is skipped-and-counted
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=scripts/*.sh,kit:*.sh dir=one valve=none tier=precommit
|
|
3
3
|
# install: zero-config
|
|
4
|
+
# port-until: cohort-held-members-port-prerequisites
|
|
4
5
|
# spec: gate-sdk/SPEC.md §check-shellcheck — ShellCheck lint of the gate family at -S warning (the self-lint contract)
|
|
5
6
|
#
|
|
6
7
|
# usage: check-shellcheck.sh [dir...]
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=*/templates/*.sh,scripts/*.sh dir=bi valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
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,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=scripts/msg-patterns.list dir=one valve=none tier=precommit trigger=*
|
|
3
3
|
# install: zero-config
|
|
4
|
+
# port-until: cohort-held-members-port-prerequisites
|
|
4
5
|
# 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)
|
|
5
6
|
#
|
|
6
7
|
# usage: check-tree-terms.sh [scan-root] [pattern-file...]
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=.workflow/*,.gitignore dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §The workflow directory — every workflow-dir member is tracked or ignored, and every tracked member opens with a '# contract: ' header carrying a ruled payload
|