checkwright 0.23.0 → 0.25.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 +175 -13
- 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/README.md +2 -0
- package/payload/canon-kit/SPEC.md +454 -28
- package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
- package/payload/canon-kit/checks/check-amendment-update-target.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/checks/check-unmarked-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-amendment-update-target/bad/SPEC-thing.md +26 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +47 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +82 -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/gate-tests/check-unmarked-claim/bad/SPEC.md +11 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +18 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +85 -0
- package/payload/canon-kit/lib/spec.sh +16 -0
- package/payload/canon-kit/smoke/install.sh +3 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +17 -2
- package/payload/context-kit/README.md +6 -4
- package/payload/context-kit/SPEC.md +256 -76
- 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/README.md +11 -1
- package/payload/delegation-kit/SPEC.md +652 -11
- package/payload/delegation-kit/bin/wait-probe.sh +184 -0
- 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/gate-tests/subagent-stop-liveness.test.sh +99 -0
- package/payload/delegation-kit/smoke/install.sh +21 -1
- package/payload/delegation-kit/templates/agent-execution.md +88 -4
- package/payload/delegation-kit/templates/subagent-stop-liveness.sh +56 -0
- 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 +17 -9
- package/payload/gate-sdk/SPEC.md +4680 -295
- package/payload/gate-sdk/bin/build-native.sh +66 -1
- 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 +137 -13
- package/payload/gate-sdk/bin/upgrade-smoke.sh +21 -16
- package/payload/gate-sdk/checks/check-action-run-shell.sh +2 -1
- 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.gate +3 -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 +132 -15
- 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.gate +3 -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-assertions/bad/expect.txt +5 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +22 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-count.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-extra.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-zero.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +27 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-qux.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +117 -0
- 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 +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kit-spec.md +6 -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-nospec.sh +4 -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/check-ungrounded.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +6 -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/kit-spec.md +12 -0
- 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 +5 -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/check-tree-terms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/multi.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/second-leak.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/worktrees/vendored-note.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +94 -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 +28 -1
- package/payload/guard-kit/README.md +4 -3
- package/payload/guard-kit/SPEC.md +578 -47
- package/payload/guard-kit/bin/compare-settings-allow.sh +36 -12
- package/payload/guard-kit/bin/run-guard-tests.sh +27 -4
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +46 -1
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
- package/payload/guard-kit/guard-tests/background-cases.tsv +14 -0
- package/payload/guard-kit/guard-tests/cases.tsv +67 -9
- package/payload/guard-kit/lib/guard.sh +361 -18
- package/payload/guard-kit/templates/bash-guard.sh +2 -0
- package/payload/guard-kit/templates/close-triage.md +10 -3
- package/payload/guard-kit/templates/guard-config.sh +3 -0
- package/payload/lifecycle-kit/README.md +3 -2
- package/payload/lifecycle-kit/SPEC.md +509 -77
- 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 +32 -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 +379 -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 +41 -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-assertions.sh +0 -148
- 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-tree-terms.sh +0 -66
- 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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=scripts/gates.list,kit:checks/*,gate-sdk/SPEC.md,native/*,.github/workflows/publish.yml dir=one valve=none tier=precommit
|
|
2
|
+
# graph: couples=scripts/gates.list,kit:checks/*,gate-sdk/SPEC.md,kit: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,40 @@ fail_closed "$st" check-gate-substrate-parity awk
|
|
|
44
45
|
|
|
45
46
|
findings=()
|
|
46
47
|
|
|
47
|
-
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion H opens the section the
|
|
49
|
+
# declaration's own pointer names, so the depth is the matched heading's own and the body runs
|
|
50
|
+
# to the next heading at that depth or shallower: the two live heading levels need no special case
|
|
51
|
+
spec_section_body() {
|
|
52
|
+
awk -v want="$2" '
|
|
53
|
+
function level(s) { match(s, /^#+/); return RLENGTH }
|
|
54
|
+
/^#+[[:space:]]/ {
|
|
55
|
+
if (inb && level($0) <= lvl) inb = 0
|
|
56
|
+
t = $0; sub(/^#+[[:space:]]*/, "", t); sub(/[[:space:]]+$/, "", t)
|
|
57
|
+
if (!inb && t == want) { inb = 1; lvl = level($0); next }
|
|
58
|
+
}
|
|
59
|
+
inb { print }
|
|
60
|
+
' "$1"
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
CRATE="$(gate_native_crate)"
|
|
64
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the publishing test is `gate_authoring_tree`
|
|
65
|
+
# (§lib/gate.sh), computed once and read twice: by assertion B's consumer-declared scope clause and
|
|
66
|
+
# assertion F's missing-roster arm. One holder, shared with §check-gate-exemption-tasks' scope rule
|
|
67
|
+
publishing_tree=0
|
|
68
|
+
gate_authoring_tree && publishing_tree=1
|
|
69
|
+
|
|
70
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion B's owner column: a kit
|
|
71
|
+
# directory basename, or CONSUMER_OWNER for a member the consumer's own gates directory declares
|
|
72
|
+
CONSUMER_OWNER='-'
|
|
73
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion B's two-clause scope rule: a
|
|
74
|
+
# kit-owned subcommand is in scope iff this tree vendored that kit, and a consumer-declared one
|
|
75
|
+
# iff this is the tree that declared it, which is the tree carrying the crate's tracked source
|
|
76
|
+
subcommand_in_scope() {
|
|
77
|
+
if [[ "$1" == "$CONSUMER_OWNER" ]]; then
|
|
78
|
+
[[ "$publishing_tree" == 1 ]]
|
|
79
|
+
return
|
|
80
|
+
fi
|
|
81
|
+
printf '%s\n' "${KIT_NAMES[@]+"${KIT_NAMES[@]}"}" | grep -qx -- "$1"
|
|
53
82
|
}
|
|
54
83
|
|
|
55
84
|
# assertion A: each member resolves to exactly one declaration — a dir carrying
|
|
@@ -59,6 +88,15 @@ declared=0
|
|
|
59
88
|
# a registered member resolving to one is a dispatch, and only a dispatch makes the binary
|
|
60
89
|
# load-bearing. Derived here because assertion A already resolves every member.
|
|
61
90
|
dispatching=0
|
|
91
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion G's two counters, derived in
|
|
92
|
+
# assertion A's own loop because the declaration set and its spelling are exactly its output
|
|
93
|
+
declpaths_shell=0
|
|
94
|
+
noport_declared=0
|
|
95
|
+
portuntil_declared=0
|
|
96
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion H's one new datum: the count of
|
|
97
|
+
# held declarations whose ground was verified, read by the session choosing the next cohort cut,
|
|
98
|
+
# for which a zero in a tree that declares holds is the vacuous-pass tell
|
|
99
|
+
portuntil_grounded=0
|
|
62
100
|
for m in "${MEMBERS[@]}"; do
|
|
63
101
|
for d in "${RESOLVE_DIRS[@]}"; do
|
|
64
102
|
if [[ -f "$d/$m.sh" && -f "$d/$m.gate" ]]; then
|
|
@@ -71,6 +109,73 @@ for m in "${MEMBERS[@]}"; do
|
|
|
71
109
|
fi
|
|
72
110
|
[[ "$src" == *.gate ]] && dispatching=$((dispatching + 1))
|
|
73
111
|
declared=$((declared + 1))
|
|
112
|
+
|
|
113
|
+
# assertion G: the port declaration lives on the shell spelling and carries a cause —
|
|
114
|
+
# a descriptor's existence is already the dispatch declaration, so a `# no-port:` line
|
|
115
|
+
# there asserts the negation of the file it sits in
|
|
116
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity
|
|
117
|
+
noport="$(grep -cE '^#[[:space:]]*no-port:' "$src")" || noport=0
|
|
118
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the held field's clauses are the
|
|
119
|
+
# permanent field's over a second spelling, plus the one neither owns alone: a declaration
|
|
120
|
+
# asserting both makes the two exclusion counts in port-blockers' trailer overlap
|
|
121
|
+
portuntil="$(grep -cE '^#[[:space:]]*port-until:' "$src")" || portuntil=0
|
|
122
|
+
if [[ "$src" == *.gate ]]; then
|
|
123
|
+
[[ "$noport" -gt 0 ]] \
|
|
124
|
+
&& 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")
|
|
125
|
+
[[ "$portuntil" -gt 0 ]] \
|
|
126
|
+
&& 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")
|
|
127
|
+
else
|
|
128
|
+
declpaths_shell=$((declpaths_shell + 1))
|
|
129
|
+
if [[ "$noport" -gt 1 ]]; then
|
|
130
|
+
findings+=("more than one port declaration: $src carries $noport '# no-port:' lines — a declaration carries at most one")
|
|
131
|
+
elif [[ "$noport" -eq 1 ]]; then
|
|
132
|
+
noport_declared=$((noport_declared + 1))
|
|
133
|
+
cause="$(grep -E '^#[[:space:]]*no-port:' "$src" | head -n 1)"
|
|
134
|
+
cause="${cause#*no-port:}"
|
|
135
|
+
[[ -n "${cause//[[:space:]]/}" ]] \
|
|
136
|
+
|| 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")
|
|
137
|
+
fi
|
|
138
|
+
if [[ "$portuntil" -gt 1 ]]; then
|
|
139
|
+
findings+=("more than one hold declaration: $src carries $portuntil '# port-until:' lines — a declaration carries at most one")
|
|
140
|
+
elif [[ "$portuntil" -eq 1 ]]; then
|
|
141
|
+
portuntil_declared=$((portuntil_declared + 1))
|
|
142
|
+
slug="$(grep -E '^#[[:space:]]*port-until:' "$src" | head -n 1)"
|
|
143
|
+
slug="${slug#*port-until:}"
|
|
144
|
+
[[ -n "${slug//[[:space:]]/}" ]] \
|
|
145
|
+
|| 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")
|
|
146
|
+
|
|
147
|
+
# assertion H: a held declaration's ground is reachable in one hop — the section
|
|
148
|
+
# the declaration's own `# spec:` field names states the hold, so a reader arriving
|
|
149
|
+
# at the declaration reaches the ground without resolving anything else
|
|
150
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity
|
|
151
|
+
specfield="$(grep -E '^#[[:space:]]*spec:' "$src" | head -n 1)"
|
|
152
|
+
target="${specfield#*spec:}"
|
|
153
|
+
target="${target%% — *}"
|
|
154
|
+
target="${target#"${target%%[![:space:]]*}"}"
|
|
155
|
+
target="${target%"${target##*[![:space:]]}"}"
|
|
156
|
+
if [[ -z "$specfield" || "$target" != *§* ]]; then
|
|
157
|
+
findings+=("hold ground unreachable: $src carries '# port-until:' but no '# spec:' header field naming a section — a held member's ground lives in its own SPEC section, one hop from the declaration")
|
|
158
|
+
else
|
|
159
|
+
specpath="${target%%§*}"
|
|
160
|
+
spechead="${target#*§}"
|
|
161
|
+
specpath="${specpath%"${specpath##*[![:space:]]}"}"
|
|
162
|
+
spechead="${spechead#"${spechead%%[![:space:]]*}"}"
|
|
163
|
+
if [[ ! -r "$specpath" ]]; then
|
|
164
|
+
echo "check-gate-substrate-parity: $src points its '# spec:' field at $specpath, which is unreadable — assertion H could not read its corpus; treating as failure (not clean)" >&2
|
|
165
|
+
exit 2
|
|
166
|
+
fi
|
|
167
|
+
body="$(spec_section_body "$specpath" "$spechead")"; st=$?
|
|
168
|
+
fail_closed "$st" check-gate-substrate-parity "awk section($specpath)"
|
|
169
|
+
if grep -q 'port-until' <<<"$body"; then
|
|
170
|
+
portuntil_grounded=$((portuntil_grounded + 1))
|
|
171
|
+
else
|
|
172
|
+
findings+=("hold ground not in the pointed-at section: $src declares '# port-until:' and points at $specpath §$spechead, whose body never names the field — the section a reader reaches from the declaration is where the hold's ground lives")
|
|
173
|
+
fi
|
|
174
|
+
fi
|
|
175
|
+
fi
|
|
176
|
+
[[ "$noport" -gt 0 && "$portuntil" -gt 0 ]] \
|
|
177
|
+
&& findings+=("contradictory port declarations: $src carries both '# no-port:' and '# port-until:' — permanent and temporarily-held are opposite verdicts about the same member")
|
|
178
|
+
fi
|
|
74
179
|
done
|
|
75
180
|
|
|
76
181
|
# assertion B: the .gate descriptors on disk and the binary's reported subcommand
|
|
@@ -121,12 +226,12 @@ if [[ -x "$BIN" ]]; then
|
|
|
121
226
|
printf '%s\n' "${subcommands[@]}" | grep -qx -- "$g" \
|
|
122
227
|
|| findings+=("descriptor names no subcommand: $g.gate declares a gate the binary does not carry")
|
|
123
228
|
done
|
|
124
|
-
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the roster half speaks only for
|
|
125
|
-
#
|
|
126
|
-
#
|
|
229
|
+
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the roster half speaks only for what
|
|
230
|
+
# this tree declared: a subcommand from an unvendored kit, or consumer-declared elsewhere, is
|
|
231
|
+
# out of scope rather than stranded, and it is counted rather than dropped silently
|
|
127
232
|
for i in "${!subcommands[@]}"; do
|
|
128
233
|
s="${subcommands[$i]}"
|
|
129
|
-
if [[ "$owner_state" == scoped ]] && !
|
|
234
|
+
if [[ "$owner_state" == scoped ]] && ! subcommand_in_scope "${owners[$i]}"; then
|
|
130
235
|
out_of_scope=$((out_of_scope + 1))
|
|
131
236
|
continue
|
|
132
237
|
fi
|
|
@@ -185,7 +290,6 @@ fi
|
|
|
185
290
|
# assertion E: opacity is held by structure — a ported gate's implementation source
|
|
186
291
|
# may not reach the vendoring set, whose members are exactly the kit roots
|
|
187
292
|
# spec: gate-sdk/SPEC.md §Consumer payload
|
|
188
|
-
CRATE="$(gate_native_crate)"
|
|
189
293
|
declare -A DESCRIPTOR_SET=()
|
|
190
294
|
for g in "${DESCRIPTORS[@]+"${DESCRIPTORS[@]}"}"; do DESCRIPTOR_SET["$g"]=1; done
|
|
191
295
|
kit_scanned=0
|
|
@@ -229,7 +333,7 @@ if [[ -f "$ROSTER" ]]; then
|
|
|
229
333
|
[[ "$t" =~ ^[A-Za-z0-9_]+(-[A-Za-z0-9_.]+){2,3}$ ]] \
|
|
230
334
|
|| findings+=("malformed target triple: '$t' in $ROSTER is not <arch>-<vendor>-<os>[-<env>]")
|
|
231
335
|
done
|
|
232
|
-
elif [[ "$dispatching" -gt 0
|
|
336
|
+
elif [[ "$dispatching" -gt 0 && "$publishing_tree" == 1 ]]; then
|
|
233
337
|
# spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion F rides the corrected
|
|
234
338
|
# predicate *and* the publishing-tree test: declaring platform support is the act of the tree
|
|
235
339
|
# that builds and publishes the artifact, and a consumer receives kit roots but never the crate
|
|
@@ -321,13 +425,26 @@ if [[ ${#findings[@]} -gt 0 ]]; then
|
|
|
321
425
|
echo " workflow's matrix from it rather than spelling a platform there, and"
|
|
322
426
|
echo " emit each artifact's digest in exactly one step, where its bytes are"
|
|
323
427
|
echo " produced. A runner mapping may name a platform; a matrix may not."
|
|
428
|
+
echo " help: a '# no-port:' line declares a member the port will never take — it goes on"
|
|
429
|
+
echo " the <name>.sh declaration only, at most once, and its cause names the SPEC"
|
|
430
|
+
echo " section ruling the member permanent. A ported member has no port question"
|
|
431
|
+
echo " left to declare, so drop the line rather than copying it into a descriptor."
|
|
432
|
+
echo " help: a '# port-until: <slug>' line declares a member the port still owes but cannot"
|
|
433
|
+
echo " take yet, and names the live queue entry owning the blocker. Same domain and"
|
|
434
|
+
echo " cardinality as '# no-port:', and never both on one declaration — permanent and"
|
|
435
|
+
echo " temporarily-held are opposite verdicts about the same member."
|
|
436
|
+
echo " help: a held member's ground lives in its own SPEC section, one hop from the"
|
|
437
|
+
echo " declaration — give the declaration a '# spec: <path> §<section>' field and"
|
|
438
|
+
echo " state the hold in that section, naming 'port-until'. A ground reachable"
|
|
439
|
+
echo " only through a queue entry or a shared worked-example passage is the one"
|
|
440
|
+
echo " placement the field must not normalise."
|
|
324
441
|
exit 1
|
|
325
442
|
fi
|
|
326
443
|
|
|
327
444
|
if [[ "$roster_read" == 1 ]]; then
|
|
328
|
-
roster="${#DESCRIPTORS[@]} descriptor(s) in parity with the ${#subcommands[@]}-subcommand roster ($in_scope in scope, $out_of_scope
|
|
445
|
+
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
446
|
else
|
|
330
447
|
roster="${#DESCRIPTORS[@]} descriptor(s), no binary at $BIN so no subcommand roster to compare"
|
|
331
448
|
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)"
|
|
449
|
+
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; $portuntil_grounded of those held declaration(s) reach their ground in one hop, the section their own '# spec:' field names stating the hold; $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
450
|
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
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=scripts/msg-patterns.list dir=one valve=none tier=precommit trigger=*
|
|
2
|
+
# install: zero-config
|
|
3
|
+
# 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)
|
|
@@ -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,5 @@
|
|
|
1
|
-
missing marker(s): B
|
|
1
|
+
scripts/SPEC.md §check-foo: marker set [A] != contract span [A,B]; missing marker(s): B
|
|
2
|
+
scripts/SPEC.md §check-extra: marker set [A,B,C] != contract span [A,B]; extra marker(s): C
|
|
3
|
+
scripts/SPEC.md §check-count: count-word says 3 but the (X) span enumerates 2 label(s) [1,2] — the contract is internally inconsistent
|
|
4
|
+
scripts/SPEC.md §check-nowhere: enumerated contract but no gate code resolves for 'check-nowhere' (heading must name the script)
|
|
5
|
+
scripts/SPEC.md §check-zero: contract enumerates [A,B] but scripts/check-zero.sh carries zero `# assertion` markers (retrofit obligation)
|
|
@@ -11,3 +11,25 @@ gate verifies about foo; (B) the second thing the gate verifies about foo.
|
|
|
11
11
|
|
|
12
12
|
Invariant: baz is checked on three checks: (1) the first; (2) the second; (3)
|
|
13
13
|
the third.
|
|
14
|
+
|
|
15
|
+
### check-extra
|
|
16
|
+
|
|
17
|
+
Invariant: extra is held on two axes: (A) the first thing; (B) the second thing
|
|
18
|
+
— and the code grew a third marker the contract never gained, which is the
|
|
19
|
+
drift an internal count-vs-span check cannot see.
|
|
20
|
+
|
|
21
|
+
### check-count
|
|
22
|
+
|
|
23
|
+
Invariant: count is checked on three checks: (1) the first; (2) the second — the
|
|
24
|
+
count-word and the label span disagree, so the contract is internally
|
|
25
|
+
inconsistent whatever the code carries.
|
|
26
|
+
|
|
27
|
+
### check-nowhere
|
|
28
|
+
|
|
29
|
+
Invariant: nowhere is held on two assertions: (A) the first thing; (B) the
|
|
30
|
+
second thing — but no gate code resolves for the name this heading carries.
|
|
31
|
+
|
|
32
|
+
### check-zero
|
|
33
|
+
|
|
34
|
+
Invariant: zero is held on two axes: (A) the first thing; (B) the second thing —
|
|
35
|
+
and its code carries no marker at all, which is the retrofit obligation.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Synthetic gate for the check-gate-assertions bad-case fixture: its marker set
|
|
3
|
+
# matches the contract span exactly, so the only finding is the contract's own
|
|
4
|
+
# internal count-word-vs-span inconsistency.
|
|
5
|
+
set -uo pipefail
|
|
6
|
+
|
|
7
|
+
# assertion 1: the first count check
|
|
8
|
+
echo "checking count 1"
|
|
9
|
+
|
|
10
|
+
# assertion 2: the second count check
|
|
11
|
+
echo "checking count 2"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Synthetic gate for the check-gate-assertions bad-case fixture: the contract
|
|
3
|
+
# enumerates (A)+(B) and the code grew a third marker nobody wrote into the span.
|
|
4
|
+
# Must be REJECTED with an extra-marker finding.
|
|
5
|
+
set -uo pipefail
|
|
6
|
+
|
|
7
|
+
# assertion A: first thing the gate verifies about extra
|
|
8
|
+
echo "checking extra axis A"
|
|
9
|
+
|
|
10
|
+
# assertion B: second thing the gate verifies about extra
|
|
11
|
+
echo "checking extra axis B"
|
|
12
|
+
|
|
13
|
+
# assertion C: a third assertion the code grew with no contract label
|
|
14
|
+
echo "checking extra axis C"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Synthetic gate for the check-gate-assertions bad-case fixture: an enumerated
|
|
3
|
+
# contract exists but the code carries no marker at all -- the retrofit
|
|
4
|
+
# obligation, distinct from a marker set that merely disagrees.
|
|
5
|
+
set -uo pipefail
|
|
6
|
+
|
|
7
|
+
echo "checking zero, with nothing marked"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
GATE-ASSERTIONS: clean (
|
|
1
|
+
GATE-ASSERTIONS: clean (3 of 3 enumerated contract(s) coupled)
|
|
@@ -18,3 +18,30 @@ filter excludes non-enumerated contracts).
|
|
|
18
18
|
Invariant: baz is checked on three checks: (1) the first; (2) the second; (3)
|
|
19
19
|
the third — the count-word and the label span agree, so baz is a covered
|
|
20
20
|
contract.
|
|
21
|
+
|
|
22
|
+
### check-qux
|
|
23
|
+
|
|
24
|
+
Invariant: qux is held on two axes: (A) the first thing; (B) the second thing —
|
|
25
|
+
and its markers carry the `//` leader, the one every descriptor-declared
|
|
26
|
+
member's implementation module uses, so this contract proves the grammar reads a
|
|
27
|
+
code marker under either leader and under indentation.
|
|
28
|
+
|
|
29
|
+
### check-noun-filtered
|
|
30
|
+
|
|
31
|
+
Invariant: this one is settled on three grounds: (A) a labelled span is present;
|
|
32
|
+
(B) a second label follows it. The count-word's noun is not an enumeration noun,
|
|
33
|
+
so discovery excludes the heading — proved by greenness, since no gate code
|
|
34
|
+
resolves for this name and an unfiltered heading would red.
|
|
35
|
+
|
|
36
|
+
### check-paren-filtered
|
|
37
|
+
|
|
38
|
+
Invariant: this one holds on two axes (each described in the paragraph below):
|
|
39
|
+
(A) a labelled span is present; (B) a second label follows it. The first
|
|
40
|
+
parenthetical after the count-word is not a single-char label, so discovery
|
|
41
|
+
excludes the heading — again proved by greenness.
|
|
42
|
+
|
|
43
|
+
### check-single-filtered
|
|
44
|
+
|
|
45
|
+
Invariant: this one holds on two axes: (A) the only labelled item in the span.
|
|
46
|
+
Fewer than two distinct labels are enumerated, so discovery excludes the heading
|
|
47
|
+
— greenness proves the arity filter, not the resolver.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Synthetic gate for the check-gate-assertions good-case fixture. Its markers use
|
|
3
|
+
# the `//` leader rather than `#`, and the second is indented the way a module
|
|
4
|
+
# body's marker is: the leader is the substrate's and the marker is a code marker
|
|
5
|
+
# either way, so both spellings must be read.
|
|
6
|
+
set -uo pipefail
|
|
7
|
+
|
|
8
|
+
: <<'MARKERS'
|
|
9
|
+
// assertion A: the first thing the gate verifies about qux
|
|
10
|
+
// assertion B: the second thing the gate verifies about qux
|
|
11
|
+
MARKERS
|
|
12
|
+
|
|
13
|
+
echo "checking qux"
|