checkwright 0.30.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 (496) hide show
  1. package/README.md +8 -7
  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 +9 -5
  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 +6 -8
  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 +15 -9
  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 +4 -1
  169. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +36 -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 +3 -3
  176. package/payload/drift-kit/README.md +17 -7
  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/drift-kit/templates/price-table.tsv +13 -9
  181. package/payload/evidence-kit/README.md +4 -4
  182. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/expect.txt +1 -0
  183. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/runner.md +2 -1
  184. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +3 -1
  185. package/payload/evidence-kit/gate-tests/check-battery-roster/good/runner.md +1 -0
  186. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +3 -1
  187. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +18 -2
  188. package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +2 -3
  189. package/payload/evidence-kit/gate-tests/run-member-door.test.sh +50 -0
  190. package/payload/gate-sdk/README.md +11 -15
  191. package/payload/gate-sdk/bin/build-native.sh +11 -14
  192. package/payload/gate-sdk/bin/run-gates.ps1 +149 -24
  193. package/payload/gate-sdk/bin/run-gates.sh +58 -15
  194. package/payload/gate-sdk/checks/check-commit-msg.gate +1 -1
  195. package/payload/gate-sdk/checks/check-gate-substrate-parity.gate +1 -1
  196. package/payload/gate-sdk/checks/check-graph.gate +2 -2
  197. package/payload/gate-sdk/checks/check-install-disposition.gate +1 -1
  198. package/payload/gate-sdk/checks/check-path-dialect.gate +1 -1
  199. package/payload/gate-sdk/checks/check-psscriptanalyzer.gate +4 -0
  200. package/payload/gate-sdk/checks/check-shellcheck.gate +1 -1
  201. package/payload/gate-sdk/checks/check-template-copy-parity.gate +1 -1
  202. package/payload/gate-sdk/checks/check-tree-terms.gate +1 -1
  203. package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/args +2 -1
  204. package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/expect.txt +2 -0
  205. package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/tree/workflows/shapes.yml +29 -0
  206. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/args +2 -1
  207. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/expect.txt +2 -0
  208. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/shapes.yml +22 -0
  209. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/demo-kit/index.md +3 -0
  210. package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +17 -1
  211. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +12 -1
  212. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-array-axes.sh +44 -0
  213. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +2 -0
  214. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +2 -1
  215. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-array-axes.sh +46 -0
  216. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +2 -0
  217. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/expect.txt +1 -0
  218. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/check-psopt.gate +3 -0
  219. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/check-psopt.ps1 +1 -0
  220. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/gates.list +1 -0
  221. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/expect.txt +1 -0
  222. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/scripts/gates.list +3 -1
  223. package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
  224. package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +4 -2
  225. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +5 -0
  226. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/checks/check-kitexec.gate +2 -0
  227. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/checks/check-kitexec.ps1 +1 -0
  228. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-climb.gate +2 -0
  229. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-direxec.gate +2 -0
  230. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twoexec.gate +3 -0
  231. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-txtexec.gate +2 -0
  232. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-txtexec.txt +1 -0
  233. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
  234. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-psgood.gate +3 -0
  235. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-psgood.ps1 +1 -0
  236. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-rsgood.gate +3 -0
  237. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +2 -0
  238. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +42 -5
  239. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +1 -0
  240. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +9 -1
  241. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +2 -2
  242. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +15 -29
  243. package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
  244. package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +3 -1
  245. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/expect.txt +1 -0
  246. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/portability-patterns.notes.list +1 -0
  247. package/payload/gate-sdk/gate-tests/check-portability-floor/good/args +1 -1
  248. package/payload/gate-sdk/gate-tests/check-portability-floor/good/scripts/gate-sdk-config.knobs +1 -0
  249. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/demo-kit/templates/portability-patterns.list +5 -0
  250. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/rosters/constructs.list +6 -0
  251. package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +15 -2
  252. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/expect.txt +2 -0
  253. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/noisy.ps1 +1 -0
  254. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/pwsh +8 -0
  255. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/scripts/gate-sdk-config.knobs +1 -0
  256. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/clean.ps1 +1 -0
  257. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/expect.txt +1 -0
  258. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/pwsh +7 -0
  259. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/scripts/gate-sdk-config.knobs +2 -0
  260. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/{warn.sh → alpha-kit/gate-tests/kit-warn.sh} +1 -1
  261. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/expect.txt +2 -0
  262. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/scripts/gate-sdk-config.knobs +2 -0
  263. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/scripts/gate-tests/tests-warn.sh +5 -0
  264. package/payload/gate-sdk/gate-tests/check-shellcheck/good/{ok.sh → alpha-kit/gate-tests/kit-ok.sh} +1 -1
  265. package/payload/gate-sdk/gate-tests/check-shellcheck/good/expect.txt +1 -1
  266. package/payload/gate-sdk/gate-tests/check-shellcheck/good/scripts/gate-sdk-config.knobs +2 -0
  267. package/payload/gate-sdk/gate-tests/check-shellcheck/good/scripts/gate-tests/tests-ok.sh +4 -0
  268. package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/args +2 -0
  269. package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/scripts/gate-sdk-config.knobs +1 -0
  270. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +4 -1
  271. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/gate-sdk-config.knobs +1 -0
  272. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/stray/templates/session-note.sh +4 -0
  273. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +6 -2
  274. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/drift-kit/templates/kpis.list +1 -0
  275. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/drift-kit/templates/kpis.list +1 -0
  276. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
  277. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/msg-patterns.old.list +1 -0
  278. package/payload/gate-sdk/gate-tests/check-tree-terms/good/args +2 -2
  279. package/payload/gate-sdk/gate-tests/check-tree-terms/good/scripts/gate-sdk-config.knobs +1 -0
  280. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/demo-kit/templates/msg-patterns.list +2 -0
  281. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/rosters/extra.list +2 -0
  282. package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +1 -0
  283. package/payload/gate-sdk/gate-tests/emit-arm-shape.test.sh +1 -1
  284. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +10 -2
  285. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +29 -3
  286. package/payload/gate-sdk/gate-tests/lib-test-hermetic.test.sh +24 -0
  287. package/payload/gate-sdk/gate-tests/native-git-hooks.test.sh +261 -0
  288. package/payload/gate-sdk/gate-tests/native-rustflags.test.sh +20 -0
  289. package/payload/gate-sdk/gate-tests/run-arm-contract.test.sh +11 -4
  290. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +2 -1
  291. package/payload/gate-sdk/gate-tests/run-for-path.test.sh +11 -1
  292. package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +64 -4
  293. package/payload/gate-sdk/lib/gate.sh +46 -6
  294. package/payload/gate-sdk/lib/test-hermetic.sh +16 -8
  295. package/payload/gate-sdk/templates/adopt.md +15 -0
  296. package/payload/gate-sdk/templates/msg-patterns.list +1 -1
  297. package/payload/gate-sdk/templates/portability-patterns.list +1 -1
  298. package/payload/guard-kit/README.md +13 -8
  299. package/payload/guard-kit/close-surfaces.txt +3 -0
  300. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/README.md +1 -1
  301. package/payload/guard-kit/gate-tests/check-door-binding/bad/expect.txt +1 -0
  302. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/guard-config.knobs +2 -1
  303. package/payload/guard-kit/gate-tests/check-door-binding/bad/src/remedy.rs +3 -0
  304. package/payload/guard-kit/gate-tests/check-door-binding/good/expect.txt +1 -0
  305. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/guard-config.knobs +2 -1
  306. package/payload/guard-kit/gate-tests/check-door-binding/good/site/register.md +8 -0
  307. package/payload/guard-kit/gate-tests/check-door-binding/good/src/remedy.rs +13 -0
  308. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +0 -1
  309. package/payload/guard-kit/gate-tests/consumer-rules.test.sh +105 -3
  310. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +64 -2
  311. package/payload/guard-kit/gate-tests/guard-config-knobs.test.sh +18 -5
  312. package/payload/guard-kit/gate-tests/guard-verdict.test.sh +74 -0
  313. package/payload/guard-kit/gate-tests/worktree-confinement.test.sh +49 -5
  314. package/payload/guard-kit/guard-tests/background-cases.tsv +103 -1
  315. package/payload/guard-kit/guard-tests/cases.tsv +834 -64
  316. package/payload/guard-kit/guard-tests/powershell-cases.tsv +51 -2
  317. package/payload/guard-kit/guard-tests/variant-limits.tsv +14 -0
  318. package/payload/guard-kit/templates/close-triage.md +2 -2
  319. package/payload/guard-kit/templates/guard-config.knobs +9 -0
  320. package/payload/guard-kit/templates/settings-allow.json +1 -1
  321. package/payload/guard-kit/templates/settings-hooks.json +4 -4
  322. package/payload/lifecycle-kit/README.md +12 -7
  323. package/payload/lifecycle-kit/checks/check-disposed-findings.gate +3 -0
  324. package/payload/lifecycle-kit/checks/check-skill-binding.gate +1 -1
  325. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +1 -1
  326. package/payload/lifecycle-kit/close-surfaces.txt +2 -0
  327. package/payload/lifecycle-kit/gate-tests/boundary-set-record.test.sh +82 -0
  328. package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +11 -2
  329. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +11 -1
  330. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/args +2 -0
  331. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/disposed-findings.txt +5 -0
  332. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/expect.txt +5 -0
  333. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/args +2 -0
  334. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/disposed-findings.txt +3 -0
  335. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/expect.txt +1 -0
  336. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +1 -0
  337. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +1 -1
  338. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +27 -2
  339. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +6 -0
  340. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +34 -2
  341. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +3 -0
  342. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -0
  343. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/scripts/lifecycle-config.knobs +3 -0
  344. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +3 -0
  345. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/expect.txt +1 -0
  346. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/scripts/lifecycle-config.knobs +2 -0
  347. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage.test.sh +22 -2
  348. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +9 -2
  349. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +27 -1
  350. package/payload/lifecycle-kit/gate-tests/journal-arm.test.sh +251 -0
  351. package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +46 -5
  352. package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +16 -2
  353. package/payload/lifecycle-kit/templates/consult.md +9 -5
  354. package/payload/lifecycle-kit/templates/frames/project-critique.md +18 -0
  355. package/payload/lifecycle-kit/templates/frames/stage-contract-sweep.md +18 -0
  356. package/payload/lifecycle-kit/templates/frames/stage-contract.md +15 -0
  357. package/payload/lifecycle-kit/templates/host-protocol.md +10 -0
  358. package/payload/lifecycle-kit/templates/lead.md +31 -24
  359. package/payload/lifecycle-kit/templates/stages/align.md +4 -0
  360. package/payload/lifecycle-kit/templates/stages/build.md +5 -3
  361. package/payload/lifecycle-kit/templates/stages/close.md +8 -6
  362. package/payload/lifecycle-kit/templates/stages/scope.md +6 -2
  363. package/payload/lifecycle-kit/templates/stages/spec.md +4 -0
  364. package/payload/lifecycle-kit/templates/stages/validate.md +4 -2
  365. package/payload/lifecycle-kit/templates/upgrade.md +1 -1
  366. package/payload/queue-kit/README.md +4 -3
  367. package/payload/queue-kit/close-surfaces.txt +3 -0
  368. package/payload/queue-kit/gate-tests/check-queue-sections/bad/expect.txt +1 -0
  369. package/payload/queue-kit/gate-tests/check-queue-sections/bad/scripts/queue-config.knobs +2 -0
  370. package/payload/queue-kit/gate-tests/check-queue-sections/good/TASK-QUEUE.md +1 -1
  371. package/payload/queue-kit/gate-tests/check-queue-sections/good/scripts/queue-config.knobs +2 -0
  372. package/payload/queue-kit/gate-tests/check-queue-sections.test.sh +65 -0
  373. package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +10 -1
  374. package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +4 -0
  375. package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +4 -0
  376. package/payload/queue-kit/gate-tests/check-task-conservation.test.sh +38 -0
  377. package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +3 -0
  378. package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +3 -0
  379. package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +8 -0
  380. package/payload/queue-kit/gate-tests/roadmap-lag.test.sh +137 -0
  381. package/payload/site-kit/README.md +4 -4
  382. package/payload/site-kit/gate-tests/check-docs-collapsible/bad/docs/unclosed.md +8 -0
  383. package/payload/site-kit/gate-tests/check-docs-collapsible/bad/expect.txt +1 -0
  384. package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/regions.md +7 -0
  385. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/dotted.md +9 -0
  386. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +1 -0
  387. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/dotted.md +7 -0
  388. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/expect.txt +1 -1
  389. package/payload/site-kit/gate-tests/site-health-probe.test.sh +219 -0
  390. package/payload/site-kit/templates/site-health.yml +181 -132
  391. package/profiles.list +11 -10
  392. package/recipes/openspec/canon-config.knobs +5 -0
  393. package/recipes/openspec-overlap/canon-config.knobs +12 -0
  394. package/recipes/openspec-overlap/unregister.list +1 -0
  395. package/payload/context-kit/checks/check-footprint-fresh.gate +0 -4
  396. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/args +0 -4
  397. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/emit.txt +0 -12
  398. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/expect.txt +0 -1
  399. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/projection.txt +0 -11
  400. package/payload/context-kit/gate-tests/check-footprint-fresh/good/CLAUDE.md +0 -6
  401. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/SPEC.md +0 -3
  402. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/templates/guide.md +0 -3
  403. package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +0 -32
  404. package/payload/context-kit/gate-tests/check-footprint-fresh/good/expect.txt +0 -1
  405. package/payload/context-kit/templates/session-context.sh +0 -148
  406. package/payload/delegation-kit/checks/check-rule-citation.gate +0 -3
  407. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/args +0 -1
  408. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/expect.txt +0 -1
  409. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/spec.md +0 -9
  410. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/tmpl.md +0 -4
  411. package/payload/delegation-kit/gate-tests/check-rule-citation/good/args +0 -1
  412. package/payload/delegation-kit/gate-tests/check-rule-citation/good/expect.txt +0 -1
  413. package/payload/delegation-kit/gate-tests/check-rule-citation/good/spec.md +0 -20
  414. package/payload/delegation-kit/gate-tests/check-rule-citation/good/tmpl.md +0 -5
  415. package/payload/drift-kit/templates/kpi-deprecated-surface.sh +0 -54
  416. package/payload/gate-sdk/checks/check-crate-arms.gate +0 -3
  417. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +0 -3
  418. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +0 -3
  419. package/payload/gate-sdk/checks/check-kit-roots-dialect.gate +0 -3
  420. package/payload/gate-sdk/checks/check-packed-links.gate +0 -3
  421. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +0 -7
  422. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +0 -12
  423. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +0 -5
  424. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.knobs +0 -3
  425. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +0 -7
  426. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +0 -11
  427. package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +0 -2
  428. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.knobs +0 -3
  429. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/args +0 -2
  430. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/expect.txt +0 -5
  431. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/kitroot/checks/check-vendored.gate +0 -2
  432. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/check-ported.gate +0 -2
  433. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.knobs +0 -2
  434. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gates.list +0 -4
  435. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stamp.txt +0 -1
  436. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stub-bin +0 -6
  437. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/args +0 -2
  438. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/expect.txt +0 -5
  439. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/kitroot/checks/check-vendored.gate +0 -2
  440. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/check-ported.gate +0 -2
  441. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.knobs +0 -2
  442. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gates.list +0 -4
  443. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stamp.txt +0 -1
  444. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stub-bin +0 -5
  445. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +0 -97
  446. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/args +0 -1
  447. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/expect.txt +0 -1
  448. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/hooks/pre-commit +0 -2
  449. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/args +0 -1
  450. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/expect.txt +0 -1
  451. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/hooks/pre-commit +0 -2
  452. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/args +0 -5
  453. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/expect.txt +0 -1
  454. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/checks/placeholder.txt +0 -3
  455. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/gate-tests/alpha.test.sh +0 -3
  456. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/lib/alpha.sh +0 -3
  457. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/checks/placeholder.txt +0 -3
  458. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/gate-tests/beta.test.sh +0 -3
  459. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/lib/beta.sh +0 -3
  460. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/checks/placeholder.txt +0 -3
  461. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/lib/gate.sh +0 -3
  462. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gate-sdk-config.knobs +0 -7
  463. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gates.list +0 -3
  464. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/args +0 -7
  465. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/expect.txt +0 -1
  466. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/checks/placeholder.txt +0 -3
  467. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/gate-tests/alpha.test.sh +0 -3
  468. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/lib/alpha.sh +0 -3
  469. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/checks/placeholder.txt +0 -3
  470. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/gate-tests/beta.test.sh +0 -3
  471. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/lib/beta.sh +0 -3
  472. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/checks/placeholder.txt +0 -3
  473. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/lib/gate.sh +0 -3
  474. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/scripts/gates.list +0 -3
  475. package/payload/gate-sdk/gate-tests/check-packed-links/bad/alpha-kit/README.md +0 -5
  476. package/payload/gate-sdk/gate-tests/check-packed-links/bad/args +0 -5
  477. package/payload/gate-sdk/gate-tests/check-packed-links/bad/beta-kit/README.md +0 -5
  478. package/payload/gate-sdk/gate-tests/check-packed-links/bad/expect.txt +0 -2
  479. package/payload/gate-sdk/gate-tests/check-packed-links/bad/scripts/gate-sdk-config.knobs +0 -4
  480. package/payload/gate-sdk/gate-tests/check-packed-links/good/alpha-kit/README.md +0 -5
  481. package/payload/gate-sdk/gate-tests/check-packed-links/good/args +0 -8
  482. package/payload/gate-sdk/gate-tests/check-packed-links/good/beta-kit/README.md +0 -9
  483. package/payload/gate-sdk/gate-tests/check-packed-links/good/expect.txt +0 -1
  484. package/payload/gate-sdk/gate-tests/check-packed-links/good/gamma-kit/SPEC.md +0 -4
  485. package/payload/gate-sdk/gate-tests/check-packed-links/good/scripts/gate-sdk-config.knobs +0 -6
  486. package/payload/gate-sdk/gate-tests/check-portability-floor/good/patterns.list +0 -5
  487. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/portability-patterns.list +0 -5
  488. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +0 -2
  489. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +0 -3
  490. /package/payload/gate-sdk/gate-tests/{check-shellcheck → check-psscriptanalyzer}/bad/args +0 -0
  491. /package/payload/gate-sdk/gate-tests/{check-shellcheck → check-psscriptanalyzer}/good/args +0 -0
  492. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/{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/agent-budget-guard.sh +0 -0
  494. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/delegation-config.sh +0 -0
  495. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/session-note.sh +0 -0
  496. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/usage-poller.sh +0 -0
@@ -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
@@ -0,0 +1 @@
1
+ a stale roster no knob names still runs: sort -V
@@ -1,2 +1,2 @@
1
1
  # <pattern-file> (the corpus is scripts/gate-sdk-config.knobs's GATE_SDK_PORTABILITY_PATHS)
2
- patterns.list
2
+ tree/rosters/constructs.list
@@ -2,3 +2,4 @@
2
2
  # knob, which is what makes the pair a parity oracle for the live arm rather than for a
3
3
  # fixture-only second code path: no positional can carry an install-path roster.
4
4
  GATE_SDK_PORTABILITY_PATHS = tree
5
+ GATE_SDK_KIT_DIRS = tree/demo-kit
@@ -0,0 +1,5 @@
1
+ # a kit's starter roster under a declared kit root: it spells every construct it bans, and
2
+ # its skip is proved by GREENNESS rather than by absence — a scanned roster would red this case.
3
+ sort -V
4
+ realpath [^|;]*--
5
+ find [^|;]*-printf
@@ -0,0 +1,6 @@
1
+ # banned-construct fixture (POSIX ERE, one per line; '#' + blank ignored), named by a path
2
+ # carrying no shipped prefix and sitting inside the corpus: self-exempt because the gate resolved it
3
+ sort -V
4
+ realpath [^|;]*--
5
+
6
+ find [^|;]*-printf
@@ -117,6 +117,18 @@ out="$( cd "$SANDBOX/repo" \
117
117
  && gate_run check-portability-floor "$CHECKS" patterns.list 2>&1 )"; rc=$?
