checkwright 0.30.0 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (496) hide show
  1. package/README.md +8 -7
  2. package/bin/checkwright.ps1 +3 -3
  3. package/package.json +10 -3
  4. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  5. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
  6. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  7. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  8. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  9. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  10. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
  11. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  12. package/payload/artifact/targets.list +5 -5
  13. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  14. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
  15. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  16. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  17. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  18. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  19. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
  20. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  21. package/payload/canon-kit/README.md +9 -5
  22. package/payload/canon-kit/checks/check-amendment-queue.gate +1 -1
  23. package/payload/canon-kit/checks/check-comment-tier.gate +2 -2
  24. package/payload/canon-kit/checks/check-delta-agreement.gate +4 -0
  25. package/payload/canon-kit/checks/check-deprecation-task.gate +1 -1
  26. package/payload/canon-kit/checks/check-docs-page-length.gate +4 -0
  27. package/payload/canon-kit/checks/check-docs-page-repeat.gate +2 -2
  28. package/payload/canon-kit/checks/check-fence-command-head.gate +1 -1
  29. package/payload/canon-kit/checks/check-fence-paste-unit.gate +4 -0
  30. package/payload/canon-kit/checks/check-knob-default-coupling.gate +1 -1
  31. package/payload/canon-kit/checks/check-manifest-count.gate +3 -3
  32. package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
  33. package/payload/canon-kit/checks/check-pendency-contradiction.gate +3 -0
  34. package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
  35. package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
  36. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
  37. package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
  38. package/payload/canon-kit/checks/check-spec-pointer.gate +1 -1
  39. package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
  40. package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +6 -0
  41. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-widget.md +7 -0
  42. package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +7 -0
  43. package/payload/canon-kit/gate-tests/check-citation-link/bad/expect.txt +1 -0
  44. package/payload/canon-kit/gate-tests/check-citation-link/bad/site/unclosed.md +4 -0
  45. package/payload/canon-kit/gate-tests/check-citation-link/good/site/page.md +10 -0
  46. package/payload/canon-kit/gate-tests/check-comment-tier/bad/scripts/canon-config.knobs +4 -0
  47. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +2 -0
  48. package/payload/canon-kit/gate-tests/check-comment-tier/good/scripts/canon-config.knobs +4 -0
  49. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +9 -1
  50. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/expect.txt +3 -0
  51. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/scripts/canon-config.knobs +14 -0
  52. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/base/notes/spec.md +9 -0
  53. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/changes/one/deltas/notes/spec.md +7 -0
  54. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/changes/two/deltas/cli/spec.md +3 -0
  55. package/payload/canon-kit/gate-tests/check-delta-agreement/good/expect.txt +1 -0
  56. package/payload/canon-kit/gate-tests/check-delta-agreement/good/scripts/canon-config.knobs +14 -0
  57. package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/base/notes/spec.md +9 -0
  58. package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/changes/one/deltas/notes/spec.md +19 -0
  59. package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/changes/two/deltas/cli/spec.md +3 -0
  60. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.knobs +4 -0
  61. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.knobs +4 -0
  62. package/payload/canon-kit/gate-tests/check-docs-cmd.test.sh +20 -4
  63. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/expect.txt +5 -0
  64. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/scripts/canon-config.knobs +3 -0
  65. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/item.md +5 -0
  66. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/nested.md +7 -0
  67. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/page.md +13 -0
  68. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/short.md +3 -0
  69. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/unclosed.md +4 -0
  70. package/payload/canon-kit/gate-tests/check-docs-page-length/good/expect.txt +1 -0
  71. package/payload/canon-kit/gate-tests/check-docs-page-length/good/scripts/canon-config.knobs +4 -0
  72. package/payload/canon-kit/gate-tests/check-docs-page-length/good/site/generated.md +3 -0
  73. package/payload/canon-kit/gate-tests/check-docs-page-length/good/site/page.md +15 -0
  74. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/expect.txt +3 -0
  75. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/scripts/canon-config.knobs +2 -1
  76. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/_chrome/footer.html +4 -0
  77. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/page.md +4 -0
  78. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/unclosed.md +6 -0
  79. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/expect.txt +2 -1
  80. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/scripts/canon-config.knobs +2 -1
  81. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/_chrome/layout.html +8 -0
  82. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/page.md +13 -0
  83. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +1 -0
  84. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +4 -0
  85. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +10 -0
  86. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +2 -0
  87. package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +6 -0
  88. package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/expect.txt +3 -0
  89. package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/scripts/canon-config.knobs +2 -0
  90. package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/site/page.md +17 -0
  91. package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/expect.txt +1 -0
  92. package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/scripts/canon-config.knobs +2 -0
  93. package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/site/page.md +39 -0
  94. package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +8 -0
  95. package/payload/canon-kit/gate-tests/check-install-claim/bad/README.md +4 -0
  96. package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +14 -0
  97. package/payload/canon-kit/gate-tests/check-manifest-count/bad/expect.txt +2 -0
  98. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +27 -0
  99. package/payload/canon-kit/gate-tests/check-manifest-count/good/expect.txt +1 -1
  100. package/payload/canon-kit/gate-tests/check-manifest-count/good/posts/note.md +7 -0
  101. package/payload/canon-kit/gate-tests/check-manifest-count/good/scripts/canon-config.knobs +4 -0
  102. package/payload/canon-kit/gate-tests/check-manifest-temporal/good/SPEC.md +7 -0
  103. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +17 -1
  104. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/dotted.md +10 -0
  105. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +1 -0
  106. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/dotted.md +6 -0
  107. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -1
  108. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +6 -0
  109. package/payload/canon-kit/gate-tests/check-pendency-contradiction/bad/SPEC.md +14 -0
  110. package/payload/canon-kit/gate-tests/check-pendency-contradiction/bad/expect.txt +1 -0
  111. package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/README.md +3 -0
  112. package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/SPEC.md +16 -0
  113. package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/expect.txt +1 -0
  114. package/payload/canon-kit/gate-tests/check-prose-tells/bad/absence-unclosed.md +8 -0
  115. package/payload/canon-kit/gate-tests/check-prose-tells/bad/absence.md +13 -0
  116. package/payload/canon-kit/gate-tests/check-prose-tells/bad/expect.txt +4 -0
  117. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -1
  118. package/payload/canon-kit/gate-tests/check-prose-tells/good/absence.md +17 -0
  119. package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
  120. package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/canon-config.knobs +4 -1
  121. package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/SPEC.md +9 -0
  122. package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/expect.txt +2 -1
  123. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC.md +14 -0
  124. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +1 -0
  125. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/args +1 -0
  126. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/expect.txt +2 -1
  127. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/long.md +7 -0
  128. package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/doc.md +13 -0
  129. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +7 -1
  130. package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +8 -0
  131. package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-repeat.md +11 -0
  132. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
  133. package/payload/canon-kit/gate-tests/check-task-label-resolution/good/work/tasks.md +6 -0
  134. package/payload/canon-kit/gate-tests/check-task-path-claim/good/work/tasks.md +6 -0
  135. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/scripts/canon-config.knobs +4 -0
  136. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/scripts/canon-config.knobs +4 -0
  137. package/payload/canon-kit/gate-tests/check-tracking-claim/bad/README.md +4 -0
  138. package/payload/context-kit/README.md +6 -8
  139. package/payload/context-kit/checks/check-brevity.gate +1 -1
  140. package/payload/context-kit/gate-tests/check-brevity.test.sh +1 -0
  141. package/payload/context-kit/gate-tests/check-memory-off.test.sh +25 -1
  142. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
  143. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +16 -0
  144. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/checkwright-gates +2 -0
  145. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -2
  146. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
  147. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/checkwright-gates +2 -0
  148. package/payload/context-kit/gate-tests/session-context-spawn.test.sh +52 -0
  149. package/payload/context-kit/templates/nudge-delegation.txt +4 -0
  150. package/payload/context-kit/templates/settings-sessionstart.json +2 -2
  151. package/payload/delegation-kit/README.md +15 -9
  152. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +1 -0
  153. package/payload/delegation-kit/checks/check-gate-tamper.gate +1 -1
  154. package/payload/delegation-kit/close-surfaces.txt +3 -0
  155. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/stale-effort.md +10 -0
  156. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/stale.md +9 -0
  157. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/unbound.md +8 -0
  158. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/expect.txt +3 -0
  159. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/scripts/delegation-config.knobs +3 -0
  160. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-cheap.md +3 -1
  161. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-paired.md +10 -0
  162. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/expect.txt +1 -1
  163. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/scripts/delegation-config.knobs +3 -0
  164. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/exception-arrays.sh +44 -0
  165. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +12 -0
  166. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/staged-files +12 -0
  167. package/payload/delegation-kit/gate-tests/check-gate-tamper/good/exception-arrays.sh +44 -0
  168. package/payload/delegation-kit/gate-tests/check-gate-tamper/good/staged-files +4 -1
  169. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +36 -1
  170. package/payload/delegation-kit/templates/agent-execution.md +7 -6
  171. package/payload/delegation-kit/templates/delegation-config.knobs +32 -0
  172. package/payload/delegation-kit/usage-tests/cases.tsv +35 -25
  173. package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +12 -3
  174. package/payload/doctrine-kit/DOCTRINE.md +109 -25
  175. package/payload/doctrine-kit/README.md +3 -3
  176. package/payload/drift-kit/README.md +17 -7
  177. package/payload/drift-kit/close-surfaces.txt +2 -0
  178. package/payload/drift-kit/templates/economics.md +7 -3
  179. package/payload/drift-kit/templates/kpis.list +1 -0
  180. package/payload/drift-kit/templates/price-table.tsv +13 -9
  181. package/payload/evidence-kit/README.md +4 -4
  182. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/expect.txt +1 -0
  183. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/runner.md +2 -1
  184. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +3 -1
  185. package/payload/evidence-kit/gate-tests/check-battery-roster/good/runner.md +1 -0
  186. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +3 -1
  187. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +18 -2
  188. package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +2 -3
  189. package/payload/evidence-kit/gate-tests/run-member-door.test.sh +50 -0
  190. package/payload/gate-sdk/README.md +11 -15
  191. package/payload/gate-sdk/bin/build-native.sh +11 -14
  192. package/payload/gate-sdk/bin/run-gates.ps1 +149 -24
  193. package/payload/gate-sdk/bin/run-gates.sh +58 -15
  194. package/payload/gate-sdk/checks/check-commit-msg.gate +1 -1
  195. package/payload/gate-sdk/checks/check-gate-substrate-parity.gate +1 -1
  196. package/payload/gate-sdk/checks/check-graph.gate +2 -2
  197. package/payload/gate-sdk/checks/check-install-disposition.gate +1 -1
  198. package/payload/gate-sdk/checks/check-path-dialect.gate +1 -1
  199. package/payload/gate-sdk/checks/check-psscriptanalyzer.gate +4 -0
  200. package/payload/gate-sdk/checks/check-shellcheck.gate +1 -1
  201. package/payload/gate-sdk/checks/check-template-copy-parity.gate +1 -1
  202. package/payload/gate-sdk/checks/check-tree-terms.gate +1 -1
  203. package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/args +2 -1
  204. package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/expect.txt +2 -0
  205. package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/tree/workflows/shapes.yml +29 -0
  206. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/args +2 -1
  207. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/expect.txt +2 -0
  208. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/shapes.yml +22 -0
  209. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/demo-kit/index.md +3 -0
  210. package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +17 -1
  211. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +12 -1
  212. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-array-axes.sh +44 -0
  213. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +2 -0
  214. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +2 -1
  215. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-array-axes.sh +46 -0
  216. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +2 -0
  217. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/expect.txt +1 -0
  218. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/check-psopt.gate +3 -0
  219. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/check-psopt.ps1 +1 -0
  220. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/gates.list +1 -0
  221. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/expect.txt +1 -0
  222. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/scripts/gates.list +3 -1
  223. package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
  224. package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +4 -2
  225. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +5 -0
  226. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/checks/check-kitexec.gate +2 -0
  227. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/checks/check-kitexec.ps1 +1 -0
  228. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-climb.gate +2 -0
  229. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-direxec.gate +2 -0
  230. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twoexec.gate +3 -0
  231. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-txtexec.gate +2 -0
  232. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-txtexec.txt +1 -0
  233. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
  234. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-psgood.gate +3 -0
  235. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-psgood.ps1 +1 -0
  236. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-rsgood.gate +3 -0
  237. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +2 -0
  238. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +42 -5
  239. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +1 -0
  240. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +9 -1
  241. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +2 -2
  242. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +15 -29
  243. package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
  244. package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +3 -1
  245. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/expect.txt +1 -0
  246. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/portability-patterns.notes.list +1 -0
  247. package/payload/gate-sdk/gate-tests/check-portability-floor/good/args +1 -1
  248. package/payload/gate-sdk/gate-tests/check-portability-floor/good/scripts/gate-sdk-config.knobs +1 -0
  249. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/demo-kit/templates/portability-patterns.list +5 -0
  250. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/rosters/constructs.list +6 -0
  251. package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +15 -2
  252. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/expect.txt +2 -0
  253. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/noisy.ps1 +1 -0
  254. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/pwsh +8 -0
  255. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/scripts/gate-sdk-config.knobs +1 -0
  256. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/clean.ps1 +1 -0
  257. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/expect.txt +1 -0
  258. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/pwsh +7 -0
  259. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/scripts/gate-sdk-config.knobs +2 -0
  260. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/{warn.sh → alpha-kit/gate-tests/kit-warn.sh} +1 -1
  261. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/expect.txt +2 -0
  262. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/scripts/gate-sdk-config.knobs +2 -0
  263. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/scripts/gate-tests/tests-warn.sh +5 -0
  264. package/payload/gate-sdk/gate-tests/check-shellcheck/good/{ok.sh → alpha-kit/gate-tests/kit-ok.sh} +1 -1
  265. package/payload/gate-sdk/gate-tests/check-shellcheck/good/expect.txt +1 -1
  266. package/payload/gate-sdk/gate-tests/check-shellcheck/good/scripts/gate-sdk-config.knobs +2 -0
  267. package/payload/gate-sdk/gate-tests/check-shellcheck/good/scripts/gate-tests/tests-ok.sh +4 -0
  268. package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/args +2 -0
  269. package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/scripts/gate-sdk-config.knobs +1 -0
  270. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +4 -1
  271. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/gate-sdk-config.knobs +1 -0
  272. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/stray/templates/session-note.sh +4 -0
  273. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +6 -2
  274. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/drift-kit/templates/kpis.list +1 -0
  275. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/drift-kit/templates/kpis.list +1 -0
  276. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
  277. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/msg-patterns.old.list +1 -0
  278. package/payload/gate-sdk/gate-tests/check-tree-terms/good/args +2 -2
  279. package/payload/gate-sdk/gate-tests/check-tree-terms/good/scripts/gate-sdk-config.knobs +1 -0
  280. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/demo-kit/templates/msg-patterns.list +2 -0
  281. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/rosters/extra.list +2 -0
  282. package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +1 -0
  283. package/payload/gate-sdk/gate-tests/emit-arm-shape.test.sh +1 -1
  284. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +10 -2
  285. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +29 -3
  286. package/payload/gate-sdk/gate-tests/lib-test-hermetic.test.sh +24 -0
  287. package/payload/gate-sdk/gate-tests/native-git-hooks.test.sh +261 -0
  288. package/payload/gate-sdk/gate-tests/native-rustflags.test.sh +20 -0
  289. package/payload/gate-sdk/gate-tests/run-arm-contract.test.sh +11 -4
  290. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +2 -1
  291. package/payload/gate-sdk/gate-tests/run-for-path.test.sh +11 -1
  292. package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +64 -4
  293. package/payload/gate-sdk/lib/gate.sh +46 -6
  294. package/payload/gate-sdk/lib/test-hermetic.sh +16 -8
  295. package/payload/gate-sdk/templates/adopt.md +15 -0
  296. package/payload/gate-sdk/templates/msg-patterns.list +1 -1
  297. package/payload/gate-sdk/templates/portability-patterns.list +1 -1
  298. package/payload/guard-kit/README.md +13 -8
  299. package/payload/guard-kit/close-surfaces.txt +3 -0
  300. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/README.md +1 -1
  301. package/payload/guard-kit/gate-tests/check-door-binding/bad/expect.txt +1 -0
  302. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/guard-config.knobs +2 -1
  303. package/payload/guard-kit/gate-tests/check-door-binding/bad/src/remedy.rs +3 -0
  304. package/payload/guard-kit/gate-tests/check-door-binding/good/expect.txt +1 -0
  305. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/guard-config.knobs +2 -1
  306. package/payload/guard-kit/gate-tests/check-door-binding/good/site/register.md +8 -0
  307. package/payload/guard-kit/gate-tests/check-door-binding/good/src/remedy.rs +13 -0
  308. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +0 -1
  309. package/payload/guard-kit/gate-tests/consumer-rules.test.sh +105 -3
  310. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +64 -2
  311. package/payload/guard-kit/gate-tests/guard-config-knobs.test.sh +18 -5
  312. package/payload/guard-kit/gate-tests/guard-verdict.test.sh +74 -0
  313. package/payload/guard-kit/gate-tests/worktree-confinement.test.sh +49 -5
  314. package/payload/guard-kit/guard-tests/background-cases.tsv +103 -1
  315. package/payload/guard-kit/guard-tests/cases.tsv +834 -64
  316. package/payload/guard-kit/guard-tests/powershell-cases.tsv +51 -2
  317. package/payload/guard-kit/guard-tests/variant-limits.tsv +14 -0
  318. package/payload/guard-kit/templates/close-triage.md +2 -2
  319. package/payload/guard-kit/templates/guard-config.knobs +9 -0
  320. package/payload/guard-kit/templates/settings-allow.json +1 -1
  321. package/payload/guard-kit/templates/settings-hooks.json +4 -4
  322. package/payload/lifecycle-kit/README.md +12 -7
  323. package/payload/lifecycle-kit/checks/check-disposed-findings.gate +3 -0
  324. package/payload/lifecycle-kit/checks/check-skill-binding.gate +1 -1
  325. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +1 -1
  326. package/payload/lifecycle-kit/close-surfaces.txt +2 -0
  327. package/payload/lifecycle-kit/gate-tests/boundary-set-record.test.sh +82 -0
  328. package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +11 -2
  329. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +11 -1
  330. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/args +2 -0
  331. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/disposed-findings.txt +5 -0
  332. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/expect.txt +5 -0
  333. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/args +2 -0
  334. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/disposed-findings.txt +3 -0
  335. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/expect.txt +1 -0
  336. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +1 -0
  337. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +1 -1
  338. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +27 -2
  339. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +6 -0
  340. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +34 -2
  341. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +3 -0
  342. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -0
  343. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/scripts/lifecycle-config.knobs +3 -0
  344. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +3 -0
  345. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/expect.txt +1 -0
  346. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/scripts/lifecycle-config.knobs +2 -0
  347. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage.test.sh +22 -2
  348. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +9 -2
  349. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +27 -1
  350. package/payload/lifecycle-kit/gate-tests/journal-arm.test.sh +251 -0
  351. package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +46 -5
  352. package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +16 -2
  353. package/payload/lifecycle-kit/templates/consult.md +9 -5
  354. package/payload/lifecycle-kit/templates/frames/project-critique.md +18 -0
  355. package/payload/lifecycle-kit/templates/frames/stage-contract-sweep.md +18 -0
  356. package/payload/lifecycle-kit/templates/frames/stage-contract.md +15 -0
  357. package/payload/lifecycle-kit/templates/host-protocol.md +10 -0
  358. package/payload/lifecycle-kit/templates/lead.md +31 -24
  359. package/payload/lifecycle-kit/templates/stages/align.md +4 -0
  360. package/payload/lifecycle-kit/templates/stages/build.md +5 -3
  361. package/payload/lifecycle-kit/templates/stages/close.md +8 -6
  362. package/payload/lifecycle-kit/templates/stages/scope.md +6 -2
  363. package/payload/lifecycle-kit/templates/stages/spec.md +4 -0
  364. package/payload/lifecycle-kit/templates/stages/validate.md +4 -2
  365. package/payload/lifecycle-kit/templates/upgrade.md +1 -1
  366. package/payload/queue-kit/README.md +4 -3
  367. package/payload/queue-kit/close-surfaces.txt +3 -0
  368. package/payload/queue-kit/gate-tests/check-queue-sections/bad/expect.txt +1 -0
  369. package/payload/queue-kit/gate-tests/check-queue-sections/bad/scripts/queue-config.knobs +2 -0
  370. package/payload/queue-kit/gate-tests/check-queue-sections/good/TASK-QUEUE.md +1 -1
  371. package/payload/queue-kit/gate-tests/check-queue-sections/good/scripts/queue-config.knobs +2 -0
  372. package/payload/queue-kit/gate-tests/check-queue-sections.test.sh +65 -0
  373. package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +10 -1
  374. package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +4 -0
  375. package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +4 -0
  376. package/payload/queue-kit/gate-tests/check-task-conservation.test.sh +38 -0
  377. package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +3 -0
  378. package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +3 -0
  379. package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +8 -0
  380. package/payload/queue-kit/gate-tests/roadmap-lag.test.sh +137 -0
  381. package/payload/site-kit/README.md +4 -4
  382. package/payload/site-kit/gate-tests/check-docs-collapsible/bad/docs/unclosed.md +8 -0
  383. package/payload/site-kit/gate-tests/check-docs-collapsible/bad/expect.txt +1 -0
  384. package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/regions.md +7 -0
  385. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/dotted.md +9 -0
  386. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +1 -0
  387. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/dotted.md +7 -0
  388. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/expect.txt +1 -1
  389. package/payload/site-kit/gate-tests/site-health-probe.test.sh +219 -0
  390. package/payload/site-kit/templates/site-health.yml +181 -132
  391. package/profiles.list +11 -10
  392. package/recipes/openspec/canon-config.knobs +5 -0
  393. package/recipes/openspec-overlap/canon-config.knobs +12 -0
  394. package/recipes/openspec-overlap/unregister.list +1 -0
  395. package/payload/context-kit/checks/check-footprint-fresh.gate +0 -4
  396. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/args +0 -4
  397. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/emit.txt +0 -12
  398. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/expect.txt +0 -1
  399. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/projection.txt +0 -11
  400. package/payload/context-kit/gate-tests/check-footprint-fresh/good/CLAUDE.md +0 -6
  401. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/SPEC.md +0 -3
  402. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/templates/guide.md +0 -3
  403. package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +0 -32
  404. package/payload/context-kit/gate-tests/check-footprint-fresh/good/expect.txt +0 -1
  405. package/payload/context-kit/templates/session-context.sh +0 -148
  406. package/payload/delegation-kit/checks/check-rule-citation.gate +0 -3
  407. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/args +0 -1
  408. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/expect.txt +0 -1
  409. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/spec.md +0 -9
  410. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/tmpl.md +0 -4
  411. package/payload/delegation-kit/gate-tests/check-rule-citation/good/args +0 -1
  412. package/payload/delegation-kit/gate-tests/check-rule-citation/good/expect.txt +0 -1
  413. package/payload/delegation-kit/gate-tests/check-rule-citation/good/spec.md +0 -20
  414. package/payload/delegation-kit/gate-tests/check-rule-citation/good/tmpl.md +0 -5
  415. package/payload/drift-kit/templates/kpi-deprecated-surface.sh +0 -54
  416. package/payload/gate-sdk/checks/check-crate-arms.gate +0 -3
  417. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +0 -3
  418. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +0 -3
  419. package/payload/gate-sdk/checks/check-kit-roots-dialect.gate +0 -3
  420. package/payload/gate-sdk/checks/check-packed-links.gate +0 -3
  421. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +0 -7
  422. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +0 -12
  423. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +0 -5
  424. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.knobs +0 -3
  425. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +0 -7
  426. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +0 -11
  427. package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +0 -2
  428. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.knobs +0 -3
  429. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/args +0 -2
  430. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/expect.txt +0 -5
  431. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/kitroot/checks/check-vendored.gate +0 -2
  432. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/check-ported.gate +0 -2
  433. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.knobs +0 -2
  434. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gates.list +0 -4
  435. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stamp.txt +0 -1
  436. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stub-bin +0 -6
  437. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/args +0 -2
  438. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/expect.txt +0 -5
  439. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/kitroot/checks/check-vendored.gate +0 -2
  440. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/check-ported.gate +0 -2
  441. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.knobs +0 -2
  442. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gates.list +0 -4
  443. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stamp.txt +0 -1
  444. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stub-bin +0 -5
  445. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +0 -97
  446. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/args +0 -1
  447. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/expect.txt +0 -1
  448. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/hooks/pre-commit +0 -2
  449. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/args +0 -1
  450. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/expect.txt +0 -1
  451. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/hooks/pre-commit +0 -2
  452. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/args +0 -5
  453. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/expect.txt +0 -1
  454. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/checks/placeholder.txt +0 -3
  455. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/gate-tests/alpha.test.sh +0 -3
  456. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/lib/alpha.sh +0 -3
  457. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/checks/placeholder.txt +0 -3
  458. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/gate-tests/beta.test.sh +0 -3
  459. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/lib/beta.sh +0 -3
  460. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/checks/placeholder.txt +0 -3
  461. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/lib/gate.sh +0 -3
  462. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gate-sdk-config.knobs +0 -7
  463. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gates.list +0 -3
  464. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/args +0 -7
  465. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/expect.txt +0 -1
  466. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/checks/placeholder.txt +0 -3
  467. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/gate-tests/alpha.test.sh +0 -3
  468. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/lib/alpha.sh +0 -3
  469. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/checks/placeholder.txt +0 -3
  470. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/gate-tests/beta.test.sh +0 -3
  471. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/lib/beta.sh +0 -3
  472. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/checks/placeholder.txt +0 -3
  473. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/lib/gate.sh +0 -3
  474. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/scripts/gates.list +0 -3
  475. package/payload/gate-sdk/gate-tests/check-packed-links/bad/alpha-kit/README.md +0 -5
  476. package/payload/gate-sdk/gate-tests/check-packed-links/bad/args +0 -5
  477. package/payload/gate-sdk/gate-tests/check-packed-links/bad/beta-kit/README.md +0 -5
  478. package/payload/gate-sdk/gate-tests/check-packed-links/bad/expect.txt +0 -2
  479. package/payload/gate-sdk/gate-tests/check-packed-links/bad/scripts/gate-sdk-config.knobs +0 -4
  480. package/payload/gate-sdk/gate-tests/check-packed-links/good/alpha-kit/README.md +0 -5
  481. package/payload/gate-sdk/gate-tests/check-packed-links/good/args +0 -8
  482. package/payload/gate-sdk/gate-tests/check-packed-links/good/beta-kit/README.md +0 -9
  483. package/payload/gate-sdk/gate-tests/check-packed-links/good/expect.txt +0 -1
  484. package/payload/gate-sdk/gate-tests/check-packed-links/good/gamma-kit/SPEC.md +0 -4
  485. package/payload/gate-sdk/gate-tests/check-packed-links/good/scripts/gate-sdk-config.knobs +0 -6
  486. package/payload/gate-sdk/gate-tests/check-portability-floor/good/patterns.list +0 -5
  487. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/portability-patterns.list +0 -5
  488. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +0 -2
  489. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +0 -3
  490. /package/payload/gate-sdk/gate-tests/{check-shellcheck → check-psscriptanalyzer}/bad/args +0 -0
  491. /package/payload/gate-sdk/gate-tests/{check-shellcheck → check-psscriptanalyzer}/good/args +0 -0
  492. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/{delegation-kit → vendor/delegation-kit}/templates/agent-budget-guard.sh +0 -0
  493. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/agent-budget-guard.sh +0 -0
  494. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/delegation-config.sh +0 -0
  495. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/session-note.sh +0 -0
  496. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/usage-poller.sh +0 -0
