checkwright 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1057) hide show
  1. package/README.md +35 -1361
  2. package/bin/checkwright.ps1 +176 -0
  3. package/bin/checkwright.sh +187 -44
  4. package/package.json +15 -14
  5. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  6. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -0
  7. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  8. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
  9. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  10. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -0
  11. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
  12. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -0
  13. package/payload/artifact/targets.list +133 -24
  14. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  15. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -0
  16. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  17. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
  18. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  19. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  20. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
  21. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -0
  22. package/payload/canon-kit/README.md +25 -37
  23. package/payload/canon-kit/checks/check-amendment-queue.gate +2 -2
  24. package/payload/canon-kit/checks/check-amendment-retired-spelling.gate +3 -0
  25. package/payload/canon-kit/checks/check-amendment-update-target.gate +1 -1
  26. package/payload/canon-kit/checks/check-citation-link.gate +4 -0
  27. package/payload/canon-kit/checks/check-comment-tier.gate +1 -1
  28. package/payload/canon-kit/checks/check-deprecation-task.gate +2 -1
  29. package/payload/canon-kit/checks/check-docs-cmd.gate +2 -2
  30. package/payload/canon-kit/checks/check-docs-link-convention.gate +1 -1
  31. package/payload/canon-kit/checks/check-docs-page-repeat.gate +4 -0
  32. package/payload/canon-kit/checks/check-docs-restatement-parity.gate +4 -0
  33. package/payload/canon-kit/checks/check-fence-command-head.gate +3 -0
  34. package/payload/canon-kit/checks/check-fence-run.gate +3 -0
  35. package/payload/canon-kit/checks/check-install-claim.gate +2 -1
  36. package/payload/canon-kit/checks/check-knob-citation.gate +1 -1
  37. package/payload/canon-kit/checks/check-manifest-count.gate +1 -1
  38. package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
  39. package/payload/canon-kit/checks/check-md-refs.gate +1 -1
  40. package/payload/canon-kit/checks/check-md-unwrapped.gate +3 -0
  41. package/payload/canon-kit/checks/check-measured-claim.gate +2 -1
  42. package/payload/canon-kit/checks/check-payload-claim.gate +2 -1
  43. package/payload/canon-kit/checks/check-prose-bounds.gate +3 -0
  44. package/payload/canon-kit/checks/check-prose-enum.gate +2 -1
  45. package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
  46. package/payload/canon-kit/checks/check-provenance-seam.gate +3 -0
  47. package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
  48. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
  49. package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
  50. package/payload/canon-kit/checks/check-spec-fence-balance.gate +1 -1
  51. package/payload/canon-kit/checks/check-spec-pointer.gate +2 -2
  52. package/payload/canon-kit/checks/check-surface-duplication.gate +3 -0
  53. package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
  54. package/payload/canon-kit/checks/check-tracking-claim.gate +1 -1
  55. package/payload/canon-kit/checks/check-unmarked-claim.gate +2 -1
  56. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +3 -0
  57. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +37 -8
  58. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +6 -3
  59. package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +7 -0
  60. package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +11 -3
  61. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-nosection.md +16 -0
  62. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-thing.md +26 -0
  63. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/expect.txt +8 -0
  64. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/one.md +4 -0
  65. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/two.md +3 -0
  66. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-tidy.md +20 -0
  67. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-widget.md +37 -0
  68. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/README.md +4 -0
  69. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/SPEC.md +4 -0
  70. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/expect.txt +1 -0
  71. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/unnamed.md +4 -0
  72. package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +1 -1
  73. package/payload/canon-kit/gate-tests/check-citation-link/bad/expect.txt +6 -0
  74. package/payload/canon-kit/gate-tests/check-citation-link/bad/scripts/canon-config.knobs +2 -0
  75. package/payload/canon-kit/gate-tests/check-citation-link/bad/site/page.md +13 -0
  76. package/payload/canon-kit/gate-tests/check-citation-link/good/expect.txt +1 -0
  77. package/payload/canon-kit/gate-tests/check-citation-link/good/scripts/canon-config.knobs +2 -0
  78. package/payload/canon-kit/gate-tests/check-citation-link/good/site/page.md +28 -0
  79. package/payload/canon-kit/gate-tests/check-comment-tier/bad/.github/workflows/ci.yml +15 -0
  80. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +2 -0
  81. package/payload/canon-kit/gate-tests/check-comment-tier/bad/scripts/canon-config.knobs +2 -0
  82. package/payload/canon-kit/gate-tests/check-comment-tier/good/.github/workflows/ci.yml +23 -0
  83. package/payload/canon-kit/gate-tests/check-comment-tier/good/config.yml +2 -0
  84. package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
  85. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +1 -1
  86. package/payload/canon-kit/gate-tests/check-comment-tier/good/scripts/canon-config.knobs +2 -0
  87. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +37 -26
  88. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +3 -1
  89. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.knobs +2 -0
  90. package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +6 -2
  91. package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
  92. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.knobs +2 -0
  93. package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +12 -10
  94. package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +4 -1
  95. package/payload/canon-kit/gate-tests/check-docs-cmd.test.sh +61 -0
  96. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +3 -0
  97. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +21 -2
  98. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/expect.txt +2 -0
  99. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/scripts/canon-config.knobs +2 -0
  100. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/page.md +8 -0
  101. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/expect.txt +1 -0
  102. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/scripts/canon-config.knobs +2 -0
  103. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/page.md +24 -0
  104. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +2 -0
  105. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/README.md +10 -0
  106. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +11 -0
  107. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/canon-config.knobs +2 -0
  108. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/gate-sdk-config.knobs +2 -0
  109. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/expect.txt +1 -0
  110. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/README.md +12 -0
  111. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/index.md +13 -0
  112. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/canon-config.knobs +2 -0
  113. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/gate-sdk-config.knobs +2 -0
  114. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/args +1 -0
  115. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +16 -0
  116. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +5 -0
  117. package/payload/canon-kit/gate-tests/check-fence-command-head/good/args +1 -0
  118. package/payload/canon-kit/gate-tests/check-fence-command-head/good/bin/run.sh +3 -0
  119. package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +41 -0
  120. package/payload/canon-kit/gate-tests/check-fence-command-head/good/expect.txt +1 -0
  121. package/payload/canon-kit/gate-tests/check-fence-command-head/good/lib/tool.sh +5 -0
  122. package/payload/canon-kit/gate-tests/check-fence-command-head/good/scripts/canon-config.knobs +2 -0
  123. package/payload/canon-kit/gate-tests/check-fence-run/bad/args +1 -0
  124. package/payload/canon-kit/gate-tests/check-fence-run/bad/doc.md +32 -0
  125. package/payload/canon-kit/gate-tests/check-fence-run/bad/expect.txt +7 -0
  126. package/payload/canon-kit/gate-tests/check-fence-run/good/args +1 -0
  127. package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +31 -0
  128. package/payload/canon-kit/gate-tests/check-fence-run/good/expect.txt +1 -0
  129. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.knobs +7 -0
  130. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.knobs +7 -0
  131. package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +42 -7
  132. package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +1 -2
  133. package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  134. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +37 -8
  135. package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +3 -0
  136. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +10 -0
  137. package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +6 -6
  138. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +1 -1
  139. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/doc.md +13 -0
  140. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +4 -0
  141. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/scripts/canon-config.knobs +2 -0
  142. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/doc.md +45 -0
  143. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -0
  144. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/scripts/canon-config.knobs +4 -0
  145. package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +3 -0
  146. package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +1 -0
  147. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.knobs +4 -0
  148. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +8 -0
  149. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.knobs +4 -0
  150. package/payload/canon-kit/gate-tests/check-measured-claim/good/worktrees/SPEC.md +12 -0
  151. package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +32 -13
  152. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.knobs +6 -0
  153. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.knobs +6 -0
  154. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/CLAUDE.md +9 -0
  155. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/SPEC.md +11 -0
  156. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/expect.txt +3 -0
  157. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/scripts/canon-config.knobs +3 -0
  158. package/payload/canon-kit/gate-tests/check-prose-bounds/good/CLAUDE.md +10 -0
  159. package/payload/canon-kit/gate-tests/check-prose-bounds/good/SPEC.md +27 -0
  160. package/payload/canon-kit/gate-tests/check-prose-bounds/good/expect.txt +1 -0
  161. package/payload/canon-kit/gate-tests/check-prose-bounds/good/scripts/canon-config.knobs +3 -0
  162. package/payload/canon-kit/gate-tests/check-prose-bounds.test.sh +98 -0
  163. package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.knobs +3 -0
  164. package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.knobs +3 -0
  165. package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +55 -25
  166. package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +2 -0
  167. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -0
  168. package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
  169. package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/{canon-config.sh → canon-config.knobs} +2 -5
  170. package/payload/canon-kit/gate-tests/check-prose-tells/good/worktrees/prose.md +17 -0
  171. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/TASK-QUEUE.md +15 -0
  172. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/expect.txt +8 -0
  173. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/canon-config.knobs +3 -0
  174. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/gate-sdk-config.knobs +2 -0
  175. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/lifecycle-config.knobs +12 -0
  176. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/widget-toolkit/SPEC.md +27 -0
  177. package/payload/canon-kit/gate-tests/check-provenance-seam/good/TASK-QUEUE.md +15 -0
  178. package/payload/canon-kit/gate-tests/check-provenance-seam/good/expect.txt +1 -0
  179. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/canon-config.knobs +3 -0
  180. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/gate-sdk-config.knobs +2 -0
  181. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/lifecycle-config.knobs +12 -0
  182. package/payload/canon-kit/gate-tests/check-provenance-seam/good/widget-toolkit/SPEC.md +20 -0
  183. package/payload/canon-kit/gate-tests/check-provenance-seam.test.sh +136 -0
  184. package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +1 -1
  185. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +6 -0
  186. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
  187. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +2 -0
  188. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +4 -0
  189. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +6 -0
  190. package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +15 -0
  191. package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +10 -0
  192. package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
  193. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +2 -0
  194. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
  195. package/payload/canon-kit/gate-tests/check-spec-pointer/good/vendored-kit/notes.txt +4 -0
  196. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +3 -1
  197. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +9 -3
  198. package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -1
  199. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +3 -0
  200. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +1 -0
  201. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.knobs +4 -0
  202. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +3 -0
  203. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.knobs +4 -0
  204. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/worktrees/SPEC.md +11 -0
  205. package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +53 -28
  206. package/payload/canon-kit/templates/SPEC-amendment.md +46 -25
  207. package/payload/canon-kit/templates/canon-config.knobs +1 -0
  208. package/payload/context-kit/README.md +33 -61
  209. package/payload/context-kit/checks/check-brevity.gate +2 -2
  210. package/payload/context-kit/checks/check-footprint-fresh.gate +3 -2
  211. package/payload/context-kit/checks/check-memory-off.gate +1 -1
  212. package/payload/context-kit/checks/check-settings-paths.gate +2 -2
  213. package/payload/context-kit/checks/check-settings-pins.gate +1 -1
  214. package/payload/context-kit/checks/check-surface-ratchet.gate +3 -0
  215. package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +9 -2
  216. package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
  217. package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +9 -4
  218. package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -1
  219. package/payload/context-kit/gate-tests/check-brevity.test.sh +107 -24
  220. package/payload/context-kit/gate-tests/check-footprint-fresh/good/CLAUDE.md +6 -0
  221. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/SPEC.md +3 -0
  222. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/templates/guide.md +3 -0
  223. package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +32 -0
  224. package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/{context-config.sh → context-config.knobs} +1 -3
  225. package/payload/context-kit/gate-tests/check-memory-off/good/scripts/{context-config.sh → context-config.knobs} +1 -3
  226. package/payload/context-kit/gate-tests/check-memory-off.test.sh +1 -1
  227. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +2 -0
  228. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +21 -0
  229. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/run-gates.sh +4 -0
  230. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -1
  231. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +48 -1
  232. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/run-gates.sh +4 -0
  233. package/payload/context-kit/gate-tests/check-settings-pins.test.sh +1 -1
  234. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/CLAUDE.md +5 -0
  235. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/expect.txt +2 -0
  236. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/scripts/context-config.knobs +4 -0
  237. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/surface-ceiling.txt +2 -0
  238. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/templates/ungoverned.md +3 -0
  239. package/payload/context-kit/gate-tests/check-surface-ratchet/good/CLAUDE.md +3 -0
  240. package/payload/context-kit/gate-tests/check-surface-ratchet/good/expect.txt +1 -0
  241. package/payload/context-kit/gate-tests/check-surface-ratchet/good/scripts/context-config.knobs +4 -0
  242. package/payload/context-kit/gate-tests/check-surface-ratchet/good/surface-ceiling.txt +4 -0
  243. package/payload/context-kit/gate-tests/check-surface-ratchet/good/templates/held.md +4 -0
  244. package/payload/context-kit/gate-tests/check-surface-ratchet.test.sh +76 -0
  245. package/payload/context-kit/index-tests/corpus/baseline.txt +1 -1
  246. package/payload/context-kit/index-tests/corpus/surface.md +1 -6
  247. package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -1
  248. package/payload/context-kit/templates/close-brevity.md +9 -28
  249. package/payload/context-kit/templates/context-config.knobs +1 -0
  250. package/payload/context-kit/templates/session-context.sh +44 -29
  251. package/payload/delegation-kit/README.md +35 -69
  252. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +1 -1
  253. package/payload/delegation-kit/checks/check-gate-tamper.gate +1 -1
  254. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +23 -2
  255. package/payload/delegation-kit/templates/agent-execution.md +23 -389
  256. package/payload/delegation-kit/templates/delegation-config.knobs +4 -0
  257. package/payload/delegation-kit/templates/dispatch-checklists.md +8 -45
  258. package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +33 -17
  259. package/payload/doctrine-kit/DOCTRINE.md +92 -458
  260. package/payload/doctrine-kit/README.md +24 -55
  261. package/payload/doctrine-kit/checks/check-doctrine-registration.gate +1 -1
  262. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +48 -3
  263. package/payload/drift-kit/README.md +43 -89
  264. package/payload/drift-kit/templates/close-knowledge.md +7 -22
  265. package/payload/drift-kit/templates/drift-config.knobs +1 -0
  266. package/payload/drift-kit/templates/economics.md +10 -48
  267. package/payload/drift-kit/templates/kpi-deprecated-surface.sh +31 -9
  268. package/payload/drift-kit/templates/kpis.list +2 -1
  269. package/payload/drift-kit/templates/price-table.tsv +1 -1
  270. package/payload/evidence-kit/README.md +24 -43
  271. package/payload/evidence-kit/checks/check-battery-roster.gate +1 -1
  272. package/payload/evidence-kit/checks/check-evidence-baseline.gate +2 -2
  273. package/payload/evidence-kit/checks/check-evidence-manifest.gate +1 -1
  274. package/payload/evidence-kit/checks/check-producer-liveness.gate +3 -0
  275. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +7 -0
  276. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +7 -0
  277. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +7 -7
  278. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -1
  279. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +1 -0
  280. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +2 -0
  281. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/scripts/evidence-config.knobs +4 -0
  282. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +1 -0
  283. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -1
  284. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +1 -0
  285. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/scripts/evidence-config.knobs +3 -0
  286. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +134 -14
  287. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
  288. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
  289. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +5 -4
  290. package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +128 -0
  291. package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +51 -45
  292. package/payload/evidence-kit/gate-tests/pre-hook.test.sh +66 -0
  293. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +29 -16
  294. package/payload/evidence-kit/templates/evidence-config.knobs +1 -0
  295. package/payload/gate-sdk/README.md +48 -79
  296. package/payload/gate-sdk/bin/build-native.sh +27 -4
  297. package/payload/gate-sdk/bin/run-gates.ps1 +266 -0
  298. package/payload/gate-sdk/bin/run-gates.sh +53 -277
  299. package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -1
  300. package/payload/gate-sdk/checks/check-action-job-ref.gate +3 -0
  301. package/payload/gate-sdk/checks/check-action-permissions.gate +3 -0
  302. package/payload/gate-sdk/checks/check-action-pinning.gate +1 -1
  303. package/payload/gate-sdk/checks/check-action-run-path.gate +3 -0
  304. package/payload/gate-sdk/checks/check-action-run-shell.gate +3 -0
  305. package/payload/gate-sdk/checks/check-commit-msg.gate +2 -1
  306. package/payload/gate-sdk/checks/check-commit-subject.gate +1 -1
  307. package/payload/gate-sdk/checks/check-core-files.gate +1 -1
  308. package/payload/gate-sdk/checks/check-crate-arms.gate +3 -0
  309. package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -2
  310. package/payload/gate-sdk/checks/check-exec-bit.gate +1 -1
  311. package/payload/gate-sdk/checks/check-front-end-fail-open.gate +3 -0
  312. package/payload/gate-sdk/checks/check-gate-assertions.gate +2 -2
  313. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +1 -1
  314. package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +1 -1
  315. package/payload/gate-sdk/checks/check-gate-fail-closed.gate +1 -1
  316. package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +1 -1
  317. package/payload/gate-sdk/checks/check-gate-output.gate +1 -1
  318. package/payload/gate-sdk/checks/check-gate-substrate-parity.gate +3 -0
  319. package/payload/gate-sdk/checks/check-graph.gate +2 -1
  320. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +1 -1
  321. package/payload/gate-sdk/checks/check-identity.gate +1 -1
  322. package/payload/gate-sdk/checks/check-install-disposition.gate +3 -0
  323. package/payload/gate-sdk/checks/check-kit-enum.gate +1 -1
  324. package/payload/gate-sdk/checks/check-kit-registration.gate +1 -1
  325. package/payload/gate-sdk/checks/check-kit-roots-dialect.gate +3 -0
  326. package/payload/gate-sdk/checks/check-packed-links.gate +3 -0
  327. package/payload/gate-sdk/checks/check-path-dialect.gate +3 -0
  328. package/payload/gate-sdk/checks/check-pipe-membership.gate +3 -0
  329. package/payload/gate-sdk/checks/check-portability-floor.gate +4 -0
  330. package/payload/gate-sdk/checks/check-projection-roster.gate +4 -0
  331. package/payload/gate-sdk/checks/check-reads-couples.gate +1 -1
  332. package/payload/gate-sdk/checks/check-root-tiering.gate +1 -1
  333. package/payload/gate-sdk/checks/check-shellcheck.gate +3 -0
  334. package/payload/gate-sdk/checks/check-template-copy-parity.gate +1 -1
  335. package/payload/gate-sdk/checks/check-tree-terms.gate +2 -1
  336. package/payload/gate-sdk/checks/check-workflow-tiering.gate +1 -1
  337. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/args +2 -0
  338. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/expect.txt +1 -0
  339. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/scripts/gate-sdk-config.knobs +1 -0
  340. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/notes.md +3 -0
  341. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/workflows/ci.yml +8 -0
  342. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/args +3 -0
  343. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/expect.txt +1 -0
  344. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/scripts/gate-sdk-config.knobs +1 -0
  345. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/notes.md +3 -0
  346. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/workflows/ci.yml +8 -0
  347. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/args +3 -0
  348. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/expect.txt +5 -0
  349. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/empty-allowlist.yml +29 -0
  350. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/gates.yml +25 -0
  351. package/payload/gate-sdk/gate-tests/check-action-permissions/good/args +5 -0
  352. package/payload/gate-sdk/gate-tests/check-action-permissions/good/expect.txt +1 -0
  353. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/action.yml +9 -0
  354. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/not-actions.yml +7 -0
  355. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/declared.yml +69 -0
  356. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/valves.yml +22 -0
  357. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/args +4 -0
  358. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/expect.txt +2 -0
  359. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/scripts/present.sh +3 -0
  360. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/workflows/ci.yml +14 -0
  361. package/payload/gate-sdk/gate-tests/check-action-run-path/good/args +5 -0
  362. package/payload/gate-sdk/gate-tests/check-action-run-path/good/expect.txt +1 -0
  363. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/scripts/build.sh +3 -0
  364. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/sub/scripts/inner.sh +3 -0
  365. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/workflows/ci.yml +36 -0
  366. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +4 -2
  367. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +2 -0
  368. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/runner-dialect.yml +36 -0
  369. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -2
  370. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -1
  371. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/runner-dialect.yml +71 -0
  372. package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +102 -9
  373. package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +1 -1
  374. package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +1 -1
  375. package/payload/gate-sdk/gate-tests/check-assertion-strength.test.sh +55 -0
  376. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/expect.txt +1 -0
  377. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/msg.txt +4 -0
  378. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -1
  379. package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +7 -0
  380. package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -1
  381. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +2 -2
  382. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +1 -1
  383. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.knobs +3 -0
  384. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.knobs +3 -0
  385. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/SPEC.md +3 -0
  386. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/checks/check-demo.gate +1 -0
  387. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/probe.conf +1 -0
  388. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/templates/guide.md +3 -0
  389. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/enforcement.md +33 -0
  390. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gate-sdk-config.knobs +1 -0
  391. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gates.list +1 -0
  392. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +1 -1
  393. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/args +3 -0
  394. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/expect.txt +2 -0
  395. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.ps1 +5 -0
  396. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.sh +9 -0
  397. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/args +4 -0
  398. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/expect.txt +1 -0
  399. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.ps1 +5 -0
  400. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.sh +9 -0
  401. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +4 -1
  402. package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +1 -1
  403. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.knobs +2 -0
  404. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.knobs +2 -0
  405. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +6 -12
  406. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +5 -3
  407. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +3 -1
  408. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +4 -2
  409. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +1 -1
  410. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci/build-artifact.sh +9 -0
  411. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci.yml +9 -0
  412. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +4 -2
  413. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.knobs +5 -0
  414. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +6 -0
  415. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci/build-artifact.sh +9 -0
  416. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci.yml +16 -0
  417. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +7 -3
  418. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.knobs +5 -0
  419. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -1
  420. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +222 -197
  421. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +7 -2
  422. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +4 -0
  423. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +3 -1
  424. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +1 -1
  425. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +8 -8
  426. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +2 -2
  427. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +49 -14
  428. package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
  429. package/payload/gate-sdk/gate-tests/check-identity/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
  430. package/payload/gate-sdk/gate-tests/check-identity.test.sh +1 -1
  431. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-eta.sh +7 -0
  432. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-iota.sh +7 -0
  433. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-theta.sh +7 -0
  434. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-zeta.gate +3 -0
  435. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +1 -1
  436. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +8 -5
  437. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +5 -0
  438. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/native/src/installer/recipe.rs +10 -0
  439. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  440. package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +8 -4
  441. package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +2 -0
  442. package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  443. package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/checks/check-alpha.sh +1 -1
  444. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-beta.gate +3 -0
  445. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-gamma.sh +6 -0
  446. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-omega.sh +7 -0
  447. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-psi.sh +7 -0
  448. package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/smoke/install.sh +2 -2
  449. package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +15 -12
  450. package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +7 -5
  451. package/payload/gate-sdk/gate-tests/check-kit-registration/good/scripts/gate-sdk-config.knobs +2 -0
  452. package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +2 -2
  453. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/args +5 -0
  454. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/expect.txt +1 -0
  455. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/checks/placeholder.txt +3 -0
  456. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
  457. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/lib/alpha.sh +3 -0
  458. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/checks/placeholder.txt +3 -0
  459. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/gate-tests/beta.test.sh +3 -0
  460. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/lib/beta.sh +3 -0
  461. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/checks/placeholder.txt +3 -0
  462. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/lib/gate.sh +3 -0
  463. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gate-sdk-config.knobs +7 -0
  464. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gates.list +3 -0
  465. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/args +7 -0
  466. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/expect.txt +1 -0
  467. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/checks/placeholder.txt +3 -0
  468. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
  469. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/lib/alpha.sh +3 -0
  470. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/checks/placeholder.txt +3 -0
  471. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/gate-tests/beta.test.sh +3 -0
  472. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/lib/beta.sh +3 -0
  473. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/checks/placeholder.txt +3 -0
  474. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/lib/gate.sh +3 -0
  475. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/scripts/gates.list +3 -0
  476. package/payload/gate-sdk/gate-tests/check-packed-links/bad/alpha-kit/README.md +5 -0
  477. package/payload/gate-sdk/gate-tests/check-packed-links/bad/args +5 -0
  478. package/payload/gate-sdk/gate-tests/check-packed-links/bad/beta-kit/README.md +5 -0
  479. package/payload/gate-sdk/gate-tests/check-packed-links/bad/expect.txt +2 -0
  480. package/payload/gate-sdk/gate-tests/check-packed-links/bad/scripts/gate-sdk-config.knobs +4 -0
  481. package/payload/gate-sdk/gate-tests/check-packed-links/good/alpha-kit/README.md +5 -0
  482. package/payload/gate-sdk/gate-tests/check-packed-links/good/args +8 -0
  483. package/payload/gate-sdk/gate-tests/check-packed-links/good/beta-kit/README.md +9 -0
  484. package/payload/gate-sdk/gate-tests/check-packed-links/good/expect.txt +1 -0
  485. package/payload/gate-sdk/gate-tests/check-packed-links/good/gamma-kit/SPEC.md +4 -0
  486. package/payload/gate-sdk/gate-tests/check-packed-links/good/scripts/gate-sdk-config.knobs +6 -0
  487. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/args +3 -0
  488. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/expect.txt +15 -0
  489. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/primitive.rs +19 -0
  490. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/producer.rs +8 -0
  491. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/walk.rs +13 -0
  492. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/bound-root.sh +5 -0
  493. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/case-arm.sh +6 -0
  494. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/commented.sh +5 -0
  495. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/common-dir.sh +4 -0
  496. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/glob-test.sh +4 -0
  497. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/late-anchor.sh +7 -0
  498. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/logical-readback.sh +5 -0
  499. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/probe.sh +7 -0
  500. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/two-root.sh +5 -0
  501. package/payload/gate-sdk/gate-tests/check-path-dialect/good/args +3 -0
  502. package/payload/gate-sdk/gate-tests/check-path-dialect/good/expect.txt +13 -0
  503. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/commented.rs +5 -0
  504. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/local.rs +12 -0
  505. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/namespace.rs +11 -0
  506. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/typed.rs +10 -0
  507. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/verdict.rs +5 -0
  508. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/walk.rs +24 -0
  509. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/anchored.sh +6 -0
  510. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/cd-only.sh +7 -0
  511. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/commented.sh +6 -0
  512. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/one-root.sh +4 -0
  513. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/probe.sh +8 -0
  514. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/rooted.sh +23 -0
  515. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/subshell.sh +6 -0
  516. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/two-line.sh +8 -0
  517. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/verdict.sh +7 -0
  518. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/args +4 -0
  519. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/expect.txt +6 -0
  520. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/scripts/gate-sdk-config.knobs +1 -0
  521. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/array-grep.sh +6 -0
  522. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/echo-max-count.sh +5 -0
  523. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/gate-tests/membership.test.sh +6 -0
  524. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/loop-head.sh +5 -0
  525. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/tests/relocated.test.sh +6 -0
  526. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/args +5 -0
  527. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/expect.txt +3 -0
  528. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/full-reader.sh +4 -0
  529. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/check-x/bad/violating.test.sh +6 -0
  530. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/clean.test.sh +8 -0
  531. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/loop-membership.sh +8 -0
  532. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/no-pipefail.sh +6 -0
  533. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/one-line-producer.sh +5 -0
  534. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/args +2 -0
  535. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/expect.txt +8 -0
  536. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/patterns.list +4 -0
  537. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/scripts/gate-sdk-config.knobs +4 -0
  538. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/empty-reason-verb +5 -0
  539. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/strings.ps1 +6 -0
  540. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/too-far-verb +5 -0
  541. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/undeclared-verb +3 -0
  542. package/payload/gate-sdk/gate-tests/check-portability-floor/good/args +2 -0
  543. package/payload/gate-sdk/gate-tests/check-portability-floor/good/expect.txt +1 -0
  544. package/payload/gate-sdk/gate-tests/check-portability-floor/good/patterns.list +5 -0
  545. package/payload/gate-sdk/gate-tests/check-portability-floor/good/scripts/gate-sdk-config.knobs +4 -0
  546. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/front.ps1 +7 -0
  547. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/plain-verb +5 -0
  548. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/portability-patterns.list +5 -0
  549. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/upgrade-verb +7 -0
  550. package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +154 -0
  551. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/demo-kit/checks/check-beta.gate +2 -0
  552. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/docs/roster.md +11 -0
  553. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/expect.txt +7 -0
  554. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-alpha.gate +2 -0
  555. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-gamma.gate +2 -0
  556. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-plain.gate +1 -0
  557. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gate-sdk-config.knobs +3 -0
  558. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gates.list +4 -0
  559. package/payload/gate-sdk/gate-tests/check-projection-roster/good/demo-kit/checks/check-beta.gate +2 -0
  560. package/payload/gate-sdk/gate-tests/check-projection-roster/good/docs/roster.md +16 -0
  561. package/payload/gate-sdk/gate-tests/check-projection-roster/good/expect.txt +1 -0
  562. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-alpha.gate +2 -0
  563. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-delta.gate +2 -0
  564. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-epsilon.gate +2 -0
  565. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-plain.gate +1 -0
  566. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gate-sdk-config.knobs +4 -0
  567. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gates.list +5 -0
  568. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.knobs +4 -0
  569. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +1 -1
  570. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.knobs +4 -0
  571. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -1
  572. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +4 -4
  573. package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +4 -4
  574. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +25 -20
  575. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +1 -1
  576. package/payload/gate-sdk/gate-tests/{check-template-registry-parity/bad/scripts/gate-sdk-config.sh → check-smoke-entry-guard/bad/scripts/gate-sdk-config.knobs} +2 -3
  577. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +1 -1
  578. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +1 -1
  579. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +1 -1
  580. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +1 -1
  581. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.knobs +4 -0
  582. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +3 -1
  583. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/session-note.sh +6 -0
  584. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -1
  585. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/session-note.sh +6 -0
  586. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +1 -1
  587. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +2 -0
  588. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/drift-kit/templates/kpis.list +18 -0
  589. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +2 -0
  590. package/payload/gate-sdk/gate-tests/{check-smoke-entry-guard/bad/scripts/gate-sdk-config.sh → check-template-registry-parity/bad/scripts/gate-sdk-config.knobs} +2 -3
  591. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +3 -1
  592. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/drift-kit/templates/kpis.list +17 -0
  593. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -1
  594. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.knobs +4 -0
  595. package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +5 -5
  596. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
  597. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +4 -0
  598. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/accounts.txt +1 -0
  599. package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
  600. package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +5 -1
  601. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +1 -0
  602. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/handles.txt +2 -0
  603. package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +44 -5
  604. package/payload/gate-sdk/gate-tests/emit-arm-shape.test.sh +95 -0
  605. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +10 -10
  606. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +10 -184
  607. package/payload/gate-sdk/gate-tests/reads-census.test.sh +96 -0
  608. package/payload/gate-sdk/gate-tests/run-arm-contract.test.sh +190 -0
  609. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +64 -41
  610. package/payload/gate-sdk/gate-tests/run-for-path.test.sh +2 -2
  611. package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +121 -16
  612. package/payload/gate-sdk/gate-tests/run-gates-linked-worktree.test.sh +136 -0
  613. package/payload/gate-sdk/lib/gate.sh +231 -484
  614. package/payload/gate-sdk/lib/test-hermetic.sh +39 -9
  615. package/payload/gate-sdk/templates/check-skeleton.sh +3 -2
  616. package/payload/gate-sdk/templates/gates-workflow.yml +16 -32
  617. package/payload/gate-sdk/templates/msg-patterns.list +14 -5
  618. package/payload/gate-sdk/templates/portability-patterns.list +56 -0
  619. package/payload/guard-kit/README.md +43 -47
  620. package/payload/guard-kit/checks/check-door-binding.gate +3 -0
  621. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/README.md +6 -0
  622. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/templates/alpha-config.knobs +3 -0
  623. package/payload/guard-kit/gate-tests/check-door-binding/bad/args +5 -0
  624. package/payload/guard-kit/gate-tests/check-door-binding/bad/beta-kit/lib/beta.sh +6 -0
  625. package/payload/guard-kit/gate-tests/check-door-binding/bad/expect.txt +5 -0
  626. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/gate-sdk-config.knobs +4 -0
  627. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/guard-config.knobs +3 -0
  628. package/payload/guard-kit/gate-tests/check-door-binding/bad/site/banner.md +8 -0
  629. package/payload/guard-kit/gate-tests/check-door-binding/bad/site/landing.md +11 -0
  630. package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/README.md +8 -0
  631. package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/templates/settings-hooks.json +20 -0
  632. package/payload/guard-kit/gate-tests/check-door-binding/good/args +7 -0
  633. package/payload/guard-kit/gate-tests/check-door-binding/good/beta-kit/lib/beta.sh +6 -0
  634. package/payload/guard-kit/gate-tests/check-door-binding/good/expect.txt +1 -0
  635. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/gate-sdk-config.knobs +4 -0
  636. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/guard-config.knobs +3 -0
  637. package/payload/guard-kit/gate-tests/check-door-binding/good/site/mirror.md +12 -0
  638. package/payload/guard-kit/gate-tests/check-door-binding/good/site/register.md +24 -0
  639. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +40 -27
  640. package/payload/guard-kit/gate-tests/consumer-rules.test.sh +189 -0
  641. package/payload/guard-kit/gate-tests/door-binding-corpus.test.sh +72 -0
  642. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +48 -23
  643. package/payload/guard-kit/gate-tests/guard-config-knobs.test.sh +170 -0
  644. package/payload/guard-kit/gate-tests/rewrite.test.sh +73 -0
  645. package/payload/guard-kit/gate-tests/scan-prompts.test.sh +174 -8
  646. package/payload/guard-kit/gate-tests/scratch-run.test.sh +150 -13
  647. package/payload/guard-kit/gate-tests/worktree-confinement.test.sh +169 -0
  648. package/payload/guard-kit/guard-tests/background-cases.tsv +14 -5
  649. package/payload/guard-kit/guard-tests/cases.tsv +360 -54
  650. package/payload/guard-kit/guard-tests/powershell-background-cases.tsv +29 -0
  651. package/payload/guard-kit/guard-tests/powershell-cases.tsv +81 -0
  652. package/payload/guard-kit/templates/close-triage.md +15 -62
  653. package/payload/guard-kit/templates/guard-config.knobs +26 -0
  654. package/payload/guard-kit/templates/settings-allow.json +15 -0
  655. package/payload/guard-kit/templates/settings-hooks.json +5 -5
  656. package/payload/lifecycle-kit/README.md +50 -76
  657. package/payload/lifecycle-kit/checks/check-audit-roster.gate +3 -0
  658. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +1 -1
  659. package/payload/lifecycle-kit/checks/check-dispatch-entry.gate +3 -0
  660. package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +1 -1
  661. package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +1 -1
  662. package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +1 -1
  663. package/payload/lifecycle-kit/checks/check-merge-attrs.gate +1 -1
  664. package/payload/lifecycle-kit/checks/check-scratch-citation.gate +1 -1
  665. package/payload/lifecycle-kit/checks/check-shim-restatement.gate +1 -1
  666. package/payload/lifecycle-kit/checks/check-skill-binding.gate +1 -1
  667. package/payload/lifecycle-kit/checks/check-stage-entry.gate +2 -2
  668. package/payload/lifecycle-kit/checks/check-stage-evidence.gate +1 -1
  669. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +2 -2
  670. package/payload/lifecycle-kit/checks/check-stamp-subject.gate +3 -0
  671. package/payload/lifecycle-kit/checks/check-survey-record.gate +2 -2
  672. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +98 -21
  673. package/payload/lifecycle-kit/gate-tests/boundary-stage-journal.test.sh +196 -0
  674. package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +214 -0
  675. package/payload/lifecycle-kit/gate-tests/capture-linked-worktree.test.sh +53 -0
  676. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/args +2 -0
  677. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/expect.txt +6 -0
  678. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/roster.txt +34 -0
  679. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/args +2 -0
  680. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/expect.txt +1 -0
  681. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/roster.txt +22 -0
  682. package/payload/lifecycle-kit/gate-tests/check-audit-roster.test.sh +101 -0
  683. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.knobs +2 -0
  684. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/worktrees/inbox.md +5 -0
  685. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.knobs +2 -0
  686. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +21 -4
  687. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/args +6 -0
  688. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/expect.txt +1 -0
  689. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/head.txt +5 -0
  690. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/marker.txt +1 -0
  691. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/msg.txt +4 -0
  692. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/paths.txt +1 -0
  693. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/staged.txt +5 -0
  694. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/args +6 -0
  695. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/expect.txt +1 -0
  696. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/head.txt +5 -0
  697. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/marker.txt +1 -0
  698. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/msg.txt +4 -0
  699. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/paths.txt +2 -0
  700. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/staged.txt +6 -0
  701. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry.test.sh +60 -0
  702. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +1 -1
  703. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +1 -5
  704. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +1 -5
  705. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +1 -1
  706. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -2
  707. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.knobs +2 -0
  708. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.knobs +2 -0
  709. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/worktrees/queue.md +13 -0
  710. package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +1 -1
  711. package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +1 -1
  712. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +165 -15
  713. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +27 -2
  714. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +4 -1
  715. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +4 -1
  716. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/close.md +5 -0
  717. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +4 -1
  718. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +1 -1
  719. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -1
  720. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +4 -1
  721. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +4 -1
  722. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +4 -1
  723. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +4 -1
  724. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +4 -1
  725. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage.test.sh +73 -0
  726. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/args +4 -0
  727. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/expect.txt +1 -0
  728. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/head.txt +5 -0
  729. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/msg.txt +4 -0
  730. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/staged.txt +6 -0
  731. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/args +4 -0
  732. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/expect.txt +1 -0
  733. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/head.txt +5 -0
  734. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/msg.txt +4 -0
  735. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/staged.txt +7 -0
  736. package/payload/lifecycle-kit/gate-tests/check-stamp-subject.test.sh +59 -0
  737. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +4 -0
  738. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +33 -2
  739. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -1
  740. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +19 -2
  741. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +66 -7
  742. package/payload/lifecycle-kit/gate-tests/dispatch-marker.test.sh +152 -0
  743. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +23 -48
  744. package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +7 -5
  745. package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +119 -0
  746. package/payload/lifecycle-kit/gate-tests/preflight-valve.test.sh +170 -0
  747. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +5 -3
  748. package/payload/lifecycle-kit/gate-tests/ruling-staleness.test.sh +89 -0
  749. package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +77 -0
  750. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +12 -6
  751. package/payload/lifecycle-kit/templates/consult.md +9 -63
  752. package/payload/lifecycle-kit/templates/lead.md +147 -431
  753. package/payload/lifecycle-kit/templates/lifecycle-config.knobs +1 -0
  754. package/payload/lifecycle-kit/templates/release-sweep.md +6 -35
  755. package/payload/lifecycle-kit/templates/stages/align.md +14 -82
  756. package/payload/lifecycle-kit/templates/stages/build.md +30 -98
  757. package/payload/lifecycle-kit/templates/stages/close.md +21 -170
  758. package/payload/lifecycle-kit/templates/stages/scope.md +42 -167
  759. package/payload/lifecycle-kit/templates/stages/spec.md +31 -97
  760. package/payload/lifecycle-kit/templates/stages/validate.md +22 -59
  761. package/payload/lifecycle-kit/templates/upgrade.md +6 -37
  762. package/payload/queue-kit/README.md +33 -48
  763. package/payload/queue-kit/checks/check-deferred-board-tags.gate +3 -0
  764. package/payload/queue-kit/checks/check-queue-entry-budget.gate +2 -2
  765. package/payload/queue-kit/checks/check-queue-hygiene.gate +2 -2
  766. package/payload/queue-kit/checks/check-queue-prose-precondition.gate +1 -1
  767. package/payload/queue-kit/checks/check-queue-sections.gate +1 -1
  768. package/payload/queue-kit/checks/check-queue-slug-liveness.gate +2 -2
  769. package/payload/queue-kit/checks/check-queue-wrap.gate +2 -2
  770. package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -2
  771. package/payload/queue-kit/checks/check-tag-lead-line.gate +2 -2
  772. package/payload/queue-kit/checks/check-task-conservation.gate +1 -1
  773. package/payload/queue-kit/checks/check-task-names.gate +2 -2
  774. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/TASK-QUEUE.md +41 -0
  775. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/expect.txt +6 -0
  776. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/widget-kit/README.md +3 -0
  777. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/TASK-QUEUE.md +39 -0
  778. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/expect.txt +1 -0
  779. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/widget-kit/README.md +3 -0
  780. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +76 -31
  781. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +12 -4
  782. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.knobs +4 -0
  783. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +58 -19
  784. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +8 -4
  785. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.knobs +4 -0
  786. package/payload/queue-kit/gate-tests/check-queue-entry-budget.test.sh +124 -0
  787. package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +11 -1
  788. package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +2 -0
  789. package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +30 -11
  790. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +3 -1
  791. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/expect.txt +1 -0
  792. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/TASK-QUEUE.md +22 -6
  793. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +3 -1
  794. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +1 -1
  795. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +3 -1
  796. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.knobs +1 -0
  797. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +6 -2
  798. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +3 -3
  799. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/worktrees/page.md +4 -0
  800. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.knobs +1 -0
  801. package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +100 -0
  802. package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +3 -1
  803. package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +20 -6
  804. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +15 -8
  805. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.knobs +5 -0
  806. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +13 -6
  807. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.knobs +5 -0
  808. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +28 -7
  809. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +10 -2
  810. package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +30 -8
  811. package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -3
  812. package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +9 -0
  813. package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +20 -6
  814. package/payload/queue-kit/gate-tests/entry-history.test.sh +197 -0
  815. package/payload/queue-kit/gate-tests/queue-counts.test.sh +77 -73
  816. package/payload/queue-kit/gate-tests/queue-edges.test.sh +168 -87
  817. package/payload/queue-kit/gate-tests/queue-index.test.sh +30 -16
  818. package/payload/queue-kit/gate-tests/roadmap.test.sh +65 -58
  819. package/payload/queue-kit/templates/TASK-QUEUE.md +36 -23
  820. package/payload/queue-kit/templates/queue-config.knobs +1 -0
  821. package/payload/site-kit/README.md +29 -45
  822. package/payload/site-kit/checks/check-docs-cname-parity.gate +1 -1
  823. package/payload/site-kit/checks/check-docs-collapsible.gate +3 -0
  824. package/payload/site-kit/checks/check-docs-highlight-coverage.gate +4 -0
  825. package/payload/site-kit/checks/check-docs-liquid-parse.gate +3 -0
  826. package/payload/site-kit/checks/check-docs-render-fidelity.gate +3 -0
  827. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +1 -1
  828. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.knobs +2 -0
  829. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +2 -2
  830. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.knobs +2 -0
  831. package/payload/site-kit/gate-tests/check-docs-collapsible/bad/docs/regions.md +23 -0
  832. package/payload/site-kit/gate-tests/check-docs-collapsible/bad/expect.txt +4 -0
  833. package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/plain.md +3 -0
  834. package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/regions.md +26 -0
  835. package/payload/site-kit/gate-tests/check-docs-collapsible/good/expect.txt +1 -0
  836. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/docs/_layouts/default.html +11 -0
  837. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/expect.txt +4 -0
  838. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/highlight-tokens.list +7 -0
  839. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/site-config.knobs +3 -0
  840. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/docs/_layouts/default.html +14 -0
  841. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/expect.txt +1 -0
  842. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/highlight-tokens.list +7 -0
  843. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/site-config.knobs +1 -0
  844. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/_layouts/default.html +4 -0
  845. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/span.md +3 -0
  846. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +2 -0
  847. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/_layouts/default.html +4 -0
  848. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/front.md +7 -0
  849. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/loop.md +5 -0
  850. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/plain.html +1 -0
  851. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/raw.md +3 -0
  852. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/search.json +4 -0
  853. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/expect.txt +1 -0
  854. package/payload/site-kit/gate-tests/check-docs-liquid-parse-parser.test.sh +62 -0
  855. package/payload/site-kit/gate-tests/check-docs-render-fidelity-batch.test.sh +40 -45
  856. package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +7 -4
  857. package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +7 -4
  858. package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +7 -4
  859. package/payload/site-kit/templates/site-health.yml +60 -88
  860. package/profiles.list +4 -5
  861. package/lib/common/digest.sh +0 -18
  862. package/lib/common/lock.sh +0 -75
  863. package/lib/common/profile.sh +0 -91
  864. package/lib/common/recipe.sh +0 -106
  865. package/lib/diff.sh +0 -66
  866. package/lib/doctor.sh +0 -164
  867. package/lib/init.sh +0 -428
  868. package/lib/uninstall.sh +0 -214
  869. package/lib/update.sh +0 -34
  870. package/payload/canon-kit/SPEC.md +0 -2443
  871. package/payload/canon-kit/checks/check-surface-duplication.sh +0 -106
  872. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +0 -6
  873. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +0 -6
  874. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +0 -10
  875. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +0 -10
  876. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +0 -6
  877. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +0 -6
  878. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +0 -8
  879. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +0 -8
  880. package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +0 -4
  881. package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +0 -4
  882. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +0 -8
  883. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +0 -5
  884. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +0 -5
  885. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +0 -6
  886. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +0 -6
  887. package/payload/canon-kit/lib/spec.sh +0 -560
  888. package/payload/canon-kit/smoke/install.sh +0 -58
  889. package/payload/canon-kit/smoke/violation.sh +0 -22
  890. package/payload/canon-kit/templates/canon-config.sh +0 -2
  891. package/payload/context-kit/SPEC.md +0 -1134
  892. package/payload/context-kit/bin/always-loaded.sh +0 -70
  893. package/payload/context-kit/bin/env-probe.sh +0 -142
  894. package/payload/context-kit/bin/md-index.sh +0 -80
  895. package/payload/context-kit/bin/md-section.sh +0 -63
  896. package/payload/context-kit/bin/pub-index.sh +0 -90
  897. package/payload/context-kit/bin/run-index-tests.sh +0 -91
  898. package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +0 -4
  899. package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +0 -12
  900. package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +0 -12
  901. package/payload/context-kit/index-tests/expected/toolfloor.txt +0 -23
  902. package/payload/context-kit/index-tests/toolfloor-cases.sh +0 -49
  903. package/payload/context-kit/lib/context.sh +0 -56
  904. package/payload/context-kit/lib/pub-lang/rust.sh +0 -26
  905. package/payload/context-kit/lib/pub-lang/ts.sh +0 -32
  906. package/payload/context-kit/lib/toolfloor.sh +0 -58
  907. package/payload/context-kit/smoke/agents-md.sh +0 -139
  908. package/payload/context-kit/smoke/install.sh +0 -64
  909. package/payload/context-kit/smoke/violation.sh +0 -21
  910. package/payload/context-kit/templates/context-config.sh +0 -2
  911. package/payload/delegation-kit/SPEC.md +0 -2078
  912. package/payload/delegation-kit/bin/run-budget-guard-tests.sh +0 -88
  913. package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +0 -97
  914. package/payload/delegation-kit/bin/run-trend-tests.sh +0 -63
  915. package/payload/delegation-kit/bin/run-usage-tests.sh +0 -226
  916. package/payload/delegation-kit/bin/usage-trend.sh +0 -120
  917. package/payload/delegation-kit/bin/usage-verdict.sh +0 -144
  918. package/payload/delegation-kit/bin/wait-probe.sh +0 -184
  919. package/payload/delegation-kit/gate-tests/subagent-stop-liveness.test.sh +0 -99
  920. package/payload/delegation-kit/lib/delegation.sh +0 -84
  921. package/payload/delegation-kit/smoke/install.sh +0 -83
  922. package/payload/delegation-kit/smoke/violation.sh +0 -16
  923. package/payload/delegation-kit/templates/agent-budget-guard.sh +0 -18
  924. package/payload/delegation-kit/templates/agent-dispatch-guard.sh +0 -61
  925. package/payload/delegation-kit/templates/delegation-config.sh +0 -6
  926. package/payload/delegation-kit/templates/statusline-usage.sh +0 -101
  927. package/payload/delegation-kit/templates/subagent-stop-liveness.sh +0 -56
  928. package/payload/delegation-kit/templates/usage-poller.sh +0 -67
  929. package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +0 -20
  930. package/payload/doctrine-kit/SPEC.md +0 -385
  931. package/payload/doctrine-kit/bin/install-doctrine.sh +0 -194
  932. package/payload/doctrine-kit/bin/stage-rules.sh +0 -51
  933. package/payload/doctrine-kit/lib/doctrine.sh +0 -29
  934. package/payload/doctrine-kit/smoke/install.sh +0 -203
  935. package/payload/doctrine-kit/smoke/violation.sh +0 -13
  936. package/payload/drift-kit/SPEC.md +0 -1187
  937. package/payload/drift-kit/bin/drift-report.sh +0 -155
  938. package/payload/drift-kit/bin/kfric.sh +0 -61
  939. package/payload/drift-kit/bin/overhead-meter.sh +0 -106
  940. package/payload/drift-kit/bin/stage-economics.sh +0 -465
  941. package/payload/drift-kit/kpis/kpi-always-loaded.sh +0 -39
  942. package/payload/drift-kit/kpis/kpi-amendment-age.sh +0 -33
  943. package/payload/drift-kit/kpis/kpi-deferred-age.sh +0 -46
  944. package/payload/drift-kit/kpis/kpi-gate-backlog.sh +0 -52
  945. package/payload/drift-kit/kpis/kpi-gate-runtime.sh +0 -31
  946. package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +0 -42
  947. package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +0 -21
  948. package/payload/drift-kit/kpis/kpi-overhead.sh +0 -44
  949. package/payload/drift-kit/kpis/kpi-price-table-age.sh +0 -68
  950. package/payload/drift-kit/kpis/kpi-prompt-friction.sh +0 -38
  951. package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +0 -74
  952. package/payload/drift-kit/kpis/kpi-settings-local.sh +0 -21
  953. package/payload/drift-kit/kpis/kpi-task-split.sh +0 -43
  954. package/payload/drift-kit/lib/drift.sh +0 -43
  955. package/payload/drift-kit/smoke/install.sh +0 -537
  956. package/payload/drift-kit/smoke/overhead-fixture.jsonl +0 -4
  957. package/payload/drift-kit/templates/drift-config.sh +0 -2
  958. package/payload/evidence-kit/SPEC.md +0 -740
  959. package/payload/evidence-kit/bin/diff-baseline.sh +0 -34
  960. package/payload/evidence-kit/bin/run-validate.sh +0 -124
  961. package/payload/evidence-kit/checks/check-producer-liveness.sh +0 -75
  962. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +0 -7
  963. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +0 -7
  964. package/payload/evidence-kit/lib/evidence.sh +0 -193
  965. package/payload/evidence-kit/smoke/install.sh +0 -59
  966. package/payload/evidence-kit/smoke/violation.sh +0 -8
  967. package/payload/evidence-kit/templates/evidence-config.sh +0 -2
  968. package/payload/gate-sdk/SPEC.md +0 -10872
  969. package/payload/gate-sdk/bin/gen-pre-commit.sh +0 -297
  970. package/payload/gate-sdk/bin/install-hooks.sh +0 -60
  971. package/payload/gate-sdk/bin/port-blockers.sh +0 -473
  972. package/payload/gate-sdk/bin/run-consumer-smoke.sh +0 -239
  973. package/payload/gate-sdk/bin/run-gate-tests.sh +0 -179
  974. package/payload/gate-sdk/bin/upgrade-smoke.sh +0 -236
  975. package/payload/gate-sdk/checks/check-action-run-shell.sh +0 -223
  976. package/payload/gate-sdk/checks/check-crate-arms.sh +0 -62
  977. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +0 -450
  978. package/payload/gate-sdk/checks/check-install-disposition.sh +0 -93
  979. package/payload/gate-sdk/checks/check-shellcheck.sh +0 -57
  980. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +0 -2
  981. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +0 -2
  982. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +0 -4
  983. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +0 -14
  984. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +0 -14
  985. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +0 -2
  986. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +0 -2
  987. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +0 -6
  988. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +0 -3
  989. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +0 -6
  990. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +0 -3
  991. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +0 -9
  992. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +0 -3
  993. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +0 -6
  994. package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +0 -10
  995. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +0 -5
  996. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +0 -5
  997. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +0 -5
  998. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +0 -5
  999. package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +0 -211
  1000. package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +0 -112
  1001. package/payload/gate-sdk/lib/consumer-smoke.sh +0 -69
  1002. package/payload/gate-sdk/lib/declaration.sh +0 -59
  1003. package/payload/gate-sdk/lib/inject.sh +0 -80
  1004. package/payload/gate-sdk/smoke/install.sh +0 -171
  1005. package/payload/gate-sdk/smoke/violation.sh +0 -13
  1006. package/payload/guard-kit/SPEC.md +0 -1415
  1007. package/payload/guard-kit/bin/compare-settings-allow.sh +0 -115
  1008. package/payload/guard-kit/bin/run-guard-tests.sh +0 -110
  1009. package/payload/guard-kit/bin/scan-prompts.sh +0 -166
  1010. package/payload/guard-kit/bin/scratch-run.sh +0 -34
  1011. package/payload/guard-kit/gate-tests/guard-read-path.test.sh +0 -52
  1012. package/payload/guard-kit/lib/guard.sh +0 -1014
  1013. package/payload/guard-kit/smoke/install.sh +0 -26
  1014. package/payload/guard-kit/templates/bash-guard.sh +0 -20
  1015. package/payload/guard-kit/templates/escalation-guard.sh +0 -27
  1016. package/payload/guard-kit/templates/guard-config.sh +0 -8
  1017. package/payload/guard-kit/templates/wakeup-guard.sh +0 -20
  1018. package/payload/lifecycle-kit/SPEC.md +0 -2884
  1019. package/payload/lifecycle-kit/bin/cite-survey.sh +0 -81
  1020. package/payload/lifecycle-kit/bin/enter-stage.sh +0 -380
  1021. package/payload/lifecycle-kit/bin/file-gap.sh +0 -101
  1022. package/payload/lifecycle-kit/bin/file-survey.sh +0 -69
  1023. package/payload/lifecycle-kit/bin/install-lifecycle.sh +0 -36
  1024. package/payload/lifecycle-kit/bin/session-id.sh +0 -75
  1025. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +0 -4
  1026. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +0 -4
  1027. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +0 -4
  1028. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +0 -4
  1029. package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +0 -100
  1030. package/payload/lifecycle-kit/lib/stages.sh +0 -194
  1031. package/payload/lifecycle-kit/smoke/install.sh +0 -434
  1032. package/payload/lifecycle-kit/smoke/violation.sh +0 -8
  1033. package/payload/lifecycle-kit/templates/lifecycle-config.sh +0 -2
  1034. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +0 -29
  1035. package/payload/queue-kit/SPEC.md +0 -1436
  1036. package/payload/queue-kit/bin/lesson-sink.sh +0 -28
  1037. package/payload/queue-kit/bin/queue-counts.sh +0 -35
  1038. package/payload/queue-kit/bin/queue-edges.sh +0 -78
  1039. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +0 -6
  1040. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +0 -6
  1041. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +0 -3
  1042. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +0 -3
  1043. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +0 -6
  1044. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +0 -6
  1045. package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +0 -215
  1046. package/payload/queue-kit/lib/queue.sh +0 -129
  1047. package/payload/queue-kit/smoke/install.sh +0 -25
  1048. package/payload/queue-kit/smoke/violation.sh +0 -8
  1049. package/payload/queue-kit/templates/queue-config.sh +0 -2
  1050. package/payload/site-kit/SPEC.md +0 -601
  1051. package/payload/site-kit/checks/check-docs-render-fidelity.sh +0 -242
  1052. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.sh +0 -7
  1053. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.sh +0 -7
  1054. package/payload/site-kit/lib/site.sh +0 -43
  1055. package/payload/site-kit/smoke/install.sh +0 -34
  1056. package/payload/site-kit/smoke/violation.sh +0 -20
  1057. /package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/{check-ported.gate → check-stage-entry.gate} +0 -0
