checkwright 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/README.md +687 -90
  2. package/lib/common/lock.sh +38 -9
  3. package/lib/common/profile.sh +33 -0
  4. package/lib/common/recipe.sh +49 -33
  5. package/lib/diff.sh +64 -0
  6. package/lib/doctor.sh +67 -42
  7. package/lib/init.sh +23 -31
  8. package/lib/uninstall.sh +212 -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 +410 -58
  15. package/payload/canon-kit/checks/check-amendment-queue.sh +1 -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.sh +1 -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.sh +1 -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.sh +1 -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.sh +1 -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-comment-tier/bad/.workflow/fixture-state.txt +4 -0
  39. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.gate +4 -0
  40. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.rs +5 -0
  41. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +4 -0
  42. package/payload/canon-kit/gate-tests/check-comment-tier/bad/templates/bad-tmpl.sh +4 -0
  43. package/payload/canon-kit/gate-tests/check-comment-tier/good/.workflow/fixture-state.txt +3 -0
  44. package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
  45. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +4 -0
  46. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +5 -0
  47. package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
  48. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +3 -2
  49. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
  50. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
  51. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
  52. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
  53. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
  54. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
  55. package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
  56. package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
  57. package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
  58. package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
  59. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
  60. package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
  61. package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
  62. package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
  63. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +4 -0
  64. package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +27 -5
  65. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +61 -9
  66. package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +12 -0
  67. package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +3 -0
  68. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +6 -0
  69. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +23 -0
  70. package/payload/canon-kit/gate-tests/check-measured-claim/good/expect.txt +1 -0
  71. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +6 -0
  72. package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +90 -0
  73. package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +3 -3
  74. package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +21 -7
  75. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/.workflow/fixture-state.txt +2 -0
  76. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.gate +2 -0
  77. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +4 -0
  78. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +3 -0
  79. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/templates/tmpl.sh +5 -0
  80. package/payload/canon-kit/gate-tests/check-spec-pointer/good/.workflow/fixture-state.txt +2 -0
  81. package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
  82. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.gate +2 -0
  83. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +4 -0
  84. package/payload/canon-kit/gate-tests/check-spec-pointer/good/templates/tmpl.sh +5 -0
  85. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/.workflow/fixture-state.txt +3 -0
  86. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.gate +2 -0
  87. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.rs +4 -0
  88. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +3 -0
  89. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/templates/tmpl.sh +5 -0
  90. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/.workflow/fixture-state.txt +3 -0
  91. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -1
  92. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.gate +2 -0
  93. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.rs +4 -0
  94. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/templates/tmpl.sh +5 -0
  95. package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -2
  96. package/payload/canon-kit/lib/spec.sh +91 -62
  97. package/payload/canon-kit/smoke/install.sh +1 -0
  98. package/payload/canon-kit/templates/SPEC-amendment.md +4 -1
  99. package/payload/context-kit/README.md +4 -1
  100. package/payload/context-kit/SPEC.md +143 -10
  101. package/payload/context-kit/bin/env-probe.sh +19 -6
  102. package/payload/context-kit/checks/check-brevity.sh +1 -0
  103. package/payload/context-kit/checks/check-footprint-fresh.sh +1 -0
  104. package/payload/context-kit/checks/check-memory-off.sh +1 -0
  105. package/payload/context-kit/checks/check-settings-paths.sh +94 -0
  106. package/payload/context-kit/checks/check-settings-pins.sh +1 -0
  107. package/payload/context-kit/gate-tests/check-settings-paths/bad/args +1 -0
  108. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
  109. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +12 -0
  110. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/real-tool.sh +4 -0
  111. package/payload/context-kit/gate-tests/check-settings-paths/good/args +1 -0
  112. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +1 -0
  113. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
  114. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/real-tool.sh +4 -0
  115. package/payload/context-kit/index-tests/expected/toolfloor.txt +9 -0
  116. package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
  117. package/payload/context-kit/lib/toolfloor.sh +15 -4
  118. package/payload/context-kit/smoke/agents-md.sh +12 -1
  119. package/payload/context-kit/smoke/install.sh +1 -0
  120. package/payload/delegation-kit/README.md +3 -3
  121. package/payload/delegation-kit/SPEC.md +116 -13
  122. package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +1 -0
  123. package/payload/delegation-kit/checks/check-gate-tamper.sh +1 -0
  124. package/payload/delegation-kit/checks/check-rule-citation.sh +1 -0
  125. package/payload/delegation-kit/templates/agent-execution.md +38 -14
  126. package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
  127. package/payload/doctrine-kit/DOCTRINE.md +86 -12
  128. package/payload/doctrine-kit/README.md +7 -3
  129. package/payload/doctrine-kit/SPEC.md +102 -9
  130. package/payload/doctrine-kit/bin/install-doctrine.sh +83 -13
  131. package/payload/doctrine-kit/checks/check-doctrine-registration.sh +41 -11
  132. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +3 -0
  133. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +3 -0
  134. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +82 -2
  135. package/payload/doctrine-kit/smoke/install.sh +90 -0
  136. package/payload/drift-kit/SPEC.md +13 -4
  137. package/payload/drift-kit/bin/kfric.sh +21 -2
  138. package/payload/drift-kit/smoke/install.sh +28 -0
  139. package/payload/evidence-kit/checks/check-battery-roster.sh +1 -0
  140. package/payload/evidence-kit/checks/check-evidence-baseline.sh +1 -0
  141. package/payload/evidence-kit/checks/check-evidence-manifest.sh +1 -0
  142. package/payload/evidence-kit/checks/check-producer-liveness.sh +1 -0
  143. package/payload/gate-sdk/README.md +13 -0
  144. package/payload/gate-sdk/SPEC.md +2611 -151
  145. package/payload/gate-sdk/bin/build-native.sh +38 -0
  146. package/payload/gate-sdk/bin/enforcement-map.sh +2 -1
  147. package/payload/gate-sdk/bin/gen-pre-commit.sh +23 -3
  148. package/payload/gate-sdk/bin/port-blockers.sh +445 -0
  149. package/payload/gate-sdk/bin/run-consumer-smoke.sh +8 -1
  150. package/payload/gate-sdk/bin/run-gate-tests.sh +26 -5
  151. package/payload/gate-sdk/bin/run-gates.sh +8 -2
  152. package/payload/gate-sdk/bin/upgrade-smoke.sh +52 -4
  153. package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -0
  154. package/payload/gate-sdk/checks/check-action-pinning.gate +1 -0
  155. package/payload/gate-sdk/checks/check-action-run-shell.sh +1 -0
  156. package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
  157. package/payload/gate-sdk/checks/check-commit-msg.sh +1 -0
  158. package/payload/gate-sdk/checks/check-commit-subject.sh +1 -0
  159. package/payload/gate-sdk/checks/check-core-files.sh +1 -0
  160. package/payload/gate-sdk/checks/check-crate-arms.sh +61 -0
  161. package/payload/gate-sdk/checks/check-enforcement-fresh.sh +1 -0
  162. package/payload/gate-sdk/checks/check-exec-bit.sh +1 -0
  163. package/payload/gate-sdk/checks/check-gate-assertions.sh +31 -6
  164. package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +2 -1
  165. package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +1 -0
  166. package/payload/gate-sdk/checks/check-gate-fail-closed.sh +1 -0
  167. package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +1 -0
  168. package/payload/gate-sdk/checks/check-gate-output.sh +33 -3
  169. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +36 -5
  170. package/payload/gate-sdk/checks/check-graph.sh +1 -0
  171. package/payload/gate-sdk/checks/check-hook-exec-bit.sh +1 -0
  172. package/payload/gate-sdk/checks/check-identity.sh +1 -0
  173. package/payload/gate-sdk/checks/check-install-disposition.sh +92 -0
  174. package/payload/gate-sdk/checks/check-kit-enum.sh +1 -0
  175. package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
  176. package/payload/gate-sdk/checks/check-readme-roster.sh +1 -0
  177. package/payload/gate-sdk/checks/check-reads-couples.sh +3 -2
  178. package/payload/gate-sdk/checks/check-root-tiering.sh +1 -0
  179. package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
  180. package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
  181. package/payload/gate-sdk/checks/check-template-copy-parity.sh +1 -0
  182. package/payload/gate-sdk/checks/check-template-registry-parity.gate +3 -0
  183. package/payload/gate-sdk/checks/check-test-hermetic.gate +3 -0
  184. package/payload/gate-sdk/checks/check-tree-terms.sh +1 -0
  185. package/payload/gate-sdk/checks/check-workflow-tiering.sh +2 -1
  186. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +7 -0
  187. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +12 -0
  188. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +5 -0
  189. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +2 -0
  190. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +7 -0
  191. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +11 -0
  192. package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +2 -0
  193. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +2 -0
  194. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
  195. package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-native-sample.gate +3 -0
  196. package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +3 -0
  197. package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +1 -0
  198. package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/Cargo.toml +4 -0
  199. package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/src/gates/native_sample.rs +7 -0
  200. package/payload/gate-sdk/gate-tests/check-gate-output/good/check-native-sample.gate +3 -0
  201. package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -1
  202. package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +1 -0
  203. package/payload/gate-sdk/gate-tests/check-gate-output/good/native/Cargo.toml +4 -0
  204. package/payload/gate-sdk/gate-tests/check-gate-output/good/native/src/gates/native_sample.rs +11 -0
  205. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +111 -0
  206. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +1 -1
  207. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +65 -4
  208. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
  209. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
  210. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
  211. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
  212. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
  213. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
  214. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
  215. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
  216. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
  217. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
  218. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
  219. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
  220. package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
  221. package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
  222. package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
  223. package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -0
  224. package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +6 -5
  225. package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
  226. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +111 -1
  227. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
  228. package/payload/gate-sdk/lib/consumer-smoke.sh +24 -12
  229. package/payload/gate-sdk/lib/gate.sh +135 -11
  230. package/payload/gate-sdk/lib/inject.sh +25 -0
  231. package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
  232. package/payload/gate-sdk/smoke/install.sh +42 -0
  233. package/payload/guard-kit/README.md +14 -11
  234. package/payload/guard-kit/SPEC.md +278 -62
  235. package/payload/guard-kit/bin/run-guard-tests.sh +1 -0
  236. package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
  237. package/payload/guard-kit/guard-tests/cases.tsv +49 -7
  238. package/payload/guard-kit/lib/guard.sh +276 -54
  239. package/payload/guard-kit/templates/close-triage.md +5 -5
  240. package/payload/guard-kit/templates/settings-hooks.json +7 -1
  241. package/payload/lifecycle-kit/README.md +11 -1
  242. package/payload/lifecycle-kit/SPEC.md +441 -37
  243. package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
  244. package/payload/lifecycle-kit/bin/enter-stage.sh +126 -10
  245. package/payload/lifecycle-kit/bin/file-gap.sh +27 -10
  246. package/payload/lifecycle-kit/bin/file-survey.sh +21 -2
  247. package/payload/lifecycle-kit/checks/check-close-surfaces.sh +1 -0
  248. package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +3 -0
  249. package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +3 -0
  250. package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +3 -0
  251. package/payload/lifecycle-kit/checks/check-merge-attrs.gate +3 -0
  252. package/payload/lifecycle-kit/checks/check-scratch-citation.gate +3 -0
  253. package/payload/lifecycle-kit/checks/check-shim-restatement.gate +3 -0
  254. package/payload/lifecycle-kit/checks/check-skill-binding.gate +3 -0
  255. package/payload/lifecycle-kit/checks/check-stage-entry.sh +1 -0
  256. package/payload/lifecycle-kit/checks/check-stage-evidence.gate +3 -0
  257. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +3 -0
  258. package/payload/lifecycle-kit/checks/check-survey-record.gate +3 -0
  259. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -2
  260. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/args +2 -0
  261. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +3 -0
  262. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +5 -0
  263. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/args +2 -0
  264. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/expect.txt +1 -0
  265. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/gap-inbox.md +4 -0
  266. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +2 -3
  267. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +2 -3
  268. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -3
  269. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/expect.txt +1 -0
  270. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +4 -0
  271. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/surfaces/queue.md +13 -0
  272. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/expect.txt +1 -0
  273. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +4 -0
  274. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +31 -0
  275. package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +2 -3
  276. package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +2 -3
  277. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +2 -3
  278. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +9 -5
  279. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +2 -3
  280. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +54 -26
  281. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
  282. package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
  283. package/payload/lifecycle-kit/lib/stages.sh +4 -0
  284. package/payload/lifecycle-kit/smoke/install.sh +67 -4
  285. package/payload/lifecycle-kit/templates/lead.md +36 -0
  286. package/payload/lifecycle-kit/templates/stages/close.md +30 -11
  287. package/payload/lifecycle-kit/templates/stages/scope.md +9 -4
  288. package/payload/lifecycle-kit/templates/stages/spec.md +5 -1
  289. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
  290. package/payload/queue-kit/README.md +3 -1
  291. package/payload/queue-kit/SPEC.md +123 -3
  292. package/payload/queue-kit/bin/queue-counts.sh +35 -0
  293. package/payload/queue-kit/checks/check-queue-entry-budget.gate +3 -0
  294. package/payload/queue-kit/checks/check-queue-hygiene.gate +3 -0
  295. package/payload/queue-kit/checks/check-queue-prose-precondition.sh +1 -0
  296. package/payload/queue-kit/checks/check-queue-sections.gate +3 -0
  297. package/payload/queue-kit/checks/check-queue-slug-liveness.gate +3 -0
  298. package/payload/queue-kit/checks/check-queue-wrap.gate +3 -0
  299. package/payload/queue-kit/checks/check-roadmap-fresh.sh +1 -0
  300. package/payload/queue-kit/checks/check-tag-lead-line.gate +3 -0
  301. package/payload/queue-kit/checks/check-task-conservation.gate +4 -0
  302. package/payload/queue-kit/checks/check-task-names.gate +3 -0
  303. package/payload/queue-kit/gate-tests/queue-counts.test.sh +116 -0
  304. package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
  305. package/payload/queue-kit/lib/queue.sh +4 -19
  306. package/payload/site-kit/SPEC.md +23 -0
  307. package/payload/site-kit/checks/check-docs-cname-parity.sh +1 -0
  308. package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
  309. package/profiles.list +36 -8
  310. package/payload/canon-kit/checks/check-comment-tier.sh +0 -216
  311. package/payload/canon-kit/checks/check-deprecation-task.sh +0 -90
  312. package/payload/canon-kit/checks/check-docs-cmd.sh +0 -153
  313. package/payload/canon-kit/checks/check-install-claim.sh +0 -146
  314. package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
  315. package/payload/canon-kit/checks/check-manifest-count.sh +0 -46
  316. package/payload/canon-kit/checks/check-manifest-temporal.sh +0 -83
  317. package/payload/canon-kit/checks/check-md-refs.sh +0 -128
  318. package/payload/canon-kit/checks/check-payload-claim.sh +0 -133
  319. package/payload/canon-kit/checks/check-prose-enum.sh +0 -115
  320. package/payload/canon-kit/checks/check-spec-derivable-section.sh +0 -69
  321. package/payload/canon-kit/checks/check-spec-dod-singleton.sh +0 -45
  322. package/payload/canon-kit/checks/check-spec-fence-balance.sh +0 -42
  323. package/payload/canon-kit/checks/check-spec-pointer.sh +0 -187
  324. package/payload/canon-kit/checks/check-todo-task-liveness.sh +0 -80
  325. package/payload/canon-kit/checks/check-tracking-claim.sh +0 -136
  326. package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
  327. package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
  328. package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
  329. package/payload/gate-sdk/checks/check-template-registry-parity.sh +0 -81
  330. package/payload/gate-sdk/checks/check-test-hermetic.sh +0 -119
  331. package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +0 -98
  332. package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +0 -54
  333. package/payload/lifecycle-kit/checks/check-merge-attrs.sh +0 -69
  334. package/payload/lifecycle-kit/checks/check-shim-restatement.sh +0 -97
  335. package/payload/lifecycle-kit/checks/check-skill-binding.sh +0 -59
  336. package/payload/lifecycle-kit/checks/check-stage-evidence.sh +0 -81
  337. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +0 -47
  338. package/payload/lifecycle-kit/checks/check-survey-record.sh +0 -102
  339. package/payload/queue-kit/checks/check-queue-entry-budget.sh +0 -106
  340. package/payload/queue-kit/checks/check-queue-hygiene.sh +0 -81
  341. package/payload/queue-kit/checks/check-queue-sections.sh +0 -44
  342. package/payload/queue-kit/checks/check-queue-slug-liveness.sh +0 -63
  343. package/payload/queue-kit/checks/check-queue-wrap.sh +0 -56
  344. package/payload/queue-kit/checks/check-tag-lead-line.sh +0 -70
  345. package/payload/queue-kit/checks/check-task-conservation.sh +0 -50
  346. package/payload/queue-kit/checks/check-task-names.sh +0 -128
@@ -55,7 +55,12 @@ Environment overrides, all optional: `GATE_SDK_GATES_DIR` (default `scripts`),
55
55
  `GATE_SDK_TESTS_DIR` (default `<gates-dir>/gate-tests`), `GATE_SDK_HOOKS_DIR`
56
56
  (default `<gates-dir>/git-hooks`), `GATE_SDK_WORKFLOW_DIR` (default
57
57
  `.workflow`; the directory's two-tier membership rule, header form, and
58
- extension rule are §The workflow directory), `GATE_SDK_GRAPH_ARTIFACT` (default
58
+ extension rule are §The workflow directory — resolved in `lib/gate.sh` rather
59
+ than inline at its readers, for the same reason the two `check-kit-registration`
60
+ document knobs below are: the governed-comment corpus takes this directory's
61
+ tracked tier, and a knob the owning kit's library does not define is the config
62
+ bridge's third refusal, so a compiled member declaring it would fail-close on
63
+ every invocation), `GATE_SDK_GRAPH_ARTIFACT` (default
59
64
  `<gates-dir>/CHECK-GRAPH.html`; the emitted coupling-graph artifact's path,
60
65
  read by `check-graph` assertion E — set it to republish the artifact elsewhere,
61
66
  e.g. a served docs page), `GATE_SDK_TMP_DIR` (default `.tmp`), `GATE_SDK_VERBOSE`
