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
@@ -0,0 +1,65 @@
1
+ #!/usr/bin/env bash
2
+ # spec: queue-kit/SPEC.md §Layout and configuration — a section knob naming a heading that ends in `:` is refused at exit 2, one case per section knob, which the good/bad pair cannot hold: a refusal is exit 2, and a `bad/` case exits 1.
3
+ #
4
+ # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
5
+ set -uo pipefail
6
+ source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
7
+
8
+ ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
9
+ CHECKS="$ROOT/queue-kit/checks"
10
+ SANDBOX="$(mktemp -d)"
11
+ trap 'rm -rf "$SANDBOX"' EXIT
12
+ mkdir -p "$SANDBOX/scripts"
13
+
14
+ fails=0
15
+
16
+ # The heading each case's knob names is present with a value after the colon, so a prefix match
17
+ # of the derived name would read the floor as met.
18
+ cat >"$SANDBOX/TASK-QUEUE.md" <<'EOF'
19
+ # TASK-QUEUE.md
20
+
21
+ ## Iteration: seeded
22
+
23
+ ## New Features
24
+
25
+ ## Now: this week
26
+
27
+ ## Technical Debt
28
+
29
+ ## Deferred
30
+
31
+ ## Backlog: later
32
+
33
+ ## Icebox: cold
34
+
35
+ ## Done
36
+
37
+ ## Done: archive
38
+
39
+ ## Lessons Learned
40
+ EOF
41
+
42
+ # $1 = the case name, $2 = the knob file body, $3 = the knob the refusal names
43
+ refused() {
44
+ printf '%s\n' "$2" >"$SANDBOX/scripts/queue-config.knobs"
45
+ local out rc
46
+ out="$( cd "$SANDBOX" && gate_env "QUEUE_KIT_KNOB_FILE=$SANDBOX/scripts/queue-config.knobs" \
47
+ && gate_run check-queue-sections "$CHECKS" 2>&1 )"; rc=$?
48
+ if [[ "$rc" -ne 2 ]] || [[ "$out" != *"$3 names '"*"', ending in ':'"* ]]; then
49
+ echo " FAIL [$1]: a section knob ending in ':' must refuse at exit 2 naming $3 (rc=$rc): $out"
50
+ fails=$((fails + 1))
51
+ fi
52
+ }
53
+
54
+ refused active "QUEUE_KIT_ACTIVE_SECTIONS[] = New Features
55
+ QUEUE_KIT_ACTIVE_SECTIONS[] = Now:" QUEUE_KIT_ACTIVE_SECTIONS
56
+ refused deferred "QUEUE_KIT_DEFERRED_SECTION = Backlog:" QUEUE_KIT_DEFERRED_SECTION
57
+ refused icebox "QUEUE_KIT_ICEBOX_SECTION = Icebox:" QUEUE_KIT_ICEBOX_SECTION
58
+ refused "done" "QUEUE_KIT_DONE_SECTION = Done:" QUEUE_KIT_DONE_SECTION
59
+
60
+ if [[ "$fails" -gt 0 ]]; then
61
+ echo "check-queue-sections.test: $fails assertion(s) failed"
62
+ exit 1
63
+ fi
64
+ echo "check-queue-sections.test: ok (an active, deferred, icebox and done section knob ending in ':' each refuse at exit 2)"
65
+ exit 0
@@ -92,9 +92,18 @@ expect stale-status-reds empty.knobs 1 "ice-task says (deferred) but is Icebox"
92
92
  printf '%s\n\nNote: `ice-task` (icebox), `old-task` (retired), `tool-name` (done) and `nothing` (done).\n' "$queue" >"$sb/TASK-QUEUE.md"
93
93
  expect accurate-status-clean empty.knobs 0 "QUEUE-SLUG-LIVENESS: clean"
94
94
 
95
+ # a repository git refuses has no history to read, and an empty retired set would pass the citation
96
+ printf '%s\n' "$queue" >"$sb/TASK-QUEUE.md"
97
+ printf '# page\n\nThe pending `old-task` work.\n' >"$sb/docs/page.md"
98
+ mv "$sb/.git" "$sb/.git-saved"
99
+ printf 'gitdir: %s/absent\n' "$sb" >"$sb/.git"
100
+ expect refused-repository-exits-2 cite.knobs 2 "marks a repository"
101
+ rm "$sb/.git"
102
+ mv "$sb/.git-saved" "$sb/.git"
103
+
95
104
  if [[ "$fails" -gt 0 ]]; then
96
105
  echo "check-queue-slug-liveness.test.sh: $fails case(s) failed"
97
106
  exit 1
