checkwright 0.31.0 → 0.32.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 (495) hide show
  1. package/README.md +7 -6
  2. package/bin/checkwright.ps1 +3 -3
  3. package/package.json +10 -3
  4. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  5. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
  6. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  7. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  8. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  9. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  10. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
  11. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  12. package/payload/artifact/targets.list +5 -5
  13. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  14. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
  15. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  16. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  17. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  18. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  19. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
  20. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  21. package/payload/canon-kit/README.md +8 -4
  22. package/payload/canon-kit/checks/check-amendment-queue.gate +1 -1
  23. package/payload/canon-kit/checks/check-comment-tier.gate +2 -2
  24. package/payload/canon-kit/checks/check-delta-agreement.gate +4 -0
  25. package/payload/canon-kit/checks/check-deprecation-task.gate +1 -1
  26. package/payload/canon-kit/checks/check-docs-page-length.gate +4 -0
  27. package/payload/canon-kit/checks/check-docs-page-repeat.gate +2 -2
  28. package/payload/canon-kit/checks/check-fence-command-head.gate +1 -1
  29. package/payload/canon-kit/checks/check-fence-paste-unit.gate +4 -0
  30. package/payload/canon-kit/checks/check-knob-default-coupling.gate +1 -1
  31. package/payload/canon-kit/checks/check-manifest-count.gate +3 -3
  32. package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
  33. package/payload/canon-kit/checks/check-pendency-contradiction.gate +3 -0
  34. package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
  35. package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
  36. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
  37. package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
  38. package/payload/canon-kit/checks/check-spec-pointer.gate +1 -1
  39. package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
  40. package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +6 -0
  41. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-widget.md +7 -0
  42. package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +7 -0
  43. package/payload/canon-kit/gate-tests/check-citation-link/bad/expect.txt +1 -0
  44. package/payload/canon-kit/gate-tests/check-citation-link/bad/site/unclosed.md +4 -0
  45. package/payload/canon-kit/gate-tests/check-citation-link/good/site/page.md +10 -0
  46. package/payload/canon-kit/gate-tests/check-comment-tier/bad/scripts/canon-config.knobs +4 -0
  47. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +2 -0
  48. package/payload/canon-kit/gate-tests/check-comment-tier/good/scripts/canon-config.knobs +4 -0
  49. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +9 -1
  50. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/expect.txt +3 -0
  51. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/scripts/canon-config.knobs +14 -0
  52. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/base/notes/spec.md +9 -0
  53. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/changes/one/deltas/notes/spec.md +7 -0
  54. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/changes/two/deltas/cli/spec.md +3 -0
  55. package/payload/canon-kit/gate-tests/check-delta-agreement/good/expect.txt +1 -0
  56. package/payload/canon-kit/gate-tests/check-delta-agreement/good/scripts/canon-config.knobs +14 -0
  57. package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/base/notes/spec.md +9 -0
  58. package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/changes/one/deltas/notes/spec.md +19 -0
  59. package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/changes/two/deltas/cli/spec.md +3 -0
  60. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.knobs +4 -0
  61. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.knobs +4 -0
  62. package/payload/canon-kit/gate-tests/check-docs-cmd.test.sh +20 -4
  63. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/expect.txt +5 -0
  64. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/scripts/canon-config.knobs +3 -0
  65. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/item.md +5 -0
  66. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/nested.md +7 -0
  67. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/page.md +13 -0
  68. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/short.md +3 -0
  69. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/unclosed.md +4 -0
  70. package/payload/canon-kit/gate-tests/check-docs-page-length/good/expect.txt +1 -0
  71. package/payload/canon-kit/gate-tests/check-docs-page-length/good/scripts/canon-config.knobs +4 -0
  72. package/payload/canon-kit/gate-tests/check-docs-page-length/good/site/generated.md +3 -0
  73. package/payload/canon-kit/gate-tests/check-docs-page-length/good/site/page.md +15 -0
  74. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/expect.txt +3 -0
  75. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/scripts/canon-config.knobs +2 -1
  76. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/_chrome/footer.html +4 -0
  77. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/page.md +4 -0
  78. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/unclosed.md +6 -0
  79. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/expect.txt +2 -1
  80. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/scripts/canon-config.knobs +2 -1
  81. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/_chrome/layout.html +8 -0
  82. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/page.md +13 -0
  83. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +1 -0
  84. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +4 -0
  85. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +10 -0
  86. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +2 -0
  87. package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +6 -0
  88. package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/expect.txt +3 -0
  89. package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/scripts/canon-config.knobs +2 -0
  90. package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/site/page.md +17 -0
  91. package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/expect.txt +1 -0
  92. package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/scripts/canon-config.knobs +2 -0
  93. package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/site/page.md +39 -0
  94. package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +8 -0
  95. package/payload/canon-kit/gate-tests/check-install-claim/bad/README.md +4 -0
  96. package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +14 -0
  97. package/payload/canon-kit/gate-tests/check-manifest-count/bad/expect.txt +2 -0
  98. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +27 -0
  99. package/payload/canon-kit/gate-tests/check-manifest-count/good/expect.txt +1 -1
  100. package/payload/canon-kit/gate-tests/check-manifest-count/good/posts/note.md +7 -0
  101. package/payload/canon-kit/gate-tests/check-manifest-count/good/scripts/canon-config.knobs +4 -0
  102. package/payload/canon-kit/gate-tests/check-manifest-temporal/good/SPEC.md +7 -0
  103. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +17 -1
  104. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/dotted.md +10 -0
  105. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +1 -0
  106. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/dotted.md +6 -0
  107. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -1
  108. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +6 -0
  109. package/payload/canon-kit/gate-tests/check-pendency-contradiction/bad/SPEC.md +14 -0
  110. package/payload/canon-kit/gate-tests/check-pendency-contradiction/bad/expect.txt +1 -0
  111. package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/README.md +3 -0
  112. package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/SPEC.md +16 -0
  113. package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/expect.txt +1 -0
  114. package/payload/canon-kit/gate-tests/check-prose-tells/bad/absence-unclosed.md +8 -0
  115. package/payload/canon-kit/gate-tests/check-prose-tells/bad/absence.md +13 -0
  116. package/payload/canon-kit/gate-tests/check-prose-tells/bad/expect.txt +4 -0
  117. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -1
  118. package/payload/canon-kit/gate-tests/check-prose-tells/good/absence.md +17 -0
  119. package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
  120. package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/canon-config.knobs +4 -1
  121. package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/SPEC.md +9 -0
  122. package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/expect.txt +2 -1
  123. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC.md +14 -0
  124. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +1 -0
  125. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/args +1 -0
  126. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/expect.txt +2 -1
  127. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/long.md +7 -0
  128. package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/doc.md +13 -0
  129. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +7 -1
  130. package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +8 -0
  131. package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-repeat.md +11 -0
  132. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
  133. package/payload/canon-kit/gate-tests/check-task-label-resolution/good/work/tasks.md +6 -0
  134. package/payload/canon-kit/gate-tests/check-task-path-claim/good/work/tasks.md +6 -0
  135. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/scripts/canon-config.knobs +4 -0
  136. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/scripts/canon-config.knobs +4 -0
  137. package/payload/canon-kit/gate-tests/check-tracking-claim/bad/README.md +4 -0
  138. package/payload/context-kit/README.md +5 -7
  139. package/payload/context-kit/checks/check-brevity.gate +1 -1
  140. package/payload/context-kit/gate-tests/check-brevity.test.sh +1 -0
  141. package/payload/context-kit/gate-tests/check-memory-off.test.sh +25 -1
  142. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
  143. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +16 -0
  144. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/checkwright-gates +2 -0
  145. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -2
  146. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
  147. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/checkwright-gates +2 -0
  148. package/payload/context-kit/gate-tests/session-context-spawn.test.sh +52 -0
  149. package/payload/context-kit/templates/nudge-delegation.txt +4 -0
  150. package/payload/context-kit/templates/settings-sessionstart.json +2 -2
  151. package/payload/delegation-kit/README.md +14 -8
  152. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +1 -0
  153. package/payload/delegation-kit/checks/check-gate-tamper.gate +1 -1
  154. package/payload/delegation-kit/close-surfaces.txt +3 -0
  155. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/stale-effort.md +10 -0
  156. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/stale.md +9 -0
  157. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/unbound.md +8 -0
  158. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/expect.txt +3 -0
  159. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/scripts/delegation-config.knobs +3 -0
  160. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-cheap.md +3 -1
  161. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-paired.md +10 -0
  162. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/expect.txt +1 -1
  163. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/scripts/delegation-config.knobs +3 -0
  164. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/exception-arrays.sh +44 -0
  165. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +12 -0
  166. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/staged-files +12 -0
  167. package/payload/delegation-kit/gate-tests/check-gate-tamper/good/exception-arrays.sh +44 -0
  168. package/payload/delegation-kit/gate-tests/check-gate-tamper/good/staged-files +1 -0
  169. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +22 -1
  170. package/payload/delegation-kit/templates/agent-execution.md +7 -6
  171. package/payload/delegation-kit/templates/delegation-config.knobs +32 -0
  172. package/payload/delegation-kit/usage-tests/cases.tsv +35 -25
  173. package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +12 -3
  174. package/payload/doctrine-kit/DOCTRINE.md +109 -25
  175. package/payload/doctrine-kit/README.md +2 -2
  176. package/payload/drift-kit/README.md +15 -6
  177. package/payload/drift-kit/close-surfaces.txt +2 -0
  178. package/payload/drift-kit/templates/economics.md +7 -3
  179. package/payload/drift-kit/templates/kpis.list +1 -0
  180. package/payload/evidence-kit/README.md +3 -3
  181. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/expect.txt +1 -0
  182. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/runner.md +2 -1
  183. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +3 -1
  184. package/payload/evidence-kit/gate-tests/check-battery-roster/good/runner.md +1 -0
  185. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +3 -1
  186. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +18 -2
  187. package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +2 -3
  188. package/payload/evidence-kit/gate-tests/run-member-door.test.sh +50 -0
  189. package/payload/gate-sdk/README.md +9 -13
  190. package/payload/gate-sdk/bin/build-native.sh +11 -14
  191. package/payload/gate-sdk/bin/run-gates.ps1 +149 -24
  192. package/payload/gate-sdk/bin/run-gates.sh +57 -14
  193. package/payload/gate-sdk/checks/check-commit-msg.gate +1 -1
  194. package/payload/gate-sdk/checks/check-gate-substrate-parity.gate +1 -1
  195. package/payload/gate-sdk/checks/check-graph.gate +2 -2
  196. package/payload/gate-sdk/checks/check-install-disposition.gate +1 -1
  197. package/payload/gate-sdk/checks/check-path-dialect.gate +1 -1
  198. package/payload/gate-sdk/checks/check-psscriptanalyzer.gate +4 -0
  199. package/payload/gate-sdk/checks/check-shellcheck.gate +1 -1
  200. package/payload/gate-sdk/checks/check-template-copy-parity.gate +1 -1
  201. package/payload/gate-sdk/checks/check-tree-terms.gate +1 -1
  202. package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/args +2 -1
  203. package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/expect.txt +2 -0
  204. package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/tree/workflows/shapes.yml +29 -0
  205. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/args +2 -1
  206. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/expect.txt +2 -0
  207. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/shapes.yml +22 -0
  208. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/demo-kit/index.md +3 -0
  209. package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +17 -1
  210. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +12 -1
  211. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-array-axes.sh +44 -0
  212. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +2 -0
  213. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +2 -1
  214. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-array-axes.sh +46 -0
  215. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +2 -0
  216. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/expect.txt +1 -0
  217. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/check-psopt.gate +3 -0
  218. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/check-psopt.ps1 +1 -0
  219. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/gates.list +1 -0
  220. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/expect.txt +1 -0
  221. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/scripts/gates.list +3 -1
  222. package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
  223. package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +4 -2
  224. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +5 -0
  225. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/checks/check-kitexec.gate +2 -0
  226. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/checks/check-kitexec.ps1 +1 -0
  227. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-climb.gate +2 -0
  228. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-direxec.gate +2 -0
  229. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twoexec.gate +3 -0
  230. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-txtexec.gate +2 -0
  231. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-txtexec.txt +1 -0
  232. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
  233. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-psgood.gate +3 -0
  234. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-psgood.ps1 +1 -0
  235. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-rsgood.gate +3 -0
  236. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +2 -0
  237. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +42 -5
  238. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +1 -0
  239. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +9 -1
  240. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +2 -2
  241. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +15 -29
  242. package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
  243. package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +3 -1
  244. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/expect.txt +1 -0
  245. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/portability-patterns.notes.list +1 -0
  246. package/payload/gate-sdk/gate-tests/check-portability-floor/good/args +1 -1
  247. package/payload/gate-sdk/gate-tests/check-portability-floor/good/scripts/gate-sdk-config.knobs +1 -0
  248. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/demo-kit/templates/portability-patterns.list +5 -0
  249. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/rosters/constructs.list +6 -0
  250. package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +15 -2
  251. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/expect.txt +2 -0
  252. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/noisy.ps1 +1 -0
  253. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/pwsh +8 -0
  254. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/scripts/gate-sdk-config.knobs +1 -0
  255. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/clean.ps1 +1 -0
  256. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/expect.txt +1 -0
  257. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/pwsh +7 -0
  258. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/scripts/gate-sdk-config.knobs +2 -0
  259. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/{warn.sh → alpha-kit/gate-tests/kit-warn.sh} +1 -1
  260. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/expect.txt +2 -0
  261. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/scripts/gate-sdk-config.knobs +2 -0
  262. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/scripts/gate-tests/tests-warn.sh +5 -0
  263. package/payload/gate-sdk/gate-tests/check-shellcheck/good/{ok.sh → alpha-kit/gate-tests/kit-ok.sh} +1 -1
  264. package/payload/gate-sdk/gate-tests/check-shellcheck/good/expect.txt +1 -1
  265. package/payload/gate-sdk/gate-tests/check-shellcheck/good/scripts/gate-sdk-config.knobs +2 -0
  266. package/payload/gate-sdk/gate-tests/check-shellcheck/good/scripts/gate-tests/tests-ok.sh +4 -0
  267. package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/args +2 -0
  268. package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/scripts/gate-sdk-config.knobs +1 -0
  269. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +4 -1
  270. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/gate-sdk-config.knobs +1 -0
  271. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/stray/templates/session-note.sh +4 -0
  272. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +6 -2
  273. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/drift-kit/templates/kpis.list +1 -0
  274. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/drift-kit/templates/kpis.list +1 -0
  275. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
  276. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/msg-patterns.old.list +1 -0
  277. package/payload/gate-sdk/gate-tests/check-tree-terms/good/args +2 -2
  278. package/payload/gate-sdk/gate-tests/check-tree-terms/good/scripts/gate-sdk-config.knobs +1 -0
  279. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/demo-kit/templates/msg-patterns.list +2 -0
  280. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/rosters/extra.list +2 -0
  281. package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +1 -0
  282. package/payload/gate-sdk/gate-tests/emit-arm-shape.test.sh +1 -1
  283. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +10 -2
  284. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +29 -3
  285. package/payload/gate-sdk/gate-tests/lib-test-hermetic.test.sh +24 -0
  286. package/payload/gate-sdk/gate-tests/native-git-hooks.test.sh +261 -0
  287. package/payload/gate-sdk/gate-tests/native-rustflags.test.sh +20 -0
  288. package/payload/gate-sdk/gate-tests/run-arm-contract.test.sh +11 -4
  289. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +2 -1
  290. package/payload/gate-sdk/gate-tests/run-for-path.test.sh +11 -1
  291. package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +64 -4
  292. package/payload/gate-sdk/lib/gate.sh +46 -6
  293. package/payload/gate-sdk/lib/test-hermetic.sh +16 -8
  294. package/payload/gate-sdk/templates/adopt.md +1 -1
  295. package/payload/gate-sdk/templates/msg-patterns.list +1 -1
  296. package/payload/gate-sdk/templates/portability-patterns.list +1 -1
  297. package/payload/guard-kit/README.md +12 -7
  298. package/payload/guard-kit/close-surfaces.txt +3 -0
  299. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/README.md +1 -1
  300. package/payload/guard-kit/gate-tests/check-door-binding/bad/expect.txt +1 -0
  301. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/guard-config.knobs +2 -1
  302. package/payload/guard-kit/gate-tests/check-door-binding/bad/src/remedy.rs +3 -0
  303. package/payload/guard-kit/gate-tests/check-door-binding/good/expect.txt +1 -0
  304. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/guard-config.knobs +2 -1
  305. package/payload/guard-kit/gate-tests/check-door-binding/good/site/register.md +8 -0
  306. package/payload/guard-kit/gate-tests/check-door-binding/good/src/remedy.rs +13 -0
  307. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +0 -1
  308. package/payload/guard-kit/gate-tests/consumer-rules.test.sh +105 -3
  309. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +64 -2
  310. package/payload/guard-kit/gate-tests/guard-config-knobs.test.sh +18 -5
  311. package/payload/guard-kit/gate-tests/guard-verdict.test.sh +74 -0
  312. package/payload/guard-kit/gate-tests/worktree-confinement.test.sh +49 -5
  313. package/payload/guard-kit/guard-tests/background-cases.tsv +103 -1
  314. package/payload/guard-kit/guard-tests/cases.tsv +834 -64
  315. package/payload/guard-kit/guard-tests/powershell-cases.tsv +51 -2
  316. package/payload/guard-kit/guard-tests/variant-limits.tsv +14 -0
  317. package/payload/guard-kit/templates/close-triage.md +2 -2
  318. package/payload/guard-kit/templates/guard-config.knobs +9 -0
  319. package/payload/guard-kit/templates/settings-allow.json +1 -1
  320. package/payload/guard-kit/templates/settings-hooks.json +4 -4
  321. package/payload/lifecycle-kit/README.md +11 -6
  322. package/payload/lifecycle-kit/checks/check-disposed-findings.gate +3 -0
  323. package/payload/lifecycle-kit/checks/check-skill-binding.gate +1 -1
  324. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +1 -1
  325. package/payload/lifecycle-kit/close-surfaces.txt +2 -0
  326. package/payload/lifecycle-kit/gate-tests/boundary-set-record.test.sh +82 -0
  327. package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +11 -2
  328. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +11 -1
  329. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/args +2 -0
  330. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/disposed-findings.txt +5 -0
  331. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/expect.txt +5 -0
  332. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/args +2 -0
  333. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/disposed-findings.txt +3 -0
  334. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/expect.txt +1 -0
  335. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +1 -0
  336. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +1 -1
  337. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +27 -2
  338. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +6 -0
  339. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +34 -2
  340. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +3 -0
  341. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -0
  342. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/scripts/lifecycle-config.knobs +3 -0
  343. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +3 -0
  344. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/expect.txt +1 -0
  345. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/scripts/lifecycle-config.knobs +2 -0
  346. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage.test.sh +22 -2
  347. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +9 -2
  348. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +27 -1
  349. package/payload/lifecycle-kit/gate-tests/journal-arm.test.sh +251 -0
  350. package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +46 -5
  351. package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +16 -2
  352. package/payload/lifecycle-kit/templates/consult.md +9 -5
  353. package/payload/lifecycle-kit/templates/frames/project-critique.md +18 -0
  354. package/payload/lifecycle-kit/templates/frames/stage-contract-sweep.md +18 -0
  355. package/payload/lifecycle-kit/templates/frames/stage-contract.md +15 -0
  356. package/payload/lifecycle-kit/templates/host-protocol.md +10 -0
  357. package/payload/lifecycle-kit/templates/lead.md +30 -25
  358. package/payload/lifecycle-kit/templates/stages/align.md +4 -0
  359. package/payload/lifecycle-kit/templates/stages/build.md +5 -3
  360. package/payload/lifecycle-kit/templates/stages/close.md +8 -6
  361. package/payload/lifecycle-kit/templates/stages/scope.md +6 -2
  362. package/payload/lifecycle-kit/templates/stages/spec.md +4 -0
  363. package/payload/lifecycle-kit/templates/stages/validate.md +4 -2
  364. package/payload/lifecycle-kit/templates/upgrade.md +1 -1
  365. package/payload/queue-kit/README.md +3 -2
  366. package/payload/queue-kit/close-surfaces.txt +3 -0
  367. package/payload/queue-kit/gate-tests/check-queue-sections/bad/expect.txt +1 -0
  368. package/payload/queue-kit/gate-tests/check-queue-sections/bad/scripts/queue-config.knobs +2 -0
  369. package/payload/queue-kit/gate-tests/check-queue-sections/good/TASK-QUEUE.md +1 -1
  370. package/payload/queue-kit/gate-tests/check-queue-sections/good/scripts/queue-config.knobs +2 -0
  371. package/payload/queue-kit/gate-tests/check-queue-sections.test.sh +65 -0
  372. package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +10 -1
  373. package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +4 -0
  374. package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +4 -0
  375. package/payload/queue-kit/gate-tests/check-task-conservation.test.sh +38 -0
  376. package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +3 -0
  377. package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +3 -0
  378. package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +8 -0
  379. package/payload/queue-kit/gate-tests/roadmap-lag.test.sh +137 -0
  380. package/payload/site-kit/README.md +3 -3
  381. package/payload/site-kit/gate-tests/check-docs-collapsible/bad/docs/unclosed.md +8 -0
  382. package/payload/site-kit/gate-tests/check-docs-collapsible/bad/expect.txt +1 -0
  383. package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/regions.md +7 -0
  384. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/dotted.md +9 -0
  385. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +1 -0
  386. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/dotted.md +7 -0
  387. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/expect.txt +1 -1
  388. package/payload/site-kit/gate-tests/site-health-probe.test.sh +219 -0
  389. package/payload/site-kit/templates/site-health.yml +181 -132
  390. package/profiles.list +11 -10
  391. package/recipes/openspec/canon-config.knobs +5 -0
  392. package/recipes/openspec-overlap/canon-config.knobs +12 -0
  393. package/recipes/openspec-overlap/unregister.list +1 -0
  394. package/payload/context-kit/checks/check-footprint-fresh.gate +0 -4
  395. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/args +0 -4
  396. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/emit.txt +0 -12
  397. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/expect.txt +0 -1
  398. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/projection.txt +0 -11
  399. package/payload/context-kit/gate-tests/check-footprint-fresh/good/CLAUDE.md +0 -6
  400. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/SPEC.md +0 -3
  401. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/templates/guide.md +0 -3
  402. package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +0 -32
  403. package/payload/context-kit/gate-tests/check-footprint-fresh/good/expect.txt +0 -1
  404. package/payload/context-kit/templates/session-context.sh +0 -148
  405. package/payload/delegation-kit/checks/check-rule-citation.gate +0 -3
  406. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/args +0 -1
  407. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/expect.txt +0 -1
  408. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/spec.md +0 -9
  409. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/tmpl.md +0 -4
  410. package/payload/delegation-kit/gate-tests/check-rule-citation/good/args +0 -1
  411. package/payload/delegation-kit/gate-tests/check-rule-citation/good/expect.txt +0 -1
  412. package/payload/delegation-kit/gate-tests/check-rule-citation/good/spec.md +0 -20
  413. package/payload/delegation-kit/gate-tests/check-rule-citation/good/tmpl.md +0 -5
  414. package/payload/drift-kit/templates/kpi-deprecated-surface.sh +0 -54
  415. package/payload/gate-sdk/checks/check-crate-arms.gate +0 -3
  416. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +0 -3
  417. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +0 -3
  418. package/payload/gate-sdk/checks/check-kit-roots-dialect.gate +0 -3
  419. package/payload/gate-sdk/checks/check-packed-links.gate +0 -3
  420. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +0 -7
  421. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +0 -12
  422. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +0 -5
  423. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.knobs +0 -3
  424. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +0 -7
  425. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +0 -11
  426. package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +0 -2
  427. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.knobs +0 -3
  428. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/args +0 -2
  429. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/expect.txt +0 -5
  430. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/kitroot/checks/check-vendored.gate +0 -2
  431. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/check-ported.gate +0 -2
  432. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.knobs +0 -2
  433. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gates.list +0 -4
  434. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stamp.txt +0 -1
  435. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stub-bin +0 -6
  436. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/args +0 -2
  437. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/expect.txt +0 -5
  438. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/kitroot/checks/check-vendored.gate +0 -2
  439. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/check-ported.gate +0 -2
  440. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.knobs +0 -2
  441. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gates.list +0 -4
  442. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stamp.txt +0 -1
  443. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stub-bin +0 -5
  444. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +0 -97
  445. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/args +0 -1
  446. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/expect.txt +0 -1
  447. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/hooks/pre-commit +0 -2
  448. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/args +0 -1
  449. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/expect.txt +0 -1
  450. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/hooks/pre-commit +0 -2
  451. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/args +0 -5
  452. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/expect.txt +0 -1
  453. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/checks/placeholder.txt +0 -3
  454. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/gate-tests/alpha.test.sh +0 -3
  455. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/lib/alpha.sh +0 -3
  456. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/checks/placeholder.txt +0 -3
  457. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/gate-tests/beta.test.sh +0 -3
  458. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/lib/beta.sh +0 -3
  459. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/checks/placeholder.txt +0 -3
  460. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/lib/gate.sh +0 -3
  461. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gate-sdk-config.knobs +0 -7
  462. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gates.list +0 -3
  463. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/args +0 -7
  464. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/expect.txt +0 -1
  465. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/checks/placeholder.txt +0 -3
  466. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/gate-tests/alpha.test.sh +0 -3
  467. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/lib/alpha.sh +0 -3
  468. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/checks/placeholder.txt +0 -3
  469. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/gate-tests/beta.test.sh +0 -3
  470. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/lib/beta.sh +0 -3
  471. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/checks/placeholder.txt +0 -3
  472. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/lib/gate.sh +0 -3
  473. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/scripts/gates.list +0 -3
  474. package/payload/gate-sdk/gate-tests/check-packed-links/bad/alpha-kit/README.md +0 -5
  475. package/payload/gate-sdk/gate-tests/check-packed-links/bad/args +0 -5
  476. package/payload/gate-sdk/gate-tests/check-packed-links/bad/beta-kit/README.md +0 -5
  477. package/payload/gate-sdk/gate-tests/check-packed-links/bad/expect.txt +0 -2
  478. package/payload/gate-sdk/gate-tests/check-packed-links/bad/scripts/gate-sdk-config.knobs +0 -4
  479. package/payload/gate-sdk/gate-tests/check-packed-links/good/alpha-kit/README.md +0 -5
  480. package/payload/gate-sdk/gate-tests/check-packed-links/good/args +0 -8
  481. package/payload/gate-sdk/gate-tests/check-packed-links/good/beta-kit/README.md +0 -9
  482. package/payload/gate-sdk/gate-tests/check-packed-links/good/expect.txt +0 -1
  483. package/payload/gate-sdk/gate-tests/check-packed-links/good/gamma-kit/SPEC.md +0 -4
  484. package/payload/gate-sdk/gate-tests/check-packed-links/good/scripts/gate-sdk-config.knobs +0 -6
  485. package/payload/gate-sdk/gate-tests/check-portability-floor/good/patterns.list +0 -5
  486. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/portability-patterns.list +0 -5
  487. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +0 -2
  488. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +0 -3
  489. /package/payload/gate-sdk/gate-tests/{check-shellcheck → check-psscriptanalyzer}/bad/args +0 -0
  490. /package/payload/gate-sdk/gate-tests/{check-shellcheck → check-psscriptanalyzer}/good/args +0 -0
  491. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/{delegation-kit → vendor/delegation-kit}/templates/agent-budget-guard.sh +0 -0
  492. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/agent-budget-guard.sh +0 -0
  493. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/delegation-config.sh +0 -0
  494. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/session-note.sh +0 -0
  495. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/usage-poller.sh +0 -0
