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
@@ -2,11 +2,11 @@
2
2
  # Behavioral test of check-graph's whole-registry path — assertions A (manifest
3
3
  # well-formedness), B (couples<->trigger parity), C (the cycle-valve rule),
4
4
  # D (pre-commit + commit-msg hook freshness), E (graph-artifact freshness) and
5
- # F (emitted asset hrefs resolve). None is reachable from the good/bad pair: the
6
- # pair's cwd is a case dir and a `good/` case must exit 0, while D and E always
7
- # run on the full path — D's `gen-pre-commit.sh --emit` cds to
8
- # `git rev-parse --show-toplevel`, so satisfying it from a case dir would need a
9
- # committed byte-copy of the real repo's generated hook inside gate-tests/.
5
+ # F (emitted asset hrefs resolve), and the `gen=manual` round-trip. None is
6
+ # reachable from the good/bad pair: the pair's cwd is a case dir and a `good/`
7
+ # case must exit 0, while D and E always run on the full path, so satisfying D
8
+ # from a case dir would need a committed byte-copy of the real repo's generated
9
+ # hook inside gate-tests/.
10
10
  # So the corpus is a mini-consumer tree built here and thrown away: the port
11
11
  # cannot add or remove a file in it, which is the property criterion 4 asks of a
12
12
  # gate-source auditor's oracle (gate-sdk/SPEC.md §The port-candidate criteria).
@@ -14,13 +14,12 @@
14
14
  # The tree carries both declaration spellings (a `.sh` member and a `.gate` one),
15
15
  # all four of assertion B's coverage branches, and all three cycle-valve branches.
16
16
  #
17
- # Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
17
+ # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
18
18
  set -uo pipefail
19
19
  source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
20
20
 
21
21
  DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # gate-sdk/
22
22
  CHECKS="$DIR/checks"
23
- GEN="$DIR/bin/gen-pre-commit.sh"
24
23
 
25
24
  SANDBOX="$(mktemp -d)"
26
25
  trap 'rm -rf "$SANDBOX"' EXIT
@@ -65,16 +64,21 @@ LIST
65
64
  # B branch 3 (a literal couple read against the trigger as a bash pattern)
66
65
  # and C branch 3 (no leading surface — valve must be none)
67
66
  member check-epsilon 'couples=docs/site.md trigger=docs/*.md dir=bi valve=none tier=precommit'