98
107
  fi
99
- echo "check-queue-slug-liveness.test.sh: clean (retired set from the scratch repo's own history: the empty knob skips, a retired citation reds, a live name and a reasoned valve clear, a reasonless valve reds, a stale status reds and accurate ones clear, 7 cases)"
108
+ echo "check-queue-slug-liveness.test.sh: clean (retired set from the scratch repo's own history: the empty knob skips, a retired citation reds, a live name and a reasoned valve clear, a reasonless valve reds, a stale status reds and accurate ones clear, a refused repository exits 2, 8 cases)"
100
109
  exit 0
@@ -24,6 +24,10 @@ a nested unit of beta.
24
24
 
25
25
  collapse the duplicated log lines.
26
26
 
27
+ - ```text
28
+ a line inside a list-item fence is a quoted log line and is never measured, however far past the budget it happens to run
29
+ ```
30
+
27
31
  ## Deferred
28
32
 
29
33
  ### gamma-feature
@@ -28,6 +28,10 @@ a nested unit of beta, its own tag line its lead rather than a body line of its
28
28
 
29
29
  collapse the duplicated log lines. a continuation mentioning [drain-exempt: whatever] is tolerated (lead carries the class).
30
30
 
31
+ - ```text
32
+ a tag quoted in a list-item fence, [blocked-by: alpha-feature], is an example.
33
+ ```
34
+
31
35
  ### watch-the-run
32
36
 
33
37
  [observed-by: ci-run]
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env bash
2
+ # spec: queue-kit/SPEC.md §check-task-conservation — the repository answer no case dir can carry: outside a repository there is no HEAD baseline and the gate is clean, while a repository git refuses, a nested one git skips included, exits 2 rather than reading as none.
3
+ #
4
+ # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
5
+ set -uo pipefail
6
+ source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
7
+
8
+ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # queue-kit/
9
+ SANDBOX="$(mktemp -d)"
10
+ trap 'rm -rf "$SANDBOX"' EXIT
11
+
12
+ fails=0
13
+ expect() { # $1=case $2=cwd $3=want-exit $4=want-line
14
+ local out rc
15
+ out="$(cd "$2" && gate_run check-task-conservation "$DIR/checks" 2>&1)"; rc=$?
16
+ if [[ "$rc" -ne "$3" ]] || ! grep -qF -- "$4" <<<"$out"; then
17
+ echo " FAIL [$1]: want exit $3 carrying '$4', got $rc -- $out"; fails=$((fails + 1))
18
+ fi
19
+ }
20
+
21
+ mkdir -p "$SANDBOX/none"
22
+ expect no-repository-clean "$SANDBOX/none" 0 "no git repository"
23
+
24
+ mkdir -p "$SANDBOX/refused"
25
+ printf 'gitdir: %s/absent\n' "$SANDBOX/refused" >"$SANDBOX/refused/.git"
26
+ expect refused-repository-exits-2 "$SANDBOX/refused" 2 "marks a repository"
27
+
28
+ git init -q "$SANDBOX/outer"
29
+ mkdir -p "$SANDBOX/outer/inner/.git"
30
+ printf 'garbage\n' >"$SANDBOX/outer/inner/.git/HEAD"
31
+ expect nested-skipped-exits-2 "$SANDBOX/outer/inner" 2 "marks a repository beneath it"
32
+
33
+ if [[ "$fails" -gt 0 ]]; then
34
+ echo "check-task-conservation.test.sh: $fails case(s) failed"
35
+ exit 1
36
+ fi
37
+ echo "check-task-conservation.test.sh: clean (no repository clean, a refused and a nested skipped repository exit 2, 3 cases)"
38
+ exit 0
@@ -24,10 +24,13 @@ a heading whose text is no slug.
24
24
 
25
25
  - **stray-entry** — a bullet entry left in the retired grammar.
26
26
 
27
+ None
28
+
27
29
  ## Deferred
28
30
 
29
31
  ## Done
30
32
 
31
33
  - gone-task
34
+ - none
32
35
 
33
36
  ## Lessons Learned
