checkwright 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +172 -10
  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/SPEC.md +125 -13
  11. package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
  12. package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
  13. package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
  14. package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
  15. package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
  16. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
  17. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
  18. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
  19. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
  20. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
  21. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
  22. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
  23. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
  24. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
  25. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
  26. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
  27. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
  28. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
  29. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
  30. package/payload/canon-kit/smoke/install.sh +1 -1
  31. package/payload/context-kit/README.md +6 -4
  32. package/payload/context-kit/SPEC.md +239 -70
  33. package/payload/context-kit/bin/always-loaded.sh +5 -21
  34. package/payload/context-kit/bin/env-probe.sh +2 -17
  35. package/payload/context-kit/checks/check-brevity.gate +3 -0
  36. package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
  37. package/payload/context-kit/checks/check-memory-off.gate +3 -0
  38. package/payload/context-kit/checks/check-settings-paths.gate +3 -0
  39. package/payload/context-kit/checks/check-settings-pins.gate +3 -0
  40. package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
  41. package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
  42. package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
  43. package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
  44. package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
  45. package/payload/context-kit/index-tests/expected/toolfloor.txt +5 -5
  46. package/payload/context-kit/index-tests/toolfloor-cases.sh +5 -5
  47. package/payload/context-kit/lib/context.sh +56 -0
  48. package/payload/context-kit/lib/toolfloor.sh +1 -1
  49. package/payload/context-kit/smoke/agents-md.sh +16 -4
  50. package/payload/context-kit/smoke/install.sh +3 -2
  51. package/payload/context-kit/templates/session-context.sh +5 -5
  52. package/payload/delegation-kit/SPEC.md +284 -9
  53. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
  54. package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
  55. package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
  56. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
  57. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
  58. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
  59. package/payload/delegation-kit/smoke/install.sh +1 -1
  60. package/payload/delegation-kit/templates/agent-execution.md +71 -4
  61. package/payload/doctrine-kit/SPEC.md +1 -1
  62. package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
  63. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +2 -3
  64. package/payload/doctrine-kit/smoke/install.sh +17 -4
  65. package/payload/drift-kit/README.md +2 -2
  66. package/payload/drift-kit/SPEC.md +71 -7
  67. package/payload/drift-kit/bin/stage-economics.sh +1 -1
  68. package/payload/drift-kit/lib/drift.sh +43 -0
  69. package/payload/drift-kit/smoke/install.sh +21 -14
  70. package/payload/evidence-kit/README.md +3 -1
  71. package/payload/evidence-kit/SPEC.md +160 -19
  72. package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
  73. package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
  74. package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
  75. package/payload/evidence-kit/checks/check-producer-liveness.sh +42 -2
  76. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
  77. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
  78. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
  79. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
  80. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
  81. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
  82. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
  83. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
  84. package/payload/evidence-kit/lib/evidence.sh +2 -0
  85. package/payload/evidence-kit/smoke/install.sh +1 -1
  86. package/payload/gate-sdk/README.md +10 -7
  87. package/payload/gate-sdk/SPEC.md +3916 -265
  88. package/payload/gate-sdk/bin/install-hooks.sh +14 -2
  89. package/payload/gate-sdk/bin/port-blockers.sh +37 -9
  90. package/payload/gate-sdk/bin/run-gate-tests.sh +1 -2
  91. package/payload/gate-sdk/bin/run-gates.sh +22 -0
  92. package/payload/gate-sdk/bin/upgrade-smoke.sh +21 -16
  93. package/payload/gate-sdk/checks/check-action-run-shell.sh +1 -0
  94. package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
  95. package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
  96. package/payload/gate-sdk/checks/check-core-files.gate +3 -0
  97. package/payload/gate-sdk/checks/check-crate-arms.sh +1 -0
  98. package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
  99. package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
  100. package/payload/gate-sdk/checks/check-gate-assertions.sh +1 -0
  101. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
  102. package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
  103. package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
  104. package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
  105. package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
  106. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +78 -14
  107. package/payload/gate-sdk/checks/check-graph.gate +3 -0
  108. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
  109. package/payload/gate-sdk/checks/check-identity.gate +3 -0
  110. package/payload/gate-sdk/checks/check-install-disposition.sh +1 -0
  111. package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
  112. package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
  113. package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
  114. package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
  115. package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
  116. package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
  117. package/payload/gate-sdk/checks/check-tree-terms.sh +1 -0
  118. package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
  119. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
  120. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
  121. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
  122. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
  123. package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
  124. package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
  125. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
  126. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
  127. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
  128. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
  129. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
  130. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
  131. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
  132. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
  133. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
  134. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
  135. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
  136. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
  137. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
  138. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
  139. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
  140. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +4 -5
  141. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +7 -0
  142. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
  143. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
  144. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
  145. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
  146. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
  147. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
  148. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +4 -0
  149. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
  150. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
  151. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +4 -0
  152. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
  153. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +49 -4
  154. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
  155. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
  156. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
  157. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
  158. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
  159. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
  160. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
  161. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
  162. package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
  163. package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
  164. package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
  165. package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
  166. package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
  167. package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
  168. package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
  169. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
  170. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
  171. package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
  172. package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
  173. package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
  174. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
  175. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
  176. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
  177. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
  178. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
  179. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
  180. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
  181. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
  182. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
  183. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
  184. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
  185. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
  186. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
  187. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
  188. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
  189. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
  190. package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
  191. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
  192. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +94 -1
  193. package/payload/gate-sdk/lib/gate.sh +232 -25
  194. package/payload/gate-sdk/smoke/install.sh +5 -1
  195. package/payload/guard-kit/SPEC.md +207 -28
  196. package/payload/guard-kit/bin/run-guard-tests.sh +6 -1
  197. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
  198. package/payload/guard-kit/guard-tests/cases.tsv +37 -9
  199. package/payload/guard-kit/lib/guard.sh +170 -6
  200. package/payload/lifecycle-kit/README.md +3 -2
  201. package/payload/lifecycle-kit/SPEC.md +507 -75
  202. package/payload/lifecycle-kit/bin/enter-stage.sh +72 -33
  203. package/payload/lifecycle-kit/bin/file-gap.sh +2 -2
  204. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
  205. package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
  206. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
  207. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -1
  208. package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
  209. package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
  210. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +22 -22
  211. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
  212. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
  213. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +120 -10
  214. package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
  215. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +11 -11
  216. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
  217. package/payload/lifecycle-kit/lib/stages.sh +5 -0
  218. package/payload/lifecycle-kit/smoke/install.sh +29 -15
  219. package/payload/lifecycle-kit/templates/lead.md +24 -0
  220. package/payload/lifecycle-kit/templates/stages/align.md +20 -2
  221. package/payload/lifecycle-kit/templates/stages/build.md +3 -3
  222. package/payload/lifecycle-kit/templates/stages/close.md +20 -6
  223. package/payload/lifecycle-kit/templates/stages/scope.md +20 -1
  224. package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
  225. package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
  226. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +1 -1
  227. package/payload/queue-kit/README.md +10 -10
  228. package/payload/queue-kit/SPEC.md +301 -84
  229. package/payload/queue-kit/bin/queue-counts.sh +1 -1
  230. package/payload/queue-kit/checks/check-queue-entry-budget.gate +1 -1
  231. package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
  232. package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
  233. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
  234. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
  235. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
  236. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
  237. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
  238. package/payload/queue-kit/gate-tests/queue-counts.test.sh +1 -1
  239. package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
  240. package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
  241. package/payload/queue-kit/lib/queue.sh +0 -49
  242. package/payload/queue-kit/smoke/install.sh +1 -1
  243. package/payload/site-kit/SPEC.md +29 -2
  244. package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
  245. package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
  246. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
  247. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
  248. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
  249. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
  250. package/payload/site-kit/smoke/install.sh +1 -1
  251. package/payload/canon-kit/checks/check-amendment-queue.sh +0 -117
  252. package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -79
  253. package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -240
  254. package/payload/canon-kit/checks/check-prose-tells.sh +0 -208
  255. package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -134
  256. package/payload/context-kit/bin/footprint.sh +0 -144
  257. package/payload/context-kit/checks/check-brevity.sh +0 -124
  258. package/payload/context-kit/checks/check-footprint-fresh.sh +0 -39
  259. package/payload/context-kit/checks/check-memory-off.sh +0 -113
  260. package/payload/context-kit/checks/check-settings-paths.sh +0 -94
  261. package/payload/context-kit/checks/check-settings-pins.sh +0 -111
  262. package/payload/context-kit/gate-tests/check-memory-off/bad/args +0 -1
  263. package/payload/context-kit/gate-tests/check-memory-off/good/args +0 -1
  264. package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -62
  265. package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -140
  266. package/payload/delegation-kit/checks/check-rule-citation.sh +0 -77
  267. package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -246
  268. package/payload/drift-kit/bin/trajectory.sh +0 -242
  269. package/payload/evidence-kit/checks/check-battery-roster.sh +0 -87
  270. package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -104
  271. package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -105
  272. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
  273. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
  274. package/payload/gate-sdk/bin/enforcement-map.sh +0 -273
  275. package/payload/gate-sdk/checks/check-commit-msg.sh +0 -51
  276. package/payload/gate-sdk/checks/check-commit-subject.sh +0 -44
  277. package/payload/gate-sdk/checks/check-core-files.sh +0 -76
  278. package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -38
  279. package/payload/gate-sdk/checks/check-exec-bit.sh +0 -96
  280. package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -107
  281. package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -106
  282. package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -85
  283. package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -93
  284. package/payload/gate-sdk/checks/check-gate-output.sh +0 -103
  285. package/payload/gate-sdk/checks/check-graph.sh +0 -632
  286. package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -46
  287. package/payload/gate-sdk/checks/check-identity.sh +0 -135
  288. package/payload/gate-sdk/checks/check-kit-enum.sh +0 -95
  289. package/payload/gate-sdk/checks/check-readme-roster.sh +0 -108
  290. package/payload/gate-sdk/checks/check-reads-couples.sh +0 -200
  291. package/payload/gate-sdk/checks/check-root-tiering.sh +0 -67
  292. package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -127
  293. package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -85
  294. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
  295. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
  296. package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
  297. package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
  298. package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
  299. package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -64
  300. package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -198
  301. package/payload/queue-kit/bin/queue-index.sh +0 -182
  302. package/payload/queue-kit/bin/roadmap.sh +0 -76
  303. package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -64
  304. package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -111
  305. package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -81
  306. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
  307. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
  308. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
  309. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  310. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  311. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
  312. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
  313. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  314. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  315. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
  316. /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
  317. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
  318. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
  319. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
  320. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
  321. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