@@ -1,3 +1,4 @@
1
1
  # Reject case: the attested v0.17.0 miss, a mixed --repo job, a checkout ordered
2
- # after the call it was meant to establish context for, and a reasonless valve.
2
+ # after the call it was meant to establish context for, a reasonless valve, a step
3
+ # sequence at the steps: key's own column and a body under a commented indicator.
3
4
  tree
@@ -1 +1,3 @@
1
1
  job 'release' first invokes gh at line 35 with no repository context
2
+ job 'flush_steps' first invokes gh at line 18 with no repository context
3
+ job 'commented_indicator' first invokes gh at line 29 with no repository context
@@ -0,0 +1,29 @@
1
+ name: yaml-shapes
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ permissions: {}
8
+
9
+ jobs:
10
+ # A step sequence whose dashes sit at the steps: key's own column is the same
11
+ # sequence as one indented below it, so its gh call is held to the arms.
12
+ flush_steps:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: a call in a sequence at the key's column
16
+ env:
17
+ GH_TOKEN: ${{ github.token }}
18
+ run: gh issue list --state open
19
+
20
+ # A comment after the block indicator is no part of it: the lines below are
21
+ # still the body, and the call in them is still a call.
22
+ commented_indicator:
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - name: a body under a commented indicator
26
+ env:
27
+ GH_TOKEN: ${{ github.token }}
28
+ run: | # the body follows
29
+ gh issue list --state open
@@ -1,3 +1,4 @@
1
1
  # Reject case: it opens on the empty allowlist — the invisible construct — then the