118
118
  expect binary-skipped 0 '1 binary member(s) skipped' "$rc" "$out"
119
119
 
120
+ # --- a member whose name git quotes in its line listing is opened under its real
121
+ # spelling: the finding names the file, where a quoted spelling exits 2 on a path
122
+ # that does not exist.
123
+ quoted="$(printf 'na\303\257ve-verb')"
124
+ mkdir -p "$SANDBOX/repo/quoted"
125
+ printf 'sort -V\n' > "$SANDBOX/repo/quoted/$quoted"
126
+ git -C "$SANDBOX/repo" add quoted
127
+ out="$( cd "$SANDBOX/repo" \
128
+ && gate_env GATE_SDK_PORTABILITY_PATHS=quoted \
129
+ && gate_run check-portability-floor "$CHECKS" patterns.list 2>&1 )"; rc=$?
130
+ expect quoted-name 1 "quoted/$quoted:1:" "$rc" "$out"
131
+
120
132
  # --- record order over the tracked bad/ case: the roster arm's block, then the
121
133
  # ASCII arm's, each in path order, then line order. Read
122
134
  # off the pair so the corpus has one home. The corpus knob is set here rather
@@ -129,6 +141,7 @@ out="$( cd "$CASES/bad" \
129
141
  got="$(grep -E '^tree/' <<<"$out")"