@@ -0,0 +1,17 @@
1
+ # Widget
2
+
3
+ ## Limitations
4
+
5
+ ## Network access
6
+
7
+ There is no network access. The widget reads only the files it is handed.
8
+
9
+ ## Roster
10
+
11
+ <!-- roster:begin -->
12
+ None.
13
+ <!-- roster:end -->
14
+
15
+ ## Caching
16
+
17
+ Nothing is cached between runs.
@@ -25,3 +25,9 @@ It's worth noting that this generated line — held out — by its marker pair
25
25
 
26
26
  <!-- prose-tell-exempt: a deliberate dash cluster kept to demonstrate the valve -->
27
27
  This kept line leans on the em-dash — again — and once more — yet the valve holds it clean.
28
+
29
+ A tell quoted in a list-item fence is a specimen:
30
+
31
+ - ```
32
+ It is worth noting that the pipeline runs green — every time — without fail — really.
33
+ ```
@@ -1,5 +1,8 @@
1
- # spec: canon-kit/SPEC.md §check-prose-tells — the fixture opts in one prose surface so the gate has something to scan
1
+ # spec: canon-kit/SPEC.md §check-prose-tells — the fixture opts in one prose surface and one absence surface so each corpus has something to scan
2
2
  CANON_KIT_PROSE_TELL_GLOBS[] = **/prose.md
