checkwright 0.23.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/README.md +175 -13
  2. package/lib/common/lock.sh +7 -0
  3. package/lib/common/recipe.sh +1 -1
  4. package/lib/diff.sh +2 -0
  5. package/lib/init.sh +40 -16
  6. package/lib/uninstall.sh +2 -0
  7. package/package.json +2 -2
  8. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  9. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  10. package/payload/canon-kit/README.md +2 -0
  11. package/payload/canon-kit/SPEC.md +454 -28
  12. package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
  13. package/payload/canon-kit/checks/check-amendment-update-target.gate +3 -0
  14. package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
  15. package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
  16. package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
  17. package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
  18. package/payload/canon-kit/checks/check-unmarked-claim.gate +3 -0
  19. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
  20. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
  21. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
  22. package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/SPEC-thing.md +26 -0
  23. package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/expect.txt +8 -0
  24. package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +47 -0
  25. package/payload/canon-kit/gate-tests/check-amendment-update-target/good/expect.txt +1 -0
  26. package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +82 -0
  27. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
  28. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
  29. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
  30. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
  31. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
  32. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
  33. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
  34. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
  35. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
  36. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
  37. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
  38. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +11 -0
  39. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +3 -0
  40. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +6 -0
  41. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +18 -0
  42. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/expect.txt +1 -0
  43. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +6 -0
  44. package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +85 -0
  45. package/payload/canon-kit/lib/spec.sh +16 -0
  46. package/payload/canon-kit/smoke/install.sh +3 -1
  47. package/payload/canon-kit/templates/SPEC-amendment.md +17 -2
  48. package/payload/context-kit/README.md +6 -4
  49. package/payload/context-kit/SPEC.md +256 -76
  50. package/payload/context-kit/bin/always-loaded.sh +5 -21
  51. package/payload/context-kit/bin/env-probe.sh +2 -17
  52. package/payload/context-kit/checks/check-brevity.gate +3 -0
  53. package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
  54. package/payload/context-kit/checks/check-memory-off.gate +3 -0
  55. package/payload/context-kit/checks/check-settings-paths.gate +3 -0
  56. package/payload/context-kit/checks/check-settings-pins.gate +3 -0
  57. package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
  58. package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
  59. package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
  60. package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
  61. package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
  62. package/payload/context-kit/index-tests/expected/toolfloor.txt +5 -5
  63. package/payload/context-kit/index-tests/toolfloor-cases.sh +5 -5
  64. package/payload/context-kit/lib/context.sh +56 -0
  65. package/payload/context-kit/lib/toolfloor.sh +1 -1
  66. package/payload/context-kit/smoke/agents-md.sh +16 -4
  67. package/payload/context-kit/smoke/install.sh +3 -2
  68. package/payload/context-kit/templates/session-context.sh +5 -5
  69. package/payload/delegation-kit/README.md +11 -1
  70. package/payload/delegation-kit/SPEC.md +652 -11
  71. package/payload/delegation-kit/bin/wait-probe.sh +184 -0
  72. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
  73. package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
  74. package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
  75. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
  76. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
  77. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
  78. package/payload/delegation-kit/gate-tests/subagent-stop-liveness.test.sh +99 -0
  79. package/payload/delegation-kit/smoke/install.sh +21 -1
  80. package/payload/delegation-kit/templates/agent-execution.md +88 -4
  81. package/payload/delegation-kit/templates/subagent-stop-liveness.sh +56 -0
  82. package/payload/doctrine-kit/SPEC.md +1 -1
  83. package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
  84. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +2 -3
  85. package/payload/doctrine-kit/smoke/install.sh +17 -4
  86. package/payload/drift-kit/README.md +2 -2
  87. package/payload/drift-kit/SPEC.md +71 -7
  88. package/payload/drift-kit/bin/stage-economics.sh +1 -1
  89. package/payload/drift-kit/lib/drift.sh +43 -0
  90. package/payload/drift-kit/smoke/install.sh +21 -14
  91. package/payload/evidence-kit/README.md +3 -1
  92. package/payload/evidence-kit/SPEC.md +160 -19
  93. package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
  94. package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
  95. package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
  96. package/payload/evidence-kit/checks/check-producer-liveness.sh +42 -2
  97. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
  98. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
  99. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
  100. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
  101. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
  102. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
  103. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
  104. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
  105. package/payload/evidence-kit/lib/evidence.sh +2 -0
  106. package/payload/evidence-kit/smoke/install.sh +1 -1
  107. package/payload/gate-sdk/README.md +17 -9
  108. package/payload/gate-sdk/SPEC.md +4680 -295
  109. package/payload/gate-sdk/bin/build-native.sh +66 -1
  110. package/payload/gate-sdk/bin/install-hooks.sh +14 -2
  111. package/payload/gate-sdk/bin/port-blockers.sh +37 -9
  112. package/payload/gate-sdk/bin/run-gate-tests.sh +1 -2
  113. package/payload/gate-sdk/bin/run-gates.sh +137 -13
  114. package/payload/gate-sdk/bin/upgrade-smoke.sh +21 -16
  115. package/payload/gate-sdk/checks/check-action-run-shell.sh +2 -1
  116. package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
  117. package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
  118. package/payload/gate-sdk/checks/check-core-files.gate +3 -0
  119. package/payload/gate-sdk/checks/check-crate-arms.sh +1 -0
  120. package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
  121. package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
  122. package/payload/gate-sdk/checks/check-gate-assertions.gate +3 -0
  123. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
  124. package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
  125. package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
  126. package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
  127. package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
  128. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +132 -15
  129. package/payload/gate-sdk/checks/check-graph.gate +3 -0
  130. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
  131. package/payload/gate-sdk/checks/check-identity.gate +3 -0
  132. package/payload/gate-sdk/checks/check-install-disposition.sh +1 -0
  133. package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
  134. package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
  135. package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
  136. package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
  137. package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
  138. package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
  139. package/payload/gate-sdk/checks/check-tree-terms.gate +3 -0
  140. package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
  141. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
  142. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
  143. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
  144. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
  145. package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
  146. package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
  147. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
  148. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +5 -1
  149. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +22 -0
  150. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-count.sh +11 -0
  151. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-extra.sh +14 -0
  152. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-zero.sh +7 -0
  153. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
  154. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +27 -0
  155. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-qux.sh +13 -0
  156. package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +117 -0
  157. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
  158. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
  159. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
  160. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
  161. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
  162. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
  163. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
  164. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
  165. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
  166. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
  167. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
  168. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
  169. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
  170. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
  171. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +4 -5
  172. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +9 -0
  173. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kit-spec.md +6 -0
  174. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
  175. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
  176. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
  177. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
  178. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-nospec.sh +4 -0
  179. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
  180. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
  181. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-ungrounded.sh +5 -0
  182. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +6 -0
  183. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
  184. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kit-spec.md +12 -0
  185. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
  186. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +5 -0
  187. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
  188. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +49 -4
  189. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
  190. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
  191. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
  192. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
  193. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
  194. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
  195. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
  196. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
  197. package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
  198. package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
  199. package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
  200. package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
  201. package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
  202. package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
  203. package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
  204. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
  205. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
  206. package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
  207. package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
  208. package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
  209. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
  210. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
  211. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
  212. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
  213. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
  214. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
  215. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
  216. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
  217. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
  218. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
  219. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
  220. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
  221. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
  222. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
  223. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
  224. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
  225. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +5 -0
  226. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/multi.txt +4 -0
  227. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/second-leak.txt +2 -0
  228. package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
  229. package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
  230. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +4 -0
  231. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +2 -0
  232. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +3 -0
  233. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/worktrees/vendored-note.txt +3 -0
  234. package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +94 -0
  235. package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
  236. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
  237. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +94 -1
  238. package/payload/gate-sdk/lib/gate.sh +232 -25
  239. package/payload/gate-sdk/smoke/install.sh +28 -1
  240. package/payload/guard-kit/README.md +4 -3
  241. package/payload/guard-kit/SPEC.md +578 -47
  242. package/payload/guard-kit/bin/compare-settings-allow.sh +36 -12
  243. package/payload/guard-kit/bin/run-guard-tests.sh +27 -4
  244. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +46 -1
  245. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
  246. package/payload/guard-kit/guard-tests/background-cases.tsv +14 -0
  247. package/payload/guard-kit/guard-tests/cases.tsv +67 -9
  248. package/payload/guard-kit/lib/guard.sh +361 -18
  249. package/payload/guard-kit/templates/bash-guard.sh +2 -0
  250. package/payload/guard-kit/templates/close-triage.md +10 -3
  251. package/payload/guard-kit/templates/guard-config.sh +3 -0
  252. package/payload/lifecycle-kit/README.md +3 -2
  253. package/payload/lifecycle-kit/SPEC.md +509 -77
  254. package/payload/lifecycle-kit/bin/enter-stage.sh +72 -33
  255. package/payload/lifecycle-kit/bin/file-gap.sh +2 -2
  256. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
  257. package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
  258. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
  259. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -1
  260. package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
  261. package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
  262. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +22 -22
  263. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
  264. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
  265. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +120 -10
  266. package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
  267. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +11 -11
  268. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
  269. package/payload/lifecycle-kit/lib/stages.sh +5 -0
  270. package/payload/lifecycle-kit/smoke/install.sh +29 -15
  271. package/payload/lifecycle-kit/templates/lead.md +32 -0
  272. package/payload/lifecycle-kit/templates/stages/align.md +20 -2
  273. package/payload/lifecycle-kit/templates/stages/build.md +3 -3
  274. package/payload/lifecycle-kit/templates/stages/close.md +20 -6
  275. package/payload/lifecycle-kit/templates/stages/scope.md +20 -1
  276. package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
  277. package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
  278. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +1 -1
  279. package/payload/queue-kit/README.md +10 -10
  280. package/payload/queue-kit/SPEC.md +379 -84
  281. package/payload/queue-kit/bin/queue-counts.sh +1 -1
  282. package/payload/queue-kit/checks/check-queue-entry-budget.gate +1 -1
  283. package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
  284. package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
  285. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
  286. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
  287. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
  288. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
  289. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
  290. package/payload/queue-kit/gate-tests/queue-counts.test.sh +1 -1
  291. package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
  292. package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
  293. package/payload/queue-kit/lib/queue.sh +0 -49
  294. package/payload/queue-kit/smoke/install.sh +1 -1
  295. package/payload/site-kit/SPEC.md +41 -2
  296. package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
  297. package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
  298. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
  299. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
  300. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
  301. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
  302. package/payload/site-kit/smoke/install.sh +1 -1
  303. package/payload/canon-kit/checks/check-amendment-queue.sh +0 -117
  304. package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -79
  305. package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -240
  306. package/payload/canon-kit/checks/check-prose-tells.sh +0 -208
  307. package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -134
  308. package/payload/context-kit/bin/footprint.sh +0 -144
  309. package/payload/context-kit/checks/check-brevity.sh +0 -124
  310. package/payload/context-kit/checks/check-footprint-fresh.sh +0 -39
  311. package/payload/context-kit/checks/check-memory-off.sh +0 -113
  312. package/payload/context-kit/checks/check-settings-paths.sh +0 -94
  313. package/payload/context-kit/checks/check-settings-pins.sh +0 -111
  314. package/payload/context-kit/gate-tests/check-memory-off/bad/args +0 -1
  315. package/payload/context-kit/gate-tests/check-memory-off/good/args +0 -1
  316. package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -62
  317. package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -140
  318. package/payload/delegation-kit/checks/check-rule-citation.sh +0 -77
  319. package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -246
  320. package/payload/drift-kit/bin/trajectory.sh +0 -242
  321. package/payload/evidence-kit/checks/check-battery-roster.sh +0 -87
  322. package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -104
  323. package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -105
  324. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
  325. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
  326. package/payload/gate-sdk/bin/enforcement-map.sh +0 -273
  327. package/payload/gate-sdk/checks/check-commit-msg.sh +0 -51
  328. package/payload/gate-sdk/checks/check-commit-subject.sh +0 -44
  329. package/payload/gate-sdk/checks/check-core-files.sh +0 -76
  330. package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -38
  331. package/payload/gate-sdk/checks/check-exec-bit.sh +0 -96
  332. package/payload/gate-sdk/checks/check-gate-assertions.sh +0 -148
  333. package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -107
  334. package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -106
  335. package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -85
  336. package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -93
  337. package/payload/gate-sdk/checks/check-gate-output.sh +0 -103
  338. package/payload/gate-sdk/checks/check-graph.sh +0 -632
  339. package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -46
  340. package/payload/gate-sdk/checks/check-identity.sh +0 -135
  341. package/payload/gate-sdk/checks/check-kit-enum.sh +0 -95
  342. package/payload/gate-sdk/checks/check-readme-roster.sh +0 -108
  343. package/payload/gate-sdk/checks/check-reads-couples.sh +0 -200
  344. package/payload/gate-sdk/checks/check-root-tiering.sh +0 -67
  345. package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -127
  346. package/payload/gate-sdk/checks/check-tree-terms.sh +0 -66
  347. package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -85
  348. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
  349. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
  350. package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
  351. package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
  352. package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
  353. package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -64
  354. package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -198
  355. package/payload/queue-kit/bin/queue-index.sh +0 -182
  356. package/payload/queue-kit/bin/roadmap.sh +0 -76
  357. package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -64
  358. package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -111
  359. package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -81
  360. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
  361. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
  362. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
  363. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  364. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  365. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
  366. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
  367. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  368. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  369. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
  370. /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
  371. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
  372. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
  373. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
  374. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
  375. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
