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
@@ -14,12 +14,15 @@ fallthrough git status > .tmp/out.log
14
14
  fallthrough git status > .tmp\out.log
15
15
  fallthrough git status 2>&1
16
16
 
17
- # rule `git_grep` — a working-tree search
17
+ # rule `git_grep` — a working-tree search, its words read through the git read
18
18
  block git grep foo
19
+ block git 'grep' foo
20
+ block git gre`p foo
19
21
  fallthrough git grep foo HEAD
20
22
 
21
23
  # rule `git_mutation_under_producer`'s decline arm and rule `git_rewrite`
22
24
  advise git commit --amend --no-edit
25
+ advise git 'commit' --amend
23
26
  fallthrough git commit -m 'x'
24
27
 
25
28
  # rule `background_no_record`'s shell form — a detached Start-Process launch; -Wait, -WhatIf and a
@@ -32,12 +35,43 @@ fallthrough Start-Process -wa pwsh
32
35
  fallthrough Start-Process pwsh -WhatIf
33
36
  fallthrough Start-Job { Start-Sleep 60 }
34
37
 
35
- # rule `rm_tracked` — the deletion commands, their parameters, and the git rm force arm
38
+ # rule `commit_only_paths` — a git add then a pathless commit; a commit naming its path passes
39
+ block git add tracked.md; git commit -m x
40
+ block git add tracked.md; git 'commit' -m x
41
+ fallthrough git add tracked.md; git commit -o tracked.md -m x
42
+
43
+ # rule `git_stash` — a tree-rewriting stash on the main checkout; a form that leaves the tree passes
44
+ block git stash
45
+ block git 'stash' push
46
+ block git stash "pop"
47
+ block git sta`sh
48
+ fallthrough git stash list
49
+ fallthrough git stash 'list'
50
+
51
+ # rule `rm_tracked` — the deletion commands, their parameters, and the git rm force arm; a
52
+ # backtick escape outside quotes resolves to its character, one spelling a control character is
53
+ # no such path, and only a bare comma parts a word into paths
36
54
  block Remove-Item tracked.md
55
+ block Remove-Item trac`ked.md
56
+ block Remove-Item two` words.md
57
+ block Remove-Item -Path:trac`ked.md
58
+ block Remove-Item scratch.txt,'tracked.md'
59
+ block Remove-Item 'scratch.txt,x',tracked.md
60
+ fallthrough Remove-Item `tracked.md
61
+ fallthrough Remove-Item 'tracked.md,x'
62
+ fallthrough Remove-Item "tracked.md,x"
63
+ fallthrough Remove-Item tracked.md`,x
64
+ fallthrough Remove-Item -Path:'tracked.md,x'
37
65
  block rm tracked.md
38
66
  block remove-item -Recurse scratch.txt,tracked.md
39
67
  block Remove-Item -Path:tracked.md
40
68
  block git rm -f tracked.md
69
+ block Remove-Item 'tracked.md'
70
+ block del "tracked.md"
71
+ block Remove-Item 'two words.md'
72
+ block ri .\tracked.md
73
+ block Remove-Item 'track*.md'
74
+ fallthrough del 'scratch.txt'
41
75
  fallthrough del scratch.txt
42
76
  fallthrough Remove-Item -Path tracked.md -WhatIf
43
77
  fallthrough Remove-Item -Filter tracked.md scratch.txt
@@ -55,6 +89,13 @@ block powershell -NoProfile -ExecutionPolicy Bypass .tmp/x.ps1
55
89
  block Get-Content -Raw .tmp/x.ps1 | iex
56
90
  block bash .tmp/x.sh
57
91
  block python3 .tmp/x.py
92
+ # a quoted scratch path is a string expression, printed rather than run, alone and piped to a
93
+ # reader; under the call operator or into Invoke-Expression it runs
94
+ fallthrough '.tmp/x.ps1'
95
+ fallthrough ".tmp\x.ps1"; Get-ChildItem
96
+ fallthrough '.tmp/x.ps1' | Select-Object -First 1
97
+ block & '.tmp/x.ps1'
98
+ block '.tmp/x.ps1' | iex
58
99
  fallthrough & tools/build.ps1
59
100
  fallthrough pwsh -File tools/build.ps1
60
101
  fallthrough pwsh -Command 'Get-Date'
@@ -69,6 +110,14 @@ advise @'@NL@cd x; rm tracked.md@NL@'@ | git commit -F -
69
110
  fallthrough # cd x; ls
70
111
  fallthrough <# cd x; ls #> git status
71
112
  fallthrough git status `; cd x
113
+ # a here-string is one word of the word read, so a quoted or escaped word beside one is read by value
114
+ block git 'stash' push; @'@NL@x@NL@'@ | Write-Output
115
+ block Write-Output @"@NL@x@NL@"@; r`m tracked.md
116
+ block c`d deploy; ls; Write-Output @'@NL@x; y@NL@'@
117
+ block ls 2> 'op.err'; Write-Output @'@NL@x@NL@'@
118
+ fallthrough git 'stash' push; @'@NL@x@NL@'@; echo 'open
119
+
120
+ # rule `cd_compound` through the reader's chain operators, each parting a statement
72
121
  block cd x && git status
73
122
  block cd x || git status
74
123
 
@@ -0,0 +1,14 @@
1
+ # guard-kit variant limits — <floor><TAB><rule><TAB><transform>, read by the variant lane of
2
+ # --run-guard-tests (guard-kit/SPEC.md §Testing). A row is deleted in the commit that lifts its
3
+ # read or withholds its grant, and the lane fails on a row nothing needs.
4
+ fallthrough pgrep_self_match part-arg
5
+ # the arm (a) of rule `emitter_write` fires only on a write the literal test passes, so a quoted
6
+ # or escaped re-spelling of a compounded scratch write reaches the harness's own path
7
+ fallthrough emitter_write sq-lead
8
+ fallthrough emitter_write dq-lead
9
+ fallthrough emitter_write esc-lead
10
+ fallthrough emitter_write part-lead
11
+ fallthrough emitter_write sq-arg
12
+ fallthrough emitter_write dq-arg
13
+ fallthrough emitter_write esc-arg
14
+ fallthrough emitter_write part-arg
@@ -2,9 +2,9 @@
2
2
 
3
3
  1. **Rank what nothing granted.** Run `--emit capture-drain .workflow/prompt-friction.log` on the gate binary `GATE_SDK_NATIVE_BIN` names, then `--emit scan-prompts` over the path it printed — it filters the drain against the committed allowlist and the harness's built-in read-only auto-allows, then ranks the survivors by command pattern.
