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.
Files changed (548) hide show
  1. package/README.md +855 -96
  2. package/lib/common/lock.sh +45 -9
  3. package/lib/common/profile.sh +33 -0
  4. package/lib/common/recipe.sh +50 -34
  5. package/lib/diff.sh +66 -0
  6. package/lib/doctor.sh +67 -42
  7. package/lib/init.sh +62 -46
  8. package/lib/uninstall.sh +214 -0
  9. package/lib/update.sh +34 -0
  10. package/package.json +2 -2
  11. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  12. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  13. package/payload/canon-kit/README.md +1 -0
  14. package/payload/canon-kit/SPEC.md +527 -63
  15. package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
  16. package/payload/canon-kit/checks/check-comment-tier.gate +3 -0
  17. package/payload/canon-kit/checks/check-deprecation-task.gate +3 -0
  18. package/payload/canon-kit/checks/check-docs-cmd.gate +3 -0
  19. package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
  20. package/payload/canon-kit/checks/check-install-claim.gate +3 -0
  21. package/payload/canon-kit/checks/check-knob-citation.gate +3 -0
  22. package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
  23. package/payload/canon-kit/checks/check-manifest-count.gate +3 -0
  24. package/payload/canon-kit/checks/check-manifest-temporal.gate +3 -0
  25. package/payload/canon-kit/checks/check-md-refs.gate +3 -0
  26. package/payload/canon-kit/checks/check-measured-claim.gate +3 -0
  27. package/payload/canon-kit/checks/check-payload-claim.gate +3 -0
  28. package/payload/canon-kit/checks/check-prose-enum.gate +3 -0
  29. package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
  30. package/payload/canon-kit/checks/check-spec-derivable-section.gate +3 -0
  31. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +3 -0
  32. package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
  33. package/payload/canon-kit/checks/check-spec-fence-balance.gate +3 -0
  34. package/payload/canon-kit/checks/check-spec-pointer.gate +3 -0
  35. package/payload/canon-kit/checks/check-surface-duplication.sh +1 -0
  36. package/payload/canon-kit/checks/check-todo-task-liveness.gate +3 -0
  37. package/payload/canon-kit/checks/check-tracking-claim.gate +3 -0
  38. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
  39. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
  40. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
  41. package/payload/canon-kit/gate-tests/check-comment-tier/bad/.workflow/fixture-state.txt +4 -0
  42. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.gate +4 -0
  43. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.rs +5 -0
  44. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
  45. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +5 -0
  46. package/payload/canon-kit/gate-tests/check-comment-tier/bad/templates/bad-tmpl.sh +4 -0
  47. package/payload/canon-kit/gate-tests/check-comment-tier/good/.workflow/fixture-state.txt +3 -0
  48. package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
  49. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +4 -0
  50. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +5 -0
  51. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
  52. package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
  53. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +3 -2
  54. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
  55. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
  56. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
  57. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
  58. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
  59. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
  60. package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
  61. package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
  62. package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
  63. package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
  64. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
  65. package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
  66. package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
  67. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
  68. package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
  69. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
  70. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +4 -0
  71. package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +27 -5
  72. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +61 -9
  73. package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +12 -0
  74. package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +3 -0
  75. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +6 -0
  76. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +23 -0
  77. package/payload/canon-kit/gate-tests/check-measured-claim/good/expect.txt +1 -0
  78. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +6 -0
  79. package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +90 -0
  80. package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +3 -3
  81. package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +21 -7
  82. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
  83. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
  84. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
  85. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
  86. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
  87. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
  88. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/.workflow/fixture-state.txt +2 -0
  89. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.gate +2 -0
  90. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +4 -0
  91. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +3 -0
  92. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/templates/tmpl.sh +5 -0
  93. package/payload/canon-kit/gate-tests/check-spec-pointer/good/.workflow/fixture-state.txt +2 -0
  94. package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
  95. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.gate +2 -0
  96. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +4 -0
  97. package/payload/canon-kit/gate-tests/check-spec-pointer/good/templates/tmpl.sh +5 -0
  98. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/.workflow/fixture-state.txt +3 -0
  99. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.gate +2 -0
  100. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.rs +4 -0
  101. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +3 -0
  102. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/templates/tmpl.sh +5 -0
  103. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/.workflow/fixture-state.txt +3 -0
  104. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -1
  105. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.gate +2 -0
  106. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.rs +4 -0
  107. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/templates/tmpl.sh +5 -0
  108. package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -2
  109. package/payload/canon-kit/lib/spec.sh +91 -62
  110. package/payload/canon-kit/smoke/install.sh +2 -1
  111. package/payload/canon-kit/templates/SPEC-amendment.md +4 -1
  112. package/payload/context-kit/README.md +10 -5
  113. package/payload/context-kit/SPEC.md +364 -62
  114. package/payload/context-kit/bin/always-loaded.sh +5 -21
  115. package/payload/context-kit/bin/env-probe.sh +21 -23
  116. package/payload/context-kit/checks/check-brevity.gate +3 -0
  117. package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
  118. package/payload/context-kit/checks/check-memory-off.gate +3 -0
  119. package/payload/context-kit/checks/check-settings-paths.gate +3 -0
  120. package/payload/context-kit/checks/check-settings-pins.gate +3 -0
  121. package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
  122. package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
  123. package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
  124. package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
  125. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
  126. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +12 -0
  127. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/real-tool.sh +4 -0
  128. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +1 -0
  129. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
  130. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/real-tool.sh +4 -0
  131. package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
  132. package/payload/context-kit/index-tests/expected/toolfloor.txt +9 -0
  133. package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
  134. package/payload/context-kit/lib/context.sh +56 -0
  135. package/payload/context-kit/lib/toolfloor.sh +15 -4
  136. package/payload/context-kit/smoke/agents-md.sh +27 -4
  137. package/payload/context-kit/smoke/install.sh +4 -2
  138. package/payload/context-kit/templates/session-context.sh +5 -5
  139. package/payload/delegation-kit/README.md +3 -3
  140. package/payload/delegation-kit/SPEC.md +400 -22
  141. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
  142. package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
  143. package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
  144. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
  145. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
  146. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
  147. package/payload/delegation-kit/smoke/install.sh +1 -1
  148. package/payload/delegation-kit/templates/agent-execution.md +109 -18
  149. package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
  150. package/payload/doctrine-kit/DOCTRINE.md +86 -12
  151. package/payload/doctrine-kit/README.md +7 -3
  152. package/payload/doctrine-kit/SPEC.md +103 -10
  153. package/payload/doctrine-kit/bin/install-doctrine.sh +83 -13
  154. package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
  155. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +3 -0
  156. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +3 -0
  157. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +84 -5
  158. package/payload/doctrine-kit/smoke/install.sh +106 -3
  159. package/payload/drift-kit/README.md +2 -2
  160. package/payload/drift-kit/SPEC.md +84 -11
  161. package/payload/drift-kit/bin/kfric.sh +21 -2
  162. package/payload/drift-kit/bin/stage-economics.sh +1 -1
  163. package/payload/drift-kit/lib/drift.sh +43 -0
  164. package/payload/drift-kit/smoke/install.sh +49 -14
  165. package/payload/evidence-kit/README.md +3 -1
  166. package/payload/evidence-kit/SPEC.md +160 -19
  167. package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
  168. package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
  169. package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
  170. package/payload/evidence-kit/checks/check-producer-liveness.sh +43 -2
  171. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
  172. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
  173. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
  174. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
  175. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
  176. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
  177. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
  178. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
  179. package/payload/evidence-kit/lib/evidence.sh +2 -0
  180. package/payload/evidence-kit/smoke/install.sh +1 -1
  181. package/payload/gate-sdk/README.md +23 -7
  182. package/payload/gate-sdk/SPEC.md +6402 -291
  183. package/payload/gate-sdk/bin/build-native.sh +38 -0
  184. package/payload/gate-sdk/bin/gen-pre-commit.sh +23 -3
  185. package/payload/gate-sdk/bin/install-hooks.sh +14 -2
  186. package/payload/gate-sdk/bin/port-blockers.sh +473 -0
  187. package/payload/gate-sdk/bin/run-consumer-smoke.sh +8 -1
  188. package/payload/gate-sdk/bin/run-gate-tests.sh +27 -7
  189. package/payload/gate-sdk/bin/run-gates.sh +30 -2
  190. package/payload/gate-sdk/bin/upgrade-smoke.sh +70 -17
  191. package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -0
  192. package/payload/gate-sdk/checks/check-action-pinning.gate +1 -0
  193. package/payload/gate-sdk/checks/check-action-run-shell.sh +2 -0
  194. package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
  195. package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
  196. package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
  197. package/payload/gate-sdk/checks/check-core-files.gate +3 -0
  198. package/payload/gate-sdk/checks/check-crate-arms.sh +62 -0
  199. package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
  200. package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
  201. package/payload/gate-sdk/checks/check-gate-assertions.sh +32 -6
  202. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
  203. package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
  204. package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
  205. package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
  206. package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
  207. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +109 -14
  208. package/payload/gate-sdk/checks/check-graph.gate +3 -0
  209. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
  210. package/payload/gate-sdk/checks/check-identity.gate +3 -0
  211. package/payload/gate-sdk/checks/check-install-disposition.sh +93 -0
  212. package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
  213. package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
  214. package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
  215. package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
  216. package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
  217. package/payload/gate-sdk/checks/check-shellcheck.sh +2 -0
  218. package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
  219. package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
  220. package/payload/gate-sdk/checks/check-template-registry-parity.gate +3 -0
  221. package/payload/gate-sdk/checks/check-test-hermetic.gate +3 -0
  222. package/payload/gate-sdk/checks/check-tree-terms.sh +2 -0
  223. package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
  224. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
  225. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
  226. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +7 -0
  227. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +12 -0
  228. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +5 -0
  229. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +2 -0
  230. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +7 -0
  231. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +11 -0
  232. package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +2 -0
  233. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +2 -0
  234. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
  235. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
  236. package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
  237. package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
  238. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
  239. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
  240. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
  241. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
  242. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
  243. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
  244. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
  245. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
  246. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
  247. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
  248. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
  249. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
  250. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
  251. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
  252. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
  253. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
  254. package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-native-sample.gate +3 -0
  255. package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +3 -0
  256. package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +1 -0
  257. package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/Cargo.toml +4 -0
  258. package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/src/gates/native_sample.rs +7 -0
  259. package/payload/gate-sdk/gate-tests/check-gate-output/good/check-native-sample.gate +3 -0
  260. package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -1
  261. package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +1 -0
  262. package/payload/gate-sdk/gate-tests/check-gate-output/good/native/Cargo.toml +4 -0
  263. package/payload/gate-sdk/gate-tests/check-gate-output/good/native/src/gates/native_sample.rs +11 -0
  264. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +110 -0
  265. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +7 -0
  266. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
  267. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
  268. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
  269. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
  270. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
  271. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
  272. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +4 -0
  273. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
  274. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
  275. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +4 -0
  276. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
  277. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +110 -4
  278. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
  279. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
  280. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
  281. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
  282. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
  283. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
  284. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
  285. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
  286. package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
  287. package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
  288. package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
  289. package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
  290. package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
  291. package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
  292. package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
  293. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
  294. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
  295. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
  296. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
  297. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
  298. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
  299. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
  300. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
  301. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
  302. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
  303. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
  304. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
  305. package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
  306. package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
  307. package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
  308. package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -0
  309. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
  310. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
  311. package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
  312. package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
  313. package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
  314. package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +6 -5
  315. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
  316. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
  317. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
  318. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
  319. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
  320. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
  321. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
  322. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
  323. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
  324. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
  325. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
  326. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
  327. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
  328. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
  329. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
  330. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
  331. package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
  332. package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
  333. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
  334. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +204 -1
  335. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
  336. package/payload/gate-sdk/lib/consumer-smoke.sh +24 -12
  337. package/payload/gate-sdk/lib/gate.sh +353 -22
  338. package/payload/gate-sdk/lib/inject.sh +25 -0
  339. package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
  340. package/payload/gate-sdk/smoke/install.sh +47 -1
  341. package/payload/guard-kit/README.md +14 -11
  342. package/payload/guard-kit/SPEC.md +477 -82
  343. package/payload/guard-kit/bin/run-guard-tests.sh +7 -1
  344. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
  345. package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
  346. package/payload/guard-kit/guard-tests/cases.tsv +84 -14
  347. package/payload/guard-kit/lib/guard.sh +440 -54
  348. package/payload/guard-kit/templates/close-triage.md +5 -5
  349. package/payload/guard-kit/templates/settings-hooks.json +7 -1
  350. package/payload/lifecycle-kit/README.md +14 -3
  351. package/payload/lifecycle-kit/SPEC.md +929 -93
  352. package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
  353. package/payload/lifecycle-kit/bin/enter-stage.sh +193 -38
  354. package/payload/lifecycle-kit/bin/file-gap.sh +29 -12
  355. package/payload/lifecycle-kit/bin/file-survey.sh +21 -2
  356. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
  357. package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +3 -0
  358. package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +3 -0
  359. package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +3 -0
  360. package/payload/lifecycle-kit/checks/check-merge-attrs.gate +3 -0
  361. package/payload/lifecycle-kit/checks/check-scratch-citation.gate +3 -0
  362. package/payload/lifecycle-kit/checks/check-shim-restatement.gate +3 -0
  363. package/payload/lifecycle-kit/checks/check-skill-binding.gate +3 -0
  364. package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
  365. package/payload/lifecycle-kit/checks/check-stage-evidence.gate +3 -0
  366. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +3 -0
  367. package/payload/lifecycle-kit/checks/check-survey-record.gate +3 -0
  368. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
  369. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +2 -3
  370. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/args +2 -0
  371. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +3 -0
  372. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +5 -0
  373. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/args +2 -0
  374. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/expect.txt +1 -0
  375. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/gap-inbox.md +4 -0
  376. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +2 -3
  377. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +2 -3
  378. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -3
  379. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/expect.txt +1 -0
  380. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +4 -0
  381. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/surfaces/queue.md +13 -0
  382. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/expect.txt +1 -0
  383. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +4 -0
  384. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +31 -0
  385. package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +2 -3
  386. package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +2 -3
  387. package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
  388. package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
  389. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +24 -25
  390. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
  391. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
  392. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +129 -15
  393. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +2 -3
  394. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +54 -26
  395. package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
  396. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
  397. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
  398. package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
  399. package/payload/lifecycle-kit/lib/stages.sh +9 -0
  400. package/payload/lifecycle-kit/smoke/install.sh +96 -19
  401. package/payload/lifecycle-kit/templates/lead.md +60 -0
  402. package/payload/lifecycle-kit/templates/stages/align.md +20 -2
  403. package/payload/lifecycle-kit/templates/stages/build.md +3 -3
  404. package/payload/lifecycle-kit/templates/stages/close.md +48 -15
  405. package/payload/lifecycle-kit/templates/stages/scope.md +29 -5
  406. package/payload/lifecycle-kit/templates/stages/spec.md +6 -2
  407. package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
  408. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
  409. package/payload/queue-kit/README.md +12 -10
  410. package/payload/queue-kit/SPEC.md +411 -74
  411. package/payload/queue-kit/bin/queue-counts.sh +35 -0
  412. package/payload/queue-kit/checks/check-queue-entry-budget.gate +3 -0
  413. package/payload/queue-kit/checks/check-queue-hygiene.gate +3 -0
  414. package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
  415. package/payload/queue-kit/checks/check-queue-sections.gate +3 -0
  416. package/payload/queue-kit/checks/check-queue-slug-liveness.gate +3 -0
  417. package/payload/queue-kit/checks/check-queue-wrap.gate +3 -0
  418. package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
  419. package/payload/queue-kit/checks/check-tag-lead-line.gate +3 -0
  420. package/payload/queue-kit/checks/check-task-conservation.gate +4 -0
  421. package/payload/queue-kit/checks/check-task-names.gate +3 -0
  422. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
  423. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
  424. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
  425. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
  426. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
  427. package/payload/queue-kit/gate-tests/queue-counts.test.sh +116 -0
  428. package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
  429. package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
  430. package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
  431. package/payload/queue-kit/lib/queue.sh +4 -68
  432. package/payload/queue-kit/smoke/install.sh +1 -1
  433. package/payload/site-kit/SPEC.md +52 -2
  434. package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
  435. package/payload/site-kit/checks/check-docs-render-fidelity.sh +2 -0
  436. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
  437. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
  438. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
  439. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
  440. package/payload/site-kit/smoke/install.sh +1 -1
  441. package/profiles.list +36 -8
  442. package/payload/canon-kit/checks/check-amendment-queue.sh +0 -116
  443. package/payload/canon-kit/checks/check-comment-tier.sh +0 -216
  444. package/payload/canon-kit/checks/check-deprecation-task.sh +0 -90
  445. package/payload/canon-kit/checks/check-docs-cmd.sh +0 -153
  446. package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -78
  447. package/payload/canon-kit/checks/check-install-claim.sh +0 -146
  448. package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
  449. package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -239
  450. package/payload/canon-kit/checks/check-manifest-count.sh +0 -46
  451. package/payload/canon-kit/checks/check-manifest-temporal.sh +0 -83
  452. package/payload/canon-kit/checks/check-md-refs.sh +0 -128
  453. package/payload/canon-kit/checks/check-payload-claim.sh +0 -133
  454. package/payload/canon-kit/checks/check-prose-enum.sh +0 -115
  455. package/payload/canon-kit/checks/check-prose-tells.sh +0 -207
  456. package/payload/canon-kit/checks/check-spec-derivable-section.sh +0 -69
  457. package/payload/canon-kit/checks/check-spec-dod-singleton.sh +0 -45
  458. package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -133
  459. package/payload/canon-kit/checks/check-spec-fence-balance.sh +0 -42
  460. package/payload/canon-kit/checks/check-spec-pointer.sh +0 -187
  461. package/payload/canon-kit/checks/check-todo-task-liveness.sh +0 -80
  462. package/payload/canon-kit/checks/check-tracking-claim.sh +0 -136
  463. package/payload/context-kit/bin/footprint.sh +0 -144
  464. package/payload/context-kit/checks/check-brevity.sh +0 -123
  465. package/payload/context-kit/checks/check-footprint-fresh.sh +0 -38
  466. package/payload/context-kit/checks/check-memory-off.sh +0 -112
  467. package/payload/context-kit/checks/check-settings-pins.sh +0 -110
  468. package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -61
  469. package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -139
  470. package/payload/delegation-kit/checks/check-rule-citation.sh +0 -76
  471. package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -216
  472. package/payload/drift-kit/bin/trajectory.sh +0 -242
  473. package/payload/evidence-kit/checks/check-battery-roster.sh +0 -86
  474. package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -103
  475. package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -104
  476. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
  477. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
  478. package/payload/gate-sdk/bin/enforcement-map.sh +0 -272
  479. package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
  480. package/payload/gate-sdk/checks/check-commit-msg.sh +0 -50
  481. package/payload/gate-sdk/checks/check-commit-subject.sh +0 -43
  482. package/payload/gate-sdk/checks/check-core-files.sh +0 -75
  483. package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -37
  484. package/payload/gate-sdk/checks/check-exec-bit.sh +0 -95
  485. package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -106
  486. package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -105
  487. package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -84
  488. package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -92
  489. package/payload/gate-sdk/checks/check-gate-output.sh +0 -73
  490. package/payload/gate-sdk/checks/check-graph.sh +0 -631
  491. package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -45
  492. package/payload/gate-sdk/checks/check-identity.sh +0 -134
  493. package/payload/gate-sdk/checks/check-kit-enum.sh +0 -94
  494. package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
  495. package/payload/gate-sdk/checks/check-readme-roster.sh +0 -107
  496. package/payload/gate-sdk/checks/check-reads-couples.sh +0 -199
  497. package/payload/gate-sdk/checks/check-root-tiering.sh +0 -66
  498. package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
  499. package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -126
  500. package/payload/gate-sdk/checks/check-template-registry-parity.sh +0 -81
  501. package/payload/gate-sdk/checks/check-test-hermetic.sh +0 -119
  502. package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -84
  503. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
  504. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
  505. package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
  506. package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
  507. package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
  508. package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -63
  509. package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +0 -98
  510. package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +0 -54
  511. package/payload/lifecycle-kit/checks/check-merge-attrs.sh +0 -69
  512. package/payload/lifecycle-kit/checks/check-shim-restatement.sh +0 -97
  513. package/payload/lifecycle-kit/checks/check-skill-binding.sh +0 -59
  514. package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -197
  515. package/payload/lifecycle-kit/checks/check-stage-evidence.sh +0 -81
  516. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +0 -47
  517. package/payload/lifecycle-kit/checks/check-survey-record.sh +0 -102
  518. package/payload/queue-kit/bin/queue-index.sh +0 -182
  519. package/payload/queue-kit/bin/roadmap.sh +0 -76
  520. package/payload/queue-kit/checks/check-queue-entry-budget.sh +0 -106
  521. package/payload/queue-kit/checks/check-queue-hygiene.sh +0 -81
  522. package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -63
  523. package/payload/queue-kit/checks/check-queue-sections.sh +0 -44
  524. package/payload/queue-kit/checks/check-queue-slug-liveness.sh +0 -63
  525. package/payload/queue-kit/checks/check-queue-wrap.sh +0 -56
  526. package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -110
  527. package/payload/queue-kit/checks/check-tag-lead-line.sh +0 -70
  528. package/payload/queue-kit/checks/check-task-conservation.sh +0 -50
  529. package/payload/queue-kit/checks/check-task-names.sh +0 -128
  530. package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -80
  531. /package/payload/context-kit/gate-tests/{check-memory-off → check-settings-paths}/bad/args +0 -0
  532. /package/payload/context-kit/gate-tests/{check-memory-off → check-settings-paths}/good/args +0 -0
  533. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
  534. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
  535. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
  536. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  537. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  538. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
  539. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
  540. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  541. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  542. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
  543. /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
  544. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
  545. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
  546. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
  547. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
  548. /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 four points:
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. A **user-facing** claim takes the same treatment when a reader
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 check-skeleton copy in `scripts/` — the
218
- dangling-reference hazard is a kit author's, so it is not templated into
219
- gate-sdk) holds the brand-token side honest tree-wide: every slash- or
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). It valves the surfaces that legitimately name design-ahead or
224
- frozen brands — `gate-tests/` fixture bodies, `docs/posts/*`, the generated
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` is
253
- a dependency's documentation, not governed content, so the `exactly-one`
254
- default holds out of the box on a tree that merely vendored the kits beside
255
- gate-sdk. Set `1` when the kit SPECs are the consumer's own first-party
256
- content (this repo does, and keeps `at-most-one` for them).
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 either
354
- array with its own vocabulary through the matching `_EXTRA` knob —
355
- `CANON_KIT_PROSE_TELL_PHRASES_EXTRA` and
356
- `CANON_KIT_PROSE_TELL_ABBR_ALLOW_EXTRA`, both default empty — which the lib
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-prose-enum.test.sh`, `check-spec-dod-singleton.test.sh` and
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 (each
401
- caller builds its own live/done map and fail-closes on the walk status). That
402
- walk's bullet lead-line predicate is re-implemented here rather than sourced,
403
- making canon-kit one of the format's independent holders under the
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); the holder census and the residue it
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:** `spec_comment_surface` and
408
- `spec_comment_surface_with_templates` — the one corpus primitive
409
- `check-spec-pointer`, `check-comment-tier`, `check-todo-task-liveness` and
410
- `check-deprecation-task` all call, the pair differing only in whether
411
- `templates/` sources are pruned. Its file set spans **both gate declaration
412
- spellings and the ported implementation**: `*.sh`, the `*.gate` descriptor,
413
- and `*.rs`. Stated once here rather than at each of the four callers, since a
414
- gate whose rule became a compiled subcommand must not have its `# spec:`
415
- pointer, its comment tier, or a `TODO(task:)` marker silently drop out of
416
- coverage — the widening is made at the shared primitive so no caller can
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). The
429
- canonical-spec / amendment finders skip a
430
- `templates/` skeleton (a copyable stub, not governed content — the same
431
- rationale as the gate-tests prune) and, unless `CANON_KIT_SCAN_KIT_ROOTS=1`,
432
- any vendored kit root under the scan root (a dependency's docs; an ancestor
433
- kit root — the case when a kit's own fixture dir is the scan root — never
434
- prunes).
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), and
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
- - **The comment-surface adapters:** the comment gates read *different* surfaces.
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`, matched case-insensitively;
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. `precommit`
647
- tier.
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 the awk status. The good/bad
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 by
905
- `run-consumer-smoke.sh` off a kit's vendored `smoke/install.sh`, gate-sdk/SPEC.md
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 — `spec_comment_surface_with_templates` (§lib/spec.sh), which owns
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 `spec_comment_whitelisted` adapter in `lib/spec.sh` and the same
1435
+ the whitelist predicate and the same
1068
1436
  `CANON_KIT_COMMENT_*` knobs, so no new config knob — but this gate scans
1069
- `spec_comment_surface`, which prunes `templates/` shell sources where
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 `spec_comment_surface`, pruning `templates/`
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
- `spec_queue_slugs` adapter (§lib/spec.sh), one queue walk reading a bare-slug
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 `spec_queue_slugs` adapter
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 `spec_comment_surface` (templates pruned as
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
- (kit READMEs and CLAUDE.md included) minus the `CANON_KIT_MDREF_EXCLUDE` globs
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