2
- # attested miss itself, a gh job under an empty declaration, and a bare valve marker.
2
+ # attested miss itself, a gh job under an empty declaration, a bare valve marker, a
3
+ # step sequence at the steps: key's own column and a body under a commented indicator.
3
4
  tree
@@ -3,3 +3,5 @@ job 'report' consumes the GitHub token under no declared scope
3
3
  job 'gates' checks out with no 'contents:' scope in scope
4
4
  job 'bare_valve' checks out with no 'contents:' scope in scope
5
5
  an action-permissions-exempt marker with no reason
6
+ job 'flush_steps' checks out with no 'contents:' scope in scope
7
+ job 'commented_indicator' consumes the GitHub token under no declared scope
@@ -0,0 +1,22 @@
1
+ name: yaml-shapes
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ # A step sequence whose dashes sit at the steps: key's own column is the same
9
+ # sequence as one indented below it, so its checkout arms the job.
10
+ flush_steps:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
14
+
15
+ # A comment after the block indicator is no part of it: the body below is still
16
+ # read, and its gh call is the job's only evidence.
17
+ commented_indicator:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - name: a body under a commented indicator
21
+ run: | # the body follows
22
+ gh issue list --repo owner/repo --state open
@@ -0,0 +1,3 @@
1
+ # demo-kit
2
+
3
+ The kit page the committed enforcement page links, tracked beside it so the link resolves.
@@ -98,6 +98,22 @@ expect no-crate-skip 0 'declared out of reach with no crate at native/Cargo.toml
98
98
  expect no-crate-count 0 'clean (1 of 2 enumerated contract(s) coupled, 1 declared out of reach' "$rc" "$out"