4
4
  2. **Resolve each recurring pattern by the triage criterion** — never default to the allowlist:
5
- - **Allowlist** (`Bash(...)` in the committed settings) when the command is safe *and already in the form to reinforce* — static, glob-matched.
5
+ - **Allowlist** (a shell rule in the committed settings, gate-sdk/SPEC.md §The hook contract) when the command is safe *and already in the form to reinforce* — static, glob-matched.
6
6
  - **Guard rule** when a *better form exists* (steer to it) or the decision needs logic a static glob cannot express.
7
- - **Habit change** (a noted convention) for a true one-off. Caution: an allowlist entry can *mask* a steering opportunity — before blessing a form, confirm it is the one to reinforce. **Diagnose before you reach for the allowlist.** A pattern can rank high while already being granted: an allowlist entry matches a *bare* command, so a call that chains (`&&`, `;`), redirects, or expands breaks the match and is decided out of band anyway. Check a ranked pattern against the committed allowlist first — if it is already there, the finding is (c) habit change, and adding coverage buys nothing while reading as a fix. A row in the PowerShell section takes the same criterion. Its allowlist entry is spelled `PowerShell(…)`, and its guard-rule disposition is a PowerShell reading of the generic rule it matches.
7
+ - **Habit change** (a noted convention) for a true one-off. Caution: an allowlist entry can *mask* a steering opportunity — before blessing a form, confirm it is the one to reinforce. **Diagnose before you reach for the allowlist.** A pattern can rank high while already being granted: an allowlist entry matches a *bare* command, so a call that chains (`&&`, `;`), redirects, or expands breaks the match and is decided out of band anyway. Check a ranked pattern against the committed allowlist first — if it is already there, the finding is (c) habit change, and adding coverage buys nothing while reading as a fix. A row in the PowerShell section takes the same criterion. Its allowlist entry is a rule for the PowerShell tool, and its guard-rule disposition is a PowerShell reading of the generic rule it matches.
8
8
  3. **Review the wakeup log** if the wakeup-guard is wired: drain it with `--emit capture-drain .workflow/wakeup-attempts.log`, read the printed path, act on any surfaced intent, then rerun that with `--done`.
9
9
  4. **Prune and narrow the local overlay.** Run `--emit compare-settings-allow` on the same binary — it reports three sets, and each has its own disposition.
10
10
  - **Redundant**: remove every listed `settings.local.json` entry (a committed glob already grants it).
@@ -15,10 +15,19 @@
15
15
  # spec: guard-kit/SPEC.md §The generic ruleset — declare the write and execute forms of each read-only roster member you add (rule `ro_pipeline`'s grammar, 'none' when it has none); an undeclared member is withheld, and an entry for a default member replaces the kit's declaration
16
16
  # GUARD_KIT_RO_FORMS[md5sum] = none
17
17
 
18
+ # spec: guard-kit/SPEC.md §Layout and configuration — the write utilities rule `bounded_write` admits inside a scratch dir (default mkdir touch rm rmdir mv cp tee find); an empty line turns the utility grants off and keeps the bounded redirect
19
+ # GUARD_KIT_WRITE_BINS[] = mkdir
20
+
18
21
  # spec: guard-kit/SPEC.md §Consumer rules — your own rules, as a command the guard runs before its generic ruleset: one argv element per line, spawned without a shell; the kit ships none
19
22
  # GUARD_KIT_CONSUMER_RULES_CMD[] = bash
20
23
  # GUARD_KIT_CONSUMER_RULES_CMD[] = scripts/guard-rules.sh
21
24
 
25
+ # spec: guard-kit/SPEC.md §Testing — your own decision table for that command, in cases.tsv's grammar; --run-guard-tests runs its rows against the command
26
+ # GUARD_KIT_CONSUMER_CASES = scripts/guard-rules-cases.tsv
27
+
28
+ # spec: guard-kit/SPEC.md §Testing — your own limits table, in variant-limits.tsv's grammar; naming it has --run-guard-tests derive your rows' re-spellings and hold them to it (default empty, which derives none)
29
+ # GUARD_KIT_CONSUMER_VARIANT_LIMITS = scripts/guard-rules-variant-limits.tsv
30
+
22
31
  # spec: guard-kit/SPEC.md §The generic ruleset — rule `worktree_confinement`'s admitted read from a linked worktree (default read-only); off admits none, leaving the harness's read tool the one route to a main-checkout file
23
32
  # GUARD_KIT_WORKTREE_READS = off
