checkwright 0.22.0 → 0.23.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 +687 -90
- package/lib/common/lock.sh +38 -9
- package/lib/common/profile.sh +33 -0
- package/lib/common/recipe.sh +49 -33
- package/lib/diff.sh +64 -0
- package/lib/doctor.sh +67 -42
- package/lib/init.sh +23 -31
- package/lib/uninstall.sh +212 -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 +410 -58
- package/payload/canon-kit/checks/check-amendment-queue.sh +1 -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.sh +1 -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.sh +1 -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.sh +1 -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.sh +1 -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-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/expect.txt +4 -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/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-knob-citation.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-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 +1 -0
- package/payload/canon-kit/templates/SPEC-amendment.md +4 -1
- package/payload/context-kit/README.md +4 -1
- package/payload/context-kit/SPEC.md +143 -10
- package/payload/context-kit/bin/env-probe.sh +19 -6
- package/payload/context-kit/checks/check-brevity.sh +1 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +1 -0
- package/payload/context-kit/checks/check-memory-off.sh +1 -0
- package/payload/context-kit/checks/check-settings-paths.sh +94 -0
- package/payload/context-kit/checks/check-settings-pins.sh +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/args +1 -0
- 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/args +1 -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/index-tests/expected/toolfloor.txt +9 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
- package/payload/context-kit/lib/toolfloor.sh +15 -4
- package/payload/context-kit/smoke/agents-md.sh +12 -1
- package/payload/context-kit/smoke/install.sh +1 -0
- package/payload/delegation-kit/README.md +3 -3
- package/payload/delegation-kit/SPEC.md +116 -13
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +1 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +1 -0
- package/payload/delegation-kit/checks/check-rule-citation.sh +1 -0
- package/payload/delegation-kit/templates/agent-execution.md +38 -14
- 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 +102 -9
- package/payload/doctrine-kit/bin/install-doctrine.sh +83 -13
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +41 -11
- 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 +82 -2
- package/payload/doctrine-kit/smoke/install.sh +90 -0
- package/payload/drift-kit/SPEC.md +13 -4
- package/payload/drift-kit/bin/kfric.sh +21 -2
- package/payload/drift-kit/smoke/install.sh +28 -0
- package/payload/evidence-kit/checks/check-battery-roster.sh +1 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +1 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +1 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +1 -0
- package/payload/gate-sdk/README.md +13 -0
- package/payload/gate-sdk/SPEC.md +2611 -151
- package/payload/gate-sdk/bin/build-native.sh +38 -0
- package/payload/gate-sdk/bin/enforcement-map.sh +2 -1
- package/payload/gate-sdk/bin/gen-pre-commit.sh +23 -3
- package/payload/gate-sdk/bin/port-blockers.sh +445 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +8 -1
- package/payload/gate-sdk/bin/run-gate-tests.sh +26 -5
- package/payload/gate-sdk/bin/run-gates.sh +8 -2
- package/payload/gate-sdk/bin/upgrade-smoke.sh +52 -4
- 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 +1 -0
- package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-msg.sh +1 -0
- package/payload/gate-sdk/checks/check-commit-subject.sh +1 -0
- package/payload/gate-sdk/checks/check-core-files.sh +1 -0
- package/payload/gate-sdk/checks/check-crate-arms.sh +61 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +1 -0
- package/payload/gate-sdk/checks/check-exec-bit.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +31 -6
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +2 -1
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-output.sh +33 -3
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +36 -5
- package/payload/gate-sdk/checks/check-graph.sh +1 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +1 -0
- package/payload/gate-sdk/checks/check-identity.sh +1 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +92 -0
- package/payload/gate-sdk/checks/check-kit-enum.sh +1 -0
- package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.sh +1 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +3 -2
- package/payload/gate-sdk/checks/check-root-tiering.sh +1 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +1 -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 +1 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +2 -1
- 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-gate-assertions/good/expect.txt +1 -1
- 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 +111 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +65 -4
- 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-registration.test.sh +6 -5
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +111 -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 +135 -11
- 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 +42 -0
- package/payload/guard-kit/README.md +14 -11
- package/payload/guard-kit/SPEC.md +278 -62
- package/payload/guard-kit/bin/run-guard-tests.sh +1 -0
- package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
- package/payload/guard-kit/guard-tests/cases.tsv +49 -7
- package/payload/guard-kit/lib/guard.sh +276 -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 +11 -1
- package/payload/lifecycle-kit/SPEC.md +441 -37
- package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +126 -10
- package/payload/lifecycle-kit/bin/file-gap.sh +27 -10
- package/payload/lifecycle-kit/bin/file-survey.sh +21 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +1 -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.sh +1 -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/check-close-surfaces.test.sh +1 -2
- 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.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +9 -5
- 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/rename-iteration.test.sh +142 -0
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
- package/payload/lifecycle-kit/lib/stages.sh +4 -0
- package/payload/lifecycle-kit/smoke/install.sh +67 -4
- package/payload/lifecycle-kit/templates/lead.md +36 -0
- package/payload/lifecycle-kit/templates/stages/close.md +30 -11
- package/payload/lifecycle-kit/templates/stages/scope.md +9 -4
- package/payload/lifecycle-kit/templates/stages/spec.md +5 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
- package/payload/queue-kit/README.md +3 -1
- package/payload/queue-kit/SPEC.md +123 -3
- 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.sh +1 -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.sh +1 -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/queue-counts.test.sh +116 -0
- package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
- package/payload/queue-kit/lib/queue.sh +4 -19
- package/payload/site-kit/SPEC.md +23 -0
- package/payload/site-kit/checks/check-docs-cname-parity.sh +1 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
- package/profiles.list +36 -8
- 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-install-claim.sh +0 -146
- package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
- 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-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-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/gate-sdk/checks/check-assertion-strength.sh +0 -134
- package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
- 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/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-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/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-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-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
|
@@ -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.
|
|
@@ -220,8 +249,16 @@ gate-sdk) holds the brand-token side honest tree-wide: every slash- or
|
|
|
220
249
|
line-anchored `<name>-kit` / `gate-sdk` path segment must name a
|
|
221
250
|
`gate_kit_roots` dir, and every live-prefix kit knob must resolve to a tracked
|
|
222
251
|
kit knob (check-docs-cmd's resolver, reused so the non-uniform knob-prefix map
|
|
223
|
-
has one home).
|
|
224
|
-
|
|
252
|
+
has one home). **A knob resolves through a family stem in either direction**: a
|
|
253
|
+
scanned `<FAMILY>_` stem resolves when kit source defines any member under it,
|
|
254
|
+
and a scanned member resolves when kit source defines the stem. The second
|
|
255
|
+
direction is what a **dispatch-composed** knob name needs — gate-sdk's
|
|
256
|
+
`GATE_SDK_KNOB_<NAME>` bridge builds the full name at runtime from the knob it
|
|
257
|
+
is carrying (gate-sdk/SPEC.md §lib/gate.sh), so kit source contains the stem and
|
|
258
|
+
never the members. Spelling the members out to satisfy an exact match would be a
|
|
259
|
+
hardcoded roster of consumer knob names in a kit literal, which is the one shape
|
|
260
|
+
that crosses the provenance seam here. It valves the surfaces that legitimately
|
|
261
|
+
name design-ahead or frozen brands — `gate-tests/` fixture bodies, `docs/posts/*`, the generated
|
|
225
262
|
trajectory data, `SPEC-*.md` amendments, and the queue — so a rename cannot
|
|
226
263
|
leave a dangle without turning a gate red.
|
|
227
264
|
|
|
@@ -249,11 +286,12 @@ unset, and the loader exits 2 on a malformed config. Knobs:
|
|
|
249
286
|
`CANON_KIT_DOD_MODE` — `exactly-one` (the default) or `at-most-one`
|
|
250
287
|
(a reference-spec corpus like this repo's kits carries no DoD).
|
|
251
288
|
- `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
|
-
|
|
289
|
+
skip vendored kit roots (`gate_kit_roots`): a kit's `SPEC.md`/`SPEC-*.md` and
|
|
290
|
+
its `README.md` alike are a dependency's documentation, not governed content,
|
|
291
|
+
so the `exactly-one` default holds out of the box on a tree that merely
|
|
292
|
+
vendored the kits beside gate-sdk and no consumer is asked to answer for a
|
|
293
|
+
dependency's own internal links. Set `1` when the kit docs are the consumer's
|
|
294
|
+
own first-party content (this repo does, and keeps `at-most-one` for them).
|
|
257
295
|
- `CANON_KIT_BANNED_HEADINGS` — array, default
|
|
258
296
|
`("Directory Structure" "Public API" "Cargo.toml Dependencies")`;
|
|
259
297
|
`CANON_KIT_DERIVABLE_DENSITY` — default `60` (percent fenced);
|
|
@@ -280,7 +318,8 @@ unset, and the loader exits 2 on a malformed config. Knobs:
|
|
|
280
318
|
This repo sets `("*/templates/*.md" ".claude/agents/*.md")`.
|
|
281
319
|
`CANON_KIT_TEMPORAL_MARKERS` — the temporal-narration marker set scanned by
|
|
282
320
|
`check-manifest-temporal`, default a generic-English list (`previously`,
|
|
283
|
-
`formerly`, `renamed from`, …), matched case-insensitively
|
|
321
|
+
`formerly`, `renamed from`, …), matched case-insensitively and extended
|
|
322
|
+
through `CANON_KIT_TEMPORAL_MARKERS_EXTRA` under the `_EXTRA` semantics below;
|
|
284
323
|
`CANON_KIT_TEMPORAL_EXEMPT_SECTIONS` — array of heading names whose whole
|
|
285
324
|
section is exempt, default empty (this repo sets `Out of scope`).
|
|
286
325
|
- `CANON_KIT_MDREF_EXCLUDE` — array of globs, default empty: manifest-set docs
|
|
@@ -310,7 +349,11 @@ unset, and the loader exits 2 on a malformed config. Knobs:
|
|
|
310
349
|
vocabulary is one project's distribution model, so no spelling of it ships as a
|
|
311
350
|
kit literal (the provenance seam). This repo sets
|
|
312
351
|
`bash scripts/install-transports.sh`, `^(Quick start|Install)`, and
|
|
313
|
-
`("docs/posts/*")`.
|
|
352
|
+
`("docs/posts/*")`. `CANON_KIT_INSTALL_TRANSPORT_IDS` /
|
|
353
|
+
`CANON_KIT_INSTALL_TRANSPORT_PATTERNS` — the index-aligned halves of that
|
|
354
|
+
command's parsed output, default empty arrays, filled by this kit's library only
|
|
355
|
+
while one of the two is the knob under resolution; they are the bridged form the
|
|
356
|
+
compiled member reads and are not a consumer-authored knob (§lib/spec.sh).
|
|
314
357
|
- `CANON_KIT_PAYLOAD_CLAIMS_CMD` — a consumer command emitting the payload
|
|
315
358
|
disclosure classes `check-payload-claim` holds, one `<claim-id>`⇥`<ERE>` line
|
|
316
359
|
per class, default empty ⇒ clean skip (the correct posture for a tree whose
|
|
@@ -320,6 +363,19 @@ unset, and the loader exits 2 on a malformed config. Knobs:
|
|
|
320
363
|
discloses is one project's distribution model, so it is consumer config for
|
|
321
364
|
the same provenance-seam reason the transport vocabulary above is. This repo
|
|
322
365
|
sets `bash scripts/payload-claims.sh` and `("docs/posts/*")`.
|
|
366
|
+
`CANON_KIT_PAYLOAD_CLAIM_IDS` / `CANON_KIT_PAYLOAD_CLAIM_PATTERNS` — that
|
|
367
|
+
command's parsed output in the same bridged, index-aligned shape as the
|
|
368
|
+
transport pair above, default empty arrays.
|
|
369
|
+
- `CANON_KIT_MEASURED_CLAIMS_CMD` — a consumer command emitting the oracle
|
|
370
|
+
`check-measured-claim` re-runs, one `<key>`⇥`<value>` line per measurable fact,
|
|
371
|
+
default empty ⇒ clean skip (no oracle, so no marker has anything to disagree
|
|
372
|
+
with). `CANON_KIT_MEASURED_SURFACE_GLOBS` — array of globs naming the scanned
|
|
373
|
+
surface, default empty ⇒ empty corpus and a clean gate; the two are set
|
|
374
|
+
together or not at all. What a project measures is that project's vocabulary,
|
|
375
|
+
so no key ships as a kit literal (the provenance seam). This repo sets
|
|
376
|
+
`bash scripts/measured-claims.sh` and the `CANON_KIT_MANIFEST_FILES` globs plus
|
|
377
|
+
`.claude/commands/*.md` — the shims the manifest set omits and the prose surface
|
|
378
|
+
excludes on a copy-shape ownership this rule is not covered by.
|
|
323
379
|
- `CANON_KIT_COMMENT_MACHINE` / `CANON_KIT_COMMENT_REASON` — arrays, default
|
|
324
380
|
empty: extra directive prefixes appended to the built-in kit-mechanism
|
|
325
381
|
roster (a consumer's product vocabulary). `CANON_KIT_COMMENT_SURFACE` —
|
|
@@ -350,10 +406,12 @@ unset, and the loader exits 2 on a malformed config. Knobs:
|
|
|
350
406
|
phrases matched case-insensitively, default a bundled generic-English set
|
|
351
407
|
(`It's worth noting`, `That said`, …); `CANON_KIT_PROSE_TELL_ABBR_ALLOW` —
|
|
352
408
|
array of abbreviations exempt from the undefined-abbreviation tell, default a
|
|
353
|
-
bundled universal set (`API`, `CLI`, `URL`, …). A consumer extends
|
|
354
|
-
|
|
355
|
-
`
|
|
356
|
-
`
|
|
409
|
+
bundled universal set (`API`, `CLI`, `URL`, …). A consumer extends any
|
|
410
|
+
bundled vocabulary — these two and `CANON_KIT_TEMPORAL_MARKERS` above — with
|
|
411
|
+
its own through the matching `_EXTRA` knob:
|
|
412
|
+
`CANON_KIT_PROSE_TELL_PHRASES_EXTRA`,
|
|
413
|
+
`CANON_KIT_PROSE_TELL_ABBR_ALLOW_EXTRA` and
|
|
414
|
+
`CANON_KIT_TEMPORAL_MARKERS_EXTRA`, all default empty, which the lib
|
|
357
415
|
unions onto the base after the base defaults resolve: the effective set is
|
|
358
416
|
base plus extra. Extension therefore costs one token, never a restatement of
|
|
359
417
|
the bundled default that would silently diverge from it. Assigning a base
|
|
@@ -380,8 +438,8 @@ and no oracle sees whole: `check-comment-tier.test.sh`,
|
|
|
380
438
|
`check-deprecation-task.test.sh`, `check-docs-link-convention.test.sh`,
|
|
381
439
|
`check-knob-citation.test.sh`, `check-knob-default-coupling.test.sh`,
|
|
382
440
|
`check-manifest-count.test.sh`, `check-md-refs.test.sh`,
|
|
383
|
-
`check-
|
|
384
|
-
`check-tracking-claim.test.sh`.
|
|
441
|
+
`check-measured-claim.test.sh`, `check-prose-enum.test.sh`,
|
|
442
|
+
`check-spec-dod-singleton.test.sh` and `check-tracking-claim.test.sh`.
|
|
385
443
|
|
|
386
444
|
### lib/spec.sh
|
|
387
445
|
|
|
@@ -397,25 +455,35 @@ same shapes:
|
|
|
397
455
|
plus a configured icebox, built as one regex so the tag rule and the walk can
|
|
398
456
|
never disagree on the set — and a done slug for a bare-slug bullet outside
|
|
399
457
|
them; the single grammar `check-todo-task-liveness`
|
|
400
|
-
and `check-deprecation-task` resolve a `task: <slug>` binding through
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
458
|
+
and `check-deprecation-task` resolve a `task: <slug>` binding through. **The
|
|
459
|
+
walk is `native/src/spec.rs`'s `queue_slugs` and the section builders are the
|
|
460
|
+
shell library's**: both members compile, so the shell walk went with its last
|
|
461
|
+
caller, while `check-amendment-queue` still reads `SPEC_ACTIVE_RE` and its
|
|
462
|
+
siblings here. That walk's bullet lead-line predicate is written again in the
|
|
463
|
+
crate rather than pointed at `native/src/queue.rs`'s adapters, which keeps
|
|
464
|
+
canon-kit one of the format's independent holders under the
|
|
404
465
|
re-implement-and-cite-from-both-ends rule
|
|
405
|
-
(queue-kit/SPEC.md §The queue format)
|
|
466
|
+
(queue-kit/SPEC.md §The queue format) — two modules in one crate are still two
|
|
467
|
+
holders where one shared function is not; the holder census and the residue it
|
|
406
468
|
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).
|
|
469
|
+
- **The governed comment surface:** `comment_surface` in `native/src/spec.rs` —
|
|
470
|
+
the one corpus primitive `check-spec-pointer`, `check-comment-tier`,
|
|
471
|
+
`check-todo-task-liveness` and `check-deprecation-task` all call, its single
|
|
472
|
+
parameter deciding whether `templates/` sources are pruned. Its file set spans
|
|
473
|
+
**both gate declaration spellings, the ported implementation, and the workflow
|
|
474
|
+
directory's tracked tier**: `*.sh`, the `*.gate` descriptor, `*.rs`, and every
|
|
475
|
+
tracked member of `GATE_SDK_WORKFLOW_DIR` whatever its extension. Stated once
|
|
476
|
+
here rather than at each of the four callers, since a gate whose rule became a
|
|
477
|
+
compiled subcommand must not have its `# spec:` pointer, its comment tier, or a
|
|
478
|
+
`TODO(task:)` marker silently drop out of coverage — the widening is made at the
|
|
479
|
+
shared primitive so no caller can inherit a narrower corpus than its siblings
|
|
480
|
+
(gate-sdk/SPEC.md §Meta-gate conservation for the binary substrate). The shell
|
|
481
|
+
forms are **deleted rather than duplicated**: all four callers compiled in one
|
|
482
|
+
cohort, so criterion 6 is satisfied in the form it calls strongest — the
|
|
483
|
+
duplication is absent rather than machine-held. A consumer whose own gate called
|
|
484
|
+
`spec_comment_surface`, `spec_comment_surface_with_templates` or
|
|
485
|
+
`spec_comment_whitelisted` shadows the gate, which is the answer this section
|
|
486
|
+
already gives for the finder-choice question below.
|
|
419
487
|
- **Finders:** the canonical-spec / amendment finders the spec-scanning gates
|
|
420
488
|
share, and the manifest-set finder the narration-gate family shares —
|
|
421
489
|
canonical specs plus `README.md`/`CLAUDE.md`, amendments excluded — so its
|
|
@@ -425,13 +493,65 @@ same shapes:
|
|
|
425
493
|
grammar lifecycle-kit/SPEC.md §templates/stages/ owns) and no
|
|
426
494
|
`CONSUMER BINDING` header. A slot-bearing candidate is silently excluded — a template still
|
|
427
495
|
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
|
-
|
|
496
|
+
the shim/binding gates (§Layout and configuration states the knob). All three
|
|
497
|
+
markdown finders — canonical specs, amendments, and the manifest set's
|
|
498
|
+
`README.md` half — skip a `templates/` skeleton (a copyable stub, not governed
|
|
499
|
+
content, the same rationale as the gate-tests prune) and, unless
|
|
500
|
+
`CANON_KIT_SCAN_KIT_ROOTS=1`, any vendored kit root under the scan root. The
|
|
501
|
+
kit-root prune reaches the README because the knob's rationale turns on whose
|
|
502
|
+
documentation a file is, not on which filename carries it: a vendored kit's
|
|
503
|
+
`README.md` is a dependency's docs exactly as its `SPEC.md` is, and pruning
|
|
504
|
+
one while governing the other reds a consumer on a dependency's own internal
|
|
505
|
+
links — measured, on a profile that vendors canon-kit without queue-kit, where
|
|
506
|
+
`canon-kit/README.md`'s `../queue-kit/` link dangles on a bare install tree.
|
|
507
|
+
An ancestor kit root — the case when a kit's own fixture dir is the scan
|
|
508
|
+
root — never prunes.
|
|
509
|
+
|
|
510
|
+
**One asymmetry inside the manifest set, written down because a port that
|
|
511
|
+
tidies it changes the corpus.** The canonical-spec half and the `README.md`
|
|
512
|
+
half are both `templates/`-filtered and kit-root pruned; the **`CLAUDE.md`
|
|
513
|
+
half is neither**. A consumer's agent manifest is governed content wherever it
|
|
514
|
+
sits, including inside a vendored kit root and inside a `templates/`
|
|
515
|
+
skeleton — so regularizing the three finders into one loop silently drops two
|
|
516
|
+
files that belong in the set. The rule is the asymmetry, not the tidy form.
|
|
517
|
+
|
|
518
|
+
**Which primitive is on which substrate.** `spec_manifest_files` has a Rust
|
|
519
|
+
implementation (`native/src/spec.rs`) carrying all three branches — explicit
|
|
520
|
+
globs, the default walk, and the prose-surface fold — plus the kit-root path
|
|
521
|
+
prune, because its family is partly compiled; the shell form stays, since
|
|
522
|
+
members outside that family still call it. That module carries the claim-gate
|
|
523
|
+
primitives too: the declaration grammar, the declaration roster, the
|
|
524
|
+
governed-doc set behind its two exclude valves, and the bridged vocabulary
|
|
525
|
+
loader. The shell kept a copy of the last two per member; the compiled form has
|
|
526
|
+
one, ported once and proved by each member that calls it. `comment_surface` and
|
|
527
|
+
`queue_slugs` are **compiled only**, and so are all four of their callers
|
|
528
|
+
(gate-sdk/SPEC.md §The first cohort, and the rule that selects the next): where
|
|
529
|
+
the manifest finder is dual because members outside its family still call it,
|
|
530
|
+
these two emptied their caller sets in one cohort and their shell forms were
|
|
531
|
+
removed in the same commit.
|
|
532
|
+
The two implementations of the manifest finder are held together by the config
|
|
533
|
+
bridge rather than by a copied default: every knob either reads crosses it as
|
|
534
|
+
a resolved value, so there is exactly one place each is computed
|
|
535
|
+
(gate-sdk/SPEC.md §The port-candidate criteria, criterion 6).
|
|
536
|
+
- **The emitter-backed vocabularies** — the enum sets, the install transports
|
|
537
|
+
and the payload-disclosure classes a consumer supplies as a *command*. For a
|
|
538
|
+
compiled member the command's **output** is the interface, never the command:
|
|
539
|
+
the library runs the emitter at knob-resolution time and the binary receives
|
|
540
|
+
data, so no compiled gate spawns an interpreter to read consumer config and no
|
|
541
|
+
spelling of a consumer's vocabulary becomes a kit literal. A pair rides two
|
|
542
|
+
index-aligned arrays (`CANON_KIT_ENUM_SET_NAMES` / `..._MEMBERS`) because the
|
|
543
|
+
bridge's wire format separates elements with a tab and refuses one inside an
|
|
544
|
+
element, so a `<name>`⇥`<member>` line cannot cross as a single string. The
|
|
545
|
+
resolution is gated on `GATE_SDK_RESOLVING_KNOB` (gate-sdk/SPEC.md
|
|
546
|
+
§lib/gate.sh), because it costs a subprocess and this library is sourced once
|
|
547
|
+
per declared knob per gate. Three vocabularies ride that shape, one pair each:
|
|
548
|
+
the enum sets, `CANON_KIT_INSTALL_TRANSPORT_IDS` / `..._PATTERNS`, and
|
|
549
|
+
`CANON_KIT_PAYLOAD_CLAIM_IDS` / `..._PATTERNS` (§Layout and configuration). The
|
|
550
|
+
emitting **command** knob is bridged beside each pair, because it is what tells
|
|
551
|
+
*none configured* from *configured, and it declared nothing* — the two clean
|
|
552
|
+
skips a claim gate reports apart. The tab a POSIX ERE may legitimately carry
|
|
553
|
+
cannot reach the bridge: `spec_claim_vocabulary` below rejects a line with an
|
|
554
|
+
extra tab before the value is ever serialized.
|
|
435
555
|
- **The count adapter** the restated-total gates share, so a consumer's
|
|
436
556
|
`CANON_KIT_COUNT_COLLECTIONS` vocabulary enters once and every such gate
|
|
437
557
|
matches the same total shapes — including a total whose cardinal and noun
|
|
@@ -458,10 +578,14 @@ same shapes:
|
|
|
458
578
|
a bare emit grammar cannot express and both gates need: two lines claiming one
|
|
459
579
|
id would give a class two patterns and make its match order arbitrary. Its
|
|
460
580
|
callers are `spec_install_transports`, over
|
|
461
|
-
`CANON_KIT_INSTALL_TRANSPORTS_CMD` (§check-install-claim)
|
|
581
|
+
`CANON_KIT_INSTALL_TRANSPORTS_CMD` (§check-install-claim);
|
|
462
582
|
`check-payload-claim` directly, over `CANON_KIT_PAYLOAD_CLAIMS_CMD`
|
|
463
|
-
(§check-payload-claim)
|
|
464
|
-
|
|
583
|
+
(§check-payload-claim); and `spec_measured_claims`, over
|
|
584
|
+
`CANON_KIT_MEASURED_CLAIMS_CMD` (§check-measured-claim) — whose second field is
|
|
585
|
+
a measured value rather than an ERE, which the loader neither interprets nor
|
|
586
|
+
needs to, since every check it makes is on the line's shape.
|
|
587
|
+
- **The comment-surface adapters:** the comment gates read *different* surfaces,
|
|
588
|
+
which is the one thing the primitive's parameter decides.
|
|
465
589
|
`check-spec-pointer` scans the template-pruned surface — a template's `spec:`
|
|
466
590
|
line is an unresolvable-by-design placeholder (§check-spec-pointer);
|
|
467
591
|
`check-comment-tier` scans the with-templates surface — a copied-out
|
|
@@ -561,7 +685,9 @@ narration-marker KPI is superseded by this gate (drift-kit/SPEC.md
|
|
|
561
685
|
The scanned set is the shared `spec_manifest_files` finder (§lib/spec.sh):
|
|
562
686
|
canonical specs, `README.md` at any depth, and `CLAUDE.md`; amendments are
|
|
563
687
|
excluded by construction (a transition artifact describes change — that is its
|
|
564
|
-
nature). Markers are `CANON_KIT_TEMPORAL_MARKERS`,
|
|
688
|
+
nature). Markers are `CANON_KIT_TEMPORAL_MARKERS`, the base array merged with
|
|
689
|
+
`CANON_KIT_TEMPORAL_MARKERS_EXTRA` (§Layout and configuration), matched
|
|
690
|
+
case-insensitively;
|
|
565
691
|
fenced code blocks are skipped and a marker inside an inline-code span is a
|
|
566
692
|
meta-reference, not narration — so a gate-output example or this section's own
|
|
567
693
|
vocabulary may name one. Three valves suppress a legitimately past line: a
|
|
@@ -578,6 +704,17 @@ narration governance). Producer: the generated pre-commit hook /
|
|
|
578
704
|
marker hit is read at the single scan transition (file, line, marker in the
|
|
579
705
|
message), no persistent state. Fail-closed on an unreadable manifest.
|
|
580
706
|
|
|
707
|
+
The rule is a **compiled subcommand** (gate-sdk/SPEC.md §The POSIX ERE matcher):
|
|
708
|
+
each marker is a consumer-supplied ERE, compiled through the crate's matcher
|
|
709
|
+
before the first corpus line is read, so a pattern outside the POSIX grammar
|
|
710
|
+
exits 2 naming the pattern and the knob rather than scanning past what it meant.
|
|
711
|
+
Two fidelity points a transliteration loses, recorded because both are invisible
|
|
712
|
+
in a green run: the marker test runs against a **case-folded subject** and the
|
|
713
|
+
pattern is not folded, so a marker written with an upper-case letter matches
|
|
714
|
+
nothing; and `CANON_KIT_TEMPORAL_MARKERS_EXTRA` unions onto the base array inside
|
|
715
|
+
this kit's library *before* the bridge reads it, so the compiled member declares
|
|
716
|
+
the base knob alone and a second `_EXTRA` knob would double every added marker.
|
|
717
|
+
|
|
581
718
|
Calibration: the marker set is tuned against this repo as the FP corpus — bare
|
|
582
719
|
`used to` is excluded (it collides with instrumental "used to build/filter").
|
|
583
720
|
At build every hit is dispositioned: reword (preferred — narration is standing
|
|
@@ -631,6 +768,19 @@ the consumer governs); and the per-site `manifest-count-exempt: <reason>` marker
|
|
|
631
768
|
on the line or the one above. The exact operator and phrase tokens each context
|
|
632
769
|
recognizes are the check's own regex, generic-English mechanism rather than
|
|
633
770
|
config.
|
|
771
|
+
|
|
772
|
+
**The sanctioned discharge is the `measured:` marker** (§check-measured-claim),
|
|
773
|
+
and it is the only one of the four that *answers* the ban rather than stepping
|
|
774
|
+
around it: the objection this invariant encodes is a transcribed total with no
|
|
775
|
+
owner, and a marker binds the total to an oracle a gate re-runs. So a cardinal
|
|
776
|
+
under a `<!-- measured: <key>=<value> -->` line satisfies the ban the way a
|
|
777
|
+
generated copy satisfies derivation-first, which strictly shrinks this gate's
|
|
778
|
+
violation set. It rides the same per-site window the exempt marker does — the
|
|
779
|
+
marker line and the claim below it — so the two discharges are one behavior with
|
|
780
|
+
two spellings rather than a second walk. Rewording to cite the owning collection
|
|
781
|
+
stays preferred where the total is not worth stating at all; the exempt tag drops
|
|
782
|
+
to a genuine last resort, because "deliberately unchecked" is now the one thing
|
|
783
|
+
it means.
|
|
634
784
|
Producer: the generated pre-commit hook / `run-gates.sh`; consumer: the
|
|
635
785
|
committing operator via the output contract; each hit read at the single scan
|
|
636
786
|
transition (file, line, matched span in the message), no persistent state.
|
|
@@ -643,8 +793,132 @@ extend `CANON_KIT_COUNT_ALLOWED_PHRASES` (a genuinely fixed set), or site-exempt
|
|
|
643
793
|
with reason. The good/bad pair covers every match shape and the mechanical
|
|
644
794
|
exemptions;
|
|
645
795
|
`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
|
-
|
|
796
|
+
noun and the allowlist containment) the stock defaults cannot reach, and the
|
|
797
|
+
measured-marker discharge's *window* — that the marked claim is exempt and the
|
|
798
|
+
next paragraph is not, which a pair cannot spell because a fixture file either
|
|
799
|
+
trips or does not. `precommit` tier.
|
|
800
|
+
|
|
801
|
+
### check-measured-claim
|
|
802
|
+
|
|
803
|
+
Invariant: a measured count or extent claim that names an oracle agrees with it.
|
|
804
|
+
The class this closes is a claim authored into governed prose with **no** oracle
|
|
805
|
+
at all — a total, a corpus size, a swept set — which goes stale the moment the
|
|
806
|
+
thing it measured moves, and whose detection is a human re-measuring by hand at
|
|
807
|
+
review time if at all. The sibling ban (§check-manifest-count) reaches the
|
|
808
|
+
tractable slice of that class by refusing a bare cardinal over a governed
|
|
809
|
+
collection; it cannot reach a claim carrying no cardinal, and an *extent* claim
|
|
810
|
+
("the kit SPECs came back clean") is exactly that shape. Both halves need the
|
|
811
|
+
author to say what was measured, so this is a **marker** an author applies rather
|
|
812
|
+
than a scanner inferring intent: a scanner triggers on a numeral, and the claims
|
|
813
|
+
that cost the most carry none.
|
|
814
|
+
|
|
815
|
+
**The marker binds a claim to an oracle key and its measured value**, as a
|
|
816
|
+
full-line HTML comment on the line immediately above the claim:
|
|
817
|
+
|
|
818
|
+
```
|
|
819
|
+
<!-- measured: <key>=<value> -->
|
|
820
|
+
```
|
|
821
|
+
|
|
822
|
+
It joins the family `install-primary:` (§check-install-claim) and
|
|
823
|
+
`payload-discloses:` (§check-payload-claim) rather than inventing a form — a
|
|
824
|
+
full-line comment pairing a prose claim with a machine-readable id drawn from a
|
|
825
|
+
consumer-owned vocabulary behind a `*_CMD` knob. It is deliberately **not** the
|
|
826
|
+
`-exempt:` family: those are suppression valves that make a gate look away, and
|
|
827
|
+
this is an attachment that gives a gate something to check. The reader-facing
|
|
828
|
+
form of the claim stays prose; the marker is the tier beside it.
|
|
829
|
+
|
|
830
|
+
**The oracle is consumer-owned.** `CANON_KIT_MEASURED_CLAIMS_CMD` names a command
|
|
831
|
+
emitting one `<key>`⇥`<value>` line per measurable fact, loaded through
|
|
832
|
+
`spec_claim_vocabulary` (§lib/spec.sh) and so carrying that loader's fail-closed
|
|
833
|
+
contract. The marker grammar and the comparison are kit mechanism; every key,
|
|
834
|
+
every oracle command and every measured fact is consumer config, because a kit
|
|
835
|
+
literal enumerating what a project measures would publish that project's
|
|
836
|
+
vocabulary. An unset knob means the gate has no oracle and reports clean — the
|
|
837
|
+
inactive-by-default posture its `*_CMD` siblings take.
|
|
838
|
+
|
|
839
|
+
**Three arms.**
|
|
840
|
+
|
|
841
|
+
- **A — the oracle disagrees.** Red when the emitter's current value for `<key>`
|
|
842
|
+
differs from the marker's `<value>`. This is the point: the number in the
|
|
843
|
+
document is now checked against the tree.
|
|
844
|
+
- **B — the key is unknown.** Fail closed (exit 2) when `<key>` is absent from
|
|
845
|
+
the emitter's roster. A marker naming a key nobody emits is a claim with no
|
|
846
|
+
oracle wearing the costume of one, which is worse than an unmarked claim. A
|
|
847
|
+
marker that does not parse fails closed for the same reason.
|
|
848
|
+
- **C — the marker drifted off its own sentence.** When `<value>` is a bare
|
|
849
|
+
cardinal, red unless that cardinal appears as a token in the claim the marker
|
|
850
|
+
binds. Without arm C the marker and the prose can disagree while the marker and
|
|
851
|
+
the oracle agree, and the gate would go green over a false sentence — the exact
|
|
852
|
+
failure being closed.
|
|
853
|
+
|
|
854
|
+
Arm C's cardinal grammar is §check-manifest-count's, read as a value: a digit run
|
|
855
|
+
or a spelled `two`…`twelve` normalized to digits, so a marker's `12` and a
|
|
856
|
+
sentence's "twelve" are one cardinal rather than two. The claim a marker binds is
|
|
857
|
+
the paragraph below it, ending at a blank line, a fence, a second marker or the
|
|
858
|
+
end of file. **The authoring contract arm C prices:** a bound claim carrying more
|
|
859
|
+
than one distinct cardinal is ambiguous, and the gate fails closed rather than
|
|
860
|
+
guessing which one the marker holds — the remedy in the help line is to split the
|
|
861
|
+
sentence or move the marker onto the clause that carries the measurement. That
|
|
862
|
+
cost is bounded: it applies only to sentences an author chose to mark.
|
|
863
|
+
|
|
864
|
+
**Extent claims are covered by arms A and B alone, and that is the design rather
|
|
865
|
+
than a gap.** An extent claim carries no cardinal, so arm C does not apply and arm
|
|
866
|
+
A does the work, with `<value>` whatever the author declares the extent to be and
|
|
867
|
+
the emitter recomputes: a corpus size, a sorted membership list, a digest over
|
|
868
|
+
the swept set. This is the axis no scanner reaches and it costs nothing extra —
|
|
869
|
+
the same arms, with a set-valued rather than integer-valued oracle. Because the
|
|
870
|
+
config bridge refuses an element containing a tab and tab is this protocol's own
|
|
871
|
+
field separator, a set-valued oracle joins its members with something else.
|
|
872
|
+
|
|
873
|
+
**The known limit, stated rather than hidden: a claim nobody marks is uncaught
|
|
874
|
+
here.** What narrows it is §check-manifest-count's discharge, which makes marking
|
|
875
|
+
pressured rather than voluntary wherever the ban already bites.
|
|
876
|
+
|
|
877
|
+
The scanned surface is its own glob knob, `CANON_KIT_MEASURED_SURFACE_GLOBS`,
|
|
878
|
+
**not** the manifest set. The motivating class ranges over SPEC sections and
|
|
879
|
+
binding shims alike, and neither existing surface reaches a shim: the manifest set
|
|
880
|
+
excludes them by omission, with no documented rationale (a reader should not infer
|
|
881
|
+
a ruling from a silent absence), and the prose surface (§lib/spec.sh) excludes them
|
|
882
|
+
by a documented decision about which gate *owns* a shim — `check-shim-restatement`,
|
|
883
|
+
which holds copy shape. That ownership is not this rule's: a restatement that is
|
|
884
|
+
**wrong** has diverged from its owner's wording and is therefore not a copy. So
|
|
885
|
+
reusing either surface would under-scan by exactly the instance that motivated the
|
|
886
|
+
class. Fenced blocks are skipped (a fence is grammar being shown, not a claim being
|
|
887
|
+
made), and a per-site `measured-claim-exempt: <reason>` marker on the line or the
|
|
888
|
+
one above suppresses a marker a document is exhibiting rather than asserting.
|
|
889
|
+
|
|
890
|
+
**The valve stays, and its zero live uses are not evidence against it** (ruled at
|
|
891
|
+
the `native-cohort-canon-kit` close, on a filed observation that it shipped unused).
|
|
892
|
+
The use count was taken over *this* tree, which is the wrong corpus: canon-kit is a
|
|
893
|
+
kit, so the valve's readers are adopters whose prose this repo cannot see. It is a
|
|
894
|
+
fail-safe for an author who must exhibit a full-line marker outside a fence, and a
|
|
895
|
+
fail-safe carrying live uses would mean the fence-and-inline escapes had already
|
|
896
|
+
failed. It stands beside the family boundary drawn above rather than against it —
|
|
897
|
+
that boundary rules what the `measured:` marker *is*, not whether a suppression
|
|
898
|
+
valve may accompany it.
|
|
899
|
+
|
|
900
|
+
Producer: the generated pre-commit hook / `run-gates.sh`; consumer: the committing
|
|
901
|
+
operator via the output contract; each marker read at the single scan transition
|
|
902
|
+
(file, line, key, value), no persistent state. `precommit` tier.
|
|
903
|
+
|
|
904
|
+
**Born native, and this is the first gate with no shell original** — operator-ruled
|
|
905
|
+
2026-08-12 with the cost below in view. TRAJECTORY.md §The objectives' sixth
|
|
906
|
+
shrinks the interpreter surface to the unavoidable, so a new shell gate is debt
|
|
907
|
+
created knowingly; landing it as a Rust module plus a `.gate` descriptor avoids
|
|
908
|
+
that, and it needs no unbuilt substrate (its glob corpus is served by the walker
|
|
909
|
+
already in production, which is why the corpus was designed as its own surface
|
|
910
|
+
rather than a union with the manifest set). The port criteria govern *ports*, so a
|
|
911
|
+
gate with one implementation has no second substrate to prove parity against: its
|
|
912
|
+
oracle is its `good/`+`bad/` pair, exactly like any new shell gate's, with
|
|
913
|
+
`check-measured-claim.test.sh` holding the fail-closed arms a pair cannot spell.
|
|
914
|
+
**The accepted cost:** a `.gate`-declared member is omitted from the `gates.list` of
|
|
915
|
+
a consumer whose host the release publishes no artifact for, so on an uncovered
|
|
916
|
+
platform this gate does not run where a shell gate would have. That is the port's
|
|
917
|
+
standing cost, already accepted for the members whose shell forms were deleted, and
|
|
918
|
+
it is why the omit-and-declare path exists — a paid price, not an open risk. What
|
|
919
|
+
stays open is only its reach: this settles *this* gate, and a reader weighing a
|
|
920
|
+
second born-native gate weighs the cost again rather than citing this one as
|
|
921
|
+
blanket precedent.
|
|
648
922
|
|
|
649
923
|
### check-prose-enum
|
|
650
924
|
|
|
@@ -901,8 +1175,10 @@ topology exists). `align-only` tier.
|
|
|
901
1175
|
|
|
902
1176
|
Invariant: every full-line comment on a governed source is one of — a
|
|
903
1177
|
machine directive (a comment a tool parses: `graph:`, `shellcheck`,
|
|
904
|
-
`contract:`, `smoke-unregistered:` — the last read
|
|
905
|
-
`
|
|
1178
|
+
`contract:`, `install:`, `smoke-unregistered:` — the last two read off a kit's
|
|
1179
|
+
vendored source, `install:` by the installer's recipe module and
|
|
1180
|
+
`check-install-disposition`, `smoke-unregistered:` by `run-consumer-smoke.sh`
|
|
1181
|
+
off `smoke/install.sh`, gate-sdk/SPEC.md §The install disposition and
|
|
906
1182
|
§Consumer smoke), a reason directive (a spec pointer, usage synopsis, or
|
|
907
1183
|
positional justification: `spec:`, `usage:`, `exception-list:`,
|
|
908
1184
|
`no-fixture:`, `assertion`, `permanent:`, `TODO(task:`,
|
|
@@ -929,7 +1205,7 @@ directive for a genuinely-local fact below SPEC altitude that neither tier
|
|
|
929
1205
|
owns.
|
|
930
1206
|
|
|
931
1207
|
The governed-source corpus reaches the **implementation of a ported gate**, not
|
|
932
|
-
just shell — `
|
|
1208
|
+
just shell — `comment_surface` with templates kept (§lib/spec.sh), which owns
|
|
933
1209
|
the file set. This is the load-bearing half of the reader
|
|
934
1210
|
partition gate-sdk/SPEC.md §The `# graph:` manifest states — locality-class
|
|
935
1211
|
directives bind to a line of implementation and therefore stay there, so the
|
|
@@ -1007,6 +1283,18 @@ sources ride `CANON_KIT_COMMENT_WHITELIST` (its array tagged
|
|
|
1007
1283
|
`# exception-list:`, each `# until:` a live drain task per
|
|
1008
1284
|
`check-gate-exemption-tasks`), draining kit by kit. `precommit` tier.
|
|
1009
1285
|
|
|
1286
|
+
**Declared by `check-comment-tier.gate`, dispatching to the binary**, with the
|
|
1287
|
+
four members of this family ported as one cohort
|
|
1288
|
+
(gate-sdk/SPEC.md §The first cohort, and the rule that selects the next). Its
|
|
1289
|
+
`couples=` carries `*.gate` and `*.rs` as **bare globs** beside the shell and
|
|
1290
|
+
workflow spellings: the corpus scans both declaration forms and the ported
|
|
1291
|
+
implementation, and a token naming this repo's crate directory would publish one
|
|
1292
|
+
consumer's layout into a kit file (CLAUDE.md §The provenance seam) and be false
|
|
1293
|
+
for every other. The gate reads no regex engine — its blessing roster is a set of
|
|
1294
|
+
literal directive tokens, matched as a substring for a `keyword:` and
|
|
1295
|
+
non-alphanumeric-bounded for a bare word, which is joining rather than
|
|
1296
|
+
interpreting (gate-sdk/SPEC.md §The POSIX ERE matcher).
|
|
1297
|
+
|
|
1010
1298
|
### check-spec-pointer
|
|
1011
1299
|
|
|
1012
1300
|
Invariant, two passes, forward direction only: every `spec:` / `contract:`
|
|
@@ -1064,9 +1352,9 @@ no inbound pointer as uncovered code — needs a "what counts as a requirement"
|
|
|
1064
1352
|
notion that risks false positives against the cheap-and-FP-free bar, so it is
|
|
1065
1353
|
ruled out (a separate task with its own ruling if ever wanted; this gate
|
|
1066
1354
|
reserves no syntax for it). Configuration is shared with `check-comment-tier` —
|
|
1067
|
-
the
|
|
1355
|
+
the whitelist predicate and the same
|
|
1068
1356
|
`CANON_KIT_COMMENT_*` knobs, so no new config knob — but this gate scans
|
|
1069
|
-
|
|
1357
|
+
the **pruned** comment surface, which drops `templates/` sources where
|
|
1070
1358
|
`check-comment-tier` keeps them. The split is by design, not a "SPECs don't
|
|
1071
1359
|
travel" claim: a template's `spec: <your SPEC> §check-<area>` line is a
|
|
1072
1360
|
placeholder the consumer fills in, unresolvable *by design* in the kit's own
|
|
@@ -1089,6 +1377,13 @@ under that doctrine, not re-gated here. Dropping the slot would also orphan
|
|
|
1089
1377
|
the citation coverage the convention carries — the reason a dedicated
|
|
1090
1378
|
script↔doc citation gate stays unbuilt.
|
|
1091
1379
|
|
|
1380
|
+
**Declared by `check-spec-pointer.gate`, dispatching to the binary**, with its
|
|
1381
|
+
`couples=` widened to `*.gate`, `*.rs` and every tracked workflow member on the
|
|
1382
|
+
same terms `check-comment-tier`'s is. The gate that reads a `# spec:` directive
|
|
1383
|
+
is now itself declared by one, so a member of this family reads its own cohort's
|
|
1384
|
+
descriptors — which is why the fixture pair carries a descriptor arm rather than
|
|
1385
|
+
resting on the live tree to exercise it.
|
|
1386
|
+
|
|
1092
1387
|
### check-todo-task-liveness
|
|
1093
1388
|
|
|
1094
1389
|
Invariant: every `TODO(task: <slug>)` marker on a governed source resolves to a
|
|
@@ -1115,10 +1410,10 @@ separate ruling if the need attests.
|
|
|
1115
1410
|
|
|
1116
1411
|
Placement: the marker is a comment directive on the governed comment surface, so
|
|
1117
1412
|
it is canon-kit's, not queue-kit's (which disclaims source-file conventions in
|
|
1118
|
-
its Out of scope). The gate scans
|
|
1413
|
+
its Out of scope). The gate scans the pruned comment surface, dropping `templates/`
|
|
1119
1414
|
as placeholders-by-design like `check-spec-pointer`, and reads the queue through
|
|
1120
1415
|
`CANON_KIT_QUEUE_FILE` with no new knob — the live/done split is the shared
|
|
1121
|
-
`
|
|
1416
|
+
`queue_slugs` adapter (§lib/spec.sh), one queue walk reading a bare-slug
|
|
1122
1417
|
bullet outside the active and deferred sections as the queue's done shape. That
|
|
1123
1418
|
`task: <slug>` binding grammar — a `task:` key naming a slug that must resolve
|
|
1124
1419
|
to a live queue entry — is one grammar both liveness gates share:
|
|
@@ -1126,7 +1421,10 @@ to a live queue entry — is one grammar both liveness gates share:
|
|
|
1126
1421
|
deprecation marker through the same adapter (§check-deprecation-task). Latent at landing: no such marker exists in
|
|
1127
1422
|
the tree yet — the gate ships before the first one, so a future `TODO(task:)`
|
|
1128
1423
|
cannot outlive its task silently. A queue-read failure is fail-closed (exit 2).
|
|
1129
|
-
`precommit` tier.
|
|
1424
|
+
`precommit` tier. **Declared by `check-todo-task-liveness.gate`, dispatching to
|
|
1425
|
+
the binary**, its `couples=` widened to `*.gate` and `*.rs` and its
|
|
1426
|
+
`.workflow/*.txt` spelling corrected to `.workflow/*`, which is the tier the
|
|
1427
|
+
corpus actually takes.
|
|
1130
1428
|
|
|
1131
1429
|
### check-deprecation-task
|
|
1132
1430
|
|
|
@@ -1147,13 +1445,26 @@ A marker line carrying no `task: <slug>` is **unbound**; a bound slug sitting in
|
|
|
1147
1445
|
slug absent from the queue is **unresolved**. All three redden — each finding
|
|
1148
1446
|
names the file, the line, the matched marker, and the offending slug. The
|
|
1149
1447
|
binding grammar and the queue-resolution pass are `check-todo-task-liveness`'s:
|
|
1150
|
-
the same `task: <slug>` key over the same `
|
|
1448
|
+
the same `task: <slug>` key over the same `queue_slugs` adapter
|
|
1151
1449
|
(§check-todo-task-liveness, §lib/spec.sh), one grammar both liveness gates
|
|
1152
|
-
share. The gate scans
|
|
1450
|
+
share. The gate scans the pruned comment surface (templates dropped as
|
|
1153
1451
|
placeholders-by-design) and reads the queue through `CANON_KIT_QUEUE_FILE`, no
|
|
1154
1452
|
new knob beyond the roster. An unreadable queue or source is fail-closed
|
|
1155
1453
|
(exit 2); an empty roster is the clean skip, not an error.
|
|
1156
1454
|
|
|
1455
|
+
**Declared by `check-deprecation-task.gate`, dispatching to the binary**, with
|
|
1456
|
+
the same widened `couples=` its twin carries. The roster is where this member
|
|
1457
|
+
parts from its three siblings: it is a consumer array joined into one alternation
|
|
1458
|
+
and **interpreted**, so the compiled form compiles it through the crate's POSIX
|
|
1459
|
+
ERE matcher (gate-sdk/SPEC.md §The POSIX ERE matcher) and reports the offending
|
|
1460
|
+
knob by name on a pattern the engine refuses. One shell defect went with the
|
|
1461
|
+
port, found by widening the fixture pair rather than by review: the unbound
|
|
1462
|
+
finding named the marker as `''`, because the record carried an empty slug field
|
|
1463
|
+
*between* two populated ones and `IFS=$'\t' read` collapses a tab run. It was
|
|
1464
|
+
repaired in the shell before the port, so the parity run proves the repaired
|
|
1465
|
+
message on both substrates rather than freezing the defect into the compiled
|
|
1466
|
+
form.
|
|
1467
|
+
|
|
1157
1468
|
This repo sets no roster, so the gate clean-skips here — the good/bad fixture
|
|
1158
1469
|
pair and `check-deprecation-task.test.sh` carry the resolved and reddened paths
|
|
1159
1470
|
under a fixture-local roster (the `check-manifest-count` config-path precedent).
|
|
@@ -1253,7 +1564,8 @@ tracked file, or a directory holding tracked files; a `#anchor` — alone
|
|
|
1253
1564
|
(same-file) or trailing a path — must match the GitHub heading slug of a
|
|
1254
1565
|
heading in the target file. External URLs (`scheme://`, `mailto:`) are out of
|
|
1255
1566
|
scope: the network is not a gate dependency. The doc set is the manifest set
|
|
1256
|
-
(
|
|
1567
|
+
(`CLAUDE.md` included; a vendored kit's own `README.md` only where
|
|
1568
|
+
`CANON_KIT_SCAN_KIT_ROOTS` re-includes it) minus the `CANON_KIT_MDREF_EXCLUDE` globs
|
|
1257
1569
|
(default empty, for a consumer's generated docs); the scan runs over tracked
|
|
1258
1570
|
sources only, so an untracked local-only file (`BRIEF.local.md`) is a legitimate
|
|
1259
1571
|
link *source* that is never scanned and, being git-ignored-and-present, a
|
|
@@ -1290,6 +1602,21 @@ documentation of the current tree, so a reference link pins to the default
|
|
|
1290
1602
|
branch (this repo's `master`), and a tag-pinned reference copy would buy
|
|
1291
1603
|
staleness, not stability.
|
|
1292
1604
|
|
|
1605
|
+
**Coverage the good/bad pair cannot hold**, and where it lives:
|
|
1606
|
+
`gate-tests/check-md-refs.test.sh`. The harness resolves exactly one `good/` and
|
|
1607
|
+
one `bad/` case dir per gate, and this gate's pair is spent on the core
|
|
1608
|
+
link-resolution logic, so two behaviors ride a bespoke test instead. The
|
|
1609
|
+
self-repo pass is the first: each case builds a throwaway repo with a controlled
|
|
1610
|
+
`origin`, which a case dir run inside this repo cannot do. The kit-root prune on
|
|
1611
|
+
the manifest set's README half is the second, and the two cases differ only in
|
|
1612
|
+
`CANON_KIT_SCAN_KIT_ROOTS` over one tree — a shape the pair's
|
|
1613
|
+
one-tree-per-verdict form cannot express even with a slot free. That second half
|
|
1614
|
+
is the **only** executable oracle the prune has: this repo sets the knob, so its
|
|
1615
|
+
battery is a no-op on it, and a consumer's knob is `0` either way, so no
|
|
1616
|
+
consumer-smoke run distinguishes a knob-gated prune from an unconditional one.
|
|
1617
|
+
The sibling `gate-tests/check-spec-dod-singleton.test.sh` carries the same
|
|
1618
|
+
prune's canonical-spec half for the same reason.
|
|
1619
|
+
|
|
1293
1620
|
### The reference-link grammar
|
|
1294
1621
|
|
|
1295
1622
|
A docs-site page cites two kinds of in-repo target, and the grammar splits on
|
|
@@ -1458,6 +1785,25 @@ assertions:
|
|
|
1458
1785
|
exactly where a transport shows, but a fenced line is never read as a heading;
|
|
1459
1786
|
the declaration line is skipped, since a claim is not evidence for itself.
|
|
1460
1787
|
|
|
1788
|
+
**The rule is a compiled subcommand, and one piece of it is load-bearing beyond
|
|
1789
|
+
this gate.** The section regex and every transport pattern are consumer EREs
|
|
1790
|
+
compiled through the crate's matcher (gate-sdk/SPEC.md §The POSIX ERE matcher);
|
|
1791
|
+
the `install-primary:` declaration grammar and the `^#{2,6}[[:space:]]+` heading
|
|
1792
|
+
grammar are kit literals. The heading one goes through the matcher anyway, and
|
|
1793
|
+
deliberately: taking a heading's text is a **span** read, so routing it through
|
|
1794
|
+
`find` gives the matcher's leftmost-longest span API a production reader on every
|
|
1795
|
+
invocation of a precommit-tier gate, rather than one alive only in unit tests.
|
|
1796
|
+
|
|
1797
|
+
**One declaration grammar, where two spellings once disagreed.** The declaration
|
|
1798
|
+
is detected and its id extracted by the same grammar, so the terminator is part
|
|
1799
|
+
of it: an id run and the `-->` that closes the comment share the hyphen, and the
|
|
1800
|
+
run gives hyphens back until the terminator matches. A space-less
|
|
1801
|
+
`<!--install-primary:tarball-->` therefore declares `tarball`, and the rule runs.
|
|
1802
|
+
The compiled form is the single spelling; a detecting pattern that required the
|
|
1803
|
+
terminator beside an extracting one that did not made that same line read as a
|
|
1804
|
+
declaration of `tarball--` and fail-closed on a vocabulary it was never checked
|
|
1805
|
+
against.
|
|
1806
|
+
|
|
1461
1807
|
Assertion B is the answer to the leading-versus-mentioning question: naming a
|
|
1462
1808
|
secondary transport is correct prose and must stay green, so the rule is
|
|
1463
1809
|
positional. **The scope in which "leading" is well-defined is the install
|
|
@@ -1540,6 +1886,12 @@ recipe is exactly where a disclosure claim shows up in passing. The report names
|
|
|
1540
1886
|
the offending class, because "wrong disclosure class" alone would leave the
|
|
1541
1887
|
reader grepping.
|
|
1542
1888
|
|
|
1889
|
+
The rule is a **compiled subcommand** — structurally the simplest consumer of the
|
|
1890
|
+
crate's matcher, membership over the whole document rather than position inside a
|
|
1891
|
+
section, so the engine and the vocabulary bridge were both proved by its two
|
|
1892
|
+
cohort siblings before it landed. It shares the declaration grammar
|
|
1893
|
+
§check-install-claim states, including that section's single-spelling rule.
|
|
1894
|
+
|
|
1543
1895
|
**The declared class's own pattern is latent rather than unread.** Assertion B
|
|
1544
1896
|
matches only the classes that are *not* declared, so the declared one's pattern
|
|
1545
1897
|
does no work while it holds the declaration — and starts doing it the moment the
|