99
99
  expect no-crate-named 0 'check-alpha' "$rc" "$out"
100
100
 
101
+ # --- an executable exec member: its markers live in source the descriptor does not
102
+ # name, so it is counted out of reach rather than read for markers it cannot carry ---
103
+ cat > "$C/scripts/SPEC.md" <<'EOF'
104
+ # consumer
105
+
106
+ ### check-gamma
107
+
108
+ Invariant: gamma holds on two axes: (A) the first; (B) the second.
109
+ EOF
110
+ printf '# graph: couples=X dir=one valve=none tier=precommit\n# exec: bin/check-gamma\n' > "$C/scripts/check-gamma.gate"
111
+ out="$( cd "$C" \
112
+ && gate_env GATE_SDK_KIT_DIRS="$kitdirs" GATE_SDK_GATES_DIR=scripts GATE_SDK_NATIVE_CRATE=native \
113
+ && gate_run check-gate-assertions "$CHECKS" 2>&1 )"; rc=$?
114
+ expect executable-count 0 'clean (1 of 3 enumerated contract(s) coupled' "$rc" "$out"
115
+ expect executable-named 0 '1 executable exec member(s) out of reach, their markers in source no descriptor names — check-gamma' "$rc" "$out"
116
+
101
117
  # --- the two fail-closed entry arms, neither of which any case dir can reach:
102
118
  # a named spec that does not exist, and a tree carrying no SPEC.md at all ---
103
119
  out="$( cd "$C" && gate_run check-gate-assertions "$CHECKS" absent-spec.md 2>&1 )"; rc=$?
@@ -113,5 +129,5 @@ if [[ "$fails" -gt 0 ]]; then
113
129
  echo "check-gate-assertions.test.sh: $fails case(s) failed"
114
130
  exit 1
115
131
  fi
116
- echo "check-gate-assertions.test.sh: clean (the arms a case dir cannot reach: the registry resolution walk over two kit SPECs, the descriptor-to-module redirection and its load-bearing red, the no-crate skip with its clean-line segment, and the two fail-closed entry arms — 8 assertions over 5 invocations)"
132
+ echo "check-gate-assertions.test.sh: clean (the arms a case dir cannot reach: the registry resolution walk over two kit SPECs, the descriptor-to-module redirection and its load-bearing red, the no-crate skip with its clean-line segment, an executable exec member counted out of reach, and the two fail-closed entry arms — 10 assertions over 6 invocations)"
117
133
  exit 0
@@ -1,5 +1,16 @@
1
- GATE-EXEMPTION-TASKS: 5 violation(s):
1
+ GATE-EXEMPTION-TASKS: 16 violation(s):
2
+ check-descriptor.gate:5 — # until: retired-task does not resolve to a live task
3
+ check-descriptor.gate:6 — exemption element carries neither # until: <slug> nor # permanent: <reason>
2
4
  # until: retired-task does not resolve to a live task
3
5
  exemption element carries neither # until: <slug> nor # permanent: <reason>
4
6
  # until: emphasis does not resolve to a live task
5
7
  # port-until: retired-task does not resolve to a live task
8
+ check-array-axes.sh:4 —
9
+ check-array-axes.sh:9 —
10
+ check-array-axes.sh:13 —
11
+ check-array-axes.sh:14 —
12
+ check-array-axes.sh:18 —
13
+ check-array-axes.sh:21 —
14
+ check-array-axes.sh:28 —
15
+ check-array-axes.sh:34 —
16
+ check-array-axes.sh:42 —
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env bash
2
+ #exception-list: tag spacing
3
+ TAG=(
4
+ 'axes/tag.rs' # until: absent-axis-task
5
+ )
6
+ # exception-list: next assignment
7
+ printf ignored
8
+ NEXT=(
9
+ 'axes/next.rs' # until: absent-axis-task
10
+ )
11
+ # exception-list: balance
12
+ BALANCE=( # )
13
+ 'axes/paren).rs' # until: absent-axis-task )
14
+ 'axes/after.rs' # until: absent-axis-task
15
+ )
16
+ # exception-list: first token
17
+ TOKEN=(
18
+ 'axes/first.rs' 'scripts/axes/ignored.rs' # until: absent-axis-task
19
+ )
20
+ # exception-list: opening element
21
+ OPEN=('axes/open.rs')
22
+ # exception-list: tag inside an open array
23
+ OUTER=(
24
+ 'axes/outer.rs' # permanent: fixture
25
+ # exception-list: armed while OUTER is open
26
+ )
27
+ INNER=(
28
+ 'axes/inner.rs' # until: absent-axis-task
29
+ )
30
+ # exception-list: quote across lines
31
+ QUOTE=(
32
+ 'axes/multi.rs
33
+ )' # permanent: fixture
34
+ 'axes/after-quote.rs' # until: absent-axis-task
35
+ )
36
+ # exception-list: escapes
37
+ ESCAPE=(
38
+ "axes/esc\").rs" # permanent: fixture
39
+ 'axes/single\' # permanent: fixture
40
+ axes/bare\ name.rs # permanent: fixture
41
+ axes/hash#mid.rs # permanent: fixture
42
+ 'axes/after-escape.rs' # until: absent-axis-task
43
+ )
44
+ printf '%s\n' "${TAG[@]}" "${NEXT[@]}" "${BALANCE[@]}" "${TOKEN[@]}" "${OPEN[@]}" "${OUTER[@]}" "${INNER[@]}" "${QUOTE[@]}" "${ESCAPE[@]}"
@@ -2,3 +2,5 @@
2
2
  # install: zero-config
3
3
  # port-until: retired-task
4
4
  # spec: gate-sdk/SPEC.md §check-gate-exemption-tasks — a descriptor-declared member whose held-port slug resolves only to Done; a `*.gate` arm that fell out of the in-scope glob would pass this silently
5
+ # exception: docs/stale/*.md # until: retired-task
6
+ # exception: docs/undisposed/*.md
@@ -1,5 +1,6 @@
1
1
  GATE-EXEMPTION-TASKS: clean
2
- 1 exemption array(s)
2
+ 10 exemption array(s)
3
+ 2 descriptor exemption(s)
3
4
  2 '# port-until:' header field(s)
4
5
  2 kit-shipped declaration(s) out of scope
5
6
  1 live task slug(s)
@@ -0,0 +1,46 @@
1
+ #!/usr/bin/env bash
2
+ #exception-list: tag spacing
3
+ TAG=(
4
+ 'axes/tag.rs' # permanent: fixture
5
+ )
6
+ # exception-list: next assignment
7
+ printf ignored
8
+ NEXT=(
9
+ 'axes/next.rs' # permanent: fixture
10
+ )
11
+ # exception-list: balance
12
+ BALANCE=( # )
13
+ 'axes/paren).rs' # permanent: fixture )
14
+ 'axes/after.rs' # permanent: fixture
15
+ )
16
+ # exception-list: first token
17
+ TOKEN=(
18
+ 'axes/first.rs' 'scripts/axes/ignored.rs' # permanent: fixture
19
+ )
20
+ # exception-list: opening element
21
+ OPEN=(
22
+ 'axes/open.rs' # permanent: fixture
23
+ )
24
+ # exception-list: tag inside an open array
25
+ OUTER=(
26
+ 'axes/outer.rs' # permanent: fixture
27
+ # exception-list: armed while OUTER is open
28
+ )
29
+ INNER=(
30
+ 'axes/inner.rs' # permanent: fixture
31
+ )
32
+ # exception-list: quote across lines
33
+ QUOTE=(
34
+ 'axes/multi.rs
35
+ )' # permanent: fixture
36
+ 'axes/after-quote.rs' # permanent: fixture
37
+ )
38
+ # exception-list: escapes
39
+ ESCAPE=(
40
+ "axes/esc\").rs" # permanent: fixture
41
+ 'axes/single\' # permanent: fixture
42
+ axes/bare\ name.rs # permanent: fixture
43
+ axes/hash#mid.rs # permanent: fixture
44
+ 'axes/after-escape.rs' # permanent: fixture
45
+ )
46
+ printf '%s\n' "${TAG[@]}" "${NEXT[@]}" "${BALANCE[@]}" "${TOKEN[@]}" "${OPEN[@]}" "${OUTER[@]}" "${INNER[@]}" "${QUOTE[@]}" "${ESCAPE[@]}"
@@ -2,3 +2,5 @@
2
2
  # install: zero-config
3
3
  # port-until: fix-sample-surface
4
4
  # spec: gate-sdk/SPEC.md §check-gate-exemption-tasks — a descriptor-declared member of the tree's own gates dir whose held-port field resolves, so the in-scope `*.gate` half of the glob is exercised by a case instead of only by the live tree
5
+ # exception: docs/legacy/*.md # until: fix-sample-surface
6
+ # exception: vendored-token # permanent: a token outside this gate's rule
@@ -1 +1,2 @@
1
1
  no '# no-fixture:' opt-out
2
+ check-psopt (scripts/check-psopt.gate carries '# exec:' and '# no-fixture:')
@@ -0,0 +1,3 @@
1
+ # graph: couples=docs/*.md dir=one valve=none tier=precommit
2
+ # exec: check-psopt.ps1
3
+ # no-fixture: an exec member takes no opt-out
@@ -0,0 +1 @@
1
+ Write-Output 'CHECK-PSOPT: clean (fixture)'
@@ -2,3 +2,4 @@
2
2
  # check-gate-fixture-coverage must REJECT.
