checkwright 0.25.0 → 0.26.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 (1025) hide show
  1. package/README.md +35 -1361
  2. package/bin/checkwright.ps1 +157 -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/targets.list +120 -24
  12. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  13. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -0
  14. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  15. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
  16. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  17. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  18. package/payload/canon-kit/README.md +23 -37
  19. package/payload/canon-kit/checks/check-amendment-queue.gate +2 -2
  20. package/payload/canon-kit/checks/check-amendment-retired-spelling.gate +3 -0
  21. package/payload/canon-kit/checks/check-amendment-update-target.gate +1 -1
  22. package/payload/canon-kit/checks/check-comment-tier.gate +1 -1
  23. package/payload/canon-kit/checks/check-deprecation-task.gate +2 -1
  24. package/payload/canon-kit/checks/check-docs-cmd.gate +2 -2
  25. package/payload/canon-kit/checks/check-docs-link-convention.gate +1 -1
  26. package/payload/canon-kit/checks/check-docs-restatement-parity.gate +4 -0
  27. package/payload/canon-kit/checks/check-fence-command-head.gate +3 -0
  28. package/payload/canon-kit/checks/check-fence-run.gate +3 -0
  29. package/payload/canon-kit/checks/check-install-claim.gate +2 -1
  30. package/payload/canon-kit/checks/check-knob-citation.gate +1 -1
  31. package/payload/canon-kit/checks/check-manifest-count.gate +1 -1
  32. package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
  33. package/payload/canon-kit/checks/check-md-refs.gate +1 -1
  34. package/payload/canon-kit/checks/check-md-unwrapped.gate +3 -0
  35. package/payload/canon-kit/checks/check-measured-claim.gate +2 -1
  36. package/payload/canon-kit/checks/check-payload-claim.gate +2 -1
  37. package/payload/canon-kit/checks/check-prose-bounds.gate +3 -0
  38. package/payload/canon-kit/checks/check-prose-enum.gate +2 -1
  39. package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
  40. package/payload/canon-kit/checks/check-provenance-seam.gate +3 -0
  41. package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
  42. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
  43. package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
  44. package/payload/canon-kit/checks/check-spec-fence-balance.gate +1 -1
  45. package/payload/canon-kit/checks/check-spec-pointer.gate +2 -2
  46. package/payload/canon-kit/checks/check-surface-duplication.gate +3 -0
  47. package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
  48. package/payload/canon-kit/checks/check-tracking-claim.gate +1 -1
  49. package/payload/canon-kit/checks/check-unmarked-claim.gate +2 -1
  50. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +3 -0
  51. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +37 -8
  52. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +6 -3
  53. package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +7 -0
  54. package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +11 -3
  55. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-nosection.md +16 -0
  56. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-thing.md +26 -0
  57. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/expect.txt +8 -0
  58. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/one.md +4 -0
  59. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/two.md +3 -0
  60. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-tidy.md +20 -0
  61. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-widget.md +37 -0
  62. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/README.md +4 -0
  63. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/SPEC.md +4 -0
  64. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/expect.txt +1 -0
  65. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/unnamed.md +4 -0
  66. package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +1 -1
  67. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +1 -1
  68. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +37 -26
  69. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +3 -1
  70. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.knobs +2 -0
  71. package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +6 -2
  72. package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
  73. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.knobs +2 -0
  74. package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +12 -10
  75. package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +4 -1
  76. package/payload/canon-kit/gate-tests/check-docs-cmd.test.sh +61 -0
  77. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +3 -0
  78. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +21 -2
  79. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +2 -0
  80. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/README.md +10 -0
  81. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +11 -0
  82. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/canon-config.knobs +2 -0
  83. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/gate-sdk-config.knobs +2 -0
  84. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/expect.txt +1 -0
  85. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/README.md +12 -0
  86. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/index.md +13 -0
  87. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/canon-config.knobs +2 -0
  88. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/gate-sdk-config.knobs +2 -0
  89. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/args +1 -0
  90. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +16 -0
  91. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +5 -0
  92. package/payload/canon-kit/gate-tests/check-fence-command-head/good/args +1 -0
  93. package/payload/canon-kit/gate-tests/check-fence-command-head/good/bin/run.sh +3 -0
  94. package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +41 -0
  95. package/payload/canon-kit/gate-tests/check-fence-command-head/good/expect.txt +1 -0
  96. package/payload/canon-kit/gate-tests/check-fence-command-head/good/lib/tool.sh +5 -0
  97. package/payload/canon-kit/gate-tests/check-fence-command-head/good/scripts/canon-config.knobs +2 -0
  98. package/payload/canon-kit/gate-tests/check-fence-run/bad/args +1 -0
  99. package/payload/canon-kit/gate-tests/check-fence-run/bad/doc.md +32 -0
  100. package/payload/canon-kit/gate-tests/check-fence-run/bad/expect.txt +7 -0
  101. package/payload/canon-kit/gate-tests/check-fence-run/good/args +1 -0
  102. package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +31 -0
  103. package/payload/canon-kit/gate-tests/check-fence-run/good/expect.txt +1 -0
  104. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.knobs +7 -0
  105. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.knobs +7 -0
  106. package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +42 -7
  107. package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +1 -2
  108. package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  109. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +37 -8
  110. package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +3 -0
  111. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +10 -0
  112. package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +6 -6
  113. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +1 -1
  114. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/doc.md +13 -0
  115. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +4 -0
  116. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/scripts/canon-config.knobs +2 -0
  117. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/doc.md +45 -0
  118. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -0
  119. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/scripts/canon-config.knobs +4 -0
  120. package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +3 -0
  121. package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +1 -0
  122. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.knobs +4 -0
  123. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +8 -0
  124. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.knobs +4 -0
  125. package/payload/canon-kit/gate-tests/check-measured-claim/good/worktrees/SPEC.md +12 -0
  126. package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +32 -13
  127. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.knobs +6 -0
  128. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.knobs +6 -0
  129. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/CLAUDE.md +9 -0
  130. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/SPEC.md +11 -0
  131. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/expect.txt +3 -0
  132. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/scripts/canon-config.knobs +3 -0
  133. package/payload/canon-kit/gate-tests/check-prose-bounds/good/CLAUDE.md +10 -0
  134. package/payload/canon-kit/gate-tests/check-prose-bounds/good/SPEC.md +27 -0
  135. package/payload/canon-kit/gate-tests/check-prose-bounds/good/expect.txt +1 -0
  136. package/payload/canon-kit/gate-tests/check-prose-bounds/good/scripts/canon-config.knobs +3 -0
  137. package/payload/canon-kit/gate-tests/check-prose-bounds.test.sh +98 -0
  138. package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.knobs +3 -0
  139. package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.knobs +3 -0
  140. package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +55 -25
  141. package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +2 -0
  142. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -0
  143. package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
  144. package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/{canon-config.sh → canon-config.knobs} +2 -5
  145. package/payload/canon-kit/gate-tests/check-prose-tells/good/worktrees/prose.md +17 -0
  146. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/TASK-QUEUE.md +15 -0
  147. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/expect.txt +8 -0
  148. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/canon-config.knobs +3 -0
  149. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/gate-sdk-config.knobs +2 -0
  150. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/lifecycle-config.knobs +12 -0
  151. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/widget-toolkit/SPEC.md +27 -0
  152. package/payload/canon-kit/gate-tests/check-provenance-seam/good/TASK-QUEUE.md +15 -0
  153. package/payload/canon-kit/gate-tests/check-provenance-seam/good/expect.txt +1 -0
  154. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/canon-config.knobs +3 -0
  155. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/gate-sdk-config.knobs +2 -0
  156. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/lifecycle-config.knobs +12 -0
  157. package/payload/canon-kit/gate-tests/check-provenance-seam/good/widget-toolkit/SPEC.md +20 -0
  158. package/payload/canon-kit/gate-tests/check-provenance-seam.test.sh +136 -0
  159. package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +1 -1
  160. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +6 -0
  161. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
  162. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +2 -0
  163. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +4 -0
  164. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +6 -0
  165. package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +15 -0
  166. package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +10 -0
  167. package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
  168. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +2 -0
  169. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
  170. package/payload/canon-kit/gate-tests/check-spec-pointer/good/vendored-kit/notes.txt +4 -0
  171. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +3 -1
  172. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +9 -3
  173. package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -1
  174. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +3 -0
  175. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +1 -0
  176. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.knobs +4 -0
  177. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +3 -0
  178. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.knobs +4 -0
  179. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/worktrees/SPEC.md +11 -0
  180. package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +53 -28
  181. package/payload/canon-kit/templates/SPEC-amendment.md +46 -25
  182. package/payload/canon-kit/templates/canon-config.knobs +1 -0
  183. package/payload/context-kit/README.md +33 -61
  184. package/payload/context-kit/checks/check-brevity.gate +2 -2
  185. package/payload/context-kit/checks/check-footprint-fresh.gate +3 -2
  186. package/payload/context-kit/checks/check-memory-off.gate +1 -1
  187. package/payload/context-kit/checks/check-settings-paths.gate +2 -2
  188. package/payload/context-kit/checks/check-settings-pins.gate +1 -1
  189. package/payload/context-kit/checks/check-surface-ratchet.gate +3 -0
  190. package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +9 -2
  191. package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
  192. package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +9 -4
  193. package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -1
  194. package/payload/context-kit/gate-tests/check-brevity.test.sh +107 -24
  195. package/payload/context-kit/gate-tests/check-footprint-fresh/good/CLAUDE.md +6 -0
  196. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/SPEC.md +3 -0
  197. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/templates/guide.md +3 -0
  198. package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +30 -0
  199. package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/{context-config.sh → context-config.knobs} +1 -3
  200. package/payload/context-kit/gate-tests/check-memory-off/good/scripts/{context-config.sh → context-config.knobs} +1 -3
  201. package/payload/context-kit/gate-tests/check-memory-off.test.sh +1 -1
  202. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +2 -0
  203. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +21 -0
  204. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/run-gates.sh +4 -0
  205. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -1
  206. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +48 -1
  207. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/run-gates.sh +4 -0
  208. package/payload/context-kit/gate-tests/check-settings-pins.test.sh +1 -1
  209. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/CLAUDE.md +5 -0
  210. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/expect.txt +2 -0
  211. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/scripts/context-config.knobs +4 -0
  212. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/surface-ceiling.txt +2 -0
  213. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/templates/ungoverned.md +3 -0
  214. package/payload/context-kit/gate-tests/check-surface-ratchet/good/CLAUDE.md +3 -0
  215. package/payload/context-kit/gate-tests/check-surface-ratchet/good/expect.txt +1 -0
  216. package/payload/context-kit/gate-tests/check-surface-ratchet/good/scripts/context-config.knobs +4 -0
  217. package/payload/context-kit/gate-tests/check-surface-ratchet/good/surface-ceiling.txt +4 -0
  218. package/payload/context-kit/gate-tests/check-surface-ratchet/good/templates/held.md +4 -0
  219. package/payload/context-kit/gate-tests/check-surface-ratchet.test.sh +76 -0
  220. package/payload/context-kit/index-tests/corpus/baseline.txt +1 -1
  221. package/payload/context-kit/index-tests/corpus/surface.md +1 -6
  222. package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -1
  223. package/payload/context-kit/templates/close-brevity.md +9 -28
  224. package/payload/context-kit/templates/context-config.knobs +1 -0
  225. package/payload/context-kit/templates/session-context.sh +43 -28
  226. package/payload/delegation-kit/README.md +35 -69
  227. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +1 -1
  228. package/payload/delegation-kit/checks/check-gate-tamper.gate +1 -1
  229. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +23 -2
  230. package/payload/delegation-kit/templates/agent-execution.md +23 -389
  231. package/payload/delegation-kit/templates/delegation-config.knobs +4 -0
  232. package/payload/delegation-kit/templates/dispatch-checklists.md +8 -45
  233. package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +33 -17
  234. package/payload/doctrine-kit/DOCTRINE.md +92 -458
  235. package/payload/doctrine-kit/README.md +24 -55
  236. package/payload/doctrine-kit/checks/check-doctrine-registration.gate +1 -1
  237. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +48 -3
  238. package/payload/drift-kit/README.md +43 -89
  239. package/payload/drift-kit/templates/close-knowledge.md +7 -22
  240. package/payload/drift-kit/templates/drift-config.knobs +1 -0
  241. package/payload/drift-kit/templates/economics.md +10 -48
  242. package/payload/drift-kit/templates/kpi-deprecated-surface.sh +31 -9
  243. package/payload/drift-kit/templates/kpis.list +2 -1
  244. package/payload/drift-kit/templates/price-table.tsv +1 -1
  245. package/payload/evidence-kit/README.md +23 -46
  246. package/payload/evidence-kit/checks/check-battery-roster.gate +1 -1
  247. package/payload/evidence-kit/checks/check-evidence-baseline.gate +2 -2
  248. package/payload/evidence-kit/checks/check-evidence-manifest.gate +1 -1
  249. package/payload/evidence-kit/checks/check-producer-liveness.gate +3 -0
  250. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +7 -0
  251. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +7 -0
  252. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +7 -7
  253. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -1
  254. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +1 -0
  255. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +2 -0
  256. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/scripts/evidence-config.knobs +4 -0
  257. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +1 -0
  258. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -1
  259. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +1 -0
  260. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/scripts/evidence-config.knobs +3 -0
  261. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +134 -14
  262. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
  263. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
  264. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +5 -4
  265. package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +128 -0
  266. package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +51 -45
  267. package/payload/evidence-kit/gate-tests/pre-hook.test.sh +66 -0
  268. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +29 -16
  269. package/payload/evidence-kit/templates/evidence-config.knobs +1 -0
  270. package/payload/gate-sdk/README.md +48 -79
  271. package/payload/gate-sdk/bin/build-native.sh +27 -4
  272. package/payload/gate-sdk/bin/run-gates.ps1 +266 -0
  273. package/payload/gate-sdk/bin/run-gates.sh +53 -277
  274. package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -1
  275. package/payload/gate-sdk/checks/check-action-job-ref.gate +3 -0
  276. package/payload/gate-sdk/checks/check-action-permissions.gate +3 -0
  277. package/payload/gate-sdk/checks/check-action-pinning.gate +1 -1
  278. package/payload/gate-sdk/checks/check-action-run-path.gate +3 -0
  279. package/payload/gate-sdk/checks/check-action-run-shell.gate +3 -0
  280. package/payload/gate-sdk/checks/check-commit-msg.gate +2 -1
  281. package/payload/gate-sdk/checks/check-commit-subject.gate +1 -1
  282. package/payload/gate-sdk/checks/check-core-files.gate +1 -1
  283. package/payload/gate-sdk/checks/check-crate-arms.gate +3 -0
  284. package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -2
  285. package/payload/gate-sdk/checks/check-exec-bit.gate +1 -1
  286. package/payload/gate-sdk/checks/check-front-end-fail-open.gate +3 -0
  287. package/payload/gate-sdk/checks/check-gate-assertions.gate +2 -2
  288. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +1 -1
  289. package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +1 -1
  290. package/payload/gate-sdk/checks/check-gate-fail-closed.gate +1 -1
  291. package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +1 -1
  292. package/payload/gate-sdk/checks/check-gate-output.gate +1 -1
  293. package/payload/gate-sdk/checks/check-gate-substrate-parity.gate +3 -0
  294. package/payload/gate-sdk/checks/check-graph.gate +2 -1
  295. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +1 -1
  296. package/payload/gate-sdk/checks/check-identity.gate +1 -1
  297. package/payload/gate-sdk/checks/check-install-disposition.gate +3 -0
  298. package/payload/gate-sdk/checks/check-kit-enum.gate +1 -1
  299. package/payload/gate-sdk/checks/check-kit-registration.gate +1 -1
  300. package/payload/gate-sdk/checks/check-kit-roots-dialect.gate +3 -0
  301. package/payload/gate-sdk/checks/check-packed-links.gate +3 -0
  302. package/payload/gate-sdk/checks/check-path-dialect.gate +3 -0
  303. package/payload/gate-sdk/checks/check-pipe-membership.gate +3 -0
  304. package/payload/gate-sdk/checks/check-portability-floor.gate +4 -0
  305. package/payload/gate-sdk/checks/check-projection-roster.gate +4 -0
  306. package/payload/gate-sdk/checks/check-reads-couples.gate +1 -1
  307. package/payload/gate-sdk/checks/check-root-tiering.gate +1 -1
  308. package/payload/gate-sdk/checks/check-shellcheck.gate +3 -0
  309. package/payload/gate-sdk/checks/check-template-copy-parity.gate +1 -1
  310. package/payload/gate-sdk/checks/check-tree-terms.gate +2 -1
  311. package/payload/gate-sdk/checks/check-workflow-tiering.gate +1 -1
  312. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/args +2 -0
  313. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/expect.txt +1 -0
  314. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/scripts/gate-sdk-config.knobs +1 -0
  315. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/notes.md +3 -0
  316. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/workflows/ci.yml +8 -0
  317. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/args +3 -0
  318. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/expect.txt +1 -0
  319. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/scripts/gate-sdk-config.knobs +1 -0
  320. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/notes.md +3 -0
  321. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/workflows/ci.yml +8 -0
  322. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/args +3 -0
  323. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/expect.txt +5 -0
  324. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/empty-allowlist.yml +29 -0
  325. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/gates.yml +25 -0
  326. package/payload/gate-sdk/gate-tests/check-action-permissions/good/args +5 -0
  327. package/payload/gate-sdk/gate-tests/check-action-permissions/good/expect.txt +1 -0
  328. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/action.yml +9 -0
  329. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/not-actions.yml +7 -0
  330. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/declared.yml +69 -0
  331. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/valves.yml +22 -0
  332. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/args +4 -0
  333. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/expect.txt +2 -0
  334. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/scripts/present.sh +3 -0
  335. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/workflows/ci.yml +14 -0
  336. package/payload/gate-sdk/gate-tests/check-action-run-path/good/args +5 -0
  337. package/payload/gate-sdk/gate-tests/check-action-run-path/good/expect.txt +1 -0
  338. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/scripts/build.sh +3 -0
  339. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/sub/scripts/inner.sh +3 -0
  340. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/workflows/ci.yml +36 -0
  341. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +4 -2
  342. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +2 -0
  343. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/runner-dialect.yml +36 -0
  344. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -2
  345. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -1
  346. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/runner-dialect.yml +71 -0
  347. package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +102 -9
  348. package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +1 -1
  349. package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +1 -1
  350. package/payload/gate-sdk/gate-tests/check-assertion-strength.test.sh +55 -0
  351. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/expect.txt +1 -0
  352. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/msg.txt +4 -0
  353. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -1
  354. package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +7 -0
  355. package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -1
  356. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +2 -2
  357. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +1 -1
  358. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.knobs +3 -0
  359. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.knobs +3 -0
  360. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/SPEC.md +3 -0
  361. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/checks/check-demo.gate +1 -0
  362. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/probe.conf +1 -0
  363. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/templates/guide.md +3 -0
  364. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/enforcement.md +33 -0
  365. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gate-sdk-config.knobs +1 -0
  366. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gates.list +1 -0
  367. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +1 -1
  368. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/args +3 -0
  369. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/expect.txt +2 -0
  370. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.ps1 +5 -0
  371. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.sh +9 -0
  372. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/args +4 -0
  373. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/expect.txt +1 -0
  374. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.ps1 +5 -0
  375. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.sh +9 -0
  376. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +4 -1
  377. package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +1 -1
  378. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.knobs +2 -0
  379. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.knobs +2 -0
  380. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +6 -12
  381. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +5 -3
  382. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +3 -1
  383. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +4 -2
  384. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +1 -1
  385. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci/build-artifact.sh +9 -0
  386. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci.yml +9 -0
  387. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +4 -2
  388. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.knobs +5 -0
  389. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +6 -0
  390. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci/build-artifact.sh +9 -0
  391. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci.yml +16 -0
  392. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +7 -3
  393. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.knobs +5 -0
  394. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -1
  395. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +222 -197
  396. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +7 -2
  397. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +4 -0
  398. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +3 -1
  399. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +1 -1
  400. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +8 -8
  401. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +2 -2
  402. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +49 -14
  403. package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
  404. package/payload/gate-sdk/gate-tests/check-identity/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
  405. package/payload/gate-sdk/gate-tests/check-identity.test.sh +1 -1
  406. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-eta.sh +7 -0
  407. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-iota.sh +7 -0
  408. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-theta.sh +7 -0
  409. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-zeta.gate +3 -0
  410. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +1 -1
  411. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +8 -5
  412. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +5 -0
  413. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/native/src/installer/recipe.rs +10 -0
  414. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  415. package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +8 -4
  416. package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +2 -0
  417. package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  418. package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/checks/check-alpha.sh +1 -1
  419. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-beta.gate +3 -0
  420. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-gamma.sh +6 -0
  421. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-omega.sh +7 -0
  422. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-psi.sh +7 -0
  423. package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/smoke/install.sh +2 -2
  424. package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +15 -12
  425. package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +7 -5
  426. package/payload/gate-sdk/gate-tests/check-kit-registration/good/scripts/gate-sdk-config.knobs +2 -0
  427. package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +2 -2
  428. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/args +5 -0
  429. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/expect.txt +1 -0
  430. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/checks/placeholder.txt +3 -0
  431. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
  432. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/lib/alpha.sh +3 -0
  433. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/checks/placeholder.txt +3 -0
  434. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/gate-tests/beta.test.sh +3 -0
  435. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/lib/beta.sh +3 -0
  436. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/checks/placeholder.txt +3 -0
  437. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/lib/gate.sh +3 -0
  438. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gate-sdk-config.knobs +7 -0
  439. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gates.list +3 -0
  440. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/args +7 -0
  441. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/expect.txt +1 -0
  442. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/checks/placeholder.txt +3 -0
  443. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
  444. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/lib/alpha.sh +3 -0
  445. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/checks/placeholder.txt +3 -0
  446. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/gate-tests/beta.test.sh +3 -0
  447. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/lib/beta.sh +3 -0
  448. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/checks/placeholder.txt +3 -0
  449. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/lib/gate.sh +3 -0
  450. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/scripts/gates.list +3 -0
  451. package/payload/gate-sdk/gate-tests/check-packed-links/bad/alpha-kit/README.md +5 -0
  452. package/payload/gate-sdk/gate-tests/check-packed-links/bad/args +5 -0
  453. package/payload/gate-sdk/gate-tests/check-packed-links/bad/beta-kit/README.md +5 -0
  454. package/payload/gate-sdk/gate-tests/check-packed-links/bad/expect.txt +2 -0
  455. package/payload/gate-sdk/gate-tests/check-packed-links/bad/scripts/gate-sdk-config.knobs +4 -0
  456. package/payload/gate-sdk/gate-tests/check-packed-links/good/alpha-kit/README.md +5 -0
  457. package/payload/gate-sdk/gate-tests/check-packed-links/good/args +8 -0
  458. package/payload/gate-sdk/gate-tests/check-packed-links/good/beta-kit/README.md +9 -0
  459. package/payload/gate-sdk/gate-tests/check-packed-links/good/expect.txt +1 -0
  460. package/payload/gate-sdk/gate-tests/check-packed-links/good/gamma-kit/SPEC.md +4 -0
  461. package/payload/gate-sdk/gate-tests/check-packed-links/good/scripts/gate-sdk-config.knobs +6 -0
  462. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/args +3 -0
  463. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/expect.txt +15 -0
  464. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/primitive.rs +19 -0
  465. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/producer.rs +8 -0
  466. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/walk.rs +13 -0
  467. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/bound-root.sh +5 -0
  468. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/case-arm.sh +6 -0
  469. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/commented.sh +5 -0
  470. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/common-dir.sh +4 -0
  471. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/glob-test.sh +4 -0
  472. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/late-anchor.sh +7 -0
  473. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/logical-readback.sh +5 -0
  474. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/probe.sh +7 -0
  475. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/two-root.sh +5 -0
  476. package/payload/gate-sdk/gate-tests/check-path-dialect/good/args +3 -0
  477. package/payload/gate-sdk/gate-tests/check-path-dialect/good/expect.txt +13 -0
  478. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/commented.rs +5 -0
  479. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/local.rs +12 -0
  480. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/namespace.rs +11 -0
  481. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/typed.rs +10 -0
  482. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/verdict.rs +5 -0
  483. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/walk.rs +24 -0
  484. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/anchored.sh +6 -0
  485. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/cd-only.sh +7 -0
  486. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/commented.sh +6 -0
  487. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/one-root.sh +4 -0
  488. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/probe.sh +8 -0
  489. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/rooted.sh +23 -0
  490. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/subshell.sh +6 -0
  491. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/two-line.sh +8 -0
  492. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/verdict.sh +7 -0
  493. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/args +4 -0
  494. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/expect.txt +6 -0
  495. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/scripts/gate-sdk-config.knobs +1 -0
  496. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/array-grep.sh +6 -0
  497. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/echo-max-count.sh +5 -0
  498. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/gate-tests/membership.test.sh +6 -0
  499. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/loop-head.sh +5 -0
  500. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/tests/relocated.test.sh +6 -0
  501. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/args +5 -0
  502. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/expect.txt +3 -0
  503. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/full-reader.sh +4 -0
  504. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/check-x/bad/violating.test.sh +6 -0
  505. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/clean.test.sh +8 -0
  506. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/loop-membership.sh +8 -0
  507. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/no-pipefail.sh +6 -0
  508. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/one-line-producer.sh +5 -0
  509. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/args +2 -0
  510. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/expect.txt +8 -0
  511. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/patterns.list +4 -0
  512. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/scripts/gate-sdk-config.knobs +4 -0
  513. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/empty-reason-verb +5 -0
  514. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/strings.ps1 +6 -0
  515. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/too-far-verb +5 -0
  516. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/undeclared-verb +3 -0
  517. package/payload/gate-sdk/gate-tests/check-portability-floor/good/args +2 -0
  518. package/payload/gate-sdk/gate-tests/check-portability-floor/good/expect.txt +1 -0
  519. package/payload/gate-sdk/gate-tests/check-portability-floor/good/patterns.list +5 -0
  520. package/payload/gate-sdk/gate-tests/check-portability-floor/good/scripts/gate-sdk-config.knobs +4 -0
  521. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/front.ps1 +7 -0
  522. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/plain-verb +5 -0
  523. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/portability-patterns.list +5 -0
  524. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/upgrade-verb +7 -0
  525. package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +154 -0
  526. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/demo-kit/checks/check-beta.gate +2 -0
  527. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/docs/roster.md +11 -0
  528. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/expect.txt +7 -0
  529. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-alpha.gate +2 -0
  530. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-gamma.gate +2 -0
  531. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-plain.gate +1 -0
  532. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gate-sdk-config.knobs +3 -0
  533. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gates.list +4 -0
  534. package/payload/gate-sdk/gate-tests/check-projection-roster/good/demo-kit/checks/check-beta.gate +2 -0
  535. package/payload/gate-sdk/gate-tests/check-projection-roster/good/docs/roster.md +16 -0
  536. package/payload/gate-sdk/gate-tests/check-projection-roster/good/expect.txt +1 -0
  537. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-alpha.gate +2 -0
  538. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-delta.gate +2 -0
  539. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-epsilon.gate +2 -0
  540. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-plain.gate +1 -0
  541. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gate-sdk-config.knobs +4 -0
  542. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gates.list +5 -0
  543. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.knobs +4 -0
  544. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +1 -1
  545. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.knobs +4 -0
  546. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -1
  547. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +4 -4
  548. package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +4 -4
  549. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +25 -20
  550. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +1 -1
  551. 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
  552. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +1 -1
  553. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +1 -1
  554. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +1 -1
  555. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +1 -1
  556. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.knobs +4 -0
  557. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +3 -1
  558. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/session-note.sh +6 -0
  559. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -1
  560. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/session-note.sh +6 -0
  561. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +1 -1
  562. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +2 -0
  563. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/drift-kit/templates/kpis.list +18 -0
  564. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +2 -0
  565. 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
  566. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +3 -1
  567. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/drift-kit/templates/kpis.list +17 -0
  568. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -1
  569. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.knobs +4 -0
  570. package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +5 -5
  571. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
  572. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +4 -0
  573. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/accounts.txt +1 -0
  574. package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
  575. package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +5 -1
  576. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +1 -0
  577. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/handles.txt +2 -0
  578. package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +44 -5
  579. package/payload/gate-sdk/gate-tests/emit-arm-shape.test.sh +95 -0
  580. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +10 -10
  581. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +10 -184
  582. package/payload/gate-sdk/gate-tests/reads-census.test.sh +96 -0
  583. package/payload/gate-sdk/gate-tests/run-arm-contract.test.sh +190 -0
  584. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +64 -41
  585. package/payload/gate-sdk/gate-tests/run-for-path.test.sh +2 -2
  586. package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +121 -16
  587. package/payload/gate-sdk/gate-tests/run-gates-linked-worktree.test.sh +136 -0
  588. package/payload/gate-sdk/lib/gate.sh +231 -484
  589. package/payload/gate-sdk/lib/test-hermetic.sh +39 -9
  590. package/payload/gate-sdk/templates/check-skeleton.sh +3 -2
  591. package/payload/gate-sdk/templates/gates-workflow.yml +23 -10
  592. package/payload/gate-sdk/templates/msg-patterns.list +14 -5
  593. package/payload/gate-sdk/templates/portability-patterns.list +56 -0
  594. package/payload/guard-kit/README.md +43 -47
  595. package/payload/guard-kit/checks/check-door-binding.gate +3 -0
  596. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/README.md +6 -0
  597. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/templates/alpha-config.knobs +3 -0
  598. package/payload/guard-kit/gate-tests/check-door-binding/bad/args +5 -0
  599. package/payload/guard-kit/gate-tests/check-door-binding/bad/beta-kit/lib/beta.sh +6 -0
  600. package/payload/guard-kit/gate-tests/check-door-binding/bad/expect.txt +5 -0
  601. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/gate-sdk-config.knobs +4 -0
  602. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/guard-config.knobs +3 -0
  603. package/payload/guard-kit/gate-tests/check-door-binding/bad/site/banner.md +8 -0
  604. package/payload/guard-kit/gate-tests/check-door-binding/bad/site/landing.md +11 -0
  605. package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/README.md +8 -0
  606. package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/templates/settings-hooks.json +20 -0
  607. package/payload/guard-kit/gate-tests/check-door-binding/good/args +7 -0
  608. package/payload/guard-kit/gate-tests/check-door-binding/good/beta-kit/lib/beta.sh +6 -0
  609. package/payload/guard-kit/gate-tests/check-door-binding/good/expect.txt +1 -0
  610. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/gate-sdk-config.knobs +4 -0
  611. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/guard-config.knobs +3 -0
  612. package/payload/guard-kit/gate-tests/check-door-binding/good/site/mirror.md +12 -0
  613. package/payload/guard-kit/gate-tests/check-door-binding/good/site/register.md +24 -0
  614. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +40 -27
  615. package/payload/guard-kit/gate-tests/consumer-rules.test.sh +189 -0
  616. package/payload/guard-kit/gate-tests/door-binding-corpus.test.sh +72 -0
  617. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +48 -23
  618. package/payload/guard-kit/gate-tests/guard-config-knobs.test.sh +170 -0
  619. package/payload/guard-kit/gate-tests/rewrite.test.sh +73 -0
  620. package/payload/guard-kit/gate-tests/scan-prompts.test.sh +174 -8
  621. package/payload/guard-kit/gate-tests/scratch-run.test.sh +149 -13
  622. package/payload/guard-kit/gate-tests/worktree-confinement.test.sh +169 -0
  623. package/payload/guard-kit/guard-tests/background-cases.tsv +14 -5
  624. package/payload/guard-kit/guard-tests/cases.tsv +360 -54
  625. package/payload/guard-kit/guard-tests/powershell-background-cases.tsv +29 -0
  626. package/payload/guard-kit/guard-tests/powershell-cases.tsv +81 -0
  627. package/payload/guard-kit/templates/close-triage.md +15 -62
  628. package/payload/guard-kit/templates/guard-config.knobs +26 -0
  629. package/payload/guard-kit/templates/settings-allow.json +15 -0
  630. package/payload/guard-kit/templates/settings-hooks.json +5 -5
  631. package/payload/lifecycle-kit/README.md +48 -76
  632. package/payload/lifecycle-kit/checks/check-audit-roster.gate +3 -0
  633. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +1 -1
  634. package/payload/lifecycle-kit/checks/check-dispatch-entry.gate +3 -0
  635. package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +1 -1
  636. package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +1 -1
  637. package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +1 -1
  638. package/payload/lifecycle-kit/checks/check-merge-attrs.gate +1 -1
  639. package/payload/lifecycle-kit/checks/check-scratch-citation.gate +1 -1
  640. package/payload/lifecycle-kit/checks/check-shim-restatement.gate +1 -1
  641. package/payload/lifecycle-kit/checks/check-skill-binding.gate +1 -1
  642. package/payload/lifecycle-kit/checks/check-stage-entry.gate +2 -2
  643. package/payload/lifecycle-kit/checks/check-stage-evidence.gate +1 -1
  644. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +2 -2
  645. package/payload/lifecycle-kit/checks/check-stamp-subject.gate +3 -0
  646. package/payload/lifecycle-kit/checks/check-survey-record.gate +2 -2
  647. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +93 -18
  648. package/payload/lifecycle-kit/gate-tests/boundary-stage-journal.test.sh +196 -0
  649. package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +214 -0
  650. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/args +2 -0
  651. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/expect.txt +6 -0
  652. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/roster.txt +34 -0
  653. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/args +2 -0
  654. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/expect.txt +1 -0
  655. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/roster.txt +22 -0
  656. package/payload/lifecycle-kit/gate-tests/check-audit-roster.test.sh +101 -0
  657. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.knobs +2 -0
  658. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/worktrees/inbox.md +5 -0
  659. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.knobs +2 -0
  660. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +21 -4
  661. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/args +6 -0
  662. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/expect.txt +1 -0
  663. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/head.txt +5 -0
  664. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/marker.txt +1 -0
  665. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/msg.txt +4 -0
  666. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/paths.txt +1 -0
  667. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/staged.txt +5 -0
  668. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/args +6 -0
  669. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/expect.txt +1 -0
  670. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/head.txt +5 -0
  671. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/marker.txt +1 -0
  672. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/msg.txt +4 -0
  673. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/paths.txt +2 -0
  674. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/staged.txt +6 -0
  675. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry.test.sh +60 -0
  676. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +1 -1
  677. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +1 -5
  678. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +1 -5
  679. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +1 -1
  680. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -2
  681. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.knobs +2 -0
  682. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.knobs +2 -0
  683. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/worktrees/queue.md +13 -0
  684. package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +1 -1
  685. package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +1 -1
  686. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +158 -11
  687. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +27 -2
  688. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +4 -1
  689. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +4 -1
  690. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/close.md +5 -0
  691. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +4 -1
  692. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +1 -1
  693. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -1
  694. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +4 -1
  695. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +4 -1
  696. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +4 -1
  697. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +4 -1
  698. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +4 -1
  699. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage.test.sh +73 -0
  700. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/args +4 -0
  701. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/expect.txt +1 -0
  702. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/head.txt +5 -0
  703. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/msg.txt +4 -0
  704. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/staged.txt +6 -0
  705. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/args +4 -0
  706. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/expect.txt +1 -0
  707. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/head.txt +5 -0
  708. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/msg.txt +4 -0
  709. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/staged.txt +7 -0
  710. package/payload/lifecycle-kit/gate-tests/check-stamp-subject.test.sh +59 -0
  711. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +3 -0
  712. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +24 -0
  713. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -1
  714. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +10 -0
  715. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +56 -5
  716. package/payload/lifecycle-kit/gate-tests/dispatch-marker.test.sh +152 -0
  717. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +23 -48
  718. package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +7 -5
  719. package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +119 -0
  720. package/payload/lifecycle-kit/gate-tests/preflight-valve.test.sh +170 -0
  721. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +5 -3
  722. package/payload/lifecycle-kit/gate-tests/ruling-staleness.test.sh +89 -0
  723. package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +66 -0
  724. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +12 -6
  725. package/payload/lifecycle-kit/templates/consult.md +9 -63
  726. package/payload/lifecycle-kit/templates/lead.md +143 -431
  727. package/payload/lifecycle-kit/templates/lifecycle-config.knobs +1 -0
  728. package/payload/lifecycle-kit/templates/release-sweep.md +6 -35
  729. package/payload/lifecycle-kit/templates/stages/align.md +14 -82
  730. package/payload/lifecycle-kit/templates/stages/build.md +30 -98
  731. package/payload/lifecycle-kit/templates/stages/close.md +21 -170
  732. package/payload/lifecycle-kit/templates/stages/scope.md +42 -167
  733. package/payload/lifecycle-kit/templates/stages/spec.md +31 -97
  734. package/payload/lifecycle-kit/templates/stages/validate.md +22 -59
  735. package/payload/lifecycle-kit/templates/upgrade.md +6 -37
  736. package/payload/queue-kit/README.md +33 -48
  737. package/payload/queue-kit/checks/check-deferred-board-tags.gate +3 -0
  738. package/payload/queue-kit/checks/check-queue-entry-budget.gate +2 -2
  739. package/payload/queue-kit/checks/check-queue-hygiene.gate +2 -2
  740. package/payload/queue-kit/checks/check-queue-prose-precondition.gate +1 -1
  741. package/payload/queue-kit/checks/check-queue-sections.gate +1 -1
  742. package/payload/queue-kit/checks/check-queue-slug-liveness.gate +2 -2
  743. package/payload/queue-kit/checks/check-queue-wrap.gate +2 -2
  744. package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -2
  745. package/payload/queue-kit/checks/check-tag-lead-line.gate +2 -2
  746. package/payload/queue-kit/checks/check-task-conservation.gate +1 -1
  747. package/payload/queue-kit/checks/check-task-names.gate +2 -2
  748. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/TASK-QUEUE.md +41 -0
  749. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/expect.txt +6 -0
  750. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/widget-kit/README.md +3 -0
  751. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/TASK-QUEUE.md +39 -0
  752. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/expect.txt +1 -0
  753. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/widget-kit/README.md +3 -0
  754. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +76 -31
  755. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +12 -4
  756. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.knobs +4 -0
  757. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +58 -19
  758. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +8 -4
  759. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.knobs +4 -0
  760. package/payload/queue-kit/gate-tests/check-queue-entry-budget.test.sh +124 -0
  761. package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +11 -1
  762. package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +2 -0
  763. package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +30 -11
  764. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +3 -1
  765. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/expect.txt +1 -0
  766. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/TASK-QUEUE.md +22 -6
  767. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +3 -1
  768. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +1 -1
  769. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +3 -1
  770. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.knobs +1 -0
  771. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +6 -2
  772. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +3 -3
  773. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/worktrees/page.md +4 -0
  774. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.knobs +1 -0
  775. package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +100 -0
  776. package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +3 -1
  777. package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +20 -6
  778. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +15 -8
  779. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.knobs +5 -0
  780. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +13 -6
  781. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.knobs +5 -0
  782. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +28 -7
  783. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +10 -2
  784. package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +30 -8
  785. package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -3
  786. package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +9 -0
  787. package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +20 -6
  788. package/payload/queue-kit/gate-tests/entry-history.test.sh +197 -0
  789. package/payload/queue-kit/gate-tests/queue-counts.test.sh +77 -73
  790. package/payload/queue-kit/gate-tests/queue-edges.test.sh +168 -87
  791. package/payload/queue-kit/gate-tests/queue-index.test.sh +30 -16
  792. package/payload/queue-kit/gate-tests/roadmap.test.sh +65 -58
  793. package/payload/queue-kit/templates/TASK-QUEUE.md +36 -23
  794. package/payload/queue-kit/templates/queue-config.knobs +1 -0
  795. package/payload/site-kit/README.md +26 -45
  796. package/payload/site-kit/checks/check-docs-cname-parity.gate +1 -1
  797. package/payload/site-kit/checks/check-docs-highlight-coverage.gate +4 -0
  798. package/payload/site-kit/checks/check-docs-liquid-parse.gate +3 -0
  799. package/payload/site-kit/checks/check-docs-render-fidelity.gate +3 -0
  800. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +1 -1
  801. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.knobs +2 -0
  802. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +2 -2
  803. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.knobs +2 -0
  804. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/docs/_layouts/default.html +11 -0
  805. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/expect.txt +4 -0
  806. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/highlight-tokens.list +7 -0
  807. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/site-config.knobs +3 -0
  808. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/docs/_layouts/default.html +14 -0
  809. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/expect.txt +1 -0
  810. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/highlight-tokens.list +7 -0
  811. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/site-config.knobs +1 -0
  812. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/_layouts/default.html +4 -0
  813. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/span.md +3 -0
  814. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +2 -0
  815. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/_layouts/default.html +4 -0
  816. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/front.md +7 -0
  817. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/loop.md +5 -0
  818. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/plain.html +1 -0
  819. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/raw.md +3 -0
  820. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/search.json +4 -0
  821. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/expect.txt +1 -0
  822. package/payload/site-kit/gate-tests/check-docs-liquid-parse-parser.test.sh +62 -0
  823. package/payload/site-kit/gate-tests/check-docs-render-fidelity-batch.test.sh +40 -45
  824. package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +7 -4
  825. package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +7 -4
  826. package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +7 -4
  827. package/payload/site-kit/templates/site-health.yml +67 -4
  828. package/profiles.list +4 -5
  829. package/lib/common/digest.sh +0 -18
  830. package/lib/common/lock.sh +0 -75
  831. package/lib/common/profile.sh +0 -91
  832. package/lib/common/recipe.sh +0 -106
  833. package/lib/diff.sh +0 -66
  834. package/lib/doctor.sh +0 -164
  835. package/lib/init.sh +0 -428
  836. package/lib/uninstall.sh +0 -214
  837. package/lib/update.sh +0 -34
  838. package/payload/canon-kit/SPEC.md +0 -2443
  839. package/payload/canon-kit/checks/check-surface-duplication.sh +0 -106
  840. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +0 -6
  841. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +0 -6
  842. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +0 -10
  843. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +0 -10
  844. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +0 -6
  845. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +0 -6
  846. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +0 -8
  847. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +0 -8
  848. package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +0 -4
  849. package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +0 -4
  850. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +0 -8
  851. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +0 -5
  852. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +0 -5
  853. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +0 -6
  854. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +0 -6
  855. package/payload/canon-kit/lib/spec.sh +0 -560
  856. package/payload/canon-kit/smoke/install.sh +0 -58
  857. package/payload/canon-kit/smoke/violation.sh +0 -22
  858. package/payload/canon-kit/templates/canon-config.sh +0 -2
  859. package/payload/context-kit/SPEC.md +0 -1134
  860. package/payload/context-kit/bin/always-loaded.sh +0 -70
  861. package/payload/context-kit/bin/env-probe.sh +0 -142
  862. package/payload/context-kit/bin/md-index.sh +0 -80
  863. package/payload/context-kit/bin/md-section.sh +0 -63
  864. package/payload/context-kit/bin/pub-index.sh +0 -90
  865. package/payload/context-kit/bin/run-index-tests.sh +0 -91
  866. package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +0 -4
  867. package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +0 -12
  868. package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +0 -12
  869. package/payload/context-kit/index-tests/expected/toolfloor.txt +0 -23
  870. package/payload/context-kit/index-tests/toolfloor-cases.sh +0 -49
  871. package/payload/context-kit/lib/context.sh +0 -56
  872. package/payload/context-kit/lib/pub-lang/rust.sh +0 -26
  873. package/payload/context-kit/lib/pub-lang/ts.sh +0 -32
  874. package/payload/context-kit/lib/toolfloor.sh +0 -58
  875. package/payload/context-kit/smoke/agents-md.sh +0 -139
  876. package/payload/context-kit/smoke/install.sh +0 -64
  877. package/payload/context-kit/smoke/violation.sh +0 -21
  878. package/payload/context-kit/templates/context-config.sh +0 -2
  879. package/payload/delegation-kit/SPEC.md +0 -2078
  880. package/payload/delegation-kit/bin/run-budget-guard-tests.sh +0 -88
  881. package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +0 -97
  882. package/payload/delegation-kit/bin/run-trend-tests.sh +0 -63
  883. package/payload/delegation-kit/bin/run-usage-tests.sh +0 -226
  884. package/payload/delegation-kit/bin/usage-trend.sh +0 -120
  885. package/payload/delegation-kit/bin/usage-verdict.sh +0 -144
  886. package/payload/delegation-kit/bin/wait-probe.sh +0 -184
  887. package/payload/delegation-kit/gate-tests/subagent-stop-liveness.test.sh +0 -99
  888. package/payload/delegation-kit/lib/delegation.sh +0 -84
  889. package/payload/delegation-kit/smoke/install.sh +0 -83
  890. package/payload/delegation-kit/smoke/violation.sh +0 -16
  891. package/payload/delegation-kit/templates/agent-budget-guard.sh +0 -18
  892. package/payload/delegation-kit/templates/agent-dispatch-guard.sh +0 -61
  893. package/payload/delegation-kit/templates/delegation-config.sh +0 -6
  894. package/payload/delegation-kit/templates/statusline-usage.sh +0 -101
  895. package/payload/delegation-kit/templates/subagent-stop-liveness.sh +0 -56
  896. package/payload/delegation-kit/templates/usage-poller.sh +0 -67
  897. package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +0 -20
  898. package/payload/doctrine-kit/SPEC.md +0 -385
  899. package/payload/doctrine-kit/bin/install-doctrine.sh +0 -194
  900. package/payload/doctrine-kit/bin/stage-rules.sh +0 -51
  901. package/payload/doctrine-kit/lib/doctrine.sh +0 -29
  902. package/payload/doctrine-kit/smoke/install.sh +0 -203
  903. package/payload/doctrine-kit/smoke/violation.sh +0 -13
  904. package/payload/drift-kit/SPEC.md +0 -1187
  905. package/payload/drift-kit/bin/drift-report.sh +0 -155
  906. package/payload/drift-kit/bin/kfric.sh +0 -61
  907. package/payload/drift-kit/bin/overhead-meter.sh +0 -106
  908. package/payload/drift-kit/bin/stage-economics.sh +0 -465
  909. package/payload/drift-kit/kpis/kpi-always-loaded.sh +0 -39
  910. package/payload/drift-kit/kpis/kpi-amendment-age.sh +0 -33
  911. package/payload/drift-kit/kpis/kpi-deferred-age.sh +0 -46
  912. package/payload/drift-kit/kpis/kpi-gate-backlog.sh +0 -52
  913. package/payload/drift-kit/kpis/kpi-gate-runtime.sh +0 -31
  914. package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +0 -42
  915. package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +0 -21
  916. package/payload/drift-kit/kpis/kpi-overhead.sh +0 -44
  917. package/payload/drift-kit/kpis/kpi-price-table-age.sh +0 -68
  918. package/payload/drift-kit/kpis/kpi-prompt-friction.sh +0 -38
  919. package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +0 -74
  920. package/payload/drift-kit/kpis/kpi-settings-local.sh +0 -21
  921. package/payload/drift-kit/kpis/kpi-task-split.sh +0 -43
  922. package/payload/drift-kit/lib/drift.sh +0 -43
  923. package/payload/drift-kit/smoke/install.sh +0 -537
  924. package/payload/drift-kit/smoke/overhead-fixture.jsonl +0 -4
  925. package/payload/drift-kit/templates/drift-config.sh +0 -2
  926. package/payload/evidence-kit/SPEC.md +0 -740
  927. package/payload/evidence-kit/bin/diff-baseline.sh +0 -34
  928. package/payload/evidence-kit/bin/run-validate.sh +0 -124
  929. package/payload/evidence-kit/checks/check-producer-liveness.sh +0 -75
  930. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +0 -7
  931. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +0 -7
  932. package/payload/evidence-kit/lib/evidence.sh +0 -193
  933. package/payload/evidence-kit/smoke/install.sh +0 -59
  934. package/payload/evidence-kit/smoke/violation.sh +0 -8
  935. package/payload/evidence-kit/templates/evidence-config.sh +0 -2
  936. package/payload/gate-sdk/SPEC.md +0 -10872
  937. package/payload/gate-sdk/bin/gen-pre-commit.sh +0 -297
  938. package/payload/gate-sdk/bin/install-hooks.sh +0 -60
  939. package/payload/gate-sdk/bin/port-blockers.sh +0 -473
  940. package/payload/gate-sdk/bin/run-consumer-smoke.sh +0 -239
  941. package/payload/gate-sdk/bin/run-gate-tests.sh +0 -179
  942. package/payload/gate-sdk/bin/upgrade-smoke.sh +0 -236
  943. package/payload/gate-sdk/checks/check-action-run-shell.sh +0 -223
  944. package/payload/gate-sdk/checks/check-crate-arms.sh +0 -62
  945. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +0 -450
  946. package/payload/gate-sdk/checks/check-install-disposition.sh +0 -93
  947. package/payload/gate-sdk/checks/check-shellcheck.sh +0 -57
  948. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +0 -2
  949. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +0 -2
  950. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +0 -4
  951. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +0 -14
  952. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +0 -14
  953. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +0 -2
  954. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +0 -2
  955. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +0 -6
  956. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +0 -3
  957. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +0 -6
  958. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +0 -3
  959. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +0 -9
  960. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +0 -3
  961. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +0 -6
  962. package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +0 -10
  963. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +0 -5
  964. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +0 -5
  965. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +0 -5
  966. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +0 -5
  967. package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +0 -211
  968. package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +0 -112
  969. package/payload/gate-sdk/lib/consumer-smoke.sh +0 -69
  970. package/payload/gate-sdk/lib/declaration.sh +0 -59
  971. package/payload/gate-sdk/lib/inject.sh +0 -80
  972. package/payload/gate-sdk/smoke/install.sh +0 -171
  973. package/payload/gate-sdk/smoke/violation.sh +0 -13
  974. package/payload/guard-kit/SPEC.md +0 -1415
  975. package/payload/guard-kit/bin/compare-settings-allow.sh +0 -115
  976. package/payload/guard-kit/bin/run-guard-tests.sh +0 -110
  977. package/payload/guard-kit/bin/scan-prompts.sh +0 -166
  978. package/payload/guard-kit/bin/scratch-run.sh +0 -34
  979. package/payload/guard-kit/gate-tests/guard-read-path.test.sh +0 -52
  980. package/payload/guard-kit/lib/guard.sh +0 -1014
  981. package/payload/guard-kit/smoke/install.sh +0 -26
  982. package/payload/guard-kit/templates/bash-guard.sh +0 -20
  983. package/payload/guard-kit/templates/escalation-guard.sh +0 -27
  984. package/payload/guard-kit/templates/guard-config.sh +0 -8
  985. package/payload/guard-kit/templates/wakeup-guard.sh +0 -20
  986. package/payload/lifecycle-kit/SPEC.md +0 -2884
  987. package/payload/lifecycle-kit/bin/cite-survey.sh +0 -81
  988. package/payload/lifecycle-kit/bin/enter-stage.sh +0 -380
  989. package/payload/lifecycle-kit/bin/file-gap.sh +0 -101
  990. package/payload/lifecycle-kit/bin/file-survey.sh +0 -69
  991. package/payload/lifecycle-kit/bin/install-lifecycle.sh +0 -36
  992. package/payload/lifecycle-kit/bin/session-id.sh +0 -75
  993. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +0 -4
  994. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +0 -4
  995. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +0 -4
  996. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +0 -4
  997. package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +0 -100
  998. package/payload/lifecycle-kit/lib/stages.sh +0 -194
  999. package/payload/lifecycle-kit/smoke/install.sh +0 -434
  1000. package/payload/lifecycle-kit/smoke/violation.sh +0 -8
  1001. package/payload/lifecycle-kit/templates/lifecycle-config.sh +0 -2
  1002. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +0 -29
  1003. package/payload/queue-kit/SPEC.md +0 -1436
  1004. package/payload/queue-kit/bin/lesson-sink.sh +0 -28
  1005. package/payload/queue-kit/bin/queue-counts.sh +0 -35
  1006. package/payload/queue-kit/bin/queue-edges.sh +0 -78
  1007. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +0 -6
  1008. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +0 -6
  1009. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +0 -3
  1010. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +0 -3
  1011. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +0 -6
  1012. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +0 -6
  1013. package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +0 -215
  1014. package/payload/queue-kit/lib/queue.sh +0 -129
  1015. package/payload/queue-kit/smoke/install.sh +0 -25
  1016. package/payload/queue-kit/smoke/violation.sh +0 -8
  1017. package/payload/queue-kit/templates/queue-config.sh +0 -2
  1018. package/payload/site-kit/SPEC.md +0 -601
  1019. package/payload/site-kit/checks/check-docs-render-fidelity.sh +0 -242
  1020. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.sh +0 -7
  1021. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.sh +0 -7
  1022. package/payload/site-kit/lib/site.sh +0 -43
  1023. package/payload/site-kit/smoke/install.sh +0 -34
  1024. package/payload/site-kit/smoke/violation.sh +0 -20
  1025. /package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/{check-ported.gate → check-stage-entry.gate} +0 -0