24
33
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "//": "guard-kit recommended allow entries — merge by hand into .claude/settings.json. Nothing merges it for you: review each entry against guard-kit/SPEC.md §The recommended allowlist first, then union the ones you accept into permissions.allow; never replace the array, which drops every grant you already have. Two doors are granted because two are spawned: the gate binary, which is what a session runs, and the shell front-end, which the fail-open hook wiring in settings-hooks.json still spawns and which a clone reaches before its first build. Replace @GATE_SDK_NATIVE_BIN@ with the value your gate-sdk-config.knobs gives that knob, spelled as a command (the binary prints it: --emit knob-values GATE_SDK_NATIVE_BIN). Left unreplaced the entry matches no command, so you meet a permission prompt rather than a silent grant.",
2
+ "//": "guard-kit recommended allow entries — merge by hand into .claude/settings.json. Nothing merges it for you: review each entry against guard-kit/SPEC.md §The recommended allowlist first, then union the ones you accept into permissions.allow; never replace the array, which drops every grant you already have. Two doors are granted: the gate binary, which is what a session runs, and the shell front-end, which a clone reaches before its first build and a session running the front-end spawns. Replace @GATE_SDK_NATIVE_BIN@ with the value your gate-sdk-config.knobs gives that knob, spelled as a command (the binary prints it: --emit knob-values GATE_SDK_NATIVE_BIN). Left unreplaced the entry matches no command, so you meet a permission prompt rather than a silent grant.",
3
3
  "permissions": {
4
4
  "allow": [
5
5
  "Bash(@GATE_SDK_NATIVE_BIN@ *)",
@@ -1,23 +1,23 @@
1
1
  {
2
- "//": "guard-kit hook wiring — merge into .claude/settings.json. The shell-guard is the PreToolUse(Bash|PowerShell) hook, a compiled gate-binary member; the wakeup-guard and the path-guard block are optional (drop a block to skip it). The third block shows the path-shaped guard shape lifecycle-kit's workflow-state-guard is the shipped instance of. Project rules go in a command named by GUARD_KIT_CONSUMER_RULES_CMD in your knob file, never a copied script. On native Windows the harness runs these commands under Git for Windows' bash, so the same wiring serves every host; the shell-guard reads both shell tools; a consumer rule command receives both, and reads `tool_name` to tell them apart.",
2
+ "//": "guard-kit hook wiring — merge into .claude/settings.json. The shell-guard is the PreToolUse(Bash|PowerShell) hook, a compiled gate-binary member; the wakeup-guard and the path-guard block are optional (drop a block to skip it). The third block shows the path-shaped guard shape lifecycle-kit's workflow-state-guard is the shipped instance of. At the merge, replace @GATE_SDK_NATIVE_BIN@ in each command 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. This is not the allow template's rule: write no relative-command prefix here. Left unreplaced the command starts no program and the guard is off. A hook whose program cannot start lets the call through; to refuse it instead, set the harness's onFailure field to \"block\" on the hook, and try it on your harness build before relying on it. Project rules go in a command named by GUARD_KIT_CONSUMER_RULES_CMD in your knob file, never a copied script. The shell-guard reads both shell tools; a consumer rule command receives both, and reads `tool_name` to tell them apart.",
3
3
  "hooks": {
4
4
  "PreToolUse": [
5
5
  {
6
6
  "matcher": "Bash|PowerShell",
7
7
  "hooks": [
8
- { "type": "command", "command": "bash gate-sdk/bin/run-gates.sh --hook shell-guard" }
8
+ { "type": "command", "command": "${CLAUDE_PROJECT_DIR}/@GATE_SDK_NATIVE_BIN@", "args": ["--hook", "shell-guard"] }
9
9
  ]
10
10
  },
11
11
  {
12
12
  "matcher": "ScheduleWakeup|CronCreate",
13
13
  "hooks": [
14
- { "type": "command", "command": "bash gate-sdk/bin/run-gates.sh --hook wakeup-guard" }
14
+ { "type": "command", "command": "${CLAUDE_PROJECT_DIR}/@GATE_SDK_NATIVE_BIN@", "args": ["--hook", "wakeup-guard"] }
15
15
  ]
16
16
  },
17
17
  {
18
18
  "matcher": "Write|Edit",
19
19
  "hooks": [
20
- { "type": "command", "command": "bash gate-sdk/bin/run-gates.sh --hook workflow-state-guard" }
20
+ { "type": "command", "command": "${CLAUDE_PROJECT_DIR}/@GATE_SDK_NATIVE_BIN@", "args": ["--hook", "workflow-state-guard"] }
21
21
  ]
22
22
  }
23
23
  ]
@@ -4,7 +4,7 @@ The iteration stage state machine for coding-agent-assisted delivery: stage skil
4
4
 
5
5
  Why: a stateless agent session doesn't reliably re-read process prose. So the process state lives in two files a gate can read, and every stage skill stamps its invocation as its first step (mechanized by the `--enter-stage <stage>` arm on the gate binary `GATE_SDK_NATIVE_BIN` names, so the misformat-prone hand ritual is one command). That stamp *is* the stage transition — there is no second copy of the cursor to keep in sync, and stage motion writes no queue at all. `check-stage-evidence` verifies the stamp file's grammar and that every stamp belongs to the header's iteration; `check-stage-entry` verifies the predecessor stamp, the drained queue at validate entry, and, at build entry, the cross-component audit trigger and no unrun inferred-claim marker. See [SPEC.md](https://checkwright.dev/lifecycle-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
  The linear stage walk is the default; the gate-legal ways to leave it — abandon, split, reopen — compose existing mechanism with no new tooling ([SPEC.md §Deviation transitions](https://checkwright.dev/lifecycle-kit/SPEC#deviation-transitions)).
10
10
 
@@ -29,12 +29,13 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
29
29
  check-audit-roster # inert until LIFECYCLE_KIT_AUDIT_ROSTER_FILE names a roster
30
30
  check-scratch-citation # no permanent surface points a reader into per-iteration scratch
31
31
  check-gap-inbox-neutrality # inert until a gap is filed (--emit file-gap)
32
+ check-disposed-findings # inert until a drain discards a finding
32
33
  check-stamp-subject # commit-msg tier: a stamp commit's subject scope is its stage
33
34
  check-dispatch-entry # commit-msg tier: inert until a lead declares a dispatch (--enter-stage --dispatch)
34
35
  ```
35
36
  <!-- gate-roster:end -->
36
37
 
37
- They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and the hooks run those their `# graph:` manifests trigger, read at commit (`check-stamp-subject` and `check-dispatch-entry` in the commit-msg hook). `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes the pre-commit hook once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered.
38
+ They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and the hooks run those their `# graph:` manifests trigger, read at commit (`check-stamp-subject` and `check-dispatch-entry` in the commit-msg hook). `--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.
38
39
 
39
40
  2. Give the queue file its header and each evidence file its skeleton — the stage-stamp file and the lesson-disposition file (`LIFECYCLE_KIT_LESSON_EVIDENCE_FILE`, both boundary-reset to their header). The queue header line:
40
41
 
@@ -56,7 +57,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
56
57
 
57
58
  4. Point your always-loaded agent file at the machine — run `--install-lifecycle` on the gate binary `GATE_SDK_NATIVE_BIN` names. It writes a marker-bounded registration block (the state machine, the stage roster as skill invocations, the SPEC link) into the file `LIFECYCLE_KIT_AGENT_FILE` names, the roster derived from your config so a reshape (step 5) flows in on a re-run. `check-lifecycle-registration` (step 1) holds the block in lockstep. The same run also writes the merge-attribute block into `.gitattributes` — a `merge=iteration-scoped` line per per-iteration state surface (these resolve to the arriving branch at a merge — [SPEC.md §Multi-operator semantics](https://checkwright.dev/lifecycle-kit/SPEC#multi-operator-semantics)) and a `merge=union` line for each committed inbox (their append-only bullets must survive a concurrent merge — [SPEC.md §The committed gap inbox](https://checkwright.dev/lifecycle-kit/SPEC#the-committed-gap-inbox), [§The consult inbox](https://checkwright.dev/lifecycle-kit/SPEC#the-consult-inbox)) — and registers the keep-ours driver in your clone's git config (per-clone, the `--install-hooks` opt-in class; the git-native union driver needs no such step). `check-merge-attrs` (step 1) holds the block in parity with the derived supersede and union sets.
58
59
 
59
- 5. Optional — narrow the hand-edit window: register `bash gate-sdk/bin/run-gates.sh --hook workflow-state-guard` as a `PreToolUse(Write|Edit)` hook (guard-kit's `templates/settings-hooks.json` carries the block). It refuses an agent write to the stage-stamp file, whose only sanctioned writer is the `--enter-stage` arm — the gates that would catch a hand-stamp all fire at commit, and an uncommitted one moves the cursor for a whole session ([SPEC.md §check-stage-evidence](https://checkwright.dev/lifecycle-kit/SPEC#check-stage-evidence)). With `LIFECYCLE_KIT_STAGE_SESSION_TYPES` set, it also refuses a dispatched stage session's write before that session's stamp, and its write outside the scratch dir once the cursor has left its stage. Requires guard-kit vendored.
60
+ 5. Optional — narrow the hand-edit window: register the gate binary `GATE_SDK_NATIVE_BIN` names, under `<project-dir>`, as the `command` of a `PreToolUse(Write|Edit)` hook, with `--hook workflow-state-guard` as its `args` (guard-kit's `templates/settings-hooks.json` carries the block, with `<project-dir>`, your harness's project-directory variable, spelled for Claude Code, and the binary as a placeholder its note says how to replace). It refuses an agent write to the stage-stamp file, whose only sanctioned writer is the `--enter-stage` arm — the gates that would catch a hand-stamp all fire at commit, and an uncommitted one moves the cursor for a whole session ([SPEC.md §check-stage-evidence](https://checkwright.dev/lifecycle-kit/SPEC#check-stage-evidence)). With `LIFECYCLE_KIT_STAGE_SESSION_TYPES` set, it also refuses a dispatched stage session's write before that session's stamp, and its write outside the scratch dir once the cursor has left its stage. Requires guard-kit vendored. <!-- harness-binding: a wiring instruction an adopter pastes -->
60
61
 
61
62
  6. Optional — reshape the machine: copy `templates/lifecycle-config.knobs` into your gates dir and set stages, predecessors, drain/audit stages, section names, or file paths, one `NAME = value` or `NAME[] = element` line each. Defaults are this repo's own lifecycle; `--emit knob-roster` on the gate binary `GATE_SDK_NATIVE_BIN` names prints them.
62
63
 
@@ -71,16 +72,20 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
71
72
  "$gates" --enter-stage <stage> # stamp a stage entry (the transition itself)
72
73
  "$gates" --install-lifecycle # (re)write the registration and merge-attribute blocks
73
74
  "$gates" --emit file-gap "<gap>" # route a work-shaped finding to the gap inbox
74
- "$gates" --emit file-consult "<item>" # route an item owed to the consult skill to its inbox
75
+ "$gates" --emit file-consult "<item>" # route a ruling to reconsider or a request for advice to the consult inbox
76
+ "$gates" --emit consult-count # one line counting the consult inbox, nothing when it is empty
75
77
  "$gates" --emit file-survey "<question>" "<corpus>" "<oracle>" "<inferred>" "<finding>"
78
+ "$gates" --emit journal "<finding>" # append to the resume journal of the stage you entered
79
+ "$gates" --emit journal --lead "<finding>" # a lead session: append to the lead journal its opener opened
76
80
  "$gates" --emit cite-survey "<heading-substring>" # one carried survey, inline-ready
81
+ "$gates" --emit stage-contract <stage> [--mode sweep] # a stage's contract for a foreign agent in a clone, which commits nothing
77
82
  "$gates" --emit session-id # the canonical stamp id, by the derivation order
78
83
  "$gates" --emit ruling-staleness ["<ruling name>"…] # fired conditions, undeclared ones, citing sites
79
84
  ```
80
85
 
81
- `--emit session-id` is [SPEC.md §bin/session-id.sh](https://checkwright.dev/lifecycle-kit/SPEC#binsession-idsh)'s derivation order, which `--enter-stage` reads for you: reach for it directly only where a session writes an id itself, as `templates/lead.md`'s session-role marker step does. It takes no argument and resolves no knob. **The front-end route reads the cwd `bin/run-gates.sh` cds to** — the git toplevel — so a caller standing elsewhere whose sessions dir is the cwd-slugged default invokes the binary's `--emit-session-id` arm directly instead, which is what `--enter-stage` does.
86
+ `--emit session-id` is [SPEC.md §bin/session-id.sh](https://checkwright.dev/lifecycle-kit/SPEC#binsession-idsh)'s derivation order, which `--enter-stage` reads for you: reach for it directly only where a session writes an id itself. It takes no argument and resolves no knob. **The front-end route reads the cwd `bin/run-gates.sh` cds to** — the git toplevel — so a caller standing elsewhere whose sessions dir is the cwd-slugged default invokes the binary's `--emit-session-id` arm directly instead, which is what `--enter-stage` does.
82
87
 
83
- The two survey arms are the capture and citation affordances of [SPEC.md §The survey record](https://checkwright.dev/lifecycle-kit/SPEC#the-survey-record). `--` ends option processing for either, and a positional beginning with `-` without it, `--help` included, is a refusal that prints the arm's usage at exit 2 ([gate-sdk/SPEC.md §The bin/-tool contract](https://github.com/checkwright/checkwright/blob/master/gate-sdk/SPEC.md#the-bin-tool-contract)).
88
+ The two survey arms are the capture and citation affordances of [SPEC.md §The survey record](https://checkwright.dev/lifecycle-kit/SPEC#the-survey-record). `--` ends option processing for either, and a positional beginning with `-` without it, `--help` included, is a refusal that prints the arm's usage at exit 2 ([gate-sdk/SPEC.md §The bin/-tool contract](https://checkwright.dev/gate-sdk/SPEC#the-bin-tool-contract)).
84
89
 
85
90
  ## Test
86
91
 
@@ -94,4 +99,4 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
94
99
 
95
100
  ## License
96
101
 
97
- Apache-2.0. The license text is `LICENSE`, beside this file in an installed copy and at the repository root in the source tree.
102
+ 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.
@@ -0,0 +1,3 @@
1
+ # graph: couples=knob:LIFECYCLE_KIT_DISPOSED_FILE dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: lifecycle-kit/SPEC.md §check-disposed-findings — every line below the disposed-findings record's contract header is a record: a calendar date, at least one backticked term with no empty span, and non-empty prose
@@ -1,3 +1,3 @@
1
- # graph: couples=knob:LIFECYCLE_KIT_SKILLS_DIR/*.md,lifecycle-kit/templates/stages/*.md,lifecycle-kit/templates/lead.md,lifecycle-kit/templates/release-sweep.md,lifecycle-kit/templates/upgrade.md,lifecycle-kit/templates/consult.md,delegation-kit/templates/agent-execution.md dir=one valve=none tier=precommit
1
+ # graph: couples=knob:LIFECYCLE_KIT_SKILLS_DIR/*.md,kit:templates/*.md dir=one valve=none tier=precommit
2
2
  # install: never
3
3
  # spec: lifecycle-kit/SPEC.md §check-skill-binding — every binding-shim skill names an existing template and binds exactly that template's slot set
@@ -1,3 +1,3 @@
1
1
  # graph: couples=knob:LIFECYCLE_KIT_SKILLS_DIR/*.md,lifecycle-kit/templates/stages/*.md dir=one valve=none tier=precommit
2
2
  # install: never
3
- # spec: lifecycle-kit/SPEC.md §check-stage-skill-coverage — the configured stage set and the skills dir cover each other, and every stage's executed surface carries the resume-journal step's citation
3
+ # spec: lifecycle-kit/SPEC.md §check-stage-skill-coverage — the configured stage set and the skills dir cover each other, every stage's executed surface carries the resume-journal step's citation, and every stage bound to a foreign adapter carries the host protocol's
@@ -0,0 +1,2 @@
1
+ # Generated at pack time from this kit's spec; lifecycle-kit/SPEC.md §The close-surface roster.
2
+ close-surface: .workflow/gap-inbox.md forced=lifecycle-kit/SPEC.md §bin/enter-stage.sh
@@ -0,0 +1,82 @@
1
+ #!/usr/bin/env bash
2
+ # spec: lifecycle-kit/SPEC.md §The iteration boundary — the set record end-to-end through a sandboxed enter-stage: the boundary entry drops it and keeps the preamble above it, its report names the drop, and --rename leaves it in place
3
+ set -uo pipefail
4
+ source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
5
+
6
+ # spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the second sanctioned caller: this harness
7
+ # drives the arm from a non-git sandbox cwd, which bin/run-gates.sh refuses by design (it cds to
8
+ # the git toplevel and a `mktemp -d` is no repository), so it resolves the binary through
9
+ # gate_arm_run rather than through that front-end.
10
+ SANDBOX="$(mktemp -d)"
11
+ trap 'rm -rf "$SANDBOX"' EXIT
12
+
13
+ fails=0
14
+ note() { echo " FAIL [$1]: $2"; fails=$((fails + 1)); }
15
+
16
+ seed() { # $1=sandbox subdir $2=last stamp's stage
17
+ local sb="$1"
18
+ mkdir -p "$sb/.workflow" "$sb/scratch"
19
+ cat >"$sb/TASK-QUEUE.md" <<'EOF'
20
+ # TASK-QUEUE.md
21
+
22
+ ## Iteration: demo-iteration
23
+
24
+ A consumer preamble that stays.
25
+
26
+ **Set record**
27
+
28
+ **Push need (2026-06-01, inside the budget):** the closing push spends the one run.
29
+
30
+ **Direction (2026-06-01, operator direction):** the set lands as one unit.
31
+
32
+ ---
33
+
34
+ ## New Features
35
+
36
+ ## Technical Debt
37
+
38
+ ## Done
39
+ EOF
40
+ cat >"$sb/.workflow/WORKFLOW-STATE.txt" <<EOF
41
+ # contract: lifecycle-kit/SPEC.md §check-stage-evidence
42
+
43
+ ---
44
+
45
+ demo-iteration scope aaaaaaaa 2026-06-01 none
46
+ demo-iteration $2 dddddddd 2026-06-04 none
47
+ EOF
48
+ }
49
+
50
+ run_enter() { # $1=sandbox subdir, rest = argv after the tool name
51
+ local sb="$1"; shift
52
+ ( cd "$sb" && gate_env GATE_SDK_TMP_DIR=scratch LIFECYCLE_KIT_SESSION_ID=deadbeef01 \
53
+ && gate_arm_run --enter-stage "$@" 2>&1 )
54
+ }
55
+
56
+ # --- the boundary entry drops the set record and keeps the preamble ---
57
+ bnd="$SANDBOX/boundary"
58
+ seed "$bnd" close
59
+ out="$(run_enter "$bnd" scope)"; rc=$?
60
+ [[ "$rc" -eq 0 ]] || note boundary-entry "want exit 0, got $rc -- $out"
61
+ grep -qF 'Set record' "$bnd/TASK-QUEUE.md" && note drop-opening "the set record's opening line survived the boundary"
62
+ grep -qF 'Push need' "$bnd/TASK-QUEUE.md" && note drop-record "a set-record paragraph survived the boundary"
63
+ grep -qF 'A consumer preamble that stays.' "$bnd/TASK-QUEUE.md" || note keep-preamble "the preamble above the set record was dropped"
64
+ grep -qxF '## Iteration: —' "$bnd/TASK-QUEUE.md" || note header "the header was not restarted at the unnamed form"
65
+ want=$'## Iteration: —\n\n A consumer preamble that stays.\n\n---'
66
+ [[ "$(cat "$bnd/TASK-QUEUE.md")" == *"$want"* ]] || note shape "the header region is not the preamble then the rule: $(cat "$bnd/TASK-QUEUE.md")"
67
+ grep -qF 'dropped the closing iteration' <<<"$out" || note report "the boundary report names no drop: $out"
68
+
69
+ # --- --rename leaves the set record in place ---
70
+ ren="$SANDBOX/rename"
71
+ seed "$ren" build
72
+ cp "$ren/TASK-QUEUE.md" "$ren/queue.before"
73
+ out="$(run_enter "$ren" --rename new-name)"; rc=$?
74
+ [[ "$rc" -eq 0 ]] || note rename "want exit 0, got $rc -- $out"
75
+ diff <(sed 's/^## Iteration: .*$/## Iteration:/' "$ren/queue.before") \
76
+ <(sed 's/^## Iteration: .*$/## Iteration:/' "$ren/TASK-QUEUE.md") >/dev/null \
77
+ || note rename-keep "the rename changed the queue beyond its header line"
78
+ grep -qxF '## Iteration: new-name' "$ren/TASK-QUEUE.md" || note rename-header "the rename did not rewrite the header"
79
+
80
+ [[ "$fails" -eq 0 ]] || { echo "boundary-set-record.test: $fails assertion(s) failed"; exit 1; }
81
+ echo "boundary-set-record.test: clean (the boundary drops the set record, keeps the preamble above it and names the drop; --rename leaves it in place)"
82
+ exit 0
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the iteration-boundary linked-worktree refusal end-to-end through a sandboxed enter-stage on a real git checkout: a boundary entry with a linked worktree present refuses and writes nothing, --simulate relays the same refusal, the same tree with the worktree reaped enters cleanly, LIFECYCLE_KIT_BOUNDARY_WORKTREE_CHECK=0 turns it off, a non-git tree skips the check rather than failing on it; and the liveness classification: each of the four class readings, the empty-knob default that classifies nothing, the loss report on a residue path and on a live one, the live class's loss-gated reap remedy in place of a wait on a pid that does not establish a holder, the mid-iteration advisory that reports orphans without refusing, and a malformed pattern refused as config
2
+ # spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the iteration-boundary linked-worktree refusal end-to-end through a sandboxed enter-stage on a real git checkout: a boundary entry with a linked worktree present refuses and writes nothing, --simulate relays the same refusal, the same tree with the worktree reaped enters cleanly, LIFECYCLE_KIT_BOUNDARY_WORKTREE_CHECK=0 turns it off, a non-git tree skips the check rather than failing on it while a repository git refuses refuses the entry; and the liveness classification: each of the four class readings, the empty-knob default that classifies nothing, the loss report on a residue path and on a live one, the live class's loss-gated reap remedy in place of a wait on a pid that does not establish a holder, the mid-iteration advisory that reports orphans without refusing, and a malformed pattern refused as config
3
3
  set -uo pipefail
4
4
  source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
5
5
 
@@ -209,6 +209,15 @@ seed "$nogit"
209
209
  out="$(run_enter "$nogit" --simulate scope)"; rc=$?
210
210
  [[ "$rc" -eq 0 ]] || note nogit "a non-git tree failed the worktree check instead of skipping it: $out"
211
211
 
212
+ # --- a repository git refuses is no non-git tree: the entry refuses and writes nothing ---
213
+ refused="$SANDBOX/refused"
214
+ seed "$refused"
215
+ printf 'gitdir: %s/absent\n' "$refused" >"$refused/.git"
216
+ before="$(state_of "$refused")"
217
+ out="$(run_enter "$refused" scope)"; rc=$?
218
+ [[ "$rc" -eq 2 && "$out" == *"marks a repository"* ]] || note refused "a refused repository skipped the worktree check (want exit 2 naming the mark): rc=$rc $out"
219
+ [[ "$(state_of "$refused")" == "$before" ]] || note refused-write "the refused entry wrote the state file"
220
+
212
221
  [[ "$fails" -eq 0 ]] || { echo "boundary-worktree-refusal.test: $fails assertion(s) failed"; exit 1; }
213
- echo "boundary-worktree-refusal.test: clean (the boundary refuses on a linked worktree and writes nothing, --simulate relays it, the knob disables it, a reaped tree passes, a non-git tree skips; four class readings, the empty-knob default, the loss report on both a residue and a live path, the live class's loss-gated remedy, the mid-iteration advisory live and orphaned, and two malformed patterns refused as config)"
222
+ echo "boundary-worktree-refusal.test: clean (the boundary refuses on a linked worktree and writes nothing, --simulate relays it, the knob disables it, a reaped tree passes, a non-git tree skips, a refused repository refuses writing nothing; four class readings, the empty-knob default, the loss report on both a residue and a live path, the live class's loss-gated remedy, the mid-iteration advisory live and orphaned, and two malformed patterns refused as config)"
214
223
  exit 0
@@ -80,9 +80,19 @@ check_case "declared-log-with-drain" "$drained" 0 "CLOSE-SURFACES: clean"
80
80
  printf 'x\n' >"$drained/.workflow/stray.log.drain"
81
81
  check_case "drain-of-undeclared-log" "$drained" 1 ".workflow/stray.log.drain"
82
82
 
83
+ # --- a vendored kit root: no SPEC.md, its declarations carried beside it ---
84
+ vendored="$SANDBOX/vendored"
85
+ seed_repo "$vendored" ""
86
+ rm "$vendored/owners/SPEC.md"
87
+ mkdir -p "$vendored/vendored-kit"
88
+ printf '# carried\nclose-surface: .workflow/capture.log advisory reclaim=run-gates.sh --emit capture-drain .workflow/capture.log\n' >"$vendored/vendored-kit/close-surfaces.txt"
89
+ GATE_SDK_KIT_DIRS=vendored-kit check_case "vendored-root-carried" "$vendored" 0 "CLOSE-SURFACES: clean"
90
+ rm "$vendored/vendored-kit/close-surfaces.txt"
91
+ GATE_SDK_KIT_DIRS=vendored-kit check_case "vendored-root-without-carry" "$vendored" 1 ".workflow/capture.log: capture-tier workflow member with no 'close-surface:' declaration"
92
+
83
93
  if [[ "$fails" -gt 0 ]]; then
84
94
  echo "check-close-surfaces.test.sh: $fails case(s) failed"
85
95
  exit 1
86
96
  fi
87
- echo "check-close-surfaces.test.sh: clean (undeclared capture, declared-without-reclaim, a truncating reclaim, the satisfied case, a gitignored declared path outside the workflow dir, a declared log's drain folded into its row, and a drain beside no declared log reported, 7 cases)"
97
+ echo "check-close-surfaces.test.sh: clean (undeclared capture, declared-without-reclaim, a truncating reclaim, the satisfied case, a gitignored declared path outside the workflow dir, a declared log's drain folded into its row, a drain beside no declared log reported, and a vendored kit root read clean through its carried declarations and undeclared without them, 9 cases)"
88
98
  exit 0
@@ -0,0 +1,2 @@
1
+ # hermetic override arg: the record file
2
+ disposed-findings.txt
@@ -0,0 +1,5 @@
1
+ # contract: lifecycle-kit/SPEC.md §The disposed-findings record — - <YYYY-MM-DD> — `<term>`[, `<term>`]… — <finding and ground>
2
+ - 2026-01-02 — the runner notice names no term at all — discarded on the runner map's rule.
3
+ - 2026-01-03 — `stale-hook`, `` — a record whose second term is an empty span.
4
+ - 2026-01-04 — `release-flag` —
5
+ - 2026-13-01 — `nightly-image` — a record whose date is no calendar date.
@@ -0,0 +1,5 @@
1
+ no backticked term
2
+ an empty backticked term
3
+ no prose
4
+ the date is not a calendar YYYY-MM-DD
5
+ help:
@@ -0,0 +1,2 @@
1
+ # hermetic override arg: the record file
2
+ disposed-findings.txt
@@ -0,0 +1,3 @@
1
+ # contract: lifecycle-kit/SPEC.md §The disposed-findings record — - <YYYY-MM-DD> — `<term>`[, `<term>`]… — <finding and ground>
2
+ - 2026-01-02 — `nightly-image` — the nightly runner image moves under no commit of ours; discarded, since the runner map already rules that a floating label rides its migrations.
3
+ - 2026-01-05 — `hook drift`, `stale-hook` — the vendored hook drifts from its manifest between commits; discarded, since the hook is regenerated from the manifests at every commit and cannot hold a stale copy.
@@ -0,0 +1 @@
1
+ DISPOSED-FINDINGS: clean (2 record(s)
@@ -1,3 +1,4 @@
1
1
  retired 'recurrence of `<slug>`:' verdict
2
2
  not a gap bullet
3
+ fused onto the header line
3
4
  help:
@@ -1,4 +1,4 @@
1
- # contract: lifecycle-kit/SPEC.md §The committed gap inbox — append-only mid-iteration gap capture, close-drained; one bullet per gap below.
1
+ # contract: lifecycle-kit/SPEC.md §The committed gap inbox — append-only mid-iteration gap capture, close-drained; one bullet per gap below.- 2026-01-01 — a truncation dropped the header's line break and this bullet fused onto it.
2
2
  - 2026-01-02 — recurrence of `queue-slug-liveness`: the liveness scan missed a slug the drain later found by hand.
3
3
  - 2026-01-03 — the vendored hook drifts from the manifest and nothing catches it until a later commit reds.
4
4
  * 2026-01-04 - a bullet that abandoned the grammar entirely.
@@ -2,7 +2,9 @@
2
2
  # Behavioral test of check-lesson-disposition — the scenarios the one
3
3
  # good/bad pair cannot hold: (A) a malformed disposition line reds on grammar;
4
4
  # (B) a Lessons entry still present in the worktree is not a removal, so it
5
- # needs no stamp; (C) a stored prefix matches a longer lead line (prefix join).
5
+ # needs no stamp; (C) a stored prefix matches a longer lead line (prefix join);
6
+ # (D-F) bare mode is clean outside a repository and exit 2 in one git refuses,
7
+ # a nested one git skips included.
6
8
  #
7
9
  # Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
8
10
  set -uo pipefail
@@ -47,9 +49,32 @@ EOF
47
49
  printf '# contract: lesson-disposition v1\ndemo lesson task new-slug — **alpha-lesson**\n' >"$SANDBOX/evid-prefix.txt"
48
50
  check_case "C prefix-join" 0 "clean" "$SANDBOX/head.md" "$SANDBOX/work-cleared.md" "$SANDBOX/evid-prefix.txt"
49
51
 
52
+ bare_case() { # $1=label $2=sandbox cwd $3=want-rc $4=want-substring
53
+ local out rc
54
+ out="$(cd "$2" && gate_run check-lesson-disposition "$DIR/checks" 2>&1)"; rc=$?
55
+ if [[ "$rc" -ne "$3" ]] || ! grep -qF -- "$4" <<<"$out"; then
56
+ echo " FAIL [$1]: want exit $3 carrying '$4', got $rc -- $out"; fails=$((fails + 1))
57
+ fi
58
+ }
59
+
60
+ # D: bare mode outside a repository has no HEAD baseline — clean.
61
+ mkdir -p "$SANDBOX/none"
62
+ bare_case "D no-repository" "$SANDBOX/none" 0 "no git repository"
63
+
64
+ # E: bare mode in a repository git refuses is the crosser's refusal, never that clean answer.
65
+ mkdir -p "$SANDBOX/refused"
66
+ printf 'gitdir: %s/absent\n' "$SANDBOX/refused" >"$SANDBOX/refused/.git"
67
+ bare_case "E refused-repository" "$SANDBOX/refused" 2 "marks a repository"
68
+
69
+ # F: a nested repository git skips is refused too, though git answers the enclosing one at exit 0.
70
+ git init -q "$SANDBOX/outer"
71
+ mkdir -p "$SANDBOX/outer/inner/.git"
72
+ printf 'garbage\n' >"$SANDBOX/outer/inner/.git/HEAD"
73
+ bare_case "F nested-skipped-repository" "$SANDBOX/outer/inner" 2 "marks a repository beneath it"
74
+
50
75
  if [[ "$fails" -gt 0 ]]; then
51
76
  echo "check-lesson-disposition.test.sh: $fails case(s) failed"
52
77
  exit 1
53
78
  fi
54
- echo "check-lesson-disposition.test.sh: clean (malformed-grammar + still-present + prefix-join, 3 cases)"
79
+ echo "check-lesson-disposition.test.sh: clean (malformed-grammar + still-present + prefix-join + no-repository + refused + nested-skipped, 6 cases)"
55
80
  exit 0
@@ -29,3 +29,9 @@
29
29
  - **exempt-dead-citation** — the escape hatch: a surface quoting a dead citation verbatim in order to
30
30
  describe it. scratch-citation-exempt: this entry documents the defect and must quote it
31
31
  `prose-profile` ended "Full finding and its two-command witness: `.workflow/survey-record.md`".
32
+
33
+ - **quoted-in-a-list-item-fence** — a dead citation shown as an example block is a specimen.
34
+
35
+ - ```text
36
+ Full finding and its two-command witness: `.workflow/survey-record.md`
37
+ ```
@@ -246,7 +246,7 @@ demo-iteration scope aaaaaaaa 2026-06-01 none
246
246
  demo-iteration build bbbbbbbb 2026-06-02 none
247
247
  EOF
248
248
  check_case "C3 single-amendment-cross-component" "$c3" 1 "cross-component amendment signal"
249
- check_case "C3 help-respell-not-a-remedy" "$c3" 1 "Respelling a body token so it stops resolving (a generated mirror named in prose, say) is not a remedy: the token is the amendment's reach"
249
+ check_case "C3 help-respell-not-a-remedy" "$c3" 1 "Respelling a body token so it stops resolving is not a remedy: the token is the amendment's reach. A generated mirror of a roster file is declared with LIFECYCLE_KIT_MIRROR_ROOT, which counts it as the component it mirrors"
250
250
 
251
251
  # C4 (good): a single-component amendment (own dir only) — no signal.
252
252
  c4="$SANDBOX/c4"
@@ -299,6 +299,38 @@ cp "$c5/.workflow/WORKFLOW-STATE.txt" "$c7/.workflow/"
299
299
  check_case "C7 path-glob-archived-not-counted" "$c7" 0 "STAGE-ENTRY: clean"
300
300
  unset LIFECYCLE_KIT_AMENDMENT_GLOB
301
301
 
302
+ # C8–C14: the mirror fold. One tree — roster dirs a/ and b/, their mirrors site/a/
303
+ # and site/b/, a roster dir site/extra/ mirroring nothing, one amendment in a/.
304
+ mirror_case() { # $1=label $2=knob value ("" = unset) $3=body token $4=want-rc $5=want-substring $6=a dir removed from the tree (optional)
305
+ local d="$SANDBOX/m" out rc
306
+ rm -rf "$d"; build_queue "$d"
307
+ mkdir -p "$d/.workflow" "$d/a" "$d/b" "$d/site/a" "$d/site/b" "$d/site/extra"
308
+ : >"$d/a/SPEC.md"; : >"$d/b/SPEC.md"
309
+ : >"$d/site/a/SPEC.md"; : >"$d/site/b/SPEC.md"; : >"$d/site/extra/SPEC.md"
310
+ [[ -n "${6:-}" ]] && rm -r "${d:?}/$6"
311
+ printf 'regenerate %s after the merge\n' "$3" >"$d/a/SPEC-foo.md"
312
+ cp "$c5/.workflow/WORKFLOW-STATE.txt" "$d/.workflow/"
313
+ if [[ -n "$2" ]]; then
314
+ out="$(cd "$d" && gate_env LIFECYCLE_KIT_MIRROR_ROOT="$2" && gate_run check-stage-entry "$DIR/checks" 2>&1)"; rc=$?
315
+ else
316
+ out="$(cd "$d" && gate_run check-stage-entry "$DIR/checks" 2>&1)"; rc=$?
317
+ fi
318
+ if [[ "$rc" -ne "$4" ]]; then
319
+ echo " FAIL [$1]: want exit $4, got $rc -- $out"; fails=$((fails + 1)); return
320
+ fi
321
+ if ! grep -qF -- "$5" <<<"$out"; then
322
+ echo " FAIL [$1]: exit $rc OK but output lacks '$5':"; printf ' %s\n' "$out"
323
+ fails=$((fails + 1))
324
+ fi
325
+ }
326
+ mirror_case "C8 mirror-undeclared-is-a-component" "" site/a/SPEC.md 1 "references 2 components: a site/a"
327
+ mirror_case "C9 mirror-declared-folds" site site/a/SPEC.md 0 "STAGE-ENTRY: clean"
328
+ mirror_case "C10 mirror-root-trailing-slash" site/ site/a/SPEC.md 0 "STAGE-ENTRY: clean"
329
+ mirror_case "C11 mirror-of-another-component-adds-it" site site/b/SPEC.md 1 "references 2 components: a b"
330
+ mirror_case "C12 unmirrored-dir-under-root-stays" site site/extra/SPEC.md 1 "references 2 components: a site/extra"
331
+ mirror_case "C13 absent-mirror-of-another-component-still-adds-it" site site/b/SPEC.md 1 "references 2 components: a b" site/b
332
+ mirror_case "C14 absent-mirror-undeclared-adds-nothing" "" site/b/SPEC.md 0 "STAGE-ENTRY: clean" site/b
333
+
302
334
  # --- assertion D: a build entry refuses an amendment still carrying an unrun inferred-claim marker ---
303
335
 
304
336
  d_sandbox() { # $1=dir $2=amendment body — a single-component amendment at build entry
@@ -396,5 +428,5 @@ if [[ "$fails" -gt 0 ]]; then
396
428
  echo "check-stage-entry.test.sh: $fails case(s) failed"
397
429
  exit 1
398
430
  fi
399
- echo "check-stage-entry.test.sh: clean (assertion B queue-empty + drain-exempt model + observed-by refusal branch + assertion C cross-component align/waiver + templates-stub exclusion + path-shaped amendment glob + assertion D inferred-claim residue over amendments and active queue entries + assertion E marker grammar at every cursor, 22 scenarios)"
431
+ echo "check-stage-entry.test.sh: clean (assertion B queue-empty + drain-exempt model + observed-by refusal branch + assertion C cross-component align/waiver + templates-stub exclusion + path-shaped amendment glob + mirror fold + assertion D inferred-claim residue over amendments and active queue entries + assertion E marker grammar at every cursor, 27 scenarios)"
400
432
  exit 0
@@ -1,5 +1,8 @@
1
1
  # align
2
2
  `bash gate-sdk/bin/run-gates.sh --enter-stage align`
3
3
 
4
+ **Where your dispatch names a foreign adapter**, follow the host protocol
5
+ (lifecycle-kit/SPEC.md §The host protocol).
6
+
4
7
  **Last step — the resume journal.** Its path is a derivation
5
8
  (lifecycle-kit/SPEC.md §The state machine).
@@ -1 +1,2 @@
1
1
  no journal step: commands/validate.md
2
+ no host protocol: commands/scope.md (stage 'scope', bound to 'demo')
@@ -0,0 +1,3 @@
1
+ # comment-tier-exempt: fixture config — two stages bound to a demo adapter: align's skill carries the host protocol's citation and scope's does not
2
+ LIFECYCLE_KIT_STAGE_EXECUTOR[] = align=demo
3
+ LIFECYCLE_KIT_STAGE_EXECUTOR[] = scope=demo
@@ -1,5 +1,8 @@
1
1
  # align
2
2
  `bash gate-sdk/bin/run-gates.sh --enter-stage align`
3
3
 
4
+ **Where your dispatch names a foreign adapter**, follow the host protocol
5
+ (lifecycle-kit/SPEC.md §The host protocol).
6
+
4
7
  **Last step — the resume journal.** Its path is a derivation
5
8
  (lifecycle-kit/SPEC.md §The state machine).
@@ -1 +1,2 @@
1
1
  STAGE-SKILL-COVERAGE: clean
2
+ 1 bound stage(s) read