checkwright 0.22.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 +855 -96
- package/lib/common/lock.sh +45 -9
- package/lib/common/profile.sh +33 -0
- package/lib/common/recipe.sh +50 -34
- package/lib/diff.sh +66 -0
- package/lib/doctor.sh +67 -42
- package/lib/init.sh +62 -46
- package/lib/uninstall.sh +214 -0
- package/lib/update.sh +34 -0
- package/package.json +2 -2
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/README.md +1 -0
- package/payload/canon-kit/SPEC.md +527 -63
- package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
- package/payload/canon-kit/checks/check-comment-tier.gate +3 -0
- package/payload/canon-kit/checks/check-deprecation-task.gate +3 -0
- package/payload/canon-kit/checks/check-docs-cmd.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
- package/payload/canon-kit/checks/check-install-claim.gate +3 -0
- package/payload/canon-kit/checks/check-knob-citation.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
- package/payload/canon-kit/checks/check-manifest-count.gate +3 -0
- package/payload/canon-kit/checks/check-manifest-temporal.gate +3 -0
- package/payload/canon-kit/checks/check-md-refs.gate +3 -0
- package/payload/canon-kit/checks/check-measured-claim.gate +3 -0
- package/payload/canon-kit/checks/check-payload-claim.gate +3 -0
- package/payload/canon-kit/checks/check-prose-enum.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.gate +3 -0
- package/payload/canon-kit/checks/check-spec-dod-singleton.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
- package/payload/canon-kit/checks/check-spec-fence-balance.gate +3 -0
- package/payload/canon-kit/checks/check-spec-pointer.gate +3 -0
- package/payload/canon-kit/checks/check-surface-duplication.sh +1 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.gate +3 -0
- package/payload/canon-kit/checks/check-tracking-claim.gate +3 -0
- package/payload/canon-kit/gate-tests/check-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/.workflow/fixture-state.txt +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/templates/bad-tmpl.sh +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +3 -2
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +27 -5
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +61 -9
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +12 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +23 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +90 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +3 -3
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +21 -7
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -2
- package/payload/canon-kit/lib/spec.sh +91 -62
- package/payload/canon-kit/smoke/install.sh +2 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +4 -1
- package/payload/context-kit/README.md +10 -5
- package/payload/context-kit/SPEC.md +364 -62
- package/payload/context-kit/bin/always-loaded.sh +5 -21
- package/payload/context-kit/bin/env-probe.sh +21 -23
- 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-paths/bad/expect.txt +3 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +12 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/real-tool.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/tools/real-tool.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +9 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
- package/payload/context-kit/lib/context.sh +56 -0
- package/payload/context-kit/lib/toolfloor.sh +15 -4
- package/payload/context-kit/smoke/agents-md.sh +27 -4
- package/payload/context-kit/smoke/install.sh +4 -2
- package/payload/context-kit/templates/session-context.sh +5 -5
- package/payload/delegation-kit/README.md +3 -3
- package/payload/delegation-kit/SPEC.md +400 -22
- 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 +109 -18
- package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
- package/payload/doctrine-kit/DOCTRINE.md +86 -12
- package/payload/doctrine-kit/README.md +7 -3
- package/payload/doctrine-kit/SPEC.md +103 -10
- package/payload/doctrine-kit/bin/install-doctrine.sh +83 -13
- package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +84 -5
- package/payload/doctrine-kit/smoke/install.sh +106 -3
- package/payload/drift-kit/README.md +2 -2
- package/payload/drift-kit/SPEC.md +84 -11
- package/payload/drift-kit/bin/kfric.sh +21 -2
- 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 +49 -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 +43 -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 +23 -7
- package/payload/gate-sdk/SPEC.md +6402 -291
- package/payload/gate-sdk/bin/build-native.sh +38 -0
- package/payload/gate-sdk/bin/gen-pre-commit.sh +23 -3
- package/payload/gate-sdk/bin/install-hooks.sh +14 -2
- package/payload/gate-sdk/bin/port-blockers.sh +473 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +8 -1
- package/payload/gate-sdk/bin/run-gate-tests.sh +27 -7
- package/payload/gate-sdk/bin/run-gates.sh +30 -2
- package/payload/gate-sdk/bin/upgrade-smoke.sh +70 -17
- package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -0
- package/payload/gate-sdk/checks/check-action-pinning.gate +1 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +2 -0
- package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -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 +62 -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 +32 -6
- 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 +109 -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 +93 -0
- package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
- package/payload/gate-sdk/checks/check-kit-registration.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 +2 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-template-registry-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-test-hermetic.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +2 -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-crate-arms/bad/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +12 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- 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/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/src/gates/native_sample.rs +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/src/gates/native_sample.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +110 -0
- 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 +110 -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-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-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-kit-registration.test.sh +6 -5
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
- 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 +204 -1
- package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +24 -12
- package/payload/gate-sdk/lib/gate.sh +353 -22
- package/payload/gate-sdk/lib/inject.sh +25 -0
- package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
- package/payload/gate-sdk/smoke/install.sh +47 -1
- package/payload/guard-kit/README.md +14 -11
- package/payload/guard-kit/SPEC.md +477 -82
- package/payload/guard-kit/bin/run-guard-tests.sh +7 -1
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
- package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
- package/payload/guard-kit/guard-tests/cases.tsv +84 -14
- package/payload/guard-kit/lib/guard.sh +440 -54
- package/payload/guard-kit/templates/close-triage.md +5 -5
- package/payload/guard-kit/templates/settings-hooks.json +7 -1
- package/payload/lifecycle-kit/README.md +14 -3
- package/payload/lifecycle-kit/SPEC.md +929 -93
- package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +193 -38
- package/payload/lifecycle-kit/bin/file-gap.sh +29 -12
- package/payload/lifecycle-kit/bin/file-survey.sh +21 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
- package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +3 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.gate +3 -0
- package/payload/lifecycle-kit/checks/check-scratch-citation.gate +3 -0
- package/payload/lifecycle-kit/checks/check-shim-restatement.gate +3 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-evidence.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +3 -0
- package/payload/lifecycle-kit/checks/check-survey-record.gate +3 -0
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/gap-inbox.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/surfaces/queue.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +31 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/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 +24 -25
- 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 +129 -15
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +54 -26
- package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
- package/payload/lifecycle-kit/lib/stages.sh +9 -0
- package/payload/lifecycle-kit/smoke/install.sh +96 -19
- package/payload/lifecycle-kit/templates/lead.md +60 -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 +48 -15
- package/payload/lifecycle-kit/templates/stages/scope.md +29 -5
- package/payload/lifecycle-kit/templates/stages/spec.md +6 -2
- package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
- package/payload/queue-kit/README.md +12 -10
- package/payload/queue-kit/SPEC.md +411 -74
- package/payload/queue-kit/bin/queue-counts.sh +35 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +3 -0
- package/payload/queue-kit/checks/check-queue-hygiene.gate +3 -0
- package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
- package/payload/queue-kit/checks/check-queue-sections.gate +3 -0
- package/payload/queue-kit/checks/check-queue-slug-liveness.gate +3 -0
- package/payload/queue-kit/checks/check-queue-wrap.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
- package/payload/queue-kit/checks/check-tag-lead-line.gate +3 -0
- package/payload/queue-kit/checks/check-task-conservation.gate +4 -0
- package/payload/queue-kit/checks/check-task-names.gate +3 -0
- package/payload/queue-kit/gate-tests/check-queue-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 +116 -0
- package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
- package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
- package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
- package/payload/queue-kit/lib/queue.sh +4 -68
- package/payload/queue-kit/smoke/install.sh +1 -1
- package/payload/site-kit/SPEC.md +52 -2
- package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +2 -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/profiles.list +36 -8
- package/payload/canon-kit/checks/check-amendment-queue.sh +0 -116
- package/payload/canon-kit/checks/check-comment-tier.sh +0 -216
- package/payload/canon-kit/checks/check-deprecation-task.sh +0 -90
- package/payload/canon-kit/checks/check-docs-cmd.sh +0 -153
- package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -78
- package/payload/canon-kit/checks/check-install-claim.sh +0 -146
- package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -239
- package/payload/canon-kit/checks/check-manifest-count.sh +0 -46
- package/payload/canon-kit/checks/check-manifest-temporal.sh +0 -83
- package/payload/canon-kit/checks/check-md-refs.sh +0 -128
- package/payload/canon-kit/checks/check-payload-claim.sh +0 -133
- package/payload/canon-kit/checks/check-prose-enum.sh +0 -115
- package/payload/canon-kit/checks/check-prose-tells.sh +0 -207
- package/payload/canon-kit/checks/check-spec-derivable-section.sh +0 -69
- package/payload/canon-kit/checks/check-spec-dod-singleton.sh +0 -45
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -133
- package/payload/canon-kit/checks/check-spec-fence-balance.sh +0 -42
- package/payload/canon-kit/checks/check-spec-pointer.sh +0 -187
- package/payload/canon-kit/checks/check-todo-task-liveness.sh +0 -80
- package/payload/canon-kit/checks/check-tracking-claim.sh +0 -136
- package/payload/context-kit/bin/footprint.sh +0 -144
- package/payload/context-kit/checks/check-brevity.sh +0 -123
- package/payload/context-kit/checks/check-footprint-fresh.sh +0 -38
- package/payload/context-kit/checks/check-memory-off.sh +0 -112
- package/payload/context-kit/checks/check-settings-pins.sh +0 -110
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -61
- package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -139
- package/payload/delegation-kit/checks/check-rule-citation.sh +0 -76
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -216
- package/payload/drift-kit/bin/trajectory.sh +0 -242
- package/payload/evidence-kit/checks/check-battery-roster.sh +0 -86
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -103
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -104
- 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 -272
- package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
- package/payload/gate-sdk/checks/check-commit-msg.sh +0 -50
- package/payload/gate-sdk/checks/check-commit-subject.sh +0 -43
- package/payload/gate-sdk/checks/check-core-files.sh +0 -75
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -37
- package/payload/gate-sdk/checks/check-exec-bit.sh +0 -95
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -106
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -105
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -84
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -92
- package/payload/gate-sdk/checks/check-gate-output.sh +0 -73
- package/payload/gate-sdk/checks/check-graph.sh +0 -631
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -45
- package/payload/gate-sdk/checks/check-identity.sh +0 -134
- package/payload/gate-sdk/checks/check-kit-enum.sh +0 -94
- package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
- package/payload/gate-sdk/checks/check-readme-roster.sh +0 -107
- package/payload/gate-sdk/checks/check-reads-couples.sh +0 -199
- package/payload/gate-sdk/checks/check-root-tiering.sh +0 -66
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -126
- package/payload/gate-sdk/checks/check-template-registry-parity.sh +0 -81
- package/payload/gate-sdk/checks/check-test-hermetic.sh +0 -119
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -84
- 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 -63
- package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +0 -98
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +0 -54
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +0 -69
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +0 -97
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +0 -59
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -197
- package/payload/lifecycle-kit/checks/check-stage-evidence.sh +0 -81
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +0 -47
- package/payload/lifecycle-kit/checks/check-survey-record.sh +0 -102
- 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-entry-budget.sh +0 -106
- package/payload/queue-kit/checks/check-queue-hygiene.sh +0 -81
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -63
- package/payload/queue-kit/checks/check-queue-sections.sh +0 -44
- package/payload/queue-kit/checks/check-queue-slug-liveness.sh +0 -63
- package/payload/queue-kit/checks/check-queue-wrap.sh +0 -56
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -110
- package/payload/queue-kit/checks/check-tag-lead-line.sh +0 -70
- package/payload/queue-kit/checks/check-task-conservation.sh +0 -50
- package/payload/queue-kit/checks/check-task-names.sh +0 -128
- package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -80
- /package/payload/context-kit/gate-tests/{check-memory-off → check-settings-paths}/bad/args +0 -0
- /package/payload/context-kit/gate-tests/{check-memory-off → check-settings-paths}/good/args +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
|
@@ -1,5 +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
|
+
# 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
|
|
3
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
|
|
4
6
|
#
|
|
5
7
|
# usage: check-gate-substrate-parity.sh [gates-dir] [conservation-doc]
|
|
@@ -22,7 +24,14 @@ mapfile -t MEMBERS < <(gates_list_members "$LIST")
|
|
|
22
24
|
[[ ${#MEMBERS[@]} -gt 0 ]] || { echo "check-gate-substrate-parity: $LIST names no gates" >&2; exit 2; }
|
|
23
25
|
|
|
24
26
|
RESOLVE_DIRS=("$GATES_DIR")
|
|
25
|
-
|
|
27
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion B's roster half scopes to the
|
|
28
|
+
# kits this tree vendored, so the same walk that builds the resolve dirs records their names
|
|
29
|
+
KIT_NAMES=()
|
|
30
|
+
while IFS= read -r k; do
|
|
31
|
+
RESOLVE_DIRS+=("$k/checks")
|
|
32
|
+
k="${k%/}"
|
|
33
|
+
KIT_NAMES+=("${k##*/}")
|
|
34
|
+
done < <(gate_kit_roots_rel)
|
|
26
35
|
|
|
27
36
|
# spec: gate-sdk/SPEC.md §Meta-gate conservation for the binary substrate — the one
|
|
28
37
|
# disposition surface, read by assertion B's reference-only allowance and assertion C
|
|
@@ -36,12 +45,25 @@ fail_closed "$st" check-gate-substrate-parity awk
|
|
|
36
45
|
|
|
37
46
|
findings=()
|
|
38
47
|
|
|
39
|
-
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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"
|
|
45
67
|
}
|
|
46
68
|
|
|
47
69
|
# assertion A: each member resolves to exactly one declaration — a dir carrying
|
|
@@ -51,6 +73,11 @@ declared=0
|
|
|
51
73
|
# a registered member resolving to one is a dispatch, and only a dispatch makes the binary
|
|
52
74
|
# load-bearing. Derived here because assertion A already resolves every member.
|
|
53
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
|
|
54
81
|
for m in "${MEMBERS[@]}"; do
|
|
55
82
|
for d in "${RESOLVE_DIRS[@]}"; do
|
|
56
83
|
if [[ -f "$d/$m.sh" && -f "$d/$m.gate" ]]; then
|
|
@@ -63,6 +90,44 @@ for m in "${MEMBERS[@]}"; do
|
|
|
63
90
|
fi
|
|
64
91
|
[[ "$src" == *.gate ]] && dispatching=$((dispatching + 1))
|
|
65
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
|
|
66
131
|
done
|
|
67
132
|
|
|
68
133
|
# assertion B: the .gate descriptors on disk and the binary's reported subcommand
|
|
@@ -81,11 +146,17 @@ BIN="$(gate_native_bin)"
|
|
|
81
146
|
subcommands=()
|
|
82
147
|
refonly=0
|
|
83
148
|
roster_read=0
|
|
149
|
+
in_scope=0
|
|
150
|
+
out_of_scope=0
|
|
151
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the fallback state is printed as its own
|
|
152
|
+
# word: a binary predating the owner column cannot answer which kit owns a subcommand, and the
|
|
153
|
+
# honest verdict there is today's unrestricted equality, declared rather than assumed
|
|
154
|
+
owner_state=scoped
|
|
84
155
|
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the fail-closed arm is on the corrected
|
|
85
156
|
# predicate: descriptors nothing registered dispatches to leave the binary not load-bearing
|
|
86
157
|
if [[ "$dispatching" -gt 0 && ! -x "$BIN" ]]; then
|
|
87
158
|
echo "check-gate-substrate-parity: $BIN is absent or not executable, but $dispatching registered member(s) dispatch to it — the check could not run; treating as failure (not clean)" >&2
|
|
88
|
-
echo " help: build it —
|
|
159
|
+
echo " help: build it — bash gate-sdk/bin/build-native.sh" >&2
|
|
89
160
|
exit 2
|
|
90
161
|
fi
|
|
91
162
|
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the roster half is gated on a
|
|
@@ -94,12 +165,29 @@ if [[ -x "$BIN" ]]; then
|
|
|
94
165
|
roster_read=1
|
|
95
166
|
listing="$("$BIN" --list)"; st=$?
|
|
96
167
|
fail_closed "$st" check-gate-substrate-parity "$BIN --list"
|
|
97
|
-
mapfile -t
|
|
168
|
+
mapfile -t rows < <(printf '%s\n' "$listing" | grep -v '^$' | sort -u)
|
|
169
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — `<subcommand>\t<owning-kit>`; one
|
|
170
|
+
# row without the column drops the whole roster to the unrestricted equality, because a
|
|
171
|
+
# partly-scoped roster would speak for kits it could not place
|
|
172
|
+
owners=()
|
|
173
|
+
for row in "${rows[@]+"${rows[@]}"}"; do
|
|
174
|
+
subcommands+=("${row%%$'\t'*}")
|
|
175
|
+
if [[ "$row" == *$'\t'* ]]; then owners+=("${row#*$'\t'}"); else owners+=(""); owner_state=unavailable; fi
|
|
176
|
+
done
|
|
98
177
|
for g in "${DESCRIPTORS[@]+"${DESCRIPTORS[@]}"}"; do
|
|
99
178
|
printf '%s\n' "${subcommands[@]}" | grep -qx -- "$g" \
|
|
100
179
|
|| findings+=("descriptor names no subcommand: $g.gate declares a gate the binary does not carry")
|
|
101
180
|
done
|
|
102
|
-
|
|
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
|
|
184
|
+
for i in "${!subcommands[@]}"; do
|
|
185
|
+
s="${subcommands[$i]}"
|
|
186
|
+
if [[ "$owner_state" == scoped ]] && ! subcommand_in_scope "${owners[$i]}"; then
|
|
187
|
+
out_of_scope=$((out_of_scope + 1))
|
|
188
|
+
continue
|
|
189
|
+
fi
|
|
190
|
+
in_scope=$((in_scope + 1))
|
|
103
191
|
printf '%s\n' "${DESCRIPTORS[@]+"${DESCRIPTORS[@]}"}" | grep -qx -- "$s" && continue
|
|
104
192
|
if grep -F -- "\`$s\`" <<<"$section" | grep -qi -- 'reference-only'; then
|
|
105
193
|
refonly=$((refonly + 1))
|
|
@@ -154,7 +242,6 @@ fi
|
|
|
154
242
|
# assertion E: opacity is held by structure — a ported gate's implementation source
|
|
155
243
|
# may not reach the vendoring set, whose members are exactly the kit roots
|
|
156
244
|
# spec: gate-sdk/SPEC.md §Consumer payload
|
|
157
|
-
CRATE="$(gate_native_crate)"
|
|
158
245
|
declare -A DESCRIPTOR_SET=()
|
|
159
246
|
for g in "${DESCRIPTORS[@]+"${DESCRIPTORS[@]}"}"; do DESCRIPTOR_SET["$g"]=1; done
|
|
160
247
|
kit_scanned=0
|
|
@@ -198,7 +285,7 @@ if [[ -f "$ROSTER" ]]; then
|
|
|
198
285
|
[[ "$t" =~ ^[A-Za-z0-9_]+(-[A-Za-z0-9_.]+){2,3}$ ]] \
|
|
199
286
|
|| findings+=("malformed target triple: '$t' in $ROSTER is not <arch>-<vendor>-<os>[-<env>]")
|
|
200
287
|
done
|
|
201
|
-
elif [[ "$dispatching" -gt 0
|
|
288
|
+
elif [[ "$dispatching" -gt 0 && "$publishing_tree" == 1 ]]; then
|
|
202
289
|
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion F rides the corrected
|
|
203
290
|
# predicate *and* the publishing-tree test: declaring platform support is the act of the tree
|
|
204
291
|
# that builds and publishes the artifact, and a consumer receives kit roots but never the crate
|
|
@@ -290,13 +377,21 @@ if [[ ${#findings[@]} -gt 0 ]]; then
|
|
|
290
377
|
echo " workflow's matrix from it rather than spelling a platform there, and"
|
|
291
378
|
echo " emit each artifact's digest in exactly one step, where its bytes are"
|
|
292
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."
|
|
293
388
|
exit 1
|
|
294
389
|
fi
|
|
295
390
|
|
|
296
391
|
if [[ "$roster_read" == 1 ]]; then
|
|
297
|
-
roster="${#DESCRIPTORS[@]} descriptor(s) in parity with the ${#subcommands[@]}-subcommand roster, $refonly reference-only"
|
|
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"
|
|
298
393
|
else
|
|
299
394
|
roster="${#DESCRIPTORS[@]} descriptor(s), no binary at $BIN so no subcommand roster to compare"
|
|
300
395
|
fi
|
|
301
|
-
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)"
|
|
302
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
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
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
|
+
# 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
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# usage: check-install-disposition.sh [root]
|
|
8
|
+
# bare: sweep gate_kit_roots against the git toplevel; root: resolve relative
|
|
9
|
+
# kit roots against a fixture tree (the case dir's gate-sdk-config.sh names them).
|
|
10
|
+
set -uo pipefail
|
|
11
|
+
|
|
12
|
+
SDK="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
13
|
+
# shellcheck source=../lib/gate.sh
|
|
14
|
+
source "$SDK/lib/gate.sh"
|
|
15
|
+
|
|
16
|
+
ROOT="${1:-}"
|
|
17
|
+
if [[ -z "$ROOT" ]]; then
|
|
18
|
+
ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" \
|
|
19
|
+
|| { echo "check-install-disposition: not a git repository and no root argument" >&2; exit 2; }
|
|
20
|
+
fi
|
|
21
|
+
[[ -d "$ROOT" ]] || { echo "check-install-disposition: root not found: $ROOT" >&2; exit 2; }
|
|
22
|
+
|
|
23
|
+
# spec: gate-sdk/SPEC.md §The install disposition — the vocabulary is closed, so an unrecognised value is a finding rather than a pass-through: it names install-time reachability and nothing else
|
|
24
|
+
VOCAB='zero-config|on-surface|never'
|
|
25
|
+
RECIPE="installer/lib/common/recipe.sh"
|
|
26
|
+
|
|
27
|
+
mapfile -t KIT_ROOTS < <(gate_kit_roots)
|
|
28
|
+
[[ ${#KIT_ROOTS[@]} -gt 0 ]] || { echo "check-install-disposition: no kit roots enumerated" >&2; exit 2; }
|
|
29
|
+
|
|
30
|
+
findings=()
|
|
31
|
+
declared=0
|
|
32
|
+
zeroconf=0
|
|
33
|
+
for r in "${KIT_ROOTS[@]}"; do
|
|
34
|
+
r="${r%/}"
|
|
35
|
+
abs="$r"
|
|
36
|
+
[[ "$abs" == /* ]] || abs="$ROOT/$r"
|
|
37
|
+
kit="${r##*/}"
|
|
38
|
+
[[ -d "$abs/checks" ]] || continue
|
|
39
|
+
smoke="$abs/smoke/install.sh"
|
|
40
|
+
shopt -s nullglob
|
|
41
|
+
for f in "$abs"/checks/check-*.sh "$abs"/checks/check-*.gate; do
|
|
42
|
+
name="${f##*/}"; name="${name%.*}"
|
|
43
|
+
[[ -r "$f" ]] || { echo "check-install-disposition: unreadable gate header: $kit/checks/${f##*/}" >&2; exit 2; }
|
|
44
|
+
mapfile -t lines < <(grep '^# install:' "$f")
|
|
45
|
+
if [[ ${#lines[@]} -ne 1 ]]; then
|
|
46
|
+
findings+=("$kit/checks/${f##*/}: ${#lines[@]} '# install:' line(s) where a gate declares exactly one")
|
|
47
|
+
continue
|
|
48
|
+
fi
|
|
49
|
+
value="$(awk 'sub(/^# install:[[:space:]]+/, "") { print $1; exit }' "$f")"; st=$?
|
|
50
|
+
fail_closed "$st" check-install-disposition awk
|
|
51
|
+
if [[ ! "$value" =~ ^($VOCAB)$ ]]; then
|
|
52
|
+
findings+=("$kit/checks/${f##*/}: install disposition '${value:-<empty>}' is outside the closed vocabulary")
|
|
53
|
+
continue
|
|
54
|
+
fi
|
|
55
|
+
declared=$((declared + 1))
|
|
56
|
+
[[ "$value" == zero-config ]] || continue
|
|
57
|
+
zeroconf=$((zeroconf + 1))
|
|
58
|
+
# spec: gate-sdk/SPEC.md §check-install-disposition — the direction is the census's finding made mechanical: the smoke's tree is a superset of the tree init makes, so a gate the installer registers must be registrable there too. The converse is deliberately not asserted
|
|
59
|
+
if [[ ! -f "$smoke" ]]; then
|
|
60
|
+
findings+=("$kit/checks/${f##*/}: declares zero-config where $kit ships no smoke/install.sh to register it")
|
|
61
|
+
elif ! grep -qxF "$name" "$smoke"; then
|
|
62
|
+
findings+=("$kit/checks/${f##*/}: declares zero-config but $kit/smoke/install.sh does not register it")
|
|
63
|
+
fi
|
|
64
|
+
done
|
|
65
|
+
shopt -u nullglob
|
|
66
|
+
done
|
|
67
|
+
[[ "$declared" -gt 0 || ${#findings[@]} -gt 0 ]] \
|
|
68
|
+
|| { echo "check-install-disposition: kit roots enumerated but no gate found under any checks/" >&2; exit 2; }
|
|
69
|
+
|
|
70
|
+
# spec: gate-sdk/SPEC.md §check-install-disposition — assertion C holds the de-literalization going forward rather than only at the commit that lands it; the file is absent in a vendored consumer, which has no installer, so its absence is a skip and never a finding. A §-prefixed occurrence is a spec-section citation rather than a roster member and is stripped before the match: a section reference registers nothing, which is the only thing this assertion is about
|
|
71
|
+
recipe_checked=no
|
|
72
|
+
if [[ -f "$ROOT/$RECIPE" ]]; then
|
|
73
|
+
recipe_checked=yes
|
|
74
|
+
literals="$(awk '{ l=$0; gsub(/§[A-Za-z0-9_-]+/, "", l); if (l ~ /check-[a-z0-9]+(-[a-z0-9]+)*/) print FNR }' "$ROOT/$RECIPE")"; st=$?
|
|
75
|
+
fail_closed "$st" check-install-disposition awk
|
|
76
|
+
while IFS= read -r hit; do
|
|
77
|
+
[[ -n "$hit" ]] || continue
|
|
78
|
+
findings+=("$RECIPE:$hit: literal gate name — the roster is derived from each gate's declaration, never listed here")
|
|
79
|
+
done <<<"$literals"
|
|
80
|
+
fi
|
|
81
|
+
|
|
82
|
+
if [[ ${#findings[@]} -gt 0 ]]; then
|
|
83
|
+
echo "check-install-disposition: install-disposition finding(s):"
|
|
84
|
+
for f in "${findings[@]}"; do echo " $f"; done
|
|
85
|
+
echo " help: give every gate exactly one '# install: <$VOCAB>' line beside its"
|
|
86
|
+
echo " '# graph:' directive; register each zero-config gate in its kit's"
|
|
87
|
+
echo " smoke/install.sh; and keep $RECIPE free of literal"
|
|
88
|
+
echo " gate names — it derives the roster (gate-sdk/SPEC.md §The install disposition)."
|
|
89
|
+
exit 1
|
|
90
|
+
fi
|
|
91
|
+
|
|
92
|
+
echo "INSTALL-DISPOSITION: clean ($declared gate(s) declared, $zeroconf zero-config and registrable in their kit's smoke; recipe de-literalization checked: $recipe_checked)"
|
|
93
|
+
exit 0
|
|
@@ -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=README.md,kit:gate-tests/* dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-kit-registration — every gate_kit_roots kit is registered in the human-facing docs: a registry-doc row linking into each root, and a fixture-runner line for each root that ships gate-tests
|
|
@@ -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,5 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=scripts/*.sh,kit:*.sh dir=one valve=none tier=precommit
|
|
3
|
+
# install: zero-config
|
|
4
|
+
# port-until: cohort-held-members-port-prerequisites
|
|
3
5
|
# spec: gate-sdk/SPEC.md §check-shellcheck — ShellCheck lint of the gate family at -S warning (the self-lint contract)
|
|
4
6
|
#
|
|
5
7
|
# usage: check-shellcheck.sh [dir...]
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=kit:smoke/install.sh,kit:smoke/violation.sh dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-smoke-entry-guard — every mutating smoke script (install.sh, violation.sh) carries the ${SMOKE_KIT_ROOT:?} entry-point guard so a bare run refuses instead of mutating the caller's tree
|
|
@@ -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
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=kit:templates/*.list,kit:*/*.sh dir=bi valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-template-registry-parity — a kit's shipped `.list` registry template names exactly the artifacts of its sibling directory, both directions
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=kit:gate-tests/*.test.sh,kit:smoke/install.sh,kit:smoke/violation.sh dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-test-hermetic — two assertions (A) every bespoke gate-tests/*.test.sh sources lib/test-hermetic.sh or carries a `# hermetic-exempt:` marker; (B) a credential-managing smoke script pins every own-kit bin call ("$SMOKE_KIT_ROOT/bin/*") to a *_CRED_FILE path so it cannot resolve the ambient ~/.claude credential
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=scripts/msg-patterns.list dir=one valve=none tier=precommit trigger=*
|
|
3
|
+
# install: zero-config
|
|
4
|
+
# port-until: cohort-held-members-port-prerequisites
|
|
3
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)
|
|
4
6
|
#
|
|
5
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
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# Direct unit test of check-commit-subject
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
#
|
|
2
|
+
# Direct unit test of check-commit-subject — the config path (a consumer-widened
|
|
3
|
+
# roster) and the git-generated carve-outs, neither of which a single good/bad
|
|
4
|
+
# fixture pair can exercise: the pair runs one subject each, while the roster is
|
|
5
|
+
# env-selected and the carve-outs are a set. The gate is named, never its
|
|
6
|
+
# substrate: gate_run resolves whatever the declaration path dispatches to.
|
|
6
7
|
#
|
|
7
8
|
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
8
9
|
set -uo pipefail
|
|
9
10
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
10
11
|
|
|
11
12
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # gate-sdk/
|
|
12
|
-
GATE="$DIR/checks/check-commit-subject.sh"
|
|
13
13
|
|
|
14
14
|
fails=0
|
|
15
15
|
tmp="$(mktemp -d)"; trap 'rm -rf "$tmp"' EXIT
|
|
16
16
|
|
|
17
|
-
# Run the gate on a one-line subject; echo the exit code.
|
|
18
|
-
|
|
17
|
+
# Run the gate on a one-line subject; echo the exit code. The roster override, when
|
|
18
|
+
# one is given, is exported in the same subshell gate_run resolves the bridge in.
|
|
19
|
+
run_subject() { # $1=subject $2..=NAME=VALUE
|
|
19
20
|
printf '%s\n' "$1" > "$tmp/msg.txt"
|
|
20
|
-
|
|
21
|
+
shift
|
|
22
|
+
(
|
|
23
|
+
gate_env "$@" || exit 2
|
|
24
|
+
gate_run check-commit-subject "$DIR/checks" "$tmp/msg.txt" >/dev/null 2>&1
|
|
25
|
+
)
|
|
21
26
|
echo $?
|
|
22
27
|
}
|
|
23
28
|
|
|
@@ -25,11 +30,11 @@ run_subject() {
|
|
|
25
30
|
rc="$(run_subject 'epic: land the milestone')"
|
|
26
31
|
[[ "$rc" -eq 1 ]] || { echo " FAIL: 'epic:' should fail the default roster, exited $rc"; fails=$((fails + 1)); }
|
|
27
32
|
|
|
28
|
-
rc="$(
|
|
33
|
+
rc="$(run_subject 'epic: land the milestone' GATE_SDK_COMMIT_TYPES='feat fix epic')"
|
|
29
34
|
[[ "$rc" -eq 0 ]] || { echo " FAIL: 'epic:' should pass a roster that includes it, exited $rc"; fails=$((fails + 1)); }
|
|
30
35
|
|
|
31
36
|
# A default-roster type must still fail against a narrowed roster that omits it.
|
|
32
|
-
rc="$(
|
|
37
|
+
rc="$(run_subject 'feat: add a thing' GATE_SDK_COMMIT_TYPES='fix')"
|
|
33
38
|
[[ "$rc" -eq 1 ]] || { echo " FAIL: 'feat:' should fail a roster of just 'fix', exited $rc"; fails=$((fails + 1)); }
|
|
34
39
|
|
|
35
40
|
# --- git-generated carve-outs (all pass regardless of roster) -----------------
|
|
@@ -59,10 +64,10 @@ for sub in 'feat add a thing' \
|
|
|
59
64
|
done
|
|
60
65
|
|
|
61
66
|
# --- edge behavior mirroring check-commit-msg ---------------------------------
|
|
62
|
-
"$
|
|
67
|
+
(gate_run check-commit-subject "$DIR/checks" >/dev/null 2>&1); rc=$?
|
|
63
68
|
[[ "$rc" -eq 0 ]] || { echo " FAIL: no-arg run should clean-skip (exit 0), exited $rc"; fails=$((fails + 1)); }
|
|
64
69
|
|
|
65
|
-
"$
|
|
70
|
+
(gate_run check-commit-subject "$DIR/checks" "$tmp/does-not-exist.txt" >/dev/null 2>&1); rc=$?
|
|
66
71
|
[[ "$rc" -eq 2 ]] || { echo " FAIL: missing message file should fail-closed (exit 2), exited $rc"; fails=$((fails + 1)); }
|
|
67
72
|
|
|
68
73
|
if [[ "$fails" -gt 0 ]]; then
|
|
@@ -4,8 +4,7 @@ set -uo pipefail
|
|
|
4
4
|
source "$(dirname "${BASH_SOURCE[0]}")/../lib/test-hermetic.sh"
|
|
5
5
|
|
|
6
6
|
ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
|
|
7
|
-
|
|
8
|
-
[[ -x "$GATE" ]] || { echo "check-core-files.test: gate not found: $GATE"; exit 2; }
|
|
7
|
+
CHECKS="$ROOT/gate-sdk/checks"
|
|
9
8
|
|
|
10
9
|
sb="$(mktemp -d)"
|
|
11
10
|
trap 'rm -rf "$sb"' EXIT
|
|
@@ -21,7 +20,7 @@ git -C "$sb" add -A
|
|
|
21
20
|
git -C "$sb" commit -qm seed
|
|
22
21
|
|
|
23
22
|
fails=0
|
|
24
|
-
run() { ( cd "$sb" && GATE_SDK_KIT_DIRS="alpha-kit beta-kit"
|
|
23
|
+
run() { ( cd "$sb" && GATE_SDK_KIT_DIRS="alpha-kit beta-kit" gate_run check-core-files "$CHECKS" "$1" 2>&1 ); }
|
|
25
24
|
|
|
26
25
|
# A kit: line expands to one path per root; every expansion exists, so the gate is clean
|
|
27
26
|
# and its count proves the derivation ran (2 derived + 1 hand line).
|
|
@@ -35,13 +34,13 @@ mkdir -p "$sb/gamma-kit"
|
|
|
35
34
|
printf 'g\n' > "$sb/gamma-kit/other.md"
|
|
36
35
|
git -C "$sb" add -A
|
|
37
36
|
git -C "$sb" commit -qm gamma
|
|
38
|
-
out="$( cd "$sb" && GATE_SDK_KIT_DIRS="alpha-kit beta-kit gamma-kit"
|
|
37
|
+
out="$( cd "$sb" && GATE_SDK_KIT_DIRS="alpha-kit beta-kit gamma-kit" gate_run check-core-files "$CHECKS" good.list 2>&1 )"; rc=$?
|
|
39
38
|
[[ "$rc" -eq 1 ]] || { echo "FAIL [new-root-reds]: expected exit 1, got $rc: $out"; fails=$((fails + 1)); }
|
|
40
39
|
grep -qF 'missing: gamma-kit/SPEC.md' <<<"$out" || { echo "FAIL [new-root-names]: $out"; fails=$((fails + 1)); }
|
|
41
40
|
|
|
42
41
|
# An untracked expansion reds on the tracked half of the invariant, not just existence.
|
|
43
42
|
printf 'u\n' > "$sb/gamma-kit/SPEC.md"
|
|
44
|
-
out="$( cd "$sb" && GATE_SDK_KIT_DIRS="alpha-kit beta-kit gamma-kit"
|
|
43
|
+
out="$( cd "$sb" && GATE_SDK_KIT_DIRS="alpha-kit beta-kit gamma-kit" gate_run check-core-files "$CHECKS" good.list 2>&1 )"; rc=$?
|
|
45
44
|
[[ "$rc" -eq 1 ]] || { echo "FAIL [untracked-reds]: expected exit 1, got $rc: $out"; fails=$((fails + 1)); }
|
|
46
45
|
grep -qF 'untracked: gamma-kit/SPEC.md' <<<"$out" || { echo "FAIL [untracked-names]: $out"; fails=$((fails + 1)); }
|
|
47
46
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 alpha-kit/checks/check-alpha.sh
|
|
2
2
|
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 alpha-kit/kpis/kpi-alpha.sh
|
|
3
|
-
|
|
3
|
+
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 alpha-kit/bin/tool.sh
|
|
4
4
|
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 scripts/check-consumer.sh
|
|
5
|
+
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 alpha-kit/checks/check-descriptor.gate
|
|
5
6
|
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 alpha-kit/lib/helper.sh
|
|
6
7
|
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 alpha-kit/gate-tests/check-x/bad/beta-kit/checks/check-beta.sh
|
|
7
8
|
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 README.md
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
.gate descriptor(s) committed executable
|
|
2
|
+
alpha-kit/checks/check-descriptor.gate (index mode 100755)
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 alpha-kit/kpis/kpi-alpha.sh
|
|
3
3
|
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 alpha-kit/bin/tool.sh
|
|
4
4
|
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 scripts/check-consumer.sh
|
|
5
|
+
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 alpha-kit/checks/check-descriptor.gate
|
|
6
|
+
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 scripts/check-consumer-native.gate
|
|
7
|
+
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 alpha-kit/gate-tests/check-x/bad/beta-kit/checks/check-pruned.gate
|
|
5
8
|
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 alpha-kit/lib/helper.sh
|
|
6
9
|
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 alpha-kit/gate-tests/check-x/bad/beta-kit/checks/check-beta.sh
|
|
7
10
|
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 README.md
|
|
@@ -1 +1 @@
|
|
|
1
|
-
EXEC-BIT: clean
|
|
1
|
+
EXEC-BIT: clean (4 by-path-invoked script(s) at index mode 100755; 2 .gate descriptor(s) non-executable)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# Behavioral test of
|
|
2
|
+
# Behavioral test of check-exec-bit — the live `git ls-files` path the
|
|
3
3
|
# hermetic dump fixtures (argument mode) cannot exercise. Builds a temp git repo,
|
|
4
4
|
# stages a KPI plugin at index mode 100644 (red), re-stages it 100755 (green) —
|
|
5
5
|
# the exact silent-degradation the gate exists to catch.
|
|
@@ -9,7 +9,6 @@ set -uo pipefail
|
|
|
9
9
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
10
10
|
|
|
11
11
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # gate-sdk/
|
|
12
|
-
GATE="$DIR/checks/check-exec-bit.sh"
|
|
13
12
|
SANDBOX="$(mktemp -d)"
|
|
14
13
|
trap 'rm -rf "$SANDBOX"' EXIT
|
|
15
14
|
|
|
@@ -22,7 +21,7 @@ git -C "$repo" add somekit/kpis/kpi-x.sh
|
|
|
22
21
|
|
|
23
22
|
# --- index mode 100644: red (a by-path-invoked plugin that will fail to run) ---
|
|
24
23
|
git -C "$repo" update-index --chmod=-x somekit/kpis/kpi-x.sh
|
|
25
|
-
out="$( cd "$repo" && "$
|
|
24
|
+
out="$( cd "$repo" && gate_run check-exec-bit "$DIR/checks" 2>&1 )"; rc=$?
|
|
26
25
|
if [[ "$rc" -ne 1 ]]; then
|
|
27
26
|
echo " FAIL [644-red]: want exit 1, got $rc -- $out"; fails=$((fails + 1))
|
|
28
27
|
elif ! grep -qF 'not committed executable' <<<"$out"; then
|
|
@@ -31,7 +30,7 @@ fi
|
|
|
31
30
|
|
|
32
31
|
# --- index mode 100755: green ---
|
|
33
32
|
git -C "$repo" update-index --chmod=+x somekit/kpis/kpi-x.sh
|
|
34
|
-
out="$( cd "$repo" && "$
|
|
33
|
+
out="$( cd "$repo" && gate_run check-exec-bit "$DIR/checks" 2>&1 )"; rc=$?
|
|
35
34
|
if [[ "$rc" -ne 0 ]]; then
|
|
36
35
|
echo " FAIL [755-green]: want exit 0, got $rc -- $out"; fails=$((fails + 1))
|
|
37
36
|
elif ! grep -qF 'EXEC-BIT: clean' <<<"$out"; then
|
|
@@ -1 +1 @@
|
|
|
1
|
-
GATE-ASSERTIONS: clean (2 enumerated contract(s) coupled)
|
|
1
|
+
GATE-ASSERTIONS: clean (2 of 2 enumerated contract(s) coupled)
|