@@ -7,7 +7,7 @@
7
7
  # explicit CANON_KIT_MANIFEST_FILES set makes a sandbox 'widget-kit' the owning
8
8
  # kit deterministically, independent of this repo's real kit roster.
9
9
  #
10
- # Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
10
+ # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
11
11
  set -uo pipefail
12
12
  source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
13
13
 
@@ -18,13 +18,15 @@ trap 'rm -rf "$SANDBOX"' EXIT
18
18
  fails=0
19
19
  mkdir -p "$SANDBOX/widget-kit"
20
20
 
21
- cat >"$SANDBOX/cfg.sh" <<'EOF'
22
- CANON_KIT_MANIFEST_FILES=("widget-kit/SPEC.md" "widget-kit/README.md")
21
+ cat >"$SANDBOX/cfg.knobs" <<'EOF'
22
+ CANON_KIT_MANIFEST_FILES[] = widget-kit/SPEC.md
23
+ CANON_KIT_MANIFEST_FILES[] = widget-kit/README.md
23
24
  EOF
24
25
 
25
- check_case() { # $1=label $2=want-rc $3=want-substring
26
- local label="$1" want="$2" sub="$3" out rc
27
- out="$(cd "$SANDBOX" && gate_env GATE_SDK_KIT_DIRS="widget-kit" CANON_KIT_CONFIG_FILE="$SANDBOX/cfg.sh" \
26
+ check_case() { # $1=label $2=want-rc $3=want-substring [$4=extra knob line]
27
+ local label="$1" want="$2" sub="$3" extra="${4:-}" out rc
28
+ { cat "$SANDBOX/cfg.knobs"; [[ -n "$extra" ]] && echo "$extra"; } >"$SANDBOX/case.knobs"
29
+ out="$(cd "$SANDBOX" && gate_env GATE_SDK_KIT_DIRS="widget-kit" CANON_KIT_KNOB_FILE="$SANDBOX/case.knobs" \
28
30
  && gate_run check-knob-citation "$DIR/checks" 2>&1)"; rc=$?
29
31
  if [[ "$rc" -ne "$want" ]]; then
30
32
  echo " FAIL [$label]: want exit $want, got $rc -- $out"; fails=$((fails + 1)); return
@@ -63,9 +65,42 @@ The queue resolves through `${WIDGET_KIT_QUEUE_FILE:-TASK-QUEUE.md}` when unset.
63
65
  EOF
64
66
  check_case "expansion-name-citation-clean" 0 "KNOB-CITATION: clean"
65
67
 
68
+ # The reach: a token and the default stated after it sit 149 code points apart
69
+ # inside one sentence, beyond the default reach and inside a wider one; the
70
+ # sentence reach binds them until a terminator falls between; off reads no
71
+ # default shape while the '=' shape still fires.
72
+ filler="$(printf 'word %.0s' {1..25})"
73
+ printf '# widget-kit — README\n\n`WIDGET_KIT_STAGES_FILE` %sdefault `stages.list`.\n' "$filler" \
74
+ >"$SANDBOX/widget-kit/README.md"
75
+ check_case "reach-default-misses-149" 0 "KNOB-CITATION: clean"
76
+ check_case "reach-200-binds-149" 1 "WIDGET_KIT_STAGES_FILE stated with a default value" "CANON_KIT_KNOB_CITATION_REACH = 200"
77
+ check_case "reach-sentence-binds-within-a-sentence" 1 "WIDGET_KIT_STAGES_FILE stated with a default value" "CANON_KIT_KNOB_CITATION_REACH = sentence"
78
+ check_case "reach-off-reads-no-default" 0 "the default-marker leg is off" "CANON_KIT_KNOB_CITATION_REACH = off"
79
+ printf '# widget-kit — README\n\n`WIDGET_KIT_STAGES_FILE` word word. %sdefault `stages.list`.\n' "$filler" \
80
+ >"$SANDBOX/widget-kit/README.md"
81
+ check_case "reach-sentence-stops-at-a-terminator" 0 "KNOB-CITATION: clean" "CANON_KIT_KNOB_CITATION_REACH = sentence"
82
+ cat >"$SANDBOX/widget-kit/README.md" <<'EOF'
83
+ # widget-kit — README
84
+
85
+ Set `WIDGET_KIT_STAGES_FILE=stages.list` to override it.
86
+ EOF
87
+ check_case "reach-off-keeps-the-equals-shape" 1 "stated with an '=' value" "CANON_KIT_KNOB_CITATION_REACH = off"
88
+ check_case "reach-unknown-value-exits-2" 2 "CANON_KIT_KNOB_CITATION_REACH" "CANON_KIT_KNOB_CITATION_REACH = near"
89
+
90
+ # The literal span: the backticked value closes 34 bytes after the word, past
91
+ # the default span and inside a wider one.
92
+ cat >"$SANDBOX/widget-kit/README.md" <<'EOF'
93
+ # widget-kit — README
94
+
95
+ `WIDGET_KIT_STAGE_CAP` defaults, as the kit table has it, to `7`.
96
+ EOF
97
+ check_case "span-default-misses-34-bytes" 0 "KNOB-CITATION: clean"
98
+ check_case "span-40-binds-34-bytes" 1 "WIDGET_KIT_STAGE_CAP stated with a default value" "CANON_KIT_KNOB_CITATION_LITERAL_SPAN = 40"
99
+ check_case "span-unknown-value-exits-2" 2 "CANON_KIT_KNOB_CITATION_LITERAL_SPAN" "CANON_KIT_KNOB_CITATION_LITERAL_SPAN = wide"
100
+
66
101
  if [[ "$fails" -gt 0 ]]; then
67
102
  echo "check-knob-citation.test.sh: $fails case(s) failed"
68
103
  exit 1
69
104
  fi
70
- echo "check-knob-citation.test.sh: clean (own-SPEC exemption + owning-kit README fires + \${...} name-citation clean)"
105
+ echo "check-knob-citation.test.sh: clean (own-SPEC exemption + owning-kit README fires + \${...} name-citation clean + the reach at a count, sentence and off + the literal span)"
71
106
  exit 0
@@ -1,4 +1,3 @@
1
- # shellcheck shell=bash
2
1
  # Fixture config: make a sandbox 'widget-kit' the sole kit root (auto-sourced by
3
2
  # lib/gate.sh at cwd). See gate-sdk/SPEC.md §Layout and configuration.
4
- GATE_SDK_KIT_DIRS="widget-kit"
3
+ GATE_SDK_KIT_DIRS = widget-kit
@@ -1,5 +1,4 @@
1
- # shellcheck shell=bash
2
1
  # Fixture config: make a sandbox 'widget-kit' the sole kit root, so gate_kit_roots
3
- # resolves to this case dir (auto-sourced by lib/gate.sh at cwd) rather than the
2
+ # resolves to this case dir (read by the gate binary at cwd) rather than the
4
3
  # real repo. See gate-sdk/SPEC.md §Layout and configuration.
5
- GATE_SDK_KIT_DIRS="widget-kit"
4
+ GATE_SDK_KIT_DIRS = widget-kit
@@ -7,7 +7,7 @@
7
7
  # the SPEC states — are counted, not flagged. A GATE_SDK_KIT_DIRS override makes two
8
8
  # sandbox kits the whole roster, deterministic and independent of the real tree.
9
9
  #
10
- # Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
10
+ # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
11
11
  set -uo pipefail
12
12
  source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
13
13
 
@@ -20,11 +20,13 @@ mkdir -p "$SANDBOX/gate-sdk" "$SANDBOX/widget-kit/lib"
20
20
 
21
21
  run_gate() { # echoes gate output; roster is the two sandbox kits
22
22
  ( cd "$SANDBOX" && gate_env GATE_SDK_KIT_DIRS="gate-sdk widget-kit" GATE_SDK_ROOT="$DIR/../gate-sdk" \
23
+ CANON_KIT_KNOB_FILE="$SANDBOX/case.knobs" \
23
24
  && gate_run check-knob-default-coupling "$DIR/checks" 2>&1 )
24
25
  }
25
26
 
26
- check_case() { # $1=label $2=want-rc $3=want-substring
27
+ check_case() { # $1=label $2=want-rc $3=want-substring [$4=knob line]
27
28
  local label="$1" want="$2" sub="$3" out rc
29
+ printf '%s\n' "${4:-}" >"$SANDBOX/case.knobs"
28
30
  out="$(run_gate)"; rc=$?
29
31
  if [[ "$rc" -ne "$want" ]]; then
30
32
  echo " FAIL [$label]: want exit $want, got $rc -- $out"; fails=$((fails + 1)); return
@@ -37,11 +39,13 @@ check_case() { # $1=label $2=want-rc $3=want-substring
37
39
 
38
40
  # gate-sdk owns GATE_SDK_QUEUE_FILE and states its default; widget-kit source cites
39
41
  # it (cross-kit) and defines its own knobs the three skip classes cover. All clean.
40
- cat >"$SANDBOX/gate-sdk/SPEC.md" <<'EOF'
41
- # gate-sdk — SPEC
42
-
43
- - `GATE_SDK_QUEUE_FILE` — default `TASK-QUEUE.md`.
44
- EOF
42
+ # gate-sdk's table is static, so its roster couples every literal scalar default to
43
+ # the sandbox SPEC, which states each one.
44
+ { printf '# gate-sdk — SPEC\n\n'
45
+ gate_arm_run --emit-knob-roster | awk -F'\t' '$1 ~ /^GATE_SDK_/ && $2 == "scalar" && $3 != "" && $3 !~ /\$\{/ { printf "- `%s` — default `%s`.\n", $1, $3 }'
46
+ } >"$SANDBOX/gate-sdk/SPEC.md"
47
+ grep -qF -- '- `GATE_SDK_QUEUE_FILE` — default `TASK-QUEUE.md`.' "$SANDBOX/gate-sdk/SPEC.md" \
48
+ || { echo " FAIL [roster-spec]: the roster rendered no GATE_SDK_QUEUE_FILE default"; fails=$((fails + 1)); }
45
49
  cat >"$SANDBOX/widget-kit/SPEC.md" <<'EOF'
46
50
  # widget-kit — SPEC
47
51
 
@@ -65,9 +69,34 @@ cat >"$SANDBOX/widget-kit/lib/widget.sh" <<'EOF'
65
69
  EOF
66
70
  check_case "absent-default-fires" 1 "stated nowhere in the owning SPEC"
67
71
 
72
+ # The window: the SPEC states the default 454 code points past the knob's name,
73
+ # outside the default window and inside a wider one.
74
+ { printf '# widget-kit — SPEC\n\n- `WIDGET_KIT_FAR` — '
75
+ printf 'word %.0s' {1..90}
76
+ printf 'default `far.md`.\n'
77
+ } >"$SANDBOX/widget-kit/SPEC.md"
78
+ cat >"$SANDBOX/widget-kit/lib/widget.sh" <<'EOF'
79
+ #!/usr/bin/env bash
80
+ : "${WIDGET_KIT_FAR:-far.md}"
81
+ EOF
82
+ check_case "window-default-misses-454" 1 "WIDGET_KIT_FAR — source default \`far.md\` is stated nowhere"
83
+ check_case "window-600-reaches-454" 0 "KNOB-DEFAULT-COUPLING: clean" "CANON_KIT_DEFAULT_COUPLING_WINDOW = 600"
84
+
85
+ # off: the SPEC comparison is not run, so a SPEC stating another default is
86
+ # clean, while two disagreeing source sites still red.
87
+ printf '# widget-kit — SPEC\n\n- `WIDGET_KIT_FAR` — default `other.md`.\n' >"$SANDBOX/widget-kit/SPEC.md"
88
+ check_case "window-off-skips-the-spec" 0 "the SPEC comparison was not run" "CANON_KIT_DEFAULT_COUPLING_WINDOW = off"
89
+ cat >"$SANDBOX/widget-kit/lib/widget.sh" <<'EOF'
90
+ #!/usr/bin/env bash
91
+ : "${WIDGET_KIT_FAR:-far.md}"
92
+ : "${WIDGET_KIT_FAR:-near.md}"
93
+ EOF
94
+ check_case "window-off-keeps-self-agreement" 1 "disagrees with" "CANON_KIT_DEFAULT_COUPLING_WINDOW = off"
95
+ check_case "window-unknown-value-exits-2" 2 "CANON_KIT_DEFAULT_COUPLING_WINDOW" "CANON_KIT_DEFAULT_COUPLING_WINDOW = paragraph"
96
+
68
97
  if [[ "$fails" -gt 0 ]]; then
69
98
  echo "check-knob-default-coupling.test.sh: $fails case(s) failed"
70
99
  exit 1
71
100
  fi
72
- echo "check-knob-default-coupling.test.sh: clean (cross-kit owning SPEC + descriptive/array/empty/deferral skips + absent-default fires)"
101
+ echo "check-knob-default-coupling.test.sh: clean (cross-kit owning SPEC + descriptive/array/empty/deferral skips + absent-default fires + the window at a count and off)"
73
102
  exit 0
@@ -13,3 +13,6 @@ the next append, as does the battery's gates 1-42.
13
13
 
14
14
  A prose wrap hides the same pin from a per-line scan: this suite ships two
15
15
  governed gates today, its cardinal and noun straddling the line break.
16
+
17
+ Above the old eleven-word ceiling the single-token cardinals reach too: the
18
+ suite carries seventeen gates, and the roster names ninety rules.
@@ -18,6 +18,12 @@ Proportions restate no total on either side, numerator or denominator:
18
18
  - six of the gates are meta-gates
19
19
  - nine out of ten kits vendor the runner unchanged
20
20
 
21
+ A partitive survives a prose wrap: the defect appeared in 57 of
22
+ the 96 checks counted that day.
23
+
24
+ Mid-paragraph, the registry holds 7 gates. <!-- measured: gate-total=7 --> The
25
+ inline marker discharges the total where it stands.
26
+
21
27
  A modifier wedge wider than the window reads as prose: nine plainly generic scanning rules.
22
28
 
23
29
  A cardinal named in `six gates` inline code is a meta-reference, and a fenced
@@ -39,3 +45,7 @@ The pilot shipped with six gates before the registry existed.
39
45
  <!-- measured: gate-total=7 -->
40
46
  The registry holds 7 gates today — the sanctioned discharge, because the
41
47
  objection the ban encodes is answered by an oracle rather than suppressed.
48
+
49
+ The boundary is the notation's, not a list's end: a hyphenated compound is
50
+ multi-token, so twenty-one gates stays outside a single-token grammar's reach
51
+ while its digit spelling does not. That limit is stated rather than closed.
@@ -13,7 +13,7 @@
13
13
  # beyond the one pair, and "the join never double-reports a same-line hit" is a
14
14
  # negative — expect.txt asserts presence only, so absence has no pair spelling.
15
15
  #
16
- # Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
16
+ # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
17
17
  set -uo pipefail
18
18
  source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
19
19
 
@@ -23,9 +23,9 @@ trap 'rm -rf "$SANDBOX"' EXIT
23
23
 
24
24
  fails=0
25
25
 
26
- cat >"$SANDBOX/cfg.sh" <<'EOF'
27
- CANON_KIT_COUNT_COLLECTIONS=("contracts")
28
- CANON_KIT_COUNT_ALLOWED_PHRASES=("the four contracts")
26
+ cat >"$SANDBOX/cfg.knobs" <<'EOF'
27
+ CANON_KIT_COUNT_COLLECTIONS[] = contracts
28
+ CANON_KIT_COUNT_ALLOWED_PHRASES[] = the four contracts
29
29
  EOF
30
30
 
31
31
  cat >"$SANDBOX/SPEC.md" <<'EOF'
@@ -52,9 +52,9 @@ check_case() { # $1=label $2=want-rc $3=want-substring $4..=env assignments
52
52
  # Consumer governs "contracts": the growing "six contracts" total trips, while
53
53
  # the allowlisted fixed set "the four contracts" is exempt — so the run fails
54
54
  # on the growing total and its message never names the allowlisted phrase.
55
- check_case "governed-noun-trips" 1 "six contracts" CANON_KIT_CONFIG_FILE="$SANDBOX/cfg.sh"
55
+ check_case "governed-noun-trips" 1 "six contracts" CANON_KIT_KNOB_FILE="$SANDBOX/cfg.knobs"
56
56
 
57
- out="$(cd "$SANDBOX" && gate_env CANON_KIT_CONFIG_FILE="$SANDBOX/cfg.sh" \
57
+ out="$(cd "$SANDBOX" && gate_env CANON_KIT_KNOB_FILE="$SANDBOX/cfg.knobs" \
58
58
  && gate_run check-manifest-count "$DIR/checks" 2>&1)"
59
59
  if grep -qF -- "four contracts" <<<"$out"; then
60
60
  echo " FAIL [allowlist-exempt]: allowlisted 'the four contracts' was flagged:"
@@ -18,7 +18,7 @@
18
18
  # check-spec-dod-singleton.test.sh carries the same prune's canonical-spec
19
19
  # half; these cases are its mirror on the README finder.
20
20
  #
21
- # Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
21
+ # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
22
22
  set -uo pipefail
23
23
  source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
24
24
 
@@ -0,0 +1,13 @@
1
+ # A wrapped document
2
+
3
+ This paragraph was hard-wrapped by its author,
4
+ so its second line continues the first.
5
+
6
+ - A list item whose text
7
+ runs onto a second line.
8
+
9
+ > A quoted paragraph that
10
+ > wraps inside the quote.
11
+
12
+ A paragraph whose next line looks like a declaration,
13
+ note: but this tree declares no lead, so the line is an ordinary soft break.
@@ -0,0 +1,4 @@
1
+ doc.md:4: so its second line continues the first.
2
+ doc.md:7: runs onto a second line.
3
+ doc.md:10: wraps inside the quote.
4
+ doc.md:13: note: but this tree declares no lead, so
@@ -0,0 +1,2 @@
1
+ # spec: canon-kit/SPEC.md §check-md-unwrapped — the fixture opts its markdown into the governed set
2
+ CANON_KIT_UNWRAP_GLOBS[] = *.md
@@ -0,0 +1,45 @@
1
+ ---
2
+ title: front matter is outside the grammar
3
+ tags: a
4
+ ---
5
+
6
+ # Every block start, each on its own line
7
+
8
+ A paragraph on one line, however long it runs, is what the gate asks for.
9
+ ## An ATX heading directly under a paragraph
10
+ A paragraph line.
11
+ ```bash
12
+ echo "a fence's interior"
13
+ echo "is outside the grammar"
14
+ ```
15
+ A paragraph line.
16
+ | a table | row |
17
+ | --- | --- |
18
+ A paragraph line.
19
+ ---
20
+ A paragraph line.
21
+ - a list item
22
+ - a nested item
23
+ 1. an ordered item
24
+ 2) another
25
+
26
+ A paragraph line.
27
+ > # a quote whose content opens a block
28
+ A paragraph line.
29
+ <!--
30
+ a multi-line HTML comment
31
+ is outside the grammar
32
+ -->
33
+ A paragraph line.
34
+ [label]: https://example.com
35
+ A line ending in a hard break
36
+ continues deliberately.
37
+
38
+ So does a backslash\
39
+ break.
40
+
41
+ indented code
42
+ stays as it is
43
+
44
+ A paragraph line.
45
+ note: a declared lead opens its own block, so the line above never joins it
@@ -0,0 +1 @@
1
+ MD-UNWRAPPED: clean (1 file(s)
@@ -0,0 +1,4 @@
1
+ # spec: canon-kit/SPEC.md §check-md-unwrapped — the fixture opts its markdown into the governed set
2
+ CANON_KIT_UNWRAP_GLOBS[] = *.md
3
+ # spec: canon-kit/SPEC.md §check-md-unwrapped — the declared lead the good tree's doc opens a block with
4
+ CANON_KIT_UNWRAP_DECLARATION_LEADS[] = note:
@@ -10,3 +10,6 @@ emitter now returns.
10
10
  <!-- measured: gate-total=7 -->
11
11
  The registry holds a handful of gates today, so the marker's own cardinal
12
12
  appears nowhere in the sentence it binds.
13
+
14
+ The registry holds 7 gates. It grew this cycle. <!-- measured: gate-total=7 -->
15
+ The inline marker binds only the sentence it follows, which carries no cardinal.
@@ -1,3 +1,4 @@
1
1
  key 'gate-total' is marked '6' but the oracle now reports '7'
2
2
  key 'supported-hosts' is marked 'linux' but the oracle now reports 'linux,macos'
3
3
  appears nowhere in the claim it binds
4
+ SPEC.md:14 the marker's cardinal '7' appears nowhere in the claim it binds
@@ -0,0 +1,4 @@
1
+ # spec: canon-kit/SPEC.md §check-measured-claim — fixture consumer config: the good pair's oracle unchanged, so the bad case differs only in what the prose claims
2
+ CANON_KIT_MEASURED_CLAIMS_CMD[] = printf
3
+ CANON_KIT_MEASURED_CLAIMS_CMD[] = gate-total\t7\nsupported-hosts\tlinux,macos\nkit-total\t12\n
4
+ CANON_KIT_MEASURED_SURFACE_GLOBS[] = *.md
@@ -8,6 +8,14 @@ the emitter that recomputes it rather than leaving it transcribed.
8
8
  The published artifacts cover linux and macos — an extent claim carrying no
9
9
  cardinal at all, so arms A and B do the whole job and arm C never applies.
10
10
 
11
+ <!-- measured: gate-total=7 -->
12
+ The registry holds 7 gates today. The kits number
13
+ 12 in all. <!-- measured: kit-total=12 --> The full-line marker binds the first
14
+ sentence and the inline one the second, so neither claim is ambiguous.
15
+
16
+ The grammar is `<!-- measured: never-emitted-either=3 -->`, and a backticked
17
+ marker is a specimen the gate never resolves.
18
+
11
19
  An unmarked sentence is not this gate's business: a claim nobody marks is
12
20
  uncaught here, which is the coverage limit stated rather than hidden.
13
21
 
@@ -0,0 +1,4 @@
1
+ # spec: canon-kit/SPEC.md §check-measured-claim — fixture consumer config: a two-key oracle (one cardinal, one extent) and a surface, so the pair exercises the gate the empty defaults would clean-skip
2
+ CANON_KIT_MEASURED_CLAIMS_CMD[] = printf
3
+ CANON_KIT_MEASURED_CLAIMS_CMD[] = gate-total\t7\nsupported-hosts\tlinux,macos\nkit-total\t12\n
4
+ CANON_KIT_MEASURED_SURFACE_GLOBS[] = **/*.md
@@ -0,0 +1,12 @@
1
+ # consumer — SPEC
2
+
3
+ <!-- measured: gate-total=6 -->
4
+ The registry holds 6 gates today, a total the emitter no longer reports.
5
+
6
+ <!-- measured: supported-hosts=linux -->
7
+ The published artifacts cover linux, an extent claim narrower than the set the
8
+ emitter now returns.
9
+
10
+ <!-- measured: gate-total=7 -->
11
+ The registry holds a handful of gates today, so the marker's own cardinal
12
+ appears nowhere in the sentence it binds.
@@ -4,9 +4,9 @@
4
4
  # read-set unit test asserts no member exits 2 on its own fixtures, so arm B (an
5
5
  # unemitted key), the ambiguity fail-close and a malformed marker have no pair
6
6
  # spelling. The inactive-by-default posture is here for the same reason: it needs
7
- # a config the pair's own canon-config.sh cannot also be.
7
+ # a config the pair's own canon-config.knobs cannot also be.
8
8
  #
9
- # Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
9
+ # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
10
10
  set -uo pipefail
11
11
  source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
12
12
 
@@ -16,19 +16,24 @@ trap 'rm -rf "$SANDBOX"' EXIT
16
16
 
17
17
  fails=0
18
18
 
19
- cat >"$SANDBOX/cfg.sh" <<'EOF'
20
- CANON_KIT_MEASURED_CLAIMS_CMD='printf "gate-total\t7\n"'
21
- CANON_KIT_MEASURED_SURFACE_GLOBS=("*.md")
19
+ cat >"$SANDBOX/cfg.knobs" <<'EOF'
20
+ CANON_KIT_MEASURED_CLAIMS_CMD[] = printf
21
+ CANON_KIT_MEASURED_CLAIMS_CMD[] = gate-total\t7\n
22
+ CANON_KIT_MEASURED_SURFACE_GLOBS[] = *.md
22
23
  EOF
23
24
 
24
- cat >"$SANDBOX/off.sh" <<'EOF'
25
- CANON_KIT_MEASURED_SURFACE_GLOBS=("*.md")
25
+ cat >"$SANDBOX/off.knobs" <<'EOF'
26
+ CANON_KIT_MEASURED_SURFACE_GLOBS[] = *.md
26
27
  EOF
27
28
 
29
+ for span in sentence off bogus; do
30
+ { cat "$SANDBOX/cfg.knobs"; echo "CANON_KIT_MEASURED_SPAN = $span"; } >"$SANDBOX/span-$span.knobs"
31
+ done
32
+
28
33
  check_case() { # $1=label $2=want-rc $3=want-substring $4=config
29
34
  local label="$1" want="$2" sub="$3" cfg="$4"
30
35
  local out rc
31
- out="$(cd "$SANDBOX" && gate_env CANON_KIT_CONFIG_FILE="$SANDBOX/$cfg" \
36
+ out="$(cd "$SANDBOX" && gate_env CANON_KIT_KNOB_FILE="$SANDBOX/$cfg" \
32
37
  && gate_run check-measured-claim "$DIR/checks" 2>&1)"; rc=$?
33
38
  if [[ "$rc" -ne "$want" ]]; then
34
39
  echo " FAIL [$label]: want exit $want, got $rc -- $out"; fails=$((fails + 1)); return
@@ -48,7 +53,7 @@ cat >"$SANDBOX/SPEC.md" <<'EOF'
48
53
  <!-- measured: gate-tally=7 -->
49
54
  The registry holds 7 gates today.
50
55
  EOF
51
- check_case "unknown-key-fails-closed" 2 "key 'gate-tally' is absent from the emitter's roster" cfg.sh
56
+ check_case "unknown-key-fails-closed" 2 "key 'gate-tally' is absent from the emitter's roster" cfg.knobs
52
57
 
53
58
  # The authoring contract arm C prices: a bound claim carrying more than one
54
59
  # distinct cardinal is ambiguous, and the gate refuses to guess which one the
@@ -59,7 +64,7 @@ cat >"$SANDBOX/SPEC.md" <<'EOF'
59
64
  <!-- measured: gate-total=7 -->
60
65
  The registry holds 7 gates across 3 kits today.
61
66
  EOF
62
- check_case "ambiguous-claim-fails-closed" 2 "2 distinct cardinals" cfg.sh
67
+ check_case "ambiguous-claim-fails-closed" 2 "2 distinct cardinals" cfg.knobs
63
68
 
64
69
  # A marker that does not parse is an authoring error, never a site to skip: a
65
70
  # skipped malformed marker is an unchecked claim that looks checked.
@@ -69,7 +74,7 @@ cat >"$SANDBOX/SPEC.md" <<'EOF'
69
74
  <!-- measured: gate-total -->
70
75
  The registry holds 7 gates today.
71
76
  EOF
72
- check_case "malformed-marker-fails-closed" 2 "marker does not parse" cfg.sh
77
+ check_case "malformed-marker-fails-closed" 2 "marker does not parse" cfg.knobs
73
78
 
74
79
  # Inactive by default: with no oracle command the gate has nothing to check a
75
80
  # marker against, and reports clean rather than reddening every marker in a
@@ -80,11 +85,25 @@ cat >"$SANDBOX/SPEC.md" <<'EOF'
80
85
  <!-- measured: gate-total=7 -->
81
86
  The registry holds 7 gates today.
82
87
  EOF
83
- check_case "no-oracle-is-clean" 0 "MEASURED-CLAIM: clean" off.sh
88
+ check_case "no-oracle-is-clean" 0 "MEASURED-CLAIM: clean" off.knobs
89
+
90
+ # The full-line span: the marker's cardinal sits in the paragraph's second
91
+ # sentence, which the default paragraph span reaches, the sentence span does
92
+ # not, and the off span never reads.
93
+ cat >"$SANDBOX/SPEC.md" <<'EOF'
94
+ # consumer — SPEC
95
+
96
+ <!-- measured: gate-total=7 -->
97
+ The registry is sized by its table. It holds 7 gates today.
98
+ EOF
99
+ check_case "span-paragraph-reaches-the-second-sentence" 0 "MEASURED-CLAIM: clean" cfg.knobs
100
+ check_case "span-sentence-binds-the-first-sentence" 1 "SPEC.md:3 the marker's cardinal '7' appears nowhere" span-sentence.knobs
101
+ check_case "span-off-skips-arm-c" 0 "MEASURED-CLAIM: clean" span-off.knobs
102
+ check_case "span-unknown-value-exits-2" 2 "CANON_KIT_MEASURED_SPAN must be paragraph|sentence|off" span-bogus.knobs
84
103
 
85
104
  if [[ "$fails" -gt 0 ]]; then
86
105
  echo "check-measured-claim.test.sh: $fails case(s) failed"
87
106
  exit 1
88
107
  fi
89
- echo "check-measured-claim.test.sh: clean (unknown key + ambiguous claim + malformed marker all fail closed; an unset oracle is inactive)"
108
+ echo "check-measured-claim.test.sh: clean (unknown key + ambiguous claim + malformed marker all fail closed; an unset oracle is inactive; the full-line span binds the paragraph, the first sentence or nothing, and refuses any other value)"
90
109
  exit 0
@@ -0,0 +1,6 @@
1
+ # spec: canon-kit/SPEC.md §check-payload-claim — fixture consumer config: two disclosure classes and the published-notes valve the pair proves is load-bearing
2
+ CANON_KIT_MANIFEST_FILES[] = *.md
3
+ CANON_KIT_MANIFEST_FILES[] = posts/*.md
4
+ CANON_KIT_PAYLOAD_CLAIMS_CMD[] = bash
5
+ CANON_KIT_PAYLOAD_CLAIMS_CMD[] = scripts/payload-claims.sh
6
+ CANON_KIT_PAYLOAD_CLAIM_EXCLUDE[] = posts/*
@@ -0,0 +1,6 @@
1
+ # spec: canon-kit/SPEC.md §check-payload-claim — fixture consumer config: two disclosure classes and the published-notes valve the pair proves is load-bearing
2
+ CANON_KIT_MANIFEST_FILES[] = *.md
3
+ CANON_KIT_MANIFEST_FILES[] = posts/*.md
4
+ CANON_KIT_PAYLOAD_CLAIMS_CMD[] = bash
5
+ CANON_KIT_PAYLOAD_CLAIMS_CMD[] = scripts/payload-claims.sh
6
+ CANON_KIT_PAYLOAD_CLAIM_EXCLUDE[] = posts/*
@@ -0,0 +1,9 @@
1
+ # CLAUDE.md — an agent file with an unbounded paragraph section
2
+
3
+ ## Conventions
4
+
5
+ - **One owner per fact** — point, never restate.
6
+
7
+ ## Housekeeping
8
+
9
+ The scratch directory is disposable, and the scope boundary wipes it at every iteration start. The measurement directory persists across iterations and is never committed to the tree. The workflow directory holds tracked projections beside gitignored capture, and each file there names its contract in a header line. The local-only files carry the machine profile, the private brief and the operations notes, and none of them is ever tracked. The reservation placeholder exists to hold a published name, so nobody develops inside it or adds code to it. The native crate is the gate binary's source and is not a kit, since it ships no checks and no smoke directory of its own. Its commit-time obligation is a build plus the battery, and neither one discharges the other. The governed repository metadata is tracked and gated like any document in the tree. The public site is served from its own directory on the default branch, and a load-triggered page owns its chrome and its authoring rules. The installer directory is the published activation surface, and its payload is never committed. A generated projection is never edited by hand, because its freshness gate prints the command that rewrites it. A session that re-derives a fact no document owns stamps that fact in the moment it happens.
@@ -0,0 +1,11 @@
1
+ # widget-toolkit — a spec over its bounds
2
+
3
+ ## The scan
4
+
5
+ The scan reads one file per kit root: it stops at the first unreadable file; it exits 2 on that file; it names the file and the reason; it never retries, because a retry would hide a transient fault the next run cannot reproduce, and the caller reads the exit status alone.
6
+
7
+ ## Knobs
8
+
9
+ - `WIDGET_ROOT` names the start of the walk, and per the provenance seam it never lands as a kit literal.
10
+ - `WIDGET_DEPTH` bounds the descent, and per the provenance seam it never lands as a kit literal.
11
+ - `WIDGET_PRUNE` lists skipped directories, and per the provenance seam it never lands as a kit literal.
@@ -0,0 +1,3 @@
1
+ CLAUDE.md:9: [B] unit of 215 words > 200 (§Housekeeping)
2
+ SPEC.md:5: [A] sentence of 52 words > 45 (§The scan)
3
+ SPEC.md:9: [C] a phrase of 6 or more words recurs in 3 or more units: "and per the provenance seam it never lands as a kit literal" (§Knobs)
@@ -0,0 +1,3 @@
1
+ # spec: canon-kit/SPEC.md §check-prose-bounds — the fixture governs one spec and one agent file at the bundled bounds, with no ceiling
2
+ CANON_KIT_PROSE_BOUND_GLOBS[] = SPEC.md
3
+ CANON_KIT_PROSE_BOUND_GLOBS[] = CLAUDE.md
@@ -0,0 +1,10 @@
1
+ # CLAUDE.md — a bounded agent file
2
+
3
+ ## Conventions
4
+
5
+ - **One owner per fact** — point, never restate.
6
+ - **Run the gate** — never emulate it.
7
+
8
+ ## Housekeeping
9
+
10
+ The scratch directory is disposable and the scope boundary wipes it. The measurement directory persists and is never committed.
@@ -0,0 +1,27 @@
1
+ # widget-toolkit — a bounded spec
2
+
3
+ ## The scan
4
+
5
+ The scan reads one file per kit root. It stops at the first unreadable file and exits 2.
6
+
7
+ A short roster follows, each bullet stating its own rule:
8
+
9
+ - `WIDGET_ROOT` names the tree the scan starts from.
10
+ - `WIDGET_DEPTH` bounds how far below it the walk descends.
11
+ - `WIDGET_PRUNE` lists the directories the walk never enters.
12
+
13
+ Every knob is read by this gate alone, which the lead-in above says once for the whole roster.
14
+
15
+ <!-- prose-bound-exempt: the fixture's valved keep, one sentence deliberately left long to prove the valve suppresses it at the site -->
16
+ This sentence is deliberately long, because it demonstrates that a valve on the line above suppresses the sentence-length finding at this one site, and so it keeps running well past the bound of forty-five words that the gate applies to every other sentence in the governed corpus, without any finding at all.
17
+
18
+ | a table row may run as long as it likes, since tables are held out of every assertion the gate makes over its governed prose corpus, and this one proves it | x |
19
+ |---|---|
20
+
21
+ ```text
22
+ A fenced block is shown grammar, so this long line is never read as a sentence even though it runs well past the bound of forty-five words that the gate applies to every other sentence in the corpus it governs.
23
+ ```
24
+
25
+ <!-- roster:begin -->
26
+ A generated region is byte-gated elsewhere, so this long line is never read as a sentence even though it runs well past the bound of forty-five words that the gate applies to every other sentence in its corpus.
27
+ <!-- roster:end -->
@@ -0,0 +1 @@
1
+ PROSE-BOUNDS: clean (2 governed file(s); no sentence, unit or repeated phrase over its bound)
@@ -0,0 +1,3 @@
1
+ # spec: canon-kit/SPEC.md §check-prose-bounds — the fixture governs one spec and one agent file at the bundled bounds
2
+ CANON_KIT_PROSE_BOUND_GLOBS[] = SPEC.md
3
+ CANON_KIT_PROSE_BOUND_GLOBS[] = CLAUDE.md