130
142
  want="$(printf '%s\n' \
131
143
  'tree/empty-reason-verb:5:' \
144
+ 'tree/portability-patterns.notes.list:1:' \
132
145
  'tree/too-far-verb:5:' \
133
146
  'tree/undeclared-verb:3:' \
134
147
  'tree/strings.ps1:2:' \
@@ -147,8 +160,8 @@ if [[ "$fails" -gt 0 ]]; then
147
160
  exit 1
148
161
  fi
149
162
  if [[ "$unreadable_arm" == run ]]; then
150
- echo "check-portability-floor.test.sh: clean (the arms a case dir cannot reach: an unconfigured corpus disabling the assertion in its own sentence, an absent pattern file doing the same to the roster arm alone, the ASCII arm running under that empty roster, the same knob path finding the violation once set, a GNU escape refused by name at compile, an unreadable pattern file failing closed where an absent one degrades, a binary corpus member skipped-and-counted, and the bad pair's record order — 11 assertions over 8 cases)"
163
+ echo "check-portability-floor.test.sh: clean (the arms a case dir cannot reach: an unconfigured corpus disabling the assertion in its own sentence, an absent pattern file doing the same to the roster arm alone, the ASCII arm running under that empty roster, the same knob path finding the violation once set, a GNU escape refused by name at compile, an unreadable pattern file failing closed where an absent one degrades, a binary corpus member skipped-and-counted, a member whose name git quotes read under its real spelling, and the bad pair's record order — 12 assertions over 9 cases)"
151
164
  else