@@ -1,18 +1,5 @@
1
- # Scheduled probe of the live docs site — monitoring, NOT a gate. It verifies a
2
- # deployment, not a tree, so it reds on causes no commit produced (DNS, a Pages
3
- # incident, a stalled cert renewal), breaking both the low-false-positive gate
4
- # contract and the CI backstop's checkout+bash hermeticity — see
5
- # gate-sdk/SPEC.md §Enforcement tiers. It therefore lives beside your gates
6
- # workflow, never inside it: a failed probe opens (or updates, never duplicates)
7
- # a site-health issue and reds this run, never a merge. Recovery self-clears (a
8
- # green run closes the open issue). No README badge, by the standing ruling.
9
- #
10
- # Copy verbatim into .github/workflows/, then set two groups of env below or
11
- # delete the arm each belongs to: ALT_DOMAIN (drop probe #4 if you serve no
12
- # redirect alias), and the three RELEASE_NOTE_* knobs (drop probe #6 if you
13
- # publish no release notes). The apex host is read from the CNAME file — no
14
- # second place to keep it.
15
- # enforce: class=monitor live docs-site deployment — apex/www/http HTTPS, redirects, cert expiry, and release-body note pointers
1
+ # spec: site-kit/SPEC.md §templates/site-health.yml — copy verbatim; set each arm's env or delete the arm
2
+ # enforce: class=monitor live docs-site deployment — apex/www/http HTTPS, redirects, cert expiry, release-body note pointers, and theme highlight-class drift against the tracked snapshot
16
3
  name: site-health