@@ -73,14 +78,23 @@ kit-seeded mermaid import — a consumer whose theme chrome links absolute URLs
73
78
  lists their prefixes here — see §check-graph), `GATE_SDK_CORE_FILES_FILE` (default
74
79
  `<gates-dir>/core-files.list`), `GATE_SDK_IDENTITY_FILE` (default
75
80
  `<gates-dir>/identity.conf`), `GATE_SDK_PRUNE_DIRS` (default
76
- `target .git node_modules .tmp gate-tests`), `GATE_SDK_GRAPH_VOCAB` (default
81
+ `target .git node_modules .tmp gate-tests worktrees`; it **replaces** the default
82
+ set rather than extending it — see §lib/gate.sh for the members' rationale),
83
+ `GATE_SDK_PRUNE_EXTRA_DIRS` (default empty; space-separated directory basenames
84
+ appended to the resolved prune set, whether that set came from the default or
85
+ from `GATE_SDK_PRUNE_DIRS` — the additive counterpart that lets a consumer add a
86
+ member without maintaining a copy of the kit default that drifts; *removing* a
87
+ default member is still the replacing knob's job, because an append cannot
88
+ subtract — see §lib/gate.sh), `GATE_SDK_GRAPH_VOCAB` (default
77
89
  `<gates-dir>/graph-vocab.sh`), `GATE_SDK_KIT_DIRS` (default: gate-sdk + its
78
90
  siblings holding a `checks/` or a `smoke/`), `GATE_SDK_ROOT` (default: the
79
91
  vendored `gate-sdk/` resolved beside the sourcing script — the root a
80
92
  consumer-copied gate sources `lib/gate.sh` from and the anchor kit roots
81
93
  relativize against), `GATE_SDK_ROOT_ALLOWLIST` (default
82
94
  `<gates-dir>/root-allowlist.list`), `GATE_SDK_REGISTRY_DOC` (default `README.md`)
83
- and `GATE_SDK_RUNNER_DOC` (default `README.md`) for `check-kit-registration`,
95
+ and `GATE_SDK_RUNNER_DOC` (default `README.md`) for `check-kit-registration`
96
+ — both resolved in `lib/gate.sh` rather than inline in the check, so the config
97
+ bridge can carry them to the compiled member (see there),
84
98
  `GATE_SDK_MSG_PATTERN_FILES` (default
85
99
  `<gates-dir>/msg-patterns.list`; space-separated, each tracked and required —
86
100
  fail-closed when missing), `GATE_SDK_MSG_PATTERN_FILES_LOCAL` (default
@@ -97,7 +111,12 @@ the path segments whose subtrees `check-exec-bit` exempts — see there), `GATE_
97
111
  monitor-marker scan root — see §enforcement-map), and
98
112
  `GATE_SDK_LINT_EXTRA_DIRS` (default empty; space-separated directories whose
99
113
  direct `*.sh` members join `check-shellcheck`'s derived scan set — the seam for
100
- a shipped script that sits under no kit root — see §check-shellcheck), and
114
+ a shipped script that sits under no kit root — see §check-shellcheck),
115
+ `GATE_SDK_PROGRAM_FLOOR` (array, default the POSIX/coreutils set the battery
116
+ already rests on plus `bash`, `sh` and `git`; the programs the payload is
117
+ entitled to assume present, so a command-position word among them is not a
118
+ criterion-7 requirement — the default is written once in `lib/gate.sh`, see
119
+ there and §port-blockers), and
101
120
  `GATE_SDK_NATIVE_BIN` (default `native/target/release/checkwright-gates`; the
102
121
  multi-call binary `gate_command` dispatches a `.gate`-declared member to — see
103
122
  §lib/gate.sh; also the binary §check-gate-binary-fresh asks for its baked source
@@ -118,7 +137,15 @@ nothing about what implements a ported gate). And `GATE_SDK_NATIVE_CRATE`
118
137
  (default `native`; the crate root that owns the build manifest, held outside
119
138
  every kit root by §check-gate-substrate-parity assertion E, and the tree whose
120
139
  tracked source §check-gate-binary-fresh hashes into the stamp it compares. Read
121
- through `gate_native_crate`, its one shell home — §lib/gate.sh). The two native
140
+ through `gate_native_crate`, its one shell home — §lib/gate.sh). `GATE_SDK_KNOB_<NAME>` joins this roster as the one entry that is **not a
141
+ consumer knob**: it is a *dispatch-time convention*, written by `gate_command`
142
+ into the argv it emits and read by the binary's knob reader (§lib/gate.sh, the
143
+ array-knob config bridge). **No consumer sets it, and saying so is what stops it
144
+ being documented as one** — it has no default, it is not read from the config
145
+ seam, and a value found in a consumer's environment is overwritten by the
146
+ dispatch that emits it. It adds no configuration surface: the bridge carries
147
+ whatever the consumer's own library resolved for a knob the consumer already
148
+ owns. The two native
122
149
  path knobs stay distinct because they answer different questions:
123
150
  `GATE_SDK_NATIVE_SRC` names the implementation tree a gate's rule lives in,
124
151
  `GATE_SDK_NATIVE_CRATE` the root that would carry that tree with it if it moved,
@@ -137,7 +164,14 @@ the workflow are **consumer config, never kit literals**: the knob, the line
137
164
  grammar and the assertions are gate-sdk mechanism, while *which* platforms a
138
165
  project commits to is that project's own support commitment — a kit literal
139
166
  spelling one project's would ship it as everyone's (CLAUDE.md §The provenance
140
- seam). Paths are
167
+ seam). And `GATE_SDK_CARGO_TARGET_DIR` (default **derived** from
168
+ `GATE_SDK_NATIVE_CRATE` as `<crate>/target`, cargo's own placement, so the
169
+ warm cache `bin/build-native.sh` fills is the one §check-crate-arms reuses).
170
+ Its only non-default reader is that gate's fixture pair, which redirects it out
171
+ of the tree so a fixture run leaves no build products beside a fixture manifest;
172
+ defaulting it to scratch instead is refused, because it would cold-build the real
173
+ crate on every battery run to buy a hermeticity the real tree does not need.
174
+ Paths are
141
175
  repo-root-relative; every entry point `cd`s to `git rev-parse --show-toplevel`
142
176
  before resolving them.
143
177
 
@@ -246,6 +280,56 @@ governed comment/pointer surface admits a workflow member iff it is tracked,
246
280
  whatever its extension, and blesses only `contract:`/`see` there
247
281
  (canon-kit/SPEC.md §check-comment-tier).
248
282
 
283
+ ## The bin/-tool contract
284
+
285
+ A kit's `bin/` tools are shipped executables that are explicitly **not gates**:
286
+ they take caller-supplied arguments, and several of them *capture* — appending
287
+ what they were handed to a durable, committed surface. The gate model below
288
+ governs none of them, so the one authoring rule every kit's tools share is
289
+ stated here, beside §check-exec-bit's tree-wide `*/bin/*.sh` invariant.
290
+
291
+ **A `bin/` tool whose positional arguments are free text validates their shape,
292
+ not only their arity.** Free text is an uninterpreted caller-supplied string; an
293
+ argument drawn from a known set is not free text, because validating membership
294
+ already validates shape. Three behaviors:
295
+
296
+ - `-h` / `--help` as the first argument prints the tool's usage on **stdout**
297
+ and exits **0**. Usage on a successful help request is output, not a
298
+ diagnostic.
299
+ - A positional argument beginning with `-` that is not a recognized option is a
300
+ **refusal** — usage on stderr, exit 2.
301
+ - `--` ends option processing, so every remaining argument is taken as free text
302
+ however it is spelled.
303
+
304
+ An arity check is not a shape check. A tool taking exactly one free-text
305
+ argument accepts `--help` *as* that argument, and a tool taking two accepts a
306
+ flag in either slot; arity makes the single-argument case worst and the others
307
+ merely quieter, never safe. A tool that captures turns the defect into a written
308
+ record that reads like a real filing — attested three times across three
309
+ sessions, each writing a flag into a committed, boundary-blocking inbox at exit
310
+ 0 — so the rule binds hardest there. But it binds on every free-text tool,
311
+ because the help half is discoverability and its cost is measured too: a session
312
+ hunting for a mode ran a stage writer with `--help`, got `'--help' is not a
313
+ lifecycle stage` in place of usage, and went three guards deep working around a
314
+ contract the usage text would have told it did not exist.
315
+
316
+ The `--` escape is not decoration: without it the refusal makes a legitimate
317
+ filing unfileable, and this rule's own subject matter is the instance — recording
318
+ that a `--list` argument was captured takes
319
+ `bash lifecycle-kit/bin/file-gap.sh -- "--list is captured at exit 0"`.
320
+
321
+ **No gate reads this rule, and that is ruled rather than deferred.**
322
+ §check-exec-bit's corpus is the whole `*/bin/*.sh` set, and a gate over it could
323
+ assert only the weak static shape — does the file contain a `--help` branch —
324
+ which passes a tool that prints usage and captures `--list` anyway. The
325
+ predicate that matters is behavioral, and the precedent for behavioral coverage
326
+ of a `bin/` tool is already ruled and shipped: lifecycle-kit/SPEC.md
327
+ §bin/enter-stage.sh rules `--simulate` advisory tooling owed no fixture pair and
328
+ exercises it end-to-end in `smoke/`. Each member's coverage follows it, and
329
+ enforcement-first's own clause — removing the duplication outranks gating it —
330
+ points at one stated rule plus behavioral coverage rather than a static scanner
331
+ that would green the case it was bought for.
332
+
249
333
  ## The gate model
250
334
 
251
335
  A gate family imposes test-grade rigor on prose and config surfaces, but a gate
@@ -305,6 +389,26 @@ above it. The helper itself is tested directly by
305
389
  `gate-tests/lib-gate.test.sh` (a per-gate input fixture cannot prove it — a
306
390
  well-formed `awk` cannot be crashed on present input).
307
391
 
392
+ **On the binary substrate the defect is closed by construction, not by review.**
393
+ A ported member spawns nothing itself: the crate's one spawn site is
394
+ `native/src/proc.rs`, whose `run` returns `Err` for a **spawn** failure — in the
395
+ same "could not run" words above — and a `Completed` otherwise, and `Completed`
396
+ hands out stdout only through an accessor that has already read the exit status.
397
+ So "capture `stdout`, ignore `status`" has no spelling, and a program that could
398
+ not be run is an exit-2 refusal rather than an empty capture read as clean.
399
+ The wrapper is proved the way the shell helper is, directly rather than through a
400
+ member's fixture pair: unit tests over a spawn that never happened, a child that
401
+ exited non-zero, and one that succeeded. A further test holds the routing — the
402
+ `Command` spelling is asserted absent from every module under
403
+ `native/src/gates/`, the roster shape §check-reads-couples' unit test B uses for
404
+ filesystem walks — so each new spawning member inherits the property instead of
405
+ re-buying it. That corpus is the gate modules and stops there: the `#[cfg(test)]`
406
+ helpers bridging to the shell library from `walk.rs` and `main.rs` check their
407
+ own status already, and pulling them in would make the production wrapper carry
408
+ a cwd and an env nothing in production reads. Widening `proc.rs` is how a member
409
+ that needs more of the child's result gets it; building its own `Command` is what
410
+ the test refuses.
411
+
308
412
  ### Fixture-pair discipline
309
413
 
310
414
  When a gate is written or edited, it ships with — or updates — its
@@ -354,6 +458,31 @@ the pair is the consumer's only parity oracle for a binary they cannot read;
354
458
  withholding it would spend the trust story to buy marginal opacity, since the
355
459
  help text and the SPEC section ship regardless.
356
460
 
461
+ **A ported member's pair exercises every arm of the corpus derivation it ports,
462
+ not merely the arm the gate's own sources happen to be written in.** A pair
463
+ covering one arm in four proves one branch and ships the rest proved by nothing,
464
+ and the failure is invisible: the uncovered arms still run on the live tree,
465
+ where they are green because the tree is clean. The rule is stated here because
466
+ the widening is the *parity instrument* rather than extra coverage — the pair is
467
+ the only oracle whose corpus is **inert under a port**. `gate-tests` is a member
468
+ of `GATE_PRUNE_DIRS` (§lib/gate.sh), so nothing inside a case dir is reachable
469
+ from a live-tree walk, nothing there is a registry member, and no port can add or
470
+ remove a file in one. A corpus carrying every arm that the port cannot move is
471
+ exactly what criterion 4 says a self-referential port must design and does not
472
+ say how to build (§The port-candidate criteria, criterion 4).
473
+
474
+ Two properties make the widening worth its cost rather than ceremony. Its
475
+ **planted violations are standing guards**: a `bad/` case whose only violation
476
+ lives in an arm reds forever if an edit later drops that arm from the walk — for
477
+ a gate-source auditor that is the difference between a caught regression and a
478
+ family of gates quietly printing `clean` over a corpus it stopped reading. And a
479
+ widened case tightens the crate-side read-set verification for free, because unit
480
+ test A observes each member running over its own cases (§Meta-gate conservation
481
+ for the binary substrate). The discipline that keeps the widening honest is the
482
+ existing one, applied per arm: **the named reader of every arm is the case's own
483
+ `expect.txt`** — an arm whose planted violation no `expect.txt` names has no
484
+ reader and is removed rather than added.
485
+
357
486
  ### Self-lint
358
487
 
359
488
  Every script in the family — the consumer's gates and the kit's own `lib/`,
@@ -467,13 +596,17 @@ every field on it has a named reader — `# graph:` by the manifest readers belo
467
596
  §check-gate-fixture-coverage. The descriptor carries no field that lacks one,
468
597
  reserving nothing against a future reader.
469
598
 
470
- **One field is refused rather than merely absent, and the refusal is the design.**
471
- A `# reads:` line declaring the gate's walk roots is the obvious cheap way to
472
- answer §check-reads-couples, and it is rejected: nothing would hold it to the
473
- implementation, so it is the removed `# reads-couples-exempt:` opt-out with more
474
- words — a self-declaration whose would-be reader could not verify what it read.
475
- The read set lives in the crate's registry instead, where a unit test runs the
476
- member and compares the declaration against the roots it actually walked. This is
599
+ **Two fields are refused rather than merely absent, and the refusal is the
600
+ design.** A `# reads:` line declaring the gate's walk roots is the obvious cheap
601
+ way to answer §check-reads-couples, and it is rejected: nothing would hold it to
602
+ the implementation, so it is the removed `# reads-couples-exempt:` opt-out with
603
+ more words — a self-declaration whose would-be reader could not verify what it
604
+ read. A `# needs:` line declaring the member's external programs (§The
605
+ port-candidate criteria, criterion 7) earns the identical refusal on the identical
606
+ ground, and is recorded here so a later author does not re-propose it as the cheap
607
+ answer to `port-blockers.sh`'s undecidable count. Both sets live in the crate's
608
+ registry instead, where a unit test runs the member and compares the declaration
609
+ against what it actually did. This is
477
610
  also why §check-gate-substrate-parity assertion D's manifest-class partition is
478
611
  left unchanged deliberately: a roots declaration is *implementation data*, not
479
612
  manifest-class, so it belongs in the implementation and not in the build-free
@@ -481,7 +614,17 @@ surface.
481
614
 
482
615
  **The interface that answers is substrate-neutral; its placement is not settled
483
616
  here.** The contract is *a declaration path's substrate answers what it reads* —
484
- shell answers by parse, the binary answers by `--reads`. Whether a later authoring
617
+ shell answers by parse, the binary answers by `--reads`. It generalizes to
618
+ requirements the same way: **shell answers by parse, the binary answers by
619
+ `--needs`** — a fifth top-level flag beside `--list` / `--reads` / `--knobs` /
620
+ `--source-stamp`, backed by a fifth registry-tuple element and held to behavior by
621
+ a crate unit test in the shape of the `--reads` one. **`--needs` is sequenced, not
622
+ shipped**, and the reason is a decision rather than an omission: no ported member
623
+ requires an external program today, so the arm would land with no named reader,
624
+ which the amendment contract removes rather than reserves. The first port of a
625
+ member carrying an external requirement builds it. Until then `port-blockers.sh`
626
+ reports every `.gate` member as undecidable rather than clean, so the hole is
627
+ counted rather than silent. Whether a later authoring
485
628
  SDK relocates that contract to a substrate-neutral surface stays
486
629
  `gate-authoring-sdk-surface`'s question, narrowed by this and deliberately not
487
630
  answered: one substrate's answer is added without adding a shape that would have to
@@ -586,6 +729,63 @@ The manifest grammar:
586
729
  - `gen=manual` — the gate's hook block is bespoke and round-trips verbatim
587
730
  between `# >>> manual: <gate>` / `# <<< manual: <gate>` sentinels.
588
731
 
732
+ ## The install disposition
733
+
734
+ A gate declares **its own install disposition**, one `# install: <disposition>`
735
+ line in its header block beside `# graph:` and `# spec:`, and in a `.gate`
736
+ descriptor on the same terms — a ported gate is still a gate a kit ships, and
737
+ the descriptor rides the payload like any other member (§Consumer payload). The
738
+ vocabulary is closed, three values:
739
+
740
+ - **`zero-config`** — the gate reads a surface `init` itself writes, so it
741
+ registers in a fresh consumer.
742
+ - **`on-surface`** — the gate's subject is one the adopter authors later (a
743
+ glossary, a docs host, a stage attestation, their own workflows), so it arms
744
+ when that surface exists rather than at install.
745
+ - **`never`** — the gate is not auto-registered on any tree, because its subject
746
+ cannot exist in a vendored tree at all or because it is declared
747
+ never-registered. This is the class §Consumer smoke's declaration valve
748
+ already recognises from the other side.
749
+
750
+ The vocabulary names **install-time reachability**, never a path, a surface
751
+ name, or a project's own governed-file vocabulary. That is deliberate: a
752
+ disposition enumerating consumer paths would be a kit literal carrying one
753
+ project's tree layout, which no kit may ship. The path a gate reads stays where
754
+ it already lives — the gate's own configured knob.
755
+
756
+ **The installer's per-kit roster is derived from these declarations, not
757
+ maintained.** `recipe_gates` in the installer's `lib/common/recipe.sh`
758
+ (installer/README.md §What init seeds) is every `checks/` member of a kit — both
759
+ declaration spellings — whose disposition is `zero-config`. It carries no gate
760
+ name of its own, which is what `check-install-disposition` assertion C holds.
761
+
762
+ **Two rosters, two trees, and that is why the disposition is kit-owned rather
763
+ than the roster.** A kit's `smoke/install.sh` registers against a scratch
764
+ consumer *the smoke script itself builds and seeds*; `recipe_gates` registers
765
+ against the tree `init` makes. The installer's set is a subset of the smoke's in
766
+ every gated kit, and the difference is deliberate where it is largest:
767
+ lifecycle-kit registers nothing at install because its gates read a stage
768
+ attestation only a stage session can write, while its smoke stamps that
769
+ attestation for real; site-kit registers nothing at install and five in smoke
770
+ because the smoke writes `docs/CNAME` and a workflow template `init` never
771
+ writes. A single entry point returning one roster could serve neither caller
772
+ without arming gates on a tree that cannot satisfy them or stripping the smoke's
773
+ coverage. What is kit-owned is therefore the **disposition**; each caller derives
774
+ its own set from the tree it actually made.
775
+
776
+ The exposure this closes is that a kit adding a zero-config gate the installer
777
+ never learned about shipped to adopters unregistered and silent. A gate cannot
778
+ now reach an adopter undeclared, because the declaration is enforced present.
779
+
780
+ **Where the directive deliberately does not reach.** The installer's *seeding*
781
+ decisions stay keyed by kit, and they look like the same defect this section
782
+ removed. They are not: they answer what a kit's install must **seed**, not what
783
+ it may **register**, and a seeded surface is a property of the kit rather than of
784
+ any one gate — so a per-gate directive has nothing to say about it. Which
785
+ decisions those are, and how each is made, is the installer's
786
+ (installer/README.md §What init seeds). Recorded so the boundary is found drawn
787
+ rather than extended into a place it does not fit.
788
+
589
789
  ## Meta-gate conservation for the binary substrate
590
790
 
591
791
  A gate's shell file carries five different things at once: the rule, the
@@ -607,28 +807,63 @@ under a resolve dir: `scripts/queue-config.sh` sits in the gates dir and is not
607
807
  a gate, and matching it would over-report.) Every derived member takes exactly
608
808
  one recorded disposition below, and a member the section does not name is red.
609
809
 
810
+ **`check-crate-arms` couples the crate and is still outside that derivation**,
811
+ stated here so its absence from the table reads as a verdict rather than an
812
+ omission. The test is whether a member's expanded `couples=` covers a registry
813
+ member's **declaration path**; `native/src/gates/*.rs` is where a ported gate's
814
+ rule is *implemented*, never where one is declared, so the derivation does not
815
+ select it and no disposition row is owed. A later reader adding one would be
816
+ answering a question assertion C never asked.
817
+
610
818
  | Meta-gate | Disposition for a `.gate`-dispatched member |
611
819
  |---|---|
612
820
  | `check-shellcheck` | **Retired with cause** — no shell exists to lint. `cargo clippy` at deny-warnings is the substrate equivalent and runs in CI, not as a gate. |
613
- | `check-gate-output` | **Ported and strengthened for the fixtured corpus; source-grep retained for the one member outside it.** The source-grep for `: clean`/`help:` was always a proxy for behavior; for the fixtured members the assertion now runs in `run-gate-tests.sh` (§run-gate-tests) against the case's real output, on **shell gates too**. The remaining member, `check-task-conservation` (`# no-fixture:` per queue-kit/SPEC.md §check-task-conservation — a HEAD-vs-worktree diff has no static-fixture representation), has no case for a runtime assertion to reach, so the source-grep stays its only oracle. Retiring the static half outright would zero out that member's output-contract coverage — the exact vacuity this table exists to close. |
614
- | `check-gate-fail-closed` | **Retired with cause** — the defect (branching on a captured value's emptiness when the subprocess died) is unrepresentable once a fallible call returns a `Result` that cannot be ignored. A real substrate win, stated as one. |
821
+ | `check-gate-output` | **Ported and strengthened for the fixtured corpus; source-grep retained for the one member outside it, over the corpus that member's rule now lives in.** The source-grep for `: clean`/`help:` was always a proxy for behavior; for the fixtured members the assertion now runs in `run-gate-tests.sh` (§run-gate-tests) against the case's real output, on **shell gates too**. The remaining member, `check-task-conservation` (`# no-fixture:` per queue-kit/SPEC.md §check-task-conservation — a HEAD-vs-worktree diff has no static-fixture representation), has no case for a runtime assertion to reach, so the source-grep stays its only oracle. Retiring the static half outright would zero out that member's output-contract coverage — the exact vacuity this table exists to close. **That member has since ported**, which is why this row is not "unchanged": its declaration path is now a descriptor, which by the closed field roster cannot hold the strings, so corpus *and* emitter alternation follow the rule to the implementation module, and a tree carrying no crate declares the member out of reach rather than reddening (§check-gate-output owns the resolution and its two branches). |
822
+ | `check-gate-fail-closed` | **Retired with cause, and the cause is narrower than it first read.** For a member that reads files, the defect (branching on a captured value's emptiness when the subprocess died) is unrepresentable: there is no subprocess, and a fallible read returns a `Result` that cannot be ignored. A real substrate win, stated as one. **It is representable for a member that spawns one**, and the queue-kit cohort landed the first: `Command::output()` returning `Ok` means the *spawn* succeeded, never that the program did, so reading `stdout` while ignoring `status` reproduces the defect exactly. The disposition is unchanged — this gate's corpus is `check-*.sh` and it could not scan a Rust module either way — and the property is held crate-side rather than by review: the spawn wrapper and its unit tests (§Fail-closed contract) leave a gate module unable to construct a `Command` at all, and unable to reach stdout without the status having been read. Machine-held rather than remembered, which is the same answer the `check-reads-couples` row below gives to the same problem, and what keeps this retirement honest. |
615
823
  | `check-reads-couples` | **Retained, with a binary-side equivalent.** Its shell parser finds no walks in a binary gate and would print `clean` — the single worst vacuity available here — so the substrate answers instead of the parser: the binary carries a `--reads <name>` arm printing one line per walk root, a repo-relative path or `?`, and the gate consumes that report into its existing coverage assertion (§check-reads-couples). The declaration is **registry data held to executed behavior**, which is what separates it from the unbound self-declaration this gate exists to refuse: each gate's roots are declared beside its dispatch entry in the crate's registry (an entry added without them fails to compile), the crate's single sanctioned walk implementation records the roots it is invoked with, and two unit tests close the loop — **A**, every member run over its own `gate-tests/<name>/{good,bad}/` cases with recording on, observed roots a subset of declared; **B**, no module outside that walk implementation names a filesystem-walk API or vendors a walker, because a direct walk would be invisible to the recorder and unverify A. The precedent is the `check-knob-default-coupling` row below: an executed assertion is the answer where a static gate would be vacuous. The refusal survives only where the gate still cannot see — an absent or non-executable binary, and a non-zero `--reads` — and there is deliberately no descriptor-level opt-out, which the consumption path does not reinstate: a port ends this assertion by answering it (§check-reads-couples). |
616
824
  | `check-gate-assertions` | **Retained, corpus extended** to the gate's Rust module; the `# assertion` marker matches on its token, independent of the comment leader. |
617
825
  | `check-gate-exemption-tasks` | **Retained, corpus extended** the same way. |
618
- | `check-comment-tier` | **Retained, corpus extended** to the implementation module and the `.gate` descriptor, whose own lines are directives by construction. Mechanism: `canon-kit/lib/spec.sh`'s `spec_comment_surface_with_templates` gains `*.gate` **and `*.rs`** arms — the shared primitive, widened once (see the `check-spec-pointer` row). The implementation arm is the load-bearing one: locality-class directives stay in the implementation by the reader partition (§The `# graph:` manifest), so without it they would go dark exactly where they still apply. |
619
- | `check-spec-pointer` | **Retained, and its corpus depends on the same widening** — not "unchanged" in mechanism, only in assertion logic. It calls the *same* shared `spec_comment_surface` in `canon-kit/lib/spec.sh`; absent that one shared fix a ported gate's `# spec:` line would silently stop being checked in both places it can live — the descriptor and the implementation. Once the primitive gains the `.gate` and `*.rs` arms its own probe logic needs no change. |
826
+ | `check-comment-tier` | **Retained, corpus extended** to the implementation module and the `.gate` descriptor, whose own lines are directives by construction. Mechanism: the shared primitive `comment_surface` carries `*.gate` **and `*.rs`** arms — widened once, for every caller (see the `check-spec-pointer` row). The implementation arm is the load-bearing one: locality-class directives stay in the implementation by the reader partition (§The `# graph:` manifest), so without it they would go dark exactly where they still apply. **This member is itself `.gate`-dispatched** since the seventh cohort, so it now audits its own declaration — which is why its trigger names `*.gate` and `*.rs` and why its fixture pair, not the live tree, is what proves those arms. |
827
+ | `check-spec-pointer` | **Retained, and its corpus depends on the same widening** — not "unchanged" in mechanism, only in assertion logic. It calls the *same* shared primitive, `comment_surface` in `native/src/spec.rs` since the seventh cohort ported both it and all four of its callers (canon-kit/SPEC.md §lib/spec.sh); absent that one shared fix a ported gate's `# spec:` line would silently stop being checked in both places it can live — the descriptor and the implementation. With the primitive carrying the `.gate` and `*.rs` arms its own probe logic needs no change. |
620
828
  | `check-readme-roster` | **Retained, glob widened** to `*.sh` + `*.gate`. Without it a ported gate silently drops out of its kit README's roster in both directions. |
621
829
  | `check-exec-bit` | **Retained, extended**: a `.gate` descriptor must be **non**-executable. Stated as an assertion so "not executable" cannot read as "not covered". |
622
- | `check-todo-task-liveness`, `check-deprecation-task` | **Retained, corpus extended** to the Rust module and the descriptor, the same shape as `check-comment-tier`: both walk `spec_comment_surface` hunting `TODO(task:)`/deprecation markers, so a marker left in a ported gate's Rust source would otherwise stop being tracked. |
623
- | `check-knob-default-coupling` | **Retained unchanged, and deliberately *not* corpus-extended** — the extension the shape of this table invites would be vacuous. Its two default idioms are shell (`${KNOB:-v}`, the guarded assignment) and its knob prefixes derive from `gate_kit_roots` members; `native/` is not a kit root and a Rust `const` matches neither idiom, so pointing it at `*.rs` would scan files whose grammar it cannot parse and add zero assertions while reading as coverage. The duplication it therefore cannot reach — the crate's prune-dir default against `lib/gate.sh`'s — is closed by an **executed** assertion instead: a unit test in the crate reads the shell library and compares the two literals, failing on drift. Recorded this way because a disposition that names a mechanism which cannot fire is the same defect as no disposition. |
624
- | `check-gate-tamper` | **Retained, extended — and the extension is discharged, not pending.** The gate-file roster it recognises (`DELEGATION_KIT_GATE_FILES`) carries the `.gate` spelling on the **kit default** as of the first cohort's descriptors, or a consumer on that default would receive a ported gate whose edits escape the isolation rule (delegation-kit/SPEC.md §Layout and configuration). This repo's own config carried both spellings ahead of the port, which is exactly why the kit default had to be checked separately rather than inferred from a green battery here. Two known limits stand: its exemption reader parses a shell `# exception-list:` array literal and has no Rust-source equivalent, and its meta-layer path roster (`DELEGATION_KIT_META_PATHS`) **does not contain `native/`**, so a commit editing a gate's Rust implementation alongside its descriptor is refused. Neither binds the first cohort — neither ported gate carries an exemption list, and their Rust modules landed in commits separate from their descriptors. |
830
+ | `check-todo-task-liveness`, `check-deprecation-task` | **Retained, corpus extended** to the Rust module and the descriptor, the same shape as `check-comment-tier`: both walk the shared comment surface hunting `TODO(task:)`/deprecation markers, so a marker left in a ported gate's Rust source would otherwise stop being tracked. Both are `.gate`-dispatched since the seventh cohort, on the same terms as the two rows above. |
831
+ | `check-knob-default-coupling` | **Retained unchanged, and deliberately *not* corpus-extended** — the extension the shape of this table invites would be vacuous. Its two default idioms are shell (`${KNOB:-v}`, the guarded assignment) and its knob prefixes derive from `gate_kit_roots` members; `native/` is not a kit root and a Rust `const` matches neither idiom, so pointing it at `*.rs` would scan files whose grammar it cannot parse and add zero assertions while reading as coverage. The duplication it could not reach — the crate's prune-dir default against `lib/gate.sh`'s — **is now absent rather than test-held**: the config bridge (§lib/gate.sh) leaves exactly one place a knob's value is computed, the kit's shell library, and the crate carries no default for a bridged knob to drift from. The crate carries no unit test comparing the two literals, because it carries only one: that assertion is **deleted with the duplication it gated** — enforcement-first ranks removing the duplication above gating it, and a citation left behind would point this table at an absent mechanism, the exact defect its own prose calls out. Its verdict on `lib/gate.sh` is unchanged: the shell default stays exactly where it is, as the sole one. |
832
+ | `check-gate-tamper` | **Retained, extended — and the extension is partly discharged.** The gate-file roster it recognises (`DELEGATION_KIT_GATE_FILES`) carries the `.gate` spelling on the **kit default** as of the first cohort's descriptors, or a consumer on that default would receive a ported gate whose edits escape the isolation rule (delegation-kit/SPEC.md §Layout and configuration). This repo's own config carried both spellings ahead of the port, which is exactly why the kit default had to be checked separately rather than inferred from a green battery here. Its meta-layer path roster (`DELEGATION_KIT_META_PATHS`) is fixed **in this repo's consumer config**: `native/` is declared there (`scripts/delegation-config.sh`), so a commit editing a ported gate's Rust implementation alongside its descriptor is meta-isolated rather than refused. The kit default and any other consumer on it still lack the prefix — `native/` is never auto-unioned by the kit-root scan (`gate_kit_roots`'s predicate requires `checks/` or `smoke/`, which the crate ships neither of), so the fix is consumer config, not a kit-default change. One known limit stands: its exemption reader parses a shell `# exception-list:` array literal and has no Rust-source equivalent. Stated against the live ported set rather than the cohort that first raised it, since the binding condition is a property of the roster and moves with every cohort: the limit is unbound while no ported member carries an exemption list, and the three holders in the tree are all still shell. The cohort that ports one of them owes the Rust-source reader. |
625
833
  | `check-graph`, `check-kit-enum`, `check-gate-fixture-coverage`, `check-enforcement-fresh`, `check-value-rollup-fresh` | **Survive unchanged** — all five read the declaration path as text (directly, or through `enforcement-map.sh`/`footprint.sh`, which do), which the descriptor still is. |
626
- | `check-gate-binary-fresh` | **Retained by construction — and recorded here before the derivation reaches it, deliberately.** It reads declaration paths as a *set*, to decide whether the binary is load-bearing, and never reads a gate's source, so a port is its trigger rather than its blind spot: a ported member is exactly the case that switches it on. Its couples name `kit:checks/*.gate` specifically, so with **zero descriptors on disk it is not yet substrate-sensitive by assertion C's runtime derivation** and this row is not yet owed — which is why it is written now rather than left to be discovered. The commit that lands the first descriptor makes the gate sensitive and would red on a missing disposition, and that commit's session is the worst possible one to be learning this table exists. Same reasoning as the gate itself: the oracle ahead of the hole (§check-gate-binary-fresh). |
834
+ | `check-gate-binary-fresh` | **Retained by construction — and recorded here before the derivation reaches it, deliberately.** It reads declaration paths as a *set*, to decide whether the binary is load-bearing, and never reads a gate's source, so a port is its trigger rather than its blind spot: a ported member is exactly the case that switches it on. Its couples name `kit:checks/*.gate` specifically, so it was **not yet substrate-sensitive** by assertion C's runtime derivation when this row was written, with zero descriptors then on disk, and the row was not yet owed — it was written ahead of the trigger rather than left to be discovered. The first cohort's descriptors have since landed, so the gate is sensitive and the row is owed; the commit that landed them would have reddened on a missing disposition, and that commit's session was the worst possible one to be learning this table exists. That is the foresight paying, and it is the same reasoning as the gate itself: the oracle ahead of the hole (§check-gate-binary-fresh). |
627
835
  | `check-gate-substrate-parity` | **Retained by construction** — it is substrate-sensitive by the same derivation it performs, and it reads declaration paths both as text and as a *set*, which is precisely what it exists to see. It stays a shell gate (§check-gate-substrate-parity), so the auditor never depends on the substrate it audits. Its own row is written out rather than left to the section's prose mention: assertion C is satisfied by any occurrence of a member's name in this section, and a gate passing its own assertion by being *discussed* is a coincidence, not a disposition. |
628
- | `check-docs-cmd`, `check-install-claim`, `check-payload-claim`, `check-prose-enum`, `check-queue-slug-liveness` | **Survive unchanged — reverse triggers.** Each names `scripts/*.sh`/`kit:*.sh` in `couples=` only so that a script change re-runs it; the corpus each actually scans is the governed-doc set, and none reads a gate script's *content* as its assertion target. `check-docs-cmd` is worth naming: it will correctly — not vacuously — red on a doc still fencing a deleted `.sh` path after a port. That is real signal. |
836
+ | `check-install-disposition` | **Retained, and substrate-blind by construction** — it reads both declaration spellings as text, taking the `# install:` header line off a `.gate` descriptor exactly as off a `.sh` implementation, because a ported gate is still a gate a kit ships and its disposition is a property of the gate rather than of its substrate (§The install disposition). A port therefore moves nothing here: the declaration travels with the descriptor, which is the same file the installer's payload already carries. It stays a shell gate for the reason the sibling auditors do — the assertion that a gate declares itself must not depend on the substrate the declaration might name. |
837
+ | `check-docs-cmd`, `check-install-claim`, `check-payload-claim`, `check-queue-slug-liveness` | **Survive unchanged — reverse triggers.** Each names `scripts/*.sh`/`kit:*.sh` in `couples=` only so that a script change re-runs it; the corpus each actually scans is the governed-doc set, and none reads a gate script's *content* as its assertion target. `check-docs-cmd` is worth naming: it will correctly — not vacuously — red on a doc still fencing a deleted `.sh` path after a port. That is real signal. Every member of this row is a ported one — `check-queue-slug-liveness` since the queue-kit cohort, `check-docs-cmd` since the canon-kit one, and the remaining pair since the ERE cohort — so the row describes `.gate`-declared gates throughout; the reasoning is unaffected, because what they scan is the governed-doc set rather than any gate's content. |
838
+ | `check-settings-paths` | **Survives unchanged — reverse trigger, and a port is its subject rather than its blind spot.** Its `couples=` names `kit:checks/*.sh` only so that a check-script edit re-runs it; what it scans is the committed permission allow-list, never a gate script's content. A port is the event it exists for: replacing `checks/<gate>.sh` with a descriptor strands every allow entry naming the old path, so the gate reddens *because* of a port rather than falling silent after one — the shape `check-docs-cmd` has in the row above. Two limits are recorded rather than left to be re-derived. The glob is deliberately not widened to `*.gate`, because a descriptor path is not something a `Bash(…)` grant invokes and the widening would add no assertion. And the trigger is a **partial route by construction**: the generated hook matches staged `ACMR` paths, so a *deleted* `.sh` never fires it; what catches a cohort's stranded grants is the whole-tree battery, which runs with no trigger filter. The trigger still earns its place — it catches the ordinary edit that strands a grant — but it is not what makes the gate's landing order necessary (context-kit/SPEC.md §check-settings-paths). |
839
+ | `check-prose-enum` | **Corpus extended to the Rust module — it was never a pure reverse trigger.** This gate was grouped with the reverse triggers above on the ground that none of them reads a gate's *content*; that ground was **false for this one**, and the queue-kit port is what exposed it. Its enum derivation (`scripts/enum-sets.sh`) reads the queue tag vocabulary out of `check-tag-lead-line`'s own class table, deliberately — *"read from the gate rather than re-listed here, so a rename cannot leave the two spellings disagreeing"* — so deleting that gate's script broke the derivation and the gate exited 2 rather than passing vacuously, which is the fail-closed behavior working. The corpus follows the rule to where it now lives, `native/src/gates/tag_lead_line.rs`'s `CLASSES` table, keeping the read-from-the-owner property and its one-table fail-closed anchor. **The gate is itself a ported member since the canon-kit cohort**, so a gate whose input is a gate's content is now gate content — and its own derivation crosses the bridge as *data*, which is what keeps the compiled form from spawning the emitter it reads. |
840
+ | `check-measured-claim` | **Retained, and sensitive through its oracle rather than its corpus — the first born-native member to take a row.** What it scans is the governed-prose surface, so by corpus it is a reverse trigger like the row above. What makes it substrate-sensitive is the consumer oracle behind `CANON_KIT_MEASURED_CLAIMS_CMD`, which its `couples=` reaches through `scripts/*.sh`: this repo's emitter counts how much of the registry resolves to a `.gate` descriptor, so it reads declaration paths **as a set**, the shape `check-gate-binary-fresh` has. A port therefore *moves its value*, which is the mechanism working rather than a blind spot — the number a marked sentence states is about the port, and the sentence reddens when the port advances without it. The design that landed the gate predicted no row here, on the premise that its `couples=` named no declaration path; the emitter coupling the same design requires falsifies that premise, and the row is recorded rather than the coupling dropped, because dropping it would leave the oracle's own source outside the trigger set. **The row and criterion 4 are independent facts, and this is the case that proved it**: the criterion binds on a gate's assertion target, this gate's is the governed-prose surface, so it clears — while the transitive reach through its emitter is precisely what assertion C is shaped to see (§The port-candidate criteria, criterion 4). |
629
841
  | `check-spec-embedded-source` | **Survives unchanged — reverse trigger of the same shape.** Its `couples=` extension list (`*.rs`, `*.sh`, `*.toml`, …) is the roster of **languages it recognizes inside fenced blocks**, not a reference to gate declarations; its scanned corpus is the canonical specs and amendments. It already carries `*.rs`, so a ported gate's Rust module is inside its trigger set with no widening. |
630
842
  | `check-template-copy-parity`, `check-template-registry-parity` | **Survive unchanged** — their corpus is kit templates and the template registry, not gate declarations; a gate's substrate does not reach either. |
631
843
 
844
+ **What *the auditor never depends on the substrate it audits* scopes to, ruled
845
+ because a mechanical reading of it holds the wrong members.** Two rows above keep
846
+ a gate on shell for that reason — `check-gate-substrate-parity` and
847
+ `check-install-disposition` — and a selector applying the sentence to every gate
848
+ that reads gate source would have held the whole `spec_comment_surface` family
849
+ too, where the operator ruling did not. The distinction is exact rather than a
850
+ judgment call. Those two adjudicate the **declaration and dispatch relation**:
851
+ whether a gate declares itself, whether a descriptor and a subcommand agree. A
852
+ compiled form of either could pass *itself* with a broken binary, and that is a
853
+ **false green** — the one failure mode this table exists to prevent. A gate
854
+ adjudicating **comment content** on governed sources has a different failure mode
855
+ on a tree with no working binary: it is omitted from the registry and declared
856
+ there (§The install disposition, §check-gate-binary-fresh), so what a consumer
857
+ loses is *declared coverage*, never a silent pass. The rule is therefore: a gate
858
+ whose assertion is about the dispatch mechanism stays shell; a gate that merely
859
+ *reads* declaration paths as content may port, and pays criterion 4's price for
860
+ the parity oracle instead. The residual that distinction leaves is real and is
861
+ answered rather than absorbed — after such a port a corpus-walk regression
862
+ silences those gates over the crate's own sources with no shell auditor left to
863
+ see it, and the answer is the widened `bad/` fixture cases, which red on exactly
864
+ that edit and which a consumer receives and can run without the crate
865
+ (§Fixture-pair discipline).
866
+
632
867
  **The declared read set's honest limit, stated rather than discovered.** Unit test
633
868
  A's coverage is the fixture corpus. That is bounded by a contract rather than by
634
869
  luck — every ported gate carries a `good/`+`bad/` pair (§Fixture-pair discipline),
@@ -640,8 +875,11 @@ instead of trusting it as empty. Test A holds a `?` to its arity, not to nothing
640
875
  each one absorbs a single unmatched observed root, so a second undeclared walk still
641
876
  reds.
642
877
 
643
- **Where that verification runs, and where it does not.** Both unit tests are
644
- `cargo test`, so they run in this repo and in CI and **never in a consumer tree**:
878
+ **Where that verification runs, and where it does not.** Those unit tests are
879
+ `cargo test` — and so is the third registry-data test, the one holding each
880
+ member's declared owning kit to the descriptor that kit's `checks/` actually
881
+ carries (§check-gate-substrate-parity, assertion B's owner column) — so they run
882
+ in this repo and in CI and **never in a consumer tree**:
645
883
  `native/` ships no `checks/` and no `smoke/`, so it is not a kit root and no
646
884
  consumer ever receives the crate source — there is nothing there to run them
647
885
  against and nothing there to edit. That is not a weakening; it makes the division
@@ -656,7 +894,10 @@ identically to one `cargo` produced.
656
894
  Gates whose corpus is kit directories, smoke scripts or hooks
657
895
  (`check-kit-registration`, `check-smoke-entry-guard`, `check-hook-exec-bit`,
658
896
  `check-test-hermetic`, `check-assertion-strength`) are not substrate-sensitive
659
- by the derivation above and are untouched.
897
+ by the derivation above and owe no disposition row. Four of them have since
898
+ ported (§The kit-roots `gate_kit_roots` cohort) and the claim is unchanged by
899
+ that: this table is about whose *assertion* a port could end, never about which
900
+ members are on which substrate.
660
901
 
661
902
  **Reference-only implementations.** The section carries one further disposition,
662
903
  in the other direction: an implementation the binary carries that **no descriptor
@@ -751,21 +992,119 @@ re-deciding, and only the operator reopens a closed ruling.
751
992
 
752
993
  ### The port-candidate criteria
753
994
 
754
- A gate is a candidate only if **all seven** hold. The first four were stated at
995
+ **These seven are an engineering roster and an ordering signal, never an
996
+ eligibility screen.** The operator ruling of 2026-08-09 (TRAJECTORY.md §PRIORITY
997
+ DIRECTIVE — the port track's sequence) ports the whole corpus, so none of them
998
+ excludes a gate from the port. Each does two jobs instead: it **names an
999
+ engineering problem the port owes** for the gates that fail it, and it **orders
1000
+ the work** — a gate clearing all seven is cheap to port today, a gate failing one
1001
+ carries exactly the cost the criterion describes. The first four were stated at
755
1002
  design time; the last three were paid for, and each is named with what it cost.
756
1003
 
757
1004
  1. **Registered** in `gates.list` — an unregistered gate proves no dispatch.
758
1005
  2. **Carries a fixture pair** — parity between substrates is proved by running
759
1006
  both against the same cases, never asserted.
1007
+
1008
+ **A `# no-fixture:` member satisfies this by a constructed scenario, not by
1009
+ an exemption.** Where the state under test has no static representation — a
1010
+ HEAD-vs-worktree diff, whose committed fixture has HEAD == worktree — the
1011
+ pair is unavailable but the criterion's actual demand is not: *the same
1012
+ cases, both substrates, while both implementations exist*. The port
1013
+ therefore stands the state up in a throwaway tree, runs both implementations
1014
+ over it, and compares bytes and exit codes. That is a **stronger** oracle
1015
+ than the pair it replaces, not a weaker one, because the scenario reaches
1016
+ branches a committed case cannot — the loss case itself, and the
1017
+ no-repository branch most parity harnesses skip. It is bought once, at port
1018
+ time, with delta (9)'s standing limit: it proves the two agree then, and
1019
+ nothing machine-held keeps them agreeing after, which is why the shell
1020
+ original is deleted for a ported member rather than left running beside it.
760
1021
  3. **`tier=precommit`** — it lands in the generated hook, so a green
761
1022
  `check-graph` after the port is end-to-end proof the manifest survived the
762
1023
  substrate change.
763
- 4. **Not itself substrate-sensitive** — porting a gate that audits gate sources
764
- makes the parity proof self-referential.
1024
+ 4. **Its assertion target is not gate source** — porting a gate that audits gate
1025
+ sources makes the parity proof self-referential: the corpus the
1026
+ cross-substrate comparison runs over is changed by the very port being
1027
+ compared.
1028
+
1029
+ **The discharge is the fixture corpus, and it is general rather than one
1030
+ cohort's trick.** A member failing this criterion still ports; what it owes is
1031
+ an oracle the port cannot invalidate, and the pair is the only corpus with that
1032
+ property — `gate-tests` is pruned from every live-tree walk, so no port can add
1033
+ or remove a file inside it (§Fixture-pair discipline, which owns the widening
1034
+ rule and its `expect.txt` discipline). The condition is that the pair carry
1035
+ **every arm of the derivation being ported**: a gate-source auditor whose cases
1036
+ are all `.sh` proves the `.sh` branch and leaves the descriptor and
1037
+ implementation branches resting on a live tree that is green because it is
1038
+ clean. Widen first, then port — a port answering only the criterion's sentence
1039
+ ships the hole the sentence was pointing at.
1040
+
1041
+ **The live-tree arm is demoted from proof to smoke for such a member, and the
1042
+ demotion is recorded here so the next gate-source cohort inherits it.** Earlier
1043
+ cohorts proved parity on the fixture pairs, the live tree and the edge roots and
1044
+ treated the three as one oracle. For a member whose assertion target is gate
1045
+ source the live-tree arm *cannot* be a proof: assertion A forbids a descriptor
1046
+ and a script coexisting in one resolve dir, so the comparison necessarily runs
1047
+ on the pre-descriptor tree — a corpus the port then changes, with no second
1048
+ implementation left to notice a disagreement. The arm is retained, because it is
1049
+ cheap and it finds real disagreements; its verdict is recorded as **no
1050
+ disagreement found on the pre-descriptor tree**, never as *parity proved*. The
1051
+ edge-root arm keeps its own separate value and the comment cohort is the worked
1052
+ case: it disagreed, and the compiled side was the correct one — a `..` scan root
1053
+ made the shell's kit-root prune compare an unnormalised file path against a
1054
+ normalised root and prune nothing at all. A disagreement is a finding to
1055
+ adjudicate against the rule, never a defect in whichever side moved.
1056
+
1057
+ **This is not §Meta-gate conservation's *substrate-sensitive* set, and reading
1058
+ the two as one term is the defect this wording exists to close.** That set is
1059
+ derived from a member's expanded `couples=` and is deliberately **trigger**-shaped:
1060
+ assertion C's job is anti-vacuity — a member whose *re-run trigger* reaches a
1061
+ gate declaration must carry a disposition, so a port cannot silently end an
1062
+ assertion — and over-selection there costs one table row, which is why it is
1063
+ wide on purpose (§check-gate-substrate-parity). Criterion 4 asks a different
1064
+ question and binds where **a registry member's declaration path lies inside
1065
+ the corpus the gate scans as content**. A member the derivation selects fails
1066
+ criterion 4 only where that is *also* true of it, and there are two ways it
1067
+ commonly is not: a **reverse-trigger** couple, named only so that a script
1068
+ edit re-runs the gate, is never read as content at all; and a **content couple
1069
+ wider than the walk**, whose glob covers declaration paths the gate's own
1070
+ population predicate never reaches, is content-shaped and still not over gate
1071
+ source. A conservation row and a criterion-4 hold are therefore independent
1072
+ facts about a member, which is what they always were.
1073
+
1074
+ **The worked instance is live and machine-derived, which is why this predicate
1075
+ is stated here rather than reasoned out per port.** Running assertion C's
1076
+ derivation over the live registry reports `check-template-registry-parity`
1077
+ substrate-sensitive: its `kit:*/*.sh` expands to `gate-sdk/*/*.sh`, which
1078
+ covers `gate-sdk/checks/check-shellcheck.sh`. It is the second kind of
1079
+ over-selection above — the gate does read `*.sh` names as content, but only
1080
+ under a `<kit>/<name>/` directory that a sibling `<kit>/templates/<name>.list`
1081
+ registers, and no kit ships a template registering `checks/`. Against this
1082
+ tree that walk reaches one live registry, `drift-kit/kpis/`, with
1083
+ `gate-sdk/templates/msg-patterns.list` skipped for want of a sibling — neither
1084
+ holding a gate declaration, which is what its conservation row already records.
1085
+ Under the borrowed term the member reads as a criterion-4 failure and under
1086
+ criterion 4's own predicate it does not. The corpus is derived from the tree,
1087
+ so the verdict is taken by running the derivation at cohort-cut time, never
1088
+ read off this paragraph: a consumer whose kit ships `templates/checks.list`
1089
+ beside its `checks/` would put declaration paths inside that walk, and there
1090
+ criterion 4 would bind.
1091
+
1092
+ **The second machine-derived instance is the other over-selection kind**, so
1093
+ both now have one. Run at the ERE cohort's cut, assertion C reports
1094
+ `check-install-claim` and `check-payload-claim` substrate-sensitive through a
1095
+ `couples=` glob `scripts/*.sh` that covers a consumer's gate wrapper. That
1096
+ couple is a **reverse trigger**: it exists so an edit to the consumer's
1097
+ transport and disclosure emitters re-runs the gate consuming them, and neither
1098
+ gate reads a declaration path as content — what both scan is the governed
1099
+ markdown set. Criterion 4 binds on neither, and both carry the conservation row
1100
+ the reverse-trigger case earns.
765
1101
  5. **Its vendored form stays runnable.** *Measured, not reasoned.* A `.gate`
766
1102
  descriptor under a vendoring kit root reaches every consumer; the binary does
767
1103
  not, because `native/` ships no `checks/` or `smoke/` and that predicate is
768
- what makes a root directory a kit. `gate_command` is fail-closed on an absent
1104
+ what makes a root directory a kit. That asymmetry has a second worked
1105
+ consequence beside the vendored-consumer one: a **harness** that vendors kits
1106
+ per ref cannot vendor the binary per ref either, so it must build one itself or
1107
+ silently pair one ref's shell with another's artifact (§upgrade-smoke). `gate_command` is fail-closed on an absent
769
1108
  binary and its exit 2 is a **dispatch-harness** error, so it takes down the
770
1109
  *calling battery*, not just its own member. A freshly vendored consumer's
771
1110
  pre-commit battery therefore died on invocation. **The condition that
@@ -782,17 +1121,153 @@ design time; the last three were paid for, and each is named with what it cost.
782
1121
  (§Consumer payload). The placing half is **built** too: `init` resolves the host
783
1122
  to a target, refuses on a digest mismatch rather than warning, and
784
1123
  omits-and-declares a member whose platform the roster carries no artifact for
785
- (`native-artifact-install-path`). Both halves of the model therefore ship. What a
786
- second port waits on is not a build: the first tag publishing binaries as Release
787
- assets is the operator's call (TRAJECTORY.md), so no adopter can reach a prebuilt
788
- binary until it is cut. The placement branch does not wait on that tag for its
1124
+ (`native-artifact-install-path`). Both halves of the model therefore ship, **and
1125
+ the criterion is met rather than merely ruled**: `v0.22.0` published the binary
1126
+ and its digest sidecar as Release assets, so a vendored consumer whose host the
1127
+ roster carries an artifact for resolves, verifies and runs the ported member.
1128
+ The criterion is satisfied **per target, not globally** — one declared triple has
1129
+ a published artifact today, and a host with none is omitted-and-declared rather
1130
+ than dispatched into an absent binary, which is the branch that keeps a freshly
1131
+ vendored battery alive on an uncovered platform.
1132
+ The placement branch never waited on that tag for its
789
1133
  evidence — `consumer-smoke-artifact-arm` gave the consumer smoke a leg that builds
790
1134
  the binary and packs it, so every invocation drives selection, pre-write digest
791
- verification and placement against a real artifact
1135
+ verification and placement against a real artifact; since
1136
+ `port-criterion-aggregate-cost-blindness` that artifact rides the **main**
1137
+ payload, so every profile the smoke installs takes the placement branch
792
1138
  (installer/README.md §The consumer smoke).
1139
+
1140
+ **The criterion is priced per member and paid per cohort**, because the
1141
+ quantity a per-member statement cannot see is not any member's runnability. A
1142
+ cohort's aggregate cost is the **binary-less residual**: what a consumer whose
1143
+ payload carries no artifact for its host still catches once every member of the
1144
+ cohort is a descriptor. Seven `spec_manifest_files` members ported in one batch
1145
+ (`f602642d`) each passed the per-member reading, and the aggregate left such a
1146
+ consumer with no gate asserting markdown-link liveness at all.
1147
+
1148
+ **The residual is the omitted roster and its count, and that is what a cohort
1149
+ records.** It is **measured, never reasoned**, and the instrument is
1150
+ `installer_smoke`'s binary-less leg: it installs a profile from an
1151
+ artifact-free payload, derives the set that payload dispatches to a binary from
1152
+ the consumer's own vendored tree, and asserts the consumer's `gates.list`
1153
+ declares exactly that set, at a **non-zero** count
1154
+ (installer/README.md §The consumer smoke). The quantity is therefore
1155
+ machine-derived and machine-asserted-complete, and a cohort records **the
1156
+ roster it grew**, against the post-cohort registry, with its amendment ruling
1157
+ whether that roster is acceptable. **N members each individually runnable is
1158
+ not a discharge**, and citing the per-member reading as one is the defect this
1159
+ half exists to name.
1160
+
1161
+ **When the instrument rides the same iteration as the cohort, the measurement
1162
+ waits for it.** The binary-less leg is what prints the roster, so a cohort
1163
+ landing in an iteration that is also repairing that leg measures its price
1164
+ **after** the repairing entry's amendment lands. Measuring before it reads a
1165
+ residual that is not the cohort's own: an artifact-free profile is then the
1166
+ accidental no-artifact case rather than a deliberate measurement, and the two
1167
+ are indistinguishable from the outside. A build session batching such an
1168
+ iteration inherits the ordering rather than discovering it. A second ordering
1169
+ rides with it: the instrument packs a payload stamped with a commit, so it
1170
+ refuses a dirty worktree and the measurement runs **after** the cohort's own
1171
+ commit — from a clean checkout of it when a concurrent session holds the tree
1172
+ dirty. That checkout is reached **by path, and cwd does not select it**: the
1173
+ smoke resolves its own tree from its script path and passes it to the packer
1174
+ as `--root`, so invoking `<clean-checkout>/installer/consumer-smoke/run-smoke.sh`
1175
+ from anywhere measures that checkout. The instruction this paragraph carried
1176
+ until `pack-installer-root-provenance` landed was the exact opposite — "by
1177
+ cwd, not by path", on the packer's old cwd-derived root — and it is retired
1178
+ rather than merely superseded: following it now steers the measurement at
1179
+ whichever tree the shell happened to sit in. Cleanliness is still tested
1180
+ per pack invocation against the resolved root, so a concurrent session
1181
+ dirtying *that* checkout mid-run still refuses, naming the root it read.
1182
+
1183
+ **What the value arm is, and what it is not.** It plants a real defect in
1184
+ adopter-authored prose and asserts that some profile below the maximum catches
1185
+ it. That is a claim about **the product an adopter installs** — not about the
1186
+ residual — and this criterion once named it the residual's oracle. It read as
1187
+ one only while the smoke's main loop packed no artifact: every profile was then
1188
+ an uncovered-platform install by accident of the harness, and the accident was
1189
+ borrowed as a contract. The cost is on record. A cohort satisfied this
1190
+ criterion per member, the aggregate emptied a class, and the assertion that
1191
+ noticed was the one about the product — which then read as broken rather than
1192
+ as reporting (`port-criterion-aggregate-cost-blindness`). Two claims, two arms,
1193
+ and neither feeds the other's verdict.
1194
+
1195
+ The verdict is a **price, not a screen** — the roster's opening paragraph and
1196
+ the ruling it rests on
1197
+ (TRAJECTORY.md §PRIORITY DIRECTIVE — the port track's sequence)
1198
+ forbid reading any criterion as an
1199
+ eligibility gate. A cohort that empties a value class still lands, carrying a
1200
+ designed answer named in its amendment: restore the class shell-side, make it
1201
+ binary-gated by a declaration the adopter receives, or accept and document.
1202
+ What a cohort may not do is land **unpriced**, and while an aggregate price
1203
+ stands unpaid a held `fail` row in `.workflow/validate-baseline.txt` is what
1204
+ keeps it visible — a machine-held record of an unpaid price. Read the file,
1205
+ not this sentence, for whether any such row stands: the `installer_smoke`
1206
+ row this clause was first written against was earned out in `97683db2` and
1207
+ reads `pass` today, so the mechanism is live and its founding instance is
1208
+ not.
1209
+
1210
+ **Its honest limit, narrowed rather than deleted.** The *number* is
1211
+ machine-derived and its completeness is machine-asserted, so a cohort can no
1212
+ longer record a residual it never measured. What stays prose is the
1213
+ **judgment**: nothing forces a cohort to decide that the roster it grew is
1214
+ acceptable, because a gate that checked that would have to know what a cohort
1215
+ is, and a cohort is a queue-and-amendment concept the gate layer does not
1216
+ carry.
1217
+
1218
+ **A cohort can grow the roster by zero, and the lifecycle-kit cohort is the
1219
+ worked case — recorded here because the reason is a property of the criterion
1220
+ rather than of that cohort.** Measured against the post-cohort registry from a
1221
+ clean checkout of the cohort's own commit, the binary-less leg reports the same
1222
+ **seven** omitted members the ERE cohort recorded, and none of the ten new
1223
+ descriptors is among them. The reason is the **install disposition**, not the
1224
+ narrowness of the profile the leg installs: every member of that cohort is
1225
+ `never` or `on-surface`, and neither is seeded into a freshly initialised
1226
+ consumer's registry (§The install disposition). A member no `init` registers
1227
+ cannot be a member an artifact-free `init` loses, so the leg — whose assertion
1228
+ is over the set *that payload dispatches to a binary* in the consumer's own
1229
+ registry — correctly reports no growth. The judgment the criterion leaves to
1230
+ the cohort: acceptable, and with its limit stated rather than banked. The
1231
+ instrument measures the **install-time** roster, so an adopter who later brings
1232
+ an `on-surface` member's surface into existence on a binary-less host does lose
1233
+ it, and receives it declared. That is the same shape as the ERE cohort's
1234
+ profile-scoped limit reached through a different door, and it is what a cohort
1235
+ of `on-surface` members should expect to read: a zero here is a real
1236
+ measurement about `init`, never a claim that the members are free.
1237
+
1238
+ **And a cohort can grow it, which the comment cohort is the first to do — the
1239
+ same instrument, the opposite reading, and the install disposition again what
1240
+ explains the number.** Measured against the post-cohort registry from a clean
1241
+ checkout of that cohort's own commit, the binary-less leg reports **ten**
1242
+ omitted members where the two cohorts before it reported seven. The growth is
1243
+ **three** against four ported members, and the missing fourth is not an
1244
+ accounting error: `check-deprecation-task` is `on-surface`, so no `init` seeds
1245
+ it and no artifact-free `init` can lose it, while its three `zero-config`
1246
+ siblings are seeded and therefore lost. A cohort's growth is the count of its
1247
+ **seeded** members rather than of its members — the same predicate that made the
1248
+ lifecycle cohort's growth zero, read in the direction that grows.
1249
+
1250
+ The **judgment** that cohort's amendment owed is ruled **accept and declare**.
1251
+ On an uncovered platform an adopter loses the governed comment surface
1252
+ entirely — the comment tier, the pointer resolution and the `TODO(task:)`
1253
+ liveness together — and receives that omission declared in its own `gates.list`
1254
+ rather than as a broken battery. The two rivals are refused with cause:
1255
+ restoring the class shell-side reinstates the exact duplication the cohort's
1256
+ criterion-6 discharge deletes, which enforcement-first ranks below removal, and
1257
+ a binary-gated declaration is what the omit path already is. The honest limit
1258
+ rides with the ruling rather than behind it — this is a real subtraction for an
1259
+ uncovered host, it lands because the 2026-08-09 directive ports the whole
1260
+ corpus, and it shrinks as targets are published rather than being repaired by
1261
+ the cohort that caused it.
793
1262
  6. **Its corpus derivation is self-contained**, unless the duplication the port
794
- creates is machine-held. Found at re-selection, one step earlier than
795
- criterion 5: `check-spec-fence-balance`, which the amendment named, derives
1263
+ creates is machine-held. **The roster for this criterion is derived too, and
1264
+ by the same tool criterion 7 uses**: `bash gate-sdk/bin/port-blockers.sh
1265
+ --group` partitions the still-shell members by derived corpus derivation
1266
+ (§port-blockers), so *which members share a derivation* is read off a run
1267
+ rather than answered by hand, per member, at cohort-cut time. What the arm
1268
+ emits is a decidable partition plus a counted remainder; the *unless* clause
1269
+ below stays a judgment no column reports. Found at re-selection, one step
1270
+ earlier than criterion 5: `check-spec-fence-balance`, which the amendment named, derives
796
1271
  its corpus from a config-driven shell derivation and is not `mode=staged`, so
797
1272
  a ported form must re-implement that derivation with nothing holding the two
798
1273
  copies together. `check-action-pinning` was selected instead.
@@ -800,24 +1275,168 @@ design time; the last three were paid for, and each is named with what it cost.
800
1275
  The qualification the clause carries — *unless the duplication the port
801
1276
  creates is machine-held* — is what admits a shared-library corpus call like
802
1277
  `gate_find`, and the distinction is not the presence of a shared call but
803
- whether a machine notices when the two sides diverge. The crate's single
804
- sanctioned walk is the binary-side counterpart and its prune-dir default is
805
- held against `lib/gate.sh`'s by an **executed** unit test (§Meta-gate
806
- conservation for the binary substrate, the `check-knob-default-coupling`
807
- row). `check-spec-fence-balance`, the counter-example the criterion was
808
- written against, is a *config-driven* derivation with nothing holding its two
809
- copies together at all.
1278
+ whether a machine notices when the two sides diverge.
1279
+ `check-spec-fence-balance`, the counter-example the criterion was written
1280
+ against, is a *config-driven* derivation with nothing holding its two copies
1281
+ together at all.
1282
+
1283
+ **For a bridged knob the criterion is discharged by construction, which is
1284
+ stronger than the qualification asks.** The config bridge (§lib/gate.sh)
1285
+ carries the *resolved* value of a kit knob across the dispatch seam, so there
1286
+ is exactly **one** place that value is computed — the kit's shell library —
1287
+ and the binary holds no default to drift. The qualification is satisfied in
1288
+ its strongest form: the duplication is not machine-held, it is *absent*. That
1289
+ is why the crate's prune-dir default and the unit test holding it equal to
1290
+ `lib/gate.sh`'s were deleted rather than extended when the bridge landed
1291
+ (§Meta-gate conservation for the binary substrate, the
1292
+ `check-knob-default-coupling` row). The departure from the ruling that framed
1293
+ this as "a parity discharge holding the Rust default to the shell default" is
1294
+ recorded rather than quietly taken, because it is an improvement and a later
1295
+ reader must not restore the parity test as a missing piece.
1296
+
1297
+ **The qualification's *other* disposition, worked — and the two are stated
1298
+ together so neither reads as the general rule.** The bridged-knob case above
1299
+ satisfies the clause in its strongest form, by making the duplication *absent*;
1300
+ the `spec_comment_surface` cohort reached the same form by the other road, its
1301
+ primitive's caller set emptying at the port so the shell original was deleted.
1302
+ Neither road is available where **live shell consumers survive the port**:
1303
+ queue-kit's `lib/queue.sh` still has seven, so its `queue_live_slugs` and its
1304
+ section regexes are permanently dual-implemented and the criterion's *unless*
1305
+ is what admits them. What discharges it there is an executed cross-substrate
1306
+ comparison rather than a deletion — one canned corpus fed to both holders, their
1307
+ classification of it compared byte for byte, run by the owning kit's scenario
1308
+ runner (queue-kit/SPEC.md §lib/queue.sh). Two facts a later port should read off
1309
+ this pair: the disposition is chosen by **whether the shell caller set empties**,
1310
+ not by taste; and *machine-held* means a standing oracle, so a parity proof taken
1311
+ once at port time satisfies criterion 2 and never this one — it expires at the
1312
+ next edit to either side, which is precisely the failure the clause names.
1313
+
1314
+ **A dead twin is deleted, not held**, and the same enforcement-first ordering
1315
+ decides it: where a shell helper has no caller and its compiled counterpart is
1316
+ live and tested, a standing parity obligation gates a duplication that removal
1317
+ disposes of. That is why queue-kit's done-slug helper lives only in the crate
1318
+ (queue-kit/SPEC.md §lib/queue.sh). The bound is **undocumented surface** — a
1319
+ helper no SPEC section names — which is what separates such a helper from the
1320
+ documented globals beside it, none of which this disposition reaches.
1321
+
1322
+ **Glob semantics, committed once here rather than re-decided per port.** The
1323
+ bridge transports strings and interprets nothing — it has no glob matcher,
1324
+ because bridging a knob is not deriving a corpus from one. The commitment is
1325
+ for the reader that will interpret them: a Rust glob matcher over a bridged
1326
+ knob is **`**`-capable (globstar semantics)**, matching the `shopt -s
1327
+ globstar` the shell side enables in `canon-kit/lib/spec.sh`. The evidence and
1328
+ its limit: this consumer's arrays use no `**` today, so plain-glob semantics
1329
+ would pass here — but the shell side enables `globstar`, so the config
1330
+ surface *permits* one, and a plain-glob reader would silently mis-scan the
1331
+ first consumer who writes one. Committing to the wider semantics costs
1332
+ nothing today and closes a silent-divergence class; a porting unit inherits
1333
+ the commitment rather than re-deciding it.
810
1334
  7. **Its rule invokes no external program the payload does not carry.** *Found
811
- at first-cohort selection.* `check-action-run-shell` clears all six above and
812
- is still unportable: it requires `shellcheck` on `PATH`, refusing when it is
813
- absent and invoking it per extracted block, so a compiled form would move a
814
- toolchain requirement from this repo's contributors onto every adopter — the
815
- dependency floor TRAJECTORY.md objective 1 exists to collapse, against an
816
- adopter objective 5 admits who will not install a toolchain. git is the one
817
- sanctioned exception, because it is the floor. Recorded rather than left as a
818
- silent skip, because every mechanical screen puts that gate *in*: it shares
819
- the cohort's corpus family and its walk and reads no knob, and the fact that
820
- excludes it is one none of the six criteria sees.
1335
+ at first-cohort selection.* The programs the payload is entitled to assume are
1336
+ `GATE_SDK_PROGRAM_FLOOR` (§lib/gate.sh); git is on it as the one sanctioned
1337
+ exception, because it is the floor. Under the 2026-08-09 ruling a gate that
1338
+ fails this carries **the largest named piece of port work**, not a permitted
1339
+ exclusion: the dependency is designed away — embedded, replaced, or the rule
1340
+ itself changed — and that design is the porting session's, not this section's.
1341
+ A *blocker* here is therefore work the port owes, in the sense the roster's
1342
+ opening paragraph fixes for all seven; it never reads on whether a gate ports.
1343
+
1344
+ **What it adjudicates is exactly one thing: whether the payload carries the
1345
+ program a rule invokes.** Whether the *target* of a sanctioned spawn is itself
1346
+ ported is a **cohort-composition** question and criterion 7 does not reach it —
1347
+ a rule shelling out to `bash <emitter>` clears this criterion, because `bash`
1348
+ is on the floor, however unported that emitter is. The clause is written out
1349
+ because the closing sentence above only implies it, and a reader applying the
1350
+ derived roster literally will otherwise label such a hold criterion 7 and put
1351
+ the design work behind the wrong door.
1352
+
1353
+ **The roster is derived and lives in no document, including this one** —
1354
+ `bash gate-sdk/bin/port-blockers.sh` reports it against the tree at the moment
1355
+ a session sequences a cohort. That is a correctness requirement, not a
1356
+ preference for freshness. A gate's requirement need not be spelled in its
1357
+ source at all: `check-docs-render-fidelity`'s is the first element of
1358
+ `SITE_KIT_RENDERER`'s default (site-kit/SPEC.md §lib/site.sh), and because that
1359
+ knob is consumer config, a consumer who repoints it changes which external
1360
+ program that gate requires. **No literal roster is true for every consumer**,
1361
+ so a freshness-gated copy here would be gated against *this* repo's
1362
+ configuration while reading as a general claim — a defect a stale-roster gate
1363
+ could not detect, which is why none is shipped.
1364
+
1365
+ `check-action-run-shell` is named as the **worked example** rather than as the
1366
+ roster. It clears all six criteria above and still cannot port as written: it
1367
+ requires `shellcheck` on `PATH`, refusing when it is absent and invoking it per
1368
+ extracted block, so a compiled form would move a toolchain requirement from this
1369
+ repo's contributors onto every adopter — the dependency floor TRAJECTORY.md
1370
+ objective 1 exists to collapse, against an adopter objective 5 admits who will
1371
+ not install a toolchain. Recorded rather than left as a silent skip, because
1372
+ every mechanical screen puts that gate *in*: it shares the cohort's corpus
1373
+ family and its walk and reads no knob, and the fact that stops it is one none
1374
+ of the six criteria sees.
1375
+
1376
+ **`check-gate-assertions` requires `paste`, and how it surfaced is the part
1377
+ worth keeping.** The program is not on the floor, so this is owed port work of
1378
+ exactly the shape the worked example above describes — a dependency designed
1379
+ away, embedded or replaced. It was **invisible for the roster's whole life**:
1380
+ the scan abandoned that declaration before reaching the call and reported the
1381
+ member clean, which is the failure mode §port-blockers now records under its
1382
+ repaired tokenizer rules. Named here rather than in a commit message because a
1383
+ member the roster reported clean and now reports blocked reads like drift
1384
+ unless the reason is written down — and because it is the standing evidence
1385
+ that a *derived* roster still has to be re-derived by a **repaired**
1386
+ derivation, never trusted because it is derived.
1387
+
1388
+ **`check-crate-arms` is a different case under the same criterion, and it is
1389
+ named so no later cohort reads it as owed work.** Its rule is an invocation of
1390
+ `cargo`, so criterion 7 blocks it — but unlike the worked example above, the
1391
+ dependency cannot be designed away, because criterion 4 forbids the port
1392
+ independently: a gate that runs `cargo test` over the crate cannot live inside
1393
+ the crate it tests, or the artifact under test would be the artifact asserting.
1394
+ It is a member the port **does not take**, which is a verdict this roster can
1395
+ record without contradicting its opening claim that a blocker is never an
1396
+ eligibility screen (§check-crate-arms).
1397
+
1398
+ **The report's honest bound is its undecidable count, and that count grows with
1399
+ the port.** A member declaring through a `.gate` descriptor has no shell rule to
1400
+ parse and no `--needs` answer yet (§The `.gate` descriptor), so it is counted
1401
+ undecidable rather than reported clean — the §check-reads-couples precedent, a
1402
+ root the tool cannot bound declares `?` rather than guessing. The count is the
1403
+ share of the corpus the report cannot speak for, and every port moves a member
1404
+ into it until the binary answers `--needs`. That is the pressure the sequencing
1405
+ below rests on, and it is why the arm is scheduled rather than left open.
1406
+
1407
+ **A born-native gate is the first member these criteria do not describe, and only
1408
+ some of them bind on it.** The roster is stated over *ports* — a gate that exists
1409
+ in shell and is being moved — so a gate landed as a Rust module and a `.gate`
1410
+ descriptor with no shell original (canon-kit/SPEC.md §check-measured-claim is the
1411
+ first, operator-ruled 2026-08-12) reads them as follows, and a later reader must
1412
+ not apply the parity criterion to a member that has no second substrate:
1413
+
1414
+ - **1 and 3 bind unchanged.** It registers in `gates.list` and it lands in the
1415
+ generated hook, so `check-graph` proves its manifest the same way.
1416
+ - **2 does not bind.** Parity is *between substrates*, and a gate with one
1417
+ implementation has none to prove against. Its `good/`+`bad/` pair is its whole
1418
+ oracle, exactly as it would be for a new shell gate — which is a weaker
1419
+ guarantee than a ported member's parity run, and the reason a born-native gate
1420
+ is a design ruling rather than a default.
1421
+ - **4 does not bind** where the gate's **assertion target** is not gate source —
1422
+ criterion 4's own predicate above, applied unchanged. A **conservation-table row
1423
+ may still be owed**, because `couples=` can reach a declaration-path-processing
1424
+ oracle transitively, and that is assertion C's question rather than this
1425
+ criterion's. Stated as two facts rather than one conjunction because the
1426
+ conjunction was tried and falsified: `check-measured-claim`, the first
1427
+ born-native member, scans the governed-prose surface and clears criterion 4,
1428
+ while its `couples=` names `scripts/*.sh` — an emitter that treats declaration
1429
+ paths as a set — and it therefore earns a row (§Meta-gate conservation for the
1430
+ binary substrate).
1431
+ - **5 binds hardest, and it is the price.** A `.gate`-declared member is omitted
1432
+ from the `gates.list` of a consumer whose host the roster carries no artifact
1433
+ for, so on an uncovered platform a born-native gate does not run *where a shell
1434
+ gate would have*. For a port that trade is neutral — the shell form is deleted
1435
+ either way; for a born-native gate it is a real subtraction against the
1436
+ alternative of shipping shell, and it is what the operator ruling weighs.
1437
+ - **6 and 7 bind unchanged**, and a born-native gate is designed to clear them at
1438
+ authoring time rather than owing the work afterwards, which is most of why it is
1439
+ cheap: the substrate it needs already exists or it is not born native.
821
1440
 
822
1441
  ### The first cohort, and the rule that selects the next
823
1442
 
@@ -843,16 +1462,40 @@ leave the stronger one unwritten.) `check-action-run-shell` is the near miss and
843
1462
  is criterion 7's own case, above.
844
1463
 
845
1464
  **The next cohort is the largest set of criteria-clearing gates sharing one
846
- corpus derivation.** Shared derivation is the axis because it is what made this
847
- cohort cheap — the walk is ported once and proved N times, and the parity
848
- comparison is over one corpus shape rather than N. Selecting by kit, by profile,
849
- or by whatever is easiest next all re-import work this cohort only paid once. Two
850
- standing bounds the criteria do not carry: **criterion 4 is not relaxed** —
851
- TRAJECTORY.md refuses that for the first cohort with a named re-entry condition
852
- (the criterion-clearing corpus exhausted *and* the parity oracle held off the
853
- shell substrate), and neither holds; and **criterion 7 binds** — a gate whose
854
- rule shells out to anything but git is out until its dependency is designed away,
855
- never ported and patched later.
1465
+ corpus derivation** — an ordering rule, not a bound: the 2026-08-09 ruling ports
1466
+ every gate. **The instrument that makes the rule applicable is
1467
+ `bash gate-sdk/bin/port-blockers.sh --group`** (§port-blockers): it partitions
1468
+ the still-shell members by derived corpus derivation, largest group first, with
1469
+ the mechanically derivable criterion columns beside each member — so "largest",
1470
+ "criteria-clearing" and "sharing one corpus derivation" are each read off a run
1471
+ rather than off a session's reading of the tree. Its output is advisory and its
1472
+ key is deliberately not fused with `couples=`, so a group whose members' corpora
1473
+ visibly diverge is a **finding the selecting session adjudicates**, never a
1474
+ cohort the tool cut. A cohort that retires a **blocker** several later cohorts are queued
1475
+ behind outranks a larger one that retires none, which is the exception §The POSIX
1476
+ ERE matcher works and `check-roadmap-fresh`'s hold worked before it. Shared derivation is the axis because it is what made this cohort
1477
+ cheap: the walk is ported once and proved N times, and the parity comparison is
1478
+ over one corpus shape rather than N. Selecting by kit, by profile, or by whatever
1479
+ is easiest next all re-import work this cohort only paid once. The gates failing
1480
+ criterion 4 or 7 are **sequenced last and budgeted for**, because each carries a
1481
+ design problem — a self-referential parity oracle, an external program on `PATH`
1482
+ — that the port owes an answer to rather than a waiver. Neither is ported and
1483
+ patched later; both are designed, then ported.
1484
+
1485
+ **A primitive's *remaining* consumers are derived, never recorded here.** Each
1486
+ cohort section below records the members it landed, which answers what was ported
1487
+ and not what is left — and the leftover is the number a session sizing the next
1488
+ cohort actually needs. It is one command, because a ported gate leaves a `.gate`
1489
+ descriptor beside its former script: the still-shell consumers of a shared
1490
+ derivation are the `*/checks/*.sh` files naming it that have **no** sibling
1491
+ `.gate`. Deriving it beats a roster that would rot at every cohort
1492
+ (derivation-first), and stating the command once is what stops each sizing
1493
+ session re-inventing it. **`--group` is the whole-corpus form of the same
1494
+ doctrine, not a rival instrument**: the one-liner above answers *what is left of
1495
+ one named primitive*, and `--group` answers *how the whole remaining registry
1496
+ partitions* without being told a primitive to ask about. A session that already
1497
+ has a primitive in hand uses the one-liner; a session choosing which primitive to
1498
+ take next runs the arm.
856
1499
 
857
1500
  **What this cohort landed.** Both rules ship as
858
1501
  compiled subcommands, proved byte-identical against the shell gates on each
@@ -894,6 +1537,807 @@ because a consumer tree does not verify a build it did not make. A port that
894
1537
  lands descriptors checks both halves: which trees *declare*, and which trees
895
1538
  *register*.
896
1539
 
1540
+ **The second cohort was ruled by kit, and both selectors picked the same set** —
1541
+ recording why is what keeps the ordering rule above usable rather than quietly
1542
+ overridden. The operator ruled 2026-08-11 that the next cohort is **queue-kit,
1543
+ taken as a whole kit**, under TRAJECTORY.md §PRIORITY DIRECTIVE — the port track's sequence.
1544
+ The rule above warns in the same breath that selecting by kit re-imports work a
1545
+ cohort only pays once. It does not here, because queue-kit is the kit whose corpus derivation *is*
1546
+ the queue file: read off the `# graph:` manifests, its members couple
1547
+ `TASK-QUEUE.md` alone but for two — `check-roadmap-fresh`, which adds the roadmap
1548
+ projection and the queue config its own `trigger=` names, and
1549
+ `check-queue-slug-liveness`, which names `kit:*.sh` only as a reverse trigger, the
1550
+ shape the disposition table already records for it (§Meta-gate conservation for
1551
+ the binary substrate). Every member is `dir=one valve=none tier=precommit`, so
1552
+ criterion 3 is clear kit-wide and a green `check-graph` after the port is
1553
+ end-to-end proof the manifest survived the substrate change. The kit boundary and
1554
+ the corpus boundary coincide **here**; a later selector must not read this as
1555
+ licence to take a kit whose gates share nothing.
1556
+
1557
+ **Two members are held on shell, and the ground is sequencing rather than
1558
+ exclusion.** The whole-kit ruling was made on the premise that every member
1559
+ cleared the criteria the existing substrate answers, and that premise turned out
1560
+ false for two — each ruled held by the operator the same day, `.sh` unmodified,
1561
+ with its port work named and owed:
1562
+
1563
+ - **`check-roadmap-fresh` — cohort composition.** It invokes `bash` on
1564
+ `queue-kit/bin/roadmap.sh --emit`, one of the `lib/queue.sh` consumers this port
1565
+ does not touch (queue-kit/SPEC.md §lib/queue.sh), so nothing in the cohort ports
1566
+ the emitter it shells out to. **The 2026-08-11 hold stands on that ground and is
1567
+ relabelled, never lifted** (operator-ruled 2026-08-12):
1568
+ the label read `criterion 7`, and criterion 7 clears here — `bash` is
1569
+ on `GATE_SDK_PROGRAM_FLOOR`, which is why `bin/port-blockers.sh` reports none of
1570
+ the generated-projection freshness gates — while what the hold actually turns on
1571
+ is whether the cohort ports the emitter, which that criterion explicitly does not
1572
+ adjudicate. A hold is **per-member**, keyed on *is this gate's emitter ported?*
1573
+ The design it owes — shell out to the emitter,
1574
+ reimplement the emission format in Rust against criterion 6, or collapse the
1575
+ emitter itself onto the binary — is the cohort that takes it to answer.
1576
+ - **`check-queue-prose-precondition` — an ERE engine.** It does not *transport*
1577
+ `QUEUE_KIT_PRECONDITION_REGEX` across the bridge, it **interprets** it, and the
1578
+ knob is consumer config carrying an arbitrary POSIX ERE; its `awk` also runs
1579
+ `gsub` with alternation, groups and negated classes. The crate vendors nothing —
1580
+ asserted rather than assumed, by the unit test that fails the build on a
1581
+ non-empty dependency list — so porting it means hand-writing an ERE engine. Its
1582
+ own `gsub` runs over a pattern baked literally into awk source, which a port
1583
+ hand-compiles, so the substitution engine an earlier sizing put inside this hold
1584
+ is outside it (§The POSIX ERE matcher). Sizing a subset to this consumer's one
1585
+ configured regex is **foreclosed** by the argument criterion 6 already makes for
1586
+ globs: the config surface permits what this consumer happens not to write, and a
1587
+ narrow reader would silently mis-scan the first consumer who writes it. The
1588
+ engine has landed, so what this member is held on is its own port.
1589
+
1590
+ Neither hold is an eligibility screen, and citing it as one inverts the rule §The
1591
+ port-candidate criteria denies in its opening sentence and TRAJECTORY.md restates.
1592
+ A criterion a member fails **orders** the work; the 2026-08-09 directive ports the
1593
+ whole corpus over time, so holding a member for a later cohort is the sequencing
1594
+ those criteria prescribe — the same treatment criterion 7's own worked example
1595
+ gives `check-action-run-shell`, which it names the largest piece of port work
1596
+ rather than a permitted exclusion.
1597
+
1598
+ **The criterion-7 claim that helped select this cohort was false, and its fixture
1599
+ pair could not have caught it.** The cohort was taken partly on the reading that
1600
+ `git` is the only external program across the kit; the `roadmap.sh` shell-out
1601
+ above falsifies that, and it survived design review because
1602
+ `check-roadmap-fresh`'s `good/` and `bad/` cases both pass pre-baked files that
1603
+ steer the assertion off the live emitter. A ported member's pair would therefore
1604
+ have gone **green over an arm with no implementation** — the same vacuity the
1605
+ `check-gate-output` disposition exists to close, arriving through a different
1606
+ door. A cohort is sized off what its members *execute*, never off what their
1607
+ fixtures reach.
1608
+
1609
+ **The generated-projection freshness family, derived per member rather than
1610
+ labelled.** Its members byte-compare a tracked projection against a live
1611
+ `bash <emitter> --emit`: `check-footprint-fresh`, `check-trajectory-fresh`,
1612
+ `check-enforcement-fresh`, `check-value-rollup-fresh`, `check-docs-mirror-fresh`,
1613
+ `check-roadmap-fresh`. On the per-member key the relabel above fixes — *is this
1614
+ gate's emitter ported?* — the emitters are `context-kit/bin/footprint.sh`,
1615
+ `drift-kit/bin/trajectory.sh`, `gate-sdk/bin/enforcement-map.sh`,
1616
+ `scripts/gen-value-rollup.sh`, `scripts/gen-docs-mirror.sh`,
1617
+ `queue-kit/bin/roadmap.sh`, and **not one of them is ported**, so every member is
1618
+ held for any cohort that ports no emitter. What differs per member is what
1619
+ clearing the hold *costs*:
1620
+
1621
+ | Member | Beyond the byte-compare | What it owes past its emitter |
1622
+ |---|---|---|
1623
+ | `check-footprint-fresh`, `check-trajectory-fresh`, `check-enforcement-fresh` | nothing | nothing — a spawn and a string compare |
1624
+ | `check-value-rollup-fresh` | marker-block extraction | nothing — the block grammar is the projection's, not a corpus derivation |
1625
+ | `check-docs-mirror-fresh` | an orphan sweep, its own walk over `<root>/docs` | the walk (the crate already carries it) **and** a fail-closed repair: the sweep silences stderr, so an unreadable tree reads as no orphans |
1626
+ | `check-roadmap-fresh` | a second assertion over `TASK-QUEUE.md` through `queue_roadmap_entries` | a **criterion 6** answer — `bin/roadmap.sh` calls that same adapter, which is what makes queue-kit/SPEC.md's *"the emitter and the gate can never disagree"* true; porting the gate alone duplicates it with nothing machine-held |
1627
+
1628
+ **Whichever member of this family ports first owes the report cap, and it is
1629
+ settled rather than left to that session** — the renderer the crate carries is
1630
+ uncapped and the `head -20` above is the caller's, so the cap lands as one crate
1631
+ constant with its first reader in that same commit (§The diff renderer).
1632
+
1633
+ **The transferable conclusion re-points the ordering rule.** The cheap cohort in
1634
+ this family is **the emitters, not the gates**: a ported byte-comparator
1635
+ spawning a shell emitter removes no shell, so it buys nothing against the
1636
+ dual-maintenance ground the port rests on
1637
+ (TRAJECTORY.md §PRIORITY DIRECTIVE — the port track's sequence), and of the
1638
+ three candidate designs the `check-roadmap-fresh` hold names only *collapse the
1639
+ emitter itself onto the binary* pays. The selection rule above — the largest set
1640
+ of criteria-clearing gates sharing one corpus derivation — mis-selects this
1641
+ family, because what its members share is a **spawn shape** rather than a corpus.
1642
+ Recorded as a worked limit on that rule, not as a change to it.
1643
+
1644
+ **And a carried claim about their fixtures is corrected here, because a later
1645
+ selector would inherit it.** The vacuity above was generalised as *all six steer
1646
+ their pairs off the live emitter through the emit-source positional*; it is
1647
+ true of **five**. `check-docs-mirror-fresh` takes no emit-source argument — its single
1648
+ positional is `[root]`, both case arg files are `.`, and it executes the live
1649
+ `gen-docs-mirror.sh` against the synthetic case tree, so its pair already proves
1650
+ the emitter-executing arm and the warning does not apply to it. For the other five
1651
+ the warning stands unweakened, and their parity must be bought by a live-tree run
1652
+ or a constructed scenario — criterion 2's `# no-fixture:` treatment, reached
1653
+ through a bypass arm rather than through an absent pair.
1654
+
1655
+ **Two orthogonal nine-of-ten splits existed and neither predicted a held member.**
1656
+ One is the walk axis — every member reads fixed paths but `check-queue-slug-liveness`,
1657
+ which walks a bridged glob array. The other is the fixture axis —
1658
+ every member carries a `good/`+`bad/` pair but `check-task-conservation`, whose
1659
+ `# no-fixture:` reason is structural (queue-kit/SPEC.md §check-task-conservation).
1660
+ Both were drawn before the criterion-7 and ERE probes, and both land on members
1661
+ that **did** port. The transferable lesson is not the arithmetic: a third and a
1662
+ fourth axis existed and nobody had looked down them, so a nine-of-ten on any one
1663
+ axis is not a difficulty estimate.
1664
+
1665
+ **One shared mechanism this port discharged for a later cohort, and that debt is
1666
+ now closed.** The canon-kit `spec_manifest_files` callers owed two: basename-glob
1667
+ list matching beside the crate walker's extension filter, and a Rust
1668
+ `gate_kit_roots`. `check-queue-slug-liveness` needed the first and it landed here,
1669
+ inside the crate's single sanctioned walk implementation so the recorder still
1670
+ observes it (§Meta-gate conservation for the binary substrate). **The second
1671
+ landed with the canon-kit cohort itself** — as a bridged resolved value rather
1672
+ than a re-derivation, since the fallback predicate is anchored at the shell
1673
+ library's own location and a binary the installer copies elsewhere cannot recover
1674
+ it (§lib/gate.sh). Neither is owed by a later selector.
1675
+
1676
+ **The sixth cohort is lifecycle-kit taken as a near-whole kit — ten members on
1677
+ the `lib/stages.sh` derivation, operator-ruled 2026-08-13 and delivered whole.**
1678
+ `check-stage-skill-coverage`, `check-skill-binding`, `check-lifecycle-registration`,
1679
+ `check-gap-inbox-neutrality`, `check-merge-attrs`, `check-stage-evidence`,
1680
+ `check-lesson-disposition`, `check-survey-record`, `check-shim-restatement` and
1681
+ `check-scratch-citation` ship as descriptors dispatching to the binary; the ten
1682
+ shell scripts they replace are deleted. Two members stay shell and their grounds
1683
+ differ in kind. **`check-stage-entry` is held**: it reads `LIFECYCLE_KIT_PREDECESSOR`
1684
+ by key, and the bridge carries scalars and indexed arrays only, so the hold clears
1685
+ when the wire format grows keys — a prerequisite it now shares with
1686
+ `check-evidence-baseline`, which is why the queue holds one entry for it rather
1687
+ than one per member. **`check-close-surfaces` is out rather than held**: it sources
1688
+ no `lib/stages.sh` at all, so it is *unsized*, and a later selector owes it a
1689
+ sizing rather than inheriting a hold whose ground was never established.
1690
+
1691
+ **The kit and corpus boundaries coincide again, and the sharing claim is weaker
1692
+ than queue-kit's — stated so a later selector does not inherit an overstated
1693
+ precedent.** Only five of the ten call a `lifecycle_*` function; the other five
1694
+ source `lib/stages.sh` **for its knobs alone**. What the ten share is therefore
1695
+ the **config surface**, not a corpus walk. That is still the right axis, and the
1696
+ reason is criterion 6: all fifteen knobs the ten read are defined by
1697
+ `lib/stages.sh`, each crosses the bridge as a value the shell library computed
1698
+ once, and the crate holds no default for any of them to drift from — so the
1699
+ substrate work is paid once and discharged ten times **by construction** rather
1700
+ than by ten parity tests. The library's own load-time config validation rides the
1701
+ same way: it runs shell-side during knob resolution, so a compiled member inherits
1702
+ the malformed-config refusal without a Rust twin. A selector reading the by-kit
1703
+ warning above should read this as its second worked exception, on a config surface
1704
+ where queue-kit's was on a corpus.
1705
+
1706
+ **What this cohort paid that no previous one did is not the gates. It is their
1707
+ callers**, and that is the transferable part. Five cohorts deleted a
1708
+ `checks/<name>.sh` and left every caller undisturbed, because every caller was the
1709
+ fixture harness and that harness has resolved substrate-agnostically since the
1710
+ first cohort. lifecycle-kit is the first kit whose **scenario runners**, whose own
1711
+ **`bin/`** and whose own **`smoke/`** name their gates by script path — including
1712
+ `bin/enter-stage.sh`, the stamp mechanism every stage entry in a consumer running
1713
+ the lifecycle goes through. Sizing such a cohort as N gate ports and meeting the
1714
+ callers at implementation time is exactly the failure criterion 7 exists to
1715
+ prevent, so a selector reaching a kit that ships `bin/` or `smoke/` enumerates the
1716
+ callers **before** the cohort is cut. The conversions themselves are
1717
+ lifecycle-kit/SPEC.md's — §Testing for the runners, §bin/enter-stage.sh for the
1718
+ tool layer.
1719
+
1720
+ **`check-lifecycle-registration` is a freshness gate in miniature, and the
1721
+ freshness family's hold key does not reach it.** It byte-compares tracked text in
1722
+ the agent file against a live derivation, which is structurally what the six
1723
+ generated-projection members above do — and those are held per member on *is this
1724
+ gate's emitter ported?*. The difference is exact rather than a judgment call: the
1725
+ family's members shell out to `bash <emitter>`, while this member's emitter is
1726
+ `lifecycle_registration_block`, a **library function it sources directly**, and
1727
+ that library is the derivation this cohort compiles. The emitter therefore ports
1728
+ *in this cohort*, in the same motion as the gate that reads it, so the hold's
1729
+ condition is satisfied rather than waived. Written out because a selector applying
1730
+ the family's rule mechanically would hold this member, and the ruling did not.
1731
+
1732
+ **Two knobs this repo's own configuration hides from a live-tree parity run**, and
1733
+ the canon-kit cohort's lesson — the live tree is the oracle a session trusts most
1734
+ and it proves nothing about a branch it does not execute — applies twice here.
1735
+ `LIFECYCLE_KIT_SESSION_BOUNDARY` is set to `iteration`, which disables
1736
+ `check-stage-evidence`'s cross-stage session-id distinctness map, so every
1737
+ live-tree run takes the disabled branch. `LIFECYCLE_KIT_PERMANENT_SURFACE_GLOBS`
1738
+ carries no `**`, so `check-scratch-citation`'s globstar path is never exercised
1739
+ live even though criterion 6's glob commitment binds the compiled reader to it.
1740
+ Both were proved by constructed scenario instead, and a third property narrows
1741
+ every parity run in this tree without being a branch at all: this repo runs a
1742
+ six-stage machine, so `LIFECYCLE_KIT_STAGES` and `LIFECYCLE_KIT_PREDECESSOR` are
1743
+ both overridden and no run here reads the kit default.
1744
+
1745
+ **One rule was implemented rather than transliterated, and one diagnostic had to
1746
+ be built.** `check-merge-attrs`'s shell form reaches for three `comm` invocations
1747
+ over six process substitutions; the compiled form implements the **set difference**
1748
+ the contract states, which is not locale-dependent where `sort`'s collation is —
1749
+ the kit-roots cohort's general ruling, applied verbatim.
1750
+ `check-lifecycle-registration`'s stale-block report is `diff`'s **normal format**,
1751
+ which no previous cohort had needed: it is an LCS walk inside the member, because
1752
+ the crate's one-spawn-site rule (§Fail-closed contract) leaves no way to shell out
1753
+ for a diagnostic. `check-stage-evidence`'s missing `fail_closed` guard, the one
1754
+ shell defect this cohort found, is **dissolved rather than repaired**: the
1755
+ compiled member reaches no subprocess at that site, so the failure mode is absent
1756
+ by construction. Recorded so the port is not read as having silently dropped an
1757
+ assertion, and so nobody opens a repair against an absent file.
1758
+
1759
+ **The seventh cohort is the `spec_comment_surface` family — four members on one
1760
+ corpus primitive, operator-ruled 2026-08-13 and delivered whole.**
1761
+ `check-comment-tier`, `check-spec-pointer`, `check-todo-task-liveness` and
1762
+ `check-deprecation-task` ship as descriptors dispatching to the binary; the four
1763
+ shell scripts they replace are deleted. It is the first cohort ruled **knowing it
1764
+ was design-then-port rather than cheap**: all four fail criterion 4 — they audit
1765
+ comment content on governed sources, and a governed source is what a gate
1766
+ declaration is — and that criterion's remedy is a designed answer rather than a
1767
+ waiver. The design is recorded where it generalises rather than here:
1768
+ §Fixture-pair discipline owns the widened-corpus rule and criterion 4 owns the
1769
+ discharge and the live-tree demotion that comes with it.
1770
+
1771
+ **What the cohort paid, and it is the corpus rather than the rules.** The four
1772
+ members' `good/`+`bad/` pairs carried `.sh` and `.md` sources and nothing else,
1773
+ across all eight case dirs, while the primitive spans four arms — `*.sh`, the
1774
+ `*.gate` descriptor, `*.rs`, and the workflow directory's tracked tier. The
1775
+ parity instrument therefore covered **one arm in four**, and the three it missed
1776
+ were precisely the three that make criterion 4 bind. Widening the pairs came
1777
+ first and the port second; the same vacuity shape this section already recorded
1778
+ once — *"a ported member's pair would therefore have gone green over an arm with
1779
+ no implementation"* — is what it was bought against.
1780
+
1781
+ **Criterion 6 is discharged in its strongest form, and this is the cohort that
1782
+ empties a primitive.** `spec_comment_surface`, its `_with_templates` twin, the
1783
+ whitelist predicate and `spec_queue_slugs` had exactly these four members as
1784
+ their callers, so the shell forms are **deleted rather than duplicated** — the
1785
+ duplication is absent rather than machine-held, the same disposition the config
1786
+ bridge earned and for the same reason. That is the opposite verdict the same
1787
+ criterion earns on a library with live consumers, and both are recorded so
1788
+ neither reads as the general rule (canon-kit/SPEC.md §lib/spec.sh states the
1789
+ price: three documented names a consumer's own gate could have called, answered
1790
+ by shadowing the gate). `check-spec-pointer`'s criterion-6 hold is discharged by
1791
+ that removal; `spec_manifest_files` stays dual, because members outside this
1792
+ family still call it, which is the pre-existing duplication the canon-kit cohort
1793
+ accepted and this one does not re-open.
1794
+
1795
+ **A trigger gap the earlier widening left behind is repaired in the same unit.**
1796
+ The primitive gained its `*.gate` and `*.rs` arms when the conservation contract
1797
+ landed and **no member's `couples=` followed it**: against this tree that left
1798
+ every descriptor and every crate implementation source inside the corpus and
1799
+ outside the trigger, so staging an edit to a ported gate's descriptor or module
1800
+ re-ran none of the four gates that read it — and the port makes it worse in the
1801
+ one way that matters, by moving the four members' own declarations into that
1802
+ class. All four manifests gain `*.gate` and `*.rs`, and two spellings widen from
1803
+ `.workflow/*.txt` to `.workflow/*`. Both added tokens are **bare globs**: a token
1804
+ naming this repo's crate directory would publish one consumer's layout into a kit
1805
+ file and be false for every other (CLAUDE.md §The provenance seam), where the
1806
+ bare glob matches the corpus derivation exactly and over-selection in a
1807
+ trigger-shaped set is cheap by design.
1808
+
1809
+ **The eighth cohort is the first the selection rule chose rather than a reader**,
1810
+ and its own section is where that matters: §The canonical-spec
1811
+ `spec_canonical_specs` cohort records the members, the group key, the group size
1812
+ and the undecidable count from the `--group` run, the two larger groups it
1813
+ rejected and on what authority, and the price. Two facts belong here rather than
1814
+ there, because they are about the **rule** and not about that cohort. A group's
1815
+ key being non-empty does not make it a shared derivation — the run's largest group
1816
+ shares only the fail-closed guard, which derives no corpus. And the tool's columns
1817
+ are not the whole screen: the group it ranks second contains a member
1818
+ §Meta-gate conservation for the binary substrate holds on shell, which no column
1819
+ reports and which a selector applying the run mechanically would have taken.
1820
+
1821
+ ### The canon-kit `spec_manifest_files` cohort
1822
+
1823
+ **The shared derivation is compiled.** `native/src/spec.rs` carries all three
1824
+ branches of `spec_manifest_files`, the kit-root path prune, the manifest-prose
1825
+ walk driver and the count grammar, so the derivation was ported once and is
1826
+ proved by every member that calls it — the same economy the first cohort's
1827
+ pairing bought, at seven members instead of two.
1828
+
1829
+ **Parity was bought against the branches this repo does not run, and that is the
1830
+ transferable half.** This tree sets `CANON_KIT_MANIFEST_FILES`, and sets
1831
+ `CANON_KIT_SCAN_KIT_ROOTS` to the value that disables pruning
1832
+ (canon-kit/SPEC.md §Layout and configuration owns both), so every live
1833
+ invocation takes the explicit-glob branch and the kit-root prune is a no-op here. A live-tree comparison therefore
1834
+ proves nothing about the default walk or the prune — and *the live tree is the
1835
+ oracle a session trusts most*. The port stood up a differential edge tree with
1836
+ both knobs at their defaults, carrying each of `SPEC.md`, `README.md` and
1837
+ `CLAUDE.md` twice — once under `templates/`, once at a vendored kit root — plus
1838
+ the ancestor-root case and a kit root that is not a descendant of the scan root.
1839
+ It caught a prune that never ran: a scan root of `.` was being absolutised to a
1840
+ `.` component appended to the cwd, so every path-prefix test failed silently.
1841
+ **No fixture pair and no live-tree run could have surfaced that**, which is the
1842
+ lesson `check-roadmap-fresh` taught one cohort earlier arriving through the
1843
+ configuration rather than through a fixture.
1844
+
1845
+ One difference the port takes deliberately: the default walk's `find(1)` order
1846
+ is a filesystem artifact, and the Rust walk sorts. Every member reaching its
1847
+ corpus through `sort -u` stays byte-identical; the one that prints its corpus
1848
+ unsorted is set-identical with a different line order, asserted as such rather
1849
+ than normalised away.
1850
+
1851
+ **Seven of ten at the cohort's own cut, with three members sequenced behind an
1852
+ ERE engine — the same sequencing, found the same way.** The cohort was ruled at
1853
+ ten on a design that removed the `bash` spawn from the three members reading a
1854
+ consumer-supplied *command*. That design reached only half the problem, and the
1855
+ other half was found at implementation:
1856
+
1857
+ - **`check-install-claim`, `check-payload-claim` and `check-manifest-temporal` —
1858
+ an ERE engine.** Each **interprets** a consumer-configured POSIX ERE rather
1859
+ than transporting one: the first against `CANON_KIT_INSTALL_SECTION_RE` and one
1860
+ pattern per transport, the second one pattern per disclosure class, the third
1861
+ every `CANON_KIT_TEMPORAL_MARKERS` entry. Bridging the vocabulary as *data*
1862
+ removes the interpreter the binary would have spawned; it does not remove the
1863
+ regex the binary must then apply. The crate vendors nothing — asserted by
1864
+ `native/src/walk.rs`'s own test, which fails the build on a non-empty
1865
+ `[dependencies]` — so a port hand-writes the engine. Sizing one to this
1866
+ consumer's patterns is **foreclosed** by the argument this section already
1867
+ makes for `check-queue-prose-precondition` and criterion 6 makes for globs;
1868
+ that foreclosure binds the pattern **grammar** the engine accepts and not its
1869
+ **API**, and §The POSIX ERE matcher owns the distinction. **Operator-ruled
1870
+ 2026-08-12 at build.** The engine is paid and those three members ship
1871
+ compiled: §The POSIX ERE matcher is their contract, and this cohort's ten are
1872
+ all ported.
1873
+
1874
+ `check-manifest-temporal` is worth naming separately, because every mechanical
1875
+ screen puts it *in*: it clears criterion 4, spawns nothing, and reads its
1876
+ corpus through the very derivation this cohort compiled. What stops it is that
1877
+ its marker set is consumer config the rule applies as a pattern — and the
1878
+ **shipped kit default** already carries an alternation, so the engine is
1879
+ load-bearing for a consumer who overrides nothing at all. A cohort sized on
1880
+ "clears criterion 4" would have taken it and discovered the engine mid-port,
1881
+ which is the failure mode criterion 7 exists to prevent.
1882
+
1883
+ **It is a class with two members, not a one-off**, which is why the shape is
1884
+ named here rather than the gate. `check-spec-derivable-section` sits in the
1885
+ identical position: `CANON_KIT_DERIVABLE_POINTER_REGEX`'s shipped default
1886
+ (canon-kit/SPEC.md §lib/spec.sh) is an alternation too, so the same
1887
+ override-nothing consumer makes the same engine load-bearing. Both are on the
1888
+ nine-member roster `cohort-held-members-port-prerequisites` carries, so a
1889
+ selector reading that roster is already warned; what a second instance adds is
1890
+ the screen to run before trusting a mechanical one — **read the kit default,
1891
+ not only the knob**, because a knob documented as consumer config is exactly
1892
+ where a mechanical screen stops looking.
1893
+
1894
+ These holds are sequencing rather than exclusion under the rule §The
1895
+ port-candidate criteria fixes and this section restates for the queue-kit pair
1896
+ above; what each remaining member owes is filed on
1897
+ `cohort-held-members-port-prerequisites`. The roster and its kits live on that
1898
+ entry and are not restated here, because a count copied into prose is the drift
1899
+ this correction is itself repairing.
1900
+
1901
+ ### The kit-roots `gate_kit_roots` cohort
1902
+
1903
+ **Five members, and the axis is the corpus derivation rather than the kit:**
1904
+ `check-kit-registration`, `check-smoke-entry-guard`, `check-test-hermetic`,
1905
+ `check-assertion-strength`, `check-template-registry-parity`. All five derive
1906
+ their corpus from `gate_kit_roots` and nothing else structural — a sweep of the
1907
+ kit roots, then a fixed literal sub-path under each (`smoke/install.sh`,
1908
+ `smoke/violation.sh`, `gate-tests/*.test.sh`, `smoke/*.sh`, `bin/*.sh`,
1909
+ `templates/*.list`). That derivation was **already compiled**: `gate_kit_roots`
1910
+ and `gate_kit_roots_rel` cross the bridge as resolved values, landed with the
1911
+ canon-kit cohort, so the axis that made the first cohort cheap was paid for before this one
1912
+ started. What each member adds on top is a per-file text test, which is the whole
1913
+ of its rule — the first cohort's economy at five members instead of two.
1914
+
1915
+ **The fifth member ports under criterion 4's own predicate, and the ground is
1916
+ the second over-selection path rather than the first.** Assertion C's runtime
1917
+ derivation reports `check-template-registry-parity` substrate-sensitive: its
1918
+ `couples=` carries `kit:*/*.sh`, which expands to `gate-sdk/*/*.sh` and covers
1919
+ `gate-sdk/checks/check-shellcheck.sh`. It is **not** a reverse-trigger couple —
1920
+ the gate really does read `*.sh` names as content, through
1921
+ `git ls-files -- '*.sh'`. It is a **content couple wider than the walk**: the
1922
+ names it reads are only those under a `<kit>/<name>/` directory that a sibling
1923
+ `<kit>/templates/<name>.list` registers, and no kit ships a template registering
1924
+ `checks/`. Against this tree that walk reaches one live registry, `drift-kit/kpis/`,
1925
+ with `gate-sdk/templates/msg-patterns.list` skipped for want of a sibling. The
1926
+ port therefore changes nothing the gate reads and the parity proof is not
1927
+ self-referential. Recorded at this length because every mechanical screen puts
1928
+ this member *out*, and because the amendment that proposed the cohort argued it
1929
+ on the reverse-trigger clause — a ground that does not cover it, corrected here
1930
+ against the predicate §The port-candidate criteria actually states.
1931
+
1932
+ **One library move was bought before the first gate, and it is the class
1933
+ criterion 7's worked example exists to surface.** `check-kit-registration`
1934
+ resolved `GATE_SDK_REGISTRY_DOC` and `GATE_SDK_RUNNER_DOC` inline, so
1935
+ `lib/gate.sh` defined neither and the config bridge's does-not-define refusal
1936
+ would have fired on every invocation of the compiled member. Both defaults moved
1937
+ into the library, under the **consumer knob names** rather than renamed the way
1938
+ `GATE_PRUNE_DIRS` is: that rename buys a distinct spelling because a whitespace
1939
+ scalar feeds an array, and a scalar-in/scalar-out knob has no such collision to
1940
+ avoid (§lib/gate.sh). No consumer configuration changed.
1941
+
1942
+ **Three deliberate differences, asserted rather than normalised away**, in the
1943
+ shape the canon-kit cohort's sort-order note set:
1944
+
1945
+ - `check-assertion-strength`'s token→code map came out of `awk` in hash order and
1946
+ comes out of the crate sorted. Set-identical, ordering different, and it reaches
1947
+ output only through a multi-finding message.
1948
+ - `check-template-registry-parity`'s two `comm` arms are computed by set
1949
+ membership. `sort`'s collation is locale-dependent and a set difference is not,
1950
+ so the port implements the rule the contract states rather than the mechanism
1951
+ the shell reached for.
1952
+ - A member taking a positional root resolves its **relative** kit roots against
1953
+ that root, exactly as the shell did — but the bridge spells *every* root
1954
+ relative, so where the shell would have had an absolute root and ignored the
1955
+ argument, the port honours it. The two agree whenever the positional root is
1956
+ the invoking directory, which is every documented use: the argument exists to
1957
+ steer a fixture tree whose `gate-sdk-config.sh` names relative kit roots.
1958
+
1959
+ **Parity was proved on 34 cases while both implementations existed** — each
1960
+ member's `good/` and `bad/` case, the live tree, every arm each member carries,
1961
+ and a constructed differential tree for the branches neither reaches:
1962
+ `check-kit-registration`'s assertion B alone and both assertions together (the
1963
+ blank line between the two finding blocks fires only there),
1964
+ `check-test-hermetic`'s credential-leak assertion and its exempt-marker escape,
1965
+ `check-assertion-strength`'s window cut short by a following invocation and its
1966
+ own exempt marker, and every fail-closed refusal. Byte-identical, exit codes
1967
+ included, on all of them.
1968
+
1969
+ **Two readers of the narrowed corpus were missed by the amendment's enumeration
1970
+ and found by the battery**, which is worth recording because the enumeration was
1971
+ the delta that claimed to be exhaustive:
1972
+
1973
+ - `check-gate-assertions` resolved a gate name to its declaration and looked for
1974
+ `# assertion` markers there. A `.gate` descriptor carries none and cannot — the
1975
+ field roster is closed — so three members with enumerating contracts read as a
1976
+ retrofit obligation. Repaired by the resolution §check-gate-output already owns:
1977
+ a `.gate` member's markers are looked for in its implementation module, and the
1978
+ marker grammar accepts either comment leader, because the leader is the
1979
+ substrate's and the marker is a code marker either way. **The repair was itself
1980
+ incomplete in this repo and only the aggregate-price oracle showed it**: a
1981
+ vendored consumer receives the descriptor and never the crate, so the module
1982
+ path resolved to nothing and every adopter's battery reded. Those members are
1983
+ now skipped-and-counted with no crate present. Recorded because the sequence is
1984
+ the lesson — a tree-green repair is not a consumer-green one, and criterion 5's
1985
+ measurement is what distinguishes them.
1986
+ - `check-docs-kit-parity` is a consumer gate that **wraps** `check-kit-registration`
1987
+ by executing its path. It now reaches it through `gate_command`, the argv being
1988
+ the one spelling that survives either substrate. Recorded because a wrapper is
1989
+ a consumer of a ported member that no kit-side roster names.
1990
+
1991
+ **The aggregate price is measured, not reasoned, and the reasoning is written
1992
+ first so the measurement has something to falsify.** All five members assert over
1993
+ **kit-authored** files — a vendored kit's own `smoke/`, `gate-tests/`,
1994
+ `templates/` and registry rows — never over adopter-authored content, so a
1995
+ binary-less consumer losing the five should lose no class of adopter-authored
1996
+ content at all: the omitted roster grows by five and the residual behind it is
1997
+ unchanged.
1998
+
1999
+ **The run agrees, and the price is zero.** Against the post-cohort registry every
2000
+ profile's battery is green on a freshly vendored consumer, with the ported
2001
+ members omitted-and-declared exactly where the payload carries no binary — the
2002
+ arm that asserts that equality is the suite's own, so no roster is transcribed
2003
+ here, and that assertion is the residual's oracle rather than the value arm the
2004
+ criterion named at the time. The value arm, a claim about the product and not
2005
+ about the residual, reports the same
2006
+ verdict on every profile it reported before: the planted defect is green, and
2007
+ green once fixed. The suite's only failure is the markdown-link class the held
2008
+ row already owns, so no class this cohort could have emptied changed hands. The
2009
+ falsifier was available and did not fire: a newly lost class would have shown as
2010
+ a value-arm class this consumer used to catch, or as a red battery, and neither
2011
+ appeared. The `installer_smoke fail` row that stood held in
2012
+ `.workflow/validate-baseline.txt` at the time was **not** this cohort's price: it
2013
+ recorded the markdown-link hole `port-criterion-aggregate-cost-blindness` half
2014
+ (2) owns, which this cohort neither widened nor repaired. That row was earned out
2015
+ to `pass` in `97683db2`; the sentence is kept in the past tense rather than
2016
+ deleted because it is what discharged this cohort's price question.
2017
+
2018
+ ### The canonical-spec `spec_canonical_specs` cohort
2019
+
2020
+ **The eighth cohort, and the first selected by running the selection rule rather
2021
+ than by reading candidates off the tree.** Two members —
2022
+ `check-spec-dod-singleton` and `check-spec-derivable-section` — sharing the group
2023
+ key `libs=fail_closed,spec_canonical_specs globs=-`, taken from a
2024
+ `bash gate-sdk/bin/port-blockers.sh --group` run that scanned **104** members,
2025
+ formed **48** groups, reported **0 undecidable** and excluded **40** already
2026
+ ported. The undecidable count is recorded because it is the bound on the claim
2027
+ that this group was the largest: at zero, the partition speaks for the whole
2028
+ still-shell registry and the ordering rule was applied against complete
2029
+ information. That is the first cohort able to say so, and it is a property of the
2030
+ **repaired** scan rather than of this cohort — the tokenizer truncation that made
2031
+ every earlier cohort's roster a silent under-report is what the zero rests on
2032
+ (§port-blockers).
2033
+
2034
+ **Two larger groups were rejected, and recording why is what keeps the rule
2035
+ usable.** The run's largest group carried 14 members on the key
2036
+ `libs=fail_closed globs=-`. It is **not a cohort**: `fail_closed` is the
2037
+ fail-closed guard and derives no corpus, so those members share the *absence* of a
2038
+ derivation, which this section already rules is not a shared derivation, and
2039
+ reaching that state through a non-empty key does not change the substance
2040
+ (operator-ruled 2026-08-14). The tool's own contract predicts this reading — its
2041
+ key is deliberately advisory and a group whose members' `couples=` visibly diverge
2042
+ is a finding the selecting session adjudicates, never a cohort the tool cut. The
2043
+ next group by size, `check-install-disposition` + `check-readme-roster`, clears
2044
+ every mechanically-derived column and is still **not takeable whole**:
2045
+ §Meta-gate conservation for the binary substrate rules `check-install-disposition`
2046
+ a gate that **stays shell**, because its assertion is about the declaration and
2047
+ dispatch relation and a compiled form could pass itself with a broken binary. It
2048
+ is a member the port does not take, on the same footing as `check-crate-arms`, and
2049
+ a selector reading only the tool's columns would have taken it. The remaining
2050
+ two-member groups fail a column outright: one carries a `ruby` requirement
2051
+ (criterion 7), the other is this cohort.
2052
+
2053
+ **What the cohort fails is criterion 3, and that is why it outranks the
2054
+ alternatives.** Both members are `tier=align-only`, so they do not land in the
2055
+ generated hook and a green `check-graph` after the port is not the end-to-end
2056
+ proof of the manifest surviving the substrate change that criterion 3 buys. The
2057
+ manifests are still read — the graph artifact covers every registered member —
2058
+ so what is lost is the hook arm of that proof and nothing else. Against it, every
2059
+ alternative of equal size fails **criterion 4 or 7**, which this section sequences
2060
+ **last and budgets for** because each carries a design problem rather than a
2061
+ weaker proof. A group failing only criterion 3 is therefore ahead of a group
2062
+ failing 4, and it is also the larger of the two once the held member leaves group
2063
+ 2. `scripts/`-declared members were excluded from this cohort by its amendment;
2064
+ the run surfaced none at or near the top, so the exclusion never bound.
2065
+
2066
+ **Criterion 6 is discharged by the corpus derivation already being compiled.**
2067
+ `spec_canonical_specs` is the SPEC-name find, `templates/`-filtered and kit-root
2068
+ pruned — every piece of which `native/src/spec.rs` already carried inside
2069
+ `manifest_files`' default branch since the canon-kit cohort. The port **lifts it
2070
+ out** rather than writing a second copy beside it, so the manifest set and the
2071
+ canonical-spec set cannot disagree about which specs exist. The shell form stays,
2072
+ because `check-surface-duplication` and `check-spec-embedded-source` still call
2073
+ it: this is the *unless* clause's live-consumer disposition, the same one
2074
+ queue-kit's `lib/queue.sh` takes, and not the emptied-primitive disposition the
2075
+ seventh cohort earned.
2076
+
2077
+ **The edge-root arm disagreed, and the compiled side read the rule correctly.**
2078
+ Parity ran over both fixture pairs, the live tree at four scan-root spellings and
2079
+ a differential edge tree at nine knob settings — 30 comparisons, byte-identical on
2080
+ stdout, stderr and exit code, run while both implementations still existed. Two of
2081
+ those comparisons failed first: at a `..` scan root the shell prune kept **22**
2082
+ canonical specs where the compiled form kept 11. `_spec_prune_kit_roots` is a
2083
+ prefix test, and it normalised neither the scan root nor the file paths, so a
2084
+ `..` component made every comparison fail and pruned nothing at all — the corpus
2085
+ silently widening rather than reddening. The rule it is measured against says a
2086
+ file under a kit root that is a strict descendant of the scan root is excluded,
2087
+ and at a `..` root the kit roots are such descendants; the compiled side is
2088
+ therefore right and **the shell was repaired before the port**, so the parity run
2089
+ proves the repaired behaviour rather than freezing the defect. This is the same
2090
+ class §The port-candidate criteria records the comment cohort finding, reached
2091
+ through the scan root instead of the file path, and it is the standing evidence
2092
+ for that criterion's rule that a disagreement is adjudicated against the
2093
+ requirement and never against whichever side moved.
2094
+
2095
+ **What the repair's oracle can and cannot see, stated because the cohort paid to
2096
+ find out.** `check-spec-dod-singleton.test.sh` gains a `..`-root case. It was
2097
+ verified to red under an **asymmetric** break of the normalisation and to stay
2098
+ green under a **symmetric** one — dropping `..` from every path alike leaves the
2099
+ prefix test succeeding by coincidence, exactly as an end-of-file balance check
2100
+ cannot see an early tokenizer pop. An oracle for a normalisation defect must
2101
+ therefore break one side only, and a control that transforms both proves nothing.
2102
+ The case holds the **compiled** prune, since the member now dispatches to the
2103
+ binary; the shell twin the surviving callers use is covered by nothing, which is
2104
+ filed rather than absorbed (`spec-prune-normalisation-shell-oracle`).
2105
+
2106
+ **Criterion 5's price, measured.** The binary-less leg reports **twelve** omitted
2107
+ members against the post-cohort registry, where the comment cohort recorded ten.
2108
+ The growth is **two against two ported members** — both are `zero-config`, so both
2109
+ are seeded into a freshly initialised consumer's registry and both are therefore
2110
+ losable, which is the growing direction of the same install-disposition predicate
2111
+ that made the lifecycle-kit cohort's growth zero. Measured after this cohort's own
2112
+ commit, from a clean tree, through the repaired invocation contract: the smoke
2113
+ resolves its own tree from its script path and passes it to the packer as
2114
+ `--root`. The first attempt refused instead of measuring, because a concurrent
2115
+ edit dirtied the worktree mid-run — the cleanliness test is per pack invocation
2116
+ and names the root it read, so that refusal is the instrument working rather than
2117
+ a flake.
2118
+
2119
+ **The judgment is *accept and declare*, and what distinguishes it from the comment
2120
+ cohort's identical verdict is that no class empties.** On an uncovered platform an
2121
+ adopter loses the Definition-of-Done singleton and the derivable-section density
2122
+ budget, declared in its own `gates.list` rather than arriving as a broken battery.
2123
+ The canonical-spec corpus still carries a **shell** auditor there,
2124
+ `check-spec-embedded-source`, so what an uncovered host loses is two structural
2125
+ assertions over a corpus that remains guarded — not the whole surface the comment
2126
+ cohort's ten took with them. The two rivals are refused with cause and the first
2127
+ is refused harder here than usual: restoring the class shell-side would reinstate
2128
+ a second `spec_canonical_specs` implementation, which is the exact duplication
2129
+ this cohort's criterion-6 discharge exists by removing, and enforcement-first
2130
+ ranks removal above gating it; a binary-gated declaration the adopter receives is
2131
+ what the omit path already is. The honest limit rides with the ruling — this is a
2132
+ real subtraction for an uncovered host, it lands because the 2026-08-09 directive
2133
+ ports the whole corpus, and it shrinks as targets are published rather than being
2134
+ repaired by the cohort that caused it.
2135
+
2136
+ ### The POSIX ERE matcher
2137
+
2138
+ **Three members, and the engine is what the cohort buys.**
2139
+ `check-install-claim`, `check-payload-claim` and `check-manifest-temporal` — the
2140
+ members §The canon-kit `spec_manifest_files` cohort held on an ERE engine — port
2141
+ together, operator-ruled 2026-08-13. A five-member clean-group alternative and an
2142
+ eight-member superset were both offered and declined, so the cohort does not
2143
+ widen. Three is the smallest cohort since the first, and on member count alone
2144
+ the selection rule above picks elsewhere. What it buys is the engine: a POSIX ERE
2145
+ matcher is owed by **nine** members across the kits
2146
+ `cohort-held-members-port-prerequisites` rosters, and it is the largest single
2147
+ piece of work the port has named. Paying it against three members retires the
2148
+ blocker for all nine, which is the second worked exception to the largest-set
2149
+ selection rule, beside `check-roadmap-fresh`'s.
2150
+
2151
+ **Criterion 4 binds on none of the three, and the verdict was taken by running
2152
+ the derivation at the cohort cut.** Assertion C selects `check-install-claim` and
2153
+ `check-payload-claim` as substrate-sensitive through their `couples=` glob
2154
+ `scripts/*.sh`, which covers a gate declaration path. Both selections are the
2155
+ **reverse-trigger** over-selection criterion 4 already names: that couple exists
2156
+ so an edit to this repo's transport and disclosure emitters re-runs the gate that
2157
+ consumes them, and neither gate reads a declaration path as content. What all
2158
+ three scan is `spec_manifest_files`, the governed markdown set, inside which no
2159
+ gate declaration lies. Both sensitive members carry a conservation row (§Meta-gate
2160
+ conservation for the binary substrate); `check-manifest-temporal` earns none.
2161
+
2162
+ **The owed engine is a matcher, and that correction is the sizing.** Sizing the
2163
+ engine as *"an ERE engine plus `gsub` semantics"* puts a substitution engine
2164
+ inside the owed work, and it is wrong in the direction that costs the most.
2165
+ **Eight of the nine members apply their consumer pattern only as a match test**;
2166
+ `check-deprecation-task` alone extracts a span from one, and every `gsub`/`sub`
2167
+ in the whole set runs over a pattern baked literally into awk source, which a
2168
+ port hand-compiles. That is the same ground that correctly screened
2169
+ `check-comment-tier` out of the roster. The owed engine is therefore **a POSIX
2170
+ ERE matcher with leftmost-longest span reporting, and no substitution engine or
2171
+ capture-group replacement**.
2172
+
2173
+ **"Sizing is foreclosed" binds the pattern language, not the API surface.** The
2174
+ foreclosure §The canon-kit `spec_manifest_files` cohort states, on criterion 6's
2175
+ globs argument, binds the **grammar** the engine accepts: the config surface
2176
+ permits what this consumer happens not to write, and a narrow reader silently
2177
+ mis-scans the first consumer who writes one. What the sizing correction above
2178
+ touches is the **API** — what the members *do* with a pattern once it matches —
2179
+ which is fixed by their own source rather than by what a consumer may write, so
2180
+ no future consumer can turn a match test into a substitution. Reading the
2181
+ foreclosure across both axes would buy a `gsub` implementation with no caller in
2182
+ the corpus that justifies the engine.
2183
+
2184
+ **The contract.** `native/src/ere.rs` accepts **POSIX ERE in full**: alternation,
2185
+ concatenation, `*` `+` `?`, intervals `{n}` `{n,}` `{n,m}`, grouping, `.`,
2186
+ anchors `^` `$`, bracket expressions with ranges, negation and the POSIX
2187
+ character classes, and backslash escaping of every special. Its public surface is
2188
+ three items and no more:
2189
+
2190
+ - `Ere::compile(pattern) -> Result<Ere, EreError>`
2191
+ - `Ere::is_match(&self, hay: &str) -> bool` — awk's `$0 ~ p`
2192
+ - `Ere::find(&self, hay: &str) -> Option<(usize, usize)>` — the
2193
+ **leftmost-longest** span as byte offsets, the `RSTART`/`RLENGTH` pair awk
2194
+ reports
2195
+
2196
+ There is no `replace`, no `replace_all`, and no capture-group accessor; adding
2197
+ one is a design decision with its own reader rather than an omission to fill in.
2198
+ The engine is **byte-wise**, the C-locale semantics the span arithmetic of its
2199
+ callers assumes: `find`'s offsets are handed to byte-indexed slicing, and a
2200
+ char-wise engine shifts every one of them on a multi-byte glyph. Interval bounds
2201
+ are capped at the POSIX `RE_DUP_MAX`, and the compiled program at a fixed
2202
+ instruction count, because an interval expands by copying its operand.
2203
+
2204
+ **Leftmost-longest is the semantics, not an implementation detail.** POSIX ERE
2205
+ alternation is leftmost-**longest** and a backtracking matcher gives
2206
+ leftmost-**first**. The two agree on every `is_match` answer and disagree on
2207
+ spans, so a boolean-only engine can be built on the wrong semantics and never
2208
+ show it, until `check-deprecation-task` ports and extracts the wrong marker from
2209
+ `(deprecated|deprecated-since)`.
2210
+
2211
+ **An unsupported construct is a fail-closed refusal, never a silent mis-parse.**
2212
+ awk on the shell side is GNU awk, whose ERE dialect carries extensions POSIX does
2213
+ not: `\y` `\<` `\>` `\B` `\w` `\s` and the backreference forms. `compile` returns
2214
+ `EreError` for any escape or construct outside the POSIX ERE grammar, and each
2215
+ member turns that into **exit 2** naming the offending pattern, the knob it came
2216
+ from, and the extension. Three constructs are refused for the same reason rather
2217
+ than resolved by picking a dialect: a backslash *inside* a bracket expression
2218
+ (POSIX reads a literal, GNU an escape), a collating-symbol or equivalence-class
2219
+ bracket, and any escape outside the specials list. This is §Fail-closed contract
2220
+ applied to a parser rather than to a subprocess, and the failure it guards
2221
+ against is observable: a marker knob spelled `\yformerly\y` makes GNU awk warn on
2222
+ stderr, treat `\y` as a plain `y`, and report a **clean** verdict off a scan that
2223
+ never matched what the consumer meant. The live vocabularies use no extension, so
2224
+ the refusal is a guard for consumers rather than a change to this tree.
2225
+
2226
+ **The acceptance oracle is a differential run against the shell's own awk.** A
2227
+ hand-written regex engine is the one component where authoring the tests and the
2228
+ implementation from the same understanding proves nothing, so `ere.rs`'s unit
2229
+ arm stands up a throwaway corpus and compares `is_match` against `awk '$0 ~ p'`
2230
+ and `find` against `awk 'match($0,p){print RSTART, RLENGTH}'`, byte for byte,
2231
+ over a generated pattern-and-subject cross product. The pattern crosses through
2232
+ `ENVIRON` rather than `-v`, so awk's own string-escape pass never rewrites it
2233
+ before its regex compiler sees it, and the oracle runs at `LC_ALL=C` to hold both
2234
+ sides to the same byte semantics. The generator covers the constructs this tree's
2235
+ vocabularies never exercise — intervals, nested alternation under a quantifier,
2236
+ negated bracket ranges, anchors inside groups, the character classes — because
2237
+ those are exactly the branches no fixture pair and no live-tree run reaches. It
2238
+ is criterion 2's constructed-scenario form applied to a *mechanism*, the same
2239
+ move the canon-kit cohort made for the default walk. The arm runs under
2240
+ `check-crate-arms`, so a divergence is a commit-time red.
2241
+
2242
+ **The boundary the cohort applies: a pattern the kit owns is hand-compiled; a
2243
+ pattern a consumer supplies goes through the engine.** The prefix strip and the
2244
+ inline-code stripper `check-manifest-temporal` applies are substitutions over kit
2245
+ literals and port as direct code, which is why the API owes no `replace`. One
2246
+ deliberate exception buys the span path a production reader:
2247
+ `check-install-claim`'s heading extraction routes through `find` rather than a
2248
+ second hand-written scanner, so a precommit-tier gate exercises the span API on
2249
+ every invocation instead of leaving it alive only in unit tests.
2250
+
2251
+ **The provenance seam, ruled, because this cohort is where it bites.**
2252
+ `native/src/ere.rs` carries **no vocabulary whatever**: not a transport id, not a
2253
+ disclosure class, not a temporal marker. An engine sized to a grammar rather than
2254
+ to a corpus cannot encode one project's terms, and the pressure to shrink it
2255
+ toward the patterns this tree happens to configure is exactly the pressure that
2256
+ would. The transport vocabulary, the disclosure vocabulary and the temporal
2257
+ marker set stay consumer config; the bridged arrays below change the *transport*
2258
+ of two of them and not their ownership. The declaration regexes, the heading and
2259
+ fence patterns and the inline-code stripper are grammar the kit owns, carry no
2260
+ project term, and are the kit literals the boundary above leaves hand-compiled.
2261
+ The check this reduces to: a `grep` for any transport or disclosure id across
2262
+ `native/src/` returns nothing.
2263
+
2264
+ **The criterion-5 price, measured against the post-cohort registry.** The
2265
+ binary-less leg installs the `prose` profile from an artifact-free payload and
2266
+ reports the roster that profile loses with the binary: **seven members**,
2267
+ declared in the consumer's own registry, against six before this cohort. The
2268
+ roster grew by exactly one — `check-manifest-temporal`. Its two cohort siblings
2269
+ are absent from that profile's registered set, because a gate is registered
2270
+ **where its surface exists** and this profile configures neither a transport
2271
+ vocabulary nor a disclosure one. That is the measurement's honest limit rather
2272
+ than a discount: a consumer who configures either surface registers the matching
2273
+ member and loses it too, so the priced roster is this profile's and not every
2274
+ consumer's. The judgment the criterion leaves to a cohort: the roster is
2275
+ acceptable, because all three members assert over governed **markdown prose**
2276
+ whose other readers stay shell-side, and no class of adopter-authored content
2277
+ goes unheld by their omission.
2278
+
2279
+ **Parity, proved while both implementations existed.** Assertion A forbids a
2280
+ `<name>.sh` and a `<name>.gate` in one resolve dir, so each comparison ran with
2281
+ the shell gate in place and the descriptor staged elsewhere, and the descriptor
2282
+ landed as the script was deleted in one motion. Per member: the fixture pair, the
2283
+ live tree, and a constructed differential corpus for the arms neither reaches —
2284
+ both clean skips per claim member, an empty governed-doc set, zero and two
2285
+ declarations, an id outside the vocabulary, `~~~` fences, a heading inside a
2286
+ fence, earliest-match-wins-per-section, the declaration line as non-evidence,
2287
+ path-exempt and section-exempt windows, inline-code stripping, and marker
2288
+ patterns using intervals, anchors and character classes. Byte-identical, exit
2289
+ codes included.
2290
+
2291
+ ### The diff renderer
2292
+
2293
+ **The crate's one rendering of `diff`'s normal format.** `native/src/diff.rs`
2294
+ carries `normal_diff`: a pure function over two line slices returning the
2295
+ normal-format hunk sequence — the `NcM` / `NdM` / `NaM` range headers and the
2296
+ `<` / `---` / `>` body lines the external `diff` prints with no options. It was
2297
+ `check-lifecycle-registration`'s private mechanism until the generated-projection
2298
+ freshness members that will each need one at their own port made it shared, and it
2299
+ is a module ahead of its second consumer for exactly that reason: what
2300
+ justifies it is the cross-kit reach it removes from a later port's path, not
2301
+ generality claimed on its behalf.
2302
+
2303
+ **It carries no vocabulary and no report policy**, the §The POSIX ERE matcher
2304
+ scoping applied to a renderer. It reads no knob, takes no path, and knows nothing
2305
+ about what the two slices it is handed represent.
2306
+
2307
+ **The renderer is uncapped; the cap belongs to the caller.** `normal_diff`
2308
+ returns every hunk. A renderer that truncates is a reporter, and the two roles are
2309
+ separated because the crate's one live caller
2310
+ (`native/src/gates/lifecycle_registration.rs`, its only consumer today) wants the
2311
+ whole sequence while the shell gates a later port replaces legitimately do not.
2312
+
2313
+ **The cap's value is the shell family's, and a port carries it rather than picking
2314
+ it.** Every generated-projection freshness gate that renders a diff at all caps
2315
+ its stale report at one literal, `diff <(...) | head -20`, and that literal is the
2316
+ value's only live owner.
2317
+ Criterion 2 proves a ported member byte-identical to its shell original, so a port
2318
+ that re-picks the cap — or drops it, taking the uncapped return straight to
2319
+ stdout — diverges on precisely the cases a fixture does not build: a planted `bad/`
2320
+ difference is small, and the live tree is where a report first exceeds the cap. The
2321
+ rule: **the first freshness member to port lands the cap as one crate constant with
2322
+ its first reader in the same commit**, and every later member of the family reads
2323
+ that constant instead of repeating the literal.
2324
+
2325
+ That constant is deliberately **not** landed ahead of its reader, and the omission
2326
+ is a rule rather than an oversight. `check-crate-arms` runs clippy at `-D warnings`,
2327
+ where a constant no code reads is `dead_code` in this bin crate; the only ways to
2328
+ hold one early are a lint suppression the crate has never used or a caller invented
2329
+ to read it, and both are worse than stating the contract here and landing the value
2330
+ at the port that first needs it.
2331
+
2332
+ **The renderer never spawns, and that is a contract rather than an accident.**
2333
+ `diff` is on `GATE_SDK_PROGRAM_FLOOR` (§lib/gate.sh), so criterion 7 clears a
2334
+ ported form reaching for `Command::new("diff")` and a session under parity pressure
2335
+ has every reason to reach for it. It is refused: `native/src/proc.rs` is the
2336
+ crate's one sanctioned spawn site, an LCS walk needs none, and a spawned renderer
2337
+ would reinstate per member exactly the external-program dependency
2338
+ TRAJECTORY.md objective 1 exists to collapse. Stated here so the cheapest wrong
2339
+ implementation is refused by a rule rather than by whoever reviews that port.
2340
+
897
2341
  ### What the reverted port established
898
2342
 
899
2343
  Not nothing, and worth separating from what it broke:
@@ -945,18 +2389,18 @@ Neither prerequisite is outstanding, and the second port has since been **built
945
2389
  and proved**: every member of the first cohort ships its rule as a compiled
946
2390
  subcommand, byte-identical to the shell gate it reproduces.
947
2391
 
948
- **What stands between that port and an adopter is narrower than it was read to
949
- be, and getting the boundary right is what let the descriptors land.** The
950
- operator-gated first tag that publishes binaries as Release assets
951
- (TRAJECTORY.md) is a prerequisite to an adopter **dispatching** to the binary: a
952
- `.gate` descriptor vendors and the binary does not, so a consumer that
953
- *registers* a ported member before that tag has a member that cannot run
954
- (§Consumer smoke). It is not a prerequisite to *declaring*, which is what the
955
- cohort's hold was resting on. A vendored descriptor no consumer registry names
956
- dispatches to nothing, and the load-bearing predicate
957
- (§check-gate-binary-fresh) is what makes that distinction machine-held rather
958
- than merely stated. So the descriptors are live and the tag governs the narrower
959
- thing it always governed.
2392
+ **What stood between that port and an adopter was narrower than it was read to
2393
+ be, and getting the boundary right is what let the descriptors land.** The first
2394
+ tag publishing binaries as Release assets was a prerequisite to an adopter
2395
+ **dispatching** to the binary: a `.gate` descriptor vendors and the binary does
2396
+ not, so a consumer that *registered* a ported member before that tag held a
2397
+ member that could not run (§Consumer smoke). It was never a prerequisite to
2398
+ *declaring*, which is what the cohort's hold was resting on. A vendored
2399
+ descriptor no consumer registry names dispatches to nothing, and the
2400
+ load-bearing predicate (§check-gate-binary-fresh) is what makes that distinction
2401
+ machine-held rather than merely stated. **That tag is cut** — `v0.22.0` — so the
2402
+ prerequisite is discharged and the distinction is recorded for the boundary it
2403
+ draws rather than as a live constraint.
960
2404
 
961
2405
  **What a landing descriptor *carries* is the freshness oracle — and it was already
962
2406
  in the tree.** A dispatch is what makes the binary load-bearing, and the moment
@@ -979,8 +2423,8 @@ compression once.
979
2423
  **Dogfooding is ruled, not deferred: this repo runs built artifacts.** It is
980
2424
  recorded here rather than left to the first live port because making a compiled
981
2425
  toolchain a precondition of this repo's own battery is a change to what the
982
- contract *means*, and settling one in code first is the move
983
- `init-claim-stickiness` ruled against (TRAJECTORY.md §The closed rulings). Both
2426
+ contract *means*, and a contract change settled by implementation is settled in
2427
+ the wrong place. Both
984
2428
  halves hold at once — a port is what *determines* the answer, and the answer is
985
2429
  written down before the port lands.
986
2430
 
@@ -998,7 +2442,7 @@ is registered and resolves to a `.gate` descriptor, so **gates in `gates.list`
998
2442
  dispatch to the binary and `cargo` is required to commit here.** The toolchain floor pin
999
2443
  (context-kit/SPEC.md §bin/env-probe) has therefore sharpened from its
1000
2444
  build-and-CI tier to the **commit-time** tier, and a fresh clone cannot commit
1001
- until it has run `cargo build --release --manifest-path native/Cargo.toml` once —
2445
+ until it has run `bash gate-sdk/bin/build-native.sh` once —
1002
2446
  which `cargo test` does not do (§check-gate-binary-fresh). CI still builds,
1003
2447
  clippies and tests the crate, and `check-gate-substrate-parity` still reads the
1004
2448
  binary's `--list` roster whenever it is built; what changed is that those are no
@@ -1155,7 +2599,11 @@ roster line plus one runner mapping, never a workflow rewrite.
1155
2599
  the artifacts are never produced from a working tree: the pack step takes them
1156
2600
  from the run artifacts the build legs uploaded and builds nothing itself, so a
1157
2601
  locally-built binary can never substitute for a released one — the same reasoning
1158
- the vendoring ruling applied to the crate source, arriving one layer out. The
2602
+ the vendoring ruling applied to the crate source, arriving one layer out. **The
2603
+ consumer smoke's host-built artifact is a harness stand-in, not this rule
2604
+ relaxing**: it builds from a working tree because it has no Release to draw on,
2605
+ and hands `pack-installer.sh` a directory it did not produce, exactly as a build
2606
+ leg would (installer/README.md §The consumer smoke). The
1159
2607
  one-payload shape is ruled on the numbers: the *installed* footprint is one
1160
2608
  binary either way, since the installer writes only the matching target, so the
1161
2609
  difference against a per-target payload is download size alone and is bounded by
@@ -1284,11 +2732,21 @@ and runs `init` against it. The two harnesses must not blur: this one answers
1284
2732
  *do the kits work when vendored*, that one answers *does the installer deliver
1285
2733
  them*.
1286
2734
 
2735
+ **Its default run vendors every kit, so its silence on a subset vendoring is not
2736
+ coverage.** `run-consumer-smoke.sh` takes kit roots as arguments, and the
2737
+ subset invocation — vendoring one kit while the shared binary carries every
2738
+ ported kit's subcommands — is a real configuration this harness can be put in and
2739
+ is not put in by any scheduled run. That configuration is covered instead by the
2740
+ bespoke `check-gate-substrate-parity` test, which reaches it in a sandbox at
2741
+ commit time (§check-gate-substrate-parity); recorded here so a later reader does
2742
+ not read the default run's green as an answer about the subset.
2743
+
1287
2744
  **It does place the gate binary, and the rule is stated rather than left as an
1288
2745
  exception, because a reader will otherwise lean on the older
1289
2746
  no-binary-by-design sentence and find it gone.** The rule: **a vendored member
1290
- that dispatches must be able to run, so the scratch consumer receives the
1291
- invoking repo's already-built artifact** (`csmoke_place_binary`, §lib/consumer-smoke.sh).
2747
+ that dispatches must be able to run, so the scratch consumer receives an
2748
+ already-built artifact out of a checkout the caller names**
2749
+ (`csmoke_place_binary`, §lib/consumer-smoke.sh).
1292
2750
  The ground is that a kit root vendoring a `.gate` descriptor is now the ordinary
1293
2751
  case — the first cohort ships two (§The first cohort, and the rule that selects
1294
2752
  the next) — and a kit's `smoke/install.sh` may legitimately register a ported
@@ -1299,10 +2757,26 @@ under *The registration accounting* below. Refusing the binary would have made
1299
2757
  that registration permanently red and forced the coverage out, which is the
1300
2758
  opposite of what this harness exists for.
1301
2759
 
2760
+ **Whose artifact it is, is the caller's to name.** The checkout whose `native/`
2761
+ was built is the function's first argument. It was once resolved from the
2762
+ library's own `BASH_SOURCE`, and a shared library deciding from its own location
2763
+ whose artifact a caller receives is a defect that stays invisible until some
2764
+ caller wants a different one. `upgrade-smoke` is that caller: it runs two refs'
2765
+ vendored shell against one scratch consumer, and under the old resolution both got
2766
+ the *invoking* tree's binary — so FROM's shell ran against TO's binary and the
2767
+ mismatch was reported as a broken tag (§upgrade-smoke). `run-consumer-smoke.sh`
2768
+ and context-kit's `smoke/agents-md.sh` pass the invoking repo and behave exactly
2769
+ as they did. Whether a binary is wanted at all is `csmoke_gate_descriptors`,
2770
+ factored out of the placement so a caller that must *produce* one can ask the same
2771
+ question a step earlier rather than keep a second copy of the predicate.
2772
+
1302
2773
  Three constraints keep the placement from becoming a second install path. It is
1303
2774
  a **copy, never a build** — the artifact comes from `GATE_SDK_NATIVE_BIN` in the
1304
- invoking tree, which is already obliged to be current there
1305
- (§check-gate-binary-fresh), so the harness acquires no toolchain of its own. It
2775
+ named checkout, which for the in-repo callers is already obliged to be current
2776
+ (§check-gate-binary-fresh), so this harness acquires no toolchain of its own.
2777
+ That a caller may have built the checkout it names does not change the rule here:
2778
+ `upgrade-smoke` builds one binary per ref before calling, and that requirement is
2779
+ its own and stated there (§upgrade-smoke). It
1306
2780
  lands at the **kit default** path and writes **no consumer config**, deliberately
1307
2781
  unlike `init`, which places the artifact in the gates dir and points the knob at
1308
2782
  it — that is the install path and it belongs to the other harness. And it is
@@ -1367,7 +2841,10 @@ across the roster. The
1367
2841
  README item of that checklist carries the register-the-gates block in
1368
2842
  `<!-- gate-roster:begin -->` / `<!-- gate-roster:end -->` markers, held in
1369
2843
  name-set parity with the kit's shipped `checks/` by `check-readme-roster`
1370
- (§check-readme-roster) — a kit that ships checks registers them. A new gate MAY
2844
+ (§check-readme-roster) — a kit that ships checks registers them. Every gate in
2845
+ that roster carries its `# install:` declaration, one more clause of the same
2846
+ checklist and the one `check-install-disposition` holds (§The install
2847
+ disposition). A new gate MAY
1371
2848
  also gain a `pass` row in the held-constant validate baseline —
1372
2849
  evidence-kit/SPEC.md §Baseline manifest tolerates its absence (a classification
1373
2850
  cost only, zero enforcement loss). A new kit's
@@ -1381,7 +2858,10 @@ enforcing it.
1381
2858
  `scripts/gates.list`, establish the minimal governed surface its gates need
1382
2859
  to be green, and regenerate the hook + graph artifacts. *Which* gates it
1383
2860
  registers is not the author's discretion — *The registration accounting*
1384
- below rules on every omission. It may assume gate-sdk
2861
+ below rules on every omission, and the installer's own narrower subset is
2862
+ derived from the same per-gate declarations (§The install disposition) rather
2863
+ than listed anywhere. This roster is the **superset** of that subset, held so
2864
+ by `check-install-disposition` assertion B. It may assume gate-sdk
1385
2865
  is already installed (it runs first), nothing else. A non-zero exit aborts the
1386
2866
  harness with exit 2 (a broken installer is an environment failure, not a gate
1387
2867
  finding).
@@ -1448,6 +2928,18 @@ both. Removing the second probe as belt-and-braces re-opens the channel.
1448
2928
 
1449
2929
  Only the exit-2 rows reach the corroborating probe.
1450
2930
 
2931
+ **A declaration the probe contradicts is reported, not silently exempted.** A
2932
+ gate declaring `zero-config` (§The install disposition) asserts it reads a
2933
+ surface a fresh install writes; a probe finding that same gate surface-absent in
2934
+ the scratch consumer has derived the opposite. That is a **contradiction between
2935
+ a declaration and a derivation**, and the accounting names it as one rather than
2936
+ granting the ordinary self-declared exemption — which is the arm that keeps a
2937
+ *wrong* declaration from being as invisible as a missing one, the missing one
2938
+ already being `check-install-disposition` assertion A's. The verdict is
2939
+ informational here rather than fatal, because the scratch consumer is not the
2940
+ tree `init` makes and a `zero-config` gate is legitimately unregistered in this
2941
+ harness's roster; what it must never be is unremarked.
2942
+
1451
2943
  **Probe first, reasons second.** The exemption is *derived* — recomputed from the
1452
2944
  tree every run, so it cannot go stale, be forgotten, or be copied wrong. That is
1453
2945
  its worth, and its worth is not coverage: on a real sweep the derivation justifies
@@ -1471,9 +2963,13 @@ per-gate annotations naming each gate's subject surface, so deriving
1471
2963
  `smoke/install.sh`'s registration from it would unify the roster and its
1472
2964
  reasons on paper. Declined on a boundary, not on merit: it would turn
1473
2965
  `smoke/install.sh` from an executable install recipe into a derivation over a
1474
- doc, which is what `kit-owned-install-recipe` (open, design-pending) asks
1475
- whether a kit's install-time roster should look like at all — deciding that
1476
- shape from inside this contract would pre-empt it sideways.
2966
+ doc. What that question settled instead is §The install disposition — the
2967
+ kit-owned fact is the per-gate **disposition**, and the roster the *installer*
2968
+ starts a consumer with is derived from it, while this script stays the
2969
+ executable recipe for the smoke's own richer tree. The disposition is not added
2970
+ to the README block either: that block is prose an adopter pastes, and a
2971
+ machine-read annotation inside a pasted snippet is a second grammar in a surface
2972
+ that has one.
1477
2973
 
1478
2974
  **The declaration valve.** Where a kit author judges an exit-0 or exit-1 omission
1479
2975
  legitimate — a vacuous pass that is not real coverage is the honest case — that
@@ -1566,7 +3062,7 @@ disambiguation of exit 2, which the contract deliberately leaves general.
1566
3062
  The family's single sourced library — values + adapters, never gate structure.
1567
3063
  It gives a gate author the fail-closed guard `fail_closed`, the walk adapters
1568
3064
  (`gate_find` / `GATE_GREP_EXCLUDES` / `gate_path_pruned` over the dirs
1569
- `GATE_SDK_PRUNE_DIRS` names),
3065
+ `GATE_SDK_PRUNE_DIRS` names, plus whatever `GATE_SDK_PRUNE_EXTRA_DIRS` appends),
1570
3066
  the registry helpers that resolve a check consumer-first across kit dirs
1571
3067
  (`gate_resolve`, `gate_kit_roots` / `gate_kit_roots_rel`, `gate_check_dirs` —
1572
3068
  the multi-kit resolution path other kits' gates ride), and the `# graph:`
@@ -1574,6 +3070,26 @@ manifest readers (`gate_expand_couples` and its siblings §The `# graph:`
1574
3070
  manifest). How each derives its result lives in the source; the invariants a
1575
3071
  reader needs outlive the refactor that renames a helper:
1576
3072
 
3073
+ - **The prune set is one array, read by all three walk adapters**, which is why a
3074
+ member added to it needs no per-gate edit. Its members are directories that are
3075
+ never a consumer's source: third-party build and dependency output (`target`,
3076
+ `node_modules`), git's own store (`.git`), this methodology's scratch (`.tmp`),
3077
+ fixture corpora a gate must not judge as tree content (`gate-tests`), and
3078
+ `worktrees` — the leaf under which an agent harness materializes a **second full
3079
+ copy of the repo**. That copy is the reason the member is a kit default rather
3080
+ than consumer config: every tree-walking gate descends into it, so a live
3081
+ isolated dispatch reddens the battery with findings that name the session's own
3082
+ files, and every consumer running isolated dispatch hits it identically. The
3083
+ match is on the **leaf basename**, so `worktrees` selects that directory and
3084
+ nothing else — the parent is not named and its siblings are not taken.
3085
+ **The caveat a green battery cannot tell you**: pruning the parent instead also
3086
+ passes, because that parent typically holds only markdown and JSON, which the
3087
+ shell/Rust walk never collects — but the governed markdown surfaces under it are
3088
+ read by *explicit globs* no prune touches, so the blunt variant loses coverage
3089
+ silently rather than reddening. Prune the leaf. The same silence is the residual
3090
+ risk of the member itself: a consumer whose own source lives under a directory
3091
+ named `worktrees` (or `target`, or `.tmp`) loses coverage with no red, and
3092
+ reaches for `GATE_SDK_PRUNE_DIRS` to restate the set without it.
1577
3093
  - The commit-surface value adapters (`gate_msg_pattern_files`,
1578
3094
  `gate_commit_types`) are the single home of the banned-pattern set and the
1579
3095
  commit-type roster, each documented at its gate (§check-commit-msg,
@@ -1585,8 +3101,23 @@ reader needs outlive the refactor that renames a helper:
1585
3101
  - `gate_fixture_suites` is the single source both the CI workflow
1586
3102
  (`.github/workflows/gates.yml`) and evidence-kit's validate config loop over,
1587
3103
  so adding a kit enrols its fixtures with no hand-list to drift.
1588
- - `gate_kit_roots_rel` emits the roots repo-root-relative — the anchor the
1589
- couples globs share.
3104
+ - `gate_kit_roots_rel` emits the roots relative to **the directory holding the
3105
+ kits**, which it derives from `gate_sdk_root` — the library's own location,
3106
+ never the caller's working directory and never the git toplevel. That is the
3107
+ anchor the couples globs share, and it is cwd-independent by design so a
3108
+ `cd`-ing caller still gets stable names. The consequence a caller must hold:
3109
+ the *names* come from the library's own tree, so a script that resolves those
3110
+ relative roots against some other tree gets one tree's kit set spelled over
3111
+ another tree's contents.
3112
+ - **`GATE_SDK_PROGRAM_FLOOR` is the one home of the payload's assumed-program
3113
+ set**, read by §port-blockers at the transition where a command-position word is
3114
+ classified as a criterion-7 requirement or discarded. It is a kit default rather
3115
+ than a literal in the tool for the reason every other knob is: a consumer
3116
+ shipping a different floor — a stripped container, a busybox userland — repoints
3117
+ it instead of patching the derivation. `git` is a member because §The
3118
+ port-candidate criteria already rules it the sanctioned exception, *"because it
3119
+ is the floor"*, and the set is written here rather than restated in the SPEC
3120
+ prose that cites it.
1590
3121
  - `gate_native_targets` is the **target roster's single reader**: one Rust target
1591
3122
  triple per live line, `#`-comments and blank lines stripped by the same
1592
3123
  `gates_list_members` grammar `scripts/gates.list` uses. An absent roster emits
@@ -1625,9 +3156,163 @@ same answer:
1625
3156
  name is ambiguous dispatch and is red (§check-gate-substrate-parity assertion
1626
3157
  A), never resolved by ordering.
1627
3158
  - `gate_command` returns the **invocation argv**, one element per line: the
1628
- one-element `<dir>/<name>.sh`, or the two-element `<binary> <name>`. Its
1629
- callers are the execution sites — §run-gates, §run-gate-tests, and
1630
- §gen-pre-commit, which does not execute the argv but *emits* it into the hook.
3159
+ one-element `<dir>/<name>.sh`, or the two-element `<binary> <name>` —
3160
+ prefixed, when the member declares knobs, by the config bridge below. Its
3161
+ callers are the execution sites: gate-sdk's own — §run-gates, §run-gate-tests,
3162
+ and §gen-pre-commit, which does not execute the argv but *emits* it into the
3163
+ hook — and, since the lifecycle-kit cohort, **a kit's own `bin/` and `smoke/`**,
3164
+ which reach it for the same reason and are the first callers outside the test
3165
+ lane. The contract they read is the one already stated here, with one asymmetry
3166
+ worth naming where the argv is: a caller that resolves and executes from
3167
+ different directories must pin `GATE_SDK_NATIVE_BIN` absolute, because the
3168
+ default is repo-relative (§Layout and configuration).
3169
+
3170
+ **The array-knob config bridge.** A consumer's kit knobs are bash arrays
3171
+ resolved by a shell library that is sourced *in-process by each shell gate*,
3172
+ after it is already the exec'd process. A compiled gate never runs that source,
3173
+ so without a bridge it sees none of them — and `GATE_SDK_PRUNE_DIRS`, a
3174
+ whitespace-separated scalar, is the one precedent that does not generalize.
3175
+ `gate_command` prints argv and every call site captures it in a subshell, so it
3176
+ cannot export into its caller; the bridge therefore rides the argv it already
3177
+ emits. For a `.gate` member declaring knobs the emitted argv becomes
3178
+
3179
+ ```
3180
+ env
3181
+ GATE_SDK_KNOB_<NAME>=<tab-joined values>
3182
+ …
3183
+ <binary>
3184
+ <name>
3185
+ ```
3186
+
3187
+ one element per line, the existing protocol unchanged. **A member declaring no
3188
+ knob emits the two-element argv exactly as before**, so the bridge is inert for
3189
+ a member that reads no config. The declaration is the crate's, not the
3190
+ descriptor's: the binary answers `--knobs <name>` with one knob name per line
3191
+ off registry data a member cannot compile without, and `gate_command` asks it
3192
+ for every `.gate` member before emitting argv. That is the same
3193
+ *registry-data-held-to-executed-behavior* shape as `--reads`, and it is what
3194
+ makes an unread bridged knob impossible — the crate declares only the knobs its
3195
+ own code reads.
3196
+
3197
+ Resolution, per declared knob:
3198
+
3199
+ - **The owning kit comes from the knob's own `<KIT>_<KNOB>` prefix**, mapped to
3200
+ a kit root through `gate_kit_roots`: each root's basename, hyphens to
3201
+ underscores and upper-cased, is tried as a `<KIT>_` prefix. A knob matching no
3202
+ root's prefix resolves to **gate-sdk itself** — never a parse error and never
3203
+ a third kit guessed at. That fallback is not a second rule bolted on: gate-sdk
3204
+ is the one kit every `.gate` dispatch already runs inside, so *no other kit
3205
+ claimed it* and *it is gate-sdk's own* are the same fact. `GATE_PRUNE_DIRS` is
3206
+ exactly that case, and the reason it exists: it is gate-sdk's *resolved*
3207
+ library global, deliberately distinct from the `GATE_SDK_`-prefixed consumer
3208
+ overrides that feed it, so it carries no `GATE_SDK_` prefix of its own.
3209
+ Derivation-first — no roster of knob→kit pairs is maintained, so none can rot.
3210
+
3211
+ **A distinct spelling is what a grammar change buys, and nothing else, so a
3212
+ gate-sdk knob that changes no grammar keeps its own name.** `GATE_SDK_PRUNE_DIRS`
3213
+ is a whitespace-separated scalar feeding an *array*, and one name meaning two
3214
+ grammars is the defect the closing paragraph of this subsection names. A
3215
+ scalar-in/scalar-out knob has no such collision, so it is resolved in
3216
+ `lib/gate.sh` under the consumer's own knob name and bridged under it — the
3217
+ shape every `QUEUE_KIT_`-prefixed knob already crosses in. `GATE_SDK_REGISTRY_DOC`
3218
+ and `GATE_SDK_RUNNER_DOC` are the live instances: resolved here so the bridge's
3219
+ does-not-define refusal cannot fire on them (§check-kit-registration), with the
3220
+ prefix rule reaching them through gate-sdk's *own* prefix rather than through
3221
+ the no-kit-claimed-it fallback. Both routes land on the same kit, which is why
3222
+ either spelling resolves and why the choice is a naming one.
3223
+
3224
+ **The configured set is consulted first, then the shipped one, and the order
3225
+ is load-bearing.** `GATE_SDK_KIT_DIRS` narrows which kits a battery *scans*;
3226
+ reading it as the set of kits that *exist* leaves a narrowed run unable to
3227
+ attribute another kit's knob, so it falls through to gate-sdk and fail-closes
3228
+ on every member that declares one. A narrowed run is not a hypothetical — it
3229
+ is how the kit-root prune is exercised at all, since a prune only bites on a
3230
+ kit root below the scan root. So the lookup tries `gate_kit_roots`, then the
3231
+ shipped set the `checks/`-or-`smoke/` predicate derives, then gate-sdk.
3232
+
3233
+ **Those candidates are read to EOF before the match loop runs**, never
3234
+ streamed through a `while read` the first prefix hit returns out of. The
3235
+ lookup runs under a stdout capture, so an early hit that abandons the producer
3236
+ leaves it writing into a closed pipe; §run-gates gives the consequence, and
3237
+ why the environment that shows it is not the one a battery is usually run in.
3238
+ - **A bridged value may not carry an absolute path.** The resolved argv is baked
3239
+ **verbatim** into the generated pre-commit hook, which is tracked, so an
3240
+ absolute value commits one machine's checkout path to a public file. That is a
3241
+ constraint on what a knob may hold, not on the bridge: `gate_kit_roots`
3242
+ therefore crosses as `GATE_KIT_ROOTS_HERE`, each root spelled relative to the
3243
+ invoking directory, which the binary re-absolutises against its own cwd to
3244
+ recover exactly the path the shell compares. `GATE_KIT_ROOTS_REL` is the other
3245
+ spelling — anchored at the kits' parent, which is what a repo-relative
3246
+ pathspec or a knob-prefix owner needs — and the two are separate knobs because
3247
+ the anchor relating them is not recoverable from either alone once an override
3248
+ is in play.
3249
+ - **`GATE_SDK_RESOLVING_KNOB` names the knob under resolution**, exported into
3250
+ the subshell before the kit's libraries are sourced. A knob whose value is a
3251
+ consumer *command's output* costs a subprocess to compute, and a library is
3252
+ sourced once per declared knob per gate, so a library that resolved every such
3253
+ knob on every source would multiply that cost by the declared-knob count. A
3254
+ library with no expensive knob ignores it and is unaffected. The install
3255
+ transport and payload disclosure vocabularies cross this way as index-aligned
3256
+ id/pattern pairs (canon-kit/SPEC.md §lib/spec.sh), so a compiled member receives
3257
+ the consumer command's *output* and spawns no interpreter of its own. Their
3258
+ ownership is untouched: what changes is the transport, not who writes the
3259
+ vocabulary.
3260
+ - That kit's `lib/*.sh` is sourced **in a subshell**, in glob order, so a kit
3261
+ library's globals cannot leak into the dispatcher or across members. The value
3262
+ is read after every library has been sourced, so a kit whose knob is resolved
3263
+ by one library and consumed by another is carried correctly.
3264
+ - The resolved array is serialized **tab-joined**. Whitespace is preserved
3265
+ inside an element, which is exactly why the whitespace-separated scalar shape
3266
+ cannot serve — `CANON_KIT_TEMPORAL_EXEMPT_SECTIONS` contains `Out of scope`. A
3267
+ scalar knob is a one-element array; the two cases share one grammar. **Those
3268
+ two are the whole domain: the bridge carries scalars and indexed arrays and
3269
+ cannot carry an associative array**, because the serialization has no key
3270
+ channel — `<name>=<tab-joined elements>` transports elements only, so keys
3271
+ would have to be smuggled into element text and re-parsed. A `declare -A` knob
3272
+ is therefore not portable across the bridge as it stands, and a gate that reads
3273
+ one is not a port candidate until the wire format grows keys.
3274
+ Three knob-shaped instances exist, and they part company on whether a gate
3275
+ reads them. `QUEUE_KIT_LESSON_SINKS` has no gate reader — only
3276
+ `queue-kit/bin/lesson-sink.sh` reads it — so the queue-kit cohort ported with
3277
+ the limit untouched. `EVIDENCE_KIT_SCENARIO_GLOBS` and
3278
+ `LIFECYCLE_KIT_PREDECESSOR` are each read **by key** by a registered gate,
3279
+ `check-evidence-baseline` and `check-stage-entry` respectively, so the rule
3280
+ above holds those two members off the substrate. The limit is therefore
3281
+ **exercised**, in evidence-kit and in lifecycle-kit, rather than a curiosity
3282
+ carried forward by cohorts that never met it. Stated here because a later
3283
+ kit's port would otherwise discover it at implementation time.
3284
+ - **Three refusals, each exit 2 naming the knob** (§Fail-closed contract): an
3285
+ element containing a **newline**, which would break the line-per-element argv
3286
+ protocol; an element containing a **tab**, which would break the
3287
+ serialization; and a knob the owning kit's library **does not define**, since
3288
+ serializing that as empty would hand the reader an empty set — a fail-open
3289
+ dressed as a default, and for a prune set a silently *larger* walk. An
3290
+ element-less knob is not that case: a resolved-empty array serializes to the
3291
+ empty string and is carried, so *absent* and *empty* part company on the
3292
+ reading side too.
3293
+
3294
+ **The tab refusal is discharged upstream for a consumer-supplied ERE**, which is
3295
+ worth recording rather than re-checking per port. A POSIX ERE legitimately may
3296
+ contain a literal tab, so a claim vocabulary looks like a knob that could trip
3297
+ the refusal; `spec_claim_vocabulary` already rejects a vocabulary line carrying
3298
+ an extra tab and its line-oriented read forecloses a newline, so no value
3299
+ reaching those knobs can violate the bridge. The constraint is that loader's,
3300
+ not a new bound this bridge imposes on consumers.
3301
+
3302
+ The `GATE_SDK_KNOB_` prefix is deliberately **not** the knob's own name: reusing
3303
+ `CANON_KIT_MANIFEST_FILES` as an env scalar would collide with the existing
3304
+ whitespace-scalar override convention (`GATE_SDK_PRUNE_DIRS` is exactly such a
3305
+ knob), and one name meaning two grammars is the defect the prefix avoids.
3306
+
3307
+ `env` is an external program in the dispatch path, sanctioned here because the
3308
+ dispatcher is already bash — this adds no dependency any caller did not have —
3309
+ and because the alternative, a shell wrapper per gate, would add a bash hop to
3310
+ every invocation and contradict the port's own purpose. **Its cost is borne by
3311
+ the callers, and is stated here rather than left for each to rediscover**: a
3312
+ bridged argv begins with `env`, not with the dispatch executable, so a caller
3313
+ that needs *the executable* rather than *the command* takes the first element
3314
+ that is neither `env` nor a `NAME=VALUE` assignment. §run-gate-tests is the one caller that
3315
+ needs it, and it is named there.
1631
3316
 
1632
3317
  The binary's path is the knob `GATE_SDK_NATIVE_BIN` (§Layout and configuration),
1633
3318
  never a literal. An **absent or non-executable** binary when a registry member
@@ -1639,7 +3324,10 @@ this exactly as it is and makes it unreachable in a correctly installed tree —
1639
3324
  a member arrives either with its verified artifact or not at all, omitted from
1640
3325
  `gates.list` and recorded there (§Porting a gate to the binary substrate,
1641
3326
  criterion 5) — so exit 2 is the backstop for a tree whose binary was deleted or
1642
- replaced, never the path an unsupported platform takes.
3327
+ replaced, never the path an unsupported platform takes. A binary that is
3328
+ executable but **cannot report its knobs** — a non-zero `--knobs` — is the same
3329
+ harness error for the same reason: a bridge that quietly carried nothing would
3330
+ hand every declared reader an unset variable.
1643
3331
 
1644
3332
  `fail_closed` must be passed *only* a status that genuinely means the check
1645
3333
  could not execute (an awk/jq/parser crash) — never `grep`'s exit 1, which is
@@ -1647,7 +3335,7 @@ the expected "no match"; the caller draws that line at the capture site.
1647
3335
 
1648
3336
  ### lib/inject.sh
1649
3337
 
1650
- The marker-bounded span mechanics every kit's agent-file injector shares — two
3338
+ The marker-bounded span mechanics every kit's agent-file injector shares — three
1651
3339
  functions over one notion of a well-formed block.
1652
3340
 
1653
3341
  `inject_marker_block <file> <begin> <end>` takes the inner block content on
@@ -1663,12 +3351,23 @@ caller to report.
1663
3351
  existing block's inner content (markers exclusive) on stdout, prints nothing
1664
3352
  and exits 0 when the marker pair is absent, and refuses on the same two
1665
3353
  malformed targets its sibling refuses on — a begin marker without its end, and
1666
- a missing file, both exit 2. The two agreeing on what a malformed target is, in
1667
- one module, is the point of pairing them: a caller that reads a block before
1668
- rewriting it must not meet two different answers to the same question.
1669
-
1670
- The module owns **placement and retrieval, and nothing above them.** Block
1671
- content *generation* stays with the caller (the lifecycle roster, the doctrine
3354
+ a missing file, both exit 2.
3355
+
3356
+ `remove_marker_block <file> <begin> <end>` is the third: it deletes the marker
3357
+ pair and everything between it (inclusive), leaves the rest of the file
3358
+ byte-identical, and echoes `removed` when it removed one. An **absent begin
3359
+ marker is a no-op that exits 0 and prints nothing**, not a refusal — the caller
3360
+ is a path reversing an installation, which cannot know whether the block was
3361
+ ever written there, so a second removal must be as quiet as the first. It
3362
+ refuses on the same two malformed targets its siblings refuse on, both exit 2.
3363
+
3364
+ All three agreeing on what a malformed target is, in one module, is the point of
3365
+ keeping them together: a caller that reads a block before rewriting it, or
3366
+ removes one it may never have written, must not meet three different answers to
3367
+ the same question.
3368
+
3369
+ The module owns **placement, retrieval and removal, and nothing above them.**
3370
+ Block content *generation* stays with the caller (the lifecycle roster, the doctrine
1672
3371
  digest), and so does any rule about what to *preserve* out of a block that was
1673
3372
  read — doctrine-kit's declared-trim round-trip (doctrine-kit/SPEC.md
1674
3373
  §install-doctrine) is read-compute-emit in that installer, not a preserve rule
@@ -1677,17 +3376,18 @@ one kit's marker vocabulary to every consumer of a generic injector, which is
1677
3376
  the provenance seam this split keeps intact; the caller-side shape is the one
1678
3377
  `bin/gen-pre-commit.sh` already uses for its `gen=manual` regions. So a second
1679
3378
  injector adds no second copy of the awk replace logic — every marker-bounded
1680
- projection in the tree rides these two, `doctrine-kit/bin/install-doctrine.sh`
3379
+ projection in the tree rides them, `doctrine-kit/bin/install-doctrine.sh`
1681
3380
  and `lifecycle-kit/bin/install-lifecycle.sh` among them. A sourced library, not
1682
3381
  a gate: exercised end-to-end wherever an installer that rides it runs
1683
3382
  (doctrine-kit and lifecycle-kit `smoke/install.sh`) — doctrine-kit's covers the
1684
- read half, through the trim round-trip its acceptor drives.
3383
+ read half through the trim round-trip its acceptor drives, and the removal half
3384
+ through a `--remove`/reinstall round trip beside it.
1685
3385
 
1686
3386
  ### lib/declaration.sh
1687
3387
 
1688
3388
  The tightened-gates declaration grammar — **two container arms over one token
1689
- predicate**, sourced by three callers. The token predicate is a bare gate name
1690
- (`DECL_TOKEN_RE`); the container is the only thing that differs between the arms,
3389
+ predicate**, sourced by three callers. The token predicate is a bare gate name;
3390
+ the container is the only thing that differs between the arms,
1691
3391
  which is what keeps two surfaces from re-opening the same defect from opposite
1692
3392
  directions.
1693
3393
 
@@ -1725,7 +3425,7 @@ Callers, all four named: `bin/upgrade-smoke.sh` at its declaration-resolve step
1725
3425
  uses both arms (§upgrade-smoke); this repo's `check-tightened-gates-grammar`
1726
3426
  uses the markdown arm's verdict at each note it walks; `scripts/check-tightened-gates-note-parity.sh`
1727
3427
  also uses both arms, comparing a note's `Tightened gates` section
1728
- (`decl_section_tokens`) against its `DECL_FILE` argument's record set
3428
+ (`decl_section_tokens`) against its declaration-file argument's record set
1729
3429
  (`decl_record_tokens`); and `scripts/check-release-bump.sh` uses the markdown
1730
3430
  arm's *container* alone, counting bullets across the note's declaration-bearing
1731
3431
  sections. That last caller is why the container and the token predicate are
@@ -1739,7 +3439,7 @@ a gate, so it owes no `good/`+`bad/` pair; its runtime lock-in is
1739
3439
  `gate-tests/lib-declaration.test.sh`. The record arm is also exercised through
1740
3440
  `scripts/gate-tests/check-tightened-gates-note-parity`'s own `good/`+`bad/`
1741
3441
  pair, whose `tightened-gates.txt` fixture drives `decl_record_tokens` via the
1742
- gate's `DECL_FILE` argument. The direct unit test keeps its place — it is
3442
+ gate's declaration-file argument. The direct unit test keeps its place — it is
1743
3443
  still the arm's runtime lock-in — standing on its own rather than on an
1744
3444
  absence that is not there.
1745
3445
 
@@ -1801,6 +3501,28 @@ any CI wrapper without an argv contract change. Gates themselves are untouched
1801
3501
  each still prints its single clean line per the output contract (§Output
1802
3502
  contract); the runner captures it.
1803
3503
 
3504
+ **The dispatch capture holds the two streams apart.** `gate_command`'s stdout
3505
+ *is* the invocation argv, one element per line; its stderr is diagnostic text.
3506
+ Merging them makes any stderr a successful call emits the **first argv element**,
3507
+ which the runner then execs — a 127 naming the diagnostic instead of running the
3508
+ gate, and a `cstatus` of 0 throughout, so nothing upstream reads as an error. So
3509
+ stdout is captured into the argv value and stderr into
3510
+ `<tmp-dir>/gate-dispatch-stderr.txt`, which is read only as the body of the
3511
+ exit-2 (dispatch harness error) report — the reuse the merge existed to serve,
3512
+ and the reason the fix is a split rather than a deletion of the capture.
3513
+
3514
+ The failure this closes was neither theoretical nor a race: a helper that
3515
+ abandoned a pipe producer mid-write emitted a broken-pipe diagnostic on **every**
3516
+ run wherever SIGPIPE is ignored — a CI runner inherits `SIG_IGN` from its
3517
+ supervisor, so the write returns `EPIPE` and bash reports it — while a shell at
3518
+ the default disposition loses the producer silently and shows nothing at all. An
3519
+ environment-determined defect a green local battery cannot see is exactly what
3520
+ this capture must be structural against, rather than left to each producer's
3521
+ discipline: the runner execs whatever stdout carries, so *no* producer may be
3522
+ trusted to keep stderr clean. Reproducing it locally means restoring the
3523
+ runner's signal environment (`trap '' PIPE`), which is what makes the
3524
+ `lib-gate.test.sh` arm deterministic instead of environmental.
3525
+
1804
3526
  `run-gates.sh --for <path> [<path>...]` is the path-scoped selector, the
1805
3527
  agent-callable half of the oracle-first rule: it resolves the registry exactly
1806
3528
  as a bare run, then runs only the members whose *effective trigger* (`trigger=`
@@ -1853,8 +3575,70 @@ rather than a shell-only one — `check-gate-fixture-coverage` asserts a pair
1853
3575
  *exists* and never runs it, so without this the pair would be an unrun
1854
3576
  assertion the moment a gate ported. The ordering is binding: a ported gate's
1855
3577
  pair passes against the subcommand **before** the script it replaces is
1856
- deleted, never after. argv[0] is absolutized before the `cd`, because the binary
1857
- knob's default is deliberately a repo-relative path.
3578
+ deleted, never after.
3579
+
3580
+ **Every subdirectory of a tests dir is read as a case pair.** The runner globs
3581
+ `<tests-dir>/*/` and demands `good/` and `bad/` under each, so a directory that
3582
+ is not a gate's fixture pair is not ignored — it reds as a missing case dir. A
3583
+ bespoke `*.test.sh` therefore keeps its corpus inline (or under the scratch dir)
3584
+ rather than in a sibling directory beside itself.
3585
+
3586
+ **A bespoke `*.test.sh` reaches its gate the same way, through `gate_run`**
3587
+ (`lib/test-hermetic.sh`): it names a gate and a checks dir, never a script path,
3588
+ so a member's port leaves its behavioral tests untouched. Two mechanics make
3589
+ that work where a `"$GATE"` path did not. The binary is pinned absolute, because
3590
+ these tests run their gate from a sandbox cwd where the knob's repo-relative
3591
+ default resolves to nothing. And a case's environment is applied with `gate_env`
3592
+ inside the command substitution rather than with `env`, because `env` cannot
3593
+ invoke a shell function and — more to the point — a bridged knob is resolved
3594
+ when the **argv** is built, so an override set around the binary would arrive
3595
+ after the value it was meant to change had already been read.
3596
+
3597
+ **A `*.test.sh` may also be a *scenario* runner rather than a gate driver, and
3598
+ one that compares substrates asserts exactly where a dispatch exists.** A bespoke
3599
+ test whose subject is a shared derivation held on both substrates — queue-kit's
3600
+ parity harness is the first (queue-kit/SPEC.md §lib/queue.sh) — reaches the
3601
+ compiled side through `gate_native_bin` rather than a gate name, since the arm it
3602
+ interrogates is a binary-level flag and dispatches no gate
3603
+ (§check-gate-substrate-parity). Its skip predicate is
3604
+ `check-gate-binary-fresh`'s **a declaration is not a dispatch**, applied one layer
3605
+ up: where the binary is absent or non-executable — a consumer on an uncovered
3606
+ platform, vendoring the shell library with no artifact behind it — the comparison
3607
+ has nothing to compare and **skips, saying so on its clean line**, in the
3608
+ reporting shape the port's omitted-member roster uses, so a reader can tell *no
3609
+ binary here* from *parity holds*. A silent skip would be the same vacuity the
3610
+ fixture pair exists to end, arriving in the test layer. Two boundaries keep the
3611
+ skip narrow. A binary that is **present** and refuses the arm is a stale binary,
3612
+ not an absent one, so it fails rather than skips and §check-gate-binary-fresh is
3613
+ what names it — with the same bounded version-skew residual assertion B states,
3614
+ an adopter vendoring a kit newer than its installed binary reding until the binary
3615
+ is upgraded. And the runner asserts that its **corpus still reaches the branches
3616
+ the comparison was bought for**: an agreement over a corpus that classifies
3617
+ nothing is a pass with no content, which is the skip's failure mode wearing a
3618
+ clean line.
3619
+
3620
+ The runner is the **one caller that needs the dispatch executable rather than
3621
+ the whole command**, so it is the one the config bridge's argv shape reaches
3622
+ (§lib/gate.sh). It takes the first element that is neither `env` nor a
3623
+ `NAME=VALUE` assignment, and applies both the executable guard and the
3624
+ absolutization to *that* element. Both halves matter: `env` is a PATH lookup
3625
+ with no directory to resolve, so guarding argv[0] would reject every bridged
3626
+ member; and the binary knob's default is deliberately a repo-relative path, so
3627
+ the element that is not absolutized before the `cd` is resolved against the case
3628
+ dir and vanishes.
3629
+
3630
+ **The same split governs where a bridged member's knob *values* come from, and
3631
+ it lands on the other side.** The dispatch executable and the gate dirs are
3632
+ resolved at the invoker's root; the **knob values are resolved inside the case
3633
+ dir**, because a kit library resolves its `<KIT>_CONFIG_FILE` cwd-relative and
3634
+ the case's own config is what the shell substrate reads. Resolving them at the
3635
+ invoker's root instead hands the binary *this repo's consumer config* while the
3636
+ script beside it reads the fixture's — which is not one oracle over two
3637
+ substrates but two oracles, and it silently contradicts the hermeticity clause
3638
+ below. So `gate_command` is invoked from within the case dir, and only the
3639
+ config lookup moves: the binary is absolutized before it, for the reason the
3640
+ paragraph above gives. A member declaring no knob is unaffected by construction,
3641
+ the bridge emitting no `env` prefix for it at all.
1858
3642
 
1859
3643
  **The output contract is asserted here, at runtime** (§Output contract). A
1860
3644
  `good/` case must emit the canonical `^<NAME>: clean (<parenthetical>)$` line
@@ -1948,25 +3732,78 @@ the `upgrade` validate suite running it (scripts/evidence-config.sh) is its
1948
3732
  evidence, at ~2× run-consumer-smoke's cost since it runs the battery twice in
1949
3733
  scratch (accepted as validate-stage cost, never pre-commit).
1950
3734
 
3735
+ **Each phase runs against its own ref's gate binary**, and that pairing is what
3736
+ makes phase 1's claim true as written. A `.gate` member dispatches to a binary
3737
+ that does not travel with the kits: `native/` ships no `checks/` or `smoke/`, so
3738
+ it is not a vendorable kit root and the phase-A swap never reaches it. A harness
3739
+ placing one binary once therefore runs FROM's *shell* against it as well — and a
3740
+ FROM tag whose own shell predates a widened binary interface reds under a pairing
3741
+ that never shipped, while phase 1's message calls the tag broken. So the suite
3742
+ builds **one binary per ref**: FROM's before phase 1, TO's in the same motion that
3743
+ swaps the kit directories, because that swap *is* the upgrade transition. Phase
3744
+ B's claim — TO's shell against TO's binary — then holds by construction rather
3745
+ than by the host tree happening to be TO.
3746
+
3747
+ **A ref's binary comes from a detached worktree at that ref, never from the
3748
+ archive its kits come from.** `native/build.rs` stamps the crate's source by
3749
+ running `git ls-files` and panics where that fails, saying why: the crate builds
3750
+ inside its own git checkout by construction and is never vendored. An
3751
+ archive-and-build therefore dies in the build script rather than in the compiler —
3752
+ a failure mode that reads as a broken tag if it is met at implementation time
3753
+ instead of ruled here. The worktree is added under the scratch base and
3754
+ trap-removed, so its `native/target/` is scratch as well and the host's build
3755
+ output — what `check-gate-binary-fresh` judges — is untouched. The cost is not
3756
+ what it looks like: the crate declares no dependencies at any tag, so a cold
3757
+ release build is a few hundred milliseconds against a suite that vendors,
3758
+ installs and runs the whole battery twice.
3759
+
3760
+ **A ref carrying no crate is a branch, not a special case.** Whether a binary is
3761
+ needed at all comes from `csmoke_gate_descriptors` (§Consumer smoke) — the same
3762
+ derivation the placement itself uses, asked one step earlier because a builder
3763
+ must decide before it can name a source tree. A ref whose vendored kits carry no
3764
+ `*.gate` needs none, so no worktree is added and no build runs: that is every tag
3765
+ before the first one shipping `native/`, any of which a consumer may name in
3766
+ `GATE_SDK_UPGRADE_FROM`. A ref that *does* dispatch and carries no crate, or whose
3767
+ crate will not compile under the current toolchain, is **exit 2 under phase 1's
3768
+ existing rule** — an environment or tag fact, never an upgrade finding — reported
3769
+ with the ref named and the build's own stderr. The one thing it must not do is
3770
+ fall back to the host's binary, which is the behavior this delta replaced wearing
3771
+ a fallback's clothes.
3772
+
3773
+ **Both sides of the comparison are committed at their ref, and that is a second
3774
+ inconsistency the same pairing closes.** Phase A archives TO, so the kits under
3775
+ test were always TO's *committed* content while the binary was the host's
3776
+ *working-tree* build — a dirty tree tested committed kits against an uncommitted
3777
+ binary. It is named as its own consequence because a reader who sees only the
3778
+ FROM half will restore the host-binary shortcut for TO on the ground that TO is
3779
+ usually `HEAD`.
3780
+
1951
3781
  **What it does not cover.** The transition it proves is the *vendored kit
1952
3782
  directories* moving FROM→TO — phase A replaces them wholesale, in tree. It never
1953
3783
  re-runs an installer, so a consumer's **cross-version init path** is outside its
1954
3784
  reach entirely: a green `upgrade` suite is evidence about kit contents, not about
1955
3785
  whatever activation surface a consumer ships to deliver them. State it here
1956
3786
  rather than leaving it inferable from the phase-A step list, since the suite's
1957
- name invites the wider reading.
1958
-
1959
- **The gate binary sits on the far side of that same limit**, and it is recorded
1960
- here rather than quietly folded into the determinism assertion. That assertion
1961
- covers changes under the kit roots plus the two regenerated artifacts; phase A
1962
- replaces the vendored directories in tree and never runs an installer, so the
1963
- artifact write is outside its reach entirely and an installed binary is neither
1964
- a determinism finding nor a determinism exemption. Widening the assertion to
1965
- name it would claim coverage this tool cannot have. The install path's own
1966
- idempotence proof is the installer's smoke (installer/README.md §The consumer
1967
- smoke), which does re-run `init`, and the rule that satisfies it is the
1968
- manifest's: an on-disk artifact that still verifies against the recorded digest
1969
- is not rewritten (installer/README.md §The manifest).
3787
+ name invites the wider reading. What left this paragraph is the **gate binary
3788
+ alone**, and only for the phases the suite pairs: each runs its own ref's
3789
+ artifact, so a dispatched member's FROM-vs-TO behavior is covered. The
3790
+ vendored-kit-only reach still holds for the installer path.
3791
+
3792
+ **The gate binary is placed by the harness, and still sits outside the
3793
+ determinism assertion.** That assertion covers changes under the kit roots plus
3794
+ the two regenerated artifacts; phase A replaces the vendored directories in tree
3795
+ and never runs an installer, so a consumer's *install* path for the artifact is
3796
+ outside its reach entirely and an installed binary is neither a determinism
3797
+ finding nor a determinism exemption. Widening the assertion to name it would
3798
+ claim coverage this tool cannot have. Re-placing the binary at phase A does not
3799
+ disturb that, and the reason is mechanical rather than argued: the scratch
3800
+ consumer's `.gitignore` carries `gate_native_bin`'s path (§Consumer smoke), so
3801
+ the placed artifact never enters the `git status` the assertion reads, and no
3802
+ allow-set entry is added. The ruling stands unchanged and is cited here, not
3803
+ amended. The install path's own idempotence proof is the installer's smoke
3804
+ (installer/README.md §The consumer smoke), which does re-run `init`, and the rule
3805
+ that satisfies it is the manifest's: an on-disk artifact that still verifies
3806
+ against the recorded digest is not rewritten (installer/README.md §The manifest).
1970
3807
 
1971
3808
  **The declaration resolves on two arms, both over §lib/declaration.sh's one
1972
3809
  token predicate.** A **tagged TO** resolves its version from the `v*` tag
@@ -2028,8 +3865,17 @@ each read exactly once at the resolve step:
2028
3865
  - `GATE_SDK_UPGRADE_FROM` — the FROM ref (default: the source repo's newest
2029
3866
  `v*` tag; none resolvable is exit 2, not a skip).
2030
3867
  - `GATE_SDK_UPGRADE_TO` — the TO ref (default: `HEAD`).
2031
- - Scratch base is the existing `GATE_SDK_TMP_DIR` knob; the extracted trees and
2032
- the consumer are `mktemp`-created under it and trap-removed.
3868
+ - Scratch base is the existing `GATE_SDK_TMP_DIR` knob; the extracted trees, the
3869
+ per-ref worktrees and the consumer are created under it and trap-removed.
3870
+
3871
+ **`cargo` on `PATH` is a requirement on this suite, not on an adopter**, and it
3872
+ binds only for a ref that dispatches a member to the binary. `upgrade-smoke` is a
3873
+ validate-stage tool in the kit-source repo, whose contributors already need the
3874
+ toolchain for `check-crate-arms` and `bin/build-native.sh`. It reaches no consumer
3875
+ and does not touch `GATE_SDK_PROGRAM_FLOOR`, which bounds what a *gate rule* may
3876
+ invoke — stated because a reader meeting a new `cargo` dependency will reasonably
3877
+ ask whether §The port-candidate criteria's criterion 7 binds here, and it does
3878
+ not.
2033
3879
 
2034
3880
  Producers and consumers: the smoke's verdict (exit code + assertion output) is
2035
3881
  produced by the `upgrade` suite each validate stage, or by a consumer invoking
@@ -2069,7 +3915,40 @@ pre-commit hook to stdout and `--emit-commit-msg` the commit-msg hook
2069
3915
  and `commit-msg` only when a `tier=commit-msg` gate is registered. Adding a
2070
3916
  gate to either hook is manifest-only — there is no second hand-wiring step to
2071
3917
  drift. The emission is deterministic (no timestamps) so the committed hooks are
2072
- byte-stable. Both emitted hooks carry the quiet-green wrapper in their
3918
+ byte-stable.
3919
+
3920
+ **The hook bakes a ported member's resolved knob values**, because it resolves
3921
+ argv through `gate_command` at *generation* time and the bridge's `env` elements
3922
+ are part of that argv (§lib/gate.sh). So a kit-config edit stales the hook. That
3923
+ is the established property here rather than a new hazard: the hook already
3924
+ bakes a knob-derived value — the resolved `GATE_SDK_NATIVE_BIN` path sits
3925
+ literally in each ported member's `run_gate` line — and the hook's currency is
3926
+ held by regeneration plus `check-graph`'s byte-freshness assertion. The bridge
3927
+ widens the set of knobs that stale the hook; it does not invent the property.
3928
+
3929
+ **No trigger widening is owed for it, and that is verified rather than assumed.**
3930
+ `check-graph`'s `couples=` already carries `scripts/*.sh` and `kit:*.sh`, and
3931
+ the hook's `staged_matches` uses bash `[[ ]]` globs in which `*` spans `/` — so
3932
+ both surfaces a bridged knob's value can come from, the consumer's
3933
+ `<gates-dir>/*-config.sh` and the owning kit's `lib/*.sh`, are already inside
3934
+ the trigger. Adding a narrower glob would restate live coverage rather than add
3935
+ any, which is why none was added. Recorded so a later reader does not read the
3936
+ absence as a forgotten widening and re-attempt it.
3937
+
3938
+ **The alternative weighed and refused: a generated knob projection.** A shell
3939
+ tool dumping every resolved array into a tracked artifact, byte-compared by a
3940
+ freshness gate, is the shape this repo already uses for the hook, the graph
3941
+ artifact and the docs mirror, and it would keep values out of the hook. It is
3942
+ refused because the fixture runner `cd`s into each case dir, so every fixture
3943
+ case would need its own generated projection — a per-fixture generated artifact
3944
+ is a maintenance surface far larger than the staleness it avoids.
3945
+
3946
+ Emitted argv elements are quoted **deterministically**: an element made only of
3947
+ shell-inert characters is emitted verbatim, and anything else — a bridged value
3948
+ carrying the tab separator, or an element carrying spaces — becomes bash ANSI-C
3949
+ `$'…'`. `printf %q` is deliberately not used, because its spelling varies across
3950
+ bash versions and the committed hook must be byte-identical across clones for
3951
+ the freshness comparison to mean anything. Both emitted hooks carry the quiet-green wrapper in their
2073
3952
  generated header (§run-gates owns the contract): each gate invocation's output
2074
3953
  is captured and reprinted only when that invocation fails (then the uniform
2075
3954
  failure report as before) or when `GATE_SDK_VERBOSE` is set, and a fully green
@@ -2093,6 +3972,256 @@ the fresh clone learns of a wrong-identity or wrong-remote mapping before its
2093
3972
  first commit — the moment the push-identity half is cheapest to fix — and the
2094
3973
  gate's exit status surfaces through this script's.
2095
3974
 
3975
+ ### build-native
3976
+
3977
+ The one spelling of the crate build. Invoked as
3978
+ `bash gate-sdk/bin/build-native.sh [cargo-arg…]` from the repo root, it runs
3979
+ `cargo build --release --manifest-path <crate>/Cargo.toml` with any trailing
3980
+ arguments appended, so a per-target build supplies `--target <triple>` and still
3981
+ uses one spelling rather than a second copy of the literal. The crate comes from
3982
+ the existing `gate_native_crate` accessor (§Layout and configuration) — **no new
3983
+ knob**, per the config-via-env convention: a knob default gains readers without
3984
+ gaining spellings.
3985
+
3986
+ **It resolves the crate relative to cwd, never off its own location.** That is
3987
+ what lets a caller running from a scratch tree — the consumer smoke's build leg —
3988
+ set cwd and get that tree's crate, and it is why the contract says "from the repo
3989
+ root" rather than leaving the working directory unstated.
3990
+
3991
+ cargo's exit code passes through unmodified and both streams pass through
3992
+ untouched, so a caller capturing build output keeps working.
3993
+
3994
+ Fail-closed (§Fail-closed contract), each **exit 2 with cause** rather than a
3995
+ silent success or a skip:
3996
+
3997
+ - `cargo` not on `PATH` — the message names the contributor-side toolchain floor
3998
+ (context-kit/SPEC.md §bin/env-probe) instead of leaving a bare
3999
+ command-not-found to be interpreted.
4000
+ - The resolved crate directory carrying no `Cargo.toml`. This message names the
4001
+ **consumer case explicitly**: a consumer receives a prebuilt, digest-verified
4002
+ binary per declared target and never the crate source (§Consumer payload), so a
4003
+ consumer tree that reaches this script has found a misuse, not a missing build.
4004
+ Saying so is what keeps a vendored tool from reading as a broken one.
4005
+
4006
+ It is a tool, not a gate: no `# graph:` manifest, no `# install:` header, no
4007
+ fixture pair — the same distinction `queue-kit/bin/roadmap.sh` carries. It is
4008
+ `100755` in the index like every other `*/bin/*.sh` (§check-exec-bit).
4009
+
4010
+ **Why this is generic kit mechanism and vendors with the rest of gate-sdk.** It
4011
+ builds *the configured crate* and carries no repo-specific path, no product
4012
+ constant, and no private vocabulary; `native/` reaches it only as
4013
+ `GATE_SDK_NATIVE_CRATE`'s existing default.
4014
+
4015
+ **The residual, stated rather than gated.** Every reader of the build command
4016
+ cites this script, which removes the duplication outright rather than gating it —
4017
+ the stronger half of enforcement-first, and why no gate accompanies it. Nothing
4018
+ stops a future session from writing a fresh longhand
4019
+ `cargo build --release --manifest-path …` into a new file: no existing gate's
4020
+ corpus or predicate reaches that, and inventing one would mean a banned-literal
4021
+ gate whose pattern list is one repo's own build command. The recurrence is not
4022
+ yet attested — the duplication removed here accumulated because there was no
4023
+ owner to cite, and this section is that owner. A recurrence is a costed filing,
4024
+ not a silent regrowth.
4025
+
4026
+ ### port-blockers
4027
+
4028
+ The derived roster for **two** criteria on one walk, at each invocation. Run
4029
+ `bash gate-sdk/bin/port-blockers.sh` from the repo root: the default arm answers
4030
+ criterion 7, and `--group` answers criterion 6 — both over the same registry,
4031
+ through the same `gates_list_members` / `gate_resolve` path. **Why either roster
4032
+ is derived rather than written down** is §The port-candidate criteria's,
4033
+ criteria 7 and 6; this section owns how. The arms are **exclusive**: `--group`
4034
+ replaces the criterion-7 report rather than appending to it, and **adding** the
4035
+ second arm changed no byte of the default arm's output — proved by run against a
4036
+ clean checkout at the time. That is a fact about that change and **not** a
4037
+ standing guarantee that the arm's output never moves: the truncation repair below
4038
+ moved it deliberately, and a session diffing two runs across that commit is
4039
+ seeing the repair rather than a regression.
4040
+
4041
+ **The default arm answers criterion 7.** For every `gates.list` member it
4042
+ resolves the declaration path and reports the external programs the rule requires
4043
+ beyond `GATE_SDK_PROGRAM_FLOOR`, one `<member><TAB><program><TAB><file:line>` row
4044
+ each, then a trailing line counting members scanned and members carrying a
4045
+ requirement it could not decide.
4046
+
4047
+ **Three derivation inputs, in descending confidence.** The `command -v <prog>`
4048
+ guard, already this tree's convention for announcing exactly this dependency — a
4049
+ guarded program is a requirement with no inference. **Command position** — a word
4050
+ at the head of a simple command, which is what excludes the attested false
4051
+ positives without a per-case exception list: an element of an array literal, a
4052
+ word inside a string, and an awk-internal token are all non-command-position, so
4053
+ positional analysis removes them as a class. And **knob resolution for a
4054
+ command-position expansion**: a `"${KNOB[@]}"` or `"$KNOB"` at the head of a
4055
+ command resolves through `lib/gate.sh`'s own bridge resolver, the single place a
4056
+ knob default is read anywhere, so this report cannot disagree with the value a
4057
+ dispatched binary is handed.
4058
+
4059
+ Two **negative** inputs keep the positive ones honest, and both are derived from
4060
+ the tree rather than listed. Keyword and builtin status is asked of the
4061
+ interpreter (`type -t`), a property of bash rather than a roster to maintain. And
4062
+ `declare -F <name>` — this tree's convention for dispatching an optional shell
4063
+ hook — marks a name a function however the scan would otherwise classify it, the
4064
+ exact mirror of the `command -v` guard.
4065
+
4066
+ **The `--group` arm answers criterion 6.** It emits a **corpus-derivation
4067
+ partition over the still-shell members**, groups ordered by size descending, each
4068
+ member's row carrying the criterion columns below with its expanded `couples=`
4069
+ beside it, then a trailing line counting members scanned, groups formed, members
4070
+ undecidable, and members already ported and excluded. Its consumer is a **human**
4071
+ session at exactly one transition — cutting the next port cohort under §The first
4072
+ cohort, and the rule that selects the next — and its enabling configuration is
4073
+ the one the default arm already resolves, `gate_sdk_gates_dir` for the registry
4074
+ and `gate_kit_roots` for the resolve dirs, so the arm introduces no knob and no
4075
+ new default to be unset anywhere. **Why this arm belongs on this tool rather than
4076
+ in a new one**: criterion 6 is a question of exactly the same kind about exactly
4077
+ the same corpus as criterion 7, answered today only by hand, per member, at
4078
+ cohort-cut time — and the arm needs a command-position tokenizer over every
4079
+ registered gate's declaration, which this tool is the only thing in the tree that
4080
+ has.
4081
+
4082
+ **The grouping key is set-equality over two derived factors**: the pair
4083
+ (kit-library call set, content-glob set), each sorted and de-duplicated, with two
4084
+ members grouping together when both sets are equal. A single shared call is not
4085
+ evidence of a shared derivation and the tool never treats it as one, because
4086
+ **both** single-factor candidates were measured to over-select and neither
4087
+ under-selects. `couples=` over-selects by criterion 4's own words — the expanded
4088
+ field is deliberately **trigger**-shaped and wide on purpose. A bare
4089
+ **primitive-call** key over-selects by more: `gate_kit_roots` alone has ten gate
4090
+ callers spanning canon-kit, gate-sdk and `scripts/` that share no corpus whatever.
4091
+ `check-shellcheck` is the worked case in both directions — it *does* call
4092
+ `gate_kit_roots`, then composes four fixed subdirectory names and a `*.sh` glob on
4093
+ top of it, while `bin/port-blockers.sh` composes the same call with one
4094
+ subdirectory. Same primitive, different corpus.
4095
+
4096
+ - **Kit-library call set** — the command-position words the scan emits that the
4097
+ gate itself, or a kit library it can source, defines as a shell function. This
4098
+ arm is the default arm's own filter **inverted**: a name the default arm
4099
+ discards *because* it is not an external program is exactly what the key is
4100
+ made of. So there is no maintained list of "corpus primitives" anywhere, and
4101
+ the tool never classifies which library calls yield a corpus — it compares
4102
+ whole sets, which is what collapses the ten-caller over-selection above.
4103
+ - **Content-glob set** — the literal extension-glob tokens (`*.sh`, `*.md`,
4104
+ `*.rs`, `*.gate`, `*.list`, …) carried by the declaration's **non-comment**
4105
+ lines. This is the factor that separates members composing the same root source
4106
+ differently, which is the `check-shellcheck` case. Reading it off non-comment
4107
+ lines alone is what keeps the `# graph:` manifest out of the key, which the
4108
+ next paragraph is the whole reason for.
4109
+
4110
+ **`couples=` is a printed column, never a key factor.** Each member's expanded
4111
+ `couples=` prints beside it, read through the same `gate_manifest_field` +
4112
+ `gate_expand_couples_var` helpers `check-graph` and the generated hook read, so
4113
+ this report cannot disagree with them about what a manifest says. It is a
4114
+ **cross-check**: fusing a deliberately trigger-shaped field into a content key is
4115
+ the over-selection criterion 4 names, and burying it inside one fused key would
4116
+ hide the disagreement the reader most needs to see. Where members share a key and
4117
+ diverge in `couples=`, the divergence is a **finding for the cohort session to
4118
+ adjudicate**, not something the tool resolves.
4119
+
4120
+ **Already-ported members are excluded and counted, not reported undecidable.** A
4121
+ member resolving to a `.gate` descriptor leaves the partition entirely and is
4122
+ counted in the trailing line. This is a deliberate divergence from the default
4123
+ arm, where such a member prints `?` because its external-program requirement
4124
+ genuinely cannot be asked; here there is no open question, because the grouping
4125
+ exists to order the *remaining* corpus and a ported member is not in it.
4126
+
4127
+ **Cheap criterion columns, so the selection rule is applicable end to end.** That
4128
+ rule wants the largest set of **criteria-clearing** gates sharing one corpus
4129
+ derivation, so each member's row carries the three criteria that are mechanically
4130
+ derivable: **criterion 2** as `c2=pair` / `c2=no-fixture` / `c2=none`, read
4131
+ through the fixture dirs §check-gate-fixture-coverage resolves and in that order,
4132
+ so the report and that gate cannot disagree about whether a member carries a
4133
+ pair; **criterion 3** as `c3=<tier>` from the manifest; and **criterion 7** as
4134
+ `c7=`, the default arm's own verdict for that member — `clean`, the programs it
4135
+ requires, or `?`. Criterion 1 is true by construction, the walk being the
4136
+ registry. Criteria 4, 5 and 6 are **not** emitted: each needs judgment the tool
4137
+ cannot take — a self-referential parity oracle, an aggregate binary-less
4138
+ residual, whether a duplication is machine-held — and emitting a guess at them
4139
+ would invite a cohort to be cut on the tool's authority instead of the session's.
4140
+ No field is emitted without a named reader at a named transition, and those three
4141
+ columns were considered and **removed** under that rule, since their only honest
4142
+ reader would have had to disregard them.
4143
+
4144
+ **Undecidable is reported, never guessed**, adopting §check-reads-couples'
4145
+ precedent, and the ruling is stated once for the tool rather than per arm. In the
4146
+ default arm, a command-position expansion whose default cannot be resolved prints
4147
+ `?`, and so does a member declaring through a `.gate` descriptor, whose rule is a
4148
+ binary subcommand with no `--needs` to ask (§The `# graph:` manifest). A tool that
4149
+ reported nothing for an unresolvable knob would reproduce the very false negative
4150
+ the derivation exists to close — the dependency that is never spelled in the
4151
+ gate's source at all. In `--group`, a still-shell member whose key is empty in
4152
+ **both** factors — no kit-library call and no content glob the tool can see —
4153
+ prints `?` with its declaration path and is counted; it is never placed in a
4154
+ group, and empty-keyed members are never grouped **with each other**, because
4155
+ sharing an absence of evidence is not sharing a derivation. What the arm emits is
4156
+ therefore a **decidable partition plus a counted remainder**, never a complete
4157
+ partition claimed as one — which is precisely what two failed read-only sweeps
4158
+ could not deliver.
4159
+
4160
+ **The tokenizer rules that were bugs first, stated here because reading the
4161
+ source alone reaches the wrong verdict on one of them.** A **here-string** is
4162
+ consumed as a single redirection operator, ahead of the heredoc branch; and
4163
+ **inside `[[ … ]]` only**, a `)` pops a pushed substitution frame ahead of any
4164
+ case-pattern reading. Both were repaired after the scan was found abandoning most
4165
+ declarations part-way and reporting the unread remainder as *clean* — a silent
4166
+ under-report in both arms, and a false green in the criterion-7 roster that stood
4167
+ through every cohort delivered before it.
4168
+
4169
+ **The double-bracket scoping on that second rule is load-bearing, and the
4170
+ unscoped form was tried and caught.** Popping whenever a frame is open is the
4171
+ obvious spelling and it is wrong: a genuine `case` pattern inside a command
4172
+ substitution — `$( case "$x" in a) … esac )` — then has its `a)` steal the frame,
4173
+ which the pre-repair code read correctly. Scoping the pop to the double-bracket
4174
+ state is what makes the repair a removal rather than a trade, because inside
4175
+ `[[ … ]]` a `)` is never a case-pattern close, and the in-case predicate's fault
4176
+ was conflating that state with a real `case` context in the first place.
4177
+ **An end-of-file balance check cannot see the difference**: an early pop drives
4178
+ the frame depth to zero, the real closing `)` then lands on an empty stack and is
4179
+ absorbed, and the file balances at EOF by coincidence while everything after the
4180
+ `case` is lost. That is why this pair is covered behaviourally in `smoke/` by a
4181
+ declaration carrying both shapes, per §The `bin/`-tool contract's ruling that a
4182
+ `bin/` tool earns behavioural coverage rather than a fixture pair.
4183
+
4184
+ The here-string case is the one to state rather than leave to a reader. The
4185
+ heredoc branch **does** carry a here-string guard — it declines `<<` as a heredoc
4186
+ introducer when a third `<` follows — so a reader who finds that guard concludes
4187
+ the defect cannot exist. The guard is **bypassed, not absent**: the generic
4188
+ redirect branch below it consumed the first `<` alone, and the scan re-entered at
4189
+ the second, where the guard's own condition was satisfied and the heredoc branch
4190
+ fired on an operand that never recurs as a delimiter. Consuming the operator whole
4191
+ and early is what makes the repair total, because an operator consumed whole
4192
+ cannot be re-entered part-way. The `)` case is independent and reached through
4193
+ `[[ … ]]`: the in-case predicate is true whenever the double-bracket state is set,
4194
+ so a `)` closing a command substitution inside a conditional was read as a
4195
+ case-pattern terminator and the restored quoting state was lost.
4196
+
4197
+ The repair **raises** the undecidable count, and that is it working: lines the
4198
+ scan never reached carry command-position expansions it cannot resolve, and each
4199
+ is now reported `?` rather than passed over. A lower count under a blind scan was
4200
+ never the better number.
4201
+
4202
+ **Arguments, now that the tool has a mode.** It takes no positional arguments and
4203
+ gains none, so §The `bin/`-tool contract's free-text rule does not bind it. Two of
4204
+ that contract's three behaviors are adopted anyway: `-h` / `--help` prints usage
4205
+ on **stdout** at exit **0**, and an unrecognized argument is a **refusal** — usage
4206
+ on stderr, exit 2. The contract states that refusal for a leading-`-` argument;
4207
+ since this tool has no positionals, a bare word is unrecognized on the same
4208
+ footing and is refused identically. `--` is **not** adopted: it ends option
4209
+ processing in favor of free-text positionals, and this tool has none to end it in
4210
+ favor of. The ground is the cost that section already measures — a session that
4211
+ ran a stage writer with `--help`, got `'--help' is not a lifecycle stage` in place
4212
+ of usage, and went three guards deep working around a contract the usage text
4213
+ would have told it did not exist. A tool with one undiscoverable mode is that cost
4214
+ waiting to be paid; a tool with none was not.
4215
+
4216
+ It is a tool, not a gate: **neither arm** carries a `# graph:` manifest or a
4217
+ fixture pair, and nothing machine-parses either output — both reports are read by
4218
+ the session choosing a cohort, which is the transition where the answers are
4219
+ needed. **No freshness gate accompanies it, and that is enforcement-first rather
4220
+ than an omission**: a gate would have to compare the derivation against a stored
4221
+ expectation, which is the maintained roster re-entering by the back door, wrong
4222
+ for every consumer whose configuration differs. Removing the duplication outranks
4223
+ gating it, and criteria 6 and 7 state no roster for a freshness gate to hold.
4224
+
2096
4225
  ### check-shellcheck
2097
4226
 
2098
4227
  Invariant: every `*.sh` directly under the consumer gates dir, each
@@ -2143,6 +4272,67 @@ contract). Presence is checked, not correctness — whether the clean line
2143
4272
  actually fires is the `good/`-fixture job; whether the remedy text is accurate
2144
4273
  is human review.
2145
4274
 
4275
+ **A `.gate`-dispatched `# no-fixture:` member resolves both its corpus and its
4276
+ emitter alternation off the declaration's substrate.** The static half runs only
4277
+ for a member no fixture case can reach (§Output contract), and for a ported one
4278
+ the descriptor it resolves to *cannot* hold the strings — the field roster is
4279
+ closed and the rule lives elsewhere (§The `# graph:` manifest). So the corpus
4280
+ follows the rule to the **implementation module**, at
4281
+ `<GATE_SDK_NATIVE_CRATE>/src/gates/<name>.rs` where `<name>` is the gate name
4282
+ less its `check-` prefix with `-`→`_`. The mapping is **derived from the name
4283
+ that already identifies the gate**, by `lib/gate.sh`'s `gate_native_module`, for
4284
+ the reason the descriptor carries no dispatch field: a second registry is a name
4285
+ that can drift from the thing it names.
4286
+
4287
+ The alternation moves with it, and that half is easy to miss: the shell idiom is
4288
+ `echo`/`printf` and the Rust one is `println!`/`eprintln!`/`write!`. **`printf`
4289
+ is not a substring of `println`**, so a corpus that moved while the alternation
4290
+ stayed would match nothing and report the member clean — a false green, not a
4291
+ missed check, and precisely the vacuity moving the corpus was meant to close.
4292
+
4293
+ **Where the crate is absent the member is declared out of reach, and that is the
4294
+ consumer's ordinary case rather than an escape hatch.** `native/` is not a kit
4295
+ root and the payload vendors kit roots, so a consumer receives the descriptor
4296
+ and never the module (§Meta-gate conservation for the binary substrate, *Where
4297
+ that verification runs, and where it does not* — the same division already ruled
4298
+ for the crate's unit tests, and stated there as making the division explicit
4299
+ rather than weakening it). The gate therefore branches on the **crate manifest**,
4300
+ `<GATE_SDK_NATIVE_CRATE>/Cargo.toml`, not on the module: no crate in this tree ⇒
4301
+ the member is counted and **named** in the success line as out of reach, never
4302
+ dropped from the accounting, because a count that quietly shrank is
4303
+ indistinguishable from a member that stopped being checked. A crate that *is*
4304
+ present with no module for a dispatching member is a **half-landed port and
4305
+ reds** — which is the branch that matters, since upstream the crate always
4306
+ exists.
4307
+
4308
+ **Why the manifest and not the directory.** The predicate was once
4309
+ directory-presence, and that was wrong for a reason worth keeping written down:
4310
+ the crate path is also where build artifacts land. `GATE_SDK_NATIVE_BIN`
4311
+ defaults inside it, so *anything* that places the binary at its default —
4312
+ `csmoke_place_binary` seeding a scratch consumer (§Consumer smoke), or an
4313
+ adopter who hand-vendors and copies the artifact to that deliberately stable
4314
+ relative path — creates the directory while delivering no crate at all. Under
4315
+ directory-presence the out-of-reach branch could then never fire for exactly the
4316
+ consumer it was written for, and the gate demanded a source module that tree was
4317
+ never meant to receive. Directory-presence was never crate-presence; the
4318
+ manifest is the file that only a crate has.
4319
+
4320
+ **Why not the gates module directory either.** `<crate>/src/gates/` would also
4321
+ distinguish the consumer case, and it is the wrong probe in the more dangerous
4322
+ direction: it conflates *crate present* with *ports landed*. A tree whose gates
4323
+ module was deleted would go out of reach **silently**, converting the
4324
+ half-landed-port red directly above into a green — the one verdict this branch
4325
+ must never manufacture. The manifest cannot: a crate whose modules all vanished
4326
+ still has its `Cargo.toml`, so that tree stays red where it belongs.
4327
+
4328
+ The fixture pair proves the module-grep arm in both directions; the out-of-reach
4329
+ branch has its own unit test (`gate-tests/check-gate-output.test.sh`), because
4330
+ both fixture cases must ship a crate to prove the arm they exist for and so
4331
+ neither can stand up the tree where it is missing. That test carries the
4332
+ regression case for the paragraph above — a tree holding the binary at its
4333
+ default path and no manifest is out of reach — since the defect it fixes was
4334
+ invisible from any tree that has a real crate, which upstream always does.
4335
+
2146
4336
  ### check-gate-fail-closed
2147
4337
 
2148
4338
  Invariant: every `awk`/`jq` command-substitution capture in a `check-*.sh`
@@ -2186,7 +4376,23 @@ single-char `(X)` label — four filters that exclude sibling-gate mentions,
2186
4376
  follow-on sentences, hierarchical axis/sub-rule contracts, and count-words
2187
4377
  with non-enumeration nouns. With no spec argument the gate scans
2188
4378
  `<gates-dir>/SPEC.md` when present plus each vendored kit's own `SPEC.md`;
2189
- each matched heading resolves to its gate source through the registry path. Honest residual: the marker catches editing one
4379
+ each matched heading resolves to its gate source through the registry path.
4380
+
4381
+ **A `.gate`-declared member's markers live with its rule, in the implementation
4382
+ module** — the follow-the-rule-to-the-module resolution §check-gate-output owns,
4383
+ arriving here with the kit-roots cohort, because a descriptor's field roster is
4384
+ closed and cannot carry them. The marker grammar accepts either comment leader
4385
+ (`#` or `//`): the leader is the substrate's and the marker is a code marker
4386
+ either way. **A tree with no crate skips those members and counts them**, in the
4387
+ clean line, exactly as §check-gate-output declares them out of reach — a vendored
4388
+ consumer receives the descriptor and never the crate (assertion E holds the crate
4389
+ outside every kit root), so a marker set that is not in the tree is not one this
4390
+ gate can assert over, and reding on it would red every adopter. Crate presence is
4391
+ the **manifest**, never the directory, for the reason §check-gate-output states.
4392
+ The skip's executed oracle is `installer_smoke`, which runs the battery on a
4393
+ freshly vendored consumer and is what found the red this branch answers.
4394
+
4395
+ Honest residual: the marker catches editing one
2190
4396
  side without the other, but not adding an assertion while forgetting *both*
2191
4397
  its marker and the contract. A first paragraph that embeds the literal pattern
2192
4398
  in example prose self-matches — the failure is loud (a false positive forcing
@@ -2206,13 +4412,86 @@ steers the fixture pair onto hermetic copies of each surface. Six assertions.
2206
4412
  `gate_resolve`'s within-dir precedence: that precedence exists so a consumer
2207
4413
  can *shadow* a kit's gate, and using it to paper over a half-finished port
2208
4414
  would hide the state a port passes through.
2209
- - **assertion B — subcommand parity, both directions.** The set of `.gate`
4415
+ - **assertion B — subcommand parity, both directions, over the kits this tree
4416
+ vendored.** The set of `.gate`
2210
4417
  descriptors across the resolve dirs equals the binary's reported subcommand
2211
4418
  roster (`--list`). A descriptor naming no subcommand is a gate that cannot
2212
4419
  run; a subcommand with no descriptor is a gate nothing declares — unless the
2213
4420
  conservation section dispositions it `reference-only`, the one allowance and
2214
4421
  the reason it is recorded there rather than in the crate (§Meta-gate
2215
- conservation for the binary substrate). With the binary **load-bearing** and
4422
+ conservation for the binary substrate).
4423
+ **The roster half is scoped to the vendored kits, because the unscoped
4424
+ equality is unsatisfiable in any consumer that vendors a subset of the kits
4425
+ the shared binary carries** — which is every consumer once a second kit ports,
4426
+ so the gap grows by the size of each cohort rather than staying one kit's
4427
+ problem. The rule: *for each subcommand, if its owning kit is present in
4428
+ `gate_kit_roots`, a descriptor for it must exist*; a subcommand whose owning
4429
+ kit is absent is **out of scope, counted, and declared on the clean line**. The
4430
+ equality was always meant to catch a **stranded implementation** — a subcommand
4431
+ no descriptor dispatches to, dead code or the residue of a half-finished port —
4432
+ and a subcommand belonging to a kit the consumer never took is neither.
4433
+ Three properties are held deliberately. **The other direction stays
4434
+ unrestricted**: a descriptor the resolve dirs carry with no subcommand behind
4435
+ it is red whatever kit owns it, because a vendored descriptor is in scope by
4436
+ definition and that direction is what catches a gate that cannot run. **The
4437
+ `reference-only` allowance is untouched** and composes — an in-scope subcommand
4438
+ with no descriptor is still checked against the conservation section exactly as
4439
+ before. **The half does not go dark**: it still runs whenever the binary is
4440
+ readable, never gated on descriptor count or on the registry, which is the
4441
+ correction the reverted port paid for; out-of-scope subcommands are counted and
4442
+ printed, so an emptied scope is visible rather than silent, in the shape the
4443
+ zero-descriptor clean line already uses.
4444
+ **The owner is registry data held to executed behavior, not a self-declaration.**
4445
+ `--list` prints two tab-separated columns, `<subcommand>` and the owning kit's
4446
+ directory basename as it appears under `gate_kit_roots`; the descriptor that
4447
+ would otherwise answer this is precisely what a subset vendoring lacks. The
4448
+ declaration lives in the crate's dispatch registry beside each member's walk
4449
+ roots and knobs — an entry a member cannot compile without — the same shape
4450
+ `--reads` and `--knobs` have, and a crate unit test holds it to the tree: for
4451
+ every registered subcommand, `<owner>/checks/<name>.gate` exists.
4452
+ **An introspection arm is therefore a *flag* arm, and this assertion is why.**
4453
+ Something that needs to ask the binary a question directly — a cross-substrate
4454
+ parity harness reaching a primitive no gate exposes — cannot land as a new
4455
+ subcommand: this assertion reds a subcommand no descriptor dispatches to, and the
4456
+ one allowance is the `reference-only` disposition, intended for an implementation
4457
+ held ahead of its port rather than for an arm nothing will ever dispatch. So it
4458
+ joins `--list`, `--reads`, `--knobs` and `--source-stamp` at the binary level,
4459
+ outside the roster this assertion equates. Recorded because the assertion is
4460
+ unchanged by it and the consequence is otherwise rediscovered by reddening it
4461
+ (queue-kit/SPEC.md §lib/queue.sh is the first such arm's consumer).
4462
+ **A second column rather than a fifth flag, and the reason is version skew.**
4463
+ The gate ships in a kit and the binary ships in the payload, and the two version
4464
+ independently — `init` places a released binary while a consumer may vendor a
4465
+ newer kit, and the upgrade smoke drives exactly that across two hops. A fifth
4466
+ top-level flag an older binary does not recognise answers non-zero, which
4467
+ §Fail-closed contract makes exit 2: every such consumer's battery would die on a
4468
+ flag rather than on a finding. A column degrades instead: an older binary prints
4469
+ one, the gate reads no owner, and the assertion **falls back to the unrestricted
4470
+ equality**, declaring on its clean line that the restriction was unavailable.
4471
+ That is a return to the pre-column behavior, never a false green — proved by a
4472
+ run, since the bespoke test drives the identical subset roster through a
4473
+ one-column binary and it still reds. One row without the column drops the whole
4474
+ roster to the fallback rather than scoping part of it, because a partly-scoped
4475
+ roster would speak for kits it could not place. The **stated residual**: a real
4476
+ adopter on a subset vendoring with a pre-column binary still reds until the
4477
+ binary is upgraded. It does not reach the consumer smoke, which builds the
4478
+ binary from the crate on every run, and it is bounded by a version rather than
4479
+ open-ended.
4480
+ **Building the binary per vendoring is refused, and the refusal is recorded
4481
+ because the option reads attractive and costs a session to re-cost.** Criterion
4482
+ 5's install model is closed (§The port-candidate criteria): the payload carries a
4483
+ prebuilt binary per declared *target*, built by the release and never from a
4484
+ working tree. A per-vendoring binary makes the artifact set the product of
4485
+ targets and kit subsets — every combination of kits an adopter might choose —
4486
+ which no release can enumerate and no digest roster can own, and it re-imports
4487
+ the build-time coupling the reverted port removed.
4488
+ **The predicate this shares with the registration-accounting assertion, stated
4489
+ once here so the sibling cites rather than re-derives it:** *an assertion over a
4490
+ whole-roster fact states its scope in terms of what the tree vendored.* The two
4491
+ were weighed and deliberately **not** unified — they derive scope from different
4492
+ inputs, this one from a subcommand's owning kit as the binary reports it, that
4493
+ one from the vendored kits' `checks/` directories it already reads, so a shared
4494
+ rule would be parameterised over both and become a third thing to keep true. With the binary **load-bearing** and
2216
4495
  absent or non-executable the gate exits 2, never 0 — the §Fail-closed
2217
4496
  contract, since "cannot verify" and "verified equal" must not share an exit
2218
4497
  code. Load-bearing is the predicate §check-gate-binary-fresh states: a
@@ -2231,12 +4510,17 @@ steers the fixture pair onto hermetic copies of each surface. Six assertions.
2231
4510
  to read, so the assertion counts zero and says so in its clean line. Demanding
2232
4511
  a build artifact from every reader would re-import, into the auditor, the
2233
4512
  build-time coupling the revert removed. **The roster is over subcommands
2234
- alone**: the binary's top-level flags (`--list`, `--reads`, `--source-stamp`)
2235
- are outside it by construction, handled in the top-level dispatch and never
2236
- entering the gate registry. Stated because the assertion's behavior does not
2237
- change but a reader adding a fourth flag needs to know it is not a parity
2238
- violation — a flag that *leaked* into `--list` would read here as a subcommand
2239
- with no descriptor and red as a stranded implementation.
4513
+ alone**: the binary's top-level flags (`--list`, `--reads`, `--source-stamp`,
4514
+ `--knobs`) are outside it by construction, handled in the top-level dispatch
4515
+ and never entering the gate registry. Stated because the assertion's behavior
4516
+ does not change but a reader adding a further flag needs to know it is not a
4517
+ parity violation — a flag that *leaked* into `--list` would read here as a
4518
+ subcommand with no descriptor and red as a stranded implementation.
4519
+ `--knobs` is the fourth, added by the config bridge (§lib/gate.sh), and it is
4520
+ named here rather than left to be re-derived: it was written against exactly
4521
+ this paragraph's invitation to the next author. The owner column adds no fifth:
4522
+ it is roster **data** on a line the roster already carries, which is the whole
4523
+ reason it was taken instead of a flag.
2240
4524
  - **assertion C — disposition coverage.** Every substrate-sensitive member
2241
4525
  carries a disposition line in §Meta-gate conservation for the binary
2242
4526
  substrate. The set is **derived at runtime** — a member whose expanded
@@ -2337,7 +4621,20 @@ cohort's descriptors ship, where the fail-closed arm *and* assertion F's
2337
4621
  missing-roster arm must both stay quiet; and the near miss, **a registered member
2338
4622
  resolving to a descriptor with no binary**, which must still exit 2. The last two
2339
4623
  are the corrected predicate's own boundary, and a too-loose predicate passes the
2340
- `good/` case and reds only there.
4624
+ `good/` case and reds only there. Four further cases hold the vendor scope, and
4625
+ they are in the bespoke test rather than in a second consumer-smoke leg because
4626
+ that suite vendors, installs and drives a whole scratch tree and buying it twice
4627
+ to reach one assertion is the cost this split exists to avoid: **descriptors for
4628
+ one kit and a binary reporting a second kit's subcommands too**, where the gate
4629
+ must run clean; **the near miss**, the same sandbox with the in-scope kit missing
4630
+ a descriptor, which must red; **the same subset roster from a one-column binary**,
4631
+ which must red as it does without the column, so the fallback is run rather
4632
+ than asserted; and **a vendored descriptor naming no subcommand under the scoped
4633
+ path**, because the obvious implementation restricts one loop and accidentally
4634
+ restricts both. That test is in the per-kit fixture-runner battery, so the subset
4635
+ configuration acquires a commit-time oracle at no measurable cost — it had none
4636
+ at commit time or in CI, which is how a standing red in it goes unnoticed across
4637
+ iterations.
2341
4638
 
2342
4639
  **Why those configurations are held in fixtures rather than assigned to live
2343
4640
  trees.** A coverage claim naming a tree is only as durable as that tree's
@@ -2456,7 +4753,11 @@ file is invisible to `git ls-files`, so it is compiled but not stamped. This is
2456
4753
  bounded by the same fact that makes the stamp worth having — an untracked file is
2457
4754
  not in the commit either, so the state the gate governs is exactly the state the
2458
4755
  stamp describes. A file added and staged in the same commit is tracked at the
2459
- gate's read and is covered.
4756
+ gate's read and is covered — **provided the build ran after the `git add`**. The
4757
+ producer reads `ls-files` too, so building while a new source file is still
4758
+ untracked bakes a stamp computed without it; staging the file then moves the tree
4759
+ side and not the baked one, and the commit reds on a rebuild that has already
4760
+ run. A commit introducing a crate file stages first and builds second.
2460
4761
 
2461
4762
  **The two sides.** The producer is `native/build.rs`, which bakes the stamp in as
2462
4763
  a compile-time constant and is re-run by `cargo:rerun-if-changed=` on exactly the
@@ -2482,9 +4783,9 @@ artifact from the binary `GATE_SDK_NATIVE_BIN` names, which is what this gate
2482
4783
  reads. A full `cargo test --release` can pass every test in the crate, including
2483
4784
  the one proving both substrates compute the source stamp identically, and leave
2484
4785
  this gate red on the stamp baked into a stale binary. So the obligation is
2485
- `cargo build --release` as **its own named step**: a tree with a live descriptor
2486
- must build the binary before it commits, and a contributor routine that states a
2487
- `cargo test` line has not stated that step. Recorded here because the omission is
4786
+ `bash gate-sdk/bin/build-native.sh` (§build-native) as **its own named step**: a
4787
+ tree with a live descriptor must build the binary before it commits, and a
4788
+ contributor routine that states a `cargo test` line has not stated that step. Recorded here because the omission is
2488
4789
  invisible from a green test run — the exact shape of vacuous green the section
2489
4790
  above exists to refuse.
2490
4791
 
@@ -2545,7 +4846,7 @@ yet committed. The bespoke `gate-tests/check-gate-binary-fresh.test.sh` covers t
2545
4846
  predicate's boundary, which a pair cannot hold: **zero descriptors** — the
2546
4847
  standing state of an unported tree, held in a fixture rather than assigned to a
2547
4848
  live tree for the reason §check-gate-substrate-parity's own split states; **descriptors
2548
- present, none dispatching** — every vendored tree once the first cohort ships, and
4849
+ present, none dispatching** — every vendored tree since the first cohort shipped, and
2549
4850
  the configuration the corrected predicate exists for; the **near miss**, a
2550
4851
  registered member resolving to a descriptor with no binary, which must still exit
2551
4852
  2; and an **absent registry**. And the
@@ -2563,6 +4864,118 @@ longer the only executor. It is kept, on the narrower ground that it fails at
2563
4864
  `cargo test` time — inside the crate's own suite, before any binary is placed —
2564
4865
  where the battery's verdict arrives only once a build exists to compare against.
2565
4866
 
4867
+ ### check-crate-arms
4868
+
4869
+ The crate's **lint and test arms** run at commit time, as a registered member of
4870
+ the battery:
4871
+
4872
+ ```bash
4873
+ cargo clippy --release --manifest-path "$CRATE/Cargo.toml" --target-dir "$TARGET_DIR" --all-targets -- -D warnings
4874
+ cargo test --release --manifest-path "$CRATE/Cargo.toml" --target-dir "$TARGET_DIR"
4875
+ ```
4876
+
4877
+ `$CRATE` is `gate_native_crate` (§Layout and configuration) and `$TARGET_DIR` is
4878
+ `GATE_SDK_CARGO_TARGET_DIR`. Both arms run even when the first fails, so one
4879
+ commit-time report carries what a CI run would have said in two.
4880
+
4881
+ **The gap it closes was attested, not hypothetical.** Nothing in `gates.list` ran
4882
+ either arm and `bin/build-native.sh` only builds, so a contributor who ran the
4883
+ full battery **plus** `build-native.sh` had satisfied every documented commit-time
4884
+ obligation and could still push a red CI — and did: both arms were already red at
4885
+ a commit accepted on a green battery, one of them the unit test holding
4886
+ §check-reads-couples' machine-side read-set assertion, which therefore held
4887
+ nothing for any member while the conservation table still claimed it. The lesson
4888
+ the shape encodes is that a *nearly* identical command is the same hole one flag
4889
+ narrower, so **there is now one spelling of the arms and it is this gate**. The CI
4890
+ workflow's own lint-and-test step is deleted rather than kept in step with it:
4891
+ two copies of a command held equal by nobody is the defect, and enforcement-first
4892
+ ranks removing the duplication above gating it. The workflow's preceding
4893
+ build-the-binary step stays — §check-gate-binary-fresh still needs the artifact,
4894
+ and that step duplicates nothing.
4895
+
4896
+ **The predicate is the crate's presence, not cargo's**, and that is what keeps the
4897
+ gate simple:
4898
+
4899
+ - **No `$CRATE/Cargo.toml`** — no corpus, so **clean at exit 0**, the
4900
+ parenthetical naming the absent crate so the green is legible. §Consumer payload
4901
+ keeps the crate outside every kit root, so what a consumer tree lacks is the
4902
+ subject, not the toolchain. This is §check-gate-binary-fresh's zero-dispatch
4903
+ branch applied to a corpus: a gate with nothing to check reports clean rather
4904
+ than declaring a skip.
4905
+ - **Crate present, `cargo` absent** — a contributor holding the crate without the
4906
+ toolchain. **Exit 2** naming the floor, the same shape `bin/build-native.sh`
4907
+ already uses (§Fail-closed contract). No adopter reaches it, and a session
4908
+ committing to a tree that carries the crate needs cargo before this gate runs.
4909
+
4910
+ Reading a runtime `command -v` skip into §The port-candidate criteria's criterion
4911
+ 5 is a misreading worth naming, because the queue entry that filed this gate made
4912
+ it: criterion 5 omits a member from the *consumer's* registry at vendor time, a
4913
+ decision `init` makes once before any gate runs, and no gate in this tree branches
4914
+ on a missing program at run time — both existing cases fail closed.
4915
+
4916
+ Its `# install:` disposition is `never`, for §check-gate-binary-fresh's reason
4917
+ exactly: the subject cannot exist in a vendored tree, so the consumer smoke's
4918
+ accounting derives the exemption every run rather than accepting a written one.
4919
+
4920
+ **Tier is `precommit`**, by §The `# graph:` manifest's discriminator: a clippy
4921
+ finding or a failing unit test is introduced and repaired inside the single commit
4922
+ that perturbs it. The honest counter-pressure is wall clock, since `--all-targets`
4923
+ compiles the test targets and clippy keeps a cache separate from the
4924
+ `cargo build --release` `bin/build-native.sh` warms; on a warm tree the added
4925
+ battery time is well inside the battery's existing dominant member, which is what
4926
+ settles it. Should that stop holding, the ruled fallback is `align-only` rather
4927
+ than a reopened design round: an arm that runs in the full battery and in CI still
4928
+ closes the attested defect, which was a *push* on a green battery, and only the
4929
+ pre-commit convenience is lost.
4930
+
4931
+ **The fixture pair and the build products it must not leave behind.** The pair is
4932
+ two minimal crates, `good/` clean and `bad/` carrying one clippy finding and one
4933
+ failing test, each `args`-free and pointed at its own crate through its case-dir
4934
+ `gate-sdk-config.sh`. They build with no network because they vendor nothing —
4935
+ the property the real crate's own suite asserts and these inherit by
4936
+ construction. Cargo writes a `target/` beside whatever manifest it is given, which
4937
+ would put build products under a fixture directory, so each case redirects
4938
+ `GATE_SDK_CARGO_TARGET_DIR` out of the tree; the `Cargo.lock` cargo writes beside
4939
+ the manifest is gitignored on the same terms as the real crate's.
4940
+
4941
+ **The gate stays shell, permanently, and that is a verdict rather than unported
4942
+ work.** TRAJECTORY.md §PRIORITY DIRECTIVE — the port track's sequence — makes
4943
+ surviving shell residue justified case by case, and this member has two
4944
+ independent justifications. Criterion 7 in
4945
+ its plainest form: the rule *is* an invocation of `cargo`, a program the payload
4946
+ does not carry. And criterion 4 at its purest: a gate that runs `cargo test` over
4947
+ the crate cannot live **inside** the crate it tests, because the artifact under
4948
+ test would be the artifact asserting.
4949
+
4950
+ ### check-install-disposition
4951
+
4952
+ Three assertions over every kit root in `gate_kit_roots`, holding §The install
4953
+ disposition.
4954
+
4955
+ - **(A) Declared** — every `checks/` member, `check-*.sh` and `check-*.gate`
4956
+ alike, carries **exactly one** `# install:` line and its value is in the closed
4957
+ vocabulary. A gate that ships without one is red, and this is the assertion
4958
+ that closes the live exposure: a newly added zero-config gate cannot reach an
4959
+ adopter undeclared. Two lines are a finding for the same reason one is
4960
+ required — a declaration surface's failure mode is disagreeing with itself.
4961
+ - **(B) Smoke superset** — every `zero-config` member of a kit appears in that
4962
+ kit's `smoke/install.sh` roster. The direction is what the two-tree ground
4963
+ gives: the smoke's tree is a superset of the tree `init` makes, so a gate the
4964
+ installer registers must be registrable there too. **The converse is not
4965
+ asserted** — a kit's smoke legitimately registers more than the installer does,
4966
+ and asserting equality would force one of the two trees to lie about itself.
4967
+ - **(C) No second copy** — the installer's `lib/common/recipe.sh` carries no
4968
+ literal gate name, so the de-literalization holds going forward rather than
4969
+ only at the commit that landed it. A `§`-prefixed occurrence is a spec-section
4970
+ citation and is stripped before the match: a section reference registers
4971
+ nothing, and registering is the only thing this assertion is about. The file is
4972
+ absent in a vendored consumer, which has no installer — that absence is a skip,
4973
+ reported on the clean line, never a finding.
4974
+
4975
+ Fail-closed on a non-repo cwd with no root argument, an unreadable gate header,
4976
+ an empty kit roster, or kit roots that enumerate no gate at all. Configuration
4977
+ reuses `GATE_SDK_KIT_DIRS`; the gate adds no knob of its own. `precommit` tier.
4978
+
2566
4979
  ### check-test-hermetic
2567
4980
 
2568
4981
  Two assertions guard a run against ambient state: (A) every bespoke
@@ -2598,6 +5011,13 @@ mode the fixture pair drives); `--smoke [dir...]` scans the named smoke dir(s)
2598
5011
  `kit:smoke/install.sh`, and `kit:smoke/violation.sh` (`dir=one`, a one-way audit
2599
5012
  over the test and smoke trees).
2600
5013
 
5014
+ **Its implementation is a compiled subcommand**, on §check-action-pinning's
5015
+ terms — declaration path `check-test-hermetic.gate`, rule out of the gate
5016
+ binary, proved parity-identical before the shell gate was deleted
5017
+ (§The kit-roots `gate_kit_roots` cohort). Its two `# assertion` markers moved
5018
+ with the rule to the implementation module, which is where §check-gate-assertions
5019
+ now looks for a `.gate`-declared member's.
5020
+
2601
5021
  ### check-assertion-strength
2602
5022
 
2603
5023
  Invariant: **an assertion is at least as strong as its own failure message.** In
@@ -2672,6 +5092,14 @@ one-way audit — an edit to a scanned script *or* to a declaring header re-fire
2672
5092
  it). Configuration adds **no new knob**: the scan roots come from the existing
2673
5093
  kit-roots derivation, as `check-test-hermetic`'s do.
2674
5094
 
5095
+ **Its implementation is a compiled subcommand**, on §check-action-pinning's
5096
+ terms — declaration path `check-assertion-strength.gate`, rule out of the gate
5097
+ binary, proved parity-identical before the shell gate was deleted
5098
+ (§The kit-roots `gate_kit_roots` cohort). The three bounded matchers and the
5099
+ `# exit:` line grammar are hand-written kit literals, not an interpreted
5100
+ consumer pattern, so this member owes none of the ERE-engine work its held
5101
+ siblings do.
5102
+
2675
5103
  ### check-gate-exemption-tasks
2676
5104
 
2677
5105
  Invariant: every element of an `# exception-list:`-tagged array in a
@@ -2728,8 +5156,10 @@ redefine it could redefine it back into the fail-open this closes.
2728
5156
 
2729
5157
  **The honest cost, stated with its size: eight independent holders now carry
2730
5158
  that predicate and no gate enforces their agreement** — `queue_live_slugs` and
2731
- `queue_roadmap_entries` (queue-kit/lib/queue.sh), `spec_queue_slugs`
2732
- (canon-kit/lib/spec.sh), the inline scans in queue-kit's `check-task-names` and
5159
+ `queue_roadmap_entries` (queue-kit/lib/queue.sh), `queue_slugs`
5160
+ (native/src/spec.rs — canon-kit's holder, which moved substrate with the seventh
5161
+ cohort and is deliberately not pointed at the crate's own queue module, since one
5162
+ shared function would end the arrangement this count prices), the inline scans in queue-kit's `check-task-names` and
2733
5163
  `check-queue-entry-budget`, `bin/queue-index.sh` (which carries it twice, in the
2734
5164
  `--extent` and `--icebox-candidates` walks), the section-pool builder inside
2735
5165
  drift-kit's `kpi-queue-net-delta`, and this gate. Only the public
@@ -2805,7 +5235,7 @@ statically resolvable slice of that parity is carried by its sibling
2805
5235
  `check-reads-couples` (§check-reads-couples); the undecidable remainder stays
2806
5236
  the author's duty under §The `# graph:` manifest.
2807
5237
 
2808
- Theme seam (`emit_graph`): the emitted HTML artifact bypasses the consumer's
5238
+ Theme seam: the emitted HTML artifact bypasses the consumer's
2809
5239
  site generator, so it renders foreign beside the rest of a docs host unless the
2810
5240
  host theme is inlined — and the theme is consumer-specific, so the emitter must
2811
5241
  not hardcode it. `GATE_SDK_GRAPH_THEME` (default `<gates-dir>/graph-theme.sh`,
@@ -2826,7 +5256,7 @@ assertion is red — the existing gate already polices the link-the-site-stylesh
2826
5256
  shortcut into inlining. Its complement is the **external-ref assertion**, over
2827
5257
  the same in-memory emission: every absolute (`://`-carrying) `href`/`src`
2828
5258
  attribute value and every ESM `import` specifier must prefix-match the allowed
2829
- set, or the gate reds naming the URL. The set is seeded with `emit_graph`'s own
5259
+ set, or the gate reds naming the URL. The set is seeded with the emitter's own
2830
5260
  pinned-major mermaid ESM import from the jsdelivr CDN — the one sanctioned
2831
5261
  external reference the kit itself emits (the diagram renderer is client-side, and
2832
5262
  inlining a megabyte-scale library into a byte-compared artifact is the worse
@@ -2898,7 +5328,10 @@ differs** — a shell parse for a `.sh` member, the substrate's own report for a
2898
5328
  `.gate` one. Two calibrations follow from what a binary does *not* report, and both
2899
5329
  err toward demanding more coverage rather than less. A reported root is filtered by
2900
5330
  the prune list exactly as a `gate_find` walk is, because the crate's single
2901
- sanctioned walk prunes on the same `GATE_SDK_PRUNE_DIRS` knob (§lib/gate.sh). And
5331
+ sanctioned walk resolves its set from the same two knobs, `GATE_SDK_PRUNE_DIRS`
5332
+ and `GATE_SDK_PRUNE_EXTRA_DIRS` (§lib/gate.sh) — both, because a substrate
5333
+ honoring only one of an additive pair would scan a different tree than the shell
5334
+ for any consumer who set the other. And
2902
5335
  no literal `-name` primary is extractable from a binary, so the enumeration is
2903
5336
  unfiltered — the same answer the shell arm already gives a walk whose pattern is a
2904
5337
  variable. A ported gate therefore narrows by declaring a tighter root, never by
@@ -3007,7 +5440,11 @@ from the same name-resolution walk the runner uses (a consumer-dir gate groups
3007
5440
  as the consumer's); **advisory KPIs** from the drift-kit `kpis.list` registry
3008
5441
  (`DRIFT_KIT_KPIS_FILE`); **guards** and **session warnings** from the
3009
5442
  `PreToolUse` / `SessionStart` command hooks in the tracked harness settings file
3010
- (`CONTEXT_KIT_SETTINGS_FILE`, parsed with `jq`); **validate suites** from
5443
+ (`CONTEXT_KIT_SETTINGS_FILE`, parsed with `jq`) — a guard row's *intercepts* cell
5444
+ carries the harness matcher verbatim, so its `|` alternation is escaped on the way
5445
+ into the table, a case a freshness gate can never report because it compares the
5446
+ emitter against the page and both would carry the same broken row; **validate
5447
+ suites** from
3011
5448
  evidence-kit's suite config (`EVIDENCE_KIT_CONFIG_FILE`); and **monitors** — the
3012
5449
  one class with no parseable registry — from a line-start
3013
5450
  `# enforce: class=monitor <free-text>` marker a non-gate surface declares itself
@@ -3120,7 +5557,11 @@ finding, not a contradiction.
3120
5557
  Config, the standard kit shape: `GATE_SDK_REGISTRY_DOC` (default `README.md`)
3121
5558
  is A's doc, `GATE_SDK_RUNNER_DOC` (default `README.md`) is B's; both resolve
3122
5559
  relative to the git toplevel, and an explicit positional argument
3123
- (`[registry-doc [runner-doc]]`) overrides. Fail-closed: a configured doc that
5560
+ (`[registry-doc [runner-doc]]`) overrides. **Both defaults are resolved in
5561
+ `lib/gate.sh`, not inline here**, because the config bridge refuses a knob the
5562
+ owning kit's library does not define (§lib/gate.sh) — an inline default is
5563
+ invisible to it, so a compiled member declaring either knob would fail-close on
5564
+ every invocation. Fail-closed: a configured doc that
3124
5565
  does not exist is a misconfiguration (exit 2, like `check-kit-enum`'s missing
3125
5566
  registry), as is a non-repo cwd or empty roster — never a false clean. A
3126
5567
  consumer keeping no prose registry opts out by not registering the gate in its
@@ -3128,6 +5569,14 @@ consumer keeping no prose registry opts out by not registering the gate in its
3128
5569
  "does the kit table still reflect the kit set?" staleness check, narrowing that
3129
5570
  step to the un-gated remainder (row descriptions, per-kit READMEs).
3130
5571
 
5572
+ **Its implementation is a compiled subcommand**, on §check-action-pinning's
5573
+ terms — declaration path `check-kit-registration.gate`, rule out of the gate
5574
+ binary, proved parity-identical before the shell gate was deleted
5575
+ (§The kit-roots `gate_kit_roots` cohort). A **wrapper** re-scoping this
5576
+ invariant onto another registry doc reaches it through `gate_command`'s argv
5577
+ rather than by executing a path, which is the only spelling that survives the
5578
+ move; this consumer's `check-docs-kit-parity` is the live instance.
5579
+
3131
5580
  ### check-readme-roster
3132
5581
 
3133
5582
  Invariant: every kit README's register-the-gates block holds name-set parity
@@ -3188,7 +5637,7 @@ Sweep: kit roots come from `gate_kit_roots` (the `GATE_SDK_KIT_DIRS` knob —
3188
5637
  §Layout and configuration), the sibling roster meta-gates' shape; a kit root
3189
5638
  without a `smoke/` dir is skipped, and `violation.sh` is checked only where it
3190
5639
  exists (it is optional — §Consumer smoke). Config reuses `GATE_SDK_KIT_DIRS`;
3191
- no new knob. Positional form `check-smoke-entry-guard.sh [root]` resolves
5640
+ no new knob. Positional form `check-smoke-entry-guard [root]` resolves
3192
5641
  relative kit roots against a fixture tree (the case dir's `gate-sdk-config.sh`
3193
5642
  names the fixture kits); bare, it sweeps against the git toplevel. Fail-closed:
3194
5643
  a non-repo cwd with no root argument, an empty roster, or an unreadable smoke
@@ -3196,6 +5645,11 @@ script is exit 2, never a false clean. The `# graph:` couples the mutating
3196
5645
  smoke scripts (`kit:smoke/install.sh,kit:smoke/violation.sh`, `dir=one`,
3197
5646
  `tier=precommit`), so editing one re-fires the gate.
3198
5647
 
5648
+ **Its implementation is a compiled subcommand**, on §check-action-pinning's
5649
+ terms — declaration path `check-smoke-entry-guard.gate`, rule out of the gate
5650
+ binary, proved parity-identical before the shell gate was deleted
5651
+ (§The kit-roots `gate_kit_roots` cohort).
5652
+
3199
5653
  ### check-core-files
3200
5654
 
3201
5655
  Invariant: every path in the consumer's `core-files.list` manifest exists in
@@ -3970,7 +6424,7 @@ the sibling directory's contents and nothing else.
3970
6424
 
3971
6425
  Sweep: kit roots come from `gate_kit_roots` (the `GATE_SDK_KIT_DIRS` knob —
3972
6426
  §Layout and configuration), the sibling roster meta-gates' shape; config adds
3973
- **no new knob**. Positional form `check-template-registry-parity.sh [root]`
6427
+ **no new knob**. Positional form `check-template-registry-parity [root]`
3974
6428
  resolves relative kit roots against a fixture tree (the case dir's
3975
6429
  `gate-sdk-config.sh` names the fixture kits); bare, it sweeps against the git
3976
6430
  toplevel. Fail-closed: a non-repo cwd with no root argument, an empty kit
@@ -3982,6 +6436,12 @@ in parity while carrying both structural exclusions (a `.list` with no sibling,
3982
6436
  and a non-`.list` template), and `bad/` proves a registry that is one-sided in
3983
6437
  each direction at the same time.
3984
6438
 
6439
+ **Its implementation is a compiled subcommand**, on §check-action-pinning's
6440
+ terms — declaration path `check-template-registry-parity.gate`, rule out of the
6441
+ gate binary, proved parity-identical before the shell gate was deleted
6442
+ (§The kit-roots `gate_kit_roots` cohort), which records the criterion-4 finding
6443
+ this member carries. The finding changed nothing above.
6444
+
3985
6445
  ### templates/check-skeleton.sh
3986
6446
 
3987
6447
  The copy-paste reference skeleton — the canonical "how to write a gate"