152
- echo "check-portability-floor.test.sh: clean (the arms a case dir cannot reach: an unconfigured corpus disabling the assertion in its own sentence, an absent pattern file doing the same to the roster arm alone, the ASCII arm running under that empty roster, the same knob path finding the violation once set, a GNU escape refused by name at compile, a binary corpus member skipped-and-counted, and the bad pair's record order — 9 assertions over 7 cases; the unreadable-pattern-file arm declared a skip above, this account reading a mode-000 file)"
165
+ echo "check-portability-floor.test.sh: clean (the arms a case dir cannot reach: an unconfigured corpus disabling the assertion in its own sentence, an absent pattern file doing the same to the roster arm alone, the ASCII arm running under that empty roster, the same knob path finding the violation once set, a GNU escape refused by name at compile, a binary corpus member skipped-and-counted, a member whose name git quotes read under its real spelling, and the bad pair's record order — 10 assertions over 8 cases; the unreadable-pattern-file arm declared a skip above, this account reading a mode-000 file)"
153
166
  fi
154
167
  exit 0
@@ -0,0 +1,2 @@
1
+ ./noisy.ps1:1: PSAvoidUsingWriteHost File uses Write-Host.
2
+ help: PSScriptAnalyzer flagged the script(s) above
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ # Stands in for the PowerShell host: answers as the module's script does when the analyser flags
3
+ # each target, one finding line per target and the status the gate reads as a red.
4
+ [[ "$1 $2 $3 $4" == "-NoLogo -NoProfile -NonInteractive -Command" ]] || exit 9
5
+ while IFS= read -r t; do
6
+ [[ -n "$t" ]] && printf '%s:1: PSAvoidUsingWriteHost File uses Write-Host.\n' "$t"
7
+ done <<<"$CHECKWRIGHT_PSSA_TARGETS"
8
+ exit 1
@@ -0,0 +1 @@
1
+ Write-Output 'clean'
@@ -0,0 +1 @@
1
+ PSSCRIPTANALYZER: clean (1 script(s) at Warning and above, 1 rule(s) excluded)
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ # Stands in for the PowerShell host: answers as the module's script does over a clean corpus,
3
+ # after checking it was started with the script and handed the targets and the exclusions.
4
+ [[ "$1 $2 $3 $4" == "-NoLogo -NoProfile -NonInteractive -Command" ]] || exit 9
5
+ [[ "$CHECKWRIGHT_PSSA_TARGETS" == ./clean.ps1 ]] || exit 9
6
+ [[ "$CHECKWRIGHT_PSSA_EXCLUDE" == PSUseBOMForUnicodeEncodedFile ]] || exit 9
7
+ exit 0
@@ -0,0 +1,2 @@
1
+ GATE_SDK_POWERSHELL = ./pwsh
2
+ GATE_SDK_PSSCRIPTANALYZER_EXCLUDE = PSUseBOMForUnicodeEncodedFile
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
2
  # Fixture script: carries a warning-severity ShellCheck finding (SC2164 — cd