@@ -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
@@ -16,6 +16,28 @@ REPO_ROOT="$(git rev-parse --show-toplevel)" || {
16
16
  }
17
17
  cd "$REPO_ROOT" || exit 2
18
18
 
19
+ # spec: gate-sdk/SPEC.md §The non-gate arm — the emitter front-end: a ported arm receives no
20
+ # configuration, so a caller already sourcing this library resolves its bridged knobs and invokes
21
+ # it. The arm name is an operand here and a suffix in the crate, governed separately.
22
+ if [[ "${1:-}" == --emit ]]; then
23
+ shift
24
+ EMIT_ARM_NAME="${1:-}"
25
+ [[ -n "$EMIT_ARM_NAME" ]] || { echo "run-gates: --emit needs an arm name" >&2; exit 2; }
26
+ EMIT_ARM="--emit-$EMIT_ARM_NAME"
27
+ shift
28
+ EMIT_ARGS=("$@")
29
+ EMIT_BIN="$(gate_native_bin)"
30
+ if [[ ! -x "$EMIT_BIN" ]]; then
31
+ printf 'run-gates: --emit dispatches to the native binary, but %s is absent or not ' "$EMIT_BIN" >&2
32
+ printf 'executable — the projection could not be emitted. Build it: bash gate-sdk/bin/build-native.sh\n' >&2
33
+ exit 2
34
+ fi
35
+ EMIT_ENV="$(gate_knob_env "$EMIT_ARM")" || exit 2
36
+ EMIT_ELEMS=()
37
+ [[ -n "$EMIT_ENV" ]] && mapfile -t EMIT_ELEMS <<<"$EMIT_ENV"
38
+ exec env ${EMIT_ELEMS[@]+"${EMIT_ELEMS[@]}"} "$EMIT_BIN" "$EMIT_ARM" ${EMIT_ARGS[@]+"${EMIT_ARGS[@]}"}
39
+ fi
40
+
19
41
  FOR_PATHS=()
