checkwright 0.25.0 → 0.27.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 (1057) hide show
  1. package/README.md +35 -1361
  2. package/bin/checkwright.ps1 +176 -0
  3. package/bin/checkwright.sh +187 -44
  4. package/package.json +15 -14
  5. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  6. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -0
  7. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  8. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
  9. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  10. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -0
  11. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
  12. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -0
  13. package/payload/artifact/targets.list +133 -24
  14. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  15. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -0
  16. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  17. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
  18. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  19. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  20. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
  21. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -0
  22. package/payload/canon-kit/README.md +25 -37
  23. package/payload/canon-kit/checks/check-amendment-queue.gate +2 -2
  24. package/payload/canon-kit/checks/check-amendment-retired-spelling.gate +3 -0
  25. package/payload/canon-kit/checks/check-amendment-update-target.gate +1 -1
  26. package/payload/canon-kit/checks/check-citation-link.gate +4 -0
  27. package/payload/canon-kit/checks/check-comment-tier.gate +1 -1
  28. package/payload/canon-kit/checks/check-deprecation-task.gate +2 -1
  29. package/payload/canon-kit/checks/check-docs-cmd.gate +2 -2
  30. package/payload/canon-kit/checks/check-docs-link-convention.gate +1 -1
  31. package/payload/canon-kit/checks/check-docs-page-repeat.gate +4 -0
  32. package/payload/canon-kit/checks/check-docs-restatement-parity.gate +4 -0
  33. package/payload/canon-kit/checks/check-fence-command-head.gate +3 -0
  34. package/payload/canon-kit/checks/check-fence-run.gate +3 -0
  35. package/payload/canon-kit/checks/check-install-claim.gate +2 -1
  36. package/payload/canon-kit/checks/check-knob-citation.gate +1 -1
  37. package/payload/canon-kit/checks/check-manifest-count.gate +1 -1
  38. package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
  39. package/payload/canon-kit/checks/check-md-refs.gate +1 -1
  40. package/payload/canon-kit/checks/check-md-unwrapped.gate +3 -0
  41. package/payload/canon-kit/checks/check-measured-claim.gate +2 -1
  42. package/payload/canon-kit/checks/check-payload-claim.gate +2 -1
  43. package/payload/canon-kit/checks/check-prose-bounds.gate +3 -0
  44. package/payload/canon-kit/checks/check-prose-enum.gate +2 -1
  45. package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
  46. package/payload/canon-kit/checks/check-provenance-seam.gate +3 -0
  47. package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
  48. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
  49. package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
  50. package/payload/canon-kit/checks/check-spec-fence-balance.gate +1 -1
  51. package/payload/canon-kit/checks/check-spec-pointer.gate +2 -2
  52. package/payload/canon-kit/checks/check-surface-duplication.gate +3 -0
  53. package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
  54. package/payload/canon-kit/checks/check-tracking-claim.gate +1 -1
  55. package/payload/canon-kit/checks/check-unmarked-claim.gate +2 -1
  56. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +3 -0
  57. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +37 -8
  58. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +6 -3
  59. package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +7 -0
  60. package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +11 -3
  61. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-nosection.md +16 -0
  62. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-thing.md +26 -0
  63. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/expect.txt +8 -0
  64. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/one.md +4 -0
  65. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/two.md +3 -0
  66. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-tidy.md +20 -0
  67. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-widget.md +37 -0
  68. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/README.md +4 -0
  69. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/SPEC.md +4 -0
  70. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/expect.txt +1 -0
  71. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/unnamed.md +4 -0
  72. package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +1 -1
  73. package/payload/canon-kit/gate-tests/check-citation-link/bad/expect.txt +6 -0
  74. package/payload/canon-kit/gate-tests/check-citation-link/bad/scripts/canon-config.knobs +2 -0
  75. package/payload/canon-kit/gate-tests/check-citation-link/bad/site/page.md +13 -0
  76. package/payload/canon-kit/gate-tests/check-citation-link/good/expect.txt +1 -0
  77. package/payload/canon-kit/gate-tests/check-citation-link/good/scripts/canon-config.knobs +2 -0
  78. package/payload/canon-kit/gate-tests/check-citation-link/good/site/page.md +28 -0
  79. package/payload/canon-kit/gate-tests/check-comment-tier/bad/.github/workflows/ci.yml +15 -0
  80. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +2 -0
  81. package/payload/canon-kit/gate-tests/check-comment-tier/bad/scripts/canon-config.knobs +2 -0
  82. package/payload/canon-kit/gate-tests/check-comment-tier/good/.github/workflows/ci.yml +23 -0
  83. package/payload/canon-kit/gate-tests/check-comment-tier/good/config.yml +2 -0
  84. package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
  85. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +1 -1
  86. package/payload/canon-kit/gate-tests/check-comment-tier/good/scripts/canon-config.knobs +2 -0
  87. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +37 -26
  88. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +3 -1
  89. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.knobs +2 -0
  90. package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +6 -2
  91. package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
  92. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.knobs +2 -0
  93. package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +12 -10
  94. package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +4 -1
  95. package/payload/canon-kit/gate-tests/check-docs-cmd.test.sh +61 -0
  96. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +3 -0
  97. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +21 -2
  98. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/expect.txt +2 -0
  99. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/scripts/canon-config.knobs +2 -0
  100. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/page.md +8 -0
  101. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/expect.txt +1 -0
  102. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/scripts/canon-config.knobs +2 -0
  103. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/page.md +24 -0
  104. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +2 -0
  105. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/README.md +10 -0
  106. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +11 -0
  107. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/canon-config.knobs +2 -0
  108. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/gate-sdk-config.knobs +2 -0
  109. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/expect.txt +1 -0
  110. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/README.md +12 -0
  111. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/index.md +13 -0
  112. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/canon-config.knobs +2 -0
  113. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/gate-sdk-config.knobs +2 -0
  114. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/args +1 -0
  115. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +16 -0
  116. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +5 -0
  117. package/payload/canon-kit/gate-tests/check-fence-command-head/good/args +1 -0
  118. package/payload/canon-kit/gate-tests/check-fence-command-head/good/bin/run.sh +3 -0
  119. package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +41 -0
  120. package/payload/canon-kit/gate-tests/check-fence-command-head/good/expect.txt +1 -0
  121. package/payload/canon-kit/gate-tests/check-fence-command-head/good/lib/tool.sh +5 -0
  122. package/payload/canon-kit/gate-tests/check-fence-command-head/good/scripts/canon-config.knobs +2 -0
  123. package/payload/canon-kit/gate-tests/check-fence-run/bad/args +1 -0
  124. package/payload/canon-kit/gate-tests/check-fence-run/bad/doc.md +32 -0
  125. package/payload/canon-kit/gate-tests/check-fence-run/bad/expect.txt +7 -0
  126. package/payload/canon-kit/gate-tests/check-fence-run/good/args +1 -0
  127. package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +31 -0
  128. package/payload/canon-kit/gate-tests/check-fence-run/good/expect.txt +1 -0
  129. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.knobs +7 -0
  130. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.knobs +7 -0
  131. package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +42 -7
  132. package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +1 -2
  133. package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  134. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +37 -8
  135. package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +3 -0
  136. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +10 -0
  137. package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +6 -6
  138. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +1 -1
  139. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/doc.md +13 -0
  140. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +4 -0
  141. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/scripts/canon-config.knobs +2 -0
  142. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/doc.md +45 -0
  143. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -0
  144. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/scripts/canon-config.knobs +4 -0
  145. package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +3 -0
  146. package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +1 -0
  147. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.knobs +4 -0
  148. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +8 -0
  149. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.knobs +4 -0
  150. package/payload/canon-kit/gate-tests/check-measured-claim/good/worktrees/SPEC.md +12 -0
  151. package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +32 -13
  152. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.knobs +6 -0
  153. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.knobs +6 -0
  154. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/CLAUDE.md +9 -0
  155. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/SPEC.md +11 -0
  156. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/expect.txt +3 -0
  157. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/scripts/canon-config.knobs +3 -0
  158. package/payload/canon-kit/gate-tests/check-prose-bounds/good/CLAUDE.md +10 -0
  159. package/payload/canon-kit/gate-tests/check-prose-bounds/good/SPEC.md +27 -0
  160. package/payload/canon-kit/gate-tests/check-prose-bounds/good/expect.txt +1 -0
  161. package/payload/canon-kit/gate-tests/check-prose-bounds/good/scripts/canon-config.knobs +3 -0
  162. package/payload/canon-kit/gate-tests/check-prose-bounds.test.sh +98 -0
  163. package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.knobs +3 -0
  164. package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.knobs +3 -0
  165. package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +55 -25
  166. package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +2 -0
  167. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -0
  168. package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
  169. package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/{canon-config.sh → canon-config.knobs} +2 -5
  170. package/payload/canon-kit/gate-tests/check-prose-tells/good/worktrees/prose.md +17 -0
  171. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/TASK-QUEUE.md +15 -0
  172. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/expect.txt +8 -0
  173. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/canon-config.knobs +3 -0
  174. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/gate-sdk-config.knobs +2 -0
  175. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/lifecycle-config.knobs +12 -0
  176. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/widget-toolkit/SPEC.md +27 -0
  177. package/payload/canon-kit/gate-tests/check-provenance-seam/good/TASK-QUEUE.md +15 -0
  178. package/payload/canon-kit/gate-tests/check-provenance-seam/good/expect.txt +1 -0
  179. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/canon-config.knobs +3 -0
  180. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/gate-sdk-config.knobs +2 -0
  181. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/lifecycle-config.knobs +12 -0
  182. package/payload/canon-kit/gate-tests/check-provenance-seam/good/widget-toolkit/SPEC.md +20 -0
  183. package/payload/canon-kit/gate-tests/check-provenance-seam.test.sh +136 -0
  184. package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +1 -1
  185. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +6 -0
  186. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
  187. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +2 -0
  188. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +4 -0
  189. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +6 -0
  190. package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +15 -0
  191. package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +10 -0
  192. package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
  193. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +2 -0
  194. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
  195. package/payload/canon-kit/gate-tests/check-spec-pointer/good/vendored-kit/notes.txt +4 -0
  196. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +3 -1
  197. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +9 -3
  198. package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -1
  199. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +3 -0
  200. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +1 -0
  201. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.knobs +4 -0
  202. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +3 -0
  203. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.knobs +4 -0
  204. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/worktrees/SPEC.md +11 -0
  205. package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +53 -28
  206. package/payload/canon-kit/templates/SPEC-amendment.md +46 -25
  207. package/payload/canon-kit/templates/canon-config.knobs +1 -0
  208. package/payload/context-kit/README.md +33 -61
  209. package/payload/context-kit/checks/check-brevity.gate +2 -2
  210. package/payload/context-kit/checks/check-footprint-fresh.gate +3 -2
  211. package/payload/context-kit/checks/check-memory-off.gate +1 -1
  212. package/payload/context-kit/checks/check-settings-paths.gate +2 -2
  213. package/payload/context-kit/checks/check-settings-pins.gate +1 -1
  214. package/payload/context-kit/checks/check-surface-ratchet.gate +3 -0
  215. package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +9 -2
  216. package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
  217. package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +9 -4
  218. package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -1
  219. package/payload/context-kit/gate-tests/check-brevity.test.sh +107 -24
  220. package/payload/context-kit/gate-tests/check-footprint-fresh/good/CLAUDE.md +6 -0
  221. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/SPEC.md +3 -0
  222. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/templates/guide.md +3 -0
  223. package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +32 -0
  224. package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/{context-config.sh → context-config.knobs} +1 -3
  225. package/payload/context-kit/gate-tests/check-memory-off/good/scripts/{context-config.sh → context-config.knobs} +1 -3
  226. package/payload/context-kit/gate-tests/check-memory-off.test.sh +1 -1
  227. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +2 -0
  228. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +21 -0
  229. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/run-gates.sh +4 -0
  230. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -1
  231. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +48 -1
  232. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/run-gates.sh +4 -0
  233. package/payload/context-kit/gate-tests/check-settings-pins.test.sh +1 -1
  234. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/CLAUDE.md +5 -0
  235. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/expect.txt +2 -0
  236. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/scripts/context-config.knobs +4 -0
  237. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/surface-ceiling.txt +2 -0
  238. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/templates/ungoverned.md +3 -0
  239. package/payload/context-kit/gate-tests/check-surface-ratchet/good/CLAUDE.md +3 -0
  240. package/payload/context-kit/gate-tests/check-surface-ratchet/good/expect.txt +1 -0
  241. package/payload/context-kit/gate-tests/check-surface-ratchet/good/scripts/context-config.knobs +4 -0
  242. package/payload/context-kit/gate-tests/check-surface-ratchet/good/surface-ceiling.txt +4 -0
  243. package/payload/context-kit/gate-tests/check-surface-ratchet/good/templates/held.md +4 -0
  244. package/payload/context-kit/gate-tests/check-surface-ratchet.test.sh +76 -0
  245. package/payload/context-kit/index-tests/corpus/baseline.txt +1 -1
  246. package/payload/context-kit/index-tests/corpus/surface.md +1 -6
  247. package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -1
  248. package/payload/context-kit/templates/close-brevity.md +9 -28
  249. package/payload/context-kit/templates/context-config.knobs +1 -0
  250. package/payload/context-kit/templates/session-context.sh +44 -29
  251. package/payload/delegation-kit/README.md +35 -69
  252. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +1 -1
  253. package/payload/delegation-kit/checks/check-gate-tamper.gate +1 -1
  254. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +23 -2
  255. package/payload/delegation-kit/templates/agent-execution.md +23 -389
  256. package/payload/delegation-kit/templates/delegation-config.knobs +4 -0
  257. package/payload/delegation-kit/templates/dispatch-checklists.md +8 -45
  258. package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +33 -17
  259. package/payload/doctrine-kit/DOCTRINE.md +92 -458
  260. package/payload/doctrine-kit/README.md +24 -55
  261. package/payload/doctrine-kit/checks/check-doctrine-registration.gate +1 -1
  262. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +48 -3
  263. package/payload/drift-kit/README.md +43 -89
  264. package/payload/drift-kit/templates/close-knowledge.md +7 -22
  265. package/payload/drift-kit/templates/drift-config.knobs +1 -0
  266. package/payload/drift-kit/templates/economics.md +10 -48
  267. package/payload/drift-kit/templates/kpi-deprecated-surface.sh +31 -9
  268. package/payload/drift-kit/templates/kpis.list +2 -1
  269. package/payload/drift-kit/templates/price-table.tsv +1 -1
  270. package/payload/evidence-kit/README.md +24 -43
  271. package/payload/evidence-kit/checks/check-battery-roster.gate +1 -1
  272. package/payload/evidence-kit/checks/check-evidence-baseline.gate +2 -2
  273. package/payload/evidence-kit/checks/check-evidence-manifest.gate +1 -1
  274. package/payload/evidence-kit/checks/check-producer-liveness.gate +3 -0
  275. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +7 -0
  276. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +7 -0
  277. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +7 -7
  278. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -1
  279. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +1 -0
  280. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +2 -0
  281. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/scripts/evidence-config.knobs +4 -0
  282. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +1 -0
  283. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -1
  284. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +1 -0
  285. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/scripts/evidence-config.knobs +3 -0
  286. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +134 -14
  287. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
  288. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
  289. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +5 -4
  290. package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +128 -0
  291. package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +51 -45
  292. package/payload/evidence-kit/gate-tests/pre-hook.test.sh +66 -0
  293. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +29 -16
  294. package/payload/evidence-kit/templates/evidence-config.knobs +1 -0
  295. package/payload/gate-sdk/README.md +48 -79
  296. package/payload/gate-sdk/bin/build-native.sh +27 -4
  297. package/payload/gate-sdk/bin/run-gates.ps1 +266 -0
  298. package/payload/gate-sdk/bin/run-gates.sh +53 -277
  299. package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -1
  300. package/payload/gate-sdk/checks/check-action-job-ref.gate +3 -0
  301. package/payload/gate-sdk/checks/check-action-permissions.gate +3 -0
  302. package/payload/gate-sdk/checks/check-action-pinning.gate +1 -1
  303. package/payload/gate-sdk/checks/check-action-run-path.gate +3 -0
  304. package/payload/gate-sdk/checks/check-action-run-shell.gate +3 -0
  305. package/payload/gate-sdk/checks/check-commit-msg.gate +2 -1
  306. package/payload/gate-sdk/checks/check-commit-subject.gate +1 -1
  307. package/payload/gate-sdk/checks/check-core-files.gate +1 -1
  308. package/payload/gate-sdk/checks/check-crate-arms.gate +3 -0
  309. package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -2
  310. package/payload/gate-sdk/checks/check-exec-bit.gate +1 -1
  311. package/payload/gate-sdk/checks/check-front-end-fail-open.gate +3 -0
  312. package/payload/gate-sdk/checks/check-gate-assertions.gate +2 -2
  313. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +1 -1
  314. package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +1 -1
  315. package/payload/gate-sdk/checks/check-gate-fail-closed.gate +1 -1
  316. package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +1 -1
  317. package/payload/gate-sdk/checks/check-gate-output.gate +1 -1
  318. package/payload/gate-sdk/checks/check-gate-substrate-parity.gate +3 -0
  319. package/payload/gate-sdk/checks/check-graph.gate +2 -1
  320. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +1 -1
  321. package/payload/gate-sdk/checks/check-identity.gate +1 -1
  322. package/payload/gate-sdk/checks/check-install-disposition.gate +3 -0
  323. package/payload/gate-sdk/checks/check-kit-enum.gate +1 -1
  324. package/payload/gate-sdk/checks/check-kit-registration.gate +1 -1
  325. package/payload/gate-sdk/checks/check-kit-roots-dialect.gate +3 -0
  326. package/payload/gate-sdk/checks/check-packed-links.gate +3 -0
  327. package/payload/gate-sdk/checks/check-path-dialect.gate +3 -0
  328. package/payload/gate-sdk/checks/check-pipe-membership.gate +3 -0
  329. package/payload/gate-sdk/checks/check-portability-floor.gate +4 -0
  330. package/payload/gate-sdk/checks/check-projection-roster.gate +4 -0
  331. package/payload/gate-sdk/checks/check-reads-couples.gate +1 -1
  332. package/payload/gate-sdk/checks/check-root-tiering.gate +1 -1
  333. package/payload/gate-sdk/checks/check-shellcheck.gate +3 -0
  334. package/payload/gate-sdk/checks/check-template-copy-parity.gate +1 -1
  335. package/payload/gate-sdk/checks/check-tree-terms.gate +2 -1
  336. package/payload/gate-sdk/checks/check-workflow-tiering.gate +1 -1
  337. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/args +2 -0
  338. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/expect.txt +1 -0
  339. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/scripts/gate-sdk-config.knobs +1 -0
  340. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/notes.md +3 -0
  341. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/workflows/ci.yml +8 -0
  342. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/args +3 -0
  343. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/expect.txt +1 -0
  344. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/scripts/gate-sdk-config.knobs +1 -0
  345. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/notes.md +3 -0
  346. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/workflows/ci.yml +8 -0
  347. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/args +3 -0
  348. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/expect.txt +5 -0
  349. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/empty-allowlist.yml +29 -0
  350. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/gates.yml +25 -0
  351. package/payload/gate-sdk/gate-tests/check-action-permissions/good/args +5 -0
  352. package/payload/gate-sdk/gate-tests/check-action-permissions/good/expect.txt +1 -0
  353. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/action.yml +9 -0
  354. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/not-actions.yml +7 -0
  355. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/declared.yml +69 -0
  356. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/valves.yml +22 -0
  357. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/args +4 -0
  358. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/expect.txt +2 -0
  359. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/scripts/present.sh +3 -0
  360. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/workflows/ci.yml +14 -0
  361. package/payload/gate-sdk/gate-tests/check-action-run-path/good/args +5 -0
  362. package/payload/gate-sdk/gate-tests/check-action-run-path/good/expect.txt +1 -0
  363. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/scripts/build.sh +3 -0
  364. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/sub/scripts/inner.sh +3 -0
  365. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/workflows/ci.yml +36 -0
  366. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +4 -2
  367. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +2 -0
  368. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/runner-dialect.yml +36 -0
  369. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -2
  370. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -1
  371. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/runner-dialect.yml +71 -0
  372. package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +102 -9
  373. package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +1 -1
  374. package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +1 -1
  375. package/payload/gate-sdk/gate-tests/check-assertion-strength.test.sh +55 -0
  376. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/expect.txt +1 -0
  377. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/msg.txt +4 -0
  378. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -1
  379. package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +7 -0
  380. package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -1
  381. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +2 -2
  382. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +1 -1
  383. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.knobs +3 -0
  384. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.knobs +3 -0
  385. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/SPEC.md +3 -0
  386. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/checks/check-demo.gate +1 -0
  387. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/probe.conf +1 -0
  388. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/templates/guide.md +3 -0
  389. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/enforcement.md +33 -0
  390. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gate-sdk-config.knobs +1 -0
  391. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gates.list +1 -0
  392. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +1 -1
  393. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/args +3 -0
  394. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/expect.txt +2 -0
  395. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.ps1 +5 -0
  396. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.sh +9 -0
  397. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/args +4 -0
  398. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/expect.txt +1 -0
  399. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.ps1 +5 -0
  400. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.sh +9 -0
  401. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +4 -1
  402. package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +1 -1
  403. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.knobs +2 -0
  404. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.knobs +2 -0
  405. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +6 -12
  406. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +5 -3
  407. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +3 -1
  408. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +4 -2
  409. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +1 -1
  410. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci/build-artifact.sh +9 -0
  411. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci.yml +9 -0
  412. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +4 -2
  413. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.knobs +5 -0
  414. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +6 -0
  415. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci/build-artifact.sh +9 -0
  416. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci.yml +16 -0
  417. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +7 -3
  418. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.knobs +5 -0
  419. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -1
  420. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +222 -197
  421. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +7 -2
  422. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +4 -0
  423. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +3 -1
  424. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +1 -1
  425. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +8 -8
  426. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +2 -2
  427. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +49 -14
  428. package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
  429. package/payload/gate-sdk/gate-tests/check-identity/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
  430. package/payload/gate-sdk/gate-tests/check-identity.test.sh +1 -1
  431. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-eta.sh +7 -0
  432. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-iota.sh +7 -0
  433. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-theta.sh +7 -0
  434. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-zeta.gate +3 -0
  435. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +1 -1
  436. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +8 -5
  437. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +5 -0
  438. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/native/src/installer/recipe.rs +10 -0
  439. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  440. package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +8 -4
  441. package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +2 -0
  442. package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  443. package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/checks/check-alpha.sh +1 -1
  444. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-beta.gate +3 -0
  445. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-gamma.sh +6 -0
  446. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-omega.sh +7 -0
  447. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-psi.sh +7 -0
  448. package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/smoke/install.sh +2 -2
  449. package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +15 -12
  450. package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +7 -5
  451. package/payload/gate-sdk/gate-tests/check-kit-registration/good/scripts/gate-sdk-config.knobs +2 -0
  452. package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +2 -2
  453. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/args +5 -0
  454. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/expect.txt +1 -0
  455. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/checks/placeholder.txt +3 -0
  456. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
  457. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/lib/alpha.sh +3 -0
  458. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/checks/placeholder.txt +3 -0
  459. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/gate-tests/beta.test.sh +3 -0
  460. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/lib/beta.sh +3 -0
  461. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/checks/placeholder.txt +3 -0
  462. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/lib/gate.sh +3 -0
  463. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gate-sdk-config.knobs +7 -0
  464. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gates.list +3 -0
  465. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/args +7 -0
  466. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/expect.txt +1 -0
  467. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/checks/placeholder.txt +3 -0
  468. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
  469. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/lib/alpha.sh +3 -0
  470. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/checks/placeholder.txt +3 -0
  471. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/gate-tests/beta.test.sh +3 -0
  472. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/lib/beta.sh +3 -0
  473. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/checks/placeholder.txt +3 -0
  474. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/lib/gate.sh +3 -0
  475. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/scripts/gates.list +3 -0
  476. package/payload/gate-sdk/gate-tests/check-packed-links/bad/alpha-kit/README.md +5 -0
  477. package/payload/gate-sdk/gate-tests/check-packed-links/bad/args +5 -0
  478. package/payload/gate-sdk/gate-tests/check-packed-links/bad/beta-kit/README.md +5 -0
  479. package/payload/gate-sdk/gate-tests/check-packed-links/bad/expect.txt +2 -0
  480. package/payload/gate-sdk/gate-tests/check-packed-links/bad/scripts/gate-sdk-config.knobs +4 -0
  481. package/payload/gate-sdk/gate-tests/check-packed-links/good/alpha-kit/README.md +5 -0
  482. package/payload/gate-sdk/gate-tests/check-packed-links/good/args +8 -0
  483. package/payload/gate-sdk/gate-tests/check-packed-links/good/beta-kit/README.md +9 -0
  484. package/payload/gate-sdk/gate-tests/check-packed-links/good/expect.txt +1 -0
  485. package/payload/gate-sdk/gate-tests/check-packed-links/good/gamma-kit/SPEC.md +4 -0
  486. package/payload/gate-sdk/gate-tests/check-packed-links/good/scripts/gate-sdk-config.knobs +6 -0
  487. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/args +3 -0
  488. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/expect.txt +15 -0
  489. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/primitive.rs +19 -0
  490. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/producer.rs +8 -0
  491. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/walk.rs +13 -0
  492. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/bound-root.sh +5 -0
  493. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/case-arm.sh +6 -0
  494. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/commented.sh +5 -0
  495. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/common-dir.sh +4 -0
  496. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/glob-test.sh +4 -0
  497. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/late-anchor.sh +7 -0
  498. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/logical-readback.sh +5 -0
  499. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/probe.sh +7 -0
  500. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/two-root.sh +5 -0
  501. package/payload/gate-sdk/gate-tests/check-path-dialect/good/args +3 -0
  502. package/payload/gate-sdk/gate-tests/check-path-dialect/good/expect.txt +13 -0
  503. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/commented.rs +5 -0
  504. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/local.rs +12 -0
  505. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/namespace.rs +11 -0
  506. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/typed.rs +10 -0
  507. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/verdict.rs +5 -0
  508. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/walk.rs +24 -0
  509. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/anchored.sh +6 -0
  510. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/cd-only.sh +7 -0
  511. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/commented.sh +6 -0
  512. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/one-root.sh +4 -0
  513. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/probe.sh +8 -0
  514. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/rooted.sh +23 -0
  515. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/subshell.sh +6 -0
  516. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/two-line.sh +8 -0
  517. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/verdict.sh +7 -0
  518. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/args +4 -0
  519. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/expect.txt +6 -0
  520. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/scripts/gate-sdk-config.knobs +1 -0
  521. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/array-grep.sh +6 -0
  522. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/echo-max-count.sh +5 -0
  523. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/gate-tests/membership.test.sh +6 -0
  524. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/loop-head.sh +5 -0
  525. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/tests/relocated.test.sh +6 -0
  526. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/args +5 -0
  527. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/expect.txt +3 -0
  528. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/full-reader.sh +4 -0
  529. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/check-x/bad/violating.test.sh +6 -0
  530. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/clean.test.sh +8 -0
  531. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/loop-membership.sh +8 -0
  532. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/no-pipefail.sh +6 -0
  533. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/one-line-producer.sh +5 -0
  534. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/args +2 -0
  535. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/expect.txt +8 -0
  536. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/patterns.list +4 -0
  537. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/scripts/gate-sdk-config.knobs +4 -0
  538. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/empty-reason-verb +5 -0
  539. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/strings.ps1 +6 -0
  540. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/too-far-verb +5 -0
  541. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/undeclared-verb +3 -0
  542. package/payload/gate-sdk/gate-tests/check-portability-floor/good/args +2 -0
  543. package/payload/gate-sdk/gate-tests/check-portability-floor/good/expect.txt +1 -0
  544. package/payload/gate-sdk/gate-tests/check-portability-floor/good/patterns.list +5 -0
  545. package/payload/gate-sdk/gate-tests/check-portability-floor/good/scripts/gate-sdk-config.knobs +4 -0
  546. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/front.ps1 +7 -0
  547. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/plain-verb +5 -0
  548. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/portability-patterns.list +5 -0
  549. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/upgrade-verb +7 -0
  550. package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +154 -0
  551. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/demo-kit/checks/check-beta.gate +2 -0
  552. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/docs/roster.md +11 -0
  553. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/expect.txt +7 -0
  554. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-alpha.gate +2 -0
  555. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-gamma.gate +2 -0
  556. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-plain.gate +1 -0
  557. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gate-sdk-config.knobs +3 -0
  558. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gates.list +4 -0
  559. package/payload/gate-sdk/gate-tests/check-projection-roster/good/demo-kit/checks/check-beta.gate +2 -0
  560. package/payload/gate-sdk/gate-tests/check-projection-roster/good/docs/roster.md +16 -0
  561. package/payload/gate-sdk/gate-tests/check-projection-roster/good/expect.txt +1 -0
  562. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-alpha.gate +2 -0
  563. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-delta.gate +2 -0
  564. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-epsilon.gate +2 -0
  565. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-plain.gate +1 -0
  566. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gate-sdk-config.knobs +4 -0
  567. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gates.list +5 -0
  568. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.knobs +4 -0
  569. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +1 -1
  570. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.knobs +4 -0
  571. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -1
  572. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +4 -4
  573. package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +4 -4
  574. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +25 -20
  575. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +1 -1
  576. package/payload/gate-sdk/gate-tests/{check-template-registry-parity/bad/scripts/gate-sdk-config.sh → check-smoke-entry-guard/bad/scripts/gate-sdk-config.knobs} +2 -3
  577. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +1 -1
  578. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +1 -1
  579. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +1 -1
  580. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +1 -1
  581. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.knobs +4 -0
  582. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +3 -1
  583. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/session-note.sh +6 -0
  584. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -1
  585. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/session-note.sh +6 -0
  586. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +1 -1
  587. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +2 -0
  588. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/drift-kit/templates/kpis.list +18 -0
  589. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +2 -0
  590. package/payload/gate-sdk/gate-tests/{check-smoke-entry-guard/bad/scripts/gate-sdk-config.sh → check-template-registry-parity/bad/scripts/gate-sdk-config.knobs} +2 -3
  591. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +3 -1
  592. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/drift-kit/templates/kpis.list +17 -0
  593. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -1
  594. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.knobs +4 -0
  595. package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +5 -5
  596. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
  597. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +4 -0
  598. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/accounts.txt +1 -0
  599. package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
  600. package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +5 -1
  601. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +1 -0
  602. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/handles.txt +2 -0
  603. package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +44 -5
  604. package/payload/gate-sdk/gate-tests/emit-arm-shape.test.sh +95 -0
  605. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +10 -10
  606. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +10 -184
  607. package/payload/gate-sdk/gate-tests/reads-census.test.sh +96 -0
  608. package/payload/gate-sdk/gate-tests/run-arm-contract.test.sh +190 -0
  609. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +64 -41
  610. package/payload/gate-sdk/gate-tests/run-for-path.test.sh +2 -2
  611. package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +121 -16
  612. package/payload/gate-sdk/gate-tests/run-gates-linked-worktree.test.sh +136 -0
  613. package/payload/gate-sdk/lib/gate.sh +231 -484
  614. package/payload/gate-sdk/lib/test-hermetic.sh +39 -9
  615. package/payload/gate-sdk/templates/check-skeleton.sh +3 -2
  616. package/payload/gate-sdk/templates/gates-workflow.yml +16 -32
  617. package/payload/gate-sdk/templates/msg-patterns.list +14 -5
  618. package/payload/gate-sdk/templates/portability-patterns.list +56 -0
  619. package/payload/guard-kit/README.md +43 -47
  620. package/payload/guard-kit/checks/check-door-binding.gate +3 -0
  621. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/README.md +6 -0
  622. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/templates/alpha-config.knobs +3 -0
  623. package/payload/guard-kit/gate-tests/check-door-binding/bad/args +5 -0
  624. package/payload/guard-kit/gate-tests/check-door-binding/bad/beta-kit/lib/beta.sh +6 -0
  625. package/payload/guard-kit/gate-tests/check-door-binding/bad/expect.txt +5 -0
  626. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/gate-sdk-config.knobs +4 -0
  627. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/guard-config.knobs +3 -0
  628. package/payload/guard-kit/gate-tests/check-door-binding/bad/site/banner.md +8 -0
  629. package/payload/guard-kit/gate-tests/check-door-binding/bad/site/landing.md +11 -0
  630. package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/README.md +8 -0
  631. package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/templates/settings-hooks.json +20 -0
  632. package/payload/guard-kit/gate-tests/check-door-binding/good/args +7 -0
  633. package/payload/guard-kit/gate-tests/check-door-binding/good/beta-kit/lib/beta.sh +6 -0
  634. package/payload/guard-kit/gate-tests/check-door-binding/good/expect.txt +1 -0
  635. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/gate-sdk-config.knobs +4 -0
  636. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/guard-config.knobs +3 -0
  637. package/payload/guard-kit/gate-tests/check-door-binding/good/site/mirror.md +12 -0
  638. package/payload/guard-kit/gate-tests/check-door-binding/good/site/register.md +24 -0
  639. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +40 -27
  640. package/payload/guard-kit/gate-tests/consumer-rules.test.sh +189 -0
  641. package/payload/guard-kit/gate-tests/door-binding-corpus.test.sh +72 -0
  642. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +48 -23
  643. package/payload/guard-kit/gate-tests/guard-config-knobs.test.sh +170 -0
  644. package/payload/guard-kit/gate-tests/rewrite.test.sh +73 -0
  645. package/payload/guard-kit/gate-tests/scan-prompts.test.sh +174 -8
  646. package/payload/guard-kit/gate-tests/scratch-run.test.sh +150 -13
  647. package/payload/guard-kit/gate-tests/worktree-confinement.test.sh +169 -0
  648. package/payload/guard-kit/guard-tests/background-cases.tsv +14 -5
  649. package/payload/guard-kit/guard-tests/cases.tsv +360 -54
  650. package/payload/guard-kit/guard-tests/powershell-background-cases.tsv +29 -0
  651. package/payload/guard-kit/guard-tests/powershell-cases.tsv +81 -0
  652. package/payload/guard-kit/templates/close-triage.md +15 -62
  653. package/payload/guard-kit/templates/guard-config.knobs +26 -0
  654. package/payload/guard-kit/templates/settings-allow.json +15 -0
  655. package/payload/guard-kit/templates/settings-hooks.json +5 -5
  656. package/payload/lifecycle-kit/README.md +50 -76
  657. package/payload/lifecycle-kit/checks/check-audit-roster.gate +3 -0
  658. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +1 -1
  659. package/payload/lifecycle-kit/checks/check-dispatch-entry.gate +3 -0
  660. package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +1 -1
  661. package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +1 -1
  662. package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +1 -1
  663. package/payload/lifecycle-kit/checks/check-merge-attrs.gate +1 -1
  664. package/payload/lifecycle-kit/checks/check-scratch-citation.gate +1 -1
  665. package/payload/lifecycle-kit/checks/check-shim-restatement.gate +1 -1
  666. package/payload/lifecycle-kit/checks/check-skill-binding.gate +1 -1
  667. package/payload/lifecycle-kit/checks/check-stage-entry.gate +2 -2
  668. package/payload/lifecycle-kit/checks/check-stage-evidence.gate +1 -1
  669. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +2 -2
  670. package/payload/lifecycle-kit/checks/check-stamp-subject.gate +3 -0
  671. package/payload/lifecycle-kit/checks/check-survey-record.gate +2 -2
  672. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +98 -21
  673. package/payload/lifecycle-kit/gate-tests/boundary-stage-journal.test.sh +196 -0
  674. package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +214 -0
  675. package/payload/lifecycle-kit/gate-tests/capture-linked-worktree.test.sh +53 -0
  676. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/args +2 -0
  677. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/expect.txt +6 -0
  678. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/roster.txt +34 -0
  679. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/args +2 -0
  680. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/expect.txt +1 -0
  681. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/roster.txt +22 -0
  682. package/payload/lifecycle-kit/gate-tests/check-audit-roster.test.sh +101 -0
  683. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.knobs +2 -0
  684. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/worktrees/inbox.md +5 -0
  685. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.knobs +2 -0
  686. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +21 -4
  687. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/args +6 -0
  688. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/expect.txt +1 -0
  689. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/head.txt +5 -0
  690. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/marker.txt +1 -0
  691. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/msg.txt +4 -0
  692. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/paths.txt +1 -0
  693. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/staged.txt +5 -0
  694. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/args +6 -0
  695. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/expect.txt +1 -0
  696. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/head.txt +5 -0
  697. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/marker.txt +1 -0
  698. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/msg.txt +4 -0
  699. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/paths.txt +2 -0
  700. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/staged.txt +6 -0
  701. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry.test.sh +60 -0
  702. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +1 -1
  703. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +1 -5
  704. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +1 -5
  705. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +1 -1
  706. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -2
  707. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.knobs +2 -0
  708. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.knobs +2 -0
  709. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/worktrees/queue.md +13 -0
  710. package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +1 -1
  711. package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +1 -1
  712. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +165 -15
  713. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +27 -2
  714. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +4 -1
  715. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +4 -1
  716. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/close.md +5 -0
  717. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +4 -1
  718. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +1 -1
  719. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -1
  720. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +4 -1
  721. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +4 -1
  722. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +4 -1
  723. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +4 -1
  724. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +4 -1
  725. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage.test.sh +73 -0
  726. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/args +4 -0
  727. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/expect.txt +1 -0
  728. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/head.txt +5 -0
  729. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/msg.txt +4 -0
  730. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/staged.txt +6 -0
  731. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/args +4 -0
  732. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/expect.txt +1 -0
  733. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/head.txt +5 -0
  734. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/msg.txt +4 -0
  735. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/staged.txt +7 -0
  736. package/payload/lifecycle-kit/gate-tests/check-stamp-subject.test.sh +59 -0
  737. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +4 -0
  738. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +33 -2
  739. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -1
  740. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +19 -2
  741. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +66 -7
  742. package/payload/lifecycle-kit/gate-tests/dispatch-marker.test.sh +152 -0
  743. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +23 -48
  744. package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +7 -5
  745. package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +119 -0
  746. package/payload/lifecycle-kit/gate-tests/preflight-valve.test.sh +170 -0
  747. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +5 -3
  748. package/payload/lifecycle-kit/gate-tests/ruling-staleness.test.sh +89 -0
  749. package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +77 -0
  750. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +12 -6
  751. package/payload/lifecycle-kit/templates/consult.md +9 -63
  752. package/payload/lifecycle-kit/templates/lead.md +147 -431
  753. package/payload/lifecycle-kit/templates/lifecycle-config.knobs +1 -0
  754. package/payload/lifecycle-kit/templates/release-sweep.md +6 -35
  755. package/payload/lifecycle-kit/templates/stages/align.md +14 -82
  756. package/payload/lifecycle-kit/templates/stages/build.md +30 -98
  757. package/payload/lifecycle-kit/templates/stages/close.md +21 -170
  758. package/payload/lifecycle-kit/templates/stages/scope.md +42 -167
  759. package/payload/lifecycle-kit/templates/stages/spec.md +31 -97
  760. package/payload/lifecycle-kit/templates/stages/validate.md +22 -59
  761. package/payload/lifecycle-kit/templates/upgrade.md +6 -37
  762. package/payload/queue-kit/README.md +33 -48
  763. package/payload/queue-kit/checks/check-deferred-board-tags.gate +3 -0
  764. package/payload/queue-kit/checks/check-queue-entry-budget.gate +2 -2
  765. package/payload/queue-kit/checks/check-queue-hygiene.gate +2 -2
  766. package/payload/queue-kit/checks/check-queue-prose-precondition.gate +1 -1
  767. package/payload/queue-kit/checks/check-queue-sections.gate +1 -1
  768. package/payload/queue-kit/checks/check-queue-slug-liveness.gate +2 -2
  769. package/payload/queue-kit/checks/check-queue-wrap.gate +2 -2
  770. package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -2
  771. package/payload/queue-kit/checks/check-tag-lead-line.gate +2 -2
  772. package/payload/queue-kit/checks/check-task-conservation.gate +1 -1
  773. package/payload/queue-kit/checks/check-task-names.gate +2 -2
  774. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/TASK-QUEUE.md +41 -0
  775. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/expect.txt +6 -0
  776. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/widget-kit/README.md +3 -0
  777. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/TASK-QUEUE.md +39 -0
  778. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/expect.txt +1 -0
  779. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/widget-kit/README.md +3 -0
  780. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +76 -31
  781. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +12 -4
  782. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.knobs +4 -0
  783. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +58 -19
  784. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +8 -4
  785. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.knobs +4 -0
  786. package/payload/queue-kit/gate-tests/check-queue-entry-budget.test.sh +124 -0
  787. package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +11 -1
  788. package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +2 -0
  789. package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +30 -11
  790. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +3 -1
  791. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/expect.txt +1 -0
  792. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/TASK-QUEUE.md +22 -6
  793. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +3 -1
  794. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +1 -1
  795. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +3 -1
  796. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.knobs +1 -0
  797. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +6 -2
  798. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +3 -3
  799. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/worktrees/page.md +4 -0
  800. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.knobs +1 -0
  801. package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +100 -0
  802. package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +3 -1
  803. package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +20 -6
  804. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +15 -8
  805. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.knobs +5 -0
  806. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +13 -6
  807. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.knobs +5 -0
  808. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +28 -7
  809. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +10 -2
  810. package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +30 -8
  811. package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -3
  812. package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +9 -0
  813. package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +20 -6
  814. package/payload/queue-kit/gate-tests/entry-history.test.sh +197 -0
  815. package/payload/queue-kit/gate-tests/queue-counts.test.sh +77 -73
  816. package/payload/queue-kit/gate-tests/queue-edges.test.sh +168 -87
  817. package/payload/queue-kit/gate-tests/queue-index.test.sh +30 -16
  818. package/payload/queue-kit/gate-tests/roadmap.test.sh +65 -58
  819. package/payload/queue-kit/templates/TASK-QUEUE.md +36 -23
  820. package/payload/queue-kit/templates/queue-config.knobs +1 -0
  821. package/payload/site-kit/README.md +29 -45
  822. package/payload/site-kit/checks/check-docs-cname-parity.gate +1 -1
  823. package/payload/site-kit/checks/check-docs-collapsible.gate +3 -0
  824. package/payload/site-kit/checks/check-docs-highlight-coverage.gate +4 -0
  825. package/payload/site-kit/checks/check-docs-liquid-parse.gate +3 -0
  826. package/payload/site-kit/checks/check-docs-render-fidelity.gate +3 -0
  827. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +1 -1
  828. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.knobs +2 -0
  829. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +2 -2
  830. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.knobs +2 -0
  831. package/payload/site-kit/gate-tests/check-docs-collapsible/bad/docs/regions.md +23 -0
  832. package/payload/site-kit/gate-tests/check-docs-collapsible/bad/expect.txt +4 -0
  833. package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/plain.md +3 -0
  834. package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/regions.md +26 -0
  835. package/payload/site-kit/gate-tests/check-docs-collapsible/good/expect.txt +1 -0
  836. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/docs/_layouts/default.html +11 -0
  837. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/expect.txt +4 -0
  838. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/highlight-tokens.list +7 -0
  839. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/site-config.knobs +3 -0
  840. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/docs/_layouts/default.html +14 -0
  841. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/expect.txt +1 -0
  842. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/highlight-tokens.list +7 -0
  843. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/site-config.knobs +1 -0
  844. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/_layouts/default.html +4 -0
  845. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/span.md +3 -0
  846. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +2 -0
  847. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/_layouts/default.html +4 -0
  848. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/front.md +7 -0
  849. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/loop.md +5 -0
  850. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/plain.html +1 -0
  851. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/raw.md +3 -0
  852. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/search.json +4 -0
  853. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/expect.txt +1 -0
  854. package/payload/site-kit/gate-tests/check-docs-liquid-parse-parser.test.sh +62 -0
  855. package/payload/site-kit/gate-tests/check-docs-render-fidelity-batch.test.sh +40 -45
  856. package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +7 -4
  857. package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +7 -4
  858. package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +7 -4
  859. package/payload/site-kit/templates/site-health.yml +60 -88
  860. package/profiles.list +4 -5
  861. package/lib/common/digest.sh +0 -18
  862. package/lib/common/lock.sh +0 -75
  863. package/lib/common/profile.sh +0 -91
  864. package/lib/common/recipe.sh +0 -106
  865. package/lib/diff.sh +0 -66
  866. package/lib/doctor.sh +0 -164
  867. package/lib/init.sh +0 -428
  868. package/lib/uninstall.sh +0 -214
  869. package/lib/update.sh +0 -34
  870. package/payload/canon-kit/SPEC.md +0 -2443
  871. package/payload/canon-kit/checks/check-surface-duplication.sh +0 -106
  872. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +0 -6
  873. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +0 -6
  874. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +0 -10
  875. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +0 -10
  876. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +0 -6
  877. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +0 -6
  878. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +0 -8
  879. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +0 -8
  880. package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +0 -4
  881. package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +0 -4
  882. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +0 -8
  883. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +0 -5
  884. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +0 -5
  885. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +0 -6
  886. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +0 -6
  887. package/payload/canon-kit/lib/spec.sh +0 -560
  888. package/payload/canon-kit/smoke/install.sh +0 -58
  889. package/payload/canon-kit/smoke/violation.sh +0 -22
  890. package/payload/canon-kit/templates/canon-config.sh +0 -2
  891. package/payload/context-kit/SPEC.md +0 -1134
  892. package/payload/context-kit/bin/always-loaded.sh +0 -70
  893. package/payload/context-kit/bin/env-probe.sh +0 -142
  894. package/payload/context-kit/bin/md-index.sh +0 -80
  895. package/payload/context-kit/bin/md-section.sh +0 -63
  896. package/payload/context-kit/bin/pub-index.sh +0 -90
  897. package/payload/context-kit/bin/run-index-tests.sh +0 -91
  898. package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +0 -4
  899. package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +0 -12
  900. package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +0 -12
  901. package/payload/context-kit/index-tests/expected/toolfloor.txt +0 -23
  902. package/payload/context-kit/index-tests/toolfloor-cases.sh +0 -49
  903. package/payload/context-kit/lib/context.sh +0 -56
  904. package/payload/context-kit/lib/pub-lang/rust.sh +0 -26
  905. package/payload/context-kit/lib/pub-lang/ts.sh +0 -32
  906. package/payload/context-kit/lib/toolfloor.sh +0 -58
  907. package/payload/context-kit/smoke/agents-md.sh +0 -139
  908. package/payload/context-kit/smoke/install.sh +0 -64
  909. package/payload/context-kit/smoke/violation.sh +0 -21
  910. package/payload/context-kit/templates/context-config.sh +0 -2
  911. package/payload/delegation-kit/SPEC.md +0 -2078
  912. package/payload/delegation-kit/bin/run-budget-guard-tests.sh +0 -88
  913. package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +0 -97
  914. package/payload/delegation-kit/bin/run-trend-tests.sh +0 -63
  915. package/payload/delegation-kit/bin/run-usage-tests.sh +0 -226
  916. package/payload/delegation-kit/bin/usage-trend.sh +0 -120
  917. package/payload/delegation-kit/bin/usage-verdict.sh +0 -144
  918. package/payload/delegation-kit/bin/wait-probe.sh +0 -184
  919. package/payload/delegation-kit/gate-tests/subagent-stop-liveness.test.sh +0 -99
  920. package/payload/delegation-kit/lib/delegation.sh +0 -84
  921. package/payload/delegation-kit/smoke/install.sh +0 -83
  922. package/payload/delegation-kit/smoke/violation.sh +0 -16
  923. package/payload/delegation-kit/templates/agent-budget-guard.sh +0 -18
  924. package/payload/delegation-kit/templates/agent-dispatch-guard.sh +0 -61
  925. package/payload/delegation-kit/templates/delegation-config.sh +0 -6
  926. package/payload/delegation-kit/templates/statusline-usage.sh +0 -101
  927. package/payload/delegation-kit/templates/subagent-stop-liveness.sh +0 -56
  928. package/payload/delegation-kit/templates/usage-poller.sh +0 -67
  929. package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +0 -20
  930. package/payload/doctrine-kit/SPEC.md +0 -385
  931. package/payload/doctrine-kit/bin/install-doctrine.sh +0 -194
  932. package/payload/doctrine-kit/bin/stage-rules.sh +0 -51
  933. package/payload/doctrine-kit/lib/doctrine.sh +0 -29
  934. package/payload/doctrine-kit/smoke/install.sh +0 -203
  935. package/payload/doctrine-kit/smoke/violation.sh +0 -13
  936. package/payload/drift-kit/SPEC.md +0 -1187
  937. package/payload/drift-kit/bin/drift-report.sh +0 -155
  938. package/payload/drift-kit/bin/kfric.sh +0 -61
  939. package/payload/drift-kit/bin/overhead-meter.sh +0 -106
  940. package/payload/drift-kit/bin/stage-economics.sh +0 -465
  941. package/payload/drift-kit/kpis/kpi-always-loaded.sh +0 -39
  942. package/payload/drift-kit/kpis/kpi-amendment-age.sh +0 -33
  943. package/payload/drift-kit/kpis/kpi-deferred-age.sh +0 -46
  944. package/payload/drift-kit/kpis/kpi-gate-backlog.sh +0 -52
  945. package/payload/drift-kit/kpis/kpi-gate-runtime.sh +0 -31
  946. package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +0 -42
  947. package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +0 -21
  948. package/payload/drift-kit/kpis/kpi-overhead.sh +0 -44
  949. package/payload/drift-kit/kpis/kpi-price-table-age.sh +0 -68
  950. package/payload/drift-kit/kpis/kpi-prompt-friction.sh +0 -38
  951. package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +0 -74
  952. package/payload/drift-kit/kpis/kpi-settings-local.sh +0 -21
  953. package/payload/drift-kit/kpis/kpi-task-split.sh +0 -43
  954. package/payload/drift-kit/lib/drift.sh +0 -43
  955. package/payload/drift-kit/smoke/install.sh +0 -537
  956. package/payload/drift-kit/smoke/overhead-fixture.jsonl +0 -4
  957. package/payload/drift-kit/templates/drift-config.sh +0 -2
  958. package/payload/evidence-kit/SPEC.md +0 -740
  959. package/payload/evidence-kit/bin/diff-baseline.sh +0 -34
  960. package/payload/evidence-kit/bin/run-validate.sh +0 -124
  961. package/payload/evidence-kit/checks/check-producer-liveness.sh +0 -75
  962. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +0 -7
  963. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +0 -7
  964. package/payload/evidence-kit/lib/evidence.sh +0 -193
  965. package/payload/evidence-kit/smoke/install.sh +0 -59
  966. package/payload/evidence-kit/smoke/violation.sh +0 -8
  967. package/payload/evidence-kit/templates/evidence-config.sh +0 -2
  968. package/payload/gate-sdk/SPEC.md +0 -10872
  969. package/payload/gate-sdk/bin/gen-pre-commit.sh +0 -297
  970. package/payload/gate-sdk/bin/install-hooks.sh +0 -60
  971. package/payload/gate-sdk/bin/port-blockers.sh +0 -473
  972. package/payload/gate-sdk/bin/run-consumer-smoke.sh +0 -239
  973. package/payload/gate-sdk/bin/run-gate-tests.sh +0 -179
  974. package/payload/gate-sdk/bin/upgrade-smoke.sh +0 -236
  975. package/payload/gate-sdk/checks/check-action-run-shell.sh +0 -223
  976. package/payload/gate-sdk/checks/check-crate-arms.sh +0 -62
  977. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +0 -450
  978. package/payload/gate-sdk/checks/check-install-disposition.sh +0 -93
  979. package/payload/gate-sdk/checks/check-shellcheck.sh +0 -57
  980. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +0 -2
  981. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +0 -2
  982. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +0 -4
  983. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +0 -14
  984. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +0 -14
  985. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +0 -2
  986. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +0 -2
  987. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +0 -6
  988. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +0 -3
  989. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +0 -6
  990. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +0 -3
  991. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +0 -9
  992. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +0 -3
  993. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +0 -6
  994. package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +0 -10
  995. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +0 -5
  996. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +0 -5
  997. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +0 -5
  998. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +0 -5
  999. package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +0 -211
  1000. package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +0 -112
  1001. package/payload/gate-sdk/lib/consumer-smoke.sh +0 -69
  1002. package/payload/gate-sdk/lib/declaration.sh +0 -59
  1003. package/payload/gate-sdk/lib/inject.sh +0 -80
  1004. package/payload/gate-sdk/smoke/install.sh +0 -171
  1005. package/payload/gate-sdk/smoke/violation.sh +0 -13
  1006. package/payload/guard-kit/SPEC.md +0 -1415
  1007. package/payload/guard-kit/bin/compare-settings-allow.sh +0 -115
  1008. package/payload/guard-kit/bin/run-guard-tests.sh +0 -110
  1009. package/payload/guard-kit/bin/scan-prompts.sh +0 -166
  1010. package/payload/guard-kit/bin/scratch-run.sh +0 -34
  1011. package/payload/guard-kit/gate-tests/guard-read-path.test.sh +0 -52
  1012. package/payload/guard-kit/lib/guard.sh +0 -1014
  1013. package/payload/guard-kit/smoke/install.sh +0 -26
  1014. package/payload/guard-kit/templates/bash-guard.sh +0 -20
  1015. package/payload/guard-kit/templates/escalation-guard.sh +0 -27
  1016. package/payload/guard-kit/templates/guard-config.sh +0 -8
  1017. package/payload/guard-kit/templates/wakeup-guard.sh +0 -20
  1018. package/payload/lifecycle-kit/SPEC.md +0 -2884
  1019. package/payload/lifecycle-kit/bin/cite-survey.sh +0 -81
  1020. package/payload/lifecycle-kit/bin/enter-stage.sh +0 -380
  1021. package/payload/lifecycle-kit/bin/file-gap.sh +0 -101
  1022. package/payload/lifecycle-kit/bin/file-survey.sh +0 -69
  1023. package/payload/lifecycle-kit/bin/install-lifecycle.sh +0 -36
  1024. package/payload/lifecycle-kit/bin/session-id.sh +0 -75
  1025. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +0 -4
  1026. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +0 -4
  1027. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +0 -4
  1028. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +0 -4
  1029. package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +0 -100
  1030. package/payload/lifecycle-kit/lib/stages.sh +0 -194
  1031. package/payload/lifecycle-kit/smoke/install.sh +0 -434
  1032. package/payload/lifecycle-kit/smoke/violation.sh +0 -8
  1033. package/payload/lifecycle-kit/templates/lifecycle-config.sh +0 -2
  1034. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +0 -29
  1035. package/payload/queue-kit/SPEC.md +0 -1436
  1036. package/payload/queue-kit/bin/lesson-sink.sh +0 -28
  1037. package/payload/queue-kit/bin/queue-counts.sh +0 -35
  1038. package/payload/queue-kit/bin/queue-edges.sh +0 -78
  1039. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +0 -6
  1040. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +0 -6
  1041. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +0 -3
  1042. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +0 -3
  1043. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +0 -6
  1044. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +0 -6
  1045. package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +0 -215
  1046. package/payload/queue-kit/lib/queue.sh +0 -129
  1047. package/payload/queue-kit/smoke/install.sh +0 -25
  1048. package/payload/queue-kit/smoke/violation.sh +0 -8
  1049. package/payload/queue-kit/templates/queue-config.sh +0 -2
  1050. package/payload/site-kit/SPEC.md +0 -601
  1051. package/payload/site-kit/checks/check-docs-render-fidelity.sh +0 -242
  1052. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.sh +0 -7
  1053. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.sh +0 -7
  1054. package/payload/site-kit/lib/site.sh +0 -43
  1055. package/payload/site-kit/smoke/install.sh +0 -34
  1056. package/payload/site-kit/smoke/violation.sh +0 -20
  1057. /package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/{check-ported.gate → check-stage-entry.gate} +0 -0