3
- # without || exit); the gate must REJECT this dir.
3
+ # without || exit); the gate must REJECT this case.
4
4
  cd /nonexistent-fixture-dir
5
5
  echo "after cd"
@@ -1 +1,3 @@
1
1
  SC2164
2
+ kit-warn.sh
3
+ tests-warn.sh
@@ -0,0 +1,2 @@
1
+ # spec: gate-sdk/SPEC.md §check-shellcheck — the case's kit roots, pinned so the derivation reads this case's alpha-kit rather than the real gate-sdk root the runner exports
2
+ GATE_SDK_KIT_DIRS = alpha-kit
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ # Fixture script: carries a warning-severity ShellCheck finding (SC2164 — cd
3
+ # without || exit); the gate must REJECT this case.
4
+ cd /nonexistent-fixture-dir
5
+ echo "after cd"
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env bash
2
- # Fixture script: ShellCheck-clean at -S warning; the gate must ACCEPT this dir.
2
+ # Fixture script: ShellCheck-clean at -S warning; the gate must ACCEPT this case.
3
3
  set -uo pipefail
4
4
  echo "hello from a clean fixture script"
@@ -1 +1 @@
1
- SHELLCHECK: clean
1
+ SHELLCHECK: clean (2 scripts)
@@ -0,0 +1,2 @@
1
+ # spec: gate-sdk/SPEC.md §check-shellcheck — the case's kit roots, pinned so the derivation reads this case's alpha-kit rather than the real gate-sdk root the runner exports
2
+ GATE_SDK_KIT_DIRS = alpha-kit
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ # Fixture script: ShellCheck-clean at -S warning; the gate must ACCEPT this case.
3
+ set -uo pipefail
4
+ echo "hello from a clean fixture script"
@@ -6,4 +6,6 @@
6
6
  # is the direction that only B can see: a REMOVAL, not an addition.