3
3
  check-alpha
4
4
  check-gamma
5
+ check-psopt
@@ -1 +1,2 @@
1
1
  GATE-FIXTURE-COVERAGE: clean
2
+ 1 unresolved member(s) skipped, reported by the runner
@@ -1,5 +1,7 @@
1
1
  # Fixture registry: check-alpha carries a gate-tests/check-alpha/{good,bad}
2
- # pair, and check-beta carries a '# no-fixture:' opt-out. Both are covered, so
2
+ # pair, and check-beta carries a '# no-fixture:' opt-out. Both are covered, and
3
+ # check-withheld resolves nowhere and is skipped and counted, so
3
4
  # check-gate-fixture-coverage must ACCEPT.
4
5
  check-alpha
5
6
  check-beta
7
+ check-withheld
@@ -1,2 +1,3 @@
1
1
  GATE-OUTPUT: clean
2
2
  2 source-grepped as no-fixture members
3
+ 1 unresolved member(s) skipped, reported by the runner
@@ -1,4 +1,6 @@
1
- # Fixture registry (scanned as text, never executed): names one member that
2
- # DOES carry a '<NAME>: clean' success line — check-gate-output must ACCEPT.
1
+ # Fixture registry (scanned as text, never executed): names members that DO
2
+ # carry a '<NAME>: clean' success line, plus check-withheld, which resolves
3
+ # nowhere and is skipped and counted — check-gate-output must ACCEPT.
3
4
  check-sample
4
5
  check-native-sample
6
+ check-withheld
@@ -21,3 +21,8 @@ hold ground not in the pointed-at section: scripts/check-ungrounded.sh
21
21
  stale unregistered declaration: scripts/gates.list declares 'check-alpha' unregistered and registers it
22
22
  declaration missing a field: scripts/gates.list carries an '# unregistered:' line
23
23
  registration names no subcommand: scripts/gates.list registers 'check-orphan'
24
+ exec field outside the gates directory: kitroot/checks/check-kitexec.gate
25
+ malformed exec field: scripts/check-twoexec.gate carries 2 `# exec:` lines
26
+ malformed exec field: scripts/check-climb.gate its `# exec:` value '../check-climb.ps1' is rooted or climbs
27
+ exec target of no admitted class: scripts/check-txtexec.gate names scripts/check-txtexec.txt
28
+ malformed exec field: scripts/check-direxec.gate its `# exec:` value 'bin/' names no file
@@ -0,0 +1,2 @@
1
+ # graph: couples=docs/*.md dir=one valve=none tier=precommit
2
+ # exec: check-kitexec.ps1
@@ -0,0 +1,2 @@
1
+ # graph: couples=docs/*.md dir=one valve=none tier=precommit
2
+ # exec: ../check-climb.ps1
@@ -0,0 +1,2 @@
1
+ # graph: couples=docs/*.md dir=one valve=none tier=precommit
2
+ # exec: bin/
@@ -0,0 +1,3 @@
1
+ # graph: couples=docs/*.md dir=one valve=none tier=precommit
2
+ # exec: check-twoexec.ps1
3
+ # exec: check-twoexec.ps1
@@ -0,0 +1,2 @@
1
+ # graph: couples=docs/*.md dir=one valve=none tier=precommit
2
+ # exec: check-txtexec.txt
@@ -1,10 +1,11 @@
1
1
  GATE-SUBSTRATE-PARITY: clean
2
- 3 member(s) with one declaration each, 1 of them dispatching to the binary
2
+ 4 member(s) with one declaration each, 1 of them dispatching to the binary, 1 unresolved member(s) skipped, reported by the runner
3
3
  1 of the 2 shell declaration(s) declare '# no-port:' with a cause and 1 declare '# port-until:' with a slug, neither on any descriptor nor both on one declaration
4
4
  the tracked shell tree beyond that set out of scope here, this tree having authored no declaration it carries, 0 file(s) read for header-declaration shape and 0 of them declaring
5
5
  1 of those held declaration(s) reach their ground in one hop, the section their own '# spec:' field names stating the hold
6
6
  1 descriptor(s) in parity with the
7
7
  out of scope — an unvendored kit, or a consumer declaration from another tree), 0 reference-only
8
+ 0 reference-only; 2 exec descriptor(s) in the gates directory, each naming a target of an admitted class
8
9
  1 substrate-sensitive member(s) all dispositioned
9
10
  1 implementation source(s) free of manifest-class annotation
10
11
  1 kit root(s) scanned for an implementation sibling, crate root crate outside every kit root
@@ -0,0 +1,3 @@
1
+ # graph: couples=docs/*.md dir=one valve=none tier=precommit
2
+ # spec: gate-sdk/SPEC.md §check-gate-substrate-parity — fixture exec descriptor
3
+ # exec: check-psgood.ps1
@@ -0,0 +1 @@
1
+ Write-Output 'CHECK-PSGOOD: clean (fixture)'
@@ -0,0 +1,3 @@
1
+ # graph: couples=docs/*.md dir=one valve=none tier=precommit
2
+ # spec: gate-sdk/SPEC.md §check-gate-substrate-parity — fixture executable descriptor, its program a build output never built here
3
+ # exec: bin/check-rsgood
@@ -1,3 +1,5 @@
1
1
  check-alpha
2
2
  check-held
3
+ check-psgood
3
4
  check-stage-entry
5
+ check-withheld
@@ -54,13 +54,24 @@ EOF
54
54
  # whole case in a subshell and lose every failure it recorded.
55
55
  OUT="$tmp/case-output"
56
56
 
