checkwright 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +855 -96
- package/lib/common/lock.sh +45 -9
- package/lib/common/profile.sh +33 -0
- package/lib/common/recipe.sh +50 -34
- package/lib/diff.sh +66 -0
- package/lib/doctor.sh +67 -42
- package/lib/init.sh +62 -46
- package/lib/uninstall.sh +214 -0
- package/lib/update.sh +34 -0
- package/package.json +2 -2
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/README.md +1 -0
- package/payload/canon-kit/SPEC.md +527 -63
- package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
- package/payload/canon-kit/checks/check-comment-tier.gate +3 -0
- package/payload/canon-kit/checks/check-deprecation-task.gate +3 -0
- package/payload/canon-kit/checks/check-docs-cmd.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
- package/payload/canon-kit/checks/check-install-claim.gate +3 -0
- package/payload/canon-kit/checks/check-knob-citation.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
- package/payload/canon-kit/checks/check-manifest-count.gate +3 -0
- package/payload/canon-kit/checks/check-manifest-temporal.gate +3 -0
- package/payload/canon-kit/checks/check-md-refs.gate +3 -0
- package/payload/canon-kit/checks/check-measured-claim.gate +3 -0
- package/payload/canon-kit/checks/check-payload-claim.gate +3 -0
- package/payload/canon-kit/checks/check-prose-enum.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.gate +3 -0
- package/payload/canon-kit/checks/check-spec-dod-singleton.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
- package/payload/canon-kit/checks/check-spec-fence-balance.gate +3 -0
- package/payload/canon-kit/checks/check-spec-pointer.gate +3 -0
- package/payload/canon-kit/checks/check-surface-duplication.sh +1 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.gate +3 -0
- package/payload/canon-kit/checks/check-tracking-claim.gate +3 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/.workflow/fixture-state.txt +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/templates/bad-tmpl.sh +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +3 -2
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +27 -5
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +61 -9
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +12 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +23 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +90 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +3 -3
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +21 -7
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -2
- package/payload/canon-kit/lib/spec.sh +91 -62
- package/payload/canon-kit/smoke/install.sh +2 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +4 -1
- package/payload/context-kit/README.md +10 -5
- package/payload/context-kit/SPEC.md +364 -62
- package/payload/context-kit/bin/always-loaded.sh +5 -21
- package/payload/context-kit/bin/env-probe.sh +21 -23
- package/payload/context-kit/checks/check-brevity.gate +3 -0
- package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
- package/payload/context-kit/checks/check-memory-off.gate +3 -0
- package/payload/context-kit/checks/check-settings-paths.gate +3 -0
- package/payload/context-kit/checks/check-settings-pins.gate +3 -0
- package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
- package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
- package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +12 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/real-tool.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/tools/real-tool.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +9 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
- package/payload/context-kit/lib/context.sh +56 -0
- package/payload/context-kit/lib/toolfloor.sh +15 -4
- package/payload/context-kit/smoke/agents-md.sh +27 -4
- package/payload/context-kit/smoke/install.sh +4 -2
- package/payload/context-kit/templates/session-context.sh +5 -5
- package/payload/delegation-kit/README.md +3 -3
- package/payload/delegation-kit/SPEC.md +400 -22
- package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
- package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
- package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
- package/payload/delegation-kit/smoke/install.sh +1 -1
- package/payload/delegation-kit/templates/agent-execution.md +109 -18
- package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
- package/payload/doctrine-kit/DOCTRINE.md +86 -12
- package/payload/doctrine-kit/README.md +7 -3
- package/payload/doctrine-kit/SPEC.md +103 -10
- package/payload/doctrine-kit/bin/install-doctrine.sh +83 -13
- package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +84 -5
- package/payload/doctrine-kit/smoke/install.sh +106 -3
- package/payload/drift-kit/README.md +2 -2
- package/payload/drift-kit/SPEC.md +84 -11
- package/payload/drift-kit/bin/kfric.sh +21 -2
- package/payload/drift-kit/bin/stage-economics.sh +1 -1
- package/payload/drift-kit/lib/drift.sh +43 -0
- package/payload/drift-kit/smoke/install.sh +49 -14
- package/payload/evidence-kit/README.md +3 -1
- package/payload/evidence-kit/SPEC.md +160 -19
- package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +43 -2
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
- package/payload/evidence-kit/lib/evidence.sh +2 -0
- package/payload/evidence-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/README.md +23 -7
- package/payload/gate-sdk/SPEC.md +6402 -291
- package/payload/gate-sdk/bin/build-native.sh +38 -0
- package/payload/gate-sdk/bin/gen-pre-commit.sh +23 -3
- package/payload/gate-sdk/bin/install-hooks.sh +14 -2
- package/payload/gate-sdk/bin/port-blockers.sh +473 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +8 -1
- package/payload/gate-sdk/bin/run-gate-tests.sh +27 -7
- package/payload/gate-sdk/bin/run-gates.sh +30 -2
- package/payload/gate-sdk/bin/upgrade-smoke.sh +70 -17
- package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -0
- package/payload/gate-sdk/checks/check-action-pinning.gate +1 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +2 -0
- package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
- package/payload/gate-sdk/checks/check-core-files.gate +3 -0
- package/payload/gate-sdk/checks/check-crate-arms.sh +62 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +32 -6
- package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +109 -14
- package/payload/gate-sdk/checks/check-graph.gate +3 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-identity.gate +3 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +93 -0
- package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
- package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
- package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
- package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +2 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-template-registry-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-test-hermetic.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +2 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
- package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +12 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/src/gates/native_sample.rs +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/src/gates/native_sample.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +110 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +110 -4
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
- package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
- package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +6 -5
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
- package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +204 -1
- package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +24 -12
- package/payload/gate-sdk/lib/gate.sh +353 -22
- package/payload/gate-sdk/lib/inject.sh +25 -0
- package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
- package/payload/gate-sdk/smoke/install.sh +47 -1
- package/payload/guard-kit/README.md +14 -11
- package/payload/guard-kit/SPEC.md +477 -82
- package/payload/guard-kit/bin/run-guard-tests.sh +7 -1
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
- package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
- package/payload/guard-kit/guard-tests/cases.tsv +84 -14
- package/payload/guard-kit/lib/guard.sh +440 -54
- package/payload/guard-kit/templates/close-triage.md +5 -5
- package/payload/guard-kit/templates/settings-hooks.json +7 -1
- package/payload/lifecycle-kit/README.md +14 -3
- package/payload/lifecycle-kit/SPEC.md +929 -93
- package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +193 -38
- package/payload/lifecycle-kit/bin/file-gap.sh +29 -12
- package/payload/lifecycle-kit/bin/file-survey.sh +21 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
- package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +3 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.gate +3 -0
- package/payload/lifecycle-kit/checks/check-scratch-citation.gate +3 -0
- package/payload/lifecycle-kit/checks/check-shim-restatement.gate +3 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-evidence.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +3 -0
- package/payload/lifecycle-kit/checks/check-survey-record.gate +3 -0
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/gap-inbox.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/surfaces/queue.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +31 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +24 -25
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +129 -15
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +54 -26
- package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
- package/payload/lifecycle-kit/lib/stages.sh +9 -0
- package/payload/lifecycle-kit/smoke/install.sh +96 -19
- package/payload/lifecycle-kit/templates/lead.md +60 -0
- package/payload/lifecycle-kit/templates/stages/align.md +20 -2
- package/payload/lifecycle-kit/templates/stages/build.md +3 -3
- package/payload/lifecycle-kit/templates/stages/close.md +48 -15
- package/payload/lifecycle-kit/templates/stages/scope.md +29 -5
- package/payload/lifecycle-kit/templates/stages/spec.md +6 -2
- package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
- package/payload/queue-kit/README.md +12 -10
- package/payload/queue-kit/SPEC.md +411 -74
- package/payload/queue-kit/bin/queue-counts.sh +35 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +3 -0
- package/payload/queue-kit/checks/check-queue-hygiene.gate +3 -0
- package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
- package/payload/queue-kit/checks/check-queue-sections.gate +3 -0
- package/payload/queue-kit/checks/check-queue-slug-liveness.gate +3 -0
- package/payload/queue-kit/checks/check-queue-wrap.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
- package/payload/queue-kit/checks/check-tag-lead-line.gate +3 -0
- package/payload/queue-kit/checks/check-task-conservation.gate +4 -0
- package/payload/queue-kit/checks/check-task-names.gate +3 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +116 -0
- package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
- package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
- package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
- package/payload/queue-kit/lib/queue.sh +4 -68
- package/payload/queue-kit/smoke/install.sh +1 -1
- package/payload/site-kit/SPEC.md +52 -2
- package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +2 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
- package/payload/site-kit/smoke/install.sh +1 -1
- package/profiles.list +36 -8
- package/payload/canon-kit/checks/check-amendment-queue.sh +0 -116
- package/payload/canon-kit/checks/check-comment-tier.sh +0 -216
- package/payload/canon-kit/checks/check-deprecation-task.sh +0 -90
- package/payload/canon-kit/checks/check-docs-cmd.sh +0 -153
- package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -78
- package/payload/canon-kit/checks/check-install-claim.sh +0 -146
- package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -239
- package/payload/canon-kit/checks/check-manifest-count.sh +0 -46
- package/payload/canon-kit/checks/check-manifest-temporal.sh +0 -83
- package/payload/canon-kit/checks/check-md-refs.sh +0 -128
- package/payload/canon-kit/checks/check-payload-claim.sh +0 -133
- package/payload/canon-kit/checks/check-prose-enum.sh +0 -115
- package/payload/canon-kit/checks/check-prose-tells.sh +0 -207
- package/payload/canon-kit/checks/check-spec-derivable-section.sh +0 -69
- package/payload/canon-kit/checks/check-spec-dod-singleton.sh +0 -45
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -133
- package/payload/canon-kit/checks/check-spec-fence-balance.sh +0 -42
- package/payload/canon-kit/checks/check-spec-pointer.sh +0 -187
- package/payload/canon-kit/checks/check-todo-task-liveness.sh +0 -80
- package/payload/canon-kit/checks/check-tracking-claim.sh +0 -136
- package/payload/context-kit/bin/footprint.sh +0 -144
- package/payload/context-kit/checks/check-brevity.sh +0 -123
- package/payload/context-kit/checks/check-footprint-fresh.sh +0 -38
- package/payload/context-kit/checks/check-memory-off.sh +0 -112
- package/payload/context-kit/checks/check-settings-pins.sh +0 -110
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -61
- package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -139
- package/payload/delegation-kit/checks/check-rule-citation.sh +0 -76
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -216
- package/payload/drift-kit/bin/trajectory.sh +0 -242
- package/payload/evidence-kit/checks/check-battery-roster.sh +0 -86
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -103
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -104
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
- package/payload/gate-sdk/bin/enforcement-map.sh +0 -272
- package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
- package/payload/gate-sdk/checks/check-commit-msg.sh +0 -50
- package/payload/gate-sdk/checks/check-commit-subject.sh +0 -43
- package/payload/gate-sdk/checks/check-core-files.sh +0 -75
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -37
- package/payload/gate-sdk/checks/check-exec-bit.sh +0 -95
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -106
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -105
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -84
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -92
- package/payload/gate-sdk/checks/check-gate-output.sh +0 -73
- package/payload/gate-sdk/checks/check-graph.sh +0 -631
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -45
- package/payload/gate-sdk/checks/check-identity.sh +0 -134
- package/payload/gate-sdk/checks/check-kit-enum.sh +0 -94
- package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
- package/payload/gate-sdk/checks/check-readme-roster.sh +0 -107
- package/payload/gate-sdk/checks/check-reads-couples.sh +0 -199
- package/payload/gate-sdk/checks/check-root-tiering.sh +0 -66
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -126
- package/payload/gate-sdk/checks/check-template-registry-parity.sh +0 -81
- package/payload/gate-sdk/checks/check-test-hermetic.sh +0 -119
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -84
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
- package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -63
- package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +0 -98
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +0 -54
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +0 -69
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +0 -97
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +0 -59
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -197
- package/payload/lifecycle-kit/checks/check-stage-evidence.sh +0 -81
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +0 -47
- package/payload/lifecycle-kit/checks/check-survey-record.sh +0 -102
- package/payload/queue-kit/bin/queue-index.sh +0 -182
- package/payload/queue-kit/bin/roadmap.sh +0 -76
- package/payload/queue-kit/checks/check-queue-entry-budget.sh +0 -106
- package/payload/queue-kit/checks/check-queue-hygiene.sh +0 -81
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -63
- package/payload/queue-kit/checks/check-queue-sections.sh +0 -44
- package/payload/queue-kit/checks/check-queue-slug-liveness.sh +0 -63
- package/payload/queue-kit/checks/check-queue-wrap.sh +0 -56
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -110
- package/payload/queue-kit/checks/check-tag-lead-line.sh +0 -70
- package/payload/queue-kit/checks/check-task-conservation.sh +0 -50
- package/payload/queue-kit/checks/check-task-names.sh +0 -128
- package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -80
- /package/payload/context-kit/gate-tests/{check-memory-off → check-settings-paths}/bad/args +0 -0
- /package/payload/context-kit/gate-tests/{check-memory-off → check-settings-paths}/good/args +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
|
@@ -109,7 +109,7 @@ so the litmus runs at filing time, in the scope skill's triage.
|
|
|
109
109
|
### The causal-completeness check
|
|
110
110
|
|
|
111
111
|
Before an amendment is ready, every new state, event, and interface it
|
|
112
|
-
introduces passes
|
|
112
|
+
introduces passes five points:
|
|
113
113
|
|
|
114
114
|
1. **Producer named and reachable** — what code path, call, or timer
|
|
115
115
|
triggers it; a named producer whose enabling config no deployed
|
|
@@ -122,6 +122,18 @@ introduces passes four points:
|
|
|
122
122
|
name the consumer that reads it and the transition where it is read; a
|
|
123
123
|
field with no reader is removed, and a field read at one transition is
|
|
124
124
|
not populated at others.
|
|
125
|
+
5. **Each reader's red condition named, not merely its subject** — binding
|
|
126
|
+
on a delta that *narrows* a corpus (a prune, a tighter glob, a dropped
|
|
127
|
+
file). A reader is safe to clear **by inspection** under a narrowing only
|
|
128
|
+
if its verdict is monotone in the violation set, and three ordinary shapes
|
|
129
|
+
are not: a reader that reds on *finding none*, one asserting an exact
|
|
130
|
+
count, and one holding a minimum or a coverage floor. So enumerate what
|
|
131
|
+
makes each reader **red**, never what it is about, and inspect only the
|
|
132
|
+
monotone ones. Attested: pruning the file that held a declaration's sole
|
|
133
|
+
instance flips `check-install-claim` green to red, because its
|
|
134
|
+
red condition is a zero count — the narrowing *added* a violation.
|
|
135
|
+
"A narrower corpus can only remove violations" is false, and it is the
|
|
136
|
+
first argument a narrowing delta reaches for.
|
|
125
137
|
|
|
126
138
|
A cross-component causal gap that surfaces during build is not a deferred
|
|
127
139
|
TODO: stop, resolve it that session, update the spec before resuming.
|
|
@@ -148,6 +160,18 @@ supplies the checklist they invoke and the gate behind the promotion rule.
|
|
|
148
160
|
4. Move the queue entry to `## Done`, dropping its `[spec:]` tag — the
|
|
149
161
|
amendment it referenced is gone, and `check-amendment-queue` requires
|
|
150
162
|
every `[spec:]` ref to resolve to a file on disk.
|
|
163
|
+
**Unless the entry outlives the amendment.** Where an entry's deliverable is a
|
|
164
|
+
*corpus* and the amendment delivered one **increment** of it, the terminal move
|
|
165
|
+
is a **demotion** rather than a Done move: drop the `[spec:]` tag and return the
|
|
166
|
+
entry to the deferred section under its design-pending tag, so the next
|
|
167
|
+
increment re-promotes with a fresh amendment. A Done move there asserts a
|
|
168
|
+
finished deliverable that is not finished. It also costs a second thing that is
|
|
169
|
+
easy to miss: a done entry is a bare slug, so **every** tag the entry carried
|
|
170
|
+
goes with it — including any tag a generated public projection reads, which
|
|
171
|
+
silently drops the item from that projection while the work remains outstanding.
|
|
172
|
+
This is the branch to state explicitly because it is the uncatchable one — the
|
|
173
|
+
Done-move contract has no gate behind either half, so the wrong terminal move
|
|
174
|
+
reds nothing and is found only by a later reader.
|
|
151
175
|
5. Propagate removals (grep every spec for names the change retired), file
|
|
152
176
|
discovered gaps as debt tasks, and commit the merge with the work.
|
|
153
177
|
|
|
@@ -175,7 +199,12 @@ own instance); the kit's rules are the topology itself:
|
|
|
175
199
|
instead (`check-manifest-count` bans a bare cardinal quantifying a
|
|
176
200
|
governed collection in a manifest — the collection is the count's owner).
|
|
177
201
|
A literal stays verbatim only when load-bearing, and then only
|
|
178
|
-
gate-coupled
|
|
202
|
+
gate-coupled — and `check-measured-claim` is the mechanism that clause names:
|
|
203
|
+
a `measured:` marker binds the literal to an oracle the gate re-runs, which
|
|
204
|
+
turns a transcribed number into a generated, freshness-gated copy and is the
|
|
205
|
+
second remedy this bullet offers beside citing the owner. Prefer citing the
|
|
206
|
+
owner where the number need not be stated; mark it where a reader is served by
|
|
207
|
+
reading it. A **user-facing** claim takes the same treatment when a reader
|
|
179
208
|
acts on it: `check-install-claim` gives the primary-install-path claim one
|
|
180
209
|
declared owner and holds every governed install section to it, so the topology
|
|
181
210
|
reaches beyond the internal facts the rules above are stated over.
|
|
@@ -214,14 +243,23 @@ kit's name: the `SPEC.md` canonical-spec filename, the `SPEC-*.md` amendment
|
|
|
214
243
|
glob, the `spec:` and `contract:` source directives, the `[spec:]` and
|
|
215
244
|
`[design-pending]` queue tags, the `check-spec-*` gate names, and the internal
|
|
216
245
|
`lib/spec.sh` loader (where "spec" names the discipline). The consumer gate
|
|
217
|
-
`check-kit-ref-liveness` (a
|
|
218
|
-
dangling-reference hazard is a kit
|
|
219
|
-
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
|
|
220
250
|
line-anchored `<name>-kit` / `gate-sdk` path segment must name a
|
|
221
251
|
`gate_kit_roots` dir, and every live-prefix kit knob must resolve to a tracked
|
|
222
252
|
kit knob (check-docs-cmd's resolver, reused so the non-uniform knob-prefix map
|
|
223
|
-
has one home).
|
|
224
|
-
|
|
253
|
+
has one home). **A knob resolves through a family stem in either direction**: a
|
|
254
|
+
scanned `<FAMILY>_` stem resolves when kit source defines any member under it,
|
|
255
|
+
and a scanned member resolves when kit source defines the stem. The second
|
|
256
|
+
direction is what a **dispatch-composed** knob name needs — gate-sdk's
|
|
257
|
+
`GATE_SDK_KNOB_<NAME>` bridge builds the full name at runtime from the knob it
|
|
258
|
+
is carrying (gate-sdk/SPEC.md §lib/gate.sh), so kit source contains the stem and
|
|
259
|
+
never the members. Spelling the members out to satisfy an exact match would be a
|
|
260
|
+
hardcoded roster of consumer knob names in a kit literal, which is the one shape
|
|
261
|
+
that crosses the provenance seam here. It valves the surfaces that legitimately
|
|
262
|
+
name design-ahead or frozen brands — `gate-tests/` fixture bodies, `docs/posts/*`, the generated
|
|
225
263
|
trajectory data, `SPEC-*.md` amendments, and the queue — so a rename cannot
|
|
226
264
|
leave a dangle without turning a gate red.
|
|
227
265
|
|
|
@@ -249,11 +287,12 @@ unset, and the loader exits 2 on a malformed config. Knobs:
|
|
|
249
287
|
`CANON_KIT_DOD_MODE` — `exactly-one` (the default) or `at-most-one`
|
|
250
288
|
(a reference-spec corpus like this repo's kits carries no DoD).
|
|
251
289
|
- `CANON_KIT_SCAN_KIT_ROOTS` — `0` (default) or `1`. At `0` the shared finders
|
|
252
|
-
skip vendored kit roots (`gate_kit_roots`): a kit's `SPEC.md`/`SPEC-*.md`
|
|
253
|
-
a dependency's documentation, not governed content,
|
|
254
|
-
default holds out of the box on a tree that merely
|
|
255
|
-
gate-sdk
|
|
256
|
-
|
|
290
|
+
skip vendored kit roots (`gate_kit_roots`): a kit's `SPEC.md`/`SPEC-*.md` and
|
|
291
|
+
its `README.md` alike are a dependency's documentation, not governed content,
|
|
292
|
+
so the `exactly-one` default holds out of the box on a tree that merely
|
|
293
|
+
vendored the kits beside gate-sdk and no consumer is asked to answer for a
|
|
294
|
+
dependency's own internal links. Set `1` when the kit docs are the consumer's
|
|
295
|
+
own first-party content (this repo does, and keeps `at-most-one` for them).
|
|
257
296
|
- `CANON_KIT_BANNED_HEADINGS` — array, default
|
|
258
297
|
`("Directory Structure" "Public API" "Cargo.toml Dependencies")`;
|
|
259
298
|
`CANON_KIT_DERIVABLE_DENSITY` — default `60` (percent fenced);
|
|
@@ -280,7 +319,8 @@ unset, and the loader exits 2 on a malformed config. Knobs:
|
|
|
280
319
|
This repo sets `("*/templates/*.md" ".claude/agents/*.md")`.
|
|
281
320
|
`CANON_KIT_TEMPORAL_MARKERS` — the temporal-narration marker set scanned by
|
|
282
321
|
`check-manifest-temporal`, default a generic-English list (`previously`,
|
|
283
|
-
`formerly`, `renamed from`, …), matched case-insensitively
|
|
322
|
+
`formerly`, `renamed from`, …), matched case-insensitively and extended
|
|
323
|
+
through `CANON_KIT_TEMPORAL_MARKERS_EXTRA` under the `_EXTRA` semantics below;
|
|
284
324
|
`CANON_KIT_TEMPORAL_EXEMPT_SECTIONS` — array of heading names whose whole
|
|
285
325
|
section is exempt, default empty (this repo sets `Out of scope`).
|
|
286
326
|
- `CANON_KIT_MDREF_EXCLUDE` — array of globs, default empty: manifest-set docs
|
|
@@ -310,7 +350,11 @@ unset, and the loader exits 2 on a malformed config. Knobs:
|
|
|
310
350
|
vocabulary is one project's distribution model, so no spelling of it ships as a
|
|
311
351
|
kit literal (the provenance seam). This repo sets
|
|
312
352
|
`bash scripts/install-transports.sh`, `^(Quick start|Install)`, and
|
|
313
|
-
`("docs/posts/*")`.
|
|
353
|
+
`("docs/posts/*")`. `CANON_KIT_INSTALL_TRANSPORT_IDS` /
|
|
354
|
+
`CANON_KIT_INSTALL_TRANSPORT_PATTERNS` — the index-aligned halves of that
|
|
355
|
+
command's parsed output, default empty arrays, filled by this kit's library only
|
|
356
|
+
while one of the two is the knob under resolution; they are the bridged form the
|
|
357
|
+
compiled member reads and are not a consumer-authored knob (§lib/spec.sh).
|
|
314
358
|
- `CANON_KIT_PAYLOAD_CLAIMS_CMD` — a consumer command emitting the payload
|
|
315
359
|
disclosure classes `check-payload-claim` holds, one `<claim-id>`⇥`<ERE>` line
|
|
316
360
|
per class, default empty ⇒ clean skip (the correct posture for a tree whose
|
|
@@ -320,6 +364,19 @@ unset, and the loader exits 2 on a malformed config. Knobs:
|
|
|
320
364
|
discloses is one project's distribution model, so it is consumer config for
|
|
321
365
|
the same provenance-seam reason the transport vocabulary above is. This repo
|
|
322
366
|
sets `bash scripts/payload-claims.sh` and `("docs/posts/*")`.
|
|
367
|
+
`CANON_KIT_PAYLOAD_CLAIM_IDS` / `CANON_KIT_PAYLOAD_CLAIM_PATTERNS` — that
|
|
368
|
+
command's parsed output in the same bridged, index-aligned shape as the
|
|
369
|
+
transport pair above, default empty arrays.
|
|
370
|
+
- `CANON_KIT_MEASURED_CLAIMS_CMD` — a consumer command emitting the oracle
|
|
371
|
+
`check-measured-claim` re-runs, one `<key>`⇥`<value>` line per measurable fact,
|
|
372
|
+
default empty ⇒ clean skip (no oracle, so no marker has anything to disagree
|
|
373
|
+
with). `CANON_KIT_MEASURED_SURFACE_GLOBS` — array of globs naming the scanned
|
|
374
|
+
surface, default empty ⇒ empty corpus and a clean gate; the two are set
|
|
375
|
+
together or not at all. What a project measures is that project's vocabulary,
|
|
376
|
+
so no key ships as a kit literal (the provenance seam). This repo sets
|
|
377
|
+
`bash scripts/measured-claims.sh` and the `CANON_KIT_MANIFEST_FILES` globs plus
|
|
378
|
+
`.claude/commands/*.md` — the shims the manifest set omits and the prose surface
|
|
379
|
+
excludes on a copy-shape ownership this rule is not covered by.
|
|
323
380
|
- `CANON_KIT_COMMENT_MACHINE` / `CANON_KIT_COMMENT_REASON` — arrays, default
|
|
324
381
|
empty: extra directive prefixes appended to the built-in kit-mechanism
|
|
325
382
|
roster (a consumer's product vocabulary). `CANON_KIT_COMMENT_SURFACE` —
|
|
@@ -350,10 +407,12 @@ unset, and the loader exits 2 on a malformed config. Knobs:
|
|
|
350
407
|
phrases matched case-insensitively, default a bundled generic-English set
|
|
351
408
|
(`It's worth noting`, `That said`, …); `CANON_KIT_PROSE_TELL_ABBR_ALLOW` —
|
|
352
409
|
array of abbreviations exempt from the undefined-abbreviation tell, default a
|
|
353
|
-
bundled universal set (`API`, `CLI`, `URL`, …). A consumer extends
|
|
354
|
-
|
|
355
|
-
`
|
|
356
|
-
`
|
|
410
|
+
bundled universal set (`API`, `CLI`, `URL`, …). A consumer extends any
|
|
411
|
+
bundled vocabulary — these two and `CANON_KIT_TEMPORAL_MARKERS` above — with
|
|
412
|
+
its own through the matching `_EXTRA` knob:
|
|
413
|
+
`CANON_KIT_PROSE_TELL_PHRASES_EXTRA`,
|
|
414
|
+
`CANON_KIT_PROSE_TELL_ABBR_ALLOW_EXTRA` and
|
|
415
|
+
`CANON_KIT_TEMPORAL_MARKERS_EXTRA`, all default empty, which the lib
|
|
357
416
|
unions onto the base after the base defaults resolve: the effective set is
|
|
358
417
|
base plus extra. Extension therefore costs one token, never a restatement of
|
|
359
418
|
the bundled default that would silently diverge from it. Assigning a base
|
|
@@ -380,8 +439,8 @@ and no oracle sees whole: `check-comment-tier.test.sh`,
|
|
|
380
439
|
`check-deprecation-task.test.sh`, `check-docs-link-convention.test.sh`,
|
|
381
440
|
`check-knob-citation.test.sh`, `check-knob-default-coupling.test.sh`,
|
|
382
441
|
`check-manifest-count.test.sh`, `check-md-refs.test.sh`,
|
|
383
|
-
`check-
|
|
384
|
-
`check-tracking-claim.test.sh`.
|
|
442
|
+
`check-measured-claim.test.sh`, `check-prose-enum.test.sh`,
|
|
443
|
+
`check-spec-dod-singleton.test.sh` and `check-tracking-claim.test.sh`.
|
|
385
444
|
|
|
386
445
|
### lib/spec.sh
|
|
387
446
|
|
|
@@ -397,25 +456,37 @@ same shapes:
|
|
|
397
456
|
plus a configured icebox, built as one regex so the tag rule and the walk can
|
|
398
457
|
never disagree on the set — and a done slug for a bare-slug bullet outside
|
|
399
458
|
them; the single grammar `check-todo-task-liveness`
|
|
400
|
-
and `check-deprecation-task` resolve a `task: <slug>` binding through
|
|
401
|
-
|
|
402
|
-
walk
|
|
403
|
-
|
|
459
|
+
and `check-deprecation-task` resolve a `task: <slug>` binding through. **The
|
|
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
|
|
466
|
+
crate rather than pointed at `native/src/queue.rs`'s adapters, which keeps
|
|
467
|
+
canon-kit one of the format's independent holders under the
|
|
404
468
|
re-implement-and-cite-from-both-ends rule
|
|
405
|
-
(queue-kit/SPEC.md §The queue format)
|
|
469
|
+
(queue-kit/SPEC.md §The queue format) — two modules in one crate are still two
|
|
470
|
+
holders where one shared function is not; the holder census and the residue it
|
|
406
471
|
leaves live at gate-sdk/SPEC.md §check-gate-exemption-tasks.
|
|
407
|
-
- **The governed comment surface:** `
|
|
408
|
-
|
|
409
|
-
`check-
|
|
410
|
-
`
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
pointer, its comment tier, or a
|
|
416
|
-
coverage — the widening is made at the
|
|
417
|
-
inherit a narrower corpus than its siblings
|
|
418
|
-
(gate-sdk/SPEC.md §Meta-gate conservation for the binary substrate).
|
|
472
|
+
- **The governed comment surface:** `comment_surface` in `native/src/spec.rs` —
|
|
473
|
+
the one corpus primitive `check-spec-pointer`, `check-comment-tier`,
|
|
474
|
+
`check-todo-task-liveness` and `check-deprecation-task` all call, its single
|
|
475
|
+
parameter deciding whether `templates/` sources are pruned. Its file set spans
|
|
476
|
+
**both gate declaration spellings, the ported implementation, and the workflow
|
|
477
|
+
directory's tracked tier**: `*.sh`, the `*.gate` descriptor, `*.rs`, and every
|
|
478
|
+
tracked member of `GATE_SDK_WORKFLOW_DIR` whatever its extension. Stated once
|
|
479
|
+
here rather than at each of the four callers, since a gate whose rule became a
|
|
480
|
+
compiled subcommand must not have its `# spec:` pointer, its comment tier, or a
|
|
481
|
+
`TODO(task:)` marker silently drop out of coverage — the widening is made at the
|
|
482
|
+
shared primitive so no caller can inherit a narrower corpus than its siblings
|
|
483
|
+
(gate-sdk/SPEC.md §Meta-gate conservation for the binary substrate). The shell
|
|
484
|
+
forms are **deleted rather than duplicated**: all four callers compiled in one
|
|
485
|
+
cohort, so criterion 6 is satisfied in the form it calls strongest — the
|
|
486
|
+
duplication is absent rather than machine-held. A consumer whose own gate called
|
|
487
|
+
`spec_comment_surface`, `spec_comment_surface_with_templates` or
|
|
488
|
+
`spec_comment_whitelisted` shadows the gate, which is the answer this section
|
|
489
|
+
already gives for the finder-choice question below.
|
|
419
490
|
- **Finders:** the canonical-spec / amendment finders the spec-scanning gates
|
|
420
491
|
share, and the manifest-set finder the narration-gate family shares —
|
|
421
492
|
canonical specs plus `README.md`/`CLAUDE.md`, amendments excluded — so its
|
|
@@ -425,13 +496,65 @@ same shapes:
|
|
|
425
496
|
grammar lifecycle-kit/SPEC.md §templates/stages/ owns) and no
|
|
426
497
|
`CONSUMER BINDING` header. A slot-bearing candidate is silently excluded — a template still
|
|
427
498
|
awaiting binding is a placeholder, not finished prose, and its coverage stays
|
|
428
|
-
the shim/binding gates (§Layout and configuration states the knob).
|
|
429
|
-
canonical
|
|
430
|
-
`templates/` skeleton (a copyable stub, not governed
|
|
431
|
-
rationale as the gate-tests prune) and, unless
|
|
432
|
-
any vendored kit root under the scan root
|
|
433
|
-
kit
|
|
434
|
-
|
|
499
|
+
the shim/binding gates (§Layout and configuration states the knob). All three
|
|
500
|
+
markdown finders — canonical specs, amendments, and the manifest set's
|
|
501
|
+
`README.md` half — skip a `templates/` skeleton (a copyable stub, not governed
|
|
502
|
+
content, the same rationale as the gate-tests prune) and, unless
|
|
503
|
+
`CANON_KIT_SCAN_KIT_ROOTS=1`, any vendored kit root under the scan root. The
|
|
504
|
+
kit-root prune reaches the README because the knob's rationale turns on whose
|
|
505
|
+
documentation a file is, not on which filename carries it: a vendored kit's
|
|
506
|
+
`README.md` is a dependency's docs exactly as its `SPEC.md` is, and pruning
|
|
507
|
+
one while governing the other reds a consumer on a dependency's own internal
|
|
508
|
+
links — measured, on a profile that vendors canon-kit without queue-kit, where
|
|
509
|
+
`canon-kit/README.md`'s `../queue-kit/` link dangles on a bare install tree.
|
|
510
|
+
An ancestor kit root — the case when a kit's own fixture dir is the scan
|
|
511
|
+
root — never prunes.
|
|
512
|
+
|
|
513
|
+
**One asymmetry inside the manifest set, written down because a port that
|
|
514
|
+
tidies it changes the corpus.** The canonical-spec half and the `README.md`
|
|
515
|
+
half are both `templates/`-filtered and kit-root pruned; the **`CLAUDE.md`
|
|
516
|
+
half is neither**. A consumer's agent manifest is governed content wherever it
|
|
517
|
+
sits, including inside a vendored kit root and inside a `templates/`
|
|
518
|
+
skeleton — so regularizing the three finders into one loop silently drops two
|
|
519
|
+
files that belong in the set. The rule is the asymmetry, not the tidy form.
|
|
520
|
+
|
|
521
|
+
**Which primitive is on which substrate.** `spec_manifest_files` has a Rust
|
|
522
|
+
implementation (`native/src/spec.rs`) carrying all three branches — explicit
|
|
523
|
+
globs, the default walk, and the prose-surface fold — plus the kit-root path
|
|
524
|
+
prune, because its family is partly compiled; the shell form stays, since
|
|
525
|
+
members outside that family still call it. That module carries the claim-gate
|
|
526
|
+
primitives too: the declaration grammar, the declaration roster, the
|
|
527
|
+
governed-doc set behind its two exclude valves, and the bridged vocabulary
|
|
528
|
+
loader. The shell kept a copy of the last two per member; the compiled form has
|
|
529
|
+
one, ported once and proved by each member that calls it. `comment_surface` and
|
|
530
|
+
`queue_slugs` are **compiled only**, and so are all four of their callers
|
|
531
|
+
(gate-sdk/SPEC.md §The first cohort, and the rule that selects the next): where
|
|
532
|
+
the manifest finder is dual because members outside its family still call it,
|
|
533
|
+
these two emptied their caller sets in one cohort and their shell forms were
|
|
534
|
+
removed in the same commit.
|
|
535
|
+
The two implementations of the manifest finder are held together by the config
|
|
536
|
+
bridge rather than by a copied default: every knob either reads crosses it as
|
|
537
|
+
a resolved value, so there is exactly one place each is computed
|
|
538
|
+
(gate-sdk/SPEC.md §The port-candidate criteria, criterion 6).
|
|
539
|
+
- **The emitter-backed vocabularies** — the enum sets, the install transports
|
|
540
|
+
and the payload-disclosure classes a consumer supplies as a *command*. For a
|
|
541
|
+
compiled member the command's **output** is the interface, never the command:
|
|
542
|
+
the library runs the emitter at knob-resolution time and the binary receives
|
|
543
|
+
data, so no compiled gate spawns an interpreter to read consumer config and no
|
|
544
|
+
spelling of a consumer's vocabulary becomes a kit literal. A pair rides two
|
|
545
|
+
index-aligned arrays (`CANON_KIT_ENUM_SET_NAMES` / `..._MEMBERS`) because the
|
|
546
|
+
bridge's wire format separates elements with a tab and refuses one inside an
|
|
547
|
+
element, so a `<name>`⇥`<member>` line cannot cross as a single string. The
|
|
548
|
+
resolution is gated on `GATE_SDK_RESOLVING_KNOB` (gate-sdk/SPEC.md
|
|
549
|
+
§lib/gate.sh), because it costs a subprocess and this library is sourced once
|
|
550
|
+
per declared knob per gate. Three vocabularies ride that shape, one pair each:
|
|
551
|
+
the enum sets, `CANON_KIT_INSTALL_TRANSPORT_IDS` / `..._PATTERNS`, and
|
|
552
|
+
`CANON_KIT_PAYLOAD_CLAIM_IDS` / `..._PATTERNS` (§Layout and configuration). The
|
|
553
|
+
emitting **command** knob is bridged beside each pair, because it is what tells
|
|
554
|
+
*none configured* from *configured, and it declared nothing* — the two clean
|
|
555
|
+
skips a claim gate reports apart. The tab a POSIX ERE may legitimately carry
|
|
556
|
+
cannot reach the bridge: `spec_claim_vocabulary` below rejects a line with an
|
|
557
|
+
extra tab before the value is ever serialized.
|
|
435
558
|
- **The count adapter** the restated-total gates share, so a consumer's
|
|
436
559
|
`CANON_KIT_COUNT_COLLECTIONS` vocabulary enters once and every such gate
|
|
437
560
|
matches the same total shapes — including a total whose cardinal and noun
|
|
@@ -458,10 +581,14 @@ same shapes:
|
|
|
458
581
|
a bare emit grammar cannot express and both gates need: two lines claiming one
|
|
459
582
|
id would give a class two patterns and make its match order arbitrary. Its
|
|
460
583
|
callers are `spec_install_transports`, over
|
|
461
|
-
`CANON_KIT_INSTALL_TRANSPORTS_CMD` (§check-install-claim)
|
|
584
|
+
`CANON_KIT_INSTALL_TRANSPORTS_CMD` (§check-install-claim);
|
|
462
585
|
`check-payload-claim` directly, over `CANON_KIT_PAYLOAD_CLAIMS_CMD`
|
|
463
|
-
(§check-payload-claim)
|
|
464
|
-
|
|
586
|
+
(§check-payload-claim); and `spec_measured_claims`, over
|
|
587
|
+
`CANON_KIT_MEASURED_CLAIMS_CMD` (§check-measured-claim) — whose second field is
|
|
588
|
+
a measured value rather than an ERE, which the loader neither interprets nor
|
|
589
|
+
needs to, since every check it makes is on the line's shape.
|
|
590
|
+
- **The comment-surface adapters:** the comment gates read *different* surfaces,
|
|
591
|
+
which is the one thing the primitive's parameter decides.
|
|
465
592
|
`check-spec-pointer` scans the template-pruned surface — a template's `spec:`
|
|
466
593
|
line is an unresolvable-by-design placeholder (§check-spec-pointer);
|
|
467
594
|
`check-comment-tier` scans the with-templates surface — a copied-out
|
|
@@ -470,6 +597,12 @@ same shapes:
|
|
|
470
597
|
source (§check-comment-tier). Which finder a gate uses is kit contract, not
|
|
471
598
|
consumer config — a consumer wanting the old blanket exemption shadows the
|
|
472
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`.
|
|
473
606
|
- **The default-statement grammar** both knob gates share, so the rule for
|
|
474
607
|
what reads as a stated default has one home. `sk_literal_at` recognizes the
|
|
475
608
|
value literal opening a window (a backticked non-knob string, a quoted string,
|
|
@@ -478,6 +611,13 @@ same shapes:
|
|
|
478
611
|
as a value. `check-knob-citation` reads it to reject a restated value in prose;
|
|
479
612
|
`check-knob-default-coupling` reads it to confirm the SPEC states the source's
|
|
480
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.
|
|
481
621
|
|
|
482
622
|
### check-amendment-queue
|
|
483
623
|
|
|
@@ -507,6 +647,19 @@ than by a gate. The guard is total over the *promotion* moves it exists to
|
|
|
507
647
|
catch — design-pending → an active section — and silent on the disposition
|
|
508
648
|
move.
|
|
509
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
|
+
|
|
510
663
|
### check-spec-dod-singleton
|
|
511
664
|
|
|
512
665
|
Invariant: no canonical spec carries the configured Definition-of-Done
|
|
@@ -547,6 +700,34 @@ languages in `CANON_KIT_EMBED_ILLUSTRATIVE` are skipped by default; the
|
|
|
547
700
|
threshold is calibrated against real specs, not synthetic fixtures.
|
|
548
701
|
`precommit` tier.
|
|
549
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
|
+
|
|
550
731
|
### check-manifest-temporal
|
|
551
732
|
|
|
552
733
|
Invariant: no temporal-narration marker in governed manifest prose outside an
|
|
@@ -561,7 +742,9 @@ narration-marker KPI is superseded by this gate (drift-kit/SPEC.md
|
|
|
561
742
|
The scanned set is the shared `spec_manifest_files` finder (§lib/spec.sh):
|
|
562
743
|
canonical specs, `README.md` at any depth, and `CLAUDE.md`; amendments are
|
|
563
744
|
excluded by construction (a transition artifact describes change — that is its
|
|
564
|
-
nature). Markers are `CANON_KIT_TEMPORAL_MARKERS`,
|
|
745
|
+
nature). Markers are `CANON_KIT_TEMPORAL_MARKERS`, the base array merged with
|
|
746
|
+
`CANON_KIT_TEMPORAL_MARKERS_EXTRA` (§Layout and configuration), matched
|
|
747
|
+
case-insensitively;
|
|
565
748
|
fenced code blocks are skipped and a marker inside an inline-code span is a
|
|
566
749
|
meta-reference, not narration — so a gate-output example or this section's own
|
|
567
750
|
vocabulary may name one. Three valves suppress a legitimately past line: a
|
|
@@ -578,6 +761,17 @@ narration governance). Producer: the generated pre-commit hook /
|
|
|
578
761
|
marker hit is read at the single scan transition (file, line, marker in the
|
|
579
762
|
message), no persistent state. Fail-closed on an unreadable manifest.
|
|
580
763
|
|
|
764
|
+
The rule is a **compiled subcommand** (gate-sdk/SPEC.md §The POSIX ERE matcher):
|
|
765
|
+
each marker is a consumer-supplied ERE, compiled through the crate's matcher
|
|
766
|
+
before the first corpus line is read, so a pattern outside the POSIX grammar
|
|
767
|
+
exits 2 naming the pattern and the knob rather than scanning past what it meant.
|
|
768
|
+
Two fidelity points a transliteration loses, recorded because both are invisible
|
|
769
|
+
in a green run: the marker test runs against a **case-folded subject** and the
|
|
770
|
+
pattern is not folded, so a marker written with an upper-case letter matches
|
|
771
|
+
nothing; and `CANON_KIT_TEMPORAL_MARKERS_EXTRA` unions onto the base array inside
|
|
772
|
+
this kit's library *before* the bridge reads it, so the compiled member declares
|
|
773
|
+
the base knob alone and a second `_EXTRA` knob would double every added marker.
|
|
774
|
+
|
|
581
775
|
Calibration: the marker set is tuned against this repo as the FP corpus — bare
|
|
582
776
|
`used to` is excluded (it collides with instrumental "used to build/filter").
|
|
583
777
|
At build every hit is dispositioned: reword (preferred — narration is standing
|
|
@@ -631,6 +825,19 @@ the consumer governs); and the per-site `manifest-count-exempt: <reason>` marker
|
|
|
631
825
|
on the line or the one above. The exact operator and phrase tokens each context
|
|
632
826
|
recognizes are the check's own regex, generic-English mechanism rather than
|
|
633
827
|
config.
|
|
828
|
+
|
|
829
|
+
**The sanctioned discharge is the `measured:` marker** (§check-measured-claim),
|
|
830
|
+
and it is the only one of the four that *answers* the ban rather than stepping
|
|
831
|
+
around it: the objection this invariant encodes is a transcribed total with no
|
|
832
|
+
owner, and a marker binds the total to an oracle a gate re-runs. So a cardinal
|
|
833
|
+
under a `<!-- measured: <key>=<value> -->` line satisfies the ban the way a
|
|
834
|
+
generated copy satisfies derivation-first, which strictly shrinks this gate's
|
|
835
|
+
violation set. It rides the same per-site window the exempt marker does — the
|
|
836
|
+
marker line and the claim below it — so the two discharges are one behavior with
|
|
837
|
+
two spellings rather than a second walk. Rewording to cite the owning collection
|
|
838
|
+
stays preferred where the total is not worth stating at all; the exempt tag drops
|
|
839
|
+
to a genuine last resort, because "deliberately unchecked" is now the one thing
|
|
840
|
+
it means.
|
|
634
841
|
Producer: the generated pre-commit hook / `run-gates.sh`; consumer: the
|
|
635
842
|
committing operator via the output contract; each hit read at the single scan
|
|
636
843
|
transition (file, line, matched span in the message), no persistent state.
|
|
@@ -643,8 +850,136 @@ extend `CANON_KIT_COUNT_ALLOWED_PHRASES` (a genuinely fixed set), or site-exempt
|
|
|
643
850
|
with reason. The good/bad pair covers every match shape and the mechanical
|
|
644
851
|
exemptions;
|
|
645
852
|
`check-manifest-count.test.sh` covers the config-driven paths (a consumer-governed
|
|
646
|
-
noun and the allowlist containment) the stock defaults cannot reach
|
|
647
|
-
|
|
853
|
+
noun and the allowlist containment) the stock defaults cannot reach, and the
|
|
854
|
+
measured-marker discharge's *window* — that the marked claim is exempt and the
|
|
855
|
+
next paragraph is not, which a pair cannot spell because a fixture file either
|
|
856
|
+
trips or does not. `precommit` tier.
|
|
857
|
+
|
|
858
|
+
### check-measured-claim
|
|
859
|
+
|
|
860
|
+
Invariant: a measured count or extent claim that names an oracle agrees with it.
|
|
861
|
+
The class this closes is a claim authored into governed prose with **no** oracle
|
|
862
|
+
at all — a total, a corpus size, a swept set — which goes stale the moment the
|
|
863
|
+
thing it measured moves, and whose detection is a human re-measuring by hand at
|
|
864
|
+
review time if at all. The sibling ban (§check-manifest-count) reaches the
|
|
865
|
+
tractable slice of that class by refusing a bare cardinal over a governed
|
|
866
|
+
collection; it cannot reach a claim carrying no cardinal, and an *extent* claim
|
|
867
|
+
("the kit SPECs came back clean") is exactly that shape. Both halves need the
|
|
868
|
+
author to say what was measured, so this is a **marker** an author applies rather
|
|
869
|
+
than a scanner inferring intent: a scanner triggers on a numeral, and the claims
|
|
870
|
+
that cost the most carry none.
|
|
871
|
+
|
|
872
|
+
**The marker binds a claim to an oracle key and its measured value**, as a
|
|
873
|
+
full-line HTML comment on the line immediately above the claim:
|
|
874
|
+
|
|
875
|
+
```
|
|
876
|
+
<!-- measured: <key>=<value> -->
|
|
877
|
+
```
|
|
878
|
+
|
|
879
|
+
It joins the family `install-primary:` (§check-install-claim) and
|
|
880
|
+
`payload-discloses:` (§check-payload-claim) rather than inventing a form — a
|
|
881
|
+
full-line comment pairing a prose claim with a machine-readable id drawn from a
|
|
882
|
+
consumer-owned vocabulary behind a `*_CMD` knob. It is deliberately **not** the
|
|
883
|
+
`-exempt:` family: those are suppression valves that make a gate look away, and
|
|
884
|
+
this is an attachment that gives a gate something to check. The reader-facing
|
|
885
|
+
form of the claim stays prose; the marker is the tier beside it.
|
|
886
|
+
|
|
887
|
+
**The oracle is consumer-owned.** `CANON_KIT_MEASURED_CLAIMS_CMD` names a command
|
|
888
|
+
emitting one `<key>`⇥`<value>` line per measurable fact, loaded through
|
|
889
|
+
`spec_claim_vocabulary` (§lib/spec.sh) and so carrying that loader's fail-closed
|
|
890
|
+
contract. The marker grammar and the comparison are kit mechanism; every key,
|
|
891
|
+
every oracle command and every measured fact is consumer config, because a kit
|
|
892
|
+
literal enumerating what a project measures would publish that project's
|
|
893
|
+
vocabulary. An unset knob means the gate has no oracle and reports clean — the
|
|
894
|
+
inactive-by-default posture its `*_CMD` siblings take.
|
|
895
|
+
|
|
896
|
+
**Three arms.**
|
|
897
|
+
|
|
898
|
+
- **A — the oracle disagrees.** Red when the emitter's current value for `<key>`
|
|
899
|
+
differs from the marker's `<value>`. This is the point: the number in the
|
|
900
|
+
document is now checked against the tree.
|
|
901
|
+
- **B — the key is unknown.** Fail closed (exit 2) when `<key>` is absent from
|
|
902
|
+
the emitter's roster. A marker naming a key nobody emits is a claim with no
|
|
903
|
+
oracle wearing the costume of one, which is worse than an unmarked claim. A
|
|
904
|
+
marker that does not parse fails closed for the same reason.
|
|
905
|
+
- **C — the marker drifted off its own sentence.** When `<value>` is a bare
|
|
906
|
+
cardinal, red unless that cardinal appears as a token in the claim the marker
|
|
907
|
+
binds. Without arm C the marker and the prose can disagree while the marker and
|
|
908
|
+
the oracle agree, and the gate would go green over a false sentence — the exact
|
|
909
|
+
failure being closed.
|
|
910
|
+
|
|
911
|
+
Arm C's cardinal grammar is §check-manifest-count's, read as a value: a digit run
|
|
912
|
+
or a spelled `two`…`twelve` normalized to digits, so a marker's `12` and a
|
|
913
|
+
sentence's "twelve" are one cardinal rather than two. The claim a marker binds is
|
|
914
|
+
the paragraph below it, ending at a blank line, a fence, a second marker or the
|
|
915
|
+
end of file. **The authoring contract arm C prices:** a bound claim carrying more
|
|
916
|
+
than one distinct cardinal is ambiguous, and the gate fails closed rather than
|
|
917
|
+
guessing which one the marker holds — the remedy in the help line is to split the
|
|
918
|
+
sentence or move the marker onto the clause that carries the measurement. That
|
|
919
|
+
cost is bounded: it applies only to sentences an author chose to mark.
|
|
920
|
+
|
|
921
|
+
**Extent claims are covered by arms A and B alone, and that is the design rather
|
|
922
|
+
than a gap.** An extent claim carries no cardinal, so arm C does not apply and arm
|
|
923
|
+
A does the work, with `<value>` whatever the author declares the extent to be and
|
|
924
|
+
the emitter recomputes: a corpus size, a sorted membership list, a digest over
|
|
925
|
+
the swept set. This is the axis no scanner reaches and it costs nothing extra —
|
|
926
|
+
the same arms, with a set-valued rather than integer-valued oracle. Because the
|
|
927
|
+
config bridge refuses an element containing a tab and tab is this protocol's own
|
|
928
|
+
field separator, a set-valued oracle joins its members with something else.
|
|
929
|
+
|
|
930
|
+
**The known limit, stated rather than hidden: a claim nobody marks is uncaught
|
|
931
|
+
here.** What narrows it is §check-manifest-count's discharge, which makes marking
|
|
932
|
+
pressured rather than voluntary wherever the ban already bites.
|
|
933
|
+
|
|
934
|
+
The scanned surface is its own glob knob, `CANON_KIT_MEASURED_SURFACE_GLOBS`,
|
|
935
|
+
**not** the manifest set. The motivating class ranges over SPEC sections and
|
|
936
|
+
binding shims alike, and neither existing surface reaches a shim: the manifest set
|
|
937
|
+
excludes them by omission, with no documented rationale (a reader should not infer
|
|
938
|
+
a ruling from a silent absence), and the prose surface (§lib/spec.sh) excludes them
|
|
939
|
+
by a documented decision about which gate *owns* a shim — `check-shim-restatement`,
|
|
940
|
+
which holds copy shape. That ownership is not this rule's: a restatement that is
|
|
941
|
+
**wrong** has diverged from its owner's wording and is therefore not a copy. So
|
|
942
|
+
reusing either surface would under-scan by exactly the instance that motivated the
|
|
943
|
+
class. Fenced blocks are skipped (a fence is grammar being shown, not a claim being
|
|
944
|
+
made), and a per-site `measured-claim-exempt: <reason>` marker on the line or the
|
|
945
|
+
one above suppresses a marker a document is exhibiting rather than asserting.
|
|
946
|
+
|
|
947
|
+
**The valve stays, and its zero live uses are not evidence against it** (ruled at
|
|
948
|
+
the `native-cohort-canon-kit` close, on a filed observation that it shipped unused).
|
|
949
|
+
The use count was taken over *this* tree, which is the wrong corpus: canon-kit is a
|
|
950
|
+
kit, so the valve's readers are adopters whose prose this repo cannot see. It is a
|
|
951
|
+
fail-safe for an author who must exhibit a full-line marker outside a fence, and a
|
|
952
|
+
fail-safe carrying live uses would mean the fence-and-inline escapes had already
|
|
953
|
+
failed. It stands beside the family boundary drawn above rather than against it —
|
|
954
|
+
that boundary rules what the `measured:` marker *is*, not whether a suppression
|
|
955
|
+
valve may accompany it.
|
|
956
|
+
|
|
957
|
+
Producer: the generated pre-commit hook / `run-gates.sh`; consumer: the committing
|
|
958
|
+
operator via the output contract; each marker read at the single scan transition
|
|
959
|
+
(file, line, key, value), no persistent state. `precommit` tier.
|
|
960
|
+
|
|
961
|
+
**Born native, and this is the first gate with no shell original** — operator-ruled
|
|
962
|
+
2026-08-12 with the cost below in view. TRAJECTORY.md §The objectives' sixth
|
|
963
|
+
shrinks the interpreter surface to the unavoidable, so a new shell gate is debt
|
|
964
|
+
created knowingly; landing it as a Rust module plus a `.gate` descriptor avoids
|
|
965
|
+
that, and it needs no unbuilt substrate (its glob corpus is served by the walker
|
|
966
|
+
already in production, which is why the corpus was designed as its own surface
|
|
967
|
+
rather than a union with the manifest set). The port criteria govern *ports*, so a
|
|
968
|
+
gate with one implementation has no second substrate to prove parity against: its
|
|
969
|
+
oracle is its `good/`+`bad/` pair, exactly like any new shell gate's, with
|
|
970
|
+
`check-measured-claim.test.sh` holding the fail-closed arms a pair cannot spell.
|
|
971
|
+
**The accepted cost:** a `.gate`-declared member is omitted from the `gates.list` of
|
|
972
|
+
a consumer whose host the release publishes no artifact for, so on an uncovered
|
|
973
|
+
platform this gate does not run where a shell gate would have. That is the port's
|
|
974
|
+
standing cost, already accepted for the members whose shell forms were deleted, and
|
|
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.
|
|
648
983
|
|
|
649
984
|
### check-prose-enum
|
|
650
985
|
|
|
@@ -873,10 +1208,20 @@ honest limit: agreement is confirmed by the source literal appearing as the
|
|
|
873
1208
|
SPEC's stated default, so a value the SPEC never pins to a literal cannot be
|
|
874
1209
|
coupled — only a literal disagreement or a wholly undocumented default reds.
|
|
875
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
|
+
|
|
876
1220
|
Producer: the generated pre-commit hook / `run-gates.sh`, coupled to kit source
|
|
877
1221
|
and the kit SPECs; consumer: the committing operator via the output contract —
|
|
878
1222
|
file, the knob, the source literal, and the owning SPEC, each read once at the
|
|
879
|
-
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
|
|
880
1225
|
pair covers self-agreement, the SPEC disagreement, and both idioms;
|
|
881
1226
|
`check-knob-default-coupling.test.sh` covers the cross-kit owning SPEC, the
|
|
882
1227
|
absent-default red, and the descriptive/array/empty/deferral skips the pair
|
|
@@ -901,11 +1246,13 @@ topology exists). `align-only` tier.
|
|
|
901
1246
|
|
|
902
1247
|
Invariant: every full-line comment on a governed source is one of — a
|
|
903
1248
|
machine directive (a comment a tool parses: `graph:`, `shellcheck`,
|
|
904
|
-
`contract:`, `smoke-unregistered:` — the last read
|
|
905
|
-
`
|
|
1249
|
+
`contract:`, `install:`, `smoke-unregistered:` — the last two read off a kit's
|
|
1250
|
+
vendored source, `install:` by the installer's recipe module and
|
|
1251
|
+
`check-install-disposition`, `smoke-unregistered:` by `run-consumer-smoke.sh`
|
|
1252
|
+
off `smoke/install.sh`, gate-sdk/SPEC.md §The install disposition and
|
|
906
1253
|
§Consumer smoke), a reason directive (a spec pointer, usage synopsis, or
|
|
907
1254
|
positional justification: `spec:`, `usage:`, `exception-list:`,
|
|
908
|
-
`no-fixture:`, `assertion`, `permanent:`, `TODO(task:`,
|
|
1255
|
+
`no-fixture:`, `no-port:`, `port-until:`, `assertion`, `permanent:`, `TODO(task:`,
|
|
909
1256
|
`TODO(spec-ambiguity)`, which blesses a bounded window — its own line plus
|
|
910
1257
|
continuation lines up to `CANON_KIT_COMMENT_RUN_CAP` total physical comment
|
|
911
1258
|
lines, blank `#` lines counted; a directive mid-run opens a fresh window
|
|
@@ -929,7 +1276,7 @@ directive for a genuinely-local fact below SPEC altitude that neither tier
|
|
|
929
1276
|
owns.
|
|
930
1277
|
|
|
931
1278
|
The governed-source corpus reaches the **implementation of a ported gate**, not
|
|
932
|
-
just shell — `
|
|
1279
|
+
just shell — `comment_surface` with templates kept (§lib/spec.sh), which owns
|
|
933
1280
|
the file set. This is the load-bearing half of the reader
|
|
934
1281
|
partition gate-sdk/SPEC.md §The `# graph:` manifest states — locality-class
|
|
935
1282
|
directives bind to a line of implementation and therefore stay there, so the
|
|
@@ -938,6 +1285,15 @@ still applies. A descriptor's own lines are directives by construction. Marker
|
|
|
938
1285
|
matching is on the **token**, independent of the comment leader, so `//` and `#`
|
|
939
1286
|
carry the same directives and no language earns a quieter standard.
|
|
940
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
|
+
|
|
941
1297
|
One shape overrides the window: a full-line comment carrying a **restated
|
|
942
1298
|
collection total** — the count grammar of §check-manifest-count, over the same
|
|
943
1299
|
`CANON_KIT_COUNT_COLLECTIONS` vocabulary — is flagged even where a directive
|
|
@@ -1007,6 +1363,18 @@ sources ride `CANON_KIT_COMMENT_WHITELIST` (its array tagged
|
|
|
1007
1363
|
`# exception-list:`, each `# until:` a live drain task per
|
|
1008
1364
|
`check-gate-exemption-tasks`), draining kit by kit. `precommit` tier.
|
|
1009
1365
|
|
|
1366
|
+
**Declared by `check-comment-tier.gate`, dispatching to the binary**, with the
|
|
1367
|
+
four members of this family ported as one cohort
|
|
1368
|
+
(gate-sdk/SPEC.md §The first cohort, and the rule that selects the next). Its
|
|
1369
|
+
`couples=` carries `*.gate` and `*.rs` as **bare globs** beside the shell and
|
|
1370
|
+
workflow spellings: the corpus scans both declaration forms and the ported
|
|
1371
|
+
implementation, and a token naming this repo's crate directory would publish one
|
|
1372
|
+
consumer's layout into a kit file (CLAUDE.md §The provenance seam) and be false
|
|
1373
|
+
for every other. The gate reads no regex engine — its blessing roster is a set of
|
|
1374
|
+
literal directive tokens, matched as a substring for a `keyword:` and
|
|
1375
|
+
non-alphanumeric-bounded for a bare word, which is joining rather than
|
|
1376
|
+
interpreting (gate-sdk/SPEC.md §The POSIX ERE matcher).
|
|
1377
|
+
|
|
1010
1378
|
### check-spec-pointer
|
|
1011
1379
|
|
|
1012
1380
|
Invariant, two passes, forward direction only: every `spec:` / `contract:`
|
|
@@ -1064,9 +1432,9 @@ no inbound pointer as uncovered code — needs a "what counts as a requirement"
|
|
|
1064
1432
|
notion that risks false positives against the cheap-and-FP-free bar, so it is
|
|
1065
1433
|
ruled out (a separate task with its own ruling if ever wanted; this gate
|
|
1066
1434
|
reserves no syntax for it). Configuration is shared with `check-comment-tier` —
|
|
1067
|
-
the
|
|
1435
|
+
the whitelist predicate and the same
|
|
1068
1436
|
`CANON_KIT_COMMENT_*` knobs, so no new config knob — but this gate scans
|
|
1069
|
-
|
|
1437
|
+
the **pruned** comment surface, which drops `templates/` sources where
|
|
1070
1438
|
`check-comment-tier` keeps them. The split is by design, not a "SPECs don't
|
|
1071
1439
|
travel" claim: a template's `spec: <your SPEC> §check-<area>` line is a
|
|
1072
1440
|
placeholder the consumer fills in, unresolvable *by design* in the kit's own
|
|
@@ -1089,6 +1457,13 @@ under that doctrine, not re-gated here. Dropping the slot would also orphan
|
|
|
1089
1457
|
the citation coverage the convention carries — the reason a dedicated
|
|
1090
1458
|
script↔doc citation gate stays unbuilt.
|
|
1091
1459
|
|
|
1460
|
+
**Declared by `check-spec-pointer.gate`, dispatching to the binary**, with its
|
|
1461
|
+
`couples=` widened to `*.gate`, `*.rs` and every tracked workflow member on the
|
|
1462
|
+
same terms `check-comment-tier`'s is. The gate that reads a `# spec:` directive
|
|
1463
|
+
is now itself declared by one, so a member of this family reads its own cohort's
|
|
1464
|
+
descriptors — which is why the fixture pair carries a descriptor arm rather than
|
|
1465
|
+
resting on the live tree to exercise it.
|
|
1466
|
+
|
|
1092
1467
|
### check-todo-task-liveness
|
|
1093
1468
|
|
|
1094
1469
|
Invariant: every `TODO(task: <slug>)` marker on a governed source resolves to a
|
|
@@ -1115,10 +1490,10 @@ separate ruling if the need attests.
|
|
|
1115
1490
|
|
|
1116
1491
|
Placement: the marker is a comment directive on the governed comment surface, so
|
|
1117
1492
|
it is canon-kit's, not queue-kit's (which disclaims source-file conventions in
|
|
1118
|
-
its Out of scope). The gate scans
|
|
1493
|
+
its Out of scope). The gate scans the pruned comment surface, dropping `templates/`
|
|
1119
1494
|
as placeholders-by-design like `check-spec-pointer`, and reads the queue through
|
|
1120
1495
|
`CANON_KIT_QUEUE_FILE` with no new knob — the live/done split is the shared
|
|
1121
|
-
`
|
|
1496
|
+
`queue_slugs` adapter (§lib/spec.sh), one queue walk reading a bare-slug
|
|
1122
1497
|
bullet outside the active and deferred sections as the queue's done shape. That
|
|
1123
1498
|
`task: <slug>` binding grammar — a `task:` key naming a slug that must resolve
|
|
1124
1499
|
to a live queue entry — is one grammar both liveness gates share:
|
|
@@ -1126,7 +1501,10 @@ to a live queue entry — is one grammar both liveness gates share:
|
|
|
1126
1501
|
deprecation marker through the same adapter (§check-deprecation-task). Latent at landing: no such marker exists in
|
|
1127
1502
|
the tree yet — the gate ships before the first one, so a future `TODO(task:)`
|
|
1128
1503
|
cannot outlive its task silently. A queue-read failure is fail-closed (exit 2).
|
|
1129
|
-
`precommit` tier.
|
|
1504
|
+
`precommit` tier. **Declared by `check-todo-task-liveness.gate`, dispatching to
|
|
1505
|
+
the binary**, its `couples=` widened to `*.gate` and `*.rs` and its
|
|
1506
|
+
`.workflow/*.txt` spelling corrected to `.workflow/*`, which is the tier the
|
|
1507
|
+
corpus actually takes.
|
|
1130
1508
|
|
|
1131
1509
|
### check-deprecation-task
|
|
1132
1510
|
|
|
@@ -1147,13 +1525,26 @@ A marker line carrying no `task: <slug>` is **unbound**; a bound slug sitting in
|
|
|
1147
1525
|
slug absent from the queue is **unresolved**. All three redden — each finding
|
|
1148
1526
|
names the file, the line, the matched marker, and the offending slug. The
|
|
1149
1527
|
binding grammar and the queue-resolution pass are `check-todo-task-liveness`'s:
|
|
1150
|
-
the same `task: <slug>` key over the same `
|
|
1528
|
+
the same `task: <slug>` key over the same `queue_slugs` adapter
|
|
1151
1529
|
(§check-todo-task-liveness, §lib/spec.sh), one grammar both liveness gates
|
|
1152
|
-
share. The gate scans
|
|
1530
|
+
share. The gate scans the pruned comment surface (templates dropped as
|
|
1153
1531
|
placeholders-by-design) and reads the queue through `CANON_KIT_QUEUE_FILE`, no
|
|
1154
1532
|
new knob beyond the roster. An unreadable queue or source is fail-closed
|
|
1155
1533
|
(exit 2); an empty roster is the clean skip, not an error.
|
|
1156
1534
|
|
|
1535
|
+
**Declared by `check-deprecation-task.gate`, dispatching to the binary**, with
|
|
1536
|
+
the same widened `couples=` its twin carries. The roster is where this member
|
|
1537
|
+
parts from its three siblings: it is a consumer array joined into one alternation
|
|
1538
|
+
and **interpreted**, so the compiled form compiles it through the crate's POSIX
|
|
1539
|
+
ERE matcher (gate-sdk/SPEC.md §The POSIX ERE matcher) and reports the offending
|
|
1540
|
+
knob by name on a pattern the engine refuses. One shell defect went with the
|
|
1541
|
+
port, found by widening the fixture pair rather than by review: the unbound
|
|
1542
|
+
finding named the marker as `''`, because the record carried an empty slug field
|
|
1543
|
+
*between* two populated ones and `IFS=$'\t' read` collapses a tab run. It was
|
|
1544
|
+
repaired in the shell before the port, so the parity run proves the repaired
|
|
1545
|
+
message on both substrates rather than freezing the defect into the compiled
|
|
1546
|
+
form.
|
|
1547
|
+
|
|
1157
1548
|
This repo sets no roster, so the gate clean-skips here — the good/bad fixture
|
|
1158
1549
|
pair and `check-deprecation-task.test.sh` carry the resolved and reddened paths
|
|
1159
1550
|
under a fixture-local roster (the `check-manifest-count` config-path precedent).
|
|
@@ -1253,7 +1644,8 @@ tracked file, or a directory holding tracked files; a `#anchor` — alone
|
|
|
1253
1644
|
(same-file) or trailing a path — must match the GitHub heading slug of a
|
|
1254
1645
|
heading in the target file. External URLs (`scheme://`, `mailto:`) are out of
|
|
1255
1646
|
scope: the network is not a gate dependency. The doc set is the manifest set
|
|
1256
|
-
(
|
|
1647
|
+
(`CLAUDE.md` included; a vendored kit's own `README.md` only where
|
|
1648
|
+
`CANON_KIT_SCAN_KIT_ROOTS` re-includes it) minus the `CANON_KIT_MDREF_EXCLUDE` globs
|
|
1257
1649
|
(default empty, for a consumer's generated docs); the scan runs over tracked
|
|
1258
1650
|
sources only, so an untracked local-only file (`BRIEF.local.md`) is a legitimate
|
|
1259
1651
|
link *source* that is never scanned and, being git-ignored-and-present, a
|
|
@@ -1290,6 +1682,21 @@ documentation of the current tree, so a reference link pins to the default
|
|
|
1290
1682
|
branch (this repo's `master`), and a tag-pinned reference copy would buy
|
|
1291
1683
|
staleness, not stability.
|
|
1292
1684
|
|
|
1685
|
+
**Coverage the good/bad pair cannot hold**, and where it lives:
|
|
1686
|
+
`gate-tests/check-md-refs.test.sh`. The harness resolves exactly one `good/` and
|
|
1687
|
+
one `bad/` case dir per gate, and this gate's pair is spent on the core
|
|
1688
|
+
link-resolution logic, so two behaviors ride a bespoke test instead. The
|
|
1689
|
+
self-repo pass is the first: each case builds a throwaway repo with a controlled
|
|
1690
|
+
`origin`, which a case dir run inside this repo cannot do. The kit-root prune on
|
|
1691
|
+
the manifest set's README half is the second, and the two cases differ only in
|
|
1692
|
+
`CANON_KIT_SCAN_KIT_ROOTS` over one tree — a shape the pair's
|
|
1693
|
+
one-tree-per-verdict form cannot express even with a slot free. That second half
|
|
1694
|
+
is the **only** executable oracle the prune has: this repo sets the knob, so its
|
|
1695
|
+
battery is a no-op on it, and a consumer's knob is `0` either way, so no
|
|
1696
|
+
consumer-smoke run distinguishes a knob-gated prune from an unconditional one.
|
|
1697
|
+
The sibling `gate-tests/check-spec-dod-singleton.test.sh` carries the same
|
|
1698
|
+
prune's canonical-spec half for the same reason.
|
|
1699
|
+
|
|
1293
1700
|
### The reference-link grammar
|
|
1294
1701
|
|
|
1295
1702
|
A docs-site page cites two kinds of in-repo target, and the grammar splits on
|
|
@@ -1317,6 +1724,7 @@ as source references.
|
|
|
1317
1724
|
|
|
1318
1725
|
### check-docs-link-convention
|
|
1319
1726
|
|
|
1727
|
+
`checks/check-docs-link-convention.gate` (`precommit`, binary-dispatched).
|
|
1320
1728
|
Invariant: every relative markdown link on a docs-site page obeys the
|
|
1321
1729
|
downward-citation *shape* — the resolution of those links is `check-md-refs`'
|
|
1322
1730
|
charge, and this gate owns shape alone. Absolute reference links (the off-site
|
|
@@ -1358,6 +1766,20 @@ pure `#anchor` (no path) satisfies neither rule. Per-site valve: a
|
|
|
1358
1766
|
above suppresses that one finding — for the rare legitimate directory link a
|
|
1359
1767
|
consumer's layout demands. A missing scan root is fail-closed (exit 2).
|
|
1360
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
|
+
|
|
1361
1783
|
### check-docs-cmd
|
|
1362
1784
|
|
|
1363
1785
|
Invariant: every invoked repo-relative `.sh` path and every kit-prefixed env
|
|
@@ -1458,6 +1880,25 @@ assertions:
|
|
|
1458
1880
|
exactly where a transport shows, but a fenced line is never read as a heading;
|
|
1459
1881
|
the declaration line is skipped, since a claim is not evidence for itself.
|
|
1460
1882
|
|
|
1883
|
+
**The rule is a compiled subcommand, and one piece of it is load-bearing beyond
|
|
1884
|
+
this gate.** The section regex and every transport pattern are consumer EREs
|
|
1885
|
+
compiled through the crate's matcher (gate-sdk/SPEC.md §The POSIX ERE matcher);
|
|
1886
|
+
the `install-primary:` declaration grammar and the `^#{2,6}[[:space:]]+` heading
|
|
1887
|
+
grammar are kit literals. The heading one goes through the matcher anyway, and
|
|
1888
|
+
deliberately: taking a heading's text is a **span** read, so routing it through
|
|
1889
|
+
`find` gives the matcher's leftmost-longest span API a production reader on every
|
|
1890
|
+
invocation of a precommit-tier gate, rather than one alive only in unit tests.
|
|
1891
|
+
|
|
1892
|
+
**One declaration grammar, where two spellings once disagreed.** The declaration
|
|
1893
|
+
is detected and its id extracted by the same grammar, so the terminator is part
|
|
1894
|
+
of it: an id run and the `-->` that closes the comment share the hyphen, and the
|
|
1895
|
+
run gives hyphens back until the terminator matches. A space-less
|
|
1896
|
+
`<!--install-primary:tarball-->` therefore declares `tarball`, and the rule runs.
|
|
1897
|
+
The compiled form is the single spelling; a detecting pattern that required the
|
|
1898
|
+
terminator beside an extracting one that did not made that same line read as a
|
|
1899
|
+
declaration of `tarball--` and fail-closed on a vocabulary it was never checked
|
|
1900
|
+
against.
|
|
1901
|
+
|
|
1461
1902
|
Assertion B is the answer to the leading-versus-mentioning question: naming a
|
|
1462
1903
|
secondary transport is correct prose and must stay green, so the rule is
|
|
1463
1904
|
positional. **The scope in which "leading" is well-defined is the install
|
|
@@ -1540,6 +1981,12 @@ recipe is exactly where a disclosure claim shows up in passing. The report names
|
|
|
1540
1981
|
the offending class, because "wrong disclosure class" alone would leave the
|
|
1541
1982
|
reader grepping.
|
|
1542
1983
|
|
|
1984
|
+
The rule is a **compiled subcommand** — structurally the simplest consumer of the
|
|
1985
|
+
crate's matcher, membership over the whole document rather than position inside a
|
|
1986
|
+
section, so the engine and the vocabulary bridge were both proved by its two
|
|
1987
|
+
cohort siblings before it landed. It shares the declaration grammar
|
|
1988
|
+
§check-install-claim states, including that section's single-spelling rule.
|
|
1989
|
+
|
|
1543
1990
|
**The declared class's own pattern is latent rather than unread.** Assertion B
|
|
1544
1991
|
matches only the classes that are *not* declared, so the declared one's pattern
|
|
1545
1992
|
does no work while it holds the declaration — and starts doing it the moment the
|
|
@@ -1626,6 +2073,23 @@ Exact detection regexes are implementation, owned by the gate source; the
|
|
|
1626
2073
|
(`bad/` trips every assertion, `good/` passes all and demonstrates the valve).
|
|
1627
2074
|
Thresholds are the `CANON_KIT_PROSE_TELL_*` knobs (§Layout and configuration).
|
|
1628
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
|
+
|
|
1629
2093
|
**Valve** — an HTML comment `<!-- prose-tell-exempt: <reason> -->` on the
|
|
1630
2094
|
flagged line or directly above it suppresses the tell at that site; it rides the
|
|
1631
2095
|
shared exempt-window (§lib/spec.sh — the line or the one above), and the reason
|