7
7
  # C — the copy added `guard_log_fallthrough` and the DELEGATION_KIT_PAUSE_PCT
8
8
  # knob with no `# copy-divergence:` marker naming either.
9
+ # The template sits under vendor/delegation-kit, the kit root the case's knob file
10
+ # names, a nesting a two-level template glob never reached.
9
11
  .
@@ -0,0 +1 @@
1
+ GATE_SDK_KIT_DIRS = vendor/delegation-kit
@@ -6,5 +6,8 @@
6
6
  # the tree's own pair is already repaired, so green-on-sanctioned is proven here
7
7
  # rather than captured. A second pair, session-note.sh, carries no knob-with-default
8
8
  # idiom on either side: its knob class is empty and it counts as a compared pair,
9
- # which is what the expected pair count of 2 asserts.
9
+ # which is what the expected pair count of 2 asserts. The templates sit under
10
+ # vendor/delegation-kit, the kit root the case's knob file names, so a nested
11
+ # vendoring is paired; stray/templates/ is under no kit root and is never paired,
12
+ # though its session-note.sh diverges from the copy.
10
13
  .
@@ -0,0 +1 @@
1
+ GATE_SDK_KIT_DIRS = vendor/delegation-kit
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ # spec: stray/README.md §notes — a templates/ directory under no kit root: never paired, though its surface diverges from scripts/session-note.sh.
3
+ set -uo pipefail
4
+ stray_only() { :; }
@@ -13,7 +13,10 @@ sb="$(mktemp -d)"
13
13
  trap 'rm -rf "$sb"' EXIT
14
14
  fails=0
15
15
 
16
- mkdir -p "$sb/repo/widget-kit/templates" "$sb/repo/scripts" "$sb/norepo/scripts"
16
+ # widget-kit carries a kit marker and sits beside the sandbox's own gate-sdk root, so the kit-root
17
+ # derivation finds it as it would a vendored kit.
18
+ mkdir -p "$sb/repo/widget-kit/templates" "$sb/repo/widget-kit/checks" "$sb/repo/gate-sdk" \
19
+ "$sb/repo/scripts" "$sb/norepo/scripts"
17
20
  cat > "$sb/repo/widget-kit/templates/thing.sh" <<'EOF'
18
21
  # spec: widget-kit/SPEC.md §thing — the template
19
22
  helper_one() { :; }
@@ -30,7 +33,8 @@ git -C "$sb/repo" config user.name t
30
33
 
31
34
  # --- the default root: entered from a SUBDIRECTORY, so a cwd-relative default would find
32
35
  # --- no pair at all and pass vacuously where the toplevel derivation finds one.
33
- out="$( cd "$sb/repo/scripts" && gate_run check-template-copy-parity "$DIR/checks" 2>&1 )"; rc=$?
36
+ out="$( cd "$sb/repo/scripts" && gate_env GATE_SDK_ROOT="$sb/repo/gate-sdk" \
37
+ && gate_run check-template-copy-parity "$DIR/checks" 2>&1 )"; rc=$?
34
38
  if [[ "$rc" -ne 0 ]]; then
35
39
  echo " FAIL [toplevel-default]: want exit 0, got $rc -- $out"; fails=$((fails + 1))
36
40
  elif ! grep -qF '1 template<->copy pair(s)' <<<"$out"; then
@@ -6,6 +6,7 @@
6
6
  kpi-always-loaded
7
7
  kpi-amendment-age
8
8
  kpi-deferred-age
9
+ kpi-deprecated-surface
9
10
  kpi-gate-backlog
10
11
  kpi-gate-runtime
11
12
  kpi-incident-recurrence
@@ -4,6 +4,7 @@
4
4
  kpi-always-loaded
5
5
  kpi-amendment-age
6
6
  kpi-deferred-age
7
+ kpi-deprecated-surface
7
8
  kpi-gate-backlog
8
9
  kpi-gate-runtime
9
10
  kpi-incident-recurrence
@@ -5,3 +5,4 @@ tree/multi.txt:3:one leak on its own line: /home/carol/three
5
5
  tree/multi.txt:4:one leak on its own line: /home/carol/three
6
6
  tree/second-leak.txt:2:a single line: the promo URL claude.com/claude-code is banned here too.
