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
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=SPEC-*.md,*/SPEC-*.md,native/src/gates/amendment_update_target.rs,native/src/spec.rs dir=one valve=none tier=precommit
|
|
2
|
+
# install: zero-config
|
|
3
|
+
# spec: canon-kit/SPEC.md §check-amendment-update-target — every entry under an amendment's `## Existing sections updated` cites at least one delta and every cited delta is defined under `## What changes` in the same amendment, so an update target no delta claims stops at the gate rather than reaching build as an orphan a batch adopts on its own authority
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=docs/*.md,docs/*/index.md,docs/posts/*.md,native/src/gates/docs_link_convention.rs,native/src/fresh.rs dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: canon-kit/SPEC.md §check-docs-link-convention — docs pages cite downward: no directory-target relative link (name the file), a kit page's back-link to its own README/SPEC carries a #section anchor, no relative link to a target resolving outside the docs root
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=*SPEC*.md,*.rs,*.toml,*.sql,*.rego,*.ts,*.tsx,*.yaml,*.yml,*.proto,*.sh,Dockerfile dir=one valve=none tier=precommit
|
|
2
|
+
# install: zero-config
|
|
3
|
+
# spec: canon-kit/SPEC.md §check-spec-embedded-source — a canonical spec's fenced block must not verbatim-copy a tracked source file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=*.md,scripts/*.sh,kit:*.sh dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: canon-kit/SPEC.md §check-unmarked-claim — a paragraph matching a consumer-declared claim class carries a `measured:` marker: the class is the trigger and the marker one of three remedies, so a claim that must not go stale is bound to an oracle rather than left to authorial memory
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# SPEC amendment: orphan
|
|
2
|
+
|
|
3
|
+
An amendment on disk that no `[spec:]` queue entry pairs with, so the
|
|
4
|
+
bidirectional rule's disk→queue arm has a case. Its sibling `SPEC-tidy.md` is
|
|
5
|
+
the queue→disk arm's resolved reference; the two dangling refs in the queue are
|
|
6
|
+
that arm's failing half.
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## New Features
|
|
4
4
|
|
|
5
|
-
- **widget-support** —
|
|
5
|
+
- **widget-support** — a feature entry that is not spec-ready.
|
|
6
|
+
- **already-pending** [design-pending] [spec: SPEC-tidy.md] — a design-pending tag inside an active entry.
|
|
7
|
+
prose carrying a [design-pending] tag inside an active section
|
|
8
|
+
- **dangling-path** [spec: nested/SPEC-gone.md] — a path-shaped ref resolving to no file.
|
|
9
|
+
- **dangling-name** [spec: SPEC-gone.md] — a bare basename with no amendment on disk.
|
|
6
10
|
|
|
7
11
|
## Technical Debt
|
|
8
12
|
|
|
@@ -10,6 +14,7 @@
|
|
|
10
14
|
|
|
11
15
|
## Deferred
|
|
12
16
|
|
|
13
|
-
- **later-thing** — a
|
|
17
|
+
- **later-thing** — a deferred idea carrying no design-pending tag.
|
|
18
|
+
- **ready-in-deferred** [design-pending] [spec: SPEC-tidy.md] — tagged and already spec-ready.
|
|
14
19
|
|
|
15
20
|
## Done
|
|
@@ -1 +1,9 @@
|
|
|
1
|
+
feature-section entries without [spec:]
|
|
2
|
+
[design-pending] tag in an active-queue entry
|
|
3
|
+
[design-pending] tag in active-queue prose
|
|
4
|
+
design-pending-section entries without [design-pending]
|
|
5
|
+
design-pending-section entries already carrying [spec:]
|
|
1
6
|
misfiled in an active non-feature section
|
|
7
|
+
queue references [spec: nested/SPEC-gone.md] but no such file exists at that path
|
|
8
|
+
queue references [spec: SPEC-gone.md] but no amendment file named SPEC-gone.md exists on disk
|
|
9
|
+
amendment on disk with no queue entry: ./SPEC-orphan.md
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# SPEC amendment: thing
|
|
2
|
+
|
|
3
|
+
## What changes
|
|
4
|
+
|
|
5
|
+
### A1. the bold-token grammar {design-bearing}
|
|
6
|
+
|
|
7
|
+
The grammar arm A rejects: a delta the citation rule cannot name.
|
|
8
|
+
|
|
9
|
+
### (1) The first delta
|
|
10
|
+
|
|
11
|
+
Body prose.
|
|
12
|
+
|
|
13
|
+
### (3) The delta numbered past the gap
|
|
14
|
+
|
|
15
|
+
A gap means a delta was split or dropped without its citations moving.
|
|
16
|
+
|
|
17
|
+
## Existing sections updated
|
|
18
|
+
|
|
19
|
+
- **surface/one.md** — the target a batch would adopt on its own authority,
|
|
20
|
+
named here with no delta behind it at all.
|
|
21
|
+
- **surface/two.md** — carried by a delta that was renumbered out from under
|
|
22
|
+
it (delta 7).
|
|
23
|
+
|
|
24
|
+
## Definition of Done
|
|
25
|
+
|
|
26
|
+
- [ ] **Causal completeness** — the fixture asserts nothing here.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
delta headings outside the '### (<N>) <title>' form
|
|
2
|
+
SPEC-thing.md:5: ### A1. the bold-token grammar {design-bearing}
|
|
3
|
+
delta numbers that are not 1..n unique and ascending
|
|
4
|
+
SPEC-thing.md:13: delta (3) stands where (2) is owed
|
|
5
|
+
update targets citing no delta
|
|
6
|
+
SPEC-thing.md:19: - **surface/one.md**
|
|
7
|
+
citations naming a delta the amendment does not define
|
|
8
|
+
SPEC-thing.md:22: cites delta 7, which no '### (7)' heading defines
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# SPEC amendment: widget
|
|
2
|
+
|
|
3
|
+
Pairs with the queue entry this fixture does not carry — the pairing is
|
|
4
|
+
`check-amendment-queue`'s axis, not this gate's.
|
|
5
|
+
|
|
6
|
+
## What changes
|
|
7
|
+
|
|
8
|
+
### (1) The first delta
|
|
9
|
+
|
|
10
|
+
Body prose.
|
|
11
|
+
|
|
12
|
+
### (2) The second delta, whose body embeds a fenced block
|
|
13
|
+
|
|
14
|
+
The template sanctions an embedded wire-contract delta until merge, so a fence
|
|
15
|
+
must read as neither a delta heading nor an update target:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
### (9) not a heading
|
|
19
|
+
- **not/a/target.md** — and no citation anywhere in it
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### (3) The third delta
|
|
23
|
+
|
|
24
|
+
Body prose.
|
|
25
|
+
|
|
26
|
+
## Producers and consumers
|
|
27
|
+
|
|
28
|
+
Out of this gate's reach; present so the fixture is a whole amendment.
|
|
29
|
+
|
|
30
|
+
## Existing sections updated
|
|
31
|
+
|
|
32
|
+
Each names the delta that owns it.
|
|
33
|
+
|
|
34
|
+
- **component/SPEC.md §One** — a citation that wraps across the newline the
|
|
35
|
+
entry is written to (delta
|
|
36
|
+
1).
|
|
37
|
+
- **component/SPEC.md §Two** — a list citation (deltas 2, 3) and a possessive
|
|
38
|
+
one, since delta 2's argument is what this target carries.
|
|
39
|
+
- **component/README.md** — a list joined by the word rather than the comma
|
|
40
|
+
(deltas 1 and 3).
|
|
41
|
+
<!-- update-target-exempt: the valve, exercised — this target is owned by no delta on purpose -->
|
|
42
|
+
- **component/CHANGELOG.md** — deliberately owned by no delta, and tagged.
|
|
43
|
+
- **The generated mirror** — stale the moment any delta lands (all deltas).
|
|
44
|
+
|
|
45
|
+
## Definition of Done
|
|
46
|
+
|
|
47
|
+
- [ ] **Causal completeness** — the fixture asserts nothing here.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
AMENDMENT-UPDATE-TARGET: clean (1 amendment(s), 3 delta(s) defined; 4 update target(s)
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Behavioral test of the arms the one-pair good/bad harness cannot spell: the
|
|
3
|
+
# three fail-closed exits and the empty-corpus clean. A pair asserts one exit
|
|
4
|
+
# code per case dir, so exit 2 has no pair spelling at all, and the
|
|
5
|
+
# no-amendment clean needs a case dir with no amendment in it — which the pair's
|
|
6
|
+
# own good/ cannot also be.
|
|
7
|
+
#
|
|
8
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
9
|
+
set -uo pipefail
|
|
10
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
11
|
+
|
|
12
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # canon-kit/
|
|
13
|
+
SANDBOX="$(mktemp -d)"
|
|
14
|
+
trap 'chmod -R u+rwX "$SANDBOX" 2>/dev/null; rm -rf "$SANDBOX"' EXIT
|
|
15
|
+
|
|
16
|
+
fails=0
|
|
17
|
+
|
|
18
|
+
check_case() { # $1=label $2=want-rc $3=want-substring $4=scan root
|
|
19
|
+
local label="$1" want="$2" sub="$3" root="$4"
|
|
20
|
+
local out rc
|
|
21
|
+
out="$(cd "$SANDBOX" && gate_run check-amendment-update-target "$DIR/checks" "$root" 2>&1)"
|
|
22
|
+
rc=$?
|
|
23
|
+
if [[ "$rc" -ne "$want" ]]; then
|
|
24
|
+
echo " FAIL [$label]: want exit $want, got $rc -- $out"; fails=$((fails + 1)); return
|
|
25
|
+
fi
|
|
26
|
+
if [[ -n "$sub" ]] && ! grep -qF -- "$sub" <<<"$out"; then
|
|
27
|
+
echo " FAIL [$label]: exit $rc OK but output lacks '$sub':"; printf ' %s\n' "$out"
|
|
28
|
+
fails=$((fails + 1))
|
|
29
|
+
fi
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
# An empty corpus is clean, and it is the state a fresh consumer installs into.
|
|
33
|
+
# It is *only* safe to call clean because the finder below refuses rather than
|
|
34
|
+
# returning empty when the walk fails.
|
|
35
|
+
mkdir -p "$SANDBOX/empty"
|
|
36
|
+
check_case "no-amendment-is-clean" 0 "0 amendment(s)" "$SANDBOX/empty"
|
|
37
|
+
|
|
38
|
+
# A scan root that is not a directory at all.
|
|
39
|
+
mkdir -p "$SANDBOX/notdir"
|
|
40
|
+
: >"$SANDBOX/notdir/file"
|
|
41
|
+
check_case "non-directory-root-fails-closed" 2 "not a directory" "$SANDBOX/notdir/file"
|
|
42
|
+
|
|
43
|
+
# An amendment listing update targets with no delta section: every entry is
|
|
44
|
+
# unowned and the gate cannot say which arm to blame, so it refuses.
|
|
45
|
+
mkdir -p "$SANDBOX/nowhat"
|
|
46
|
+
cat >"$SANDBOX/nowhat/SPEC-x.md" <<'EOF'
|
|
47
|
+
# SPEC amendment: x
|
|
48
|
+
|
|
49
|
+
## Existing sections updated
|
|
50
|
+
|
|
51
|
+
- **component/SPEC.md** — an update target in an amendment with no deltas.
|
|
52
|
+
EOF
|
|
53
|
+
check_case "updated-without-what-changes-fails-closed" 2 "but no '## What changes'" "$SANDBOX/nowhat"
|
|
54
|
+
|
|
55
|
+
# The two permission-shaped refusals. A tree where the sandbox owner can read
|
|
56
|
+
# what it just made unreadable proves nothing, so each is probed before it is
|
|
57
|
+
# asserted rather than assumed to hold for whoever runs this.
|
|
58
|
+
mkdir -p "$SANDBOX/unread"
|
|
59
|
+
printf '%s\n' '# SPEC amendment: y' >"$SANDBOX/unread/SPEC-y.md"
|
|
60
|
+
chmod 000 "$SANDBOX/unread/SPEC-y.md"
|
|
61
|
+
if cat "$SANDBOX/unread/SPEC-y.md" >/dev/null 2>&1; then
|
|
62
|
+
echo " SKIP [unreadable-amendment-fails-closed]: this user reads a 0000 file"
|
|
63
|
+
else
|
|
64
|
+
check_case "unreadable-amendment-fails-closed" 2 "cannot read" "$SANDBOX/unread"
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
mkdir -p "$SANDBOX/unwalk/sub"
|
|
68
|
+
chmod 000 "$SANDBOX/unwalk/sub"
|
|
69
|
+
if ls "$SANDBOX/unwalk/sub" >/dev/null 2>&1; then
|
|
70
|
+
echo " SKIP [unwalkable-root-fails-closed]: this user walks a 0000 directory"
|
|
71
|
+
else
|
|
72
|
+
# The divergence from check-amendment-queue's best-effort finder, executable:
|
|
73
|
+
# an empty amendment set hides every violation here, so the walk refuses.
|
|
74
|
+
check_case "unwalkable-root-fails-closed" 2 "cannot read directory" "$SANDBOX/unwalk"
|
|
75
|
+
fi
|
|
76
|
+
|
|
77
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
78
|
+
echo "check-amendment-update-target.test.sh: $fails case(s) failed"
|
|
79
|
+
exit 1
|
|
80
|
+
fi
|
|
81
|
+
echo "check-amendment-update-target.test.sh: clean (an empty corpus is clean; a bad root, an unreadable amendment and an update-target section with no deltas each refuse)"
|
|
82
|
+
exit 0
|
|
@@ -23,3 +23,6 @@ quux() { echo w; }
|
|
|
23
23
|
# spec: some/SPEC.md §wrap — this window pins two comment
|
|
24
24
|
# gates across the line break, a wrapped total no per-line scan reads.
|
|
25
25
|
corge() { echo v; }
|
|
26
|
+
|
|
27
|
+
# port: the bare word is not a roster entry, so this line is prose and is flagged
|
|
28
|
+
grault() { echo u; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
restated collection total: rules 1-8
|
|
2
|
+
bad.sh:27: port: the bare word is not a roster entry, so this line is prose and is flagged
|
|
2
3
|
bad.gate:4: this descriptor comment cites no owning section and carries no directive
|
|
3
4
|
bad.rs:3: this crate comment restates the line below it and cites no owning section
|
|
4
5
|
templates/bad-tmpl.sh:2: this templates stub comment paraphrases its own body and carries no directive
|
|
@@ -25,6 +25,9 @@ bar() { echo bye; }
|
|
|
25
25
|
# smoke-unregistered: check-example — a machine directive run-consumer-smoke.sh parses off the vendored copy, so it is blessed by name like graph:/contract: rather than needing an exempt tag
|
|
26
26
|
baz() { echo sm; }
|
|
27
27
|
|
|
28
|
+
# no-port: some/SPEC.md §thing — a declaration's port verdict, blessed by name off the built-in roster; the shell spelling is where the field lives
|
|
29
|
+
qux2() { echo np; }
|
|
30
|
+
|
|
28
31
|
# spec: some/SPEC.md §bounds — a directive blesses at most three checks per run,
|
|
29
32
|
# a bound rather than a total; three of the twelve gates below stay partitive,
|
|
30
33
|
# and the inline-code `six gates` reads as a meta-reference.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# Behavioral test of the off-root rule in
|
|
2
|
+
# Behavioral test of the off-root rule in check-docs-link-convention.
|
|
3
3
|
# The good/bad pair grows a case per direction, but its single expect string
|
|
4
4
|
# cannot pin three rules at once, and the off-root rule's whole design is its
|
|
5
5
|
# boundary predicate — each edge below is a ruled edge, so each is tested rather
|
|
@@ -10,7 +10,7 @@ set -uo pipefail
|
|
|
10
10
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
11
11
|
|
|
12
12
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
13
|
-
|
|
13
|
+
CHECKS="$ROOT/canon-kit/checks"
|
|
14
14
|
|
|
15
15
|
fails=0
|
|
16
16
|
tmp="$(mktemp -d)"
|
|
@@ -28,7 +28,7 @@ scaffold() {
|
|
|
28
28
|
# $1=label $2=dir $3=want-rc $4=want-substring
|
|
29
29
|
check_case() {
|
|
30
30
|
local out rc
|
|
31
|
-
out="$(cd "$2" && "$
|
|
31
|
+
out="$(cd "$2" && gate_run check-docs-link-convention "$CHECKS" docs 2>&1)"; rc=$?
|
|
32
32
|
if [[ "$rc" -ne "$3" ]]; then
|
|
33
33
|
echo " FAIL [$1]: want exit $3, got $rc -- $out"; fails=$((fails + 1)); return
|
|
34
34
|
fi
|
|
@@ -65,7 +65,7 @@ check_case "nonexistent-target-not-ours" "$tmp/e" 0 "DOCS-LINK-CONVENTION: clean
|
|
|
65
65
|
# first, is reported there once, and this rule does not double-report it.
|
|
66
66
|
scaffold "$tmp/f" 'See [a dir](../outsidedir).'
|
|
67
67
|
check_case "off-root-directory-is-rule-one" "$tmp/f" 1 "directory-target link"
|
|
68
|
-
out_f="$(cd "$tmp/f" && "$
|
|
68
|
+
out_f="$(cd "$tmp/f" && gate_run check-docs-link-convention "$CHECKS" docs 2>&1)"
|
|
69
69
|
if grep -qF -- "off-root relative link" <<<"$out_f"; then
|
|
70
70
|
echo " FAIL [off-root-directory-not-double-reported]: rule three also fired: $out_f"
|
|
71
71
|
fails=$((fails + 1))
|
|
@@ -12,7 +12,6 @@ set -uo pipefail
|
|
|
12
12
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
13
13
|
|
|
14
14
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # canon-kit/
|
|
15
|
-
GATE="$DIR/checks/check-knob-default-coupling.sh"
|
|
16
15
|
SANDBOX="$(mktemp -d)"
|
|
17
16
|
trap 'rm -rf "$SANDBOX"' EXIT
|
|
18
17
|
|
|
@@ -20,7 +19,8 @@ fails=0
|
|
|
20
19
|
mkdir -p "$SANDBOX/gate-sdk" "$SANDBOX/widget-kit/lib"
|
|
21
20
|
|
|
22
21
|
run_gate() { # echoes gate output; roster is the two sandbox kits
|
|
23
|
-
( cd "$SANDBOX" &&
|
|
22
|
+
( cd "$SANDBOX" && gate_env GATE_SDK_KIT_DIRS="gate-sdk widget-kit" GATE_SDK_ROOT="$DIR/../gate-sdk" \
|
|
23
|
+
&& gate_run check-knob-default-coupling "$DIR/checks" 2>&1 )
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
check_case() { # $1=label $2=want-rc $3=want-substring
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# SPEC amendment: wire
|
|
2
|
+
|
|
3
|
+
The wire-kind exemption is scoped to the configured wire kind, **not** to
|
|
4
|
+
amendments generally. This amendment quotes the tracked implementation in a
|
|
5
|
+
`bash` fence rather than a wire fence, so the exemption does not reach it and the
|
|
6
|
+
block fires — which is the assertion this file exists to make.
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
#!/usr/bin/env bash
|
|
10
|
+
set -euo pipefail
|
|
11
|
+
alpha_one="first line of widget logic"
|
|
12
|
+
beta_two="second line of widget logic"
|
|
13
|
+
gamma_three="third line of widget logic"
|
|
14
|
+
delta_four="fourth line of widget logic"
|
|
15
|
+
epsilon_five="fifth line of widget logic"
|
|
16
|
+
zeta_six="sixth line of widget logic"
|
|
17
|
+
echo "widget processing complete"
|
|
18
|
+
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SPEC amendment: wire
|
|
2
|
+
|
|
3
|
+
The **wire-kind exemption**, exercised here because no other case reaches it: an
|
|
4
|
+
amendment stating a wire delta must be able to quote the wire, so a fence of the
|
|
5
|
+
configured wire kind is exempt inside an amendment and only inside one. This
|
|
6
|
+
block is a verbatim copy of the tracked `widget.proto` and does not fire.
|
|
7
|
+
|
|
8
|
+
```proto
|
|
9
|
+
syntax = "proto3";
|
|
10
|
+
package widget.v1;
|
|
11
|
+
|
|
12
|
+
message WidgetHeader {
|
|
13
|
+
string id = 1;
|
|
14
|
+
string kind = 2;
|
|
15
|
+
int32 count = 3;
|
|
16
|
+
bool enabled = 4;
|
|
17
|
+
string note = 5;
|
|
18
|
+
repeated string tags = 6;
|
|
19
|
+
int64 created_unix = 7;
|
|
20
|
+
string owner = 8;
|
|
21
|
+
}
|
|
22
|
+
```
|
|
@@ -17,3 +17,20 @@ a copy of any tracked file) — the gate skips illustrative fences:
|
|
|
17
17
|
|
|
18
18
|
The implementation lives in `widget.sh`; this spec cites the path rather than
|
|
19
19
|
embedding the body.
|
|
20
|
+
|
|
21
|
+
The per-site valve, exercised here because nothing else reaches it: the block
|
|
22
|
+
below IS a verbatim copy of the tracked implementation and would fire, and the
|
|
23
|
+
marker directly above the opening fence is the only reason it does not.
|
|
24
|
+
|
|
25
|
+
<!-- spec-embedded-source-exempt: the copy is the subject of this paragraph, so citing the path instead would leave the paragraph about nothing -->
|
|
26
|
+
```bash
|
|
27
|
+
#!/usr/bin/env bash
|
|
28
|
+
set -euo pipefail
|
|
29
|
+
alpha_one="first line of widget logic"
|
|
30
|
+
beta_two="second line of widget logic"
|
|
31
|
+
gamma_three="third line of widget logic"
|
|
32
|
+
delta_four="fourth line of widget logic"
|
|
33
|
+
epsilon_five="fifth line of widget logic"
|
|
34
|
+
zeta_six="sixth line of widget logic"
|
|
35
|
+
echo "widget processing complete"
|
|
36
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# consumer — SPEC
|
|
2
|
+
|
|
3
|
+
The engine is a
|
|
4
|
+
small shell script, a claim wrapped across a newline so that a line-keyed
|
|
5
|
+
scanner is blind to it by construction and this gate is not.
|
|
6
|
+
|
|
7
|
+
The engine is one shell program, stated on a single line and in the class all
|
|
8
|
+
the same — what puts a sentence in the class is what it asserts.
|
|
9
|
+
|
|
10
|
+
The Engine Is A Small Shell Script, capitalized where the sentence starts, which
|
|
11
|
+
is no way past a class matched against a lowercased subject.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# spec: canon-kit/SPEC.md §check-unmarked-claim — fixture consumer config: the good pair's class and surface unchanged, so the bad case differs only in whether the prose carries an oracle
|
|
3
|
+
# shellcheck disable=SC2034 # consumed by canon-kit/lib/spec.sh after sourcing
|
|
4
|
+
CANON_KIT_CLAIM_CLASSES_CMD='printf "engine-substrate\tthe engine is (a|one) (small )?(shell script|shell program)\n"'
|
|
5
|
+
# shellcheck disable=SC2034 # consumed by canon-kit/lib/spec.sh after sourcing
|
|
6
|
+
CANON_KIT_MEASURED_SURFACE_GLOBS=("*.md")
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# consumer — SPEC
|
|
2
|
+
|
|
3
|
+
<!-- measured: engine-substrate=shell -->
|
|
4
|
+
The engine is a small shell script today, and the marker above binds that claim
|
|
5
|
+
to an oracle the gate re-runs rather than to whoever last remembered it.
|
|
6
|
+
|
|
7
|
+
The engine blocks a commit when two governed surfaces disagree. That sentence
|
|
8
|
+
falls outside the declared class, so the gate leaves it alone — a class
|
|
9
|
+
assertion, never a ban on a word.
|
|
10
|
+
|
|
11
|
+
<!-- unmarked-claim-exempt: exhibiting the class grammar rather than asserting it -->
|
|
12
|
+
The engine is a shell program, shown here to document what the class recognizes.
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
The engine is a small shell script.
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
A fenced block is grammar being shown, never a claim being made.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
UNMARKED-CLAIM: clean
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# spec: canon-kit/SPEC.md §check-unmarked-claim — fixture consumer config: one declared claim class and the shared measured surface, so the pair exercises the gate the empty defaults would clean-skip
|
|
3
|
+
# shellcheck disable=SC2034 # consumed by canon-kit/lib/spec.sh after sourcing
|
|
4
|
+
CANON_KIT_CLAIM_CLASSES_CMD='printf "engine-substrate\tthe engine is (a|one) (small )?(shell script|shell program)\n"'
|
|
5
|
+
# shellcheck disable=SC2034 # consumed by canon-kit/lib/spec.sh after sourcing
|
|
6
|
+
CANON_KIT_MEASURED_SURFACE_GLOBS=("*.md")
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Behavioral test of the arms the one-pair good/bad harness cannot hold: every
|
|
3
|
+
# fail-closed exit, and the two clean skips a pair cannot tell apart. A pair
|
|
4
|
+
# asserts one exit code per case dir, so a vocabulary that errors, a line the
|
|
5
|
+
# loader refuses, and a pattern that does not compile have no pair spelling; the
|
|
6
|
+
# inactive-by-default posture and the declared-nothing skip need configs the
|
|
7
|
+
# pair's own canon-config.sh cannot also be.
|
|
8
|
+
#
|
|
9
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
10
|
+
set -uo pipefail
|
|
11
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
12
|
+
|
|
13
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # canon-kit/
|
|
14
|
+
SANDBOX="$(mktemp -d)"
|
|
15
|
+
trap 'rm -rf "$SANDBOX"' EXIT
|
|
16
|
+
|
|
17
|
+
fails=0
|
|
18
|
+
|
|
19
|
+
cat >"$SANDBOX/SPEC.md" <<'EOF'
|
|
20
|
+
# consumer — SPEC
|
|
21
|
+
|
|
22
|
+
The engine is a small shell script, a claim in the class with no oracle behind
|
|
23
|
+
it.
|
|
24
|
+
EOF
|
|
25
|
+
|
|
26
|
+
emit() { # $1=basename $2=the emitter command
|
|
27
|
+
printf '%s\n' "CANON_KIT_CLAIM_CLASSES_CMD='$2'" 'CANON_KIT_MEASURED_SURFACE_GLOBS=("*.md")' \
|
|
28
|
+
>"$SANDBOX/$1"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
emit ok.sh 'printf "engine-substrate\tthe engine is a small shell script\n"'
|
|
32
|
+
emit err.sh 'exit 3'
|
|
33
|
+
emit notab.sh 'printf "engine-substrate the engine is a small shell script\n"'
|
|
34
|
+
emit badid.sh 'printf "Engine_Substrate\tthe engine is a small shell script\n"'
|
|
35
|
+
emit dup.sh 'printf "engine\tone\nengine\ttwo\n"'
|
|
36
|
+
emit extratab.sh 'printf "engine\tone\ttwo\n"'
|
|
37
|
+
emit uncompilable.sh 'printf "engine\tthe engine is (unclosed\n"'
|
|
38
|
+
emit nothing.sh 'true'
|
|
39
|
+
printf '%s\n' 'CANON_KIT_MEASURED_SURFACE_GLOBS=("*.md")' >"$SANDBOX/off.sh"
|
|
40
|
+
|
|
41
|
+
check_case() { # $1=label $2=want-rc $3=want-substring $4=config
|
|
42
|
+
local label="$1" want="$2" sub="$3" cfg="$4"
|
|
43
|
+
local out rc
|
|
44
|
+
out="$(cd "$SANDBOX" && gate_env CANON_KIT_CONFIG_FILE="$SANDBOX/$cfg" \
|
|
45
|
+
&& gate_run check-unmarked-claim "$DIR/checks" 2>&1)"; rc=$?
|
|
46
|
+
if [[ "$rc" -ne "$want" ]]; then
|
|
47
|
+
echo " FAIL [$label]: want exit $want, got $rc -- $out"; fails=$((fails + 1)); return
|
|
48
|
+
fi
|
|
49
|
+
if [[ -n "$sub" ]] && ! grep -qF -- "$sub" <<<"$out"; then
|
|
50
|
+
echo " FAIL [$label]: exit $rc OK but output lacks '$sub':"; printf ' %s\n' "$out"
|
|
51
|
+
fails=$((fails + 1))
|
|
52
|
+
fi
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
# The configured baseline: with a class declared, the sentence above is red.
|
|
56
|
+
# Every fail-closed case below differs from this one only in the vocabulary, so
|
|
57
|
+
# a case that exits 2 proves the loader refused rather than that nothing matched.
|
|
58
|
+
check_case "declared-class-is-red" 1 "falls in claim class 'engine-substrate'" ok.sh
|
|
59
|
+
|
|
60
|
+
# Arm B, inherited whole from spec_claim_vocabulary: a roster that cannot be
|
|
61
|
+
# read leaves the gate holding no class, and a gate holding no class must not
|
|
62
|
+
# report the clean it did not earn.
|
|
63
|
+
check_case "emitter-error-fails-closed" 2 "exited 3" err.sh
|
|
64
|
+
check_case "no-tab-fails-closed" 2 "line has no tab" notab.sh
|
|
65
|
+
check_case "non-slug-id-fails-closed" 2 "id is not slug-shaped" badid.sh
|
|
66
|
+
check_case "duplicate-id-fails-closed" 2 "duplicate id" dup.sh
|
|
67
|
+
check_case "extra-tab-fails-closed" 2 "extra tab in line" extratab.sh
|
|
68
|
+
|
|
69
|
+
# The pattern is consumer-authored, so an ERE that does not compile is the same
|
|
70
|
+
# unreadable-roster failure one step later, and takes the same exit.
|
|
71
|
+
check_case "uncompilable-ere-fails-closed" 2 "does not compile" uncompilable.sh
|
|
72
|
+
|
|
73
|
+
# The two clean skips a fixture pair cannot tell apart: no vocabulary configured
|
|
74
|
+
# at all, and one configured that declared nothing. Both are green and they are
|
|
75
|
+
# green for different reasons, which is why the command knob is bridged beside
|
|
76
|
+
# the parsed arrays.
|
|
77
|
+
check_case "no-vocabulary-is-clean" 0 "CANON_KIT_CLAIM_CLASSES_CMD unset" off.sh
|
|
78
|
+
check_case "declared-nothing-is-clean" 0 "declared no claim classes" nothing.sh
|
|
79
|
+
|
|
80
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
81
|
+
echo "check-unmarked-claim.test.sh: $fails case(s) failed"
|
|
82
|
+
exit 1
|
|
83
|
+
fi
|
|
84
|
+
echo "check-unmarked-claim.test.sh: clean (every unreadable roster fails closed; an unset and an empty vocabulary are two distinct clean skips)"
|
|
85
|
+
exit 0
|
|
@@ -103,6 +103,8 @@ declare -p CANON_KIT_PAYLOAD_CLAIM_EXCLUDE &>/dev/null || CANON_KIT_PAYLOAD_CLAI
|
|
|
103
103
|
[[ -v CANON_KIT_MEASURED_CLAIMS_CMD ]] || CANON_KIT_MEASURED_CLAIMS_CMD=""
|
|
104
104
|
declare -p CANON_KIT_MEASURED_SURFACE_GLOBS &>/dev/null || CANON_KIT_MEASURED_SURFACE_GLOBS=()
|
|
105
105
|
|
|
106
|
+
[[ -v CANON_KIT_CLAIM_CLASSES_CMD ]] || CANON_KIT_CLAIM_CLASSES_CMD=""
|
|
107
|
+
|
|
106
108
|
declare -p CANON_KIT_COMMENT_MACHINE &>/dev/null || CANON_KIT_COMMENT_MACHINE=()
|
|
107
109
|
declare -p CANON_KIT_COMMENT_REASON &>/dev/null || CANON_KIT_COMMENT_REASON=()
|
|
108
110
|
declare -p CANON_KIT_COMMENT_SURFACE &>/dev/null || CANON_KIT_COMMENT_SURFACE=()
|
|
@@ -542,3 +544,17 @@ if [[ "${GATE_SDK_RESOLVING_KNOB:-}" == CANON_KIT_PAYLOAD_CLAIM_IDS \
|
|
|
542
544
|
done <<<"$_sk_pc"
|
|
543
545
|
unset _sk_pc _sk_c _sk_r
|
|
544
546
|
fi
|
|
547
|
+
|
|
548
|
+
declare -p CANON_KIT_CLAIM_CLASS_IDS &>/dev/null || CANON_KIT_CLAIM_CLASS_IDS=()
|
|
549
|
+
declare -p CANON_KIT_CLAIM_CLASS_PATTERNS &>/dev/null || CANON_KIT_CLAIM_CLASS_PATTERNS=()
|
|
550
|
+
if [[ "${GATE_SDK_RESOLVING_KNOB:-}" == CANON_KIT_CLAIM_CLASS_IDS \
|
|
551
|
+
|| "${GATE_SDK_RESOLVING_KNOB:-}" == CANON_KIT_CLAIM_CLASS_PATTERNS ]] \
|
|
552
|
+
&& [[ -n "$CANON_KIT_CLAIM_CLASSES_CMD" ]]; then
|
|
553
|
+
_sk_cc="$(spec_claim_vocabulary "$CANON_KIT_CLAIM_CLASSES_CMD" CANON_KIT_CLAIM_CLASSES_CMD)" || exit 2
|
|
554
|
+
while IFS=$'\t' read -r _sk_ci _sk_cp; do
|
|
555
|
+
[[ -n "$_sk_ci" ]] || continue
|
|
556
|
+
CANON_KIT_CLAIM_CLASS_IDS+=("$_sk_ci")
|
|
557
|
+
CANON_KIT_CLAIM_CLASS_PATTERNS+=("$_sk_cp")
|
|
558
|
+
done <<<"$_sk_cc"
|
|
559
|
+
unset _sk_cc _sk_ci _sk_cp
|
|
560
|
+
fi
|
|
@@ -8,6 +8,7 @@ SDK="$SMOKE_KIT_ROOT/../gate-sdk" # the vendored gate-sdk beside this kit
|
|
|
8
8
|
cat >> scripts/gates.list <<'EOF'
|
|
9
9
|
# canon-kit (check-surface-duplication omitted — needs a glossary)
|
|
10
10
|
check-amendment-queue
|
|
11
|
+
check-amendment-update-target
|
|
11
12
|
check-spec-dod-singleton
|
|
12
13
|
check-spec-derivable-section
|
|
13
14
|
check-spec-embedded-source
|
|
@@ -29,6 +30,7 @@ check-spec-fence-balance
|
|
|
29
30
|
check-spec-pointer
|
|
30
31
|
check-todo-task-liveness
|
|
31
32
|
check-tracking-claim
|
|
33
|
+
check-unmarked-claim
|
|
32
34
|
EOF
|
|
33
35
|
|
|
34
36
|
# smoke-unregistered: check-surface-duplication — the glossary topology it reads (CANON_KIT_GLOSSARY_FILE, default GLOSSARY.md) is optional and this tree ships none, so its exit 2 is uncorroborated only because the invoking repo lacks the same optional surface, not because the gate is broken
|
|
@@ -53,4 +55,4 @@ EOF
|
|
|
53
55
|
fi
|
|
54
56
|
|
|
55
57
|
bash "$SDK/bin/gen-pre-commit.sh" --write >/dev/null
|
|
56
|
-
bash "$SDK/
|
|
58
|
+
bash "$SDK/bin/run-gates.sh" --emit graph > scripts/CHECK-GRAPH.html
|