57
+ # DOC_ARGS is the conservation-doc positional, emptied for a case running on the default doc;
58
+ # CASE_SDK_ROOT re-points the gate-sdk root after the library pins it, so that default can be
59
+ # absent.
60
+ DOC_ARGS=(conservation.md)
57
61
  run_case() { # run_case <label> <sandbox> <want-rc> <substring>
58
62
  local label="$1" d="$2" want="$3" substr="$4" rc
59
63
  cases=$((cases + 1))
60
- ( cd "$d" && env GATE_SDK_KIT_DIRS="${KITDIRS:-kitroot}" GATE_SDK_NATIVE_CRATE=crate \
61
- GATE_SDK_NATIVE_SRC=impl \
62
- bash -c 'source "$1"; gate_run check-gate-substrate-parity "$2" scripts conservation.md' \
63
- bash "$DIR/lib/test-hermetic.sh" "$DIR/checks" ) > "$OUT" 2>&1
64
+ ( cd "$d" && env CASE_KIT_DIRS="${KITDIRS:-kitroot}" CASE_NATIVE_CRATE=crate \
65
+ CASE_NATIVE_SRC=impl CASE_SDK_ROOT="${CASE_SDK_ROOT:-}" \
66
+ bash -c '
67
+ source "$1"
68
+ export GATE_SDK_KIT_DIRS="$CASE_KIT_DIRS"
69
+ export GATE_SDK_NATIVE_CRATE="$CASE_NATIVE_CRATE"
70
+ export GATE_SDK_NATIVE_SRC="$CASE_NATIVE_SRC"
71
+ [[ -z "$CASE_SDK_ROOT" ]] || export GATE_SDK_ROOT="$CASE_SDK_ROOT"
72
+ gate_run check-gate-substrate-parity "$2" scripts "${@:3}"
73
+ ' \
74
+ bash "$DIR/lib/test-hermetic.sh" "$DIR/checks" ${DOC_ARGS[@]+"${DOC_ARGS[@]}"} ) > "$OUT" 2>&1
64
75
  rc=$?
65
76
  if [[ "$rc" -ne "$want" ]]; then
66
77
  echo " FAIL [$label]: want exit $want, got $rc --"; sed 's/^/ /' "$OUT"
@@ -246,9 +257,35 @@ run_case smoke-unscoped "$H7" 0 "assertion J out of scope here" \
246
257
  && expect_absent smoke-unscoped-quiet "registered nowhere"
247
258
  unset KITDIRS
248
259
 
260
+ # --- I: the conservation doc is owed by the tree that authors the dispositions ---
261
+ # The gate-sdk root is re-pointed at a directory carrying no SPEC.md, the shape of an installed
262
+ # tree whose payload withholds it. Outside a publishing tree the default doc's absence leaves
263
+ # disposition coverage unasserted and says so; with crate source tracked it is still exit 2; and a
264
+ # doc given as a positional is a steer whose absence is exit 2 in every tree.
265
+ DOC_ARGS=()
266
+ I1="$(make_sandbox doc-absent-consumer)"
267
+ printf 'check-alpha\n' > "$I1/scripts/gates.list"
268
+ CASE_SDK_ROOT="$I1/sdk"
269
+ mkdir -p "$CASE_SDK_ROOT"
270
+ run_case doc-absent-consumer "$I1" 0 'substrate-sensitive member(s) not dispositioned here, the conservation doc being absent in a tree that publishes no crate'
271
+ I2="$(make_sandbox doc-absent-publishing)"
272
+ printf 'check-alpha\n' > "$I2/scripts/gates.list"
273
+ CASE_SDK_ROOT="$I2/sdk"
274
+ mkdir -p "$CASE_SDK_ROOT" "$I2/crate"
275
+ printf 'fn main() {}\n' > "$I2/crate/main.src"
276
+ git -C "$I2" init -q
277
+ git -C "$I2" add crate/main.src
278
+ run_case doc-absent-publishing "$I2" 2 "conservation doc not found: $I2/sdk/SPEC.md"
279
+ unset CASE_SDK_ROOT
280
+ DOC_ARGS=(missing.md)
281
+ I3="$(make_sandbox doc-steer-missing)"
282
+ printf 'check-alpha\n' > "$I3/scripts/gates.list"
283
+ run_case doc-steer-missing "$I3" 2 'conservation doc not found: missing.md'
284
+ DOC_ARGS=(conservation.md)
285
+
249
286
  if [[ "$fails" -gt 0 ]]; then
250
287
  echo "check-gate-substrate-parity.test.sh: $fails case(s) failed"
251
288
  exit 1
252
289
  fi
253
- echo "check-gate-substrate-parity.test.sh: clean (declaration configurations: no descriptors, where the roster half is the only live half; descriptors present with none dispatching and no roster, where assertion F stays quiet; a consumer dispatching with no crate, which is also assertion G's empty shell-declaration corpus reported as a counted zero; and the publishing counterpart, where the same absent roster reds. Assertion G's tree half adds three: every widened clause driven to a finding over tracked shell files in a publishing sandbox, with a well-formed declaration and a below-header token both correctly silent; the same tree out of scope where no crate source is tracked; and the empty corpus outside any repository. Assertion J adds seven: a kit smoke registry covering its owned subcommands, then one omitting a member, registering a foreign one, carrying a stale declaration, carrying no heredoc and carrying two, each red, and the omission out of scope where no crate source is tracked — $cases assertions over 14 sandboxes, with assertion B's roster matrix and J's per-kit comparison held in the crate unit tests beside the rule)"
290
+ echo "check-gate-substrate-parity.test.sh: clean (declaration configurations: no descriptors, where the roster half is the only live half; descriptors present with none dispatching and no roster, where assertion F stays quiet; a consumer dispatching with no crate, which is also assertion G's empty shell-declaration corpus reported as a counted zero; and the publishing counterpart, where the same absent roster reds. Assertion G's tree half adds three: every widened clause driven to a finding over tracked shell files in a publishing sandbox, with a well-formed declaration and a below-header token both correctly silent; the same tree out of scope where no crate source is tracked; and the empty corpus outside any repository. Assertion J adds seven: a kit smoke registry covering its owned subcommands, then one omitting a member, registering a foreign one, carrying a stale declaration, carrying no heredoc and carrying two, each red, and the omission out of scope where no crate source is tracked. The conservation doc adds three: the default doc absent outside a publishing tree, read as coverage not asserted, and the same absence in a publishing tree and a missing positional doc, each exit 2 — $cases assertions over 17 sandboxes, with assertion B's roster matrix and J's per-kit comparison held in the crate unit tests beside the rule)"
254
291
  exit 0
@@ -12,6 +12,7 @@ until build re-typed the manifest into a real gate.
12
12
  - [ ] `check-example-gate.sh` carries the legacy tokens
13
13
  (`# graph: couples=gate-tests,check-*.sh dir=mono valve=no-fixture tier=precommit`);
14
14
  registered in `gates.list`.
15
+ - [ ] `check-nightly-gate.sh` declares `# graph: couples=docs/nightly.md dir=one valve=none tier=nightly` mid-sentence, a valued first key, so it is read and its tier reds.
15
16
 
16
17
  The remaining five are fenced, so the fenced extraction path reds as well as the
17
18
  inline one; the third names a knob whose row is a word list, the fourth roots
@@ -25,6 +25,12 @@ text and is validated:
25
25
  # graph: couples=scripts/gen.sh dir=one valve=none tier=precommit mode=staged
26
26
  ```
27
27
 
28
+ The same block as a list item:
29
+
30
+ - ```sh
31
+ # graph: couples=scripts/gen.sh dir=one valve=none tier=precommit mode=staged
32
+ ```
33
+
28
34
  A `# graph:` span naming no key at all is a cross-reference, not a manifest, and
29
35
  assertion G returns without a finding:
30
36
 
@@ -33,7 +39,9 @@ assertion G returns without a finding:
33
39
  ```
34
40
 
35
41
  A prose mention of the `# graph:` concept, with `couples=` named separately, is
36
- not a manifest and must not be extracted at all.
42
+ not a manifest and must not be extracted at all. Nor is a span opening with the
43
+ header whose first word is a bare key, so a sentence may name `# graph: couples=`
44
+ and `# graph: dir= one or bi` mid-sentence without meeting the required keys.
37
45
 
38
46
  ```proto
39
47
  // A `# graph: couples=bogus dir=mono` line inside a proto fence is illustrative
@@ -6,9 +6,9 @@ read every `SPEC-*.md` it finds rather than the first one only.
6
6
  ## Definition of Done
7
7
 
8
8
  - [ ] `check-second-gate.sh` carries its manifest, and `check-third-gate.sh` roots
9
- its globs at a locator and at a scalar directory knob:
9
+ its globs at a locator, at a scalar directory knob and at a word-list knob:
10
10
 
11
11
  ```sh
12
12
  # graph: couples=docs/second.md,kit:templates/*.md trigger=docs/*.md,kit:templates/*.md dir=one valve=none tier=align-only
13
- # graph: couples=knob:GATE_SDK_GATES_DIR/gates.list,knob:GATE_SDK_WORKFLOW_DIR/*.md dir=one valve=none tier=precommit
13
+ # graph: couples=knob:GATE_SDK_GATES_DIR/gates.list,knob:GATE_SDK_WORKFLOW_DIR/*.md,knob:GATE_SDK_LINT_EXTRA_DIRS/*.sh dir=one valve=none tier=precommit
14
14
  ```
@@ -1,12 +1,11 @@
1
1
  #!/usr/bin/env bash
2
2
  # Behavioral test of check-graph's whole-registry path — assertions A (manifest
3
3
  # well-formedness), B (couples<->trigger parity), C (the cycle-valve rule),
4
- # D (pre-commit + commit-msg hook freshness), E (graph-artifact freshness) and
5
- # F (emitted asset hrefs resolve), and the retired `gen=` field. None is
6
- # reachable from the good/bad pair: the pair's cwd is a case dir and a `good/`
7
- # case must exit 0, while D and E always run on the full path, so satisfying D
8
- # from a case dir would need a committed byte-copy of the real repo's generated
9
- # hook inside gate-tests/.
4
+ # E (graph-artifact freshness) and F (emitted asset hrefs resolve), and the
5
+ # retired `gen=` field. None is reachable from the good/bad pair: the pair's
6
+ # cwd is a case dir and a `good/` case must exit 0, while E always runs on the
7
+ # full path, so satisfying E from a case dir would need a committed byte-copy of
8
+ # a generated artifact inside gate-tests/.
10
9
  # So the corpus is a mini-consumer tree built here and thrown away: the port
11
10
  # cannot add or remove a file in it, which is the property criterion 4 asks of a
12
11
  # gate-source auditor's oracle (gate-sdk/SPEC.md §The port-candidate criteria).
@@ -28,7 +27,7 @@ fails=0
28
27
  rc=0
29
28
  out=""
30
29
 
31
- # the mini-consumer's own kit set, so member resolution and the emitted hook stay
30
+ # the mini-consumer's own kit set, so member resolution and the emitted graph stay
32
31
  # inside the sandbox instead of reaching this repo's kits
33
32
  export GATE_SDK_KIT_DIRS="$repo"
34
33
 
@@ -51,13 +50,12 @@ check-epsilon
51
50
  LIST
52
51
  # B branch 2 (exact token) and branch 4 (a `*.<ext>` trigger over a globbed couple)
53
52
  member check-alpha 'couples=scripts/gates.list,scripts/*.sh trigger=scripts/gates.list,*.sh dir=one valve=none tier=precommit'
54
- # B branch 1 (a `*` trigger covers everything); tier=commit-msg drives D's second hook
53
+ # B branch 1 (a `*` trigger covers everything); a tier=commit-msg member
55
54
  member check-beta 'couples=docs/site.md trigger=* dir=one valve=none tier=commit-msg'
56
55
  # C branch 1: a dir=bi member spanning a leading and a lagging surface takes PROPOSED
57
56
  member check-gamma 'couples=SPEC.md,scripts/*.sh dir=bi valve=PROPOSED tier=precommit'
58
57
  # the `.gate` declaration spelling, so assertion A resolves and reads a
59
- # descriptor's manifest; tier=align-only keeps it out of both hooks, so the
60
- # sandbox needs no binary to generate them. C branch 2: a leading surface with
58
+ # descriptor's manifest; tier=align-only. C branch 2: a leading surface with
61
59
  # no lagging one takes either valve
62
60
  printf '# graph: %s\n' 'couples=SPEC.md dir=bi valve=none tier=align-only' \
63
61
  >"$repo/scripts/check-delta.gate"
@@ -77,8 +75,7 @@ GRAPH_LAYERS[] = surfaces:governed surfaces
77
75
  VOCAB
78
76
  }