17
4
 
18
5
  on:
@@ -25,10 +12,7 @@ on:
25
12
  type: boolean
26
13
  default: false
27
14
 
28
- # A permissions: block is an allowlist, not an addition — every scope it omits is
29
- # none. issues:write carries the open/update/close path; contents:read is what
30
- # lets the probe read the tag list and the Release bodies. Without it those reads
31
- # 404, which reads like "no such Release" rather than "not permitted".
15
+ # spec: site-kit/SPEC.md §templates/site-health.yml — the permissions block is an allowlist
32
16
  permissions:
33
17
  issues: write
34
18
  contents: read
@@ -37,35 +21,24 @@ jobs:
37
21
  probe:
38
22
  runs-on: ubuntu-latest
39
23
  steps:
40
- # The CNAME file is the single source of truth for the apex host; reading
41
- # it here gives the monitor a cutover for free.
42
24
  - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
43
25
 
44
26
  - name: probe live site
45
27
  id: probe
46
28
  env:
47
- # Alternate redirect host — a bare public hostname, never a URL
48
- # literal (a docs-cname-parity gate bars the alias in ://url form);
49
- # the probe builds the URL from this at run time. Set to your redirect
50
- # alias, or delete this env and probe #4 below if you have none.
29
+ # spec: site-kit/SPEC.md §templates/site-health.yml — your redirect alias, or delete it with its arm
51
30
  ALT_DOMAIN: alt.example.com