7
7
  tree/accounts.txt:1:The forge accounts were `fixture-acct-0` and `fixture-acct-1`, one per machine.
8
+ tree/msg-patterns.old.list:1:a stale roster no knob names: /home/dave/old
@@ -0,0 +1 @@
1
+ a stale roster no knob names: /home/dave/old
@@ -1,2 +1,2 @@
1
- # <scan-root> <pattern-file>
2
- tree patterns.list
1
+ # <scan-root> <pattern-file>...
2
+ tree patterns.list tree/rosters/extra.list
@@ -0,0 +1 @@
1
+ GATE_SDK_KIT_DIRS = tree/demo-kit
@@ -0,0 +1,2 @@
1
+ # A kit's starter roster contains, by construction, what it bans: /home/bob/projects.
2
+ # It sits under a declared kit root's templates/, so it is self-exempt by name and never read as content.
@@ -0,0 +1,2 @@
1
+ # A roster the gate resolved, named by a path carrying no shipped prefix: it bans /home/bob/projects
2
+ # and spells it, and is self-exempt because the gate was handed it.
@@ -109,6 +109,7 @@ got="$(grep -E '^tree/' <<<"$out")"
109
109
  want="$(printf '%s\n' \
110
110
  'tree/accounts.txt:1:' \
111
111
  'tree/leak.txt:1:' \
112
+ 'tree/msg-patterns.old.list:1:' \
112
113
  'tree/multi.txt:1:' \
113
114
  'tree/multi.txt:3:' \
114
115
  'tree/multi.txt:4:' \
@@ -58,7 +58,7 @@ for arm in docs-mirror roadmap queue-index entry-history port-blockers; do
58
58
  done
59
59
 
60
60
  # A free-text reader refuses a dash-led operand rather than reading it as an empty reading.
61
- for arm in md-index pub-index stage-rules ruling-staleness close-surfaces; do
61
+ for arm in md-index pub-index stage-rules stage-contract ruling-staleness close-surfaces; do
62
62
  run "dash-$arm" 2 "--emit-$arm" --help
63
63
  has "dash-$arm" err "unrecognized option: --help"
64
64
  usage_once "dash-$arm"
@@ -4,7 +4,6 @@ set -uo pipefail
4
4
  source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
5
5
 
6
6
  cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 2
7
- ROOT="$(pwd -P)"
8
7
  # spec: gate-sdk/SPEC.md §The non-gate arm — the emitter is a compiled arm reached through the front-end, so this suite drives that entry point rather than a script
9
8
  EMIT=(gate-sdk/bin/run-gates.sh --emit enforcement-map)
10
9
  [[ -x "${EMIT[0]}" ]] || { echo "enforcement-map.test: front-end not found: ${EMIT[0]}"; exit 2; }
@@ -83,6 +82,15 @@ tmpl="$(GATE_SDK_ENFORCE_SCAN_DIR="$scandir" bash "${EMIT[@]}")"
83
82
  assert_has template-inert "live-surface-alpha" "$tmpl"
84
83
  assert_absent template-inert "template-surface-beta" "$tmpl"
85
84
 
85
+ # spec: gate-sdk/SPEC.md §enforcement-map — a kit cell links only where the page's directory
86
+ # tracks the kit's page: the default page's docs/ tracks each kit's index.md, and a page knob
87
+ # pointing into an untracked scratch directory writes every kit name as plain text.
88
+ assert_has kit-page-linked "| [gate-sdk](gate-sdk/index.md) |" "$base"
89
+ mkdir -p "$scratch/page"
90
+ unlinked="$(GATE_SDK_ENFORCEMENT_FILE="$scratch/page/enforcement.md" bash "${EMIT[@]}")"
91
+ assert_has kit-page-untracked "| gate-sdk |" "$unlinked"
92
+ assert_absent kit-page-untracked "](gate-sdk/index.md)" "$unlinked"
93
+
86
94
  [[ "$fails" -eq 0 ]] || { echo "enforcement-map.test: $fails assertion(s) failed"; exit 1; }
87
- echo "enforcement-map.test: clean (set-but-missing knobs refuse; unset-with-default-absent sections drop independently; gate registry always present)"
95
+ echo "enforcement-map.test: clean (set-but-missing knobs refuse; unset-with-default-absent sections drop independently; gate registry always present; a kit cell links only a tracked kit page)"
88
96
  exit 0
@@ -122,12 +122,38 @@ got="$(gate_command check-one "$sandbox/a" "$sandbox/b" | paste -sd' ' -)"
122
122
  [[ "$got" == "$sandbox/b/check-one.sh" ]] \
123
123
  || { echo " FAIL: gate_command shell argv was '$got'"; fails=$((fails + 1)); }
124
124
 