@@ -1,601 +0,0 @@
1
- # site-kit — deployment-truth governance for a repo-served docs site
2
-
3
- A docs site served from the repository (GitHub Pages and equivalents) has two
4
- truths a gate battery must keep straight: what the *tree* says about the site's
5
- host, and whether the *live deployment* is actually up. site-kit gates the
6
- tree-side truths — the cited host, and whether each page renders faithfully
7
- through the platform's own parser — and ships a template for the deployment
8
- liveness, holding the boundary between gate and monitor so neither leaks into
9
- the other.
10
-
11
- ## The monitor boundary
12
-
13
- **The line is where the asserted object lives.** A gate asserts over the tree: a
14
- checkout plus bash is all it needs, which is what makes it deterministic,
15
- hermetic, and safe to block a merge with. Deployment truth is in no checkout —
16
- the live host's responses, its certificate, and the bodies of the Releases it
17
- publishes are state no commit contains — so no gate can assert it, and enforcing
18
- it through a pre-commit or CI gate would break both the low-false-positive
19
- contract and the CI backstop's checkout-plus-bash hermeticity
20
- (gate-sdk/SPEC.md §Enforcement tiers).
21
-
22
- Object location governs rather than *whether a commit caused the failure*, and
23
- the difference is load-bearing. Some host-side failures are caused by nothing any
24
- commit did — DNS, a Pages incident, a stalled certificate renewal. Others are
25
- caused by a session skipping a step, which is commit-shaped in spirit and still
26
- ungateable, because the artifact it damaged sits on the host rather than in the
27
- tree. A criterion built on cause admits the first kind and stumbles on the
28
- second; a criterion built on where the object lives covers both, and stays true
29
- of every probe arm instead of only the arms whose causes it happens to list.
30
-
31
- So the deployment probe is *monitoring*, not a gate: it ships as
32
- `templates/site-health.yml`, a scheduled workflow a consumer copies, and signals
33
- through an issue and a red run of its own, never a blocked merge. The
34
- tree-honesty half — that the repo never *cites* a stale host — is a real gate,
35
- because that is a property of the tree.
36
-
37
- ## Layout and configuration
38
-
39
- The kit is vendored beside gate-sdk (conventionally at `site-kit/`); its gate
40
- is registered in the consumer's `gates.list` by name and resolves through
41
- gate-sdk's multi-kit path. `check-docs-cname-parity` registers where a docs
42
- site with a gated host exists; a consumer without one simply omits it.
43
-
44
- Config follows the kit pattern: copy a `site-config.sh` into the gates dir (or
45
- point `SITE_KIT_CONFIG_FILE` elsewhere) and override any knob; defaults fill
46
- what the consumer left unset, and the loader exits 2 on a config path it was
47
- told to load but cannot find. Knobs:
48
-
49
- - `SITE_KIT_CNAME` — the CNAME file holding the one authoritative host line,
50
- default `docs/CNAME`.
51
- - `SITE_KIT_ALIASES` — array, default empty: every reachable host that is *not*
52
- the cited docs host and must therefore never appear in a `://` URL in the
53
- tree. Rule content by nature, so it is consumer config — a kit literal
54
- carrying it would publish a project's host names across the provenance seam.
55
- - `SITE_KIT_SCAN_ROOT` — the `git ls-files` root the gate walks, default `.`.
56
- - `SITE_KIT_EXEMPT_PATHS` — array of path globs skipped during the scan,
57
- default `("*/gate-tests/*" "*docs/posts/*")`: fixture trees deliberately cite
58
- aliases, and dated posts are immutable published artifacts.
59
- - `SITE_KIT_DOCS_DIR` — the docs-site root `check-docs-render-fidelity` walks
60
- for tracked markdown pages, default `docs`.
61
- - `SITE_KIT_RENDERER` — array, the stdin→stdout **single-document** GFM-to-HTML
62
- command, default the kramdown CLI invocation with GFM input —
63
- `ruby -e '…Kramdown::Document…input: "GFM"…'`, the parser GitHub Pages pins.
64
- It is the contract `check-docs-render-fidelity` renders each page through when
65
- `SITE_KIT_RENDERER_BATCH` is empty: one of the gate's two renderer contracts,
66
- and the fallback of the pair. A consumer whose Pages stack differs points this
67
- at its own renderer; an unresolvable one fails the gate closed.
68
- **Its value is also a port blocker, and repointing it moves one.** The first
69
- element of whatever this knob holds is an external program
70
- `check-docs-render-fidelity` requires, which is what gate-sdk's criterion 7
71
- screens for and what `gate-sdk/bin/port-blockers.sh` derives by resolving this
72
- knob (gate-sdk/SPEC.md §port-blockers). The dependency is spelled nowhere in the
73
- gate's own source, so it is recorded here, where the knob lives: a consumer who
74
- points this at a renderer their payload already carries removes that blocker,
75
- and one who points it at a heavier toolchain deepens it.
76
- - `SITE_KIT_RENDERER_BATCH` — array, **optional**: a command rendering N
77
- documents over one stream, `NUL`-terminated in both directions and
78
- count-preserving, the framing specified in §check-docs-render-fidelity. Setting
79
- it collapses the gate's per-page interpreter restarts into a single process,
80
- which is where substantially all of that gate's cost lives. Its default is the
81
- batch form of the same kramdown-with-GFM-input invocation `SITE_KIT_RENDERER`
82
- defaults to — a `ruby -e` loop splitting stdin on `NUL` and writing one
83
- `NUL`-terminated HTML document per input — filled **only when
84
- `SITE_KIT_RENDERER` is itself still at its kit default.** Filling it
85
- unconditionally would defeat a deliberate pin: a consumer who points
86
- `SITE_KIT_RENDERER` at the version-locked bundle below, not knowing a second
87
- knob now exists, would have that pinned oracle replaced by this unpinned one
88
- and the gate would report clean against a parser build they explicitly
89
- rejected — a false clean produced by an upgrade. Under the rule they instead
90
- keep the per-document path at its own cost and its own semantics, and opt in by
91
- pointing this knob at the batch form of their own pinned renderer.
92
- - `SITE_KIT_CONFIG_FILE` — the loader override; when set it must resolve, else
93
- the gate exits 2 rather than silently run on defaults.
94
-
95
- `templates/site-health.yml` is governed by none of these. Its knobs — `ALT_DOMAIN`
96
- and the three `RELEASE_NOTE_*` below — are **step-level workflow env** set in the
97
- copied file itself, not `SITE_KIT_*` knobs, and `lib/site.sh` never loads them.
98
- The template is copied and edited rather than sourced, so reaching into the gate
99
- config loader would couple a monitor to the gates dir and hard-code a vendored
100
- kit path into a workflow whose whole distribution model is verbatim copy.
101
-
102
- ## check-docs-cname-parity
103
-
104
- `checks/check-docs-cname-parity.gate` (`precommit`, binary-dispatched).
105
- Invariant: no tracked file cites a `SITE_KIT_ALIASES` host in a `://` URL,
106
- where the authoritative host `H` is read from `SITE_KIT_CNAME`. The CNAME file
107
- must hold exactly one non-blank host line (else exit 2); `H` itself is exempt
108
- even when listed among the aliases, so a canonical apex that doubles as a
109
- redirect target is cited freely. The scan enumerates tracked files under
110
- `SITE_KIT_SCAN_ROOT` via `git ls-files`, drops the gate-sdk prune set and every
111
- `SITE_KIT_EXEMPT_PATHS` glob, and greps the survivors for `://<host>`; a host
112
- that is a configured alias other than `H` is a finding. A rename is thus a
113
- one-line edit to the CNAME file that the gate re-propagates — the host lives in
114
- one gated place, and drift anywhere else is caught. The scan reads tracked
115
- content only, so an untracked local file is never a source; a `git ls-files`
116
- error is fail-closed (exit 2). The positional form
117
- `check-docs-cname-parity <scan-root> <cname-file>` lets a fixture point both at
118
- a synthetic tree without touching consumer config.
119
-
120
- **Its default scan root makes the whole tracked tree its content corpus, and
121
- that is a port cost worth stating where the rule lives.** With `SITE_KIT_SCAN_ROOT`
122
- unset the walk is every tracked file, so every kit's `checks/*.sh` and `*.gate`
123
- is inside the corpus this gate reads *as content* — gate-sdk's criterion 4
124
- verbatim, reached through the walk rather than through the trigger field. The
125
- `# graph:` couple is the single literal CNAME file, so the derived
126
- substrate-sensitive set never selects it and gate-sdk's conservation assertion
127
- structurally cannot see the hold; it is the first worked instance in that
128
- direction (gate-sdk/SPEC.md §The fourth budget batch). The discharge is the
129
- general one: the fixture pair carries the arm, because `gate-tests` is pruned
130
- from every live-tree walk and no port can change what is inside it. The pair's
131
- good case therefore takes the default arm — no positional, scan root and CNAME
132
- both off the config bridge, a fixture declaration path inside its own corpus —
133
- and the bad case keeps the explicit-root arm.
134
-
135
- **There is no third positional selecting a config file, and the ground is a
136
- finding rather than a preference.** Such an argument could only work by exporting
137
- `SITE_KIT_CONFIG_FILE` and re-sourcing `lib/site.sh` mid-run. A
138
- `.gate`-dispatched member cannot do that: the config bridge resolves every declared knob *before* the binary starts
139
- (gate-sdk/SPEC.md §lib/gate.sh), so an argument that selects which config file
140
- the knobs come from arrives a process too late, and a documented flag that
141
- silently changes nothing is worse than none. A fixture supplies its own alias set
142
- the way any consumer does — a `site-config.sh` in the gates dir the loader
143
- already resolves — which is the shape gate-sdk/SPEC.md §The third budget batch
144
- settled for the same cause, and it costs the pair nothing.
145
-
146
- ## check-docs-render-fidelity
147
-
148
- Invariant: every tracked markdown page under `SITE_KIT_DOCS_DIR`, rendered
149
- through the Pages parser, leaks no code-span corruption symptom into
150
- rendered text — neither a literal backtick nor a raw non-HTML-element tag
151
- surviving outside a code context — promotes no code-fenced line into a heading,
152
- and renders no fewer tables than its source GFM table starts. GitHub Pages
153
- renders through kramdown's GFM parser, which diverges from github.com's cmark:
154
- consecutive fenced blocks inside one list item corrupt the page — the second
155
- fence prints literally and a `#`-leading skeleton line becomes a heading — so a
156
- tree that reads green on github.com can ship a garbled Pages site with no gate in
157
- the path. This gate is the faithful-artifact-verification class mechanized for
158
- that artifact: it renders the real output and asserts the observed leakage class,
159
- rather than trusting the source.
160
-
161
- The leakage class has more than one root cause, and the assertion keys on the
162
- **shared symptom** rather than on any single cause — one low-false-positive
163
- assertion covering every shape that leaves the same signature. The causes
164
- observed on this tree: (1) a code span that wraps across a line break whose
165
- continuation begins with a block-level or generic XML tag; (2) a single-line code
166
- span whose embedded angle-bracket token (a placeholder such as `<verdict>` or
167
- `<n>`) is consumed as a raw HTML span before the span can close, no line break
168
- involved; (3) a code span nesting escaped backticks alongside such a token. All
169
- three are the same kramdown behavior — parsing blocks before spans, it treats the
170
- angle-bracket token as the start of an HTML block, severing the span so it emits
171
- raw HTML that swallows the rest of the page (`gettalong/kramdown#843`, closed
172
- works-as-designed: a documented, permanent divergence, not a pending fix). A
173
- severed span never forms the closing fence run, so it leaves not a multi-backtick
174
- marker but a **single** stray backtick and a **raw placeholder tag** in the
175
- rendered text — which is exactly the symptom the assertion keys on, so the gate is
176
- a standing defense against the whole class rather than a stopgap against one
177
- backtick-fence shape of it.
178
-
179
- **Reach is `SITE_KIT_DOCS_DIR`, and stays there.** A repo-root page has no site
180
- URL and is served by the forge's own CommonMark view, so a kramdown-only
181
- divergence there is not reader-visible and this gate is right not to walk it.
182
- The renderer-to-surface map is a consumer's own documentation concern, not a
183
- widened scan.
184
-
185
- The scan enumerates tracked `*.md` files under `SITE_KIT_DOCS_DIR` via
186
- `git ls-files` (every underscore-prefixed directory segment excluded — those are
187
- Jekyll internals, not published pages), strips Jekyll front matter so it renders
188
- exactly the body kramdown sees, and asserts three properties per page:
189
-
190
- 1. **No span-corruption leakage** — the rendered HTML's text content, taken
191
- after the `<pre>` blocks and inline `<code>` spans are removed (a legitimate
192
- backtick renders inside `<code>` and a legitimate embedded tag renders as
193
- escaped entities inside it, so both are excluded before the check), carries
194
- neither of two symptoms: (a) **any literal backtick** — a single stray one,
195
- not only a `` `{3,} `` fence run — and (b) **any raw tag whose element name is
196
- not a known HTML element**, matched by name so an attribute-bearing legitimate
197
- tag (`<a href…>`) is excluded and a placeholder token (`<verdict>`, `<n>`,
198
- `<KIT>`) is not. Content inside an `<svg>` or `<math>` subtree is exempt from
199
- (b), tracked by open/close depth: those two roots open foreign content whose
200
- vocabularies (`<circle>`, `<mi>`) are not HTML element names, so scanning them
201
- by the HTML set would red a page for legitimate inline markup. The exemption is
202
- scoped to the subtree rather than granted to the names, so a bare `<path>` or
203
- `<use>` outside any `<svg>` still reds as the placeholder token it is. Keep
204
- such a subtree on one source line: kramdown severs a foreign root split across
205
- a line break, emitting its tail as escaped text, and that is a real render
206
- divergence the gate is right to red.
207
- Either symptom is the signature of a code span or fenced block
208
- the parser failed to form, regardless of which construct confused it: a
209
- backtick that never paired, or a placeholder tag kramdown passed through as a
210
- raw HTML block. The two are complementary — a swallowed page region whose own
211
- inline code re-leaks as literal backticks trips (a), while a swallowed
212
- backtick-free region (pure prose or headings) trips only (b) — so neither
213
- alone covers the class and the assertion keys on both.
214
- 2. **No heading leakage** — the count of rendered heading elements never exceeds
215
- the count of source heading lines the gate's own fence-aware scan (cmark
216
- rules: ATX and setext, both skipped inside a fenced or `~`-fenced block)
217
- places outside any code context. A surplus rendered heading is a `#` line
218
- promoted out of a broken code block.
219
- 3. **No table leakage** — the count of rendered `<table>` elements is never
220
- *less than* the count of source GFM table starts the same fence-aware scan
221
- places outside code. A table start is a pipe-carrying row immediately
222
- followed by a delimiter row (dashes, colons, pipes — the `| --- |` shape).
223
- The direction is one-sided: rendered may *exceed* source (a raw-HTML
224
- `<table>` in source is legitimate and renders without a GFM start); only a
225
- deficit reds. A deficit is a source table that shipped as literal-pipe
226
- paragraph text — kramdown terminates a table only on a blank line, so a
227
- table whose last row abuts a following non-blank line collapses into a
228
- paragraph.
229
-
230
- The renderer is the gate's oracle. Before scanning, the gate probes it on a
231
- one-line document; an unresolvable or non-producing renderer exits 2 with a help
232
- line naming the dependency (ruby plus the kramdown-parser-gfm gem, or a
233
- `SITE_KIT_RENDERER` override) — a gate that cannot run its oracle refuses, never
234
- a false clean. That dependency joins the *consumer's* toolchain only when the
235
- consumer registers this gate; it stays outside env-probe's probe-set floor, and
236
- `docs/install.md`'s Requirements prose states the tier. A consumer with no
237
- published docs site simply omits the gate by the registry-not-array convention
238
- and never installs the dependency.
239
-
240
- **This member is held on shell, and the hop from its declaration lands here.** The
241
- program the rule requires is the **first element of `SITE_KIT_RENDERER`**, so
242
- gate-sdk's criterion 7 blocks the port, and the blocker is class (i) under that
243
- criterion's hold-worthiness test: the renderer *is* the contract this gate renders
244
- through, so removing it changes the verdict and designing it away means
245
- re-deciding the rule. The declaration therefore carries `# port-until:` naming the
246
- queue entry that owns the blocker (gate-sdk/SPEC.md §The `# graph:` manifest). The
247
- dependency itself, and the fact that a consumer who repoints the knob moves it, are
248
- owned at §Layout and configuration under that knob and are not restated here — the
249
- knob's value is what the blocker is a property of, so that bullet is its right home
250
- and this paragraph is the pointer a reader arriving from the declaration needs.
251
-
252
- **The batch stream, and why the count is the fail-closed.** One renderer process
253
- per page is the gate's whole cost — the interpreter restarts, not the rendering —
254
- so where `SITE_KIT_RENDERER_BATCH` is non-empty the gate renders the corpus over
255
- one stream instead. The framing is `NUL`-terminated in both directions: the gate
256
- writes each front-matter-stripped body, `NUL`-terminated, to the command's stdin,
257
- and the command writes each rendered document to stdout in the **same order**,
258
- each `NUL`-terminated. `NUL` is a *terminator* rather than a separator, so N
259
- documents produce exactly N `NUL`s with no trailing-empty ambiguity, and it is
260
- unforgeable by page content for a stronger reason than rarity: bash cannot hold a
261
- `NUL` in a variable, so the gate's own reader has already dropped any `NUL` in
262
- the source before framing happens. A sentinel line would be forgeable — by a docs
263
- page describing this contract, first of all. Length-prefixed framing is equally
264
- sound and loses only on the obligation it puts on a consumer, who would have to
265
- implement exact-byte reads where splitting on a byte is a one-liner in every
266
- language a Pages stack might use.
267
-
268
- Two implementation constraints follow, and a natural reading of the contract
269
- breaks both. **Command substitution strips `NUL`**, so the batch output must
270
- never pass through `$(…)`; the gate reads it through a **process substitution**
271
- instead, which also keeps the loop body in the current shell so the findings it
272
- appends to survive. Writer and reader being separate processes
273
- is what makes the exchange deadlock-free. **Process substitution discards the
274
- renderer's exit status**, so the batch path cannot keep the per-page fail-closed
275
- the per-document loop has — and a renderer that dies mid-stream yields fewer
276
- documents than pages. The gate therefore compares documents-read against
277
- pages-enumerated after the loop, which detects renderer death, truncation and
278
- framing error alike, one check standing in for the status the shell threw away.
279
- It exits 2 — a refusal to run the oracle — never 1, which would report a finding
280
- about the docs. Per-document scanning is unchanged: each document read off the
281
- stream goes through the same assertions, and the source-side scans are untouched.
282
-
283
- **Probe routing.** The gate probes the oracle it will actually run, and only that
284
- one. With the batch knob empty it probes `SITE_KIT_RENDERER` on a one-line
285
- document exactly as above. With the batch knob set it probes the batch command
286
- instead, on a probe that exercises the framing as well as the parser: two
287
- one-line documents in, exactly two non-empty documents back. Probing the
288
- per-document renderer too would refuse a batch-only consumer over a renderer this
289
- run never invokes. A **failing** batch probe exits 2 and does not fall back: a
290
- set knob is the consumer's deliberate statement about which parser is
291
- authoritative, so quietly rendering through a different one is the same
292
- false-clean class the fill condition in §Layout and configuration closes from the
293
- other direction. A gate that cannot run its configured oracle refuses.
294
-
295
- The false-positive floor is the assertion's hard boundary, deliberately set. The
296
- backtick symptom rests on a property of well-formed markdown: every backtick
297
- belongs to a code span, which renders inside `<code>` and is excluded from the
298
- scanned text, so a backtick surviving into paragraph, heading, or list text is a
299
- code span that failed to form — not legitimate prose. Its one residual
300
- legitimate case is documenting the backtick *character* itself; the faithful way
301
- to do that is a doubled-backtick code span, which renders the character inside
302
- `<code>` — excluded from the scan — so the honest form does not trip the gate and
303
- only the fragile bare-backtick form would. The raw-tag symptom rests on
304
- the HTML-element allowlist: kramdown passes an unrecognized `<name>` through
305
- verbatim as raw HTML, while a `<name>` whose element is in the HTML standard is
306
- legitimate markup — so a tag matched by element name against that set is
307
- excluded, and only a token outside it (a placeholder kramdown mistook for an HTML
308
- block) reds. Its residual legitimate case is a page that deliberately embeds a
309
- *non-standard* element (a custom element or web component); a placeholder meant
310
- as literal prose is instead written as a code span (`` `<verdict>` `` renders
311
- `<code>&lt;verdict&gt;</code>`) and never surfaces as a raw tag. Both floors hold
312
- empirically: across the tracked corpus each symptom fires on exactly the
313
- corrupted pages and no clean page. The element set is generic mechanism — the
314
- HTML standard's element list is universal render truth, not consumer rule
315
- content — so it is a kit built-in, not a config seam; a consumer that
316
- legitimately ships non-standard elements in a docs page is the narrow accepted
317
- false positive, and if that demand ever attests, an optional allowlist-extension
318
- knob is the config-via-env answer, deferred until then rather than built against
319
- a case no page presents.
320
-
321
- Honest limit: this is not a full render-diff between the two parsers. It
322
- mechanizes the observed leakage class — the code-span corruption symptom (a
323
- surviving backtick or raw placeholder tag), headings, and tables — and stays
324
- silent on divergences that corrupt none of the three. The first assertion keys
325
- on the shared symptom rather than a multi-backtick fence run, so it implements
326
- the severed-span defense (`gettalong/kramdown#843`) the section describes — prose
327
- and assertion cover the same class. The table count can be
328
- masked by an offsetting raw-HTML `<table>` on the same page: one collapsed GFM
329
- table plus one HTML table balances the counts. The table detector is
330
- deliberately conservative (delimiter-row anchored), so a table kramdown accepts
331
- but the scan does not count can only *under*-count source starts — which
332
- false-cleans, never false-reds. The observed table incident (2026-07-13): the
333
- value page's generated rollup table abutted its `:end` marker and shipped as a
334
- literal-pipe paragraph with the gate silent; the emitter fix (a trailing blank
335
- line) landed then, and this assertion mechanizes the channel. The good/bad
336
- fixture pair exercises the span-corruption symptom (a bad page whose severed span
337
- leaks a stray backtick and a raw placeholder tag, a good page whose faithful code
338
- spans render clean) alongside the fence/heading case. Because that bad page would
339
- red on its fence run alone, every assertion the pair cannot isolate carries a
340
- hermetic unit test of its own, named here rather than described:
341
- `check-docs-render-fidelity-span.test.sh`,
342
- `check-docs-render-fidelity-table.test.sh`,
343
- `check-docs-render-fidelity-foreign.test.sh` and
344
- `check-docs-render-fidelity-batch.test.sh`.
345
-
346
- The span test runs a page with no fence, no surplus heading and no table, whose
347
- only defect is the severed span: it reds span-only and clears in the
348
- doubled-backtick form, so a widening that reds nothing new cannot pass. The table
349
- test is that same shape — a collapsed table reds table-only, a trailing blank
350
- clears. The foreign test holds the SVG/MathML exemption to its *scope*: a page
351
- carrying inline `<svg>` clears, because the exemption follows the subtree by
352
- open/close depth rather than a name list, while a bare `<path>` outside any
353
- `<svg>` still reds — and that second half is what keeps the first from passing
354
- under a blanket widening, which would clear the good page at the cost of the
355
- placeholder tokens the assertion exists for. The batch test exists because the
356
- good/bad pair sets no renderer knob, so it already runs the batch path and cannot
357
- by itself distinguish that path from the fallback; it asserts that the kit's two
358
- renderer defaults render a corpus byte-identically, that a pinned
359
- `SITE_KIT_RENDERER` suppresses the batch default, that the batch path and the
360
- per-document fallback return the same verdict on the same pages, and that a wrong
361
- document count and an unresolvable batch command each exit 2. The count case uses
362
- a stub that always emits two documents, so it passes the two-document probe and is
363
- caught only by the corpus count — a stub the probe already rejected would never
364
- reach the assertion under test.
365
- The positional form `check-docs-render-fidelity.sh [docs-dir] [config-file]`
366
- lets a fixture point the docs dir and renderer knobs at a synthetic tree without
367
- touching consumer config. `precommit` tier, coupling the docs tree.
368
-
369
- Parser-version fidelity (a second honest limit). The oracle is faithful to the
370
- *parser* GitHub Pages uses (kramdown with GFM input), not necessarily to the
371
- exact kramdown *version* Pages pins: a locally-installed kramdown that differs
372
- in patch or minor version from the Pages-locked one can render a construct
373
- differently, so a green local run is not a categorical proof for a divergence
374
- introduced between the two versions. The exact-pin recipe closes that gap for a
375
- consumer that needs it: point `SITE_KIT_RENDERER` at a version-locked bundle —
376
- a `bundle exec ruby …Kramdown…` invocation whose `Gemfile.lock` pins kramdown
377
- (and `kramdown-parser-gfm`) to the versions the `github-pages` gem resolves — so
378
- the oracle and the deploy render byte-for-byte the same parser build. Pin
379
- `SITE_KIT_RENDERER_BATCH` in the same motion, at the batch form of that same
380
- locked bundle, or leave it unset: those are the two states in which the gate runs
381
- the parser build the pin names. Overriding only the per-document knob already
382
- leaves the batch knob empty by its fill rule, so a half-applied pin costs speed
383
- rather than fidelity — but a consumer who set a batch renderer earlier and pins
384
- only the per-document one afterwards has pinned the knob the gate will not use.
385
- The kit does not auto-resolve the pin: fetching the Pages-locked gemset at gate
386
- time would break the hermetic no-network render contract the oracle depends on (a
387
- gate must run offline and deterministically), so it stays a consumer's deliberate
388
- override, not kit-run machinery.
389
-
390
- Renderer agreement (a third honest limit). Where a consumer sets both renderer
391
- knobs, the kit cannot verify that their batch renderer agrees document-for-
392
- document with their per-document one; a divergent pair yields a divergent oracle,
393
- and nothing in the framing contract can detect that. What the kit does hold is
394
- its own pair: the two defaults are asserted byte-identical over a corpus by
395
- fixture, so the zero-config path is covered by construction rather than by
396
- assumption.
397
-
398
- ## lib/site.sh
399
-
400
- The sourced config loader: it loads `SITE_KIT_CONFIG_FILE` (or the gates-dir
401
- `site-config.sh` when that env is unset), then fills each knob's default, so a
402
- gate and a fixture read one resolved configuration. It carries no gate logic —
403
- structure stays in the check, values in config, defaults here.
404
-
405
- Every knob's default is filled whenever the consumer left it unset, with one
406
- exception the loader is the only place to state: `SITE_KIT_RENDERER_BATCH` is
407
- filled only where the loader also owns `SITE_KIT_RENDERER` — where the consumer
408
- overrode neither. A consumer who overrode the per-document renderer and left the
409
- batch knob unset gets an empty batch array instead of a default, so the gate
410
- keeps running the oracle they chose; §Layout and configuration states the rule
411
- with the false clean it exists to prevent.
412
-
413
- ## templates/site-health.yml
414
-
415
- The scheduled live-site probe, copied verbatim into a consumer's
416
- `.github/workflows/`. It reads the apex host from the CNAME file (the same
417
- source the gate trusts), then checks: the apex answers 200 over HTTPS, `www`
418
- and `http` redirect to the canonical origin, an optional `ALT_DOMAIN` redirect
419
- keeps its path, the certificate is at least a fortnight from expiry, and every
420
- published release note is pointed at by a resolving URL in its Release body. A
421
- failure opens or updates a single `site-health` issue and reds the run;
422
- recovery closes it. The `ALT_DOMAIN` value is a bare hostname, never a `://`
423
- literal, so it does not itself trip the parity gate. A `# enforce:` marker rides
424
- the template so that, once copied, an enforcement map projects it as a monitor.
425
-
426
- **The arm roster is a floor, not a ceiling, and "copied verbatim" describes the
427
- distribution model rather than forbidding an edit.** The copy is the consumer's
428
- file: nothing syncs it back, and no gate couples the two, so a consumer may add
429
- arms of its own. Which side of the seam an arm belongs on follows from what it
430
- asserts. An arm implementing an invariant this kit ships belongs in the template,
431
- where every consumer inherits it. An arm implementing a **consumer-local**
432
- invariant belongs in that consumer's copy and must stay out of the template —
433
- copied into a tree that never declared the convention it derives from, it would
434
- assert something no kit ships and no consumer agreed to, which is dead config
435
- that reads as coverage. An arm cannot be truer than the declaration it composes,
436
- so it lives at the widest tier that declaration is true for. A consumer-local
437
- arm becomes template material only if its underlying declaration becomes kit
438
- mechanism — and then it arrives as an optional arm on the existing
439
- set-the-env-or-delete-the-arm pattern, the way the release-note knobs already do.
440
-
441
- The workflow's `permissions:` block is an **allowlist, not an addition** — every
442
- scope it omits is `none` — so reading the tag list and the Release bodies needs
443
- `contents: read` declared beside `issues: write`, and the probe step needs its own
444
- `GH_TOKEN`. On a public repository the declaration is redundant and the arm
445
- appears to work without it; at a private-repo consumer it is the difference
446
- between the arm working and the arm 404ing on every note, because GitHub masks an
447
- unauthorized read as an absent resource — the failure arrives looking like "no
448
- such Release" rather than "not permitted". No gate parses a `permissions:` block
449
- (workflow-security linting is an explicit non-goal, gate-sdk/SPEC.md
450
- §check-action-run-shell), so this one is held by review rather than by an oracle.
451
-
452
- **The release-body arm.** For every tracked release note whose front-matter tag
453
- key names a tag that exists on the remote, the arm asserts two properties over
454
- that tag's Release:
455
-
456
- - **Presence** — a Release exists for the tag, and its body *contains* the note's
457
- canonical URL, derived **scheme-qualified** as `https://` plus the apex host
458
- from the CNAME file plus the path from `RELEASE_NOTE_URL_PATH`. This is what
459
- catches a body that was never filled in.
460
- - **Resolution** — every apex-hosted URL *as literally written in the body*
461
- answers 200. This is what catches a body whose pointer is present but dead.
462
-
463
- **The two run over two different strings, and collapsing them re-opens the defect
464
- the other closes.** A body carrying a trailing-slash URL *contains* the
465
- slash-less form as a substring, so a presence-only check passes a pointer that
466
- 404s; and a probe that derived the URL itself and then resolved *that* would
467
- confirm only its own arithmetic while the body stayed wrong. Presence runs over
468
- the URL the arm derives; resolution over the URLs the body actually carries.
469
-
470
- Presence is deliberately loose in one direction and strict in the other.
471
- *Containment, never equality*: a body may write a suffixed or otherwise decorated
472
- variant of the URL, so a token-equality test reds a corpus that is in fact
473
- correct — and the looseness that permits it is exactly what lets the
474
- trailing-slash form through, which is why resolution exists rather than a
475
- stricter presence. *Scheme-qualified*: a markdown link whose visible label
476
- repeats the URL scheme-less satisfies a scheme-less presence test while the link
477
- *target* goes unchecked, and a wrong-but-resolving target then passes both
478
- assertions with nothing red.
479
-
480
- URL extraction is **scheme-anchored over the whole body text**, never
481
- markdown-link-aware — only the scheme reliably separates a link target from a
482
- visible label — and a trailing **run** of punctuation is stripped from an
483
- extracted URL before it is resolved. The punctuation that occurs in practice is
484
- markdown-structural rather than sentential: a `)` closing a link target, or `)**`
485
- closing one inside bold. A stripping set written for the period captures those
486
- closers into the URL and reds a healthy corpus, so the set carries the markdown
487
- closers alongside sentence punctuation (the template owns the set), and strips a
488
- run rather than a single character — or `)**` merely becomes `)*`.
489
- The extracted set is **not** narrowed to note URLs: the assertion is over
490
- apex-hosted URLs, so a body's other apex links are covered deliberately.
491
-
492
- The tag list comes from the **API, paginated**, never from `git tag`.
493
- `actions/checkout` defaults to `fetch-depth: 1` and fetches no tags, so a
494
- `git tag`-driven arm finds zero released notes and reports green forever. Two
495
- properties of the call are load-bearing: `gh api --paginate` discharges the
496
- paging with no manual page loop, and because it *concatenates* the pages' arrays,
497
- `--jq 'length'` returns the last page's length rather than the total — so the
498
- count is taken by streaming the elements, and the pagination is forward-looking
499
- insurance no run will ever confirm until a consumer passes its first page. The
500
- tag list is not replaceable by a per-note Release-by-tag lookup: a 404 there
501
- cannot distinguish a tag that was never pushed (a legitimate skip for a note
502
- whose release is deferred) from a tag whose Release is missing (a real finding),
503
- and conflating them either reds every deferred note or hides a missing Release.
504
-
505
- **The arm's three knobs** are step-level workflow env on the probe step, set in
506
- the copied file the way `ALT_DOMAIN` already is (§Layout and configuration):
507
-
508
- - `RELEASE_NOTE_GLOB` — the tracked path glob enumerating release-note files.
509
- - `RELEASE_NOTE_TAG_KEY` — the front-matter key whose value is the tag a note
510
- belongs to. Load-bearing rather than decorative: a posts directory holds posts
511
- that are not release notes, and this key is what separates them. It is read
512
- **anchored inside the opening front-matter fence**, so the same key spelled in
513
- a note's body is not mistaken for the note's own tag.
514
- - `RELEASE_NOTE_URL_PATH` — the site path a note is published at, written with a
515
- `{slug}` token the arm substitutes with the note filename minus its extension.
516
- It holds the **path only**; the host is never repeated here, because the CNAME
517
- file stays the single source for it and a host rename must stay a one-file
518
- edit. This is the knob with no cross-check anywhere — nothing outside the site
519
- generator derives a note's served URL — so it is the one a consumer can set
520
- wrongly and see nothing red. The concrete trap: a generator that emits
521
- `/posts/<slug>.html` while the host *also* serves the extensionless form makes
522
- the suffixed value look the more literally correct of the two, and it reds
523
- every body written to the bare form.
524
-
525
- **The zero-cases, ruled exhaustively.** Every count the arm ranges over can be
526
- zero, and each zero is either a finding or a legitimate pass; an unruled one is
527
- how the arm becomes a green that means nothing.
528
-
529
- - **The glob matches no notes** — a **finding**. A misconfigured
530
- `RELEASE_NOTE_GLOB` is itself the defect, which is what makes "set these knobs
531
- or delete the arm" an instruction rather than advice.
532
- - **The tag-list call fails** — a **finding**, asserted on the call's own exit
533
- status with the API's error text (which carries the HTTP code) in the message,
534
- never inferred from the count that follows. The probe step runs under `set +e`,
535
- so a failed invocation yields an empty tag list and a zero exit; every note then
536
- reads "not yet released" and the arm reports a clean run forever. On the
537
- per-Release lookup a failure reads like "no such Release"; on the tag-list call
538
- the same failure reads like "green".
539
- - **The per-Release lookup fails for a tag that exists** — a **finding**. The tag
540
- list has already established that the tag is real, so this is the
541
- missing-Release case rather than the deferred-release one.
542
- - **The glob matches notes and none carries the tag key** — **not** a finding,
543
- stated so it is not added by symmetry with the first case. A consumer whose
544
- notes genuinely precede its first release is in this state legitimately. It is
545
- nonetheless the likelier of the two knob misconfigurations, precisely because
546
- the glob's failure is loud and the key's is silent.
547
- - **Zero *released* notes** — not a finding, for the same reason.
548
-
549
- **The census line makes those states readable; the rulings above are what make a
550
- vacuous pass impossible.** On every run the arm prints a census of what it ranged
551
- over — notes found, of those carrying the tag key, of those released against the
552
- remote tag count, and of those checked. No count in it is another by
553
- construction: the gap between *found* and *keyed* separates a typo'd
554
- `RELEASE_NOTE_TAG_KEY` from a corpus that simply mixes notes with ordinary posts,
555
- the gap between *keyed* and *released* is the legitimate pre-release state, and
556
- the gap between *released* and *checked* is a Release the arm could not read.
557
- Collapsing *found* into *keyed* would render the first two of those states
558
- identically, which is what reporting them apart buys. This is the same shape as
559
- gate-sdk's vacuous-pass
560
- tripwire (§run-gates): a *reading* available to whoever opens the run log, not an
561
- assertion, and on a green run nobody opens it. It earns its place as the
562
- diagnostic naming which state a reader is in; it is not itself what stands
563
- between this arm and a vacuous pass.
564
-
565
- **Stated coverage limit.** The arm is driven from the tree's notes, so it is total
566
- over note→Release and silent on the reverse: a Release carrying no note anywhere
567
- in the tree reds nowhere. The deliverable is the note's pointer, and the
568
- population that has ever gone wrong is the pointer's.
569
-
570
- **Cost per run.** The paginated tag list, one Release lookup per released note,
571
- and one resolution request per distinct apex URL in each body — linear in release
572
- count, on a daily schedule, well inside the authenticated rate limit.
573
- Deliberately uncapped and unknobbed: a "newest N only" bound would stop probing
574
- exactly the old releases where this class of defect has actually been found.
575
-
576
- The kit's `smoke/install.sh` installs the template verbatim into the scratch tree
577
- as governed surface, and registers the gates that read it. The scratch battery is
578
- the union of what each kit's `smoke/install.sh` registers; this kit contributes
579
- `check-docs-cname-parity` and — because it writes the only Actions-shaped surface
580
- any install writes — the gates that lint a workflow's Actions shape:
581
- `check-action-pinning`, `check-action-run-shell`, `check-action-gh-repo`.
582
- `check-tree-terms` reads the installed file too, for tree terms. So a template
583
- regression in the workflow's bash, its action pins, or its `gh` repository
584
- context reds the smoke rather than surfacing at a consumer.
585
-
586
- Those four qualify under the registration accounting's predicate — a gate earns a
587
- scratch-battery slot when it reads a surface the install writes — because this
588
- install writes the workflow they lint. The predicate binds every kit and is owned
589
- by gate-sdk/SPEC.md §Consumer smoke, which also rules on the omissions: what this
590
- kit leaves unregistered is decided by the accounting's probe, not by a judgment
591
- recorded here.
592
-
593
- ## Out of scope
594
-
595
- The kit does not resolve DNS, provision certificates, or configure the host
596
- platform — those are the deployment's concerns, surfaced by the monitor, not
597
- governed by a gate. It does not gate the *content* of the docs site (links,
598
- commands, prose): that is canon-kit's charge over the governed doc set —
599
- `check-docs-render-fidelity` gates how a page *renders*, never what it says. And
600
- it holds no opinion on which host a project uses — only that the tree cites one,
601
- and that the CNAME file names it.