52
- # Release-note pointer arm (#6) — set all three, or delete them along
53
- # with probe #6 below. Step-level workflow env, not the kit's SITE_KIT_*
54
- # knobs: this file is copied and edited, never sourced, so it must not
55
- # reach into a vendored gates dir. The host is deliberately absent —
56
- # the CNAME file stays its single source, so a rename is one edit.
31
+ # spec: site-kit/SPEC.md §templates/site-health.yml — set all three, or delete them with the release-body arm
57
32
  RELEASE_NOTE_GLOB: 'docs/posts/*.md'
58
33
  RELEASE_NOTE_TAG_KEY: 'release'
59
- # Path only; {slug} is the note filename minus its extension. Check the
60
- # form your host actually serves — a generator that emits
61
- # /posts/<slug>.html often serves the extensionless form too, and the
62
- # value must match what your release bodies are written to carry.
34
+ # spec: site-kit/SPEC.md §templates/site-health.yml — path only; {slug} is the note filename minus extension
63
35
  RELEASE_NOTE_URL_PATH: '/posts/{slug}'
36
+ # spec: site-kit/SPEC.md §templates/site-health.yml — set both, or delete them with the theme-drift arm
37
+ HIGHLIGHT_CSS_PATH: ''
38
+ HIGHLIGHT_TOKENS_FILE: ''
64
39
  FORCE_FAIL: ${{ inputs.force_fail }}