68
- cat >"$repo/scripts/graph-vocab.sh" <<'VOCAB'
69
- GRAPH_VOCAB=('scripts/gates.list' 'scripts/*.sh' '*.sh' 'docs/site.md' 'docs/*.md' 'SPEC.md')
70
- GRAPH_LEADING=('SPEC.md')
71
- GRAPH_LAGGING=('scripts/*.sh')
72
- GRAPH_LAYERS=('surfaces:governed surfaces')
67
+ cat >"$repo/scripts/graph-vocab.knobs" <<'VOCAB'
68
+ GRAPH_VOCAB[] = scripts/gates.list
69
+ GRAPH_VOCAB[] = scripts/*.sh
70
+ GRAPH_VOCAB[] = *.sh
71
+ GRAPH_VOCAB[] = docs/site.md
72
+ GRAPH_VOCAB[] = docs/*.md
73
+ GRAPH_VOCAB[] = SPEC.md
74
+ GRAPH_LEADING[] = SPEC.md
75
+ GRAPH_LAGGING[] = scripts/*.sh
76
+ GRAPH_LAYERS[] = surfaces:governed surfaces
73
77
  VOCAB
74
78
  }
75
79
 
76
80
  regen() { # regen() -> rewrite both hooks and the graph artifact from the manifests
77
- ( cd "$repo" && bash "$GEN" --write >/dev/null 2>&1 ) || return 1
81
+ ( cd "$repo" && bash "$DIR/bin/run-gates.sh" --emit git-hooks --write >/dev/null 2>&1 ) || return 1
78
82
  ( cd "$repo" && bash "$DIR/bin/run-gates.sh" --emit graph >scripts/CHECK-GRAPH.html 2>/dev/null ) || return 1
79
83
  }
80
84
 
@@ -182,9 +186,40 @@ regen || true; run
182
186
  want_green f-asset-href-resolves
183
187
  unset GATE_SDK_GRAPH_THEME_DIR
184
188
 
189
+ # --- gen=manual: the placeholder, the round-trip, and a region edited in place ---
190
+ manual_member() {
191
+ seed
192
+ printf 'check-eta\n' >>"$repo/scripts/gates.list"
193
+ member check-eta 'couples=docs/site.md trigger=docs/*.md dir=one valve=none tier=precommit gen=manual'
194
+ }
195
+ hook="$repo/scripts/git-hooks/pre-commit"
196
+ todo=' # TODO: fill this manual region, then re-run --emit'
197
+
198
+ manual_member; regen || true; run
199
+ if ! grep -qxF -- "$todo" "$hook" || ! grep -qxF '# >>> manual: check-eta' "$hook" \
200
+ || ! grep -qxF '# <<< manual: check-eta' "$hook"; then
201
+ echo " FAIL [manual-placeholder]: the hook lacks the sentinels around the TODO line"; fails=$((fails + 1))
202
+ fi
203
+ want_green manual-placeholder
204
+
205
+ manual_member; regen || true
206
+ filled="$(awk -v todo="$todo" '$0 == todo { print " echo hand-filled"; print ""; print " run_gate check-eta scripts/check-eta.sh"; next } { print }' "$hook")"
207
+ printf '%s\n' "$filled" >"$hook"
208
+ before="$(cat "$hook")"
209
+ regen || true; run
210
+ if ! grep -qxF ' echo hand-filled' "$hook" || [[ "$(cat "$hook")" != "$before" ]]; then
211
+ echo " FAIL [manual-round-trip]: a second --write did not carry the filled region back byte for byte"; fails=$((fails + 1))
212
+ fi
213
+ want_green manual-round-trip
214
+
215
+ manual_member; regen || true
216
+ edited="$(awk -v todo="$todo" '$0 == todo { print " echo edited-in-place"; next } { print }' "$hook")"
217
+ printf '%s\n' "$edited" >"$hook"
218
+ run; want_green manual-stale-region
219
+
185
220
  if [[ "$fails" -gt 0 ]]; then
186
221
  echo "check-graph-tree.test: $fails case(s) failed"
187
222
  exit 1
188
223
  fi
189
- echo "check-graph-tree.test: ok (constructed consumer tree: A/B/C/D/E/F, both declaration spellings, 4 parity branches, 3 cycle-valve branches, 15 cases)"
224
+ echo "check-graph-tree.test: ok (constructed consumer tree: A/B/C/D/E/F, both declaration spellings, 4 parity branches, 3 cycle-valve branches, the gen=manual round-trip, 18 cases)"
190
225
  exit 0
@@ -1,10 +1,10 @@
1
1
  # spec: gate-sdk/SPEC.md §check-identity — the case reaches the rule through the
2
2
  # actual-source knobs, which is what makes the pair a parity oracle for the live arm
3
3
  # rather than for a fixture-only second code path.
4
- GATE_SDK_IDENTITY_FILE="identity.conf"
5
- GATE_SDK_GIT_EMAIL_FILE="git-config-email"
6
- GATE_SDK_GIT_REMOTES_FILE="git-remotes"
4
+ GATE_SDK_IDENTITY_FILE = identity.conf
5
+ GATE_SDK_GIT_EMAIL_FILE = git-config-email
6
+ GATE_SDK_GIT_REMOTES_FILE = git-remotes
7
7
  # spec: gate-sdk/SPEC.md §check-identity — the account kind's actual is the CLI's
8
8
  # persisted hosts file, and the case pins it: left to derive, the case would read
9
9
  # the operator's real config and stop being hermetic.
10
- GATE_SDK_GH_HOSTS_FILE="gh-hosts.yml"
10
+ GATE_SDK_GH_HOSTS_FILE = gh-hosts.yml
@@ -1,10 +1,10 @@
1
1
  # spec: gate-sdk/SPEC.md §check-identity — the case reaches the rule through the
2
2
  # actual-source knobs, which is what makes the pair a parity oracle for the live arm
3
3
  # rather than for a fixture-only second code path.
4
- GATE_SDK_IDENTITY_FILE="identity.conf"
5
- GATE_SDK_GIT_EMAIL_FILE="git-config-email"
6
- GATE_SDK_GIT_REMOTES_FILE="git-remotes"
4
+ GATE_SDK_IDENTITY_FILE = identity.conf
5
+ GATE_SDK_GIT_EMAIL_FILE = git-config-email
6
+ GATE_SDK_GIT_REMOTES_FILE = git-remotes
7
7
  # spec: gate-sdk/SPEC.md §check-identity — the account kind's actual is the CLI's
8
8
  # persisted hosts file, and the case pins it: left to derive, the case would read
9
9
  # the operator's real config and stop being hermetic.
10
- GATE_SDK_GH_HOSTS_FILE="gh-hosts.yml"
10
+ GATE_SDK_GH_HOSTS_FILE = gh-hosts.yml
@@ -5,7 +5,7 @@
5
5
  # host-block-less CLI config into — plus the `users`/`user` key collision, whose
6
6
  # whole point is that a wrong implementation still passes the pair.
7
7
  #
8
- # Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
8
+ # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
9
9
  set -uo pipefail
10
10
  source "$(dirname "${BASH_SOURCE[0]}")/../lib/test-hermetic.sh"
11
11
 
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ # graph: couples=scripts/eta.list dir=one valve=none tier=precommit
3
+ # install: never
4
+ # armed-by: ALPHA_KIT_ARMING
5
+ # spec: alpha-kit/SPEC.md §check-eta — arms on a knob no static kit declares, so a doctor line naming it could never fire
6
+ set -uo pipefail
7
+ exit 0
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ # graph: couples=scripts/iota.list dir=one valve=none tier=precommit
3
+ # install: never
4
+ # armed-by: content GATE_SDK_MSG_PATTERN_FILES
5
+ # spec: alpha-kit/SPEC.md §check-iota — the content form naming another kit's knob, which a gate of this kit is never armed by
6
+ set -uo pipefail
7
+ exit 0
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ # graph: couples=scripts/theta.list dir=one valve=none tier=precommit
3
+ # install: never
4
+ # armed-by: content
5
+ # spec: alpha-kit/SPEC.md §check-theta — the content form with no knob after it, which names no file doctor could read
6
+ set -uo pipefail
7
+ exit 0
@@ -0,0 +1,3 @@
1
+ # graph: couples=scripts/zeta.list dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # spec: alpha-kit/SPEC.md §check-zeta — a descriptor-declared member reaching an adopter at install, whose name the kit's smoke roster never carries: the second declaration spelling is read as content, and its extension is stripped before the roster lookup
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  set -euo pipefail
3
- : "${SMOKE_KIT_ROOT:?run via run-consumer-smoke.sh}"
3
+ : "${SMOKE_KIT_ROOT:?run via run-gates.sh --run-consumer-smoke}"
4
4
  mkdir -p scripts
5
5
  cat >> scripts/gates.list <<'EOF'
6
6
  # alpha-kit
@@ -1,6 +1,9 @@
1
- # Same synthetic-tree steer as good/, with one instance of each assertion:
2
- # check-delta ships no declaration (A), check-epsilon declares a value outside
3
- # the closed vocabulary (A), check-alpha declares zero-config while alpha-kit's
4
- # smoke registers nothing (B), and the stand-in recipe carries literal gate
5
- # names (C).
1
+ # Same synthetic-tree steer as good/, with one instance of each assertion and
2
+ # both declaration spellings carrying one: check-delta ships no declaration (A),
3
+ # check-epsilon declares a value outside the closed vocabulary (A), check-alpha
4
+ # declares zero-config while alpha-kit's smoke registers nothing (B),
5
+ # check-zeta.gate does the same through the descriptor spelling (B), and the
6
+ # stand-in recipe carries literal gate names beside a §-prefixed section
7
+ # citation that registers nothing (C), and check-eta arms on a knob no static
8
+ # kit declares (D).
6
9
  .
@@ -1 +1,6 @@
1
1
  check-delta.sh: 0 '# install:' line(s) where a gate declares exactly one
2
+ check-eta.sh: armed-by names 'ALPHA_KIT_ARMING', which no static kit declares
3
+ check-theta.sh: armed-by 'content' names no knob after it
4
+ check-iota.sh: armed-by names GATE_SDK_MSG_PATTERN_FILES, a gate-sdk knob
5
+ check-zeta.gate: declares zero-config but alpha-kit/smoke/install.sh does not register it
6
+ native/src/installer/recipe.rs:7: literal gate name
@@ -0,0 +1,10 @@
1
+ // Fixture stand-in carrying the second copy the derivation replaced: a literal
2
+ // per-kit roster in the installer, which a kit adding a gate can never update.
3
+ // The §check-install-disposition citation on this line registers nothing and is
4
+ // stripped before the match, so it is not a finding.
5
+ fn recipe_gates(kit: &str) -> &'static [&'static str] {
6
+ match kit {
7
+ "alpha-kit" => &["check-alpha", "check-delta"],
8
+ _ => &[],
9
+ }
10
+ }
@@ -1,5 +1,4 @@
1
- # shellcheck shell=bash
2
1
  # Fixture config: make the sandbox kit the kit root, so gate_kit_roots
3
- # resolves to this case dir (auto-sourced by lib/gate.sh at cwd) rather than
2
+ # resolves to this case dir (read by the gate binary at cwd) rather than
4
3
  # the real repo. See gate-sdk/SPEC.md §Layout and configuration.
5
- GATE_SDK_KIT_DIRS="alpha-kit"
4
+ GATE_SDK_KIT_DIRS = alpha-kit
@@ -1,6 +1,10 @@
1
- # Anchor the sweep at this case dir: gate-sdk-config.sh (auto-sourced at cwd)
1
+ # Anchor the sweep at this case dir: gate-sdk-config.knobs (read at cwd)
2
2
  # names the synthetic kit via GATE_SDK_KIT_DIRS, and the positional root is what
3
- # the relative kit root and the installer recipe path both resolve against.
4
- # alpha-kit declares all three vocabulary values, its one zero-config member is
5
- # registered in its smoke roster, and the stand-in recipe carries no gate name.
3
+ # the installer recipe path resolves against.
4
+ # site-kit is a mixed kit — a .sh-declared and a .gate-declared member side by
5
+ # side — declaring all three vocabulary values, its one zero-config member is
6
+ # registered in its smoke roster, and the tree ships no installer at all, which
7
+ # is the vendored-consumer shape assertion C skips and reports on the clean line.
8
+ # The kit root is named for a static kit so check-omega's arming declaration can
9
+ # name a knob that kit declares (D).
6
10
  .
@@ -1 +1,3 @@
1
1
  INSTALL-DISPOSITION: clean
2
+ 2 arming declaration(s) naming their kit's own knob
3
+ recipe de-literalization checked: no
@@ -1,5 +1,4 @@
1
- # shellcheck shell=bash
2
1
  # Fixture config: make the sandbox kit the kit root, so gate_kit_roots
3
- # resolves to this case dir (auto-sourced by lib/gate.sh at cwd) rather than
2
+ # resolves to this case dir (read by the gate binary at cwd) rather than
4
3
  # the real repo. See gate-sdk/SPEC.md §Layout and configuration.
5
- GATE_SDK_KIT_DIRS="alpha-kit"
4
+ GATE_SDK_KIT_DIRS = site-kit
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=scripts/alpha.list dir=one valve=none tier=precommit
3
3
  # install: zero-config
4
- # spec: alpha-kit/SPEC.md §check-alpha — reads a surface init itself writes, so it registers in a fresh consumer
4
+ # spec: site-kit/SPEC.md §check-alpha — reads a surface init itself writes, so it registers in a fresh consumer
5
5
  set -uo pipefail
6
6
  exit 0
@@ -0,0 +1,3 @@
1
+ # graph: couples=docs/*.md dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: site-kit/SPEC.md §check-beta — a ported gate declares on the same terms; its subject is one the adopter authors later
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ # graph: couples=site-kit/checks/*.sh dir=one valve=none tier=precommit
3
+ # install: never
4
+ # spec: site-kit/SPEC.md §check-gamma — audits the kit corpus itself, so it is not auto-registered on any tree
5
+ set -uo pipefail
6
+ exit 0
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ # graph: couples=CNAME dir=one valve=none tier=precommit
3
+ # install: never
4
+ # armed-by: SITE_KIT_CNAME
5
+ # spec: site-kit/SPEC.md §check-omega — arms on a declared knob of its own kit, the placement assertion D passes
6
+ set -uo pipefail
7
+ exit 0
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ # graph: couples=CNAME dir=one valve=none tier=precommit
3
+ # install: never
4
+ # armed-by: content SITE_KIT_CNAME SITE_KIT_ALIASES
5
+ # spec: site-kit/SPEC.md §check-psi — the content form over two declared knobs of its own kit, which assertion D passes
6
+ set -uo pipefail
7
+ exit 0
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env bash
2
2
  set -euo pipefail
3
- : "${SMOKE_KIT_ROOT:?run via run-consumer-smoke.sh}"
3
+ : "${SMOKE_KIT_ROOT:?run via run-gates.sh --run-consumer-smoke}"
4
4
  mkdir -p scripts
5
5
  cat >> scripts/gates.list <<'EOF'
6
- # alpha-kit
6
+ # site-kit
7
7
  check-alpha
8
8
  EOF
@@ -2,19 +2,22 @@
2
2
 
3
3
  A synthetic kit table that registers every kit root *except* `gate-sdk/` — the
4
4
  landed-kit-fell-out-of-the-docs drift the gate catches. `check-kit-registration`
5
- must REJECT, naming the unregistered root.
5
+ must REJECT, naming the unregistered root. A kit landing without a row here is
6
+ named beside it, which the expectation tolerates.
6
7
 
7
- The surviving rows use the `](<kit>/index.md)` page form (the good case covers
8
- the bare `](<kit>/)` form against the repo's README): a row linking to a page
9
- under the kit root registers that root, so only `gate-sdk/` may be named.
8
+ The surviving rows use the bare `](<kit>/)` form (the good case covers the
9
+ `](<kit>/index.md)` page form against the repo's registry): a row linking the
10
+ kit directory itself registers that root.
10
11
 
11
12
  | kit | status |
12
13
  | --- | --- |
13
- | [lifecycle-kit](lifecycle-kit/index.md) | landed |
14
- | [queue-kit](queue-kit/index.md) | landed |
15
- | [spec-kit](spec-kit/index.md) | landed |
16
- | [guard-kit](guard-kit/index.md) | landed |
17
- | [delegation-kit](delegation-kit/index.md) | landed |
18
- | [context-kit](context-kit/index.md) | landed |
19
- | [drift-kit](drift-kit/index.md) | landed |
20
- | [evidence-kit](evidence-kit/index.md) | landed |
14
+ | [canon-kit](canon-kit/) | landed |
15
+ | [context-kit](context-kit/) | landed |
16
+ | [delegation-kit](delegation-kit/) | landed |
17
+ | [doctrine-kit](doctrine-kit/) | landed |
18
+ | [drift-kit](drift-kit/) | landed |
19
+ | [evidence-kit](evidence-kit/) | landed |
20
+ | [guard-kit](guard-kit/) | landed |
21
+ | [lifecycle-kit](lifecycle-kit/) | landed |
22
+ | [queue-kit](queue-kit/) | landed |
23
+ | [site-kit](site-kit/) | landed |
@@ -1,5 +1,7 @@
1
- # No args: the gate runs against the repo's own README.md (both registry and
2
- # runner doc), which registers every gate_kit_roots kit and names every
3
- # fixture-runner line — the invariant the gate keeps true, so the good case is
4
- # self-maintaining as kits are added. README links the bare kit dir; bad/ covers
5
- # the '](<kit>/index.md)' page form assertion A also accepts.
1
+ # No args: the gate reads this case's own knob file, scripts/gate-sdk-config.knobs,
2
+ # which binds GATE_SDK_REGISTRY_DOC to the repo's real kit registry (docs/kits.md)
3
+ # and leaves GATE_SDK_RUNNER_DOC at its README.md default. Both register every
4
+ # gate_kit_roots kit and name every fixture-runner line — the invariant the gate
5
+ # keeps true, so the good case is self-maintaining as kits are added. The
6
+ # registry links the '](<kit>/index.md)' page form; bad/ covers the bare
7
+ # '](<kit>/)' form assertion A also accepts.
@@ -0,0 +1,2 @@
1
+ # spec: gate-sdk/SPEC.md §run-gate-tests — fixture config: the case resolves knobs inside its own dir, so it binds the registry doc this repo's consumer config binds; move it with scripts/gate-sdk-config.knobs
2
+ GATE_SDK_REGISTRY_DOC = docs/kits.md
@@ -7,7 +7,7 @@
7
7
  # rule for a kit without gate-tests, A's acceptance of both registry link forms
8
8
  # (bare kit dir / a page under it), and the fail-closed missing-doc path.
9
9
  #
10
- # Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
10
+ # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
11
11
  set -uo pipefail
12
12
  source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
13
13
 
@@ -54,7 +54,7 @@ run() { # $1=label $2=want-rc $3=want-substring $4=runner-doc-body
54
54
  # Clean also means A took beta's page-form row: a bare-dir-only match would
55
55
  # name beta here.
56
56
  run "b-owed-satisfied" 0 "(2 kit root(s) each carry a registry row; 1 shipping gate-tests" \
57
- "run-gate-tests.sh alpha-kit/gate-tests alpha-kit/checks"
57
+ "--run-gate-tests alpha-kit/gate-tests alpha-kit/checks"
58
58
 
59
59
  # Runner doc omits alpha's fixture line: a gate-tests-shipping kit fell out of
60
60
  # the documented battery -> assertion B rejects, naming alpha-kit.
@@ -0,0 +1,5 @@
1
+ # The same tree, named relative to this case dir, carrying a GATE_SDK_KIT_DIRS
2
+ # override hand-listed for the flat layout. Nested, the three names resolve to
3
+ # nothing, the kit-root-derived corpora empty, and the arms still exit 0 — the
4
+ # silent class. The gate must REJECT, naming the arm and both counts.
5
+ tree
@@ -0,0 +1 @@
1
+ differs between the flat and the nested vendoring
@@ -0,0 +1,3 @@
1
+ A checks/ directory is what makes a sibling select as a kit root, so this file
2
+ exists only to give git something to track under it. The gate under test never
3
+ reads it.
@@ -0,0 +1,3 @@
1
+ # A tracked *.test.sh under gate-tests/ is what `--emit enum-sets` derives an
2
+ # `<kit>-gate-test` set from, and what `--emit fixture-suites` counts a suite by.
3
+ exit 0
@@ -0,0 +1,3 @@
1
+ # A top-level *.sh under lib/ is what `--emit enum-sets` derives an `<kit>-lib`
2
+ # set from, and it fail-closes on a lib/ that tracks none. One is enough.
3
+ alpha_noop() { :; }
@@ -0,0 +1,3 @@
1
+ A checks/ directory is what makes a sibling select as a kit root, so this file
2
+ exists only to give git something to track under it. The gate under test never
3
+ reads it.
@@ -0,0 +1,3 @@
1
+ # A tracked *.test.sh under gate-tests/ is what `--emit enum-sets` derives an
2
+ # `<kit>-gate-test` set from, and what `--emit fixture-suites` counts a suite by.
3
+ exit 0
@@ -0,0 +1,3 @@
1
+ # A top-level *.sh under lib/ is what `--emit enum-sets` derives an `<kit>-lib`
2
+ # set from, and it fail-closes on a lib/ that tracks none. One is enough.
3
+ beta_noop() { :; }
@@ -0,0 +1,3 @@
1
+ A checks/ directory is what makes a sibling select as a kit root, so this file
2
+ exists only to give git something to track under it. The gate under test never
3
+ reads it.
@@ -0,0 +1,3 @@
1
+ # A top-level *.sh under lib/ is what `--emit enum-sets` derives an `<kit>-lib`
2
+ # set from, and it fail-closes on a lib/ that tracks none. One is enough.
3
+ gate_noop() { :; }
@@ -0,0 +1,7 @@
1
+ # The divergence this case exists to catch: a consumer hand-lists its kit roots
2
+ # instead of letting them derive, and spells them for a flat layout. Vendored at
3
+ # the root the three names resolve; vendored under a subdirectory they name
4
+ # nothing, every kit-root-derived corpus empties, and the arms that read them
5
+ # exit 0 with a smaller number in the line. Nothing in this repository's own
6
+ # config does this — the fixture is the only place the shape exists.
7
+ GATE_SDK_KIT_DIRS = gate-sdk alpha-kit beta-kit
@@ -0,0 +1,3 @@
1
+ # The fixture tree's gates directory. Empty of members on purpose: the gate
2
+ # under test compares kit-root-derived corpora between two layouts of THIS tree
3
+ # and dispatches none of them.
@@ -0,0 +1,7 @@
1
+ # The tree to vendor both ways, named relative to this case dir, which is the
2
+ # gate's cwd. Kit roots derive from the gate-sdk root's parent, so this tree's
3
+ # corpora are identical whichever layout it sits in — which is true only while
4
+ # every path-consuming reader takes the working-directory spelling. Move one
5
+ # back to walk::kit_roots_rel() and this case reds: that is what makes the
6
+ # dialect rule enforced rather than merely written.
7
+ tree
@@ -0,0 +1 @@
1
+ KIT-ROOTS-DIALECT: clean
@@ -0,0 +1,3 @@
1
+ A checks/ directory is what makes a sibling select as a kit root, so this file
2
+ exists only to give git something to track under it. The gate under test never
3
+ reads it.
@@ -0,0 +1,3 @@
1
+ # A tracked *.test.sh under gate-tests/ is what `--emit enum-sets` derives an
2
+ # `<kit>-gate-test` set from, and what `--emit fixture-suites` counts a suite by.
3
+ exit 0
@@ -0,0 +1,3 @@
1
+ # A top-level *.sh under lib/ is what `--emit enum-sets` derives an `<kit>-lib`
2
+ # set from, and it fail-closes on a lib/ that tracks none. One is enough.
3
+ alpha_noop() { :; }
@@ -0,0 +1,3 @@
1
+ A checks/ directory is what makes a sibling select as a kit root, so this file
2
+ exists only to give git something to track under it. The gate under test never
3
+ reads it.
@@ -0,0 +1,3 @@
1
+ # A tracked *.test.sh under gate-tests/ is what `--emit enum-sets` derives an
2
+ # `<kit>-gate-test` set from, and what `--emit fixture-suites` counts a suite by.
3
+ exit 0
@@ -0,0 +1,3 @@
1
+ # A top-level *.sh under lib/ is what `--emit enum-sets` derives an `<kit>-lib`
2
+ # set from, and it fail-closes on a lib/ that tracks none. One is enough.
3
+ beta_noop() { :; }
@@ -0,0 +1,3 @@
1
+ A checks/ directory is what makes a sibling select as a kit root, so this file
2
+ exists only to give git something to track under it. The gate under test never
3
+ reads it.
@@ -0,0 +1,3 @@
1
+ # A top-level *.sh under lib/ is what `--emit enum-sets` derives an `<kit>-lib`
2
+ # set from, and it fail-closes on a lib/ that tracks none. One is enough.
3
+ gate_noop() { :; }
@@ -0,0 +1,3 @@
1
+ # The fixture tree's gates directory. Empty of members on purpose: the gate
2
+ # under test compares kit-root-derived corpora between two layouts of THIS tree
3
+ # and dispatches none of them.
@@ -0,0 +1,5 @@
1
+ # alpha-kit
2
+
3
+ Run the [entry point](smoke/install.sh) to see it work — a link into the
4
+ withheld `smoke/` directory, which the own-SPEC rewrite does not reach and
5
+ which therefore dangles in every installed tree.
@@ -0,0 +1,5 @@
1
+ # Same synthetic-tree steer as good/. alpha-kit links into the withheld smoke/
2
+ # directory — the class the own-SPEC rewrite does not reach; beta-kit links a
3
+ # sibling kit's withheld SPEC.md, which lands under a different kit than the one
4
+ # carrying the link, so the finding's resolved path is the discriminating half.
5
+ .
@@ -0,0 +1,5 @@
1
+ # beta-kit
2
+
3
+ The sibling kit's contracts are in [alpha-kit's SPEC](../alpha-kit/SPEC.md) — a
4
+ cross-kit spelling the own-SPEC rewrite has no leaf for, so it lands on a
5
+ withheld path under a *different* kit than the one linking it.
@@ -0,0 +1,2 @@
1
+ alpha-kit: README.md:3: packed link target 'smoke/install.sh' resolves to payload/alpha-kit/smoke/install.sh, which the payload withholds ('smoke')
2
+ beta-kit: README.md:3: packed link target '../alpha-kit/SPEC.md' resolves to payload/alpha-kit/SPEC.md, which the payload withholds ('SPEC.md')
@@ -0,0 +1,4 @@
1
+ # Same synthetic-tree steer as good/, same non-empty base: the difference is in
2
+ # the READMEs, so the red is the rule firing rather than a config change.
3
+ GATE_SDK_KIT_DIRS = alpha-kit beta-kit
4
+ GATE_SDK_SPEC_BASE_URL = https://fixture.test
@@ -0,0 +1,5 @@
1
+ # alpha-kit
2
+
3
+ Both own-SPEC shapes the packer rewrites: the bare target and the anchored one.
4
+ See [SPEC.md](SPEC.md) for the contracts and [SPEC.md](SPEC.md#a-heading) for
5
+ the one clause, whose fragment passes through unchanged.
@@ -0,0 +1,8 @@
1
+ # Anchor the sweep at this case dir: gate-sdk-config.knobs (read at cwd) names
2
+ # the synthetic kits via GATE_SDK_KIT_DIRS and pins a non-empty base; their
3
+ # relative roots resolve against the positional root. alpha-kit carries both
4
+ # own-SPEC shapes the packer rewrites, beta-kit carries every target class the
5
+ # payload does carry, and gamma-kit ships no README — the skipped-and-counted
6
+ # path. The pinned counts on the clean line are the non-vacuity evidence: a run
7
+ # that rewrote nothing reads differently from this one.
8
+ .
@@ -0,0 +1,9 @@
1
+ # beta-kit
2
+
3
+ Every target class the payload does carry, so a gate that reddened on any
4
+ relative link at all fails here: a sibling file [DOCTRINE.md](DOCTRINE.md), a
5
+ sibling kit root [alpha-kit](../alpha-kit/), an absolute location
6
+ [home](https://fixture.test/), an anchor [below](#a-heading) and a scheme
7
+ [mail](mailto:nobody@fixture.test).
8
+
9
+ ## A heading
@@ -0,0 +1 @@
1
+ PACKED-LINKS: clean (2 packed kit README(s) carry no withheld link target; 2 own-SPEC link(s) resolved to the published location; 1 kit root(s) without a README skipped)
@@ -0,0 +1,4 @@
1
+ # gamma-kit
2
+
3
+ A kit root with no README at all — the skipped-and-counted path, which an
4
+ all-README corpus leaves unexercised.
@@ -0,0 +1,6 @@
1
+ # Fixture config: make the sandbox kits the kit roots, so gate_kit_roots resolves
2
+ # to this case dir (read by the gate binary at cwd) rather than the real repo, and
3
+ # pin a non-empty publisher base so assertion A packs under a real location rather
4
+ # than the gate's own probe. See gate-sdk/SPEC.md §Layout and configuration.
5
+ GATE_SDK_KIT_DIRS = alpha-kit beta-kit gamma-kit
6
+ GATE_SDK_SPEC_BASE_URL = https://fixture.test
@@ -0,0 +1,3 @@
1
+ # Same corpus resolution as good/. The green files beside the violations are standing guards:
2
+ # the violation COUNT is asserted in expect.txt, so a clearance arm that stopped clearing —
3
+ # the comment rule, the presence-probe rule, the crosser's own body — reds this case.