125
- # gate_command: a .gate member yields <binary> <name> when the binary is executable
126
- printf '#!/bin/sh\n' > "$sandbox/fakebin"; chmod +x "$sandbox/fakebin"
125
+ # gate_command: a .gate member yields the binary's `--emit gate-argv` answer when it is executable
126
+ cat >"$sandbox/fakebin" <<'EOF'
127
+ #!/bin/sh
128
+ [ "$1 $2" = "--emit gate-argv" ] || exit 9
129
+ b=${3##*/}
130
+ printf '%s\n%s\n' "$0" "${b%.gate}"
131
+ EOF
132
+ chmod +x "$sandbox/fakebin"
127
133
  got="$(GATE_SDK_NATIVE_BIN="$sandbox/fakebin" gate_command check-ported "$sandbox/a" "$sandbox/b" | paste -sd' ' -)"
128
134
  [[ "$got" == "$sandbox/fakebin check-ported" ]] \
129
135
  || { echo " FAIL: gate_command native argv was '$got'"; fails=$((fails + 1)); }
130
136
 
137
+ # gate_command: an exec member yields the host, its arguments and the target, from the real arm
138
+ bin="$(gate_native_bin)"
139
+ printf '# exec: check-ps.ps1\n' >"$sandbox/a/check-ps.gate"
140
+ : >"$sandbox/a/check-ps.ps1"; : >"$sandbox/pwsh"
141
+ got="$(GATE_SDK_POWERSHELL="$sandbox/pwsh" gate_command check-ps "$sandbox/a" | paste -sd' ' -)"
142
+ [[ "$got" == "$sandbox/pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -File $sandbox/a/check-ps.ps1" ]] \
143
+ || { echo " FAIL: gate_command exec argv was '$got' (binary $bin)"; fails=$((fails + 1)); }
144
+
145
+ # gate_command: an executable exec member yields its suffixed path alone, from the real arm
146
+ printf '# exec: bin/check-rs\n' >"$sandbox/a/check-rs.gate"
147
+ mkdir -p "$sandbox/a/bin"; : >"$sandbox/a/bin/check-rs$(gate_exe_suffix)"; chmod +x "$sandbox/a/bin/check-rs$(gate_exe_suffix)"
148
+ got="$(gate_command check-rs "$sandbox/a" | paste -sd' ' -)"
149
+ [[ "$got" == "$sandbox/a/bin/check-rs$(gate_exe_suffix)" ]] \
150
+ || { echo " FAIL: gate_command executable argv was '$got' (binary $bin)"; fails=$((fails + 1)); }
151
+
152
+ # fail-closed: the arm's refusal, here an empty host, is exit 2 and never return 1
153
+ ( GATE_SDK_POWERSHELL='' gate_command check-ps "$sandbox/a" >/dev/null 2>&1 )
154
+ [[ "$?" -eq 2 ]] \
155
+ || { echo " FAIL: gate_command did not exit 2 on the arm's refusal"; fails=$((fails + 1)); }
156
+
131
157
  # fail-closed: an absent binary is exit 2, never a skip and never a pass
132
158
  ( GATE_SDK_NATIVE_BIN="$sandbox/nope" gate_command check-ported "$sandbox/a" "$sandbox/b" >/dev/null 2>&1 )
133
159
  [[ "$?" -eq 2 ]] \
@@ -143,5 +169,5 @@ if [[ "$fails" -gt 0 ]]; then
143
169
  echo "lib-gate.test: $fails assertion(s) failed"
144
170
  exit 1
145
171
  fi
146
- echo "lib-gate.test: ok (fail_closed branches; gate_path_pruned; GATE_GREP_EXCLUDES; gate_find prune incl. the worktrees leaf; PRUNE_EXTRA_DIRS append over both branches; registry + resolution; .gate declaration/argv split + dispatch fail-closed)"
172
+ echo "lib-gate.test: ok (fail_closed branches; gate_path_pruned; GATE_GREP_EXCLUDES; gate_find prune incl. the worktrees leaf; PRUNE_EXTRA_DIRS append over both branches; registry + resolution; .gate declaration/argv split + PowerShell and executable exec argv + dispatch fail-closed)"
147
173
  exit 0
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env bash
2
+ # spec: gate-sdk/SPEC.md §lib/test-hermetic.sh — inherited kit variables are scrubbed before library pins
3
+ set -uo pipefail
4
+ source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
5
+
6
+ out="$(bash -c '
7
+ export GATE_SDK_VERBOSE=foreign CANON_KIT_SPEC_NAME=foreign
8
+ export GATE_SDK_GATES_DIR=foreign EVIDENCE_KIT_LOCK_FILE=foreign
9
+ export GATE_SDK_NATIVE_BIN=/pinned/gates
10
+ source "$1"
11
+ [[ ! -v GATE_SDK_VERBOSE && ! -v CANON_KIT_SPEC_NAME && ! -v GATE_SDK_GATES_DIR && ! -v EVIDENCE_KIT_LOCK_FILE ]] || exit 1
12
+ [[ "$GATE_SDK_NATIVE_BIN" == /pinned/gates ]] || exit 1
13
+ [[ -f "$GATE_SDK_KNOB_FILE" && ! -s "$GATE_SDK_KNOB_FILE" ]] || exit 1
14
+ [[ -f "$CANON_KIT_KNOB_FILE" && ! -s "$CANON_KIT_KNOB_FILE" ]] || exit 1
15
+ [[ "$GATE_SDK_ROOT" == "$2" ]] || exit 1
16
+ export GATE_SDK_VERBOSE=deliberate
17
+ [[ "$GATE_SDK_VERBOSE" == deliberate ]] || exit 1
18
+ echo survived
19
+ ' bash "$GATE_SDK_TEST_LIB_DIR/test-hermetic.sh" "$GATE_SDK_ROOT")" || {
20
+ echo 'FAIL: inherited kit variables survived or library pins were lost'
21
+ exit 1
22
+ }
23
+ [[ "$out" == survived ]] || exit 1
24
+ echo 'LIB-TEST-HERMETIC: clean (inherited kit variables cleared, binary kept, library and later pins applied)'