65
40
  GH_TOKEN: ${{ github.token }}
66
41
  run: |
67
- # A probe expects individual checks to fail; -e would abort the battery
68
- # on the first red, so disable it and collect failures explicitly.
69
42
  set +e
70
43
  set -uo pipefail
71
44
 
@@ -78,36 +51,28 @@ jobs:
78
51
 
79
52
  failures=()
80
53
 
81
- # 1. apex answers 200 over HTTPS; curl validates the cert at handshake,
82
- # so a TLS fault also reds here.
83
54
  code="$(curl -sS -m 20 -o /dev/null -w '%{http_code}' "https://$apex/")"
84
55
  [ "$code" = 200 ] || failures+=("apex https did not answer 200 (got '$code')")
85
56
 
86
- # 2. www 301s to the apex.
87
57
  read -r code loc < <(curl -sS -m 20 -o /dev/null -w '%{http_code} %{redirect_url}' "https://www.$apex/") || true
88
58
  case "${code}::${loc}" in
89
59
  301::*"//$apex/"*) ;;
90
60
  *) failures+=("www did not 301 to apex (got '$code' -> '$loc')") ;;
91
61
  esac
92
62
 
93
- # 3. http:// 301s to https:// — proves Enforce-HTTPS has not silently flipped.
94
63
  read -r code loc < <(curl -sS -m 20 -o /dev/null -w '%{http_code} %{redirect_url}' "http://$apex/") || true
