checkwright 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -10
- package/lib/common/lock.sh +7 -0
- package/lib/common/recipe.sh +1 -1
- package/lib/diff.sh +2 -0
- package/lib/init.sh +40 -16
- package/lib/uninstall.sh +2 -0
- package/package.json +2 -2
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/SPEC.md +125 -13
- package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
- package/payload/canon-kit/smoke/install.sh +1 -1
- package/payload/context-kit/README.md +6 -4
- package/payload/context-kit/SPEC.md +239 -70
- package/payload/context-kit/bin/always-loaded.sh +5 -21
- package/payload/context-kit/bin/env-probe.sh +2 -17
- package/payload/context-kit/checks/check-brevity.gate +3 -0
- package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
- package/payload/context-kit/checks/check-memory-off.gate +3 -0
- package/payload/context-kit/checks/check-settings-paths.gate +3 -0
- package/payload/context-kit/checks/check-settings-pins.gate +3 -0
- package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
- package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
- package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +5 -5
- package/payload/context-kit/index-tests/toolfloor-cases.sh +5 -5
- package/payload/context-kit/lib/context.sh +56 -0
- package/payload/context-kit/lib/toolfloor.sh +1 -1
- package/payload/context-kit/smoke/agents-md.sh +16 -4
- package/payload/context-kit/smoke/install.sh +3 -2
- package/payload/context-kit/templates/session-context.sh +5 -5
- package/payload/delegation-kit/SPEC.md +284 -9
- package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
- package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
- package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
- package/payload/delegation-kit/smoke/install.sh +1 -1
- package/payload/delegation-kit/templates/agent-execution.md +71 -4
- package/payload/doctrine-kit/SPEC.md +1 -1
- package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +2 -3
- package/payload/doctrine-kit/smoke/install.sh +17 -4
- package/payload/drift-kit/README.md +2 -2
- package/payload/drift-kit/SPEC.md +71 -7
- package/payload/drift-kit/bin/stage-economics.sh +1 -1
- package/payload/drift-kit/lib/drift.sh +43 -0
- package/payload/drift-kit/smoke/install.sh +21 -14
- package/payload/evidence-kit/README.md +3 -1
- package/payload/evidence-kit/SPEC.md +160 -19
- package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +42 -2
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
- package/payload/evidence-kit/lib/evidence.sh +2 -0
- package/payload/evidence-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/README.md +10 -7
- package/payload/gate-sdk/SPEC.md +3916 -265
- package/payload/gate-sdk/bin/install-hooks.sh +14 -2
- package/payload/gate-sdk/bin/port-blockers.sh +37 -9
- package/payload/gate-sdk/bin/run-gate-tests.sh +1 -2
- package/payload/gate-sdk/bin/run-gates.sh +22 -0
- package/payload/gate-sdk/bin/upgrade-smoke.sh +21 -16
- package/payload/gate-sdk/checks/check-action-run-shell.sh +1 -0
- package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
- package/payload/gate-sdk/checks/check-core-files.gate +3 -0
- package/payload/gate-sdk/checks/check-crate-arms.sh +1 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +78 -14
- package/payload/gate-sdk/checks/check-graph.gate +3 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-identity.gate +3 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +1 -0
- package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
- package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
- package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +1 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
- package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +4 -5
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +49 -4
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
- package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
- package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
- package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +94 -1
- package/payload/gate-sdk/lib/gate.sh +232 -25
- package/payload/gate-sdk/smoke/install.sh +5 -1
- package/payload/guard-kit/SPEC.md +207 -28
- package/payload/guard-kit/bin/run-guard-tests.sh +6 -1
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
- package/payload/guard-kit/guard-tests/cases.tsv +37 -9
- package/payload/guard-kit/lib/guard.sh +170 -6
- package/payload/lifecycle-kit/README.md +3 -2
- package/payload/lifecycle-kit/SPEC.md +507 -75
- package/payload/lifecycle-kit/bin/enter-stage.sh +72 -33
- package/payload/lifecycle-kit/bin/file-gap.sh +2 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +22 -22
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +120 -10
- package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +11 -11
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
- package/payload/lifecycle-kit/lib/stages.sh +5 -0
- package/payload/lifecycle-kit/smoke/install.sh +29 -15
- package/payload/lifecycle-kit/templates/lead.md +24 -0
- package/payload/lifecycle-kit/templates/stages/align.md +20 -2
- package/payload/lifecycle-kit/templates/stages/build.md +3 -3
- package/payload/lifecycle-kit/templates/stages/close.md +20 -6
- package/payload/lifecycle-kit/templates/stages/scope.md +20 -1
- package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
- package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +1 -1
- package/payload/queue-kit/README.md +10 -10
- package/payload/queue-kit/SPEC.md +301 -84
- package/payload/queue-kit/bin/queue-counts.sh +1 -1
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +1 -1
- package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +1 -1
- package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
- package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
- package/payload/queue-kit/lib/queue.sh +0 -49
- package/payload/queue-kit/smoke/install.sh +1 -1
- package/payload/site-kit/SPEC.md +29 -2
- package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
- package/payload/site-kit/smoke/install.sh +1 -1
- package/payload/canon-kit/checks/check-amendment-queue.sh +0 -117
- package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -79
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -240
- package/payload/canon-kit/checks/check-prose-tells.sh +0 -208
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -134
- package/payload/context-kit/bin/footprint.sh +0 -144
- package/payload/context-kit/checks/check-brevity.sh +0 -124
- package/payload/context-kit/checks/check-footprint-fresh.sh +0 -39
- package/payload/context-kit/checks/check-memory-off.sh +0 -113
- package/payload/context-kit/checks/check-settings-paths.sh +0 -94
- package/payload/context-kit/checks/check-settings-pins.sh +0 -111
- package/payload/context-kit/gate-tests/check-memory-off/bad/args +0 -1
- package/payload/context-kit/gate-tests/check-memory-off/good/args +0 -1
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -62
- package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -140
- package/payload/delegation-kit/checks/check-rule-citation.sh +0 -77
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -246
- package/payload/drift-kit/bin/trajectory.sh +0 -242
- package/payload/evidence-kit/checks/check-battery-roster.sh +0 -87
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -104
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -105
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
- package/payload/gate-sdk/bin/enforcement-map.sh +0 -273
- package/payload/gate-sdk/checks/check-commit-msg.sh +0 -51
- package/payload/gate-sdk/checks/check-commit-subject.sh +0 -44
- package/payload/gate-sdk/checks/check-core-files.sh +0 -76
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -38
- package/payload/gate-sdk/checks/check-exec-bit.sh +0 -96
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -107
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -106
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -85
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -93
- package/payload/gate-sdk/checks/check-gate-output.sh +0 -103
- package/payload/gate-sdk/checks/check-graph.sh +0 -632
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -46
- package/payload/gate-sdk/checks/check-identity.sh +0 -135
- package/payload/gate-sdk/checks/check-kit-enum.sh +0 -95
- package/payload/gate-sdk/checks/check-readme-roster.sh +0 -108
- package/payload/gate-sdk/checks/check-reads-couples.sh +0 -200
- package/payload/gate-sdk/checks/check-root-tiering.sh +0 -67
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -127
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -85
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
- package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -64
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -198
- package/payload/queue-kit/bin/queue-index.sh +0 -182
- package/payload/queue-kit/bin/roadmap.sh +0 -76
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -64
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -111
- package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -81
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
|
@@ -243,9 +243,10 @@ kit's name: the `SPEC.md` canonical-spec filename, the `SPEC-*.md` amendment
|
|
|
243
243
|
glob, the `spec:` and `contract:` source directives, the `[spec:]` and
|
|
244
244
|
`[design-pending]` queue tags, the `check-spec-*` gate names, and the internal
|
|
245
245
|
`lib/spec.sh` loader (where "spec" names the discipline). The consumer gate
|
|
246
|
-
`check-kit-ref-liveness` (a
|
|
247
|
-
dangling-reference hazard is a kit
|
|
248
|
-
gate-sdk) holds the brand-token side
|
|
246
|
+
`check-kit-ref-liveness` (declared by a `.gate` descriptor in `scripts/` and
|
|
247
|
+
dispatched to the binary substrate — the dangling-reference hazard is a kit
|
|
248
|
+
author's, so it is not templated into gate-sdk) holds the brand-token side
|
|
249
|
+
honest tree-wide: every slash- or
|
|
249
250
|
line-anchored `<name>-kit` / `gate-sdk` path segment must name a
|
|
250
251
|
`gate_kit_roots` dir, and every live-prefix kit knob must resolve to a tracked
|
|
251
252
|
kit knob (check-docs-cmd's resolver, reused so the non-uniform knob-prefix map
|
|
@@ -456,10 +457,12 @@ same shapes:
|
|
|
456
457
|
never disagree on the set — and a done slug for a bare-slug bullet outside
|
|
457
458
|
them; the single grammar `check-todo-task-liveness`
|
|
458
459
|
and `check-deprecation-task` resolve a `task: <slug>` binding through. **The
|
|
459
|
-
walk is `native/src/spec.rs`'s `queue_slugs
|
|
460
|
-
shell
|
|
461
|
-
|
|
462
|
-
|
|
460
|
+
walk is `native/src/spec.rs`'s `queue_slugs`**: both members compile, so the
|
|
461
|
+
shell walk went with its last caller, and so did the shell library's section
|
|
462
|
+
builders — the compiled classifier matches a section name against the
|
|
463
|
+
configured sets directly rather than through a built regex, so those builders
|
|
464
|
+
are defined here with no reader left in the tree, a residue whose disposition
|
|
465
|
+
is filed rather than taken at a close. That walk's bullet lead-line predicate is written again in the
|
|
463
466
|
crate rather than pointed at `native/src/queue.rs`'s adapters, which keeps
|
|
464
467
|
canon-kit one of the format's independent holders under the
|
|
465
468
|
re-implement-and-cite-from-both-ends rule
|
|
@@ -594,6 +597,12 @@ same shapes:
|
|
|
594
597
|
source (§check-comment-tier). Which finder a gate uses is kit contract, not
|
|
595
598
|
consumer config — a consumer wanting the old blanket exemption shadows the
|
|
596
599
|
gate.
|
|
600
|
+
- **The amendment finder** `spec_amendments`, the amendment-glob counterpart of
|
|
601
|
+
`spec_canonical_specs` above. Its last shell caller left at §The sixth budget
|
|
602
|
+
batch (gate-sdk/SPEC.md), and the function stays: the dead-twin disposition
|
|
603
|
+
(gate-sdk/SPEC.md §The port-candidate criteria, criterion 2) reaches
|
|
604
|
+
**undocumented** surface only, and this bullet documents it. The live holder is
|
|
605
|
+
`native/src/spec.rs`.
|
|
597
606
|
- **The default-statement grammar** both knob gates share, so the rule for
|
|
598
607
|
what reads as a stated default has one home. `sk_literal_at` recognizes the
|
|
599
608
|
value literal opening a window (a backticked non-knob string, a quoted string,
|
|
@@ -602,6 +611,13 @@ same shapes:
|
|
|
602
611
|
as a value. `check-knob-citation` reads it to reject a restated value in prose;
|
|
603
612
|
`check-knob-default-coupling` reads it to confirm the SPEC states the source's
|
|
604
613
|
literal (§check-knob-default-coupling).
|
|
614
|
+
**Both callers are compiled since §The sixth budget batch, so the live holder is
|
|
615
|
+
`native/src/spec.rs`'s `DefaultGrammar`** — promoted there out of the first
|
|
616
|
+
gate's private implementation at that port, because the second caller arriving
|
|
617
|
+
is exactly when a private copy becomes the second owner this bullet exists to
|
|
618
|
+
prevent. The shell form's caller set emptied with it and it is **not** deleted:
|
|
619
|
+
the dead-twin disposition (gate-sdk/SPEC.md §The port-candidate criteria,
|
|
620
|
+
criterion 2) bounds itself to undocumented surface, and this bullet documents it.
|
|
605
621
|
|
|
606
622
|
### check-amendment-queue
|
|
607
623
|
|
|
@@ -631,6 +647,19 @@ than by a gate. The guard is total over the *promotion* moves it exists to
|
|
|
631
647
|
catch — design-pending → an active section — and silent on the disposition
|
|
632
648
|
move.
|
|
633
649
|
|
|
650
|
+
**The amendment finder is best-effort, and the port had to reproduce that
|
|
651
|
+
rather than harden it.** `spec_amendments` ends `2>/dev/null … || true`, so an
|
|
652
|
+
unwalkable scan root yields *no amendments* instead of a refusal. Read against
|
|
653
|
+
gate-sdk/SPEC.md §Fail-closed contract the compiled form would refuse there —
|
|
654
|
+
and that would be a verdict change across the seam, which is exactly what the
|
|
655
|
+
port's parity run holds invariant. It is also not the vacuity that contract
|
|
656
|
+
guards: an empty amendment set cannot hide a violation in either direction,
|
|
657
|
+
because every `[spec:]` ref then dangles and the run reds. Recorded here
|
|
658
|
+
because the natural port instinct is to add the refusal, and the sibling
|
|
659
|
+
`check-todo-task-liveness` — which *does* refuse on a bad scan root — makes the
|
|
660
|
+
instinct look precedented. That member's shell form carried the `-d` guard;
|
|
661
|
+
this one never has.
|
|
662
|
+
|
|
634
663
|
### check-spec-dod-singleton
|
|
635
664
|
|
|
636
665
|
Invariant: no canonical spec carries the configured Definition-of-Done
|
|
@@ -671,6 +700,34 @@ languages in `CANON_KIT_EMBED_ILLUSTRATIVE` are skipped by default; the
|
|
|
671
700
|
threshold is calibrated against real specs, not synthetic fixtures.
|
|
672
701
|
`precommit` tier.
|
|
673
702
|
|
|
703
|
+
**The wire-delta exemption is scoped to the configured wire kind, not to
|
|
704
|
+
amendments.** An amendment quoting enough distinct non-trivial lines of a tracked
|
|
705
|
+
file in a fence of any *other* language fires exactly as a canonical spec would,
|
|
706
|
+
which is what keeps the valve a bridge for a wire contract rather than a blanket
|
|
707
|
+
licence for amendment prose. The per-site marker is the general escape, and it is
|
|
708
|
+
a **path-identity** test against the amendment set rather than a name pattern —
|
|
709
|
+
which is what re-arms the exemption the moment the amendment is deleted, instead
|
|
710
|
+
of leaving a spelling that outlives its subject.
|
|
711
|
+
|
|
712
|
+
**Ported to the binary substrate at §The sixth budget batch** (gate-sdk/SPEC.md).
|
|
713
|
+
Criterion 4's verdict on it was taken **conservatively without ruling the class**:
|
|
714
|
+
its walk opens and content-compares every source file the language roster names,
|
|
715
|
+
its own declaration and every sibling's included, but as a *diff reference* rather
|
|
716
|
+
than as its assertion target, and whether that satisfies the criterion is the open
|
|
717
|
+
ruling `spec-embedded-source-criterion-4-membership` owns. The batch took the
|
|
718
|
+
binding verdict for its own member because that costs a fixture widening and
|
|
719
|
+
cannot be wrong in the harmful direction, while clearing wrongly ships the hole
|
|
720
|
+
the criterion exists to point at; a later reader must not read the disposition as
|
|
721
|
+
that entry's answer. The widening the verdict bought is the one delta the pair was
|
|
722
|
+
missing: its cases derive a real corpus and do reach the finder, but neither valve
|
|
723
|
+
was exercised by any committed case, and both now are.
|
|
724
|
+
|
|
725
|
+
**One second-order fact the port prices whichever way that class falls**: every
|
|
726
|
+
port removes a shell declaration from this gate's candidate index and adds a Rust
|
|
727
|
+
module to it, so its verdicts move under *every* sibling's port — the narrowing is
|
|
728
|
+
a swap rather than a removal, and a port can therefore create a violation here by
|
|
729
|
+
moving a derivation's text from a file the specs do not quote into one they do.
|
|
730
|
+
|
|
674
731
|
### check-manifest-temporal
|
|
675
732
|
|
|
676
733
|
Invariant: no temporal-narration marker in governed manifest prose outside an
|
|
@@ -915,10 +972,14 @@ oracle is its `good/`+`bad/` pair, exactly like any new shell gate's, with
|
|
|
915
972
|
a consumer whose host the release publishes no artifact for, so on an uncovered
|
|
916
973
|
platform this gate does not run where a shell gate would have. That is the port's
|
|
917
974
|
standing cost, already accepted for the members whose shell forms were deleted, and
|
|
918
|
-
it is why the omit-and-declare path exists — a paid price, not an open risk.
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
975
|
+
it is why the omit-and-declare path exists — a paid price, not an open risk. Its
|
|
976
|
+
reach stayed deliberately open here — *this* gate settled, a second one weighing
|
|
977
|
+
the cost again rather than citing this one as blanket precedent — and that
|
|
978
|
+
question has since been **closed by ruling rather than by precedent**: new gates
|
|
979
|
+
in a crate-carrying tree are born native by default, with shell an exception
|
|
980
|
+
under one of three stated classes (gate-sdk/SPEC.md §The port-candidate
|
|
981
|
+
criteria). The refusal above is unaffected in its own terms: what settles the
|
|
982
|
+
second gate is the ruling, never this section.
|
|
922
983
|
|
|
923
984
|
### check-prose-enum
|
|
924
985
|
|
|
@@ -1147,10 +1208,20 @@ honest limit: agreement is confirmed by the source literal appearing as the
|
|
|
1147
1208
|
SPEC's stated default, so a value the SPEC never pins to a literal cannot be
|
|
1148
1209
|
coupled — only a literal disagreement or a wholly undocumented default reds.
|
|
1149
1210
|
|
|
1211
|
+
**Ported to the binary substrate at §The sixth budget batch** (gate-sdk/SPEC.md),
|
|
1212
|
+
where it took criterion 4 in its sharpest form: its `couples=` field is one level
|
|
1213
|
+
deep and so does not cover its own declaration path, while the recursive kit-root
|
|
1214
|
+
walk beneath it — which prunes `templates/` and nothing else — reads that path as
|
|
1215
|
+
content on every run. Couple clears, walk binds. Its assertion target is the
|
|
1216
|
+
grammar of a default, never a gate's dispatch relation, so the criterion is paid
|
|
1217
|
+
by the good/bad pair rather than answered by staying shell (§Meta-gate
|
|
1218
|
+
conservation for the binary substrate).
|
|
1219
|
+
|
|
1150
1220
|
Producer: the generated pre-commit hook / `run-gates.sh`, coupled to kit source
|
|
1151
1221
|
and the kit SPECs; consumer: the committing operator via the output contract —
|
|
1152
1222
|
file, the knob, the source literal, and the owning SPEC, each read once at the
|
|
1153
|
-
scan transition, no persistent state. Fail-closed on
|
|
1223
|
+
scan transition, no persistent state. Fail-closed on an unreadable kit root or an
|
|
1224
|
+
unresolved knob. The good/bad
|
|
1154
1225
|
pair covers self-agreement, the SPEC disagreement, and both idioms;
|
|
1155
1226
|
`check-knob-default-coupling.test.sh` covers the cross-kit owning SPEC, the
|
|
1156
1227
|
absent-default red, and the descriptive/array/empty/deferral skips the pair
|
|
@@ -1181,7 +1252,7 @@ vendored source, `install:` by the installer's recipe module and
|
|
|
1181
1252
|
off `smoke/install.sh`, gate-sdk/SPEC.md §The install disposition and
|
|
1182
1253
|
§Consumer smoke), a reason directive (a spec pointer, usage synopsis, or
|
|
1183
1254
|
positional justification: `spec:`, `usage:`, `exception-list:`,
|
|
1184
|
-
`no-fixture:`, `assertion`, `permanent:`, `TODO(task:`,
|
|
1255
|
+
`no-fixture:`, `no-port:`, `port-until:`, `assertion`, `permanent:`, `TODO(task:`,
|
|
1185
1256
|
`TODO(spec-ambiguity)`, which blesses a bounded window — its own line plus
|
|
1186
1257
|
continuation lines up to `CANON_KIT_COMMENT_RUN_CAP` total physical comment
|
|
1187
1258
|
lines, blank `#` lines counted; a directive mid-run opens a fresh window
|
|
@@ -1214,6 +1285,15 @@ still applies. A descriptor's own lines are directives by construction. Marker
|
|
|
1214
1285
|
matching is on the **token**, independent of the comment leader, so `//` and `#`
|
|
1215
1286
|
carry the same directives and no language earns a quieter standard.
|
|
1216
1287
|
|
|
1288
|
+
**The colon side's sharp edge is a naming rule, not a matcher one.** A colon
|
|
1289
|
+
directive matches as a substring (the joining rule under Calibration below), so a
|
|
1290
|
+
short token nests inside ordinary vocabulary: a directive named `port:` would
|
|
1291
|
+
silently bless `support:`, `transport:`, `export:` and `report:`. Roster names on
|
|
1292
|
+
that side are chosen not to nest; a bare word is bounded and carries no such
|
|
1293
|
+
hazard. Unenforced by construction — the hazard is in a name that does not exist
|
|
1294
|
+
yet, and a scanner over a roster of literals would be checking the roster against
|
|
1295
|
+
itself.
|
|
1296
|
+
|
|
1217
1297
|
One shape overrides the window: a full-line comment carrying a **restated
|
|
1218
1298
|
collection total** — the count grammar of §check-manifest-count, over the same
|
|
1219
1299
|
`CANON_KIT_COUNT_COLLECTIONS` vocabulary — is flagged even where a directive
|
|
@@ -1644,6 +1724,7 @@ as source references.
|
|
|
1644
1724
|
|
|
1645
1725
|
### check-docs-link-convention
|
|
1646
1726
|
|
|
1727
|
+
`checks/check-docs-link-convention.gate` (`precommit`, binary-dispatched).
|
|
1647
1728
|
Invariant: every relative markdown link on a docs-site page obeys the
|
|
1648
1729
|
downward-citation *shape* — the resolution of those links is `check-md-refs`'
|
|
1649
1730
|
charge, and this gate owns shape alone. Absolute reference links (the off-site
|
|
@@ -1685,6 +1766,20 @@ pure `#anchor` (no path) satisfies neither rule. Per-site valve: a
|
|
|
1685
1766
|
above suppresses that one finding — for the rare legitimate directory link a
|
|
1686
1767
|
consumer's layout demands. A missing scan root is fail-closed (exit 2).
|
|
1687
1768
|
|
|
1769
|
+
**The walk is unpruned, deliberately, and the port carries that rather than the
|
|
1770
|
+
kit's shared prune set** (gate-sdk/SPEC.md §The fourth budget batch): the shell
|
|
1771
|
+
form reached for a bare `find` rather than `gate_find`, so a docs tree with a
|
|
1772
|
+
directory named like a prune entry is still scanned whole. The compiled form
|
|
1773
|
+
takes the prune-free traversal for the same reason, and orders its pages by
|
|
1774
|
+
bytes where the shell's `| sort` ordered them by the invoking locale's
|
|
1775
|
+
collation — a report-order narrowing, never a change to which pages are read.
|
|
1776
|
+
Target resolution is likewise lexical where the shell called
|
|
1777
|
+
`realpath -m --relative-to=.`: the two agree on a tree with no symlinked docs
|
|
1778
|
+
directory, which every case compared at the port confirmed, including an
|
|
1779
|
+
absolute scan root and a scan root of `.`. The bespoke
|
|
1780
|
+
`gate-tests/check-docs-link-convention.test.sh` holds the off-root rule's edges
|
|
1781
|
+
and dispatches through `gate_run`.
|
|
1782
|
+
|
|
1688
1783
|
### check-docs-cmd
|
|
1689
1784
|
|
|
1690
1785
|
Invariant: every invoked repo-relative `.sh` path and every kit-prefixed env
|
|
@@ -1978,6 +2073,23 @@ Exact detection regexes are implementation, owned by the gate source; the
|
|
|
1978
2073
|
(`bad/` trips every assertion, `good/` passes all and demonstrates the valve).
|
|
1979
2074
|
Thresholds are the `CANON_KIT_PROSE_TELL_*` knobs (§Layout and configuration).
|
|
1980
2075
|
|
|
2076
|
+
**Ported to the binary substrate at §The sixth budget batch** (gate-sdk/SPEC.md).
|
|
2077
|
+
Two properties of the port are stated here because neither is visible from the
|
|
2078
|
+
assertion list. The corpus is walked **once per file**, not once per surface set:
|
|
2079
|
+
assertion D is an in-file assertion, so a shared walk would pool every surface's
|
|
2080
|
+
tokens into one buffer and an abbreviation expanded in any file would clear it in
|
|
2081
|
+
all of them. And the thresholds are **coerced, not validated** — the port
|
|
2082
|
+
reproduces that rather than hardening it, because a refusal the shell form never
|
|
2083
|
+
made is a verdict change across the seam. A malformed threshold therefore reads
|
|
2084
|
+
as zero on both substrates, which makes the gate fire on everything or never; the
|
|
2085
|
+
repair belongs in the library, where one computation would serve both, and is
|
|
2086
|
+
filed as its own unit rather than taken here.
|
|
2087
|
+
|
|
2088
|
+
Criterion 4 **clears** on this member and the verdict is a property of a
|
|
2089
|
+
consumer's config rather than of the gate: its corpus is a pure glob expansion of
|
|
2090
|
+
the configured prose-surface set, which reaches no gate declaration path in this
|
|
2091
|
+
tree. A consumer whose prose globs named descriptors would flip it.
|
|
2092
|
+
|
|
1981
2093
|
**Valve** — an HTML comment `<!-- prose-tell-exempt: <reason> -->` on the
|
|
1982
2094
|
flagged line or directly above it suppresses the tell at that site; it rides the
|
|
1983
2095
|
shared exempt-window (§lib/spec.sh — the line or the one above), and the reason
|
|
@@ -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,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
|
|
@@ -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
|
+
```
|
|
@@ -41,12 +41,14 @@ hook approximation and the session-context template also expect
|
|
|
41
41
|
generated pre-commit hook: `bash gate-sdk/bin/gen-pre-commit.sh --write`.
|
|
42
42
|
The memory-off gates are inert until you opt in — `check-settings-pins`
|
|
43
43
|
skips clean with no pins file, so create `settings-pins.conf` (one
|
|
44
|
-
`<
|
|
44
|
+
`<path> = <expected JSON>` per line, the path a dot/bracket path expression
|
|
45
|
+
rather than an arbitrary `jq` filter — SPEC.md §check-settings-pins) naming
|
|
46
|
+
the keys to hold, e.g. the
|
|
45
47
|
auto-memory-disabling ones. `check-settings-paths` needs no manifest: it
|
|
46
48
|
reads the same settings file and holds every allow-list grant naming a
|
|
47
49
|
literal `.sh` path against the tree. `check-footprint-fresh` byte-gates a committed
|
|
48
|
-
`docs/footprint.md` against
|
|
49
|
-
publish that projection.
|
|
50
|
+
`docs/footprint.md` against the footprint emitter it calls in-process;
|
|
51
|
+
register it when you publish that projection.
|
|
50
52
|
|
|
51
53
|
2. Wire the session-start hook — copy `templates/session-context.sh` into your
|
|
52
54
|
gates dir, edit its `[EDIT ME]` sections (layout judgment, not mechanism),
|
|
@@ -74,7 +76,7 @@ bash context-kit/bin/md-section.sh <file> <heading> # print one section by headi
|
|
|
74
76
|
bash context-kit/bin/pub-index.sh [paths…] # public API surface (per-language extractors; ships rust, ts)
|
|
75
77
|
bash context-kit/bin/always-loaded.sh # standing surface vs baseline (one line)
|
|
76
78
|
bash context-kit/bin/always-loaded.sh --update-baseline # a close-stage act
|
|
77
|
-
bash
|
|
79
|
+
bash gate-sdk/bin/run-gates.sh --emit footprint # per-kit token footprint (the committed page)
|
|
78
80
|
```
|
|
79
81
|
|
|
80
82
|
## Test
|