@@ -8,3 +8,6 @@ same-file link naming no live entry
8
8
  TASK-QUEUE.md:15: (#gone-task)
9
9
  live entry cited in backticks rather than linked
10
10
  TASK-QUEUE.md:9: `tidy-logs`
11
+ placeholder token standing where an entry would
12
+ TASK-QUEUE.md:27: 'none' outside every entry
13
+ TASK-QUEUE.md:34: done slug 'none'
@@ -24,6 +24,14 @@ a nested unit of beta.
24
24
 
25
25
  collapse the duplicated log lines.
26
26
 
27
+ - ```text
28
+ a reference quoted in a list-item fence, `beta-feature` or (#gone-task), is an example.
29
+ ```
30
+
31
+ ### none-left-over
32
+
33
+ a slug that only starts with a placeholder token.
34
+
27
35
  ## Deferred
28
36
 
29
37
  A section preamble may list its entries: [gamma-feature](#gamma-feature).
@@ -0,0 +1,137 @@
1
+ #!/usr/bin/env bash
2
+ # spec: queue-kit/SPEC.md §The roadmap-lag arm — the seeded history a crate unit test cannot reach,
3
+ # since a slice is read off the child's last live revision: a split child landing under a later
4
+ # horizon and under an untagged parent each print a row, one under a first-horizon parent prints
5
+ # none, a live pair citing each other prints none, and a queue file outside a work tree prints no
6
+ # row and says why on stderr.
7
+ #
8
+ # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
9
+ set -uo pipefail
10
+ source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
11
+
12
+ SANDBOX="$(mktemp -d)"
13
+ OUTSIDE="$(mktemp -d)"
14
+ trap 'rm -rf "$SANDBOX" "$OUTSIDE"' EXIT
15
+
16
+ fails=0
17
+ checks=0
18
+ note() { echo " FAIL [$1]: $2"; fails=$((fails + 1)); }
19
+
20
+ git -C "$SANDBOX" init -q
21
+ git -C "$SANDBOX" config user.email seed@example.invalid
22
+ git -C "$SANDBOX" config user.name Seed
23
+
24
+ cat >"$SANDBOX/config.knobs" <<'EOF'
25
+ QUEUE_KIT_HORIZONS[] = now
26
+ QUEUE_KIT_HORIZONS[] = next
27
+ QUEUE_KIT_HORIZONS[] = later
28
+ QUEUE_KIT_TRACKS[] = core
29
+ EOF
30
+ export QUEUE_KIT_KNOB_FILE="$SANDBOX/config.knobs"
31
+
32
+ cite() { # $1 = link or retired, $2 = the cited slug
33
+ if [[ "$1" == link ]]; then printf '[%s](#%s)' "$2" "$2"; else printf '`%s`' "$2"; fi
34
+ }
35
+
36
+ queue() { # $1 = the live children block, $2 = the parents' citation form, $3 = the done lines
37
+ cat >"$SANDBOX/TASK-QUEUE.md" <<EOF
38
+ # TASK-QUEUE.md
39
+
40
+ ## Iteration: seeded
41
+
42
+ ## New Features
43
+
44
+ ### p-later
45
+
46
+ [roadmap: later/core]
47
+
48
+ the later parent, split into $(cite "$2" c-later).
49
+
50
+ ### p-untagged
51
+
52
+ the untagged parent, split into $(cite "$2" c-untagged).
53
+
54
+ ### p-now
55
+
56
+ [roadmap: now/core]
57
+
58
+ the first-horizon parent, split into $(cite "$2" c-now).
59
+
60
+ ### a-live
61
+
62
+ cites [b-live](#b-live).
63
+
64
+ ### b-live
65
+
66
+ cites [a-live](#a-live).
67
+ $1
68
+ ## Technical Debt
69
+
70
+ ## Deferred
71
+
72
+ ## Done
73
+ ${3:-}
74
+
75
+ ## Lessons Learned
76
+ EOF
77
+ }
78
+
79
+ commit() { git -C "$SANDBOX" add TASK-QUEUE.md && git -C "$SANDBOX" commit -q -m "$1"; }
80
+
81
+ CHILDREN='
82
+ ### c-later
83
+
84
+ split from [p-later](#p-later).
85
+
86
+ ### c-untagged
87
+
88
+ split from [p-untagged](#p-untagged).
89
+
90
+ ### c-now
91
+
92
+ split from [p-now](#p-now).
93
+ '
94
+ DONE='- c-later
95
+ - c-untagged
96
+ - c-now'
97
+
98
+ queue "$CHILDREN" link; commit "split the three children off their parents"
99
+ queue '' retired "$DONE"; commit "land the three children"
100
+
101
+ arm() { ( cd "$SANDBOX" && gate_arm_run --emit-roadmap-lag "$@" 2>"$SANDBOX/stderr" ); }
102
+
103
+ out="$(arm)"; rc=$?
104
+ checks=$((checks + 1))
105
+ [[ "$rc" -eq 0 ]] || note exit "the arm exited $rc rather than 0: $out"
106
+
107
+ checks=$((checks + 1))
108
+ grep -qxF "$(printf 'p-later\tlater\tc-later')" <<<"$out" \
109
+ || note later-row "a slice under a later-horizon parent printed no row: $out"
110
+ checks=$((checks + 1))
111
+ grep -qxF "$(printf 'p-untagged\t-\tc-untagged')" <<<"$out" \
112
+ || note untagged-row "a slice under an untagged parent printed no '-' row: $out"
113
+ checks=$((checks + 1))
114
+ grep -qF 'p-now' <<<"$out" && note first-horizon "a first-horizon parent printed a row: $out"
115
+ checks=$((checks + 1))
116
+ grep -qE '^(a|b)-live' <<<"$out" && note live-pair "two live entries citing each other printed a row: $out"
117
+ checks=$((checks + 1))
118
+ [[ "$(grep -c . <<<"$out")" -eq 2 ]] || note row-count "the report is not exactly the two lagging rows: $out"
119
+
120
+ checks=$((checks + 1))
121
+ cp "$SANDBOX/TASK-QUEUE.md" "$OUTSIDE/TASK-QUEUE.md"
122
+ out="$(arm "$OUTSIDE/TASK-QUEUE.md")"; rc=$?
123
+ [[ "$rc" -eq 0 && -z "$out" ]] || note outside "a queue outside a work tree printed rows or exited $rc: $out"
124
+ grep -qF 'no slice can be confirmed' "$SANDBOX/stderr" \
125
+ || note outside-stderr "a queue outside a work tree said nothing on stderr: $(cat "$SANDBOX/stderr")"
126
+
127
+ checks=$((checks + 1))
128
+ : >"$SANDBOX/config.knobs"
129
+ out="$(arm)"; rc=$?
130
+ [[ "$rc" -eq 2 ]] || note no-horizon "no configured horizon exited $rc rather than 2: $out"
131
+
132
+ if [[ "$fails" -gt 0 ]]; then
133
+ echo "roadmap-lag.test.sh: $fails case(s) failed"
134
+ exit 1
135
+ fi
136
+ echo "roadmap-lag.test.sh: clean (a split slice under a later-horizon or untagged parent prints a row, one under a first-horizon parent and a live citing pair print none, a queue outside a work tree prints no row and says why on stderr, and no configured horizon is exit 2; $checks checks)"
137
+ exit 0
@@ -14,7 +14,7 @@ Deployment-truth governance for a docs site served from the repo (GitHub Pages a
14
14
 
15
15
  The template — `templates/site-health.yml` — is a scheduled probe of the live site (apex/www/http HTTPS, redirects, certificate expiry, release-body note pointers, and theme highlight-class drift against that snapshot). It verifies a *deployment*, not a tree, so it ships as a workflow a consumer copies, never a gate: the line is where the asserted object lives, and none of what it asserts is in any checkout. See [SPEC.md](https://checkwright.dev/site-kit/SPEC#the-monitor-boundary) for why that boundary is load-bearing.
16
16
 
17
- This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#consumer-payload).
17
+ This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://checkwright.dev/gate-sdk/SPEC#consumer-payload).
18
18
 
19
19
  ## Install
20
20
 
@@ -32,7 +32,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
32
32
  ```
33
33
  <!-- gate-roster:end -->
34
34
 
35
- The pre-commit hook runs the gates their `# graph:` manifests trigger, read at commit; `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes it once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered. `check-docs-render-fidelity` needs ruby plus the kramdown-parser-gfm gem (the Pages parser), and `check-docs-liquid-parse` needs ruby with the `liquid` gem; a consumer without a published docs site simply omits both, and one whose host runs no Liquid omits the second.
35
+ The pre-commit hook runs the gates their `# graph:` manifests trigger, read at commit; `--install-hooks` on the gate binary `GATE_SDK_NATIVE_BIN` names places both hooks in a clone once, and a gate registered later is reached with no re-install. `check-docs-render-fidelity` needs ruby plus the kramdown-parser-gfm gem (the Pages parser), and `check-docs-liquid-parse` needs ruby with the `liquid` gem; a consumer without a published docs site simply omits both, and one whose host runs no Liquid omits the second.
36
36
 
37
37
  2. Establish the host source of truth — a CNAME file holding exactly one host line, at the path `SITE_KIT_CNAME` names (site-kit/SPEC.md owns its fallback).
38
38
 
@@ -40,7 +40,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
40
40
 
41
41
  4. Optional highlight coverage — if your layout restyles code highlighting, track a snapshot of the classes your theme's stylesheet colours (one `.<class>` per line under a `# contract:` header) and set `SITE_KIT_HIGHLIGHT_TOKENS` to it in `site-config.knobs`. The monitor's theme-drift arm prints the list to paste.
42
42
 
43
- 5. Optional live monitor — copy `templates/site-health.yml` verbatim into `.github/workflows/`, then set three groups of step env or delete the arm each belongs to: `ALT_DOMAIN` (drop the alternate-host probe if you serve no redirect alias), `RELEASE_NOTE_GLOB` / `RELEASE_NOTE_TAG_KEY` / `RELEASE_NOTE_URL_PATH` (drop the release-body arm if you publish no release notes), and `HIGHLIGHT_CSS_PATH` / `HIGHLIGHT_TOKENS_FILE` (the theme-drift arm, skipped while both are empty). It opens/updates/closes a `site-health` issue on its own schedule. The release-body arm needs the template's `contents: read` permission — it is an allowlist, not an addition — and `RELEASE_NOTE_URL_PATH` is the value worth checking twice: [site-kit/SPEC.md §templates/site-health.yml](https://checkwright.dev/site-kit/SPEC#templatessite-healthyml) names the trap.
43
+ 5. Optional live monitor — copy `templates/site-health.yml` verbatim into `.github/workflows/`, then set three groups of step env or delete the arm each belongs to: `ALT_DOMAIN` (drop the alternate-host probe if you serve no redirect alias), `RELEASE_NOTE_GLOB` / `RELEASE_NOTE_TAG_KEY` / `RELEASE_NOTE_URL_PATH` (drop the release-body arm if you publish no release notes), and `HIGHLIGHT_CSS_PATH` / `HIGHLIGHT_TOKENS_FILE` (the theme-drift arm, skipped while both are empty). The two `RESAMPLE_*` values bound the resample, and `RESAMPLE_ATTEMPTS: '1'` turns it off ([SPEC](https://checkwright.dev/site-kit/SPEC#templatessite-healthyml) states their sets). A failure reds the run. Set the report step's `ISSUE_TRACKING: 'on'` and add `issues: write` to the permissions block to have it also open, update and close a `site-health` issue. The release-body arm needs the template's `contents: read` permission — it is an allowlist, not an addition — and `RELEASE_NOTE_URL_PATH` is the value worth checking twice: [site-kit/SPEC.md §templates/site-health.yml](https://checkwright.dev/site-kit/SPEC#templatessite-healthyml) names the trap.
44
44
 
45
45
  ## Test
46
46
 
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: a rule that nothing closes
3
+
4
+ <details>
5
+ <summary>Raw body</summary>
6
+
7
+ Its **markdown** prints raw.
8
+ </details>
@@ -2,3 +2,4 @@ docs/regions.md:3: region opens without markdown="1"
2
2
  docs/regions.md:9: region carries no <summary>
3
3
  docs/regions.md:14: region hides a heading
4
4
  docs/regions.md:20: region is never closed
5
+ docs/unclosed.md:4: region opens without markdown="1"
@@ -10,6 +10,13 @@ Run the one-line install first.
10
10
  echo step
11
11
  ```
12
12
 
13
+ The same block as a list item:
14
+
15
+ - ```sh
16
+ # a comment line, not a heading
17
+ echo step
18
+ ```
19
+
13
20
  | Step | Command |
14
21
  | --- | --- |
15
22
  | one | `echo one` |
@@ -0,0 +1,9 @@
1
+ ---
2
+ title: A block closed on dots
3
+ ...
4
+
5
+ The body below the dotted closer reads `{{ broken` as Liquid.
6
+
7
+ ---
8
+
9
+ A thematic break, never a closer.
@@ -1,2 +1,3 @@
1
1
  docs/span.md: Liquid syntax error (line 3): Variable '{{
2
+ docs/dotted.md: Liquid syntax error (line 5): Variable '{{
2
3
  docs/_templates/default.html: Liquid syntax error (line 5): 'if' tag was never closed
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: "A block closed on dots holds {{ as YAML too"
3
+ ...
4
+
5
+ # A page whose front matter closes on dots
6
+
7
+ Its body parses.
@@ -1 +1 @@
1
- DOCS-LIQUID-PARSE: clean (5 file(s) under docs parse under the Liquid parser: 3 markdown page(s), 1 front-matter file(s), 1 template(s))
1
+ DOCS-LIQUID-PARSE: clean (6 file(s) under docs parse under the Liquid parser: 4 markdown page(s), 1 front-matter file(s), 1 template(s))
@@ -0,0 +1,219 @@
1
+ #!/usr/bin/env bash
2
+ # spec: site-kit/SPEC.md §templates/site-health.yml — executes the template's probe and report run blocks under PATH stubs
3
+ set -uo pipefail
4
+ source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
5
+
6
+ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
7
+ TEMPLATE="$DIR/templates/site-health.yml"
8
+ PROBE_STEP="probe live site"
9
+ REPORT_STEP="report the probe result"
10
+
11
+ fails=0
12
+ cases=0
13
+ tmp="$(mktemp -d)"; trap 'rm -rf "$tmp"' EXIT
14
+
15
+ extract_run() {
16
+ awk -v name="$1" '
17
+ function indent(s) { match(s, /^ */); return RLENGTH }
18
+ !step { t = $0; sub(/^[[:space:]]+/, "", t); if (t == "- name: " name) { step = 1; sindent = indent($0) }; next }
19
+ step && !run {
20
+ if ($0 ~ /^[[:space:]]*- name: / && indent($0) <= sindent) exit
21
+ if ($0 ~ /^[[:space:]]*run: \|[[:space:]]*$/) run = 1
22
+ next
23
+ }
24
+ run {
25
+ if ($0 ~ /^[[:space:]]*$/) { print ""; next }
26
+ if (!bindent) bindent = indent($0)
27
+ if (indent($0) < bindent) exit
28
+ print substr($0, bindent + 1)
29
+ }
30
+ ' "$TEMPLATE"
31
+ }
32
+
33
+ for step in "$PROBE_STEP" "$REPORT_STEP"; do
34
+ body="$(extract_run "$step")"
35
+ if [[ -z "${body//[[:space:]]/}" ]]; then
36
+ echo "site-health-probe.test: no run block for a step named '$step' in $TEMPLATE"
37
+ exit 1
38
+ fi
39
+ if [[ "$step" == "$PROBE_STEP" ]]; then printf '%s\n' "$body" > "$tmp/probe.sh"; else printf '%s\n' "$body" > "$tmp/report.sh"; fi
40
+ done
41
+
42
+ STUBS="$tmp/stubs"
43
+ mkdir -p "$STUBS"
44
+ cat > "$STUBS/curl" <<'STUB'
45
+ #!/usr/bin/env bash
46
+ printf 'curl %s\n' "$*" >> "$STUB_LOGS/curl.log"
47
+ url="" fmt="" verbose=0
48
+ while [ $# -gt 0 ]; do
49
+ case "$1" in
50
+ -w) fmt="$2"; shift ;;
51
+ -o|-m) shift ;;
52
+ -sSv) verbose=1 ;;
53
+ http*) url="$1" ;;
54
+ esac
55
+ shift
56
+ done
57
+ if [ "$verbose" = 1 ]; then
58
+ echo "* expire date: Jan 1 00:00:00 2100 GMT" >&2
59
+ exit 0
60
+ fi
61
+ case "$url" in
62
+ "https://$STUB_APEX/")
63
+ if [ "$fmt" = '%{http_code}' ]; then
64
+ n=$(( $(cat "$STUB_LOGS/apex.count" 2>/dev/null || echo 0) + 1 ))
65
+ echo "$n" > "$STUB_LOGS/apex.count"
66
+ if [ "$STUB_APEX_FAILS" = all ] || [ "$n" -le "$STUB_APEX_FAILS" ]; then printf 503; else printf 200; fi
67
+ fi ;;
68
+ "https://www.$STUB_APEX/") printf '301 https://%s/' "$STUB_APEX" ;;
69
+ "http://$STUB_APEX/") printf '301 https://%s/' "$STUB_APEX" ;;
70
+ "https://$ALT_DOMAIN/install.html") printf '301 https://%s/install.html' "$STUB_APEX" ;;
71
+ "https://$STUB_APEX/"*) printf 200 ;;
72
+ *) printf 000 ;;
73
+ esac
74
+ STUB
75
+ cat > "$STUBS/gh" <<'STUB'
76
+ #!/usr/bin/env bash
77
+ printf 'gh %s\n' "$*" >> "$STUB_LOGS/gh.log"
78
+ case "$*" in
79
+ "api --paginate repos/{owner}/{repo}/tags "*)
80
+ if [ "$STUB_TAGS_FAIL" = 1 ]; then echo "HTTP 502: stubbed outage" >&2; exit 1; fi
81
+ echo "$STUB_TAG" ;;
82
+ "api repos/{owner}/{repo}/releases/tags/$STUB_TAG "*)
83
+ echo "Release notes: https://$STUB_APEX/posts/$STUB_SLUG" ;;
84
+ "issue list "*) [ -z "$STUB_OPEN_ISSUE" ] || echo "$STUB_OPEN_ISSUE" ;;
85
+ "label create "*|"issue create "*|"issue comment "*|"issue close "*) ;;
86
+ *) echo "gh stub: unexpected call: $*" >&2; exit 1 ;;
87
+ esac
88
+ STUB
89
+ cat > "$STUBS/sleep" <<'STUB'
90
+ #!/usr/bin/env bash
91
+ printf 'sleep %s\n' "$*" >> "$STUB_LOGS/sleep.log"
92
+ STUB
93
+ cat > "$STUBS/date" <<'STUB'
94
+ #!/usr/bin/env bash
95
+ case "$*" in
96
+ "-d "*" +%s") echo 4102444800 ;;
97
+ "+%s") echo 1767225600 ;;
98
+ "-u +"*) echo "2026-01-01 00:00Z" ;;
99
+ *) echo "date stub: unexpected call: $*" >&2; exit 1 ;;
100
+ esac
101
+ STUB
102
+ chmod +x "$STUBS"/*
103
+
104
+ export STUB_APEX=site.example.test STUB_TAG=v1.0.0 STUB_SLUG=v1-0-0
105
+ export ALT_DOMAIN=alt.example.test RELEASE_NOTE_GLOB='docs/posts/*.md' RELEASE_NOTE_TAG_KEY=release
106
+ export RELEASE_NOTE_URL_PATH='/posts/{slug}' HIGHLIGHT_CSS_PATH='' HIGHLIGHT_TOKENS_FILE='' GH_TOKEN=stub-token
107
+ export RUN_URL=https://example.test/run/1
108
+
109
+ new_case() {
110
+ cases=$((cases + 1))
111
+ case_dir="$tmp/case$cases"
112
+ mkdir -p "$case_dir/docs/posts" "$case_dir/logs"
113
+ echo "$STUB_APEX" > "$case_dir/docs/CNAME"
114
+ printf -- '---\nrelease: %s\n---\n\nThe note.\n' "$STUB_TAG" > "$case_dir/docs/posts/$STUB_SLUG.md"
115
+ : > "$case_dir/logs/curl.log"; : > "$case_dir/logs/gh.log"; : > "$case_dir/logs/sleep.log"
116
+ : > "$case_dir/output"
117
+ }
118
+
119
+ run_probe() {
120
+ local apex_fails="$1" tags_fail="$2" force="$3" attempts="$4" pause="$5"
121
+ new_case
122
+ out="$( cd "$case_dir" && PATH="$STUBS:$PATH" STUB_LOGS="$case_dir/logs" STUB_APEX_FAILS="$apex_fails" \
123
+ STUB_TAGS_FAIL="$tags_fail" STUB_OPEN_ISSUE="" FORCE_FAIL="$force" GITHUB_OUTPUT="$case_dir/output" \
124
+ RESAMPLE_ATTEMPTS="$attempts" RESAMPLE_PAUSE="$pause" bash "$tmp/probe.sh" 2>&1 )"; rc=$?
125
+ status="$(sed -n 's/^status=//p' "$case_dir/output")"
126
+ report="$(awk '/^report<<PROBE_EOF$/ { r = 1; next } /^PROBE_EOF$/ { r = 0 } r' "$case_dir/output")"
127
+ n_sleep="$(grep -c . "$case_dir/logs/sleep.log")"
128
+ }
129
+
130
+ run_report() {
131
+ local tracking="$1" status_in="$2" open_issue="$3"
132
+ new_case
133
+ out="$( cd "$case_dir" && PATH="$STUBS:$PATH" STUB_LOGS="$case_dir/logs" STUB_OPEN_ISSUE="$open_issue" \
134
+ STUB_TAGS_FAIL=0 ISSUE_TRACKING="$tracking" STATUS="$status_in" \
135
+ REPORT="apex https did not answer 200 (got '503')" bash "$tmp/report.sh" 2>&1 )"; rc=$?
136
+ gh_log="$(cat "$case_dir/logs/gh.log")"
137
+ }
138
+
139
+ verdict() {
140
+ local label="$1"; shift
141
+ local reason
142
+ for reason in "$@"; do
143
+ if [[ -n "$reason" ]]; then
144
+ echo " FAIL: $label: $reason"
145
+ echo "$out" | sed 's/^/ | /'
146
+ fails=$((fails + 1))
147
+ return
148
+ fi
149
+ done
150
+ echo " ok: $label"
151
+ }
152
+
153
+ want() { [[ "$1" == "$2" ]] || echo "$3: expected '$2', got '$1'"; }
154
+ has() { grep -qF -- "$2" <<<"$1" || echo "$3: lacks '$2'"; }
155
+
156
+ run_probe 0 0 false 3 30
157
+ verdict "healthy set" \
158
+ "$(want "$status" pass status)" "$(has "$out" "settled on attempt 1 of 3" log)" "$(want "$n_sleep" 0 "sleep calls")"
159
+
160
+ run_probe 1 0 false 3 30
161
+ verdict "one transient failure" \
162
+ "$(want "$status" pass status)" "$(has "$out" "settled on attempt 2 of 3" log)" \
163
+ "$(want "$n_sleep" 1 "sleep calls")" "$(want "$(cat "$case_dir/logs/sleep.log")" "sleep 30" "sleep operand")"
164
+
165
+ run_probe 2 0 false 3 30
166
+ verdict "two transient failures" \
167
+ "$(want "$status" pass status)" "$(has "$out" "settled on attempt 3 of 3" log)" "$(want "$n_sleep" 2 "sleep calls")"
168
+
169
+ run_probe all 0 false 3 30
170
+ verdict "a persistent failure" \
171
+ "$(want "$status" fail status)" "$(want "$(grep -c "apex https did not answer 200" <<<"$report")" 1 "apex findings in the report")" \
172
+ "$(has "$out" "settled on attempt 3 of 3" log)" "$(want "$n_sleep" 2 "sleep calls")"
173
+
174
+ run_probe 0 0 true 3 30
175
+ verdict "force_fail on a healthy set" \
176
+ "$(want "$status" fail status)" "$(want "$report" "synthetic failure (force_fail dispatch input)" report)" \
177
+ "$(want "$n_sleep" 0 "sleep calls")"
178
+
179
+ run_probe all 0 false 1 30
180
+ verdict "resample off under a persistent failure" \
181
+ "$(want "$status" fail status)" "$(has "$out" "settled on attempt 1 of 1" log)" "$(want "$n_sleep" 0 "sleep calls")"
182
+
183
+ for bad in "0 30 RESAMPLE_ATTEMPTS got '0'" "x 30 RESAMPLE_ATTEMPTS got 'x'" "3 -1 RESAMPLE_PAUSE got '-1'"; do
184
+ read -r attempts pause knob _ value <<<"$bad"
185
+ run_probe 0 0 false "$attempts" "$pause"
186
+ verdict "a misconfigured bound, $knob=${value//\'/}" \
187
+ "$(want "$status" fail status)" "$(has "$report" "$knob" report)" "$(has "$report" "(got $value)" report)" \
188
+ "$(want "$(grep -c . <<<"$report")" 1 "report lines")" "$(want "$(grep -c . "$case_dir/logs/curl.log")" 0 "curl calls")"
189
+ done
190
+
191
+ run_probe 0 1 false 3 30
192
+ verdict "the tag list fails" \
193
+ "$(want "$status" fail status)" "$(has "$report" "could not read the tag list (gh exit 1): HTTP 502: stubbed outage" report)"
194
+
195
+ run_report off fail ""
196
+ verdict "issue path off, a failure" \
197
+ "$(want "$rc" 1 exit)" "$(has "$out" "apex https did not answer 200" log)" "$(want "$gh_log" "" "gh log")"
198
+
199
+ run_report off pass ""
200
+ verdict "issue path off, a pass" "$(want "$rc" 0 exit)" "$(want "$gh_log" "" "gh log")"
201
+
202
+ run_report on fail ""
203
+ verdict "issue path on, a failure, no open issue" \
204
+ "$(want "$rc" 1 exit)" "$(has "$gh_log" "gh label create site-health" "gh log")" \
205
+ "$(has "$gh_log" "gh issue list --label site-health" "gh log")" "$(has "$gh_log" "gh issue create --label site-health" "gh log")"
206
+
207
+ run_report on pass 7
208
+ verdict "issue path on, a pass, an open issue" "$(want "$rc" 0 exit)" "$(has "$gh_log" "gh issue close 7" "gh log")"
209
+
210
+ run_report yes fail ""
211
+ verdict "a misconfigured ISSUE_TRACKING" \
212
+ "$(want "$rc" 1 exit)" "$(has "$out" "ISSUE_TRACKING must be 'on' or 'off' (got 'yes')" log)" "$(want "$gh_log" "" "gh log")"
213
+
214
+ if [[ "$fails" -gt 0 ]]; then
215
+ echo "site-health-probe.test: $fails of $cases case(s) failed"
216
+ exit 1
217
+ fi
218
+ echo "site-health-probe.test: ok ($cases case(s) over the template's '$PROBE_STEP' and '$REPORT_STEP' steps)"
219
+ exit 0