3
+ CANON_KIT_PROSE_TELL_ABSENCE_GLOBS[] = absence.md
3
4
 
4
5
  # comment-tier-exempt: the base array is left at its bundled default on purpose — the _EXTRA token must clear assertion D by union, which a restated base set would prove nothing about
5
6
  CANON_KIT_PROSE_TELL_ABBR_ALLOW_EXTRA[] = ZFS
7
+
8
+ CANON_KIT_PROSE_TELL_ABSENCE_OPENERS[] = there is no
@@ -18,3 +18,12 @@ lib/
18
18
  ## Behaviour
19
19
 
20
20
  A widget is processed once, in arrival order.
21
+
22
+ ## Public API
23
+
24
+ - ```rust
25
+ pub fn one();
26
+ pub fn two();
27
+ pub fn three();
28
+ pub fn four();
29
+ ```
@@ -1 +1,2 @@
1
- fenced (banned heading
1
+ section "Directory Structure"
2
+ section "Public API"
@@ -14,3 +14,17 @@ epsilon_five="fifth line of widget logic"
14
14
  zeta_six="sixth line of widget logic"
15
15
  echo "widget processing complete"
16
16
  ```
17
+
18
+ The same block as a list item:
19
+
20
+ - ```bash
21
+ #!/usr/bin/env bash
22
+ set -euo pipefail
23
+ alpha_one="first line of widget logic"
24
+ beta_two="second line of widget logic"
25
+ gamma_three="third line of widget logic"
26
+ delta_four="fourth line of widget logic"
27
+ epsilon_five="fifth line of widget logic"
28
+ zeta_six="sixth line of widget logic"
29
+ echo "widget processing complete"
30
+ ```
@@ -1,3 +1,4 @@
1
1
  copied from
2
2
  SPEC.md:6 [bash]
3
3
  SPEC-wire.md:8 [bash]
4
+ SPEC.md:20 [bash]
@@ -1 +1,2 @@
1
- odd
1
+ doc.md:5 (the fence opened here is never closed)
2
+ long.md:5 (the fence opened here is never closed)
@@ -0,0 +1,7 @@
1
+ # fixture doc
2
+
3
+ A four-backtick fence that a three-backtick line cannot close:
4
+
5
+ ````md
6
+ ```
7
+ Prose that markdown now swallows into the code block.
@@ -7,3 +7,16 @@ echo ok
7
7
  ```
8
8
 
9
9
  Prose after the fence.
10
+
11
+ A fence opened in a list item and closed on its indented line:
12
+
13
+ - ```sh
14
+ echo item
15
+ ```
16
+
17
+ A shorter run inside a longer fence is the block's text:
18
+
19
+ ````md
20
+ ```
21
+ echo nested
22
+ ````
@@ -1,10 +1,16 @@
1
1
  # The candidate glob the finder discriminates: the slot-free cand-tmpl.md is
2
2
  # included, so its dangling citation is scanned and reddens.
3
3
  CANON_KIT_PROSE_SURFACE_GLOBS[] = cand-*.md
4
- # The widget spec joins the manifest set, so its repeated title is read.
4
+ # The widget spec joins the manifest set, and the title rule is on, so its
5
+ # repeated title reddens.
6
+ CANON_KIT_SPEC_POINTER_TITLE_ONCE = on
5
7
  CANON_KIT_MANIFEST_FILES[] = README.md
6
8
  CANON_KIT_MANIFEST_FILES[] = SPEC-widget.md
7
9
  # A heading family and a lone family-shaped heading join it, so each lead-clause
8
10
  # bound has a citation only it refuses.
9
11
  CANON_KIT_MANIFEST_FILES[] = SPEC-family.md
10
12
  CANON_KIT_MANIFEST_FILES[] = SPEC-only.md
13
+ # A Rust consumer brings its language into the derived surface through the knob.
14
+ CANON_KIT_COMMENT_SURFACE[] = **/*.sh
15
+ CANON_KIT_COMMENT_SURFACE[] = **/*.gate
16
+ CANON_KIT_COMMENT_SURFACE[] = **/*.rs
@@ -19,3 +19,11 @@ none of them. So does a link-wrapped citation,
19
19
  [the widget spec](SPEC-widget.md) §The widget contract, and a quoted path,
20
20
  `SPEC-widget.md` §The widget contract. Prose about the grammar writes the
21
21
  placeholder §<heading>, and a `§` quoted inside a code span is the mark itself.
22
+ A document numbering its sections writes §3 or §2.1 as a section-number mark,
23
+ which no heading here carries and which never fires.
24
+
25
+ A citation quoted in a list-item fence is an example and is never resolved:
26
+
27
+ - ```
28
+ SPEC-widget.md §The heading nobody wrote
29
+ ```
@@ -0,0 +1,11 @@
1
+ # SPEC: repeat
2
+
3
+ ## Example
4
+
5
+ Ordinary prose repeats a title under two sections.
6
+
7
+ ## Usage
8
+
9
+ ### Example
10
+
11
+ The second section with that title, clean while the title rule is off.
@@ -6,3 +6,9 @@ CANON_KIT_MANIFEST_FILES[] = README.md
6
6
  CANON_KIT_MANIFEST_FILES[] = SPEC-widget.md
7
7
  # A heading family joins it, so a citation of one member resolves only whole.
8
8
  CANON_KIT_MANIFEST_FILES[] = SPEC-family.md
9
+ # A spec repeating a title joins it, clean while the title rule is off.
10
+ CANON_KIT_MANIFEST_FILES[] = SPEC-repeat.md
11
+ # A Rust consumer brings its language into the derived surface through the knob.
12
+ CANON_KIT_COMMENT_SURFACE[] = **/*.sh
13
+ CANON_KIT_COMMENT_SURFACE[] = **/*.gate
14
+ CANON_KIT_COMMENT_SURFACE[] = **/*.rs
@@ -6,3 +6,9 @@
6
6
  ```text
7
7
  - [ ] T003 [US9] An example task citing an undefined story
8
8
  ```
9
+
10
+ The same block as a list item:
11
+
12
+ - ```text
13
+ - [ ] T003 [US9] An example task citing an undefined story
14
+ ```
@@ -11,3 +11,9 @@
11
11
  ```text
12
12
  - [x] T006 An example task naming docs/absent.md
13
13
  ```
14
+
15
+ The same block as a list item:
16
+
17
+ - ```text
18
+ - [x] T006 An example task naming docs/absent.md
19
+ ```
@@ -0,0 +1,4 @@
1
+ # spec: canon-kit/SPEC.md §The shared spec adapters — a Rust consumer brings its language into the derived surface through the knob, the arm this pair proves
2
+ CANON_KIT_COMMENT_SURFACE[] = **/*.sh
3
+ CANON_KIT_COMMENT_SURFACE[] = **/*.gate
4
+ CANON_KIT_COMMENT_SURFACE[] = **/*.rs
@@ -0,0 +1,4 @@
1
+ # spec: canon-kit/SPEC.md §The shared spec adapters — a Rust consumer brings its language into the derived surface through the knob, the arm this pair proves
2
+ CANON_KIT_COMMENT_SURFACE[] = **/*.sh
3
+ CANON_KIT_COMMENT_SURFACE[] = **/*.gate
4
+ CANON_KIT_COMMENT_SURFACE[] = **/*.rs
@@ -1,4 +1,8 @@
1
1
  # A tracking claim git disagrees with
2
2
 
3
+ - ```text
4
+ a list-item fence closes on its indented line, so the claim below is still read
5
+ ```
6
+
3
7
  `kept.txt` is gitignored, or so this sentence asserts — the file is committed
4
8
  beside this page, so git says otherwise.
@@ -1,14 +1,14 @@
1
1
  # context-kit
2
2
 
3
- Token-economics-aware context management for stateless agent sessions: an index-first reading toolset, a session-start hook that assembles a compact brief, a meter that tracks the always-loaded surface against a committed baseline, one gate over its governed always-loaded sections, a freshness-gated per-kit token-footprint projection, a close-stage brevity pass that reacts to the meter's delta, and a memory-off gate pair (settings pins plus a local memory-dir scan) that keeps the harness's ungoverned auto-memory surface disabled.
3
+ Token-economics-aware context management for stateless agent sessions: an index-first reading toolset, a session-start hook that assembles a compact brief, a meter that tracks the always-loaded surface against a committed baseline, one gate over its governed always-loaded sections, a close-stage brevity pass that reacts to the meter's delta, and a memory-off gate pair (settings pins plus a local memory-dir scan) that keeps the harness's ungoverned auto-memory surface disabled.
4
4
 
5
5
  Why: a stateless session pays for context twice. The *on-demand* cost is opening a whole SPEC or source file when one section was needed — the index tools cut that ("index, then read the one you need"). The *standing* cost is the always-loaded surface (the instructions file, the session-start hook output) where every added line is a recurring per-session tax that grows silently, because no single session sees the trend — the meter, the gate, and the close-stage pass make that growth visible and actionable. See [SPEC.md](https://checkwright.dev/context-kit/SPEC) for the full contracts.
6
6
 
7
- This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#consumer-payload).
7
+ This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://checkwright.dev/gate-sdk/SPEC#consumer-payload).
8
8
 
9
9
  ## Install
10
10
 
11
- Vendor the kit beside [gate-sdk](../gate-sdk/) (required); the meter's default hook approximation and the session-context template also expect [queue-kit](../queue-kit/). Then:
11
+ Vendor the kit beside [gate-sdk](../gate-sdk/) (required); the meter's default hook approximation and the session-context hook also expect [queue-kit](../queue-kit/). Then:
12
12
 
13
13
  1. Register the gates — add to your `gates.list`:
14
14
 
@@ -19,13 +19,12 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required); the meter's default h
19
19
  check-settings-pins
20
20
  check-settings-paths
21
21
  check-memory-off
22
- check-footprint-fresh
23
22
  ```
24
23
  <!-- gate-roster:end -->
25
24
 
26
- They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and the pre-commit hook runs those their `# graph:` manifests trigger, read at commit. `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes that hook once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered. Three of them wait on a step of yours: `check-settings-pins` skips clean until you create `settings-pins.conf` naming the settings keys to hold, such as the auto-memory-disabling ones ([SPEC.md §check-settings-pins](https://checkwright.dev/context-kit/SPEC#check-settings-pins)); `check-footprint-fresh` is for when you publish the footprint page; and `check-surface-ratchet` arms once you commit the ceilings `--emit always-loaded --ceiling` stamps ([SPEC.md §The surface ratchet](https://checkwright.dev/context-kit/SPEC#the-surface-ratchet)).
25
+ They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and the pre-commit hook runs those their `# graph:` manifests trigger, read at commit. `--install-hooks` on the gate binary `GATE_SDK_NATIVE_BIN` names places both hooks in a clone once, and a gate registered later is reached with no re-install. Two of them wait on a step of yours: `check-settings-pins` skips clean until you create `settings-pins.conf` naming the settings keys to hold, such as the auto-memory-disabling ones ([SPEC.md §check-settings-pins](https://checkwright.dev/context-kit/SPEC#check-settings-pins)); and `check-surface-ratchet` arms once you commit the ceilings `--emit always-loaded --ceiling` stamps ([SPEC.md §The surface ratchet](https://checkwright.dev/context-kit/SPEC#the-surface-ratchet)).
27
26
 
28
- 2. Wire the session-start hook — copy `templates/session-context.sh` into your gates dir, edit its `[EDIT ME]` sections (layout judgment, not mechanism), and merge `templates/settings-sessionstart.json` into `.claude/settings.json`.
27
+ 2. Wire the session-start hook — merge `templates/settings-sessionstart.json` into your harness settings file (`CONTEXT_KIT_SETTINGS_FILE`). The brief's layout judgments are the `CONTEXT_KIT_BRIEF_*` knobs, set in your knob file.
29
28
 
30
29
  3. Set the baseline — run `--emit always-loaded --update-baseline` on the gate binary `GATE_SDK_NATIVE_BIN` names and commit `.workflow/always-loaded-baseline.txt`.
31
30
 
@@ -44,7 +43,6 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
44
43
  "$gates" --emit pub-index [paths…] # public API surface (per-language extractors; ships rust, ts)
45
44
  "$gates" --emit always-loaded # standing surface vs baseline (one line)
46
45
  "$gates" --emit always-loaded --update-baseline # a close-stage act
47
- "$gates" --emit footprint # per-kit token footprint (the committed page)
48
46
  "$gates" --emit env-probe # re-probe the local machine profile (ENV.local.md)
49
47
  ```
50
48
 
@@ -60,4 +58,4 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
60
58
 
61
59
  ## License
62
60
 
63
- Apache-2.0. The license text is `LICENSE`, beside this file in an installed copy and at the repository root in the source tree.
61
+ Licensed under Apache-2.0, with the text in `LICENSE` beside this file in an installed copy and at the repository root in the source tree.
@@ -1,3 +1,3 @@
1
1
  # graph: couples=knob:CONTEXT_KIT_BREVITY_FILE dir=one valve=none tier=precommit
2
- # install: zero-config
2
+ # install: on-surface
3
3
  # spec: context-kit/SPEC.md §The brevity gate — over-budget bullets in the governed always-loaded sections that cite a deeper doc
@@ -104,6 +104,7 @@ check_case() { # $1=label $2=want-rc $3=want-substring $4=file $5..=env ass
104
104
  local out rc
105
105
  # spec: gate-sdk/SPEC.md §lib/test-hermetic.sh — the overrides are exported rather than passed
106
106
  # through `env`, because `env` cannot invoke the gate_run shell function
107
+ # shellcheck disable=SC2163 # each argument is a NAME=value pair, so exporting the expansion is the intent
107
108
  out="$(export "$@"; gate_run check-brevity "$DIR/checks" "$SANDBOX/$file" 2>&1)"; rc=$?
108
109
  if [[ "$rc" -ne "$want" ]]; then
109
110
  echo " FAIL [$label]: want exit $want, got $rc -- $out"; fails=$((fails + 1)); return
@@ -60,9 +60,33 @@ check_case "local-override-red" 1 "local settings override" '{"autoMemoryEnabled
60
60
  # check-settings-pins' absent-pin refusal: a pinned key explicitly set to null sets no override
61
61
  check_case "local-null-clean" 0 "MEMORY-OFF: clean" '{"autoMemoryEnabled": null}'
62
62
 
63
+ # spec: context-kit/SPEC.md §Layout and configuration — the cross-substrate agreement: under the
64
+ # derived default the gate and the arm the hook's step 5 reads resolve one dir, the harness's fold
65
+ # of git's toplevel, which the sed below spells independently of the binary
66
+ REPO="$SANDBOX/my_proj dir.x"
67
+ git init -q "$REPO"
68
+ H="$SANDBOX/home"
69
+ H_NATIVE="$(cygpath -m "$H" 2>/dev/null || printf '%s' "$H")"
70
+ mem="$H/.claude/projects/$(git -C "$REPO" rev-parse --show-toplevel | sed 's/[^a-zA-Z0-9]/-/g')/memory"
71
+ mkdir -p "$mem"
72
+ printf 'x\n' >"$mem/note.md"
73
+ derived_env() {
74
+ gate_env HOME="$H_NATIVE" USERPROFILE="$H_NATIVE" CLAUDE_CONFIG_DIR= CONTEXT_KIT_MEMORY_DIRS= \
75
+ CONTEXT_KIT_SETTINGS_FILE="$SANDBOX/settings.json" \
76
+ CONTEXT_KIT_SETTINGS_PINS="$SANDBOX/settings-pins.conf"
77
+ }
78
+ out="$(cd "$REPO" && derived_env && gate_run check-memory-off "$DIR/checks" 2>&1)"; rc=$?
79
+ if [[ "$rc" -ne 1 ]] || ! grep -qF "memory dir holds content" <<<"$out"; then
80
+ echo " FAIL [derived-dir-red]: want exit 1 naming the polluted dir, got $rc -- $out"; fails=$((fails + 1))
81
+ fi
82
+ printed="$(cd "$REPO" && derived_env && gate_arm_run --emit memory-dirs 2>&1)"
83
+ if [[ "$(grep -c . <<<"$printed")" -ne 1 || ! "$printed" -ef "$mem" ]]; then
84
+ echo " FAIL [arm-agrees]: --emit memory-dirs printed '$printed', want the one dir $mem"; fails=$((fails + 1))
85
+ fi
86
+
63
87
  if [[ "$fails" -gt 0 ]]; then
64
88
  echo "check-memory-off.test.sh: $fails case(s) failed"
65
89
  exit 1
66
90
  fi
67
- echo "check-memory-off.test.sh: clean (no-local clean, unrelated-local clean, pinned-key override red, explicit-null clean, 4 cases)"
91
+ echo "check-memory-off.test.sh: clean (no-local clean, unrelated-local clean, pinned-key override red, explicit-null clean, derived dir red with the arm agreeing, 5 cases)"
68
92
  exit 0
@@ -3,3 +3,6 @@ Bash(bash tools/removed-gate.sh *) — no such file: tools/removed-gate.sh
3
3
  Bash(env DEMO_FLAG=1 bash tools/removed-gate.sh) — no such file: tools/removed-gate.sh
4
4
  hooks.PreToolUse[0].hooks[1]: bash tools/removed-hook.sh — no such file: tools/removed-hook.sh
5
5
  hooks.PreToolUse[0].hooks[2]: bash tools/run-gates.sh --hook no-such-guard — no such hook member: no-such-guard
6
+ hooks.PreToolUse[0].hooks[3]: ${CLAUDE_PROJECT_DIR}/@GATE_SDK_NATIVE_BIN@ --hook shell-guard — unresolved placeholder: @GATE_SDK_NATIVE_BIN@
7
+ hooks.PreToolUse[0].hooks[4]: ${CLAUDE_PROJECT_DIR}/tools/checkwright-gates --hook no-such-exec-guard — no such hook member: no-such-exec-guard
8
+ help: a hook merged from a kit template skipped its placeholder step — replace @GATE_SDK_NATIVE_BIN@
@@ -25,6 +25,22 @@
25
25
  {
26
26
  "type": "command",
27
27
  "command": "bash tools/run-gates.sh --hook no-such-guard"
28
+ },
29
+ {
30
+ "type": "command",
31
+ "command": "${CLAUDE_PROJECT_DIR}/@GATE_SDK_NATIVE_BIN@",
32
+ "args": [
33
+ "--hook",
34
+ "shell-guard"
35
+ ]
36
+ },
37
+ {
38
+ "type": "command",
39
+ "command": "${CLAUDE_PROJECT_DIR}/tools/checkwright-gates",
40
+ "args": [
41
+ "--hook",
42
+ "no-such-exec-guard"
43
+ ]
28
44
  }
29
45
  ]
30
46
  }
@@ -0,0 +1,2 @@
1
+ Named for the gate binary so an exec-form hook registering through it is read
2
+ as a member registration. Never executed: the gate asserts the path exists.
@@ -1,2 +1,2 @@
1
- SETTINGS-PATHS: clean (4 literal .sh grant(s) and 5 hook path(s)
2
- 1 hook(s) skipped for a placeholder
1
+ SETTINGS-PATHS: clean (4 literal .sh grant(s) and 6 hook path(s)
2
+ 2 hook(s) skipped for a `$` root or an absolute path
@@ -41,6 +41,22 @@
41
41
  {
42
42
  "type": "command",
43
43
  "command": "bash tools/run-gates.sh --hook shell-guard"
44
+ },
45
+ {
46
+ "type": "command",
47
+ "command": "${CLAUDE_PROJECT_DIR}/tools/checkwright-gates",
48
+ "args": [
49
+ "--hook",
50
+ "shell-guard"
51
+ ]
52
+ },
53
+ {
54
+ "type": "command",
55
+ "command": "/opt/checkwright/checkwright-gates",
56
+ "args": [
57
+ "--hook",
58
+ "wakeup-guard"
59
+ ]
44
60
  }
45
61
  ]
46
62
  }
@@ -0,0 +1,2 @@
1
+ Named for the gate binary so an exec-form hook registering through it is read
2
+ as a member registration. Never executed: the gate asserts the path exists.
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/env bash
2
+ # spec: context-kit/SPEC.md §The session-context hook — a configured command is started as a program with no shell: a brief command's stdout is printed whatever status it exits, one that cannot be started is silent, the stage-rules command takes the stage as its last argument, and one that cannot be started is reported at 127 with the hook still exiting 0
3
+ #
4
+ # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
5
+ set -uo pipefail
6
+ source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
7
+
8
+ SANDBOX="$(mktemp -d)"
9
+ trap 'rm -rf "$SANDBOX"' EXIT
10
+
11
+ fails=0
12
+ note() { echo " FAIL [$1]: $2"; fails=$((fails + 1)); }
13
+
14
+ # spec: gate-sdk/SPEC.md §The path-dialect contract — every path the member reads is relative to the repository the front end enters, so no dialect of the sandbox's own path reaches it
15
+ repo="$SANDBOX/repo"
16
+ mkdir -p "$repo"
17
+ git -C "$repo" init -q
18
+ printf -- '---\nwitness-iteration build witness1 2000-01-01 0000000\n' >"$repo/state.txt"
19
+ knobs() { # $1 = the stage-rules command
20
+ {
21
+ printf 'CONTEXT_KIT_STATE_FILE = state.txt\n'
22
+ printf 'CONTEXT_KIT_BRIEF_COMMANDS[] = git rev-parse --sq-quote brief-command-ran\n'
23
+ printf 'CONTEXT_KIT_BRIEF_COMMANDS[] = git rev-parse brief-nonzero-ran\n'
24
+ printf 'CONTEXT_KIT_BRIEF_COMMANDS[] = no-such-brief-command\n'
25
+ printf 'CONTEXT_KIT_STAGE_RULES = %s\n' "$1"
26
+ } >"$repo/witness.knobs"
27
+ }
28
+ brief() {
29
+ ( cd "$repo" && CONTEXT_KIT_KNOB_FILE=witness.knobs bash "$GATE_SDK_ROOT/bin/run-gates.sh" --hook session-context </dev/null 2>"$SANDBOX/stderr.txt" ) | tr -d '\r'
30
+ return "${PIPESTATUS[0]}"
31
+ }
32
+
33
+ # 1. each configured program is started and its stdout lands in the brief
34
+ knobs 'git rev-parse --sq-quote stage-rules-ran'
35
+ out="$(brief)"; rc=$?
36
+ [[ "$rc" -eq 0 ]] || note started-status "want exit 0 from the hook, got $rc -- $out"
37
+ grep -qF "'brief-command-ran'" <<<"$out" || note brief-started "a brief command named as a program printed nothing: $out"
38
+ grep -qxF 'brief-nonzero-ran' <<<"$out" || note brief-nonzero "a brief command exiting non-zero lost its line: $out"
39
+ grep -qF 'no-such-brief-command' <<<"$out" && note brief-unstartable "a brief command that cannot be started was not silent: $out"
40
+ grep -qF 'Craft rules for the build stage' <<<"$out" || note rules-block "the stage-rules block is missing: $out"
41
+ grep -qF "'stage-rules-ran' 'build'" <<<"$out" || note rules-stage "the stage-rules program did not take the stage as its last argument: $out"
42
+
43
+ # 2. a stage-rules program that cannot be started is reported at 127 and the hook still exits 0
44
+ knobs 'no-such-stage-rules-command'
45
+ out="$(brief)"; rc=$?
46
+ [[ "$rc" -eq 0 ]] || note unstartable-status "want exit 0 from the hook, got $rc -- $out"
47
+ grep -qF 'the CONTEXT_KIT_STAGE_RULES command exited 127' <<<"$out" || note unstartable-text "the unstartable stage-rules command is not reported at 127: $out"
48
+ grep -qF "'brief-command-ran'" <<<"$out" || note unstartable-brief "the brief commands stopped printing beside a broken stage-rules knob: $out"
49
+
50
+ [[ "$fails" -eq 0 ]] || { echo "session-context-spawn.test: $fails assertion(s) failed; the last run's stderr: $(cat "$SANDBOX/stderr.txt" 2>/dev/null)"; exit 1; }
51
+ echo "session-context-spawn.test: clean (a configured program is started with no shell: a brief command prints whatever status it exits and is silent when it cannot be started, the stage-rules program takes the stage last, and one that cannot be started is reported at 127 with the hook exiting 0)"
52
+ exit 0
@@ -0,0 +1,4 @@
1
+ Delegation is the primary token lever and is pre-authorized here: send
2
+ read-heavy cross-SPEC audits and mechanical rename/merge sweeps to a sub-agent
3
+ without waiting to be asked — this standing licence satisfies the Agent tool's
4
+ ask-first default (see your delegation protocol).
@@ -1,10 +1,10 @@
1
1
  {
2
- "//": "context-kit SessionStart wiring — merge into .claude/settings.json. Assumes session-context.sh was copied into your gates dir (default scripts/). The hook assembles the session brief and always exits 0.",
2
+ "//": "context-kit SessionStart wiring — merge into .claude/settings.json. The hook is the gate binary's session-context member: it assembles the session brief and always exits 0. At the merge, replace @GATE_SDK_NATIVE_BIN@ with the value your gate-sdk-config.knobs gives that knob, as the binary prints it (--emit knob-values GATE_SDK_NATIVE_BIN), minus any executable suffix, keeping the ${CLAUDE_PROJECT_DIR}/ prefix; an absolute value replaces the whole command, prefix included. Left unreplaced the command starts no program and the brief does not appear. A hook whose program cannot start is passed over; the harness's onFailure field is yours to set on the hook, and try it on your harness build before relying on it. The brief's layout judgments are context-kit knobs (CONTEXT_KIT_BRIEF_*), never an edited script.",
3
3
  "hooks": {
4
4
  "SessionStart": [
5
5
  {
6
6
  "hooks": [
7
- { "type": "command", "command": "bash scripts/session-context.sh" }
7
+ { "type": "command", "command": "${CLAUDE_PROJECT_DIR}/@GATE_SDK_NATIVE_BIN@", "args": ["--hook", "session-context"] }
8
8
  ]
9
9
  }
10
10
  ]
@@ -4,7 +4,7 @@ Safe delegated-`Agent` execution for budget-bounded sessions. A supervisor dispa
4
4
 
5
5
  Why: three failure surfaces dominate delegation. **Shared mutable state** — two committing agents race the git index and one sweeps the other's staged files under the wrong message (the index and HEAD are shared for *every* committing agent, disjoint source files notwithstanding). **Interrupted long units** — a usage-window wall fires mid-flight and the uncommitted investigation dies with the session. **Untrustworthy self-reports** — a sub-agent's "passed" claim, or a gate quietly weakened to make its commit pass. The protocol closes all three, and those pieces are its mechanical floors. See [SPEC.md](https://checkwright.dev/delegation-kit/SPEC) for the full contracts.
6
6
 
7
- This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#consumer-payload).
7
+ This file ships in the installer payload; what that payload withholds, and where this page's `SPEC.md` links then resolve, is [gate-sdk/SPEC.md §Consumer payload](https://checkwright.dev/gate-sdk/SPEC#consumer-payload).
8
8
 
9
9
  ## Install
10
10
 
@@ -15,24 +15,26 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
15
15
  <!-- gate-roster:begin -->
16
16
  ```
17
17
  check-gate-tamper
18
- check-rule-citation # holds SPEC §The delegation model's rule citations to the template
19
18
  check-agent-tier-explicit # every tracked agent definition states a model: tier
20
19
  ```
21
20
  <!-- gate-roster:end -->
22
21
 
23
- They resolve through gate-sdk's registry path and the pre-commit hook runs those their `# graph:` manifests trigger, read at commit. `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes that hook once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered.
22
+ They resolve through gate-sdk's registry path and the pre-commit hook runs those their `# graph:` manifests trigger, read at commit. `--install-hooks` on the gate binary `GATE_SDK_NATIVE_BIN` names places both hooks in a clone once, and a gate registered later is reached with no re-install.
24
23
 
25
24
  2. Bind the protocol skill and add its resident pointer:
26
- - Create `.claude/commands/agent-execution.md` as a binding shim naming `templates/agent-execution.md` and binding its two slots — the shared-file roster and the validate battery ([SPEC.md §One template, a resident pointer](https://checkwright.dev/delegation-kit/SPEC#one-template-a-resident-pointer)).
25
+ - Create `agent-execution.md` in your agent-skill directory as a binding shim naming `templates/agent-execution.md` and binding its two slots — the shared-file roster and the validate battery ([SPEC.md §One template, a resident pointer](https://checkwright.dev/delegation-kit/SPEC#one-template-a-resident-pointer)).
27
26
  - Add a `### Agent execution` block to your `CLAUDE.md`: your delegation pre-authorization sentence plus the `/agent-execution` pointer. The protocol loads behind that trigger, so the block stays a pointer, never a digest.
28
27
 
29
- 3. Wire a `usage.txt` producer so `usage-verdict` has a snapshot to read — point your harness `statusLine` at `bash gate-sdk/bin/run-gates.sh --statusline`, point `DELEGATION_KIT_REFRESH_CMD` at the gate binary `GATE_SDK_NATIVE_BIN` names with its `--usage-poll` arm so every verdict call refreshes the snapshot on demand (or wire the same poller under a timer), keeping it fresh while a supervising session sits static, or have any producer honour the snapshot contract ([SPEC.md §The usage.txt contract](https://checkwright.dev/delegation-kit/SPEC#the-usagetxt-contract)). The statusline producer also renders a status bar, whose field set is [SPEC.md §The statusline arm](https://checkwright.dev/delegation-kit/SPEC#the-statusline-arm)'s; the three mandatory snapshot lines are the floor, and supplying the optional weekly keys arms the second (7-day) pause axis.
28
+ <!-- harness-binding: the sentence that declares the binding to an adopter -->
29
+ 3. Wire a `usage.txt` producer so `usage-verdict` has a snapshot to read — point your harness `statusLine` at `bash "<project-dir>/gate-sdk/bin/run-gates.sh" --statusline` (`<project-dir>` is your harness's project-directory variable, here and in the two hook registrations; Claude Code's is `${CLAUDE_PROJECT_DIR}`), point `DELEGATION_KIT_REFRESH_CMD` at the gate binary `GATE_SDK_NATIVE_BIN` names with its `--usage-poll` arm so every verdict call refreshes the snapshot on demand (or wire the same poller under a timer), keeping it fresh while a supervising session sits static, or have any producer honour the snapshot contract ([SPEC.md §The usage.txt contract](https://checkwright.dev/delegation-kit/SPEC#the-usagetxt-contract)). The statusline producer also renders a status bar, whose field set is [SPEC.md §The statusline arm](https://checkwright.dev/delegation-kit/SPEC#the-statusline-arm)'s; the three mandatory snapshot lines are the floor, and supplying the optional weekly keys arms the second (7-day) pause axis.
30
30
 
31
- 4. Optional — wire the Agent budget guard: register `bash gate-sdk/bin/run-gates.sh --hook agent-budget-guard` under `PreToolUse` matcher `Agent` in `.claude/settings.json`. There is nothing to copy: the guard is a binary arm, and the `command` field names it directly. It fires `usage-verdict` at every dispatch, blocking on a PAUSE verdict and advising otherwise ([SPEC.md §The delegation model](https://checkwright.dev/delegation-kit/SPEC#the-delegation-model)). Unwired, it is inert.
31
+ 4. Optional — wire the Agent budget guard: register the gate binary `GATE_SDK_NATIVE_BIN` names, under `<project-dir>` and with no executable suffix, as a hook's `command` under `PreToolUse` matcher `Agent` in your harness settings file, with `--hook agent-budget-guard` as its `args`. There is nothing to copy: the guard is a binary arm, and the registration names it directly. It fires `usage-verdict` at every dispatch, blocking on a PAUSE verdict and advising otherwise ([SPEC.md §The delegation model](https://checkwright.dev/delegation-kit/SPEC#the-delegation-model)). Unwired, it is inert. <!-- harness-binding: a wiring instruction an adopter pastes -->
32
32
 
33
- 5. Optional — wire the turn-end liveness hook: register `bash gate-sdk/bin/run-gates.sh --hook subagent-stop-liveness` under `SubagentStop` in `.claude/settings.json` (that event takes no matcher). It logs one line per subagent turn end saying whether any launch record named a live producer, and **refuses the turn end** — exit 2, its stderr the blocking reason — when that reading is a refusal verdict, or while the payload's `background_tasks` shows a running `shell` task of its own; it emits no hook JSON on either path, except a `systemMessage` warning when a knob it reads cannot resolve and the turn end went unguarded ([SPEC.md §The turn-end liveness hook](https://checkwright.dev/delegation-kit/SPEC#the-turn-end-liveness-hook)). There is no knob: unwiring is the valve. Unwired, it is inert; wiring it is a permission-surface change, so it is yours to make.
33
+ 5. Optional — bind your tiers: set one `DELEGATION_KIT_TIER_MODEL[] = <class>=<model>[,<effort>]` element per class in your delegation config, an alias to follow the newest model or an exact model id to pin one, the classes being `judgment`, `routing` and `mechanical` unless `DELEGATION_KIT_TIER_CLASSES` names your own; declare each agent definition's `tier:` in its frontmatter, then run the gate binary `GATE_SDK_NATIVE_BIN` names with `--emit agent-tiers --write` to generate its `model:`, and its `effort:` where the class binds one ([SPEC.md §The tier binding](https://checkwright.dev/delegation-kit/SPEC#the-tier-binding)).
34
34
 
35
- 6. Optional — retune: copy `templates/delegation-config.knobs` into your gates dir and override the budget thresholds, the gate-file globs, or the meta-layer prefixes. Defaults are this repo's single-operator layout.
35
+ 6. Optional — wire the turn-end liveness hook: register the same binary as a hook's `command` under `SubagentStop` in your harness settings file (that event takes no matcher), with `--hook subagent-stop-liveness` as its `args`. It logs one line per subagent turn end saying whether any launch record named a live producer, and **refuses the turn end** — exit 2, its stderr the blocking reason — when that reading is a refusal verdict, or while the payload's live tasks show a running `shell` task of its own; it emits no hook JSON on either path, except an operator-notice warning when a knob it reads cannot resolve and the turn end went unguarded ([SPEC.md §The turn-end liveness hook](https://checkwright.dev/delegation-kit/SPEC#the-turn-end-liveness-hook); the roles are [gate-sdk/SPEC.md §The hook contract](https://checkwright.dev/gate-sdk/SPEC#the-hook-contract)'s). There is no knob: unwiring is the valve. Unwired, it is inert; wiring it is a permission-surface change, so it is yours to make. <!-- harness-binding: a wiring instruction an adopter pastes -->
36
+
37
+ 7. Optional — retune: copy `templates/delegation-config.knobs` into your gates dir and override the budget thresholds, the gate-file globs, or the meta-layer prefixes. Defaults are this repo's single-operator layout.
36
38
 
37
39
  ## Use
38
40
 
@@ -42,6 +44,10 @@ Run these arms with the gate binary `GATE_SDK_NATIVE_BIN` names, where `init` pl
42
44
  gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
43
45
  "$gates" --usage-verdict # budget verdict: exit 0 OK/RESET-OK, 1 PAUSE, 2 STALE
44
46
  "$gates" --usage-verdict <snapshot> # verdict for an explicit usage.txt (test injection)
47
+ "$gates" --model-verdict --expect judgment # running-model verdict against the tier binding: exit 0 OK, 1 BELOW/UNBOUND, 2 UNKNOWN
48
+ "$gates" --foreign-run <adapter> <prompt-file> # one audit on a configured foreign adapter, in a scratch clone: exit 0 OK, 1 REFUSED, 2 FAILED
49
+ "$gates" --foreign-run <adapter> --budget # that adapter's budget verdict, spawning nothing: exit 0 OK/RESET-OK, 1 PAUSE, 2 STALE/OFF
50
+ "$gates" --foreign-resume <key> <prompt-file> # the next turn of a session a resumable adapter opened: exit 0 OK, 1 REFUSED, 2 FAILED; --close ends it
45
51
  "$gates" --emit usage-trend # footprint trend over the sample log (needs DELEGATION_KIT_USAGE_HISTORY)
46
52
  "$gates" --wait-probe sweep # wait-primitive probe: the harness-uninvolved reproducer (sleeps for its declared sweep)
47
53
  "$gates" --wait-probe report # classify the recorded trials and print the verdict (exit 1 when none are)
@@ -65,4 +71,4 @@ The `usage-verdict` decision table and the `usage-trend` assertions are not shel
65
71
 
66
72
  ## License
67
73
 
68
- Apache-2.0. The license text is `LICENSE`, beside this file in an installed copy and at the repository root in the source tree.
74
+ Licensed under Apache-2.0, with the text in `LICENSE` beside this file in an installed copy and at the repository root in the source tree.
@@ -1,3 +1,4 @@
1
1
  # graph: couples=knob:DELEGATION_KIT_AGENT_DIR/*.md dir=one valve=none tier=precommit
2
+ # projection: knob:DELEGATION_KIT_AGENT_DIR/*.md
2
3
  # install: on-surface
3
4
  # spec: delegation-kit/SPEC.md §check-agent-tier-explicit — every agent definition under the scanned directory declares a `model:` field in its frontmatter (an explicit `inherit` passes; only omission reds)
@@ -1,3 +1,3 @@
1
- # graph: couples=kit:*.sh dir=one valve=none tier=precommit
1
+ # graph: couples=kit:*.sh,kit:*.gate,kit:*.ps1,knob:GATE_SDK_GATES_DIR/*.ps1,knob:DELEGATION_KIT_GATE_FILES dir=one valve=none tier=precommit
2
2
  # install: zero-config
3
3
  # spec: delegation-kit/SPEC.md §Verify after every agent commit — a gate-weakening commit is blocked by shape (A gate edits stay meta-isolated; B a new path-exemption can't excuse a co-staged file)
@@ -0,0 +1,3 @@
1
+ # Generated at pack time from this kit's spec; lifecycle-kit/SPEC.md §The close-surface roster.
2
+ close-surface: .workflow/subagent-stop-liveness.log advisory reclaim=bash gate-sdk/bin/run-gates.sh --emit capture-drain .workflow/subagent-stop-liveness.log
3
+ close-surface: .workflow/wait-primitive-evidence.txt advisory reclaim=bash gate-sdk/bin/run-gates.sh --emit capture-drain .workflow/wait-primitive-evidence.txt
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: stale-effort
3
+ description: Fixture agent definition whose effort is not its class's bound effort.
4
+ tier: judgment
5
+ model: big-tier-placeholder
6
+ effort: shallow-effort-placeholder
7
+ ---
8
+
9
+ Fixture body. The model is the class's bound one and the effort is not, so the
10
+ generated effort line is stale and assertion B reds.
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: stale
3
+ description: Fixture agent definition whose model is not its class's bound model.
4
+ tier: judgment
5
+ model: cheap-tier-placeholder
6
+ ---
7
+
8
+ Fixture body. The class is bound to another model, so the generated line is
9
+ stale and assertion B reds.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: unbound
3
+ description: Fixture agent definition declaring a class the binding leaves unbound.
4
+ tier: routing
5
+ model: big-tier-placeholder
6
+ ---
7
+
8
+ Fixture body. No binding element names the routing class, so assertion B reds.
@@ -1 +1,4 @@
1
1
  no 'model:' field in frontmatter
2
+ stale model: cheap-tier-placeholder (tier 'judgment' is bound to big-tier-placeholder)
3
+ tier 'routing' names no bound class
4
+ stale effort: shallow-effort-placeholder (tier 'judgment' is bound to big-tier-placeholder,deep-effort-placeholder)
@@ -0,0 +1,3 @@
1
+ # spec: delegation-kit/SPEC.md §check-agent-tier-explicit — the case's binding: two classes bound, one with an effort, routing left unbound
2
+ DELEGATION_KIT_TIER_MODEL[] = judgment=big-tier-placeholder,deep-effort-placeholder
3
+ DELEGATION_KIT_TIER_MODEL[] = mechanical=cheap-tier-placeholder