95
64
  case "${code}::${loc}" in
96
65
  301::https://*) ;;
97
66
  *) failures+=("http did not 301 to https (got '$code' -> '$loc')") ;;
98
67
  esac
99
68
 
100
- # 4. the alternate host 301s to the apex, request path kept. Delete this
101
- # block along with ALT_DOMAIN above if you serve no redirect alias.
69
+ # spec: site-kit/SPEC.md §templates/site-health.yml — the ALT_DOMAIN arm; delete it with its env if unused
102
70
  read -r code loc < <(curl -sS -m 20 -o /dev/null -w '%{http_code} %{redirect_url}' "https://$ALT_DOMAIN/install.html") || true
103
71
  case "${code}::${loc}" in
104
72
  301::*"//$apex/install.html"*) ;;
105
73
  *) failures+=("$ALT_DOMAIN did not 301 to apex keeping path (got '$code' -> '$loc')") ;;
106
74
  esac
107
75
 
108
- # 5. certificate expiry >= 14 days — the real payload. Pages renews ~30d
109
- # out, so inside 14 days means renewal has silently stalled. curl -v
110
- # prints the handshake's "expire date:", keeping this curl-only.
111
76
  expire="$(curl -sSv -m 20 "https://$apex/" 2>&1 >/dev/null | sed -n 's/^\* *expire date: //p' | head -1)"
112
77
  if [ -z "$expire" ]; then
113
78
  failures+=("could not read certificate expiry for $apex")
@@ -121,14 +86,7 @@ jobs:
121
86
  fi
122
87
  fi
123
88
 
124
- # 6. every tracked release note naming an existing tag has a Release
125
- # whose body points at that note, and every apex URL that body
126
- # carries resolves. The two assertions run over two different
127
- # strings — presence over the URL derived here, resolution over the
128
- # URLs the body actually carries — and collapsing them re-opens the
129
- # defects this arm exists for (site-kit/SPEC.md §templates/site-health.yml).
130
- # Delete this whole block along with the RELEASE_NOTE_* env above if
131
- # you publish no release notes.
89
+ # spec: site-kit/SPEC.md §templates/site-health.yml — the release-body arm; delete it with its env if unused
132
90
  notes=()
133
91
  shopt -s nullglob
134
92
  for f in $RELEASE_NOTE_GLOB; do
@@ -139,19 +97,11 @@ jobs:
139
97
  failures+=("release-note glob matched nothing: '$RELEASE_NOTE_GLOB' — set the RELEASE_NOTE_* env above, or delete this arm")
140
98
  fi
141
99
 
142
- # The tag list comes from the API, never `git tag`: checkout fetches no
143
- # tags at depth 1, so a git-driven arm finds zero released notes and
144
- # reads green forever. --paginate concatenates the pages' arrays, so
145
- # count by streaming the names — --jq 'length' returns the last page's
146
- # count, which understates exactly once pagination starts to matter.
100
+ # spec: site-kit/SPEC.md §templates/site-health.yml — the tag list comes from the API, paginated
147
101
  tag_err="$(mktemp)"
148
102
  tags="$(gh api --paginate 'repos/{owner}/{repo}/tags' --jq '.[].name' 2>"$tag_err")"
149
103
  tag_rc=$?
150
104
  if [ "$tag_rc" -ne 0 ]; then
151
- # Asserted on the call's own exit status, never inferred from the
152
- # count below: this step runs under `set +e`, so a failed call yields
153
- # an empty tag list and a zero exit, every note then reads "not yet
154
- # released", and the arm reports a clean run forever.
155
105
  failures+=("could not read the tag list (gh exit $tag_rc): $(tr '\n' ' ' < "$tag_err")")
156
106
  tags=""
157
107
  fi
@@ -161,21 +111,13 @@ jobs:
161
111
  n_found="${#notes[@]}"; n_keyed=0; n_released=0; n_checked=0
162
112
  for f in "${notes[@]:-}"; do
163
113
  [ -n "$f" ] || continue
164
- # Anchored inside the opening front-matter fence. A bare ^key: match
165
- # also hits the body.
166
114
  tag="$(awk -v key="$RELEASE_NOTE_TAG_KEY" '
167
115
  /^---[[:space:]]*$/ { fm++; next }
168
116
  fm == 1 && index($0, key ":") == 1 {
169
117
  v = substr($0, length(key) + 2); sub(/^[[:space:]]+/, "", v); print v; exit
170
118
  }' "$f")"
171
- # A post carrying no tag key is not a release note. Silent by ruling:
172
- # the census line below is how that case stays readable.
173
119
  [ -n "$tag" ] || continue
174
120
  n_keyed=$(( n_keyed + 1 ))
175
- # A note whose tag is not on the remote is a legitimate skip — its
176
- # release is deferred. This is why the tag list is not replaceable by
177
- # the per-tag lookup below: a 404 there cannot tell that apart from a
178
- # tag whose Release is genuinely missing.
179
121
  grep -Fxq -- "$tag" <<<"$tags" || continue
180
122
  n_released=$(( n_released + 1 ))
181
123
 
@@ -193,23 +135,11 @@ jobs:
193
135
  rm -f "$rel_err"
194
136
  n_checked=$(( n_checked + 1 ))
195
137
 
196
- # Presence: containment, never equality — an older body may write a
197
- # suffixed variant of its URL. Scheme-qualified, because a markdown
198
- # link's visible label often repeats the URL scheme-less and would
199
- # satisfy a scheme-less match while the link target went unchecked.
200
138
  case "$body" in
201
139
  *"$want"*) ;;
202
140
  *) failures+=("$tag: Release body does not carry the note URL $want") ;;
203
141
  esac
204
142
 
205
- # Resolution: every apex URL as literally written in the body — this
206
- # is what catches a trailing-slash URL that presence's containment
207
- # lets through. Scheme-anchored so a label is never mistaken for a
208
- # target. The trailing punctuation that occurs in practice is
209
- # markdown-structural, `)` closing a link target and `)**` closing
210
- # one inside bold, so the set covers `)` and `*` and strips a run.
211
- # Deliberately not filtered to note URLs: a body's other apex links
212
- # are covered too.
213
143
  while read -r u; do
214
144
  [ -n "$u" ] || continue
215
145
  case "$u" in
@@ -221,12 +151,56 @@ jobs:
221
151
  done < <(grep -oE 'https?://[^[:space:]<>"]+' <<<"$body" | sed -E 's/[).,;:!?*]+$//' | sort -u)
222
152
  done
223
153
 
224
- # Which zero-case a reader is in. A diagnostic, not an assertion — the
225
- # rulings above are what make a vacuous pass impossible.
226
154
  echo "release-body: $n_found note(s) found, $n_keyed keyed '$RELEASE_NOTE_TAG_KEY:', $n_released released of $n_tags remote tag(s), $n_checked checked"
227
155
 
228
- # DoD hook: a workflow_dispatch with force_fail=true exercises the issue
229
- # path on demand without waiting for a real outage.
156
+ # spec: site-kit/SPEC.md §templates/site-health.yml — the theme-drift arm; delete it with its env if unused
157
+ if [ -z "${HIGHLIGHT_CSS_PATH:-}${HIGHLIGHT_TOKENS_FILE:-}" ]; then
158
+ echo "theme-drift: skipped (HIGHLIGHT_CSS_PATH and HIGHLIGHT_TOKENS_FILE unset)"
159
+ elif [ -z "${HIGHLIGHT_CSS_PATH:-}" ] || [ -z "${HIGHLIGHT_TOKENS_FILE:-}" ]; then
160
+ failures+=("theme-drift: set both HIGHLIGHT_CSS_PATH and HIGHLIGHT_TOKENS_FILE, or neither")
161
+ elif [ ! -r "$HIGHLIGHT_TOKENS_FILE" ]; then
162
+ failures+=("theme-drift: snapshot $HIGHLIGHT_TOKENS_FILE is not a readable tracked file")
163
+ else
164
+ css="$(mktemp)"
165
+ css_err="$(mktemp)"
166
+ curl -sS -f -m 20 -o "$css" "https://$apex$HIGHLIGHT_CSS_PATH" 2>"$css_err"
167
+ css_rc=$?
168
+ if [ "$css_rc" -ne 0 ]; then
169
+ failures+=("theme-drift: could not fetch https://$apex$HIGHLIGHT_CSS_PATH (curl exit $css_rc): $(tr '\n' ' ' < "$css_err")")
170
+ else
171
+ extracted="$(tr '\n' ' ' < "$css" | sed -E 's#/\*([^*]|\*+[^*/])*\*+/##g' | awk '
172
+ BEGIN { RS = "}" }
173
+ {
174
+ n = split($0, part, "{")
175
+ if (n < 2) next
176
+ if (part[n] !~ /(^|[;[:space:]])(color|background|background-color)[[:space:]]*:/) next
177
+ print "rule"
178
+ m = split(part[n - 1], sel, ",")
179
+ for (i = 1; i <= m; i++) {
180
+ s = sel[i]
181
+ gsub(/[[:space:]]+/, " ", s); sub(/^ /, "", s); sub(/ $/, "", s)
182
+ if (s ~ /^\.highlight \.[A-Za-z0-9_-]+$/) print "class " substr(s, 12)
183
+ }
184
+ }')"
185
+ theme="$(sed -n 's/^class //p' <<<"$extracted" | sort -u)"
186
+ snap="$(grep -v '^[[:space:]]*#' "$HIGHLIGHT_TOKENS_FILE" | tr -d '[:blank:]\r' | grep . | sort -u)"
187
+ n_theme="$(grep -c . <<<"$theme")"
188
+ echo "theme-drift: $(wc -c < "$css" | tr -d ' ') byte(s) fetched, $(grep -c '^rule$' <<<"$extracted") colour-bearing rule(s), $n_theme class(es) extracted, $(grep -c . <<<"$snap") in the snapshot"
189
+ if [ "$n_theme" -eq 0 ]; then
190
+ failures+=("theme-drift: https://$apex$HIGHLIGHT_CSS_PATH yielded zero .highlight classes — the extraction or the theme's structure broke")
191
+ else
192
+ added="$(comm -23 <(printf '%s\n' "$theme") <(printf '%s\n' "$snap") | paste -sd ' ' -)"
193
+ removed="$(comm -13 <(printf '%s\n' "$theme") <(printf '%s\n' "$snap") | paste -sd ' ' -)"
194
+ if [ -n "$added$removed" ]; then
195
+ [ -z "$added" ] || failures+=("theme-drift: the theme colours class(es) the snapshot lacks: $added")
196
+ [ -z "$removed" ] || failures+=("theme-drift: the snapshot lists class(es) the theme does not colour: $removed")
197
+ failures+=("theme-drift: the full new list for $HIGHLIGHT_TOKENS_FILE:"$'\n'"$theme")
198
+ fi
199
+ fi
200
+ fi
201
+ rm -f "$css" "$css_err"
202
+ fi
203
+
230
204
  if [ "$FORCE_FAIL" = true ]; then
231
205
  failures+=("synthetic failure (force_fail dispatch input)")
232
206
  fi
@@ -254,7 +228,6 @@ jobs:
254
228
  run: |