@@ -35,4 +35,69 @@ command -v cargo >/dev/null 2>&1 || {
35
35
  exit 2
36
36
  }
37
37
 
38
- cargo build --release --manifest-path "$CRATE/Cargo.toml" "$@"
38
+ # spec: gate-sdk/SPEC.md §build-native — the released artifact carries no builder path. rustc
39
+ # records a panic location per crate it compiles, and a dependency's is absolute under the cargo
40
+ # home, so an unremapped binary ships the builder's home directory to every adopter.
41
+ BN_REMAP=()
42
+ for _bn_from in "${CARGO_HOME:-$HOME/.cargo}" "${HOME:-}"; do
43
+ # spec: gate-sdk/SPEC.md §build-native — a remap of `/` would rewrite every absolute path in
44
+ # the binary, so an empty or root prefix contributes no flag rather than a catastrophic one
45
+ [[ -n "$_bn_from" && "$_bn_from" != "/" ]] || continue
46
+ BN_REMAP+=("--remap-path-prefix=${_bn_from%/}=/builder")
47
+ done
48
+ unset _bn_from
49
+ # spec: gate-sdk/SPEC.md §build-native — appended to the caller's RUSTFLAGS rather than replacing
50
+ # them, or a caller passing its own flags would silently lose them to this one
51
+ RUSTFLAGS="${RUSTFLAGS:+$RUSTFLAGS }${BN_REMAP[*]}"
52
+ export RUSTFLAGS
53
+
54
+ cargo build --release --manifest-path "$CRATE/Cargo.toml" "$@" || exit $?
55
+
56
+ # spec: gate-sdk/SPEC.md §build-native — the remap is verified on the artifact rather than trusted
57
+ # from the flag: this is the one place every shipped build passes through, and a leak that reaches
58
+ # a consumer's tracked tree reds their first battery instead of this one
59
+ BN_OUT="$CRATE/target"
60
+ for _bn_i in "$@"; do
61
+ case "$_bn_i" in
62
+ --target=*) BN_OUT="$CRATE/target/${_bn_i#--target=}" ;;
63
+ --target) _bn_want_target=1 ;;
64
+ *) [[ "${_bn_want_target:-}" == 1 ]] && { BN_OUT="$CRATE/target/$_bn_i"; _bn_want_target=0; } ;;
65
+ esac
66
+ done
67
+ unset _bn_i _bn_want_target
68
+ BN_ART="$BN_OUT/release/$(basename "$(gate_native_bin)")"
69
+ [[ -f "$BN_ART" ]] || {
70
+ echo "build-native: cargo reported success but no artifact is at $BN_ART" >&2
71
+ echo " help: the artifact path is derived from the crate dir and any --target; if this build" >&2
72
+ echo " emits somewhere else, that derivation is what needs fixing." >&2
73
+ exit 2
74
+ }
75
+
76
+ # spec: gate-sdk/SPEC.md §build-native — the banned set is the consumer's own resolved pattern
77
+ # roster, the same one check-tree-terms and check-commit-msg read, so the artifact is held to the
78
+ # tree's leak ban rather than to a second vocabulary this tool would have to carry
79
+ # spec: gate-sdk/SPEC.md §Fail-closed contract — the resolver's status is read from the command
80
+ # substitution and not from `mapfile`, whose own status says nothing about the producer's
81
+ BN_PATLIST="$(gate_msg_pattern_files)" || {
82
+ echo "build-native: the banned-pattern set could not be resolved, so the artifact cannot be" >&2
83
+ echo " verified — treating the build as failed (not clean)." >&2
84
+ exit 2
85
+ }
86
+ BN_PATFILES=()
87
+ while IFS= read -r _bn_f; do [[ -n "$_bn_f" ]] && BN_PATFILES+=("$_bn_f"); done <<<"$BN_PATLIST"
88
+ unset _bn_f
89
+ if [[ ${#BN_PATFILES[@]} -gt 0 ]]; then
90
+ BN_PATS="$(grep -hEv '^[[:space:]]*(#|$)' "${BN_PATFILES[@]}")"
91
+ BN_HITS=""
92
+ [[ -n "$BN_PATS" ]] && BN_HITS="$(printf '%s\n' "$BN_PATS" | grep -aoEhf - "$BN_ART" | sort -u)"
93
+ if [[ -n "$BN_HITS" ]]; then
94
+ echo "build-native: the built artifact carries a banned pattern — it must not be shipped:" >&2
95
+ printf ' %s\n' "$BN_ART" >&2
96
+ while IFS= read -r _bn_h; do printf ' %s\n' "$_bn_h" >&2; done <<<"$BN_HITS"
97
+ unset _bn_h
98
+ echo " help: this build path lost its --remap-path-prefix flags, or a prefix outside" >&2
99
+ echo " CARGO_HOME and HOME reached the binary. gate-sdk/SPEC.md §build-native owns" >&2
100
+ echo " the remap and why every shipped build passes through this script." >&2
101
+ exit 2
102
+ fi
103
+ fi
@@ -32,12 +32,24 @@ fi
32
32
  # spec: gate-sdk/SPEC.md §install-hooks — apply-and-verify rung: run check-identity
33
33
  # once at opt-in so a fresh clone learns of a wrong-identity/wrong-remote mapping
34
34
  # before its first commit; the gate's exit status surfaces through this script's.
35
+ # spec: gate-sdk/SPEC.md §install-hooks — the rung reaches the gate through gate_command
36
+ # rather than by interpreting the resolved declaration path: a .gate descriptor is a data
37
+ # file of comment lines, and `bash` on it exits 0, so the rung would pass silently
35
38
  identity_rc=0
36
39
  mapfile -t _check_dirs < <(gate_check_dirs)
37
- if identity_gate="$(gate_resolve check-identity "${_check_dirs[@]}")"; then
40
+ _identity_argv_out=""
41
+ _identity_resolve_rc=0
42
+ _identity_argv_out="$(gate_command check-identity "${_check_dirs[@]}")" || _identity_resolve_rc=$?
43
+ if [[ "$_identity_resolve_rc" -eq 0 ]]; then
44
+ mapfile -t _identity_argv <<<"$_identity_argv_out"
38
45
  echo ""
39
46
  echo "Verifying git identity (check-identity)…"
40
- bash "$identity_gate" || identity_rc=$?
47
+ "${_identity_argv[@]}" || identity_rc=$?
48
+ elif [[ "$_identity_resolve_rc" -ne 1 ]]; then
49
+ # spec: gate-sdk/SPEC.md §install-hooks — status 1 is "no such member here", which a
50
+ # consumer without the gate is entitled to; anything else is a dispatch that could not
51
+ # be built, already named on stderr, and it fails the opt-in rather than skipping it
52
+ identity_rc="$_identity_resolve_rc"
41
53
  fi
42
54
 
43
55
  echo "Active hooks:"
@@ -3,7 +3,7 @@
3
3
  # spec: gate-sdk/SPEC.md §port-blockers — criterion 6's roster on the same tool and the same walk: the --group arm partitions the still-shell members by derived corpus derivation, so one tool is the derived roster for both criteria and neither is a maintained list
4
4
  # usage: port-blockers.sh [--group]
5
5
  # default arm: each registered gate's external-program requirements beyond GATE_SDK_PROGRAM_FLOOR, as '<member><TAB><program><TAB><file:line>' rows plus a trailing scanned/undecidable count line — the criterion-7 input a porting session reads when it sequences a cohort; advisory, never parsed, and what it cannot decide prints '?' and is counted.
6
- # --group: the corpus-derivation partition over the still-shell members, groups largest first, each member carrying its criterion 2/3/7 columns and its expanded couples= — the criterion-6 input the session cutting the next cohort reads, advisory on the same terms and with an undecidable count of its own.
6
+ # --group: the corpus-derivation partition over the still-shell members, groups largest first, each member carrying its declaration line count, its criterion 2/3/7 columns and its expanded couples= — the criterion-6 input the session cutting the next cohort reads, advisory on the same terms and with an undecidable count of its own; lines= is a floor on a port's size and never a ranking of it.
7
7
  set -uo pipefail
8
8
 
9
9
  SDK="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
@@ -19,11 +19,15 @@ usage: port-blockers.sh [--group]
19
19
  '<member><TAB><program><TAB><file:line>' row each.
20
20
  --group criterion 6: the corpus-derivation partition over the
21
21
  still-shell members, largest group first, each member
22
- carrying its criterion 2/3/7 columns and expanded couples=.
22
+ carrying lines= (its declaration's line count), its
23
+ criterion 2/3/7 columns and expanded couples=.
23
24
  -h, --help this text.
24
25
 
25
26
  Both arms are advisory: nothing parses either output, and what cannot be
26
- decided prints '?' and is counted rather than guessed.
27
+ decided prints '?' and is counted rather than guessed. lines= is one sizing
28
+ input beside the criterion columns, a floor on a port's size and never a
29
+ ranking of it: cost concentrated in interfaces, or behind a spawned tool,
30
+ is invisible to it.
27
31
  EOF
28
32
  }
29
33
 
@@ -59,7 +63,7 @@ while IFS= read -r _pb_root; do CHECK_DIRS+=("${_pb_root%/}/checks"); done < <(g
59
63
  unset _pb_root
60
64
 
61
65
  # spec: gate-sdk/SPEC.md §port-blockers — criterion 2's column reads the fixture dirs check-gate-fixture-coverage resolves, in that order, so the report and the gate can never disagree about whether a member carries a pair
62
- TESTS_DIRS=("${GATE_SDK_TESTS_DIR:-$GATES_DIR/gate-tests}")
66
+ TESTS_DIRS=("$GATE_SDK_TESTS_DIR")
63
67
  while IFS= read -r _pb_root; do TESTS_DIRS+=("${_pb_root%/}/gate-tests"); done < <(gate_kit_roots_rel)
64
68
  unset _pb_root
65
69
 
@@ -287,6 +291,8 @@ declare -A GROUP_COUNT=()
287
291
  group_unkeyed=""
288
292
  group_unkeyed_n=0
289
293
  ported_excluded=0
294
+ permanent_excluded=0
295
+ held_excluded=0
290
296
 
291
297
  record() {
292
298
  rows+="$1"$'\t'"$2"$'\t'"$3"$'\n'
@@ -344,6 +350,20 @@ while IFS= read -r member; do
344
350
  undecidable=$((undecidable + 1))
345
351
  continue
346
352
  fi
353
+ # spec: gate-sdk/SPEC.md §port-blockers — a declared-permanent member leaves the partition on
354
+ # exactly the ported member's terms above, and only on this arm: the grouping orders the corpus
355
+ # this arm can take, while the default arm's criterion-7 row grounds the permanence itself
356
+ if [[ "$MODE" == group ]] && grep -Eq '^#[[:space:]]*no-port:' "$decl"; then
357
+ permanent_excluded=$((permanent_excluded + 1))
358
+ continue
359
+ fi
360
+ # spec: gate-sdk/SPEC.md §port-blockers — a temporarily-held member leaves the partition on the
361
+ # permanent member's terms but is counted apart from it: it is still owed, so the trailer prints
362
+ # the two numbers rather than leaving a reader to subtract a fourth class out of the third
363
+ if [[ "$MODE" == group ]] && grep -Eq '^#[[:space:]]*port-until:' "$decl"; then
364
+ held_excluded=$((held_excluded + 1))
365
+ continue
366
+ fi
347
367
 
348
368
  declare -A seen=()
349
369
  declare -A LOCAL_FUNCS=()
@@ -391,9 +411,11 @@ while IFS= read -r member; do
391
411
  libkey="${libkey%,}"
392
412
  fi
393
413
  globkey="$(pb_glob_set "$decl")"
414
+ # spec: gate-sdk/SPEC.md §port-blockers — the line count is read off the same resolved $decl the row's other columns are, so the field cannot disagree with the rest of its own row about which file it describes; it is emitted on the unkeyed row too because a count decides nothing, which is why the ground for withholding the criterion columns there does not reach it
415
+ decl_lines=$(( $(wc -l < "$decl") ))
394
416
  # spec: gate-sdk/SPEC.md §port-blockers — a member empty in both factors is reported, never grouped, and never grouped with another empty-keyed member: sharing an absence of evidence is not sharing a derivation
395
417
  if [[ -z "$libkey" && -z "$globkey" ]]; then
396
- group_unkeyed+=" ? $member"$'\t'"$decl"$'\n'
418
+ group_unkeyed+=" ? $member"$'\t'"lines=$decl_lines"$'\t'"$decl"$'\n'
397
419
  group_unkeyed_n=$((group_unkeyed_n + 1))
398
420
  else
399
421
  if [[ "$member_undecidable" -eq 1 ]]; then
@@ -407,8 +429,9 @@ while IFS= read -r member; do
407
429
  c3="$(gate_manifest_field "$decl" tier)"
408
430
  gate_expand_couples_var couples_exp "$(gate_manifest_field "$decl" couples)"
409
431
  key="libs=${libkey:--} globs=${globkey:--}"
410
- GROUP_ROWS["$key"]+="$(printf ' %-36s c2=%-10s c3=%-9s c7=%s\n couples=%s' \
411
- "$member" "$c2" "${c3:--}" "$c7" "${couples_exp:--}")"$'\n'
432
+ # spec: gate-sdk/SPEC.md §port-blockers — lines= sits in the fixed-width run ahead of c2=, not appended: c7= is variable-width, so a field after it is the one column that cannot be aligned, and a cost column read down a list is the one that must be
433
+ GROUP_ROWS["$key"]+="$(printf ' %-36s lines=%-5s c2=%-10s c3=%-9s c7=%s\n couples=%s' \
434
+ "$member" "$decl_lines" "$c2" "${c3:--}" "$c7" "${couples_exp:--}")"$'\n'
412
435
  GROUP_COUNT["$key"]=$((${GROUP_COUNT["$key"]:-0} + 1))
413
436
  fi
414
437
  fi
@@ -435,8 +458,13 @@ if [[ "$MODE" == group ]]; then
435
458
  printf '%s\n' "${group_unkeyed%$'\n'}"
436
459
  printf '\n'
437
460
  fi
438
- printf 'port-blockers --group: %d member(s) scanned, %d group(s) formed, %d undecidable, %d already ported and excluded\n' \
439
- "$scanned" "$groups" "$group_unkeyed_n" "$ported_excluded"
461
+ # spec: gate-sdk/SPEC.md §port-blockers — a held member is excluded from the partition and still
462
+ # owed, which falsifies the subtraction a reader would otherwise do, so both numbers are printed
463
+ still_owed=$((scanned - ported_excluded - permanent_excluded))
464
+ takeable=$((still_owed - held_excluded))
465
+ printf 'port-blockers --group: %d member(s) scanned, %d group(s) formed, %d undecidable, %d already ported and excluded, %d permanently shell and excluded, %d temporarily held and excluded; %d still owed, %d takeable at this cut\n' \
466
+ "$scanned" "$groups" "$group_unkeyed_n" "$ported_excluded" "$permanent_excluded" \
467
+ "$held_excluded" "$still_owed" "$takeable"
440
468
  exit 0
441
469
  fi
442
470
 
@@ -6,8 +6,7 @@ SDK="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
6
6
  # shellcheck source=../lib/gate.sh
7
7
  source "$SDK/lib/gate.sh"
8
8
 
9
- GATES_DIR_DEFAULT="$(gate_sdk_gates_dir)"
10
- TESTS_DIR="${1:-${GATE_SDK_TESTS_DIR:-$GATES_DIR_DEFAULT/gate-tests}}"
9
+ TESTS_DIR="${1:-$GATE_SDK_TESTS_DIR}"
11
10
  if [[ $# -gt 1 ]]; then
12
11
  GATE_DIRS=("${@:2}")
13
12
  else
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env bash
2
- # spec: gate-sdk/SPEC.md §run-gates — aggregate gate runner; --for scopes it to gates coupling to given paths
2
+ # spec: gate-sdk/SPEC.md §run-gates — aggregate gate runner; --for scopes it to gates coupling to given paths, --only to gates named on argv
3
3
  #
4
- # usage: run-gates.sh [gates-dir] run every registered gate
5
- # run-gates.sh --for <path>... run only gates coupling to those paths
4
+ # usage: run-gates.sh [gates-dir] | --only <name>... | --for <path>... | --emit <arm> [args...] | -h | --help
5
+ # every arm, its refusals and the knobs print from the tool itself: run-gates.sh --help
6
6
  # timings → $GATE_SDK_TMP_DIR/gate-timings.txt (default .tmp/); a measurement, never committed
7
7
  set -uo pipefail
8
8
 
@@ -16,17 +16,116 @@ REPO_ROOT="$(git rev-parse --show-toplevel)" || {
16
16
  }
17
17
  cd "$REPO_ROOT" || exit 2
18
18
 
19
+ # spec: gate-sdk/SPEC.md §run-gates — the one usage text, the stdout body of a help request and
20
+ # the stderr body of an unrecognized-option refusal, per §The bin/-tool contract
21
+ usage() {
22
+ cat <<'EOF'
23
+ usage: run-gates.sh [gates-dir] run every registered gate
24
+ run-gates.sh --only <name> [<name>...] run only the named registered gates
25
+ run-gates.sh --for <path> [<path>...] run only gates coupling to those paths
26
+ run-gates.sh --emit <arm> [args...] dispatch a ported non-gate emitter arm
27
+ run-gates.sh -h | --help this text, on stdout, exit 0
28
+
29
+ --only runs the named members in registry order whatever order they were
30
+ typed; duplicates collapse, and an unregistered name is a refusal.
31
+ The [gates-dir] positional is unavailable in this form — point
32
+ GATE_SDK_GATES_DIR at another registry instead.
33
+ --for selects by coupling: every gate whose effective trigger matches one
34
+ of the given repo-relative paths, exactly as the generated hook
35
+ would. A path no gate couples to is a note, not a failure.
36
+ --emit dispatches the named non-gate arm of the native binary, handing it
37
+ every remaining argument.
38
+ -- ends option processing, so a gates-dir spelled with a leading dash
39
+ is still reachable.
40
+
41
+ GATE_SDK_VERBOSE (any non-empty value) restores the per-gate banner roll the
42
+ quiet-green output contract suppresses; per-gate timings land in
43
+ $GATE_SDK_TMP_DIR/gate-timings.txt (default .tmp/).
44
+ EOF
45
+ }
46
+
47
+ unrecognized_option() {
48
+ printf 'run-gates: unrecognized option: %s\n' "$1" >&2
49
+ usage >&2
50
+ exit 2
51
+ }
52
+
19
53
  FOR_PATHS=()
20
- if [[ "${1:-}" == --for ]]; then
21
- shift
22
- FOR_PATHS=("$@")
23
- [[ ${#FOR_PATHS[@]} -gt 0 ]] || { echo "run-gates: --for needs at least one path" >&2; exit 2; }
24
- set --
25
- fi
54
+ ONLY_NAMES=()
55
+ # spec: gate-sdk/SPEC.md §run-gates — the argument grammar: every arm is decided off the first
56
+ # argument alone, so the option arms are exclusive and a leading '-' that names none of them is a
57
+ # refusal rather than a gates-dir
58
+ case "${1-}" in
59
+ -h | --help)
60
+ usage
61
+ exit 0
62
+ ;;
63
+ # spec: gate-sdk/SPEC.md §The non-gate arm — the emitter front-end: a ported arm receives no
64
+ # configuration, so a caller already sourcing this library resolves its bridged knobs and invokes
65
+ # it. The arm name is an operand here and a suffix in the crate, governed separately.
66
+ --emit)
67
+ shift
68
+ EMIT_ARM_NAME="${1:-}"
69
+ [[ -n "$EMIT_ARM_NAME" ]] || { echo "run-gates: --emit needs an arm name" >&2; exit 2; }
70
+ EMIT_ARM="--emit-$EMIT_ARM_NAME"
71
+ shift
72
+ EMIT_ARGS=("$@")
73
+ EMIT_BIN="$(gate_native_bin)"
74
+ if [[ ! -x "$EMIT_BIN" ]]; then
75
+ printf 'run-gates: --emit dispatches to the native binary, but %s is absent or not ' "$EMIT_BIN" >&2
76
+ printf 'executable — the projection could not be emitted. Build it: bash gate-sdk/bin/build-native.sh\n' >&2
77
+ exit 2
78
+ fi
79
+ EMIT_ENV="$(gate_knob_env "$EMIT_ARM")" || exit 2
80
+ EMIT_ELEMS=()
81
+ [[ -n "$EMIT_ENV" ]] && mapfile -t EMIT_ELEMS <<<"$EMIT_ENV"
82
+ exec env ${EMIT_ELEMS[@]+"${EMIT_ELEMS[@]}"} "$EMIT_BIN" "$EMIT_ARM" ${EMIT_ARGS[@]+"${EMIT_ARGS[@]}"}
83
+ ;;
84
+ --for)
85
+ shift
86
+ FOR_PATHS=("$@")
87
+ [[ ${#FOR_PATHS[@]} -gt 0 ]] || { echo "run-gates: --for needs at least one path" >&2; exit 2; }
88
+ set --
89
+ ;;
90
+ # spec: gate-sdk/SPEC.md §run-gates — a name beginning with '-' is an unrecognized option
91
+ # wherever it stands in the list, so `--only --for` refuses at the name instead of taking it
92
+ # for a gate and reporting it unregistered
93
+ --only)
94
+ shift
95
+ ONLY_NAMES=("$@")
96
+ [[ ${#ONLY_NAMES[@]} -gt 0 ]] || { echo "run-gates: --only needs at least one gate name" >&2; exit 2; }
97
+ for only_name in "${ONLY_NAMES[@]}"; do
98
+ case "$only_name" in -*) unrecognized_option "$only_name" ;; esac
99
+ done
100
+ set --
101
+ ;;
102
+ --)
103
+ shift
104
+ ;;
105
+ -*)
106
+ unrecognized_option "$1"
107
+ ;;
108
+ esac
26
109
 
27
- GATES_DIR="${1:-$(gate_sdk_gates_dir)}"
110
+ GATES_DIR_ARG="${1-}"
111
+ GATES_DIR="${GATES_DIR_ARG:-$(gate_sdk_gates_dir)}"
28
112
  LIST="$GATES_DIR/gates.list"
29
- [[ -f "$LIST" ]] || { echo "run-gates: no registry at $LIST" >&2; exit 2; }
113
+ # spec: gate-sdk/SPEC.md §run-gates — the --only steer: a positional that is really a member of the
114
+ # default registry earns the remedy beside the refusal, never a run it did not ask for
115
+ if [[ ! -f "$LIST" ]]; then
116
+ echo "run-gates: no registry at $LIST" >&2
117
+ DEFAULT_LIST="$(gate_sdk_gates_dir)/gates.list"
118
+ if [[ -n "$GATES_DIR_ARG" && -f "$DEFAULT_LIST" ]]; then
119
+ mapfile -t DEFAULT_MEMBERS < <(gates_list_members "$DEFAULT_LIST")
120
+ for m in ${DEFAULT_MEMBERS[@]+"${DEFAULT_MEMBERS[@]}"}; do
121
+ [[ "$m" == "$GATES_DIR_ARG" ]] || continue
122
+ printf "run-gates: '%s' is a gate registered in %s, not a gates dir — run it with: run-gates.sh --only %s\n" \
123
+ "$GATES_DIR_ARG" "$DEFAULT_LIST" "$GATES_DIR_ARG" >&2
124
+ break
125
+ done
126
+ fi
127
+ exit 2
128
+ fi
30
129
 
31
130
  mapfile -t MEMBERS < <(gates_list_members "$LIST")
32
131
  [[ ${#MEMBERS[@]} -gt 0 ]] || { echo "run-gates: $LIST names no gates" >&2; exit 2; }
@@ -34,7 +133,7 @@ mapfile -t MEMBERS < <(gates_list_members "$LIST")
34
133
  RESOLVE_DIRS=("$GATES_DIR")
35
134
  while IFS= read -r k; do RESOLVE_DIRS+=("$k/checks"); done < <(gate_kit_roots)
36
135
 
37
- # spec: gate-sdk/SPEC.md §run-gates — --for selection: hook-identical match per member; RUN_LIST + RUN_ARGSTR (index-aligned, newline-joined staged-mode args) carry the result
136
+ # spec: gate-sdk/SPEC.md §run-gates — where both selectors land their result: RUN_LIST + RUN_ARGSTR (index-aligned; newline-joined staged-mode args under --for, empty for every member under --only, which names gates and has no paths to hand one)
38
137
  RUN_LIST=()
39
138
  RUN_ARGSTR=()
40
139
 
@@ -92,8 +191,33 @@ select_for() {
92
191
  done
93
192
  }
94
193
 
194
+ # spec: gate-sdk/SPEC.md §run-gates — --only selection: set-shaped and registry-ordered, so two
195
+ # names give one transcript whichever way they were typed; an unregistered name is a refusal
196
+ # because a name is a claim about the registry, never a fact about the tree
197
+ select_only() {
198
+ local n c found
199
+ for n in "${ONLY_NAMES[@]}"; do
200
+ found=0
201
+ for c in "${MEMBERS[@]}"; do [[ "$c" == "$n" ]] && { found=1; break; }; done
202
+ (( found )) || {
203
+ echo "run-gates: --only: '$n' is not registered in $LIST" >&2
204
+ exit 2
205
+ }
206
+ done
207
+ for c in "${MEMBERS[@]}"; do
208
+ for n in "${ONLY_NAMES[@]}"; do
209
+ [[ "$c" == "$n" ]] || continue
210
+ RUN_LIST+=("$c"); RUN_ARGSTR+=("")
211
+ break
212
+ done
213
+ done
214
+ }
215
+
95
216
  RUN_MEMBERS=("${MEMBERS[@]}")
96
- if [[ ${#FOR_PATHS[@]} -gt 0 ]]; then
217
+ if [[ ${#ONLY_NAMES[@]} -gt 0 ]]; then
218
+ select_only
219
+ RUN_MEMBERS=("${RUN_LIST[@]}")
220
+ elif [[ ${#FOR_PATHS[@]} -gt 0 ]]; then
97
221
  select_for
98
222
  RUN_MEMBERS=("${RUN_LIST[@]}")
99
223
  if [[ ${#RUN_MEMBERS[@]} -eq 0 ]]; then
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # spec: gate-sdk/SPEC.md §upgrade-smoke — the two-phase upgrade proof on the consumer-smoke mechanics; the 'upgrade' validate suite each validate stage re-runs, and (TO=HEAD, the default) the standing pre-release assertion that the working tree upgrades cleanly from the last tag. Each phase runs its own ref's gate binary, built from a detached worktree at that ref. Harness-less: bare bash + git + cargo, never the network.
2
+ # spec: gate-sdk/SPEC.md §upgrade-smoke — the two-phase upgrade proof on the consumer-smoke mechanics; the 'upgrade' validate suite each validate stage re-runs, and (TO=HEAD, the default) the standing pre-release assertion that the working tree upgrades cleanly from the last tag. Each phase runs its own ref's gate binary, built from a detached worktree at that ref. Harness-less: bare bash + git + cargo. Not network-free since the crate took its first dependency — a worktree build shares the host cargo home, so a warm registry cache needs no fetch and a cold one does.
3
3
  set -uo pipefail
4
4
 
5
5
  SDK="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
@@ -113,7 +113,7 @@ if [[ "$rc" -ne 0 ]] || ! grep -qE 'All [0-9]+ gates passed' <<<"$out"; then
113
113
  exit 2
114
114
  fi
115
115
 
116
- # spec: gate-sdk/SPEC.md §upgrade-smoke — phase A: replace the vendored kit directories wholesale at TO and regenerate the generated artifacts (the contract's consumer steps, docs/install.md §The upgrade contract)
116
+ # spec: gate-sdk/SPEC.md §upgrade-smoke — phase A, step 1 of 2: replace the vendored kit directories wholesale at TO (the contract's consumer steps, docs/install.md §The upgrade contract)
117
117
  declare -A kitname_seen=()
118
118
  for r in "${fromroots[@]}"; do rm -rf "${CONS:?}/$(basename "$r")"; done
119
119
  for r in "${toroots[@]}"; do
@@ -129,33 +129,38 @@ if [[ "$(csmoke_gate_descriptors "${toroots[@]}")" -gt 0 ]]; then
129
129
  || { echo "upgrade-smoke: FAIL(env) — could not place TO ($TO)'s gate binary in the scratch consumer" >&2; exit 2; }
130
130
  fi
131
131
 
132
- ( cd "$CONS" && bash gate-sdk/bin/gen-pre-commit.sh --write >/dev/null ) \
133
- || { echo "upgrade-smoke: phase A gen-pre-commit failed at TO ($TO)" >&2; exit 2; }
134
- ( cd "$CONS" && bash gate-sdk/checks/check-graph.sh --emit > scripts/CHECK-GRAPH.html ) \
135
- || { echo "upgrade-smoke: phase A check-graph --emit failed at TO ($TO)" >&2; exit 2; }
136
- if [[ -f "$CONS/doctrine-kit/bin/install-doctrine.sh" ]]; then
137
- ( cd "$CONS" && bash doctrine-kit/bin/install-doctrine.sh >/dev/null ) \
138
- || { echo "upgrade-smoke: phase A install-doctrine failed at TO ($TO)" >&2; exit 2; }
139
- fi
140
-
141
- # spec: gate-sdk/SPEC.md §upgrade-smoke — determinism: git status shows changes only under kit roots and the two regenerated artifacts; anything else means phase A edited a consumer file (the wholesale-sync invariant broke)
132
+ # spec: gate-sdk/SPEC.md §upgrade-smoke — determinism is measured on the sync alone, before a regen step has run: the sync's whole claim is that it loses nothing a consumer owns, so its staged set must fall under the kit roots and nowhere else, with no exemption to state
142
133
  git -C "$CONS" add -A
143
134
  stray=()
144
135
  while IFS= read -r p; do
145
136
  [[ -n "$p" ]] || continue
146
- case "$p" in
147
- scripts/git-hooks/pre-commit|scripts/CHECK-GRAPH.html|CLAUDE.md) continue ;;
148
- esac
149
137
  top="${p%%/*}"
150
138
  [[ -n "${kitname_seen[$top]:-}" ]] || stray+=("$p")
151
139
  done < <(git -C "$CONS" diff --cached --name-only)
152
140
 
153
141
  if [[ ${#stray[@]} -gt 0 ]]; then
154
- echo "upgrade-smoke: FAIL — phase A is non-deterministic: it changed consumer files outside the kit roots and the regenerated artifacts:" >&2
142
+ echo "upgrade-smoke: FAIL — the phase-A kit sync is non-deterministic: it changed consumer files outside the kit roots:" >&2
155
143
  for p in "${stray[@]}"; do echo " $p" >&2; done
156
144
  echo " the wholesale kit-sync must lose nothing a consumer owns (docs/install.md §The upgrade contract)." >&2
157
145
  exit 1
158
146
  fi
147
+
148
+ # spec: gate-sdk/SPEC.md §upgrade-smoke — phase A, step 2 of 2: regenerate the generated artifacts, run after the sync has been judged. Which paths each emitter writes is that emitter's own contract, held by that emitter's own freshness gate, so nothing here names the set
149
+ ( cd "$CONS" && bash gate-sdk/bin/gen-pre-commit.sh --write >/dev/null ) \
150
+ || { echo "upgrade-smoke: phase A gen-pre-commit failed at TO ($TO)" >&2; exit 2; }
151
+ # spec: gate-sdk/SPEC.md §upgrade-smoke — the artifact's path is resolved rather than spelled again here: check-graph resolves the same knob for itself, and a second spelling mis-writes under a GATE_SDK_GRAPH_ARTIFACT or GATE_SDK_GATES_DIR the consumer does not share. It is resolved in the consumer's library and not in this tool's own — this tool sources the host repo's gate.sh, so the host's value is this repo's docs path while the scratch consumer is zero-config, and reading the host's would write the artifact where that consumer's own gate will not look. The emitter is a binary arm, so it is reached through the front-end that resolves its bridged knobs (§The non-gate arm), never by a path into the kit.
152
+ CONS_ARTIFACT="$( cd "$CONS" && bash -c 'source gate-sdk/lib/gate.sh; printf "%s" "$GATE_SDK_GRAPH_ARTIFACT"' )" \
153
+ || { echo "upgrade-smoke: could not resolve the graph artifact path at TO ($TO)" >&2; exit 2; }
154
+ [[ -n "$CONS_ARTIFACT" ]] \
155
+ || { echo "upgrade-smoke: the consumer's library resolved an empty graph artifact path at TO ($TO)" >&2; exit 2; }
156
+ ( cd "$CONS" && bash gate-sdk/bin/run-gates.sh --emit graph > "$CONS_ARTIFACT" ) \
157
+ || { echo "upgrade-smoke: phase A graph emit failed at TO ($TO)" >&2; exit 2; }
158
+ if [[ -f "$CONS/doctrine-kit/bin/install-doctrine.sh" ]]; then
159
+ ( cd "$CONS" && bash doctrine-kit/bin/install-doctrine.sh >/dev/null ) \
160
+ || { echo "upgrade-smoke: phase A install-doctrine failed at TO ($TO)" >&2; exit 2; }
161
+ fi
162
+
163
+ git -C "$CONS" add -A
159
164
  git -C "$CONS" -c user.email=smoke@example.invalid -c user.name=smoke \
160
165
  commit -q --no-verify --allow-empty -m "phase A: kits at $TO"
161
166
 
@@ -1,10 +1,11 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=.github/workflows/*.yml,.github/workflows/*.yaml,.github/ISSUE_TEMPLATE/*.yml,docs/_config.yml,kit:templates/*.yml,kit:templates/*.yaml dir=one valve=none tier=precommit
3
3
  # install: on-surface
4
+ # port-until: cohort-held-members-port-prerequisites
4
5
  # spec: gate-sdk/SPEC.md §check-action-run-shell — every GitHub Actions `run:` literal block scalar in an Actions-shaped YAML file is ShellCheck-clean at -S warning under the dialect the step actually runs
5
6
  #
6
7
  # usage: check-action-run-shell.sh [scan-root]
7
- # scan-root: the walked tree (default '.'). Requires GNU awk (3-arg match).
8
+ # scan-root: the walked tree (default '.').
8
9
  set -uo pipefail
9
10
 
10
11
  SDK="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
@@ -0,0 +1,3 @@
1
+ # graph: couples=scripts/msg-patterns.list,native/src/gates/commit_msg.rs,native/src/ere.rs,native/src/fresh.rs dir=one valve=none tier=commit-msg
2
+ # install: zero-config
3
+ # spec: gate-sdk/SPEC.md §check-commit-msg — the commit message matches no banned pattern (the leak guard for the message surface the pre-commit hook never sees)
@@ -0,0 +1,3 @@
1
+ # graph: couples=gate-sdk/lib/gate.sh dir=one valve=none tier=commit-msg
2
+ # install: on-surface
3
+ # spec: gate-sdk/SPEC.md §check-commit-subject — the subject line parses as <type>(<scope>)?!?: <summary> with <type> in the shared roster, or matches a git-generated carve-out (the parse guarantee under the trajectory arm's feat/debt column)
@@ -0,0 +1,3 @@
1
+ # graph: couples=scripts/core-files.list,kit:SPEC.md,kit:README.md,native/src/gates/core_files.rs,native/src/fresh.rs dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: gate-sdk/SPEC.md §check-core-files — every path in the core-files manifest exists in the worktree and is tracked
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=native/Cargo.toml,native/build.rs,native/src/*.rs,native/src/gates/*.rs dir=one valve=none tier=precommit
3
3
  # install: never
4
+ # no-port: gate-sdk/SPEC.md §check-crate-arms — criteria 4 and 7, not exception class (a): a gate running cargo over the crate cannot live inside the artifact it tests, and its rule invokes cargo
4
5
  # spec: gate-sdk/SPEC.md §check-crate-arms — the crate's lint and test arms run at commit time, so a battery that passes cannot coexist with a CI that fails on them
5
6
  #
6
7
  # usage: check-crate-arms.sh
@@ -0,0 +1,3 @@
1
+ # graph: couples=docs/enforcement.md,scripts/gates.list,scripts/*.sh,kit:*.sh,scripts/kpis.list,.claude/settings.json,.github/workflows/*.yml,native/src/gates/enforcement_fresh.rs,native/src/emit/enforcement_map.rs,native/src/fresh.rs,native/src/diff.rs dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: gate-sdk/SPEC.md §check-enforcement-fresh — docs/enforcement.md is the byte-fresh projection of the enforcement-map emitter, which this member calls in-process rather than spawning
@@ -0,0 +1,3 @@
1
+ # graph: couples=kit:checks/*.sh,kit:kpis/*.sh,kit:bin/*.sh,scripts/check-*.sh,scripts/kpi-*.sh,native/src/gates/exec_bit.rs,native/src/fresh.rs dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: gate-sdk/SPEC.md §check-exec-bit — every tracked *.sh matching an exec-glob carries git index mode 100755 and every tracked *.gate descriptor carries 100644, or a by-path-invoked kit script degrades silently to a skipped check / failed plugin in a fresh clone
@@ -0,0 +1,3 @@
1
+ # graph: couples=kit:SPEC.md,scripts/*.sh,kit:*.sh,native/src/gates/*.rs,kit:checks/*.sh,kit:checks/*.gate dir=bi valve=none tier=align-only
2
+ # install: zero-config
3
+ # spec: gate-sdk/SPEC.md §check-gate-assertions — couple each §<gate> enumerated-assertion span+count to the gate code's `# assertion` markers
@@ -0,0 +1,3 @@
1
+ # graph: couples=kit:checks/*.gate,scripts/gates.list,native/* dir=one valve=none tier=precommit
2
+ # install: never
3
+ # spec: gate-sdk/SPEC.md §check-gate-binary-fresh — whenever a registered member resolving to a .gate descriptor makes the binary load-bearing, the binary was built from the source now in the tree
@@ -0,0 +1,3 @@
1
+ # graph: couples=scripts/*.sh,kit:*.sh,TASK-QUEUE.md dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # spec: gate-sdk/SPEC.md §check-gate-exemption-tasks — every temporary-disposition annotation a gate declaration carries names a live task: an exception-list element's until:, or the declaration's own port-until: header field
@@ -0,0 +1,3 @@
1
+ # graph: couples=scripts/*.sh,kit:*.sh,native/src/gates/gate_fail_closed.rs,native/src/fresh.rs dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # spec: gate-sdk/SPEC.md §check-gate-fail-closed — every awk/jq capture in the gate family handles subprocess exit status
@@ -0,0 +1,3 @@
1
+ # graph: couples=scripts/gates.list,scripts/*.sh,scripts/gate-tests/*,kit:*.sh,native/src/gates/gate_fixture_coverage.rs,native/src/fresh.rs dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # spec: gate-sdk/SPEC.md §check-gate-fixture-coverage — every gates.list member has a fixture pair or a no-fixture opt-out
@@ -0,0 +1,3 @@
1
+ # graph: couples=scripts/gates.list,scripts/*.sh,kit:*.sh,native/src/gates/gate_output.rs,native/src/ere.rs,native/src/fresh.rs dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # spec: gate-sdk/SPEC.md §check-gate-output — every gates.list member emits a machine-keyable success line and a help: remedy