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
|
@@ -79,6 +79,38 @@ design *ruling* is design work — it goes to the deferred section
|
|
|
79
79
|
`[design-pending]` until scope rules on it. Enforced by
|
|
80
80
|
`check-amendment-queue`.
|
|
81
81
|
|
|
82
|
+
**The delta-ID grammar.** An amendment's `## What changes` is a sequence of
|
|
83
|
+
**deltas**, and both a delta and a citation to one have a pinned form. Pinned
|
|
84
|
+
because the next section requires each update target to name the delta that
|
|
85
|
+
owns it, and a name no surface specifies is unmechanizable: a gate cannot match
|
|
86
|
+
a grammar the template never states.
|
|
87
|
+
|
|
88
|
+
A **delta** is a `###` heading under `## What changes` of the form
|
|
89
|
+
`### (<N>) <title>`, where `<N>` is a positive decimal integer written without a
|
|
90
|
+
leading zero and `<title>` is non-empty. Delta numbers begin at one and are
|
|
91
|
+
**sequential and unique** within the amendment — a gap or a repeat means a delta
|
|
92
|
+
was split or dropped without its citations moving, which is the drift this
|
|
93
|
+
grammar exists to make visible.
|
|
94
|
+
|
|
95
|
+
A **citation** is the token `delta <N>` or `deltas <N>` (case-insensitive),
|
|
96
|
+
optionally continuing into further integers separated by commas and/or the word
|
|
97
|
+
`and`; a trailing possessive (`delta 3's`) is the same citation. The literal
|
|
98
|
+
`all deltas` cites **every** delta the amendment defines — the form a
|
|
99
|
+
whole-amendment update target already uses in practice (a generated mirror is
|
|
100
|
+
stale the moment any delta lands), admitted rather than forced into an
|
|
101
|
+
enumeration that would itself drift as deltas are added.
|
|
102
|
+
|
|
103
|
+
A heading rather than a bold lead-in token, because a heading gives a delta an
|
|
104
|
+
anchor a reader can link to and a scanner can find in one pass, and it survives
|
|
105
|
+
reordering under a diff more legibly than a token buried in a paragraph. The
|
|
106
|
+
**work-class tag** an amendment may carry (`{mechanical}` / `{design-bearing}`)
|
|
107
|
+
is deliberately **outside** this grammar: its owner is the roster's
|
|
108
|
+
authoring-stage template and its reader is the iteration lead at batch-cut, so
|
|
109
|
+
carrying it inside the delta token would tie two independent conventions to one
|
|
110
|
+
string and stop either changing without the other. Stated as a non-target so a
|
|
111
|
+
later reader does not read the silence as an omission. Enforced by
|
|
112
|
+
`check-amendment-update-target`.
|
|
113
|
+
|
|
82
114
|
An amendment file is **outside the governed manifest**: `CANON_KIT_MANIFEST_FILES`
|
|
83
115
|
globs `*/SPEC.md`, which `SPEC-<name>.md` does not match, so the prose and knob
|
|
84
116
|
gates never scan one. Their obligations attach at the merge rather than at the
|
|
@@ -204,7 +236,13 @@ own instance); the kit's rules are the topology itself:
|
|
|
204
236
|
turns a transcribed number into a generated, freshness-gated copy and is the
|
|
205
237
|
second remedy this bullet offers beside citing the owner. Prefer citing the
|
|
206
238
|
owner where the number need not be stated; mark it where a reader is served by
|
|
207
|
-
reading it.
|
|
239
|
+
reading it. **What makes marking happen at all is a third mechanism**, because
|
|
240
|
+
the two above both wait for an author to act: `check-unmarked-claim` lets a
|
|
241
|
+
consumer declare a *class* of claim that may not go unoracled, so the sentences
|
|
242
|
+
most worth binding are pressured into a marker rather than left to authorial
|
|
243
|
+
memory — and the class reaches a claim carrying no number, which is where this
|
|
244
|
+
bullet's own rules stop.
|
|
245
|
+
A **user-facing** claim takes the same treatment when a reader
|
|
208
246
|
acts on it: `check-install-claim` gives the primary-install-path claim one
|
|
209
247
|
declared owner and holds every governed install section to it, so the topology
|
|
210
248
|
reaches beyond the internal facts the rules above are stated over.
|
|
@@ -243,9 +281,10 @@ kit's name: the `SPEC.md` canonical-spec filename, the `SPEC-*.md` amendment
|
|
|
243
281
|
glob, the `spec:` and `contract:` source directives, the `[spec:]` and
|
|
244
282
|
`[design-pending]` queue tags, the `check-spec-*` gate names, and the internal
|
|
245
283
|
`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
|
|
284
|
+
`check-kit-ref-liveness` (declared by a `.gate` descriptor in `scripts/` and
|
|
285
|
+
dispatched to the binary substrate — the dangling-reference hazard is a kit
|
|
286
|
+
author's, so it is not templated into gate-sdk) holds the brand-token side
|
|
287
|
+
honest tree-wide: every slash- or
|
|
249
288
|
line-anchored `<name>-kit` / `gate-sdk` path segment must name a
|
|
250
289
|
`gate_kit_roots` dir, and every live-prefix kit knob must resolve to a tracked
|
|
251
290
|
kit knob (check-docs-cmd's resolver, reused so the non-uniform knob-prefix map
|
|
@@ -375,7 +414,22 @@ unset, and the loader exits 2 on a malformed config. Knobs:
|
|
|
375
414
|
so no key ships as a kit literal (the provenance seam). This repo sets
|
|
376
415
|
`bash scripts/measured-claims.sh` and the `CANON_KIT_MANIFEST_FILES` globs plus
|
|
377
416
|
`.claude/commands/*.md` — the shims the manifest set omits and the prose surface
|
|
378
|
-
excludes on a copy-shape ownership this rule is not covered by.
|
|
417
|
+
excludes on a copy-shape ownership this rule is not covered by. The surface knob
|
|
418
|
+
has a **second reader**, `check-unmarked-claim`, which shares it rather than
|
|
419
|
+
forking a knob of its own: the pair composes over one corpus
|
|
420
|
+
(§check-unmarked-claim), and the recorded cost is that a consumer cannot scan
|
|
421
|
+
claim classes over a different surface than its measured claims.
|
|
422
|
+
- `CANON_KIT_CLAIM_CLASSES_CMD` — a consumer command emitting the claim classes
|
|
423
|
+
`check-unmarked-claim` holds, one `<class-id>`⇥`<ERE>` line per class, default
|
|
424
|
+
empty ⇒ clean skip (no declared class, so no sentence falls in one). A class is
|
|
425
|
+
a spelling of what one project claims about itself, so it is consumer config for
|
|
426
|
+
the same provenance-seam reason the vocabularies above are, and for one more:
|
|
427
|
+
this kit's own SPEC is governed prose, so a kit literal here would match its own
|
|
428
|
+
class while describing it. This repo sets `bash scripts/claim-classes.sh`. The
|
|
429
|
+
gate reads `CANON_KIT_MEASURED_SURFACE_GLOBS` above for its corpus and adds no
|
|
430
|
+
surface knob. `CANON_KIT_CLAIM_CLASS_IDS` / `CANON_KIT_CLAIM_CLASS_PATTERNS` —
|
|
431
|
+
that command's parsed output in the same bridged, index-aligned shape as the
|
|
432
|
+
transport and payload pairs above, default empty arrays.
|
|
379
433
|
- `CANON_KIT_COMMENT_MACHINE` / `CANON_KIT_COMMENT_REASON` — arrays, default
|
|
380
434
|
empty: extra directive prefixes appended to the built-in kit-mechanism
|
|
381
435
|
roster (a consumer's product vocabulary). `CANON_KIT_COMMENT_SURFACE` —
|
|
@@ -434,12 +488,14 @@ each degrading to "no icebox" rather than to a wrong section when left unset. Va
|
|
|
434
488
|
Each gate below owns its own section — the assertion, its fixture pair, and the
|
|
435
489
|
reason for any bespoke unit test beside it. The bespoke unit tests are named
|
|
436
490
|
together here, because a roster spread across per-gate sections is one no reader
|
|
437
|
-
and no oracle sees whole: `check-
|
|
491
|
+
and no oracle sees whole: `check-amendment-update-target.test.sh`,
|
|
492
|
+
`check-comment-tier.test.sh`,
|
|
438
493
|
`check-deprecation-task.test.sh`, `check-docs-link-convention.test.sh`,
|
|
439
494
|
`check-knob-citation.test.sh`, `check-knob-default-coupling.test.sh`,
|
|
440
495
|
`check-manifest-count.test.sh`, `check-md-refs.test.sh`,
|
|
441
496
|
`check-measured-claim.test.sh`, `check-prose-enum.test.sh`,
|
|
442
|
-
`check-spec-dod-singleton.test.sh
|
|
497
|
+
`check-spec-dod-singleton.test.sh`, `check-tracking-claim.test.sh` and
|
|
498
|
+
`check-unmarked-claim.test.sh`.
|
|
443
499
|
|
|
444
500
|
### lib/spec.sh
|
|
445
501
|
|
|
@@ -456,10 +512,12 @@ same shapes:
|
|
|
456
512
|
never disagree on the set — and a done slug for a bare-slug bullet outside
|
|
457
513
|
them; the single grammar `check-todo-task-liveness`
|
|
458
514
|
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
|
-
|
|
515
|
+
walk is `native/src/spec.rs`'s `queue_slugs`**: both members compile, so the
|
|
516
|
+
shell walk went with its last caller, and so did the shell library's section
|
|
517
|
+
builders — the compiled classifier matches a section name against the
|
|
518
|
+
configured sets directly rather than through a built regex, so those builders
|
|
519
|
+
are defined here with no reader left in the tree, a residue whose disposition
|
|
520
|
+
is filed rather than taken at a close. That walk's bullet lead-line predicate is written again in the
|
|
463
521
|
crate rather than pointed at `native/src/queue.rs`'s adapters, which keeps
|
|
464
522
|
canon-kit one of the format's independent holders under the
|
|
465
523
|
re-implement-and-cite-from-both-ends rule
|
|
@@ -544,9 +602,10 @@ same shapes:
|
|
|
544
602
|
element, so a `<name>`⇥`<member>` line cannot cross as a single string. The
|
|
545
603
|
resolution is gated on `GATE_SDK_RESOLVING_KNOB` (gate-sdk/SPEC.md
|
|
546
604
|
§lib/gate.sh), because it costs a subprocess and this library is sourced once
|
|
547
|
-
per declared knob per gate.
|
|
548
|
-
the enum sets, `CANON_KIT_INSTALL_TRANSPORT_IDS` / `..._PATTERNS`,
|
|
549
|
-
`CANON_KIT_PAYLOAD_CLAIM_IDS` / `..._PATTERNS
|
|
605
|
+
per declared knob per gate. Four vocabularies ride that shape, one pair each:
|
|
606
|
+
the enum sets, `CANON_KIT_INSTALL_TRANSPORT_IDS` / `..._PATTERNS`,
|
|
607
|
+
`CANON_KIT_PAYLOAD_CLAIM_IDS` / `..._PATTERNS`, and
|
|
608
|
+
`CANON_KIT_CLAIM_CLASS_IDS` / `..._PATTERNS` (§Layout and configuration). The
|
|
550
609
|
emitting **command** knob is bridged beside each pair, because it is what tells
|
|
551
610
|
*none configured* from *configured, and it declared nothing* — the two clean
|
|
552
611
|
skips a claim gate reports apart. The tab a POSIX ERE may legitimately carry
|
|
@@ -555,7 +614,14 @@ same shapes:
|
|
|
555
614
|
- **The count adapter** the restated-total gates share, so a consumer's
|
|
556
615
|
`CANON_KIT_COUNT_COLLECTIONS` vocabulary enters once and every such gate
|
|
557
616
|
matches the same total shapes — including a total whose cardinal and noun
|
|
558
|
-
straddle a prose wrap, reported at the cardinal's physical line.
|
|
617
|
+
straddle a prose wrap, reported at the cardinal's physical line. **That
|
|
618
|
+
wrap-straddling normalization now has a second reader**: `check-unmarked-claim`
|
|
619
|
+
matches a class ERE against the same normalized paragraph and maps the match's
|
|
620
|
+
span back to the physical line it starts on (`FlatPara`,
|
|
621
|
+
`native/src/spec.rs`), so both cross a prose wrap by one rule rather than by a
|
|
622
|
+
copy each. What the count adapter owns is the *total* grammar; what the flatten
|
|
623
|
+
adapter owns is the *subject* a pattern is matched against, and separating them
|
|
624
|
+
is why a second reader cost a call rather than a fork. The boundary
|
|
559
625
|
rule and the mechanical exemptions live in one shared fragment, so no sibling
|
|
560
626
|
drifts from another in what it counts as a total (§check-manifest-count). That
|
|
561
627
|
boundary guards a prose **noun** against gluing to a following word ("gate"
|
|
@@ -570,7 +636,10 @@ same shapes:
|
|
|
570
636
|
`spec_claim_vocabulary <command> <label>` — one loader for every
|
|
571
637
|
`<id>`⇥`<ERE>` vocabulary a claim gate reads, taking the command as an
|
|
572
638
|
argument rather than from one named knob so a second claim axis costs a caller
|
|
573
|
-
and not a second copy.
|
|
639
|
+
and not a second copy. **That argument is attested rather than anticipated:**
|
|
640
|
+
`check-unmarked-claim` is the fourth caller and it arrived as a caller and
|
|
641
|
+
nothing else — no fork of the loader, no second copy of the shape checks. It
|
|
642
|
+
carries the
|
|
574
643
|
same fail-closed contract its enum-set sibling does — a command error, an
|
|
575
644
|
unparsable line, an id that is not slug-shaped, or a repeated id is exit 2 —
|
|
576
645
|
and the `<label>` it is given names the failing vocabulary in every message,
|
|
@@ -580,10 +649,14 @@ same shapes:
|
|
|
580
649
|
callers are `spec_install_transports`, over
|
|
581
650
|
`CANON_KIT_INSTALL_TRANSPORTS_CMD` (§check-install-claim);
|
|
582
651
|
`check-payload-claim` directly, over `CANON_KIT_PAYLOAD_CLAIMS_CMD`
|
|
583
|
-
(§check-payload-claim);
|
|
652
|
+
(§check-payload-claim); `spec_measured_claims`, over
|
|
584
653
|
`CANON_KIT_MEASURED_CLAIMS_CMD` (§check-measured-claim) — whose second field is
|
|
585
654
|
a measured value rather than an ERE, which the loader neither interprets nor
|
|
586
|
-
needs to, since every check it makes is on the line's shape
|
|
655
|
+
needs to, since every check it makes is on the line's shape; and
|
|
656
|
+
`check-unmarked-claim` directly, over `CANON_KIT_CLAIM_CLASSES_CMD`
|
|
657
|
+
(§check-unmarked-claim). The two-field shape is what makes that last caller
|
|
658
|
+
coverage-only: a class cannot carry a required key beside its ERE without a
|
|
659
|
+
third field this loader refuses, and the refusal is kept rather than relaxed.
|
|
587
660
|
- **The comment-surface adapters:** the comment gates read *different* surfaces,
|
|
588
661
|
which is the one thing the primitive's parameter decides.
|
|
589
662
|
`check-spec-pointer` scans the template-pruned surface — a template's `spec:`
|
|
@@ -594,6 +667,23 @@ same shapes:
|
|
|
594
667
|
source (§check-comment-tier). Which finder a gate uses is kit contract, not
|
|
595
668
|
consumer config — a consumer wanting the old blanket exemption shadows the
|
|
596
669
|
gate.
|
|
670
|
+
- **The amendment finder** `spec_amendments`, the amendment-glob counterpart of
|
|
671
|
+
`spec_canonical_specs` above. Its last shell caller left at §The sixth budget
|
|
672
|
+
batch (gate-sdk/SPEC.md), and the function stays: the dead-twin disposition
|
|
673
|
+
(gate-sdk/SPEC.md §The port-candidate criteria, criterion 2) reaches
|
|
674
|
+
**undocumented** surface only, and this bullet documents it. The live holder is
|
|
675
|
+
`native/src/spec.rs`.
|
|
676
|
+
Its consumers are `check-amendment-queue` and
|
|
677
|
+
`check-amendment-update-target`, and they **differ in fail-closed posture on
|
|
678
|
+
purpose** — so the crate holds two spellings of one walk, `amendments` and
|
|
679
|
+
`amendments_strict`, rather than one that reads as drift. The best-effort form
|
|
680
|
+
swallows an unwalkable scan root and yields no amendments, which the queue gate
|
|
681
|
+
can afford because an empty amendment set cannot hide a violation there (every
|
|
682
|
+
`[spec:]` ref then dangles and the run reds). The update-target gate has no
|
|
683
|
+
second surface to contradict an empty set, so for it an empty set hides every
|
|
684
|
+
violation silently and the walk refuses instead. Each section states its own
|
|
685
|
+
half; the difference is a reasoned divergence, never an inconsistency to
|
|
686
|
+
reconcile.
|
|
597
687
|
- **The default-statement grammar** both knob gates share, so the rule for
|
|
598
688
|
what reads as a stated default has one home. `sk_literal_at` recognizes the
|
|
599
689
|
value literal opening a window (a backticked non-knob string, a quoted string,
|
|
@@ -602,6 +692,13 @@ same shapes:
|
|
|
602
692
|
as a value. `check-knob-citation` reads it to reject a restated value in prose;
|
|
603
693
|
`check-knob-default-coupling` reads it to confirm the SPEC states the source's
|
|
604
694
|
literal (§check-knob-default-coupling).
|
|
695
|
+
**Both callers are compiled since §The sixth budget batch, so the live holder is
|
|
696
|
+
`native/src/spec.rs`'s `DefaultGrammar`** — promoted there out of the first
|
|
697
|
+
gate's private implementation at that port, because the second caller arriving
|
|
698
|
+
is exactly when a private copy becomes the second owner this bullet exists to
|
|
699
|
+
prevent. The shell form's caller set emptied with it and it is **not** deleted:
|
|
700
|
+
the dead-twin disposition (gate-sdk/SPEC.md §The port-candidate criteria,
|
|
701
|
+
criterion 2) bounds itself to undocumented surface, and this bullet documents it.
|
|
605
702
|
|
|
606
703
|
### check-amendment-queue
|
|
607
704
|
|
|
@@ -629,7 +726,119 @@ carrying the tag reds nowhere, and queue-kit's lead-line gate misses it too
|
|
|
629
726
|
grammar is a bare slug line, so the tag is dropped by that grammar rather
|
|
630
727
|
than by a gate. The guard is total over the *promotion* moves it exists to
|
|
631
728
|
catch — design-pending → an active section — and silent on the disposition
|
|
632
|
-
move.
|
|
729
|
+
move. This is a limit on *this* gate's axis only: the amendment artifact is
|
|
730
|
+
held on a second axis by `check-amendment-update-target`
|
|
731
|
+
(§check-amendment-update-target), whose corpus is the same amendment set and
|
|
732
|
+
whose subject is what the file says about itself rather than how it pairs with
|
|
733
|
+
the queue.
|
|
734
|
+
|
|
735
|
+
**The amendment finder is best-effort, and the port had to reproduce that
|
|
736
|
+
rather than harden it.** `spec_amendments` ends `2>/dev/null … || true`, so an
|
|
737
|
+
unwalkable scan root yields *no amendments* instead of a refusal. Read against
|
|
738
|
+
gate-sdk/SPEC.md §Fail-closed contract the compiled form would refuse there —
|
|
739
|
+
and that would be a verdict change across the seam, which is exactly what the
|
|
740
|
+
port's parity run holds invariant. It is also not the vacuity that contract
|
|
741
|
+
guards: an empty amendment set cannot hide a violation in either direction,
|
|
742
|
+
because every `[spec:]` ref then dangles and the run reds. Recorded here
|
|
743
|
+
because the natural port instinct is to add the refusal, and the sibling
|
|
744
|
+
`check-todo-task-liveness` — which *does* refuse on a bad scan root — makes the
|
|
745
|
+
instinct look precedented. That member's shell form carried the `-d` guard;
|
|
746
|
+
this one never has.
|
|
747
|
+
|
|
748
|
+
### check-amendment-update-target
|
|
749
|
+
|
|
750
|
+
Invariant: in every amendment on disk, each entry under
|
|
751
|
+
`## Existing sections updated` cites at least one delta, and every cited delta is
|
|
752
|
+
defined under `## What changes` in the same amendment. The grammar it reads —
|
|
753
|
+
what a delta is, what a citation looks like — is contract, stated at
|
|
754
|
+
§The amendment lifecycle and shown to the author in
|
|
755
|
+
`templates/SPEC-amendment.md`.
|
|
756
|
+
|
|
757
|
+
The failure it closes is attested: an update target no delta claims **reaches
|
|
758
|
+
build as an orphan a batch adopts on its own authority**, which is the
|
|
759
|
+
template's own words for it. That is not hypothetical — one iteration dropped a
|
|
760
|
+
tightened-gates declaration across all three of its build batches, and a fourth
|
|
761
|
+
batch repaired it at validate.
|
|
762
|
+
|
|
763
|
+
**Three arms and a valve.**
|
|
764
|
+
|
|
765
|
+
- **A — the grammar.** Red (exit 1) when a `###` heading under `## What changes`
|
|
766
|
+
does not match `### (<N>) <title>`, or when the delta numbers, read in
|
|
767
|
+
document order, are not `1..n` unique and ascending. This is the arm that makes
|
|
768
|
+
B and C possible at all. Only the **first** ordering breach in a file is
|
|
769
|
+
reported: inserting one delta shifts every number after it, so reporting each
|
|
770
|
+
would bury the single edit that caused them.
|
|
771
|
+
- **B — the uncited target.** Red when a top-level `-` bullet under
|
|
772
|
+
`## Existing sections updated` carries no citation. The bullet's entry is the
|
|
773
|
+
bullet line plus its indented continuation, so a citation that wrapped across a
|
|
774
|
+
newline is still one subject — the same wrap-straddling boundary
|
|
775
|
+
§check-unmarked-claim crosses, for the same reason.
|
|
776
|
+
- **C — the dangling citation.** Red when a citation names an `<N>` no
|
|
777
|
+
`### (<N>)` heading defines, `all deltas` in an amendment that defines none
|
|
778
|
+
included. Without C, arms A and B both pass on an amendment whose targets cite
|
|
779
|
+
deltas that were renumbered out from under them.
|
|
780
|
+
- **Valve** — `<!-- update-target-exempt: <reason> -->` on the bullet's first
|
|
781
|
+
line or the one above, riding the shared exempt-window (§lib/spec.sh — the line
|
|
782
|
+
or the one above), and the reason is mandatory (the `comment-tier-exempt:`
|
|
783
|
+
convention). An exempt bullet leaves the target count as well as the finding.
|
|
784
|
+
|
|
785
|
+
A fenced block is skipped whole, on the ground §The amendment lifecycle already
|
|
786
|
+
gives the fence its exemption for: an amendment may embed a wire-contract delta
|
|
787
|
+
until merge, and a heading or a bullet inside one is grammar being shown rather
|
|
788
|
+
than a delta being defined.
|
|
789
|
+
|
|
790
|
+
**Fail-closed (exit 2):** a scan root that is not a directory; an amendment
|
|
791
|
+
carrying `## Existing sections updated` but no `## What changes`, where no entry
|
|
792
|
+
*can* be owned and no arm could say which to blame; a file the finder returns and
|
|
793
|
+
the reader cannot read; and **an unwalkable scan root**, where
|
|
794
|
+
§check-amendment-queue's best-effort finder returns empty instead. That last
|
|
795
|
+
divergence is deliberate and is the one to read carefully: the queue gate can
|
|
796
|
+
afford an empty amendment set because its other direction contradicts it, while
|
|
797
|
+
here an empty set hides every violation silently. The two spellings of the walk
|
|
798
|
+
live at §lib/spec.sh, which owns the asymmetry.
|
|
799
|
+
|
|
800
|
+
**No new knob, and the reason is not laziness.** The corpus is `spec_amendments`
|
|
801
|
+
(§lib/spec.sh) — the same finder §check-amendment-queue uses, already applying
|
|
802
|
+
the `templates/` exclusion that keeps a shipped `SPEC-amendment.md` skeleton from
|
|
803
|
+
being read as a live amendment, so the skeleton's illustrative headings cannot
|
|
804
|
+
red the gate that governs its copies. The two heading names are **kit constants,
|
|
805
|
+
not config**: they are canon-kit's own template's headings, and a consumer
|
|
806
|
+
editing them has edited canon-kit's artifact rather than configured it. The
|
|
807
|
+
contrast with §check-spec-dod-singleton's configurable Definition-of-Done heading
|
|
808
|
+
is real, and the line is where the surface is authored — that heading appears in
|
|
809
|
+
**consumer-authored canonical specs**, these appear in **copies of a kit-shipped
|
|
810
|
+
skeleton**. A knob is available later behind an attested consumer rename; adding
|
|
811
|
+
one now would be a knob whose only reader is §check-knob-citation.
|
|
812
|
+
|
|
813
|
+
**Deliberately not asserted: roster completeness.** The gate cannot check that
|
|
814
|
+
the update-target roster names every surface the change obliges a write to —
|
|
815
|
+
that is a claim about the world, not about the file, and no scanner reaches it.
|
|
816
|
+
It asserts the decidable half (every listed target is owned) and the align stage
|
|
817
|
+
keeps the other half, whose duty is unchanged: arm B catches a target that was
|
|
818
|
+
*listed and unowned*, never one that was never listed at all. Two stronger arms
|
|
819
|
+
were weighed and refused. Requiring **every delta to be cited by some target** is
|
|
820
|
+
false — a delta adding a wholly new section legitimately touches no existing one.
|
|
821
|
+
Requiring **every path or `§` reference in a delta body to appear in the roster**
|
|
822
|
+
would be high-false-positive, because a delta body names many surfaces for
|
|
823
|
+
context, and a gate that cries wolf trains its readers to bypass it (gate-sdk/SPEC.md
|
|
824
|
+
§When a gate earns its place).
|
|
825
|
+
|
|
826
|
+
**Criterion 4** (gate-sdk/SPEC.md §The port-candidate criteria) **clears**: the
|
|
827
|
+
corpus is `spec_amendments`, which reaches no gate declaration path. **Born
|
|
828
|
+
native**, no shell form authored — a crate-carrying tree births a gate native by
|
|
829
|
+
default and none of the three exception classes applies. Its `good/`+`bad/` pair
|
|
830
|
+
is its oracle: the `bad/` case carries a malformed heading, a non-sequential
|
|
831
|
+
delta number, an uncited target and a dangling citation together, so each arm has
|
|
832
|
+
an executable statement, while the `good/` case exercises the wrapped citation,
|
|
833
|
+
the list and possessive forms, `all deltas`, the fenced decoy and the valve.
|
|
834
|
+
`check-amendment-update-target.test.sh` holds the fail-closed exits and the
|
|
835
|
+
empty-corpus clean, which a one-pair harness cannot spell.
|
|
836
|
+
|
|
837
|
+
Producer of nothing but a verdict; its consumer is the committing session through
|
|
838
|
+
the output contract, on the generated pre-commit hook, `run-gates.sh` and CI, and
|
|
839
|
+
`run-gate-tests.sh` through the fixture pair. Its input is `spec_amendments`'
|
|
840
|
+
output — an existing producer with an existing enabling path, so nothing new must
|
|
841
|
+
be configured for the gate to see a live corpus. `precommit` tier.
|
|
633
842
|
|
|
634
843
|
### check-spec-dod-singleton
|
|
635
844
|
|
|
@@ -671,6 +880,34 @@ languages in `CANON_KIT_EMBED_ILLUSTRATIVE` are skipped by default; the
|
|
|
671
880
|
threshold is calibrated against real specs, not synthetic fixtures.
|
|
672
881
|
`precommit` tier.
|
|
673
882
|
|
|
883
|
+
**The wire-delta exemption is scoped to the configured wire kind, not to
|
|
884
|
+
amendments.** An amendment quoting enough distinct non-trivial lines of a tracked
|
|
885
|
+
file in a fence of any *other* language fires exactly as a canonical spec would,
|
|
886
|
+
which is what keeps the valve a bridge for a wire contract rather than a blanket
|
|
887
|
+
licence for amendment prose. The per-site marker is the general escape, and it is
|
|
888
|
+
a **path-identity** test against the amendment set rather than a name pattern —
|
|
889
|
+
which is what re-arms the exemption the moment the amendment is deleted, instead
|
|
890
|
+
of leaving a spelling that outlives its subject.
|
|
891
|
+
|
|
892
|
+
**Ported to the binary substrate at §The sixth budget batch** (gate-sdk/SPEC.md).
|
|
893
|
+
Criterion 4's verdict on it was taken **conservatively without ruling the class**:
|
|
894
|
+
its walk opens and content-compares every source file the language roster names,
|
|
895
|
+
its own declaration and every sibling's included, but as a *diff reference* rather
|
|
896
|
+
than as its assertion target, and whether that satisfies the criterion is the open
|
|
897
|
+
ruling `spec-embedded-source-criterion-4-membership` owns. The batch took the
|
|
898
|
+
binding verdict for its own member because that costs a fixture widening and
|
|
899
|
+
cannot be wrong in the harmful direction, while clearing wrongly ships the hole
|
|
900
|
+
the criterion exists to point at; a later reader must not read the disposition as
|
|
901
|
+
that entry's answer. The widening the verdict bought is the one delta the pair was
|
|
902
|
+
missing: its cases derive a real corpus and do reach the finder, but neither valve
|
|
903
|
+
was exercised by any committed case, and both now are.
|
|
904
|
+
|
|
905
|
+
**One second-order fact the port prices whichever way that class falls**: every
|
|
906
|
+
port removes a shell declaration from this gate's candidate index and adds a Rust
|
|
907
|
+
module to it, so its verdicts move under *every* sibling's port — the narrowing is
|
|
908
|
+
a swap rather than a removal, and a port can therefore create a violation here by
|
|
909
|
+
moving a derivation's text from a file the specs do not quote into one they do.
|
|
910
|
+
|
|
674
911
|
### check-manifest-temporal
|
|
675
912
|
|
|
676
913
|
Invariant: no temporal-narration marker in governed manifest prose outside an
|
|
@@ -868,11 +1105,22 @@ the emitter recomputes: a corpus size, a sorted membership list, a digest over
|
|
|
868
1105
|
the swept set. This is the axis no scanner reaches and it costs nothing extra —
|
|
869
1106
|
the same arms, with a set-valued rather than integer-valued oracle. Because the
|
|
870
1107
|
config bridge refuses an element containing a tab and tab is this protocol's own
|
|
871
|
-
field separator, a set-valued oracle joins its members with something else.
|
|
1108
|
+
field separator, a set-valued oracle joins its members with something else. This
|
|
1109
|
+
repo's first such inhabitant is `gate-substrates`, the live substrate set the
|
|
1110
|
+
enforcement core runs on, its members joined with `+`; it is the shape that makes
|
|
1111
|
+
a **definitional or qualitative** sentence self-correcting, since such a sentence
|
|
1112
|
+
carries no cardinal for arm C to check and would otherwise be marked with nothing
|
|
1113
|
+
an emitter could recompute.
|
|
872
1114
|
|
|
873
1115
|
**The known limit, stated rather than hidden: a claim nobody marks is uncaught
|
|
874
|
-
here.**
|
|
875
|
-
pressured rather than voluntary
|
|
1116
|
+
here.** It is narrowed from both sides, along different axes.
|
|
1117
|
+
§check-manifest-count's discharge makes marking pressured rather than voluntary
|
|
1118
|
+
wherever the ban already bites — a narrowing by **shape**, reaching whatever
|
|
1119
|
+
carries a bare cardinal over a governed collection. §check-unmarked-claim narrows
|
|
1120
|
+
by **subject**, reaching a claim a consumer has declared must not go unoracled
|
|
1121
|
+
whether or not it carries a number. Neither closes the limit; between them the
|
|
1122
|
+
uncaught remainder is a claim that is both unnumbered and undeclared, which is a
|
|
1123
|
+
smaller set than either alone leaves.
|
|
876
1124
|
|
|
877
1125
|
The scanned surface is its own glob knob, `CANON_KIT_MEASURED_SURFACE_GLOBS`,
|
|
878
1126
|
**not** the manifest set. The motivating class ranges over SPEC sections and
|
|
@@ -915,10 +1163,137 @@ oracle is its `good/`+`bad/` pair, exactly like any new shell gate's, with
|
|
|
915
1163
|
a consumer whose host the release publishes no artifact for, so on an uncovered
|
|
916
1164
|
platform this gate does not run where a shell gate would have. That is the port's
|
|
917
1165
|
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
|
-
|
|
1166
|
+
it is why the omit-and-declare path exists — a paid price, not an open risk. Its
|
|
1167
|
+
reach stayed deliberately open here — *this* gate settled, a second one weighing
|
|
1168
|
+
the cost again rather than citing this one as blanket precedent — and that
|
|
1169
|
+
question has since been **closed by ruling rather than by precedent**: new gates
|
|
1170
|
+
in a crate-carrying tree are born native by default, with shell an exception
|
|
1171
|
+
under one of three stated classes (gate-sdk/SPEC.md §The port-candidate
|
|
1172
|
+
criteria). The refusal above is unaffected in its own terms: what settles the
|
|
1173
|
+
second gate is the ruling, never this section.
|
|
1174
|
+
|
|
1175
|
+
### check-unmarked-claim
|
|
1176
|
+
|
|
1177
|
+
Invariant: on the scanned prose surface, a paragraph matching a
|
|
1178
|
+
consumer-declared **claim-class** pattern carries a `measured:` marker. The class
|
|
1179
|
+
this closes is the axis §check-measured-claim names as its own known limit: the
|
|
1180
|
+
marker is voluntary, so the claims that most need an oracle are exactly the ones
|
|
1181
|
+
an author never thought to mark. This gate makes marking **pressured inside a
|
|
1182
|
+
declared class**, the same narrowing §check-manifest-count already performs for
|
|
1183
|
+
the bare-cardinal shape — there by *shape*, here by *subject*.
|
|
1184
|
+
|
|
1185
|
+
**It declares a class; it does not ban a phrase, and the difference is the whole
|
|
1186
|
+
design.** A ban is discharged forever the moment the banned phrase is deleted, and
|
|
1187
|
+
it can only ever face one direction. A class assertion fires again on the next
|
|
1188
|
+
author who states the same thing in new words, and it covers a claim that
|
|
1189
|
+
overstates in *either* direction, because what puts a sentence in the class is
|
|
1190
|
+
what it asserts rather than which words it reaches for. The two properties are
|
|
1191
|
+
one property: the class is written over the claim, never over a canonical
|
|
1192
|
+
phrasing.
|
|
1193
|
+
|
|
1194
|
+
**Two arms and a valve.**
|
|
1195
|
+
|
|
1196
|
+
- **A — an unmarked claim.** Red (exit 1) when a paragraph matches a declared
|
|
1197
|
+
class ERE and no `measured:` marker binds it. The finding names the class id,
|
|
1198
|
+
the file, and the physical line where the match starts, and its `help:` line
|
|
1199
|
+
states the three remedies below. A paragraph yields at most one finding, at the
|
|
1200
|
+
first class in roster order that matches it.
|
|
1201
|
+
- **B — the vocabulary fails to load.** Exit 2 on a command error, an unparsable
|
|
1202
|
+
line, a non-slug id, or a repeated id — inherited unchanged from
|
|
1203
|
+
`spec_claim_vocabulary` (§lib/spec.sh), which already names the failing
|
|
1204
|
+
vocabulary by its `<label>` in every message — and on a declared ERE that does
|
|
1205
|
+
not compile, which is the same unreadable-roster failure one step later.
|
|
1206
|
+
- **Valve** — `<!-- unmarked-claim-exempt: <reason> -->` on the flagged line or
|
|
1207
|
+
directly above it, riding the shared exempt-window (§lib/spec.sh — the line or
|
|
1208
|
+
the one above), and the reason is mandatory (the `comment-tier-exempt:`
|
|
1209
|
+
convention — a deliberate keep carries its cause in-line, a reasonless valve is
|
|
1210
|
+
red).
|
|
1211
|
+
|
|
1212
|
+
**The three remedies, and the gate is indifferent between them.** Rewrite the
|
|
1213
|
+
sentence out of the class (the doctrine's preference — a claim not made cannot go
|
|
1214
|
+
stale); attach a `measured:` marker binding it to an oracle; or land a reasoned
|
|
1215
|
+
valve. Naming all three on the finding is what keeps the gate from reading as a
|
|
1216
|
+
ban, which it deliberately is not.
|
|
1217
|
+
|
|
1218
|
+
**Matching is whitespace-normalized across lines, and this is load-bearing rather
|
|
1219
|
+
than a nicety.** A claim spans a prose wrap as readily as it fits on one line, so
|
|
1220
|
+
a line-keyed predicate is blind by construction on whatever fraction of its corpus
|
|
1221
|
+
happens to wrap — a fraction no author controls and no reviewer can see. The ERE
|
|
1222
|
+
is matched against the paragraph with every run of whitespace, the newline at a
|
|
1223
|
+
wrap included, collapsed to one space; the finding is reported at the physical
|
|
1224
|
+
line the match starts on. This is not a new mechanism: it is the boundary
|
|
1225
|
+
§check-manifest-count already crosses for a total whose cardinal and noun straddle
|
|
1226
|
+
a wrap, reported at the cardinal's physical line, and the shared adapter
|
|
1227
|
+
(§lib/spec.sh) is where that normalization already lives. The subject is
|
|
1228
|
+
**ASCII-lowercased** before matching and a class pattern is authored in lower
|
|
1229
|
+
case, so a sentence's opening capital is not a way past the class.
|
|
1230
|
+
|
|
1231
|
+
**A paragraph is the unit, and it is §check-measured-claim's paragraph**, so the
|
|
1232
|
+
both gates agree on what a marker binds: the block ending at a blank line, a fence,
|
|
1233
|
+
or the end of file, with the marker line riding inside the block it heads — which
|
|
1234
|
+
is what makes carrying a marker a property of the paragraph rather than of a line.
|
|
1235
|
+
Fenced blocks are skipped for the reason that section gives: a fence is grammar
|
|
1236
|
+
being shown, not a claim being made.
|
|
1237
|
+
|
|
1238
|
+
**Coverage-only, and the reason is a constraint rather than a preference.** The
|
|
1239
|
+
gate asserts that a matched claim carries *a* marker; it does not assert *which*
|
|
1240
|
+
key. `spec_claim_vocabulary` is a two-field loader that **rejects a line carrying
|
|
1241
|
+
an extra tab**, so a class cannot declare a required key beside its ERE without a
|
|
1242
|
+
third field the loader refuses. Adding one would fork the loader every claim gate
|
|
1243
|
+
shares — the cost §lib/spec.sh explicitly took the shared-loader shape to avoid.
|
|
1244
|
+
The key is checked by `check-measured-claim` on the very next arm (its arm B fails
|
|
1245
|
+
closed on a key nobody emits, its arm A on a value the oracle now contradicts),
|
|
1246
|
+
so the composition covers it and neither gate duplicates the other.
|
|
1247
|
+
|
|
1248
|
+
The scanned surface is `CANON_KIT_MEASURED_SURFACE_GLOBS` — **shared with
|
|
1249
|
+
`check-measured-claim`, not forked**, because they compose: a claim this
|
|
1250
|
+
one pressures into a marker is a claim that one then re-measures, and holding them
|
|
1251
|
+
over one corpus is what makes that handoff total. The cost of sharing is stated
|
|
1252
|
+
rather than hidden: a consumer wanting claim classes over a *different* surface
|
|
1253
|
+
than its measured claims cannot express that, and the split is available later
|
|
1254
|
+
behind an attested need.
|
|
1255
|
+
|
|
1256
|
+
**The roster is consumer config and the seam here is sharper than its siblings'.**
|
|
1257
|
+
Every class id and every pattern arrives through `CANON_KIT_CLAIM_CLASSES_CMD`
|
|
1258
|
+
(§Layout and configuration); the scan, the normalization, the marker lookup and
|
|
1259
|
+
the verdict are kit mechanism. Beyond the provenance seam every claim gate
|
|
1260
|
+
observes, this one has a reason of its own: **this SPEC is itself governed prose**,
|
|
1261
|
+
so a kit that enumerated a consumer's claim phrasings would match its own class
|
|
1262
|
+
while describing it and need a valve to say what it does. Holding the roster in
|
|
1263
|
+
consumer config means the kit's prose never spells a member. An unset command
|
|
1264
|
+
means no class is declared and the gate reports clean — the inactive-by-default
|
|
1265
|
+
posture its `*_CMD` siblings take, and the correct posture rather than a gap: only
|
|
1266
|
+
a consumer's own vocabulary can turn this gate on.
|
|
1267
|
+
|
|
1268
|
+
**The honest limit, and it is a property of what a roster can hold.** A claim
|
|
1269
|
+
stated in a **single implementation-tool token** with no predicate around it is out
|
|
1270
|
+
of reach: rostering the bare token would fire on every passing mention of the tool,
|
|
1271
|
+
and a gate that cries wolf is a gate its readers learn to bypass — the failure §When
|
|
1272
|
+
a gate earns its place (gate-sdk/SPEC.md) names as a defect in the gate rather than
|
|
1273
|
+
in the corpus. The general move for a noisy member is to roster **the predicate the
|
|
1274
|
+
noisy subject attaches to** rather than the subject, which recovers the site with
|
|
1275
|
+
none of the noise; a bare token offers no predicate to move to, and that is the
|
|
1276
|
+
residue. Two further bounds are deliberate: the gate cannot tell a **true** class
|
|
1277
|
+
member from a false one — it asserts the claim is *bound* to an oracle and
|
|
1278
|
+
`check-measured-claim` then asserts the oracle agrees — and neither reaches a
|
|
1279
|
+
sentence whose prose is true today and whose stated *reason* is wrong, which stays
|
|
1280
|
+
a human judgment.
|
|
1281
|
+
|
|
1282
|
+
**Criterion 4** (gate-sdk/SPEC.md §The port-candidate criteria) **clears**: the
|
|
1283
|
+
corpus is a pure glob expansion of the configured surface set, reaching no gate
|
|
1284
|
+
declaration path in this tree — the same verdict and the same reasoning as
|
|
1285
|
+
§check-prose-tells, and flippable by the same consumer config. **Born native**, with
|
|
1286
|
+
no shell form authored: a crate-carrying tree births a gate native by default and
|
|
1287
|
+
none of the three exception classes applies here (gate-sdk/SPEC.md §The
|
|
1288
|
+
port-candidate criteria). Its `good/`+`bad/` pair is its oracle — the `bad/` case
|
|
1289
|
+
carries a claim wrapped across a newline, so the line-keyed blindness above is
|
|
1290
|
+
executable rather than asserted — with `check-unmarked-claim.test.sh` holding the
|
|
1291
|
+
fail-closed vocabulary arms and the two distinct clean skips a pair cannot spell.
|
|
1292
|
+
|
|
1293
|
+
Producer of nothing but a verdict; its consumer is the committing session through
|
|
1294
|
+
the output contract, on the generated pre-commit hook, `run-gates.sh` and CI. Each
|
|
1295
|
+
paragraph is read at the single scan transition, no persistent state. `precommit`
|
|
1296
|
+
tier.
|
|
922
1297
|
|
|
923
1298
|
### check-prose-enum
|
|
924
1299
|
|
|
@@ -1147,10 +1522,20 @@ honest limit: agreement is confirmed by the source literal appearing as the
|
|
|
1147
1522
|
SPEC's stated default, so a value the SPEC never pins to a literal cannot be
|
|
1148
1523
|
coupled — only a literal disagreement or a wholly undocumented default reds.
|
|
1149
1524
|
|
|
1525
|
+
**Ported to the binary substrate at §The sixth budget batch** (gate-sdk/SPEC.md),
|
|
1526
|
+
where it took criterion 4 in its sharpest form: its `couples=` field is one level
|
|
1527
|
+
deep and so does not cover its own declaration path, while the recursive kit-root
|
|
1528
|
+
walk beneath it — which prunes `templates/` and nothing else — reads that path as
|
|
1529
|
+
content on every run. Couple clears, walk binds. Its assertion target is the
|
|
1530
|
+
grammar of a default, never a gate's dispatch relation, so the criterion is paid
|
|
1531
|
+
by the good/bad pair rather than answered by staying shell (§Meta-gate
|
|
1532
|
+
conservation for the binary substrate).
|
|
1533
|
+
|
|
1150
1534
|
Producer: the generated pre-commit hook / `run-gates.sh`, coupled to kit source
|
|
1151
1535
|
and the kit SPECs; consumer: the committing operator via the output contract —
|
|
1152
1536
|
file, the knob, the source literal, and the owning SPEC, each read once at the
|
|
1153
|
-
scan transition, no persistent state. Fail-closed on
|
|
1537
|
+
scan transition, no persistent state. Fail-closed on an unreadable kit root or an
|
|
1538
|
+
unresolved knob. The good/bad
|
|
1154
1539
|
pair covers self-agreement, the SPEC disagreement, and both idioms;
|
|
1155
1540
|
`check-knob-default-coupling.test.sh` covers the cross-kit owning SPEC, the
|
|
1156
1541
|
absent-default red, and the descriptive/array/empty/deferral skips the pair
|
|
@@ -1181,7 +1566,7 @@ vendored source, `install:` by the installer's recipe module and
|
|
|
1181
1566
|
off `smoke/install.sh`, gate-sdk/SPEC.md §The install disposition and
|
|
1182
1567
|
§Consumer smoke), a reason directive (a spec pointer, usage synopsis, or
|
|
1183
1568
|
positional justification: `spec:`, `usage:`, `exception-list:`,
|
|
1184
|
-
`no-fixture:`, `assertion`, `permanent:`, `TODO(task:`,
|
|
1569
|
+
`no-fixture:`, `no-port:`, `port-until:`, `assertion`, `permanent:`, `TODO(task:`,
|
|
1185
1570
|
`TODO(spec-ambiguity)`, which blesses a bounded window — its own line plus
|
|
1186
1571
|
continuation lines up to `CANON_KIT_COMMENT_RUN_CAP` total physical comment
|
|
1187
1572
|
lines, blank `#` lines counted; a directive mid-run opens a fresh window
|
|
@@ -1214,6 +1599,15 @@ still applies. A descriptor's own lines are directives by construction. Marker
|
|
|
1214
1599
|
matching is on the **token**, independent of the comment leader, so `//` and `#`
|
|
1215
1600
|
carry the same directives and no language earns a quieter standard.
|
|
1216
1601
|
|
|
1602
|
+
**The colon side's sharp edge is a naming rule, not a matcher one.** A colon
|
|
1603
|
+
directive matches as a substring (the joining rule under Calibration below), so a
|
|
1604
|
+
short token nests inside ordinary vocabulary: a directive named `port:` would
|
|
1605
|
+
silently bless `support:`, `transport:`, `export:` and `report:`. Roster names on
|
|
1606
|
+
that side are chosen not to nest; a bare word is bounded and carries no such
|
|
1607
|
+
hazard. Unenforced by construction — the hazard is in a name that does not exist
|
|
1608
|
+
yet, and a scanner over a roster of literals would be checking the roster against
|
|
1609
|
+
itself.
|
|
1610
|
+
|
|
1217
1611
|
One shape overrides the window: a full-line comment carrying a **restated
|
|
1218
1612
|
collection total** — the count grammar of §check-manifest-count, over the same
|
|
1219
1613
|
`CANON_KIT_COUNT_COLLECTIONS` vocabulary — is flagged even where a directive
|
|
@@ -1644,6 +2038,7 @@ as source references.
|
|
|
1644
2038
|
|
|
1645
2039
|
### check-docs-link-convention
|
|
1646
2040
|
|
|
2041
|
+
`checks/check-docs-link-convention.gate` (`precommit`, binary-dispatched).
|
|
1647
2042
|
Invariant: every relative markdown link on a docs-site page obeys the
|
|
1648
2043
|
downward-citation *shape* — the resolution of those links is `check-md-refs`'
|
|
1649
2044
|
charge, and this gate owns shape alone. Absolute reference links (the off-site
|
|
@@ -1685,6 +2080,20 @@ pure `#anchor` (no path) satisfies neither rule. Per-site valve: a
|
|
|
1685
2080
|
above suppresses that one finding — for the rare legitimate directory link a
|
|
1686
2081
|
consumer's layout demands. A missing scan root is fail-closed (exit 2).
|
|
1687
2082
|
|
|
2083
|
+
**The walk is unpruned, deliberately, and the port carries that rather than the
|
|
2084
|
+
kit's shared prune set** (gate-sdk/SPEC.md §The fourth budget batch): the shell
|
|
2085
|
+
form reached for a bare `find` rather than `gate_find`, so a docs tree with a
|
|
2086
|
+
directory named like a prune entry is still scanned whole. The compiled form
|
|
2087
|
+
takes the prune-free traversal for the same reason, and orders its pages by
|
|
2088
|
+
bytes where the shell's `| sort` ordered them by the invoking locale's
|
|
2089
|
+
collation — a report-order narrowing, never a change to which pages are read.
|
|
2090
|
+
Target resolution is likewise lexical where the shell called
|
|
2091
|
+
`realpath -m --relative-to=.`: the two agree on a tree with no symlinked docs
|
|
2092
|
+
directory, which every case compared at the port confirmed, including an
|
|
2093
|
+
absolute scan root and a scan root of `.`. The bespoke
|
|
2094
|
+
`gate-tests/check-docs-link-convention.test.sh` holds the off-root rule's edges
|
|
2095
|
+
and dispatches through `gate_run`.
|
|
2096
|
+
|
|
1688
2097
|
### check-docs-cmd
|
|
1689
2098
|
|
|
1690
2099
|
Invariant: every invoked repo-relative `.sh` path and every kit-prefixed env
|
|
@@ -1978,6 +2387,23 @@ Exact detection regexes are implementation, owned by the gate source; the
|
|
|
1978
2387
|
(`bad/` trips every assertion, `good/` passes all and demonstrates the valve).
|
|
1979
2388
|
Thresholds are the `CANON_KIT_PROSE_TELL_*` knobs (§Layout and configuration).
|
|
1980
2389
|
|
|
2390
|
+
**Ported to the binary substrate at §The sixth budget batch** (gate-sdk/SPEC.md).
|
|
2391
|
+
Two properties of the port are stated here because neither is visible from the
|
|
2392
|
+
assertion list. The corpus is walked **once per file**, not once per surface set:
|
|
2393
|
+
assertion D is an in-file assertion, so a shared walk would pool every surface's
|
|
2394
|
+
tokens into one buffer and an abbreviation expanded in any file would clear it in
|
|
2395
|
+
all of them. And the thresholds are **coerced, not validated** — the port
|
|
2396
|
+
reproduces that rather than hardening it, because a refusal the shell form never
|
|
2397
|
+
made is a verdict change across the seam. A malformed threshold therefore reads
|
|
2398
|
+
as zero on both substrates, which makes the gate fire on everything or never; the
|
|
2399
|
+
repair belongs in the library, where one computation would serve both, and is
|
|
2400
|
+
filed as its own unit rather than taken here.
|
|
2401
|
+
|
|
2402
|
+
Criterion 4 **clears** on this member and the verdict is a property of a
|
|
2403
|
+
consumer's config rather than of the gate: its corpus is a pure glob expansion of
|
|
2404
|
+
the configured prose-surface set, which reaches no gate declaration path in this
|
|
2405
|
+
tree. A consumer whose prose globs named descriptors would flip it.
|
|
2406
|
+
|
|
1981
2407
|
**Valve** — an HTML comment `<!-- prose-tell-exempt: <reason> -->` on the
|
|
1982
2408
|
flagged line or directly above it suppresses the tell at that site; it rides the
|
|
1983
2409
|
shared exempt-window (§lib/spec.sh — the line or the one above), and the reason
|