20
42
  if [[ "${1:-}" == --for ]]; then
21
43
  shift
@@ -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,6 +1,7 @@
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]
@@ -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
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=kit:SPEC.md,scripts/*.sh,kit:*.sh,native/src/gates/*.rs dir=bi valve=none tier=align-only
3
3
  # install: zero-config
4
+ # port-until: cohort-held-members-port-prerequisites
4
5
  # spec: gate-sdk/SPEC.md §check-gate-assertions — couple each §<gate> enumerated-assertion span+count to the gate code's `# assertion` markers
5
6
  #
6
7
  # usage: check-gate-assertions.sh [spec [scripts-dir]] (defaults: kit SPEC.md set; kit checks/ dirs)
@@ -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
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=scripts/gates.list,kit:checks/*,gate-sdk/SPEC.md,native/*,.github/workflows/publish.yml dir=one valve=none tier=precommit
3
3
  # install: on-surface
4
+ # no-port: gate-sdk/SPEC.md §The port-candidate criteria — exception class (a), permanent: the gate audits the dispatch relation, so a compiled form could check its own roster through the very binary in question
4
5
  # spec: gate-sdk/SPEC.md §check-gate-substrate-parity — one declaration per member, descriptor/subcommand parity both ways, a recorded disposition for every substrate-sensitive member, no implementation source inside the vendoring set, and one owner for the target roster the artifact path derives from
5
6
  #
6
7
  # usage: check-gate-substrate-parity.sh [gates-dir] [conservation-doc]
@@ -44,12 +45,25 @@ fail_closed "$st" check-gate-substrate-parity awk
44
45
 
45
46
  findings=()
46
47
 
47
- # spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion F's publishing-tree test: the
48
- # crate's *tracked source* is here, step 1 of §check-gate-binary-fresh's source stamp reused rather
49
- # than spelled twice — source, so build output under the crate root cannot read as a publisher
50
- crate_source_here() {
51
- [[ -d "$1" ]] || return 1
52
- [[ -n "$(git -C "$1" ls-files 2>/dev/null)" ]]
48
+ CRATE="$(gate_native_crate)"
49
+ # spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the publishing test is `gate_authoring_tree`
50
+ # (§lib/gate.sh), computed once and read twice: by assertion B's consumer-declared scope clause and
51
+ # assertion F's missing-roster arm. One holder, shared with §check-gate-exemption-tasks' scope rule
52
+ publishing_tree=0
53
+ gate_authoring_tree && publishing_tree=1
54
+
55
+ # spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion B's owner column: a kit
56
+ # directory basename, or CONSUMER_OWNER for a member the consumer's own gates directory declares
57
+ CONSUMER_OWNER='-'
58
+ # spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion B's two-clause scope rule: a
59
+ # kit-owned subcommand is in scope iff this tree vendored that kit, and a consumer-declared one
60
+ # iff this is the tree that declared it, which is the tree carrying the crate's tracked source
61
+ subcommand_in_scope() {
62
+ if [[ "$1" == "$CONSUMER_OWNER" ]]; then
63
+ [[ "$publishing_tree" == 1 ]]
64
+ return
65
+ fi
66
+ printf '%s\n' "${KIT_NAMES[@]+"${KIT_NAMES[@]}"}" | grep -qx -- "$1"
53
67
  }
54
68
 
55
69
  # assertion A: each member resolves to exactly one declaration — a dir carrying
@@ -59,6 +73,11 @@ declared=0
59
73
  # a registered member resolving to one is a dispatch, and only a dispatch makes the binary
60
74
  # load-bearing. Derived here because assertion A already resolves every member.
61
75
  dispatching=0
76
+ # spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion G's two counters, derived in
77
+ # assertion A's own loop because the declaration set and its spelling are exactly its output
78
+ declpaths_shell=0
79
+ noport_declared=0
80
+ portuntil_declared=0
62
81
  for m in "${MEMBERS[@]}"; do
63
82
  for d in "${RESOLVE_DIRS[@]}"; do
64
83
  if [[ -f "$d/$m.sh" && -f "$d/$m.gate" ]]; then
@@ -71,6 +90,44 @@ for m in "${MEMBERS[@]}"; do
71
90
  fi
72
91
  [[ "$src" == *.gate ]] && dispatching=$((dispatching + 1))
73
92
  declared=$((declared + 1))
93
+
94
+ # assertion G: the port declaration lives on the shell spelling and carries a cause —
95
+ # a descriptor's existence is already the dispatch declaration, so a `# no-port:` line
96
+ # there asserts the negation of the file it sits in
97
+ # spec: gate-sdk/SPEC.md §check-gate-substrate-parity
98
+ noport="$(grep -cE '^#[[:space:]]*no-port:' "$src")" || noport=0
99
+ # spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the held field's clauses are the
100
+ # permanent field's over a second spelling, plus the one neither owns alone: a declaration
101
+ # asserting both makes the two exclusion counts in port-blockers' trailer overlap
102
+ portuntil="$(grep -cE '^#[[:space:]]*port-until:' "$src")" || portuntil=0
103
+ if [[ "$src" == *.gate ]]; then
104
+ [[ "$noport" -gt 0 ]] \
105
+ && findings+=("port declaration on a descriptor: $src carries a '# no-port:' line — a descriptor's existence is the dispatch declaration, so the field's domain is the <name>.sh spelling alone")
106
+ [[ "$portuntil" -gt 0 ]] \
107
+ && findings+=("port declaration on a descriptor: $src carries a '# port-until:' line — a descriptor's existence is the dispatch declaration, so a ported member has no port question left to declare")
108
+ else
109
+ declpaths_shell=$((declpaths_shell + 1))
110
+ if [[ "$noport" -gt 1 ]]; then
111
+ findings+=("more than one port declaration: $src carries $noport '# no-port:' lines — a declaration carries at most one")
112
+ elif [[ "$noport" -eq 1 ]]; then
113
+ noport_declared=$((noport_declared + 1))
114
+ cause="$(grep -E '^#[[:space:]]*no-port:' "$src" | head -n 1)"
115
+ cause="${cause#*no-port:}"
116
+ [[ -n "${cause//[[:space:]]/}" ]] \
117
+ || findings+=("port declaration with no cause: $src carries a bare '# no-port:' line — the cause names the ruling that makes the member permanent, and is the field's whole payload")
118
+ fi
119
+ if [[ "$portuntil" -gt 1 ]]; then
120
+ findings+=("more than one hold declaration: $src carries $portuntil '# port-until:' lines — a declaration carries at most one")
121
+ elif [[ "$portuntil" -eq 1 ]]; then
122
+ portuntil_declared=$((portuntil_declared + 1))
123
+ slug="$(grep -E '^#[[:space:]]*port-until:' "$src" | head -n 1)"
124
+ slug="${slug#*port-until:}"
125
+ [[ -n "${slug//[[:space:]]/}" ]] \
126
+ || findings+=("hold declaration with no slug: $src carries a bare '# port-until:' line — the slug names the live queue entry that owns the blocker, and is the field's whole payload")
127
+ fi
128
+ [[ "$noport" -gt 0 && "$portuntil" -gt 0 ]] \
129
+ && findings+=("contradictory port declarations: $src carries both '# no-port:' and '# port-until:' — permanent and temporarily-held are opposite verdicts about the same member")
130
+ fi
74
131
  done
75
132
 
76
133
  # assertion B: the .gate descriptors on disk and the binary's reported subcommand
@@ -121,12 +178,12 @@ if [[ -x "$BIN" ]]; then
121
178
  printf '%s\n' "${subcommands[@]}" | grep -qx -- "$g" \
122
179
  || findings+=("descriptor names no subcommand: $g.gate declares a gate the binary does not carry")
123
180
  done
124
- # spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the roster half speaks only for the
125
- # kits this tree vendored: a subcommand whose owning kit is absent is neither dead code nor
126
- # a half-finished port, it is out of scope, and it is counted rather than dropped silently
181
+ # spec: gate-sdk/SPEC.md §check-gate-substrate-parity — the roster half speaks only for what
182
+ # this tree declared: a subcommand from an unvendored kit, or consumer-declared elsewhere, is
183
+ # out of scope rather than stranded, and it is counted rather than dropped silently
127
184
  for i in "${!subcommands[@]}"; do
128
185
  s="${subcommands[$i]}"
129
- if [[ "$owner_state" == scoped ]] && ! printf '%s\n' "${KIT_NAMES[@]+"${KIT_NAMES[@]}"}" | grep -qx -- "${owners[$i]}"; then
186
+ if [[ "$owner_state" == scoped ]] && ! subcommand_in_scope "${owners[$i]}"; then
130
187
  out_of_scope=$((out_of_scope + 1))
131
188
  continue
132
189
  fi
@@ -185,7 +242,6 @@ fi
185
242
  # assertion E: opacity is held by structure — a ported gate's implementation source
186
243
  # may not reach the vendoring set, whose members are exactly the kit roots
187
244
  # spec: gate-sdk/SPEC.md §Consumer payload
188
- CRATE="$(gate_native_crate)"
189
245
  declare -A DESCRIPTOR_SET=()
190
246
  for g in "${DESCRIPTORS[@]+"${DESCRIPTORS[@]}"}"; do DESCRIPTOR_SET["$g"]=1; done
191
247
  kit_scanned=0
@@ -229,7 +285,7 @@ if [[ -f "$ROSTER" ]]; then
229
285
  [[ "$t" =~ ^[A-Za-z0-9_]+(-[A-Za-z0-9_.]+){2,3}$ ]] \
230
286
  || findings+=("malformed target triple: '$t' in $ROSTER is not <arch>-<vendor>-<os>[-<env>]")
231
287
  done
232
- elif [[ "$dispatching" -gt 0 ]] && crate_source_here "$CRATE"; then
288
+ elif [[ "$dispatching" -gt 0 && "$publishing_tree" == 1 ]]; then
233
289
  # spec: gate-sdk/SPEC.md §check-gate-substrate-parity — assertion F rides the corrected
234
290
  # predicate *and* the publishing-tree test: declaring platform support is the act of the tree
235
291
  # that builds and publishes the artifact, and a consumer receives kit roots but never the crate
@@ -321,13 +377,21 @@ if [[ ${#findings[@]} -gt 0 ]]; then
321
377
  echo " workflow's matrix from it rather than spelling a platform there, and"
322
378
  echo " emit each artifact's digest in exactly one step, where its bytes are"
323
379
  echo " produced. A runner mapping may name a platform; a matrix may not."
380
+ echo " help: a '# no-port:' line declares a member the port will never take — it goes on"
381
+ echo " the <name>.sh declaration only, at most once, and its cause names the SPEC"
382
+ echo " section ruling the member permanent. A ported member has no port question"
383
+ echo " left to declare, so drop the line rather than copying it into a descriptor."
384
+ echo " help: a '# port-until: <slug>' line declares a member the port still owes but cannot"
385
+ echo " take yet, and names the live queue entry owning the blocker. Same domain and"
386
+ echo " cardinality as '# no-port:', and never both on one declaration — permanent and"
387
+ echo " temporarily-held are opposite verdicts about the same member."
324
388
  exit 1
325
389
  fi
326
390
 
327
391
  if [[ "$roster_read" == 1 ]]; then
328
- roster="${#DESCRIPTORS[@]} descriptor(s) in parity with the ${#subcommands[@]}-subcommand roster ($in_scope in scope, $out_of_scope owned by a kit this tree did not vendor, owner column $owner_state), $refonly reference-only"
392
+ roster="${#DESCRIPTORS[@]} descriptor(s) in parity with the ${#subcommands[@]}-subcommand roster ($in_scope in scope, $out_of_scope out of scope — an unvendored kit, or a consumer declaration from another tree — owner column $owner_state), $refonly reference-only"
329
393
  else
330
394
  roster="${#DESCRIPTORS[@]} descriptor(s), no binary at $BIN so no subcommand roster to compare"
331
395
  fi
332
- echo "GATE-SUBSTRATE-PARITY: clean ($declared member(s) with one declaration each, $dispatching of them dispatching to the binary; $roster; $sensitive substrate-sensitive member(s) all dispositioned; $impl_scanned implementation source(s) free of manifest-class annotation; $kit_scanned kit root(s) scanned for an implementation sibling, crate root $CRATE outside every kit root; target roster $roster_state at $ROSTER with $roster_targets well-formed target(s); publish workflow $wf_state at $WORKFLOW, $wf_matrix matrix declaration(s) roster-derived across $wf_jobs job(s) with one producer per digest)"
396
+ echo "GATE-SUBSTRATE-PARITY: clean ($declared member(s) with one declaration each, $dispatching of them dispatching to the binary; $noport_declared of the $declpaths_shell shell declaration(s) declare '# no-port:' with a cause and $portuntil_declared declare '# port-until:' with a slug, neither on any descriptor nor both on one declaration; $roster; $sensitive substrate-sensitive member(s) all dispositioned; $impl_scanned implementation source(s) free of manifest-class annotation; $kit_scanned kit root(s) scanned for an implementation sibling, crate root $CRATE outside every kit root; target roster $roster_state at $ROSTER with $roster_targets well-formed target(s); publish workflow $wf_state at $WORKFLOW, $wf_matrix matrix declaration(s) roster-derived across $wf_jobs job(s) with one producer per digest)"
333
397
  exit 0
@@ -0,0 +1,3 @@
1
+ # graph: couples=scripts/gates.list,scripts/*.sh,kit:*.sh,scripts/git-hooks/pre-commit,scripts/CHECK-GRAPH.html,docs/check-graph.html,SPEC-*.md,*/SPEC-*.md,native/src/gates/graph.rs,native/src/emit/graph.rs dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # spec: gate-sdk/SPEC.md §check-graph — manifest well-formedness, trigger parity, cycle valves, artifact drift, and amendment-body manifest validation (assertion G); the emitter is native/src/emit/graph.rs, reached in process rather than spawned
@@ -0,0 +1,3 @@
1
+ # graph: couples=scripts/git-hooks/* dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: gate-sdk/SPEC.md §check-hook-exec-bit — every tracked file in the hooks dir carries index mode 100755, or a fresh clone silently skips a non-executable hook
@@ -0,0 +1,3 @@
1
+ # graph: couples=scripts/identity.conf,native/src/gates/identity.rs,native/src/fresh.rs dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: gate-sdk/SPEC.md §check-identity — every expectation in the identity manifest matches this clone's local git identity
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=kit:checks/check-*.sh,kit:checks/check-*.gate,kit:smoke/install.sh,installer/lib/common/recipe.sh dir=one valve=none tier=precommit
3
3
  # install: zero-config
4
+ # no-port: gate-sdk/SPEC.md §The port-candidate criteria — exception class (a), permanent: the gate audits the dispatch relation, so a compiled form could pass itself with a broken binary
4
5
  # spec: gate-sdk/SPEC.md §check-install-disposition — every shipped gate declares one install disposition, every zero-config gate is registrable in its kit's smoke, and the installer keeps no second copy of the roster
5
6
  #
6
7
  # usage: check-install-disposition.sh [root]
@@ -0,0 +1,3 @@
1
+ # graph: couples=scripts/gates.list,kit:checks/*.sh,native/src/gates/kit_enum.rs,native/src/fresh.rs dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: gate-sdk/SPEC.md §check-kit-enum — a literal hand list of >=2 kit roots sharing a glob must name every kit root with matching tracked files; the fix is the kit:<glob> token, not a longer list
@@ -0,0 +1,3 @@
1
+ # graph: couples=kit:README.md,kit:checks/* dir=bi valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: gate-sdk/SPEC.md §check-readme-roster — every kit README's gate-roster marker block holds name-set parity with the kit's shipped checks/ basenames, both directions
@@ -0,0 +1,3 @@
1
+ # graph: couples=kit:checks/*.sh,scripts/*.sh,scripts/gates.list,native/src/*.rs,native/src/gates/*.rs dir=one valve=none tier=precommit trigger=*
2
+ # install: on-surface
3
+ # spec: gate-sdk/SPEC.md §check-reads-couples — every statically resolvable recursive walk in a registered gate has its tracked read set covered by the gate's expanded couples; the undecidable remainder is skipped-and-counted
@@ -0,0 +1,3 @@
1
+ # graph: couples=scripts/root-allowlist.list dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: gate-sdk/SPEC.md §check-root-tiering — the repo root holds only allowlisted orientation entries; workflow machinery stays under the configured dirs
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=scripts/*.sh,kit:*.sh dir=one valve=none tier=precommit
3
3
  # install: zero-config
4
+ # port-until: cohort-held-members-port-prerequisites
4
5
  # spec: gate-sdk/SPEC.md §check-shellcheck — ShellCheck lint of the gate family at -S warning (the self-lint contract)
5
6
  #
6
7
  # usage: check-shellcheck.sh [dir...]
@@ -0,0 +1,3 @@
1
+ # graph: couples=*/templates/*.sh,scripts/*.sh dir=bi valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: gate-sdk/SPEC.md §check-template-copy-parity — a kit template and its vendored consumer copy agree on their declared contract surface, with copy-side additions declared
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=scripts/msg-patterns.list dir=one valve=none tier=precommit trigger=*
3
3
  # install: zero-config
4
+ # port-until: cohort-held-members-port-prerequisites
4
5
  # spec: gate-sdk/SPEC.md §check-tree-terms — no tracked file matches the banned-pattern set (the tracked-files half of the leak guard; the pattern files and their templates are self-exempt)
5
6
  #
6
7
  # usage: check-tree-terms.sh [scan-root] [pattern-file...]
@@ -0,0 +1,3 @@
1
+ # graph: couples=.workflow/*,.gitignore dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: gate-sdk/SPEC.md §The workflow directory — every workflow-dir member is tracked or ignored, and every tracked member opens with a '# contract: ' header carrying a ruled payload