79
77
 
80
- regen() { # regen() -> rewrite both hooks and the graph artifact from the manifests
81
- ( cd "$repo" && bash "$DIR/bin/run-gates.sh" --emit git-hooks --write >/dev/null 2>&1 ) || return 1
78
+ regen() { # regen() -> rewrite the graph artifact from the manifests
82
79
  ( cd "$repo" && bash "$DIR/bin/run-gates.sh" --emit graph >scripts/CHECK-GRAPH.html 2>/dev/null ) || return 1
83
80
  }
84
81
 
@@ -94,17 +91,19 @@ want_red() { # want_red() <label> <substring>
94
91
  fi
95
92
  }
96
93
 
97
- want_green() { # want_green() <label>
94
+ want_green() { # want_green() <label> [substring]
98
95
  if [[ "$rc" -ne 0 ]]; then
99
96
  echo " FAIL [$1]: want exit 0, got $rc -- $out"; fails=$((fails + 1))
100
97
  elif ! grep -qF 'CHECK-GRAPH: clean' <<<"$out"; then
101
98
  echo " FAIL [$1]: exit 0 but output lacks the clean line -- $out"; fails=$((fails + 1))
99
+ elif [[ -n "${2:-}" ]] && ! grep -qF -- "$2" <<<"$out"; then
100
+ echo " FAIL [$1]: exit 0 but output lacks '$2' -- $out"; fails=$((fails + 1))
102
101
  fi
103
102
  }
104
103
 
105
104
  # --- baseline: five members, both spellings, every B and C branch, clean --------
106
105
  seed
107
- regen || { echo " FAIL [baseline]: could not generate the sandbox hooks/artifact"; fails=$((fails + 1)); }
106
+ regen || { echo " FAIL [baseline]: could not generate the sandbox artifact"; fails=$((fails + 1)); }
108
107
  run; want_green baseline
109
108
 
110
109
  # --- assertion A: manifest well-formedness -------------------------------------
@@ -121,7 +120,7 @@ want_red a-enum "dir= must be bi|one (got 'mono')"
121
120
  seed
122
121
  printf 'check-zeta\n' >>"$repo/scripts/gates.list"
123
122
  regen || true; run
124
- want_red a-unresolved "check-zeta is in gates.list but resolves in none of"
123
+ want_green a-unresolved "1 unresolved member(s) skipped, reported by the runner"
125
124
 
126
125
  seed
127
126
  member check-alpha 'couples=scripts/gates.list,lib/x.rs trigger=* dir=one valve=none tier=precommit'
@@ -145,19 +144,6 @@ member check-epsilon 'couples=docs/site.md trigger=docs/*.md dir=bi valve=PROPOS
145
144
  regen || true; run
146
145
  want_red c-no-leading "check-epsilon is a dir=bi bijection with no leading design surface"
147
146
 
148
- # --- assertion D: both generated hooks -----------------------------------------
149
- seed; regen || true
150
- printf '# hand-edited\n' >>"$repo/scripts/git-hooks/pre-commit"
151
- run; want_red d-hook-stale "scripts/git-hooks/pre-commit is not its emitter's handoff"
152
-
153
- seed; regen || true
154
- rm -f "$repo/scripts/git-hooks/pre-commit"
155
- run; want_red d-hook-absent "scripts/git-hooks/pre-commit does not exist"
156
-
157
- seed; regen || true
158
- printf '# hand-edited\n' >>"$repo/scripts/git-hooks/commit-msg"
159
- run; want_red d-msg-hook-stale "scripts/git-hooks/commit-msg is not its emitter's handoff"
160
-
161
147
  # --- assertion E: the graph artifact -------------------------------------------
162
148
  seed; regen || true
163
149
  printf '<!-- hand-edited -->\n' >>"$repo/scripts/CHECK-GRAPH.html"
@@ -196,5 +182,5 @@ if [[ "$fails" -gt 0 ]]; then
196
182
  echo "check-graph-tree.test: $fails case(s) failed"
197
183
  exit 1
198
184
  fi
199
- echo "check-graph-tree.test: ok (constructed consumer tree: A/B/C/D/E/F, both declaration spellings, 4 parity branches, 3 cycle-valve branches, the retired gen= field, 16 cases)"
185
+ echo "check-graph-tree.test: ok (constructed consumer tree: A/B/C/E/F, both declaration spellings, 4 parity branches, 3 cycle-valve branches, the retired gen= field, 13 cases)"
200
186
  exit 0
@@ -1 +1 @@
1
- KIT-ENUM: clean (1 multi-kit hand-list group(s) complete; kit:<glob> keeps them so)
1
+ KIT-ENUM: clean (1 multi-kit hand-list group(s) complete; kit:<glob> keeps them so, 1 unresolved member(s) skipped, reported by the runner)
@@ -1,6 +1,8 @@
1
1
  # Fixture registry (scanned as text, never executed): check-sample couples the
2
2
  # kit surface through the kit:*.sh token — no literal per-kit hand list — and
3
3
  # check-native-sample is a .gate descriptor whose two-root hand list for one
4
- # glob is complete. check-kit-enum must ACCEPT.
4
+ # glob is complete; check-withheld resolves nowhere and is skipped and counted.
5
+ # check-kit-enum must ACCEPT.
5
6
  check-sample
6
7
  check-native-sample
8
+ check-withheld
@@ -2,6 +2,7 @@ use a banned non-portable construct
2
2
  tree/empty-reason-verb:5:relativize() { realpath --relative-to="$PWD" "$1"; }
3
3
  tree/too-far-verb:5:manifest() { find "$1" -type f -printf '%P\n'; }
4
4
  tree/undeclared-verb:3:newest() { printf '%s\n' "$@" | sort -V | tail -n1; }
5
+ tree/portability-patterns.notes.list:1:a stale roster no knob names still runs: sort -V
5
6
  carry a non-ASCII byte outside a full-line comment
6
7
  tree/strings.ps1:2:$title = "Checkwright — front end"
7
8
  tree/strings.ps1:3:Write-Output $title # trailing — over-refused