255
229
  set -euo pipefail
256
230
  label=site-health
257
- # Idempotent: creates the label on first use, no-ops once it exists.
258
231
  gh label create "$label" --color b60205 \
259
232
  --description "Live-site monitoring probe failure" 2>/dev/null || true
260
233
 
@@ -273,7 +246,6 @@ jobs:
273
246
  gh issue create --label "$label" \
274
247
  --title "Site health: live-site probe failed" --body "$body"
275
248
  fi
276
- # Red this run as the operator's second signal (reds no merge).
277
249
  exit 1
278
250
  fi
279
251
 
package/profiles.list CHANGED
@@ -1,4 +1,4 @@
1
- # Progressive install profiles — installer/README.md §Profiles. One
1
+ # Progressive install profiles — installer/SPEC.md §Profiles. One
2
2
  # `<profile><TAB><kit>` membership per line; `#` comments and blanks ignored.
3
3
  #
4
4
  # `full` has no rows here on purpose: it is every kit root in the payload,
@@ -27,8 +27,7 @@
27
27
  # name to resolve against. It also already satisfies the last clause several
28
28
  # times over, through gates that read the adopter's own tree rather than the
29
29
  # vendored source — a tracked script missing its exec bit, a mutable action ref
30
- # in their workflows, a malformed commit subject, a broken shell script under
31
- # their gates directory. So any second kit would make the set larger than the
30
+ # in their workflows, a malformed commit subject. So any second kit would make the set larger than the
32
31
  # criterion asks for, and the first experience is the framework, not a reading
33
32
  # list.
34
33
  starter gate-sdk
@@ -43,7 +42,7 @@ starter gate-sdk
43
42
  # read rather than only on the install page: lifecycle-kit registers **no gate**
44
43
  # at install, because none of its gates is `zero-config` — for reasons that
45
44
  # differ across the roster rather than one reason covering it
46
- # (installer/README.md §What init seeds). So an adopter who picks this profile
45
+ # (installer/SPEC.md §What init seeds). So an adopter who picks this profile
47
46
  # *for* lifecycle governance gets the stage machinery vendored and nothing
48
47
  # enforcing it until the surface each gate reads exists — a stage stamp for
49
48
  # most, the kit's own installer for two. Vendored is not yet enforced.
@@ -57,7 +56,7 @@ delegation guard-kit
57
56
  delegation doctrine-kit
58
57
 
59
58
  # prose — the smallest set that governs a repository whose artifacts are prose,
60
- # on a git-only floor. gate-sdk is forced in for the same reason it is forced in
59
+ # on the floor docs/install.md §Requirements states for it. gate-sdk is forced in for the same reason it is forced in
61
60
  # starter: no runner, no hook generator, no registry. canon-kit is the kit whose
62
61
  # subject is authored documents; every other kit's subject is either the agent
63
62
  # session — which is delegation's criterion, and why these two are alternatives
@@ -1,18 +0,0 @@
1
- # shellcheck shell=bash
2
- # spec: installer/README.md §The gate binary — sourceable owner of the artifact digest mechanism: which hasher this host has and how a SHA-256 is taken with it. Deliberately not lock.sh's, because the two hashes answer different questions — the manifest's git hash-object is change detection over files init wrote, this one is an integrity claim against a value published outside the payload
3
-
4
- # spec: installer/README.md §The gate binary — sha256sum first, then shasum -a 256, because stock macOS ships the second and not the first; an absent hasher is not a refusal, it is what selects the digest-unverifiable omission
5
- digest_hasher() { # -> the resolved hasher's name, empty when neither is on PATH
6
- if command -v sha256sum >/dev/null 2>&1; then
7
- printf 'sha256sum'
8
- elif command -v shasum >/dev/null 2>&1; then
9
- printf 'shasum'
10
- fi
11
- }
12
-
13
- digest_of() { # $1 = file -> its SHA-256 in hex, empty when no hasher resolved
14
- case "$(digest_hasher)" in
15
- sha256sum) sha256sum -- "$1" 2>/dev/null | cut -d' ' -f1 ;;
16
- shasum) shasum -a 256 -- "$1" 2>/dev/null | cut -d' ' -f1 ;;
17
- esac
18
- }
@@ -1,75 +0,0 @@
1
- # shellcheck shell=bash
2
- # spec: installer/README.md §The manifest — sourceable owner of the checkwright.lock schema: the wire key, the field accessors, and how a recorded content hash is obtained, so the verb that writes the manifest and the verbs that read it share one definition instead of a copy each
3
-
4
- # spec: installer/README.md §The manifest — the versioned wire key; a build refuses a schema it does not know rather than guessing at an unknown shape
5
- CHECKWRIGHT_LOCK_SCHEMA="checkwright-lock v1"
6
- CHECKWRIGHT_LOCK_FILE="checkwright.lock"
7
-
8
- lock_path() { # $1 = repo root -> the manifest's path within it
9
- printf '%s/%s' "${1%/}" "$CHECKWRIGHT_LOCK_FILE"
10
- }
11
-
12
- # spec: installer/README.md §Requirements — the single declaration that this installer reads JSON with jq, living beside the wire format it is a fact about so four verbs do not grow four copies of it. Every verb that reads JSON calls this before its first read, never lazily inside an accessor: init reads the package's own version stamp before it touches any accessor here, and a lazy probe would let the first and most misleading refusal through. It refuses through the caller's own die(), so the verb prefix, the help: line and the exit code are the published idiom rather than a second one
13
- lock_require_jq() { # -> 0 when jq is on PATH; otherwise refuses through the calling verb's die()
14
- command -v jq >/dev/null 2>&1 && return 0
15
- die "jq is not installed, and this installer reads its JSON with it" \
16
- "install jq and re-run. Until it is on PATH nothing here can read $CHECKWRIGHT_LOCK_FILE or the package's own version stamp, so the tree can be neither checked nor changed."
17
- }
18
-
19
- lock_schema_ok() { # $1 = manifest path -> 0 iff .schema is the key this build knows
20
- local got
21
- got="$(jq -r 'if type == "object" then (.schema // "") else "" end' "$1" 2>/dev/null)" || return 1
22
- [[ "$got" == "$CHECKWRIGHT_LOCK_SCHEMA" ]]
23
- }
24
-
25
- lock_field() { # $1 = manifest path, $2 = field name -> its value, arrays space-joined, empty when absent
26
- jq -r --arg f "$2" '
27
- (if type == "object" then getpath([$f]) else null end)
28
- | if . == null then "" elif type == "array" then join(" ") else tostring end
29
- ' "$1" 2>/dev/null
30
- }
31
-
32
- # spec: installer/README.md §The manifest — the fields whose wire type is an array rather than a string, which is knowledge only the schema owner has: lock_emit space-splits exactly these, the inverse of lock_field's space-join on read, so one file holds both halves of the shell<->wire representation and a caller needs no second grammar to pass one
33
- CHECKWRIGHT_LOCK_ARRAY_FIELDS="kits"
34
-
35
- # spec: installer/README.md §The manifest — the single writer of the wire shape, so a second writing verb cannot drift from the first: keys are sorted at every nesting level, and an identity field or the artifact key is present exactly when the caller supplied it — never a null or an empty placeholder standing in for an omission. `jq -S` is the implementation that satisfies the sort property, not the definition of it
36
- lock_emit() { # $@ = key=value identity fields and an optional '--artifact <target> <digest>'; '<path><TAB><hash>' lines on stdin -> the manifest object
37
- local target="" digest="" with_artifact=0
38
- local -a idents=()
39
- while [[ $# -gt 0 ]]; do
40
- case "$1" in
41
- --artifact)
42
- [[ $# -ge 3 ]] || { echo "lock_emit: --artifact takes a target and a digest" >&2; return 2; }
43
- target="$2"; digest="$3"; with_artifact=1; shift 3 ;;
44
- *=*) idents+=("$1"); shift ;;
45
- *) echo "lock_emit: not a key=value field: $1" >&2; return 2 ;;
46
- esac
47
- done
48
- jq -R -s -S \
49
- --arg schema "$CHECKWRIGHT_LOCK_SCHEMA" \
50
- --arg arrays "$CHECKWRIGHT_LOCK_ARRAY_FIELDS" \
51
- --arg target "$target" \
52
- --arg digest "$digest" \
53
- --argjson with_artifact "$with_artifact" '
54
- ($arrays | split(" ")) as $arr
55
- | ( split("\n") | map(select(length > 0))
56
- | map(split("\t") | {(.[0]): (.[1] // "")}) | add // {} ) as $files
57
- | ( $ARGS.positional
58
- | map( (index("=")) as $i
59
- | { key: .[:$i], value: .[$i + 1:] }
60
- | if (.key | IN($arr[])) then .value |= (split(" ") | map(select(length > 0))) else . end )
61
- | from_entries ) as $ident
62
- | { schema: $schema } + $ident + { files: $files }
63
- + ( if $with_artifact == 1 then { artifact: { target: $target, digest: $digest } } else {} end )
64
- ' --args ${idents[@]+"${idents[@]}"}
65
- }
66
-
67
- # spec: installer/README.md §The manifest — git's object hash, never sha256sum: macOS ships shasum instead, and git is already a floor-contract member, so the manifest's integrity story stays inside the toolchain the contract asserts
68
- lock_hash() { # $1 = file -> the content hash a files[] entry records
69
- git hash-object -- "$1"
70
- }
71
-
72
- # spec: installer/README.md §The manifest — resolve one of the consumer's *own* seam files out of files[] by asking whether the manifest records that exact path, which is what files[] already holds: the repo-relative path init wrote. The question a caller has is "is this path one init owns", and an exact key lookup answers it outright. A tail match cannot: the vendored kits carry fixture trees with their own scripts/gates.list, so a suffix picks whichever sorts first, and no predicate over the *recorded kit set* repairs it — files[] outlives kits by design, so a narrowed re-run leaves the dropped kits' fixture paths on the roster and unexcluded, and a residual manifest carries no kits at all
73
- lock_own_file() { # $1 = manifest path, $2 = the repo-relative path init writes -> that path when the manifest records it, empty when it does not
74
- jq -r --arg p "$2" '(.files // {}) | if has($p) then $p else "" end' "$1" 2>/dev/null
75
- }
@@ -1,91 +0,0 @@
1
- # shellcheck shell=bash
2
- # spec: installer/README.md §Profiles — sourceable owner of the profile rosters: it parses profiles.list, derives `full` from the payload rather than reading a row, and is the one place a profile name resolves to a kit set
3
-
4
- # spec: installer/README.md §Profiles — the per-profile gate set is a union over per-kit recipes, so this module reaches the one that owns them rather than leaving the dependency to whichever verb happens to source both: a caller holding only this module would otherwise get an empty union where it should get an error
5
- # shellcheck source=./recipe.sh
6
- source "$(dirname "${BASH_SOURCE[0]}")/recipe.sh"
7
-
8
- # spec: installer/README.md §Profiles — the derived profile is never a row in profiles.list; a hand-maintained "all the kits" roster is drift the day a kit lands
9
- PROFILE_DERIVED=full
10
-
11
- profile_payload_kits() { # $1 = installer root -> every kit root the payload carries, sorted
12
- local d
13
- shopt -s nullglob
14
- for d in "$1"/payload/*/; do
15
- d="${d%/}"
16
- printf '%s\n' "${d##*/}"
17
- done
18
- shopt -u nullglob
19
- }
20
-
21
- profile_rows() { # $1 = installer root -> the `<profile><TAB><kit>` rows, comments and blanks dropped
22
- local f="$1/profiles.list"
23
- [[ -f "$f" ]] || return 0
24
- while IFS= read -r line; do
25
- line="${line%%#*}"
26
- [[ -n "${line//[[:space:]]/}" ]] || continue
27
- printf '%s\n' "$line"
28
- done < "$f"
29
- }
30
-
31
- profile_names() { # $1 = installer root -> every selectable profile, the derived one last
32
- local seen="" p
33
- while IFS=$'\t' read -r p _; do
34
- [[ -n "$p" && "$seen" != *"|$p|"* ]] || continue
35
- seen="$seen|$p|"
36
- printf '%s\n' "$p"
37
- done < <(profile_rows "$1")
38
- printf '%s\n' "$PROFILE_DERIVED"
39
- }
40
-
41
- profile_kits() { # $1 = installer root, $2 = profile -> its kit set in payload order, empty when the profile is unknown
42
- local root="$1" want="$2" p k members="" kit
43
- if [[ "$want" == "$PROFILE_DERIVED" ]]; then
44
- profile_payload_kits "$root"
45
- return 0
46
- fi
47
- while IFS=$'\t' read -r p k; do
48
- [[ "$p" == "$want" ]] || continue
49
- members="$members|$k|"
50
- done < <(profile_rows "$root")
51
- [[ -n "$members" ]] || return 0
52
- # spec: installer/README.md §Profiles — emit in payload order so a roster's line order never decides install order
53
- while IFS= read -r kit; do
54
- [[ "$members" == *"|$kit|"* ]] && printf '%s\n' "$kit"
55
- done < <(profile_payload_kits "$root")
56
- }
57
-
58
- profile_known() { # $1 = installer root, $2 = profile -> 0 iff it is selectable
59
- local n
60
- while IFS= read -r n; do [[ "$n" == "$2" ]] && return 0; done < <(profile_names "$1")
61
- return 1
62
- }
63
-
64
- # spec: installer/README.md §Profiles — the order is derived from set inclusion over the kit rosters and never declared beside them: a declared parent and the kit sets could disagree, and then two surfaces would assert the containment again. The profiles form a lattice rather than a chain, so a pair comparing in neither direction is legitimate and simply absent from this output
65
- profile_order() { # $1 = installer root -> one '<a><TAB><b>' line per ordered pair of distinct profiles whose kit set is contained in the other's
66
- local root="$1" a b sub sup k ok
67
- local -a names
68
- mapfile -t names < <(profile_names "$root")
69
- for a in "${names[@]}"; do
70
- sub="$(profile_kits "$root" "$a")"
71
- for b in "${names[@]}"; do
72
- [[ "$a" == "$b" ]] && continue
73
- sup="$(profile_kits "$root" "$b")"
74
- ok=1
75
- while IFS= read -r k; do
76
- [[ -n "$k" ]] || continue
77
- grep -qxF "$k" <<<"$sup" || { ok=0; break; }
78
- done <<<"$sub"
79
- (( ok )) && printf '%s\t%s\n' "$a" "$b"
80
- done
81
- done
82
- }
83
-
84
- # spec: installer/README.md §Profiles — what an adopter meets is the battery, not the directory list, so the profile's gate set is a derivation in its own right: one function answers it for the registry init writes and for the smoke's monotonicity assertion, rather than each unioning the per-kit recipes itself and the two drifting apart the day an arm varies by profile
85
- profile_gates() { # $1 = installer root, $2 = profile -> the sorted, de-duplicated union of the gates its kits register in a fresh consumer
86
- local root="$1" profile="$2" kit
87
- while IFS= read -r kit; do
88
- [[ -n "$kit" ]] || continue
89
- recipe_gates "$root/payload/$kit" "$profile"
90
- done < <(profile_kits "$root" "$profile") | LC_ALL=C sort -u
91
- }
@@ -1,106 +0,0 @@
1
- # shellcheck shell=bash
2
- # spec: installer/README.md §What init seeds — sourceable owner of the per-kit install recipe: the starting gate roster a kit registers in a fresh consumer, and the seam surfaces it needs before those gates can run. Two output channels, and the difference is who writes the file: a bare repo-relative path is one this module seeded itself and init need only claim for the roster, while a '<src>\t<dest>' pair is a plan init performs through copy_in. Both feed the manifest's files[]
3
-
4
- # shellcheck disable=SC2034 # QUEUE_FILE is read by this module's callers, not by the module
5
- # spec: installer/README.md §What init seeds — the consumer-layout names init writes against; they are gate-sdk's and canon-kit's own defaults, so a tree init made is the zero-config tree those kits expect. They live here rather than in one verb because uninstall must trim the doctrine span out of the same agent file init wrote it into: doctrine-kit's own DOCTRINE_KIT_AGENT_FILE knob cannot answer that, since an adopter override would not change the path init actually used, so the name needs one writer both verbs read
6
- GATES_DIR="scripts"
7
- AGENT_FILE="CLAUDE.md"
8
- QUEUE_FILE="TASK-QUEUE.md"
9
-
10
- # spec: installer/README.md §What init seeds — the config seam is derived, never listed: a kit's consumer config is whatever `templates/*-config.sh` it ships, and the destination is always the gates dir under the file's own name. It plans and writes nothing, because the seam is rewritten on every run and is the file class whose whole purpose is to be edited: a copy landing before claim() hashes the tree destroys the very evidence the refusal is computed from, so the write belongs to copy_in
11
- recipe_config_seam_plan() { # $1 = kit payload dir, $2 = gates dir -> one '<src><TAB><dest>' line per config template
12
- local t base
13
- shopt -s nullglob
14
- for t in "$1"/templates/*-config.sh; do
15
- base="${t##*/}"
16
- printf '%s\t%s/%s\n' "$t" "$2" "$base"
17
- done
18
- shopt -u nullglob
19
- }
20
-
21
- # spec: gate-sdk/SPEC.md §The install disposition — the gate is the one place that knows whether it can run on a tree init just made, so this reads the declaration off each shipped gate instead of carrying a second copy of it. A kit that adds a zero-config gate is picked up with no edit here, which is the exposure this replaces: a roster maintained here could never learn about it
22
- recipe_install_disposition() { # $1 = gate file -> the disposition its header declares, empty when it declares none
23
- awk 'sub(/^# install:[[:space:]]+/, "") { print $1; exit }' "$1"
24
- }
25
-
26
- # spec: installer/README.md §What init seeds — the starting roster is the subset a fresh consumer begins with, not the kit's full roster: a gate whose subject the adopter has not authored yet (a glossary, a skills directory, a docs host) would exit 2 on their tree, so it is registered when that surface exists rather than at install
27
- # spec: installer/README.md §Profiles — the roster is keyed by profile as well as by kit, so a roster that varies by profile becomes a change to one arm rather than a change to this signature and to every caller reading it. No disposition varies on it today; the parameter is the seam, and its reader is profile_gates
28
- # spec: gate-sdk/SPEC.md §Consumer payload — both declaration spellings are scanned, because a ported gate is still a gate a kit ships and its descriptor rides the payload on the same terms as a shell implementation
29
- recipe_gates() { # $1 = kit payload dir, $2 = profile -> the gates it registers in a fresh consumer, none for a kit that ships no zero-config gate
30
- local pay="$1" f name
31
- [[ -d "$pay/checks" ]] || return 0
32
- shopt -s nullglob
33
- for f in "$pay"/checks/check-*.sh "$pay"/checks/check-*.gate; do
34
- name="${f##*/}"
35
- [[ "$(recipe_install_disposition "$f")" == zero-config ]] && printf '%s\n' "${name%.*}"
36
- done | LC_ALL=C sort -u
37
- shopt -u nullglob
38
- }
39
-
40
- recipe_needs_queue() { # $1 = kit name -> 0 iff one of its starting gates reads the queue file
41
- case "$1" in canon-kit|lifecycle-kit|queue-kit) return 0 ;; *) return 1 ;; esac
42
- }
43
-
44
- # spec: installer/README.md §What init seeds — the queue source is resolved once over the profile's whole kit set, never inside a per-kit call that cannot see the other kits: a kit declares itself the queue format's owner by shipping templates/TASK-QUEUE.md, so the selection reads that fact off the payload and needs no second surface to state it
45
- recipe_queue_source() { # $1 = payload root, $2.. = the profile's resolved kit set -> the template to seed from, '-' for the inline fallback, nothing when no kit in the set reads the queue file
46
- local pay="$1" kit tpl="" needs=1
47
- shift
48
- for kit in "$@"; do
49
- recipe_needs_queue "$kit" && needs=0
50
- [[ -z "$tpl" && -f "$pay/$kit/templates/TASK-QUEUE.md" ]] && tpl="$pay/$kit/templates/TASK-QUEUE.md"
51
- done
52
- (( needs )) && return 0
53
- printf '%s\n' "${tpl:--}"
54
- }
55
-
56
- # spec: installer/README.md §What init seeds — the fallback carries every QUEUE_KIT_REQUIRED_SECTIONS heading at that knob's default because it is a path a shipping profile takes rather than defensive symmetry: the section floor is not registered at install, so a skeleton missing a heading would pass open here and red on the adopter's own file the day they register it
57
- recipe_write_queue() { # $1 = the source recipe_queue_source resolved, $2 = consumer root, $3 = queue file
58
- if [[ "$1" != - ]]; then
59
- cp "$1" "$2/$3"
60
- return
61
- fi
62
- printf '%s\n' "# $3" "" "## Iteration: —" "" "---" "" \
63
- "## New Features" "" "## Technical Debt" "" "## Deferred" "" "## Done" "" "## Lessons Learned" \
64
- > "$2/$3"
65
- }
66
-
67
- # spec: installer/README.md §What init seeds — this asks whether the agent file must *exist* for a kit's starting gates, which is a narrower question than which kit writes into it: a kit answering yes here and shipping no seed arm is the ordinary case, and reading this membership as the seeding roster is the conflation the section's rule exists to settle
68
- recipe_needs_agent_file() { # $1 = kit name -> 0 iff one of its starting gates reads the always-loaded agent file
69
- case "$1" in context-kit|doctrine-kit) return 0 ;; *) return 1 ;; esac
70
- }
71
-
72
- # spec: installer/README.md §What init seeds — seed what is absent, plan what must be claimed. A surface init creates once and then leaves alone is written here only when it is absent, which is what keeps a re-run non-destructive on a tree that has grown since; a surface init rewrites on every run is never written here at all but planned for copy_in, because only claim() can compare the adopter's content before the overwrite lands. The two disciplines are not interchangeable and each arm below takes the one its surface needs
73
- recipe_seed() { # $1 = kit name, $2 = kit payload dir, $3 = consumer root; prints seeded paths and '<src><TAB><dest>' plans
74
- local kit="$1" pay="$2" root="$3"
75
-
76
- case "$kit" in
77
- gate-sdk)
78
- [[ -f "$pay/templates/msg-patterns.list" ]] || return 0
79
- printf '%s\t%s/msg-patterns.list\n' "$pay/templates/msg-patterns.list" "$GATES_DIR" ;;
80
- evidence-kit)
81
- mkdir -p "$root/.workflow" || return 1
82
- if [[ ! -f "$root/.workflow/validate-baseline.txt" ]]; then
83
- printf '%s\n' "# contract: evidence-kit/SPEC.md §Baseline manifest — held-constant validate baseline: <suite> <scenario> <status> [<slug>]" \
84
- > "$root/.workflow/validate-baseline.txt" || return 1
85
- printf '%s\n' ".workflow/validate-baseline.txt"
86
- fi
87
- if [[ ! -f "$root/.workflow/validate-evidence.txt" ]]; then
88
- printf '%s\n' "# contract: evidence-manifest v1" \
89
- > "$root/.workflow/validate-evidence.txt" || return 1
90
- printf '%s\n' ".workflow/validate-evidence.txt"
91
- fi ;;
92
- lifecycle-kit)
93
- mkdir -p "$root/.workflow" || return 1
94
- [[ -f "$root/.workflow/WORKFLOW-STATE.txt" ]] && return 0
95
- printf '%s\n' "# contract: lifecycle-kit/SPEC.md §check-stage-evidence" \
96
- "# One data line per stage-skill invocation: <iteration> <stage> <session-id> <date> <head>." \
97
- "" "---" "" > "$root/.workflow/WORKFLOW-STATE.txt" || return 1
98
- printf '%s\n' ".workflow/WORKFLOW-STATE.txt" ;;
99
- doctrine-kit)
100
- # spec: installer/README.md §What init seeds — this kit has an arm because a gate init registers reads the block it writes; that is the whole test, and it is why no lifecycle-kit arm sits beside this one
101
- # spec: doctrine-kit/SPEC.md §install-doctrine — the reference block is the kit's own installer's to write, so init calls it rather than restating the block it emits
102
- ( cd "$root" && bash "$pay/bin/install-doctrine.sh" "$AGENT_FILE" "doctrine-kit/DOCTRINE.md" ) >/dev/null || return 1
103
- printf '%s\n' "$AGENT_FILE" ;;
104
- *) : ;;
105
- esac
106
- }