checkwright 0.31.0 → 0.32.1

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/bin/checkwright.sh +5 -1
  4. package/package.json +10 -3
  5. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  6. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
  7. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  8. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  9. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  10. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  11. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
  12. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  13. package/payload/artifact/targets.list +5 -5
  14. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  15. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
  16. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  17. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  18. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  19. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  20. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
  21. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  22. package/payload/canon-kit/README.md +8 -4
  23. package/payload/canon-kit/checks/check-amendment-queue.gate +1 -1
  24. package/payload/canon-kit/checks/check-comment-tier.gate +2 -2
  25. package/payload/canon-kit/checks/check-delta-agreement.gate +4 -0
  26. package/payload/canon-kit/checks/check-deprecation-task.gate +1 -1
  27. package/payload/canon-kit/checks/check-docs-page-length.gate +4 -0
  28. package/payload/canon-kit/checks/check-docs-page-repeat.gate +2 -2
  29. package/payload/canon-kit/checks/check-fence-command-head.gate +1 -1
  30. package/payload/canon-kit/checks/check-fence-paste-unit.gate +4 -0
  31. package/payload/canon-kit/checks/check-knob-default-coupling.gate +1 -1
  32. package/payload/canon-kit/checks/check-manifest-count.gate +3 -3
  33. package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
  34. package/payload/canon-kit/checks/check-pendency-contradiction.gate +3 -0
  35. package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
  36. package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
  37. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
  38. package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
  39. package/payload/canon-kit/checks/check-spec-pointer.gate +1 -1
  40. package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
  41. package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +6 -0
  42. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-widget.md +7 -0
  43. package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +7 -0
  44. package/payload/canon-kit/gate-tests/check-citation-link/bad/expect.txt +1 -0
  45. package/payload/canon-kit/gate-tests/check-citation-link/bad/site/unclosed.md +4 -0
  46. package/payload/canon-kit/gate-tests/check-citation-link/good/site/page.md +10 -0
  47. package/payload/canon-kit/gate-tests/check-comment-tier/bad/scripts/canon-config.knobs +4 -0
  48. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +2 -0
  49. package/payload/canon-kit/gate-tests/check-comment-tier/good/scripts/canon-config.knobs +4 -0
  50. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +9 -1
  51. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/expect.txt +3 -0
  52. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/scripts/canon-config.knobs +14 -0
  53. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/base/notes/spec.md +9 -0
  54. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/changes/one/deltas/notes/spec.md +7 -0
  55. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/changes/two/deltas/cli/spec.md +3 -0
  56. package/payload/canon-kit/gate-tests/check-delta-agreement/good/expect.txt +1 -0
  57. package/payload/canon-kit/gate-tests/check-delta-agreement/good/scripts/canon-config.knobs +14 -0
  58. package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/base/notes/spec.md +9 -0
  59. package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/changes/one/deltas/notes/spec.md +19 -0
  60. package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/changes/two/deltas/cli/spec.md +3 -0
  61. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.knobs +4 -0
  62. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.knobs +4 -0
  63. package/payload/canon-kit/gate-tests/check-docs-cmd.test.sh +20 -4
  64. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/expect.txt +5 -0
  65. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/scripts/canon-config.knobs +3 -0
  66. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/item.md +5 -0
  67. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/nested.md +7 -0
  68. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/page.md +13 -0
  69. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/short.md +3 -0
  70. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/unclosed.md +4 -0
  71. package/payload/canon-kit/gate-tests/check-docs-page-length/good/expect.txt +1 -0
  72. package/payload/canon-kit/gate-tests/check-docs-page-length/good/scripts/canon-config.knobs +4 -0
  73. package/payload/canon-kit/gate-tests/check-docs-page-length/good/site/generated.md +3 -0
  74. package/payload/canon-kit/gate-tests/check-docs-page-length/good/site/page.md +15 -0
  75. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/expect.txt +3 -0
  76. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/scripts/canon-config.knobs +2 -1
  77. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/_chrome/footer.html +4 -0
  78. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/page.md +4 -0
  79. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/unclosed.md +6 -0
  80. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/expect.txt +2 -1
  81. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/scripts/canon-config.knobs +2 -1
  82. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/_chrome/layout.html +8 -0
  83. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/page.md +13 -0
  84. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +1 -0
  85. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +4 -0
  86. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +10 -0
  87. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +2 -0
  88. package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +6 -0
  89. package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/expect.txt +3 -0
  90. package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/scripts/canon-config.knobs +2 -0
  91. package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/site/page.md +17 -0
  92. package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/expect.txt +1 -0
  93. package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/scripts/canon-config.knobs +2 -0
  94. package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/site/page.md +39 -0
  95. package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +8 -0
  96. package/payload/canon-kit/gate-tests/check-install-claim/bad/README.md +4 -0
  97. package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +14 -0
  98. package/payload/canon-kit/gate-tests/check-manifest-count/bad/expect.txt +2 -0
  99. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +27 -0
  100. package/payload/canon-kit/gate-tests/check-manifest-count/good/expect.txt +1 -1
  101. package/payload/canon-kit/gate-tests/check-manifest-count/good/posts/note.md +7 -0
  102. package/payload/canon-kit/gate-tests/check-manifest-count/good/scripts/canon-config.knobs +4 -0
  103. package/payload/canon-kit/gate-tests/check-manifest-temporal/good/SPEC.md +7 -0
  104. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +17 -1
  105. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/dotted.md +10 -0
  106. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +1 -0
  107. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/dotted.md +6 -0
  108. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -1
  109. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +6 -0
  110. package/payload/canon-kit/gate-tests/check-pendency-contradiction/bad/SPEC.md +14 -0
  111. package/payload/canon-kit/gate-tests/check-pendency-contradiction/bad/expect.txt +1 -0
  112. package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/README.md +3 -0
  113. package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/SPEC.md +16 -0
  114. package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/expect.txt +1 -0
  115. package/payload/canon-kit/gate-tests/check-prose-tells/bad/absence-unclosed.md +8 -0
  116. package/payload/canon-kit/gate-tests/check-prose-tells/bad/absence.md +13 -0
  117. package/payload/canon-kit/gate-tests/check-prose-tells/bad/expect.txt +4 -0
  118. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -1
  119. package/payload/canon-kit/gate-tests/check-prose-tells/good/absence.md +17 -0
  120. package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
  121. package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/canon-config.knobs +4 -1
  122. package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/SPEC.md +9 -0
  123. package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/expect.txt +2 -1
  124. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC.md +14 -0
  125. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +1 -0
  126. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/args +1 -0
  127. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/expect.txt +2 -1
  128. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/long.md +7 -0
  129. package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/doc.md +13 -0
  130. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +7 -1
  131. package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +8 -0
  132. package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-repeat.md +11 -0
  133. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
  134. package/payload/canon-kit/gate-tests/check-task-label-resolution/good/work/tasks.md +6 -0
  135. package/payload/canon-kit/gate-tests/check-task-path-claim/good/work/tasks.md +6 -0
  136. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/scripts/canon-config.knobs +4 -0
  137. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/scripts/canon-config.knobs +4 -0
  138. package/payload/canon-kit/gate-tests/check-tracking-claim/bad/README.md +4 -0
  139. package/payload/context-kit/README.md +5 -7
  140. package/payload/context-kit/checks/check-brevity.gate +1 -1
  141. package/payload/context-kit/gate-tests/check-brevity.test.sh +1 -0
  142. package/payload/context-kit/gate-tests/check-memory-off.test.sh +25 -1
  143. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
  144. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +16 -0
  145. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/checkwright-gates +2 -0
  146. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -2
  147. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
  148. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/checkwright-gates +2 -0
  149. package/payload/context-kit/gate-tests/session-context-spawn.test.sh +52 -0
  150. package/payload/context-kit/templates/nudge-delegation.txt +4 -0
  151. package/payload/context-kit/templates/settings-sessionstart.json +2 -2
  152. package/payload/delegation-kit/README.md +14 -8
  153. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +1 -0
  154. package/payload/delegation-kit/checks/check-gate-tamper.gate +1 -1
  155. package/payload/delegation-kit/close-surfaces.txt +3 -0
  156. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/stale-effort.md +10 -0
  157. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/stale.md +9 -0
  158. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/unbound.md +8 -0
  159. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/expect.txt +3 -0
  160. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/scripts/delegation-config.knobs +3 -0
  161. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-cheap.md +3 -1
  162. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-paired.md +10 -0
  163. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/expect.txt +1 -1
  164. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/scripts/delegation-config.knobs +3 -0
  165. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/exception-arrays.sh +44 -0
  166. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +12 -0
  167. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/staged-files +12 -0
  168. package/payload/delegation-kit/gate-tests/check-gate-tamper/good/exception-arrays.sh +44 -0
  169. package/payload/delegation-kit/gate-tests/check-gate-tamper/good/staged-files +1 -0
  170. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +22 -1
  171. package/payload/delegation-kit/templates/agent-execution.md +7 -6
  172. package/payload/delegation-kit/templates/delegation-config.knobs +32 -0
  173. package/payload/delegation-kit/usage-tests/cases.tsv +35 -25
  174. package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +12 -3
  175. package/payload/doctrine-kit/DOCTRINE.md +109 -25
  176. package/payload/doctrine-kit/README.md +2 -2
  177. package/payload/drift-kit/README.md +15 -6
  178. package/payload/drift-kit/close-surfaces.txt +2 -0
  179. package/payload/drift-kit/templates/economics.md +7 -3
  180. package/payload/drift-kit/templates/kpis.list +1 -0
  181. package/payload/evidence-kit/README.md +3 -3
  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 +9 -13
  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 +57 -14
  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 +1 -1
  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 +12 -7
  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 +11 -6
  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 +30 -25
  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 +3 -2
  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 +3 -3
  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
@@ -2,23 +2,39 @@
2
2
 
3
3
  The cross-kit delivery rules the kits enforce piecemeal, stated once. This file is the deliverable of [doctrine-kit](README.md): referenced in place from a consumer's always-loaded agent file, never copy-installed — re-vendoring the kit *is* the doctrine upgrade. Each rule lands as its statement, why it holds under coding-agent work, and a pointer to the mechanism that enforces it; the mechanism and its knob rosters live in the cited kit SPEC, never restated here. Length is not graded: a clause stays for its class, never goes for its size ([SPEC.md](SPEC.md) §The doctrine deliverable).
4
4
 
5
- The roster is in two registers. **Methodology-maintenance** rules govern how the methodology's own surfaces stay honest; they bear on every surface edit and form the always-loaded digest a consumer installs. **Engineering-craft** rules govern how the work built under the methodology is written; they are load-triggered by test, rename, git-rewrite, config-edit, and dispatch work and live behind the link — an application of the load-trigger residency rule to the doctrine itself.
5
+ The roster is in two registers. **Methodology-maintenance** rules govern how the methodology's own surfaces stay honest; they bear on every surface edit and form the always-loaded digest a consumer installs. **Engineering-craft** rules govern how the work built under the methodology is written; each is load-triggered by the stages its `*Stages:*` trailer names, and they live behind the link — an application of the load-trigger residency rule to the doctrine itself.
6
6
 
7
7
  ## Methodology-maintenance rules
8
8
 
9
+ Where a rule below is *Enforced by* judgment, what it asks is not machine-decidable: the false-positive carve-out Enforcement-first states. No gate reads it, so the rule names the capture surface that stands in.
10
+
9
11
  1. **Content-tiering / SSOT.** Every governed surface owns exactly one content tier and *points to* — never restates — a fact another surface owns. An instruction surface — template, agent definition, binding shim — owns the instruction tier: its grounds go to the section owning the mechanism (a failure it prevents included, undated), its history to version control. A parallel copy is the defect; the fix is one shape: replace the slab with a pointer to the owner, then a gate forbids it growing back. *Under agent work:* a restated fact drifts the moment one copy is edited and the other is not, and an agent reading the stale copy inherits the drift as ground truth. One owner means one thing to keep true. *Enforced by:* the anti-restatement gate family — the comment-tier and manifest/prose gates in [canon-kit/SPEC.md](../canon-kit/SPEC.md); the instruction-surface sentence is read at authoring — build's ritual, the amendment Definition of Done — and is not gateable.
10
12
 
11
13
  *Digest:* one content tier per surface; point, never restate.
12
14
 
13
- 2. **Enforcement-first.** On any fix or redundancy finding, name the defect class *and* the mechanism that catches it, and land both in one unit; a green instance fix is the stop signal to ask what check should have caught it. When the gate cannot land in the same unit, the instance fix rides the gate's unit rather than landing bare. The mechanism is bought against a budget — gate count, runtime, maintenance — so the strongest form is structural: remove the duplication or collapse the surface so the defect class cannot recur, and no gate is owed. No duplication with no gate outranks duplication with a gate; tolerated duplication is the exception and carries its defence (the amendment template's sanctioned-copy rule is the model). But for a drift-prone surface that must exist, the gate is cheap insurance and is owed. The defence that excuses a *missing* gate on such a surface is a high false-positive rate: a noisy check breeds exemptions and erodes the battery's authority, so the class a check cannot decide cleanly stays a stated manual duty rather than a noisy gate. A stated manual duty carries a *named cadence*, or it is a duty no session performs: the un-gateable class joins a tracked audit roster reviewed on a lifecycle hook, with event-keyed due-ness — a named observable event beats an iteration counter no surface tracks ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The audit roster owns the mechanism). *Under agent work:* an unenforced rule is a rule the next session cannot see; a gate is the only carrier of intent that survives a fresh context window. *Enforced by:* the meta-gate contracts every gate must satisfy — [gate-sdk/SPEC.md](../gate-sdk/SPEC.md).
15
+ 2. **Enforcement-first.** On any fix or redundancy finding, name the defect class *and* the mechanism that catches it, and land both in one unit; a green instance fix is the stop signal to ask what check should have caught it. When the gate cannot land in the same unit, the instance fix rides the gate's unit rather than landing bare. The mechanism is bought against a budget — gate count, runtime, maintenance — so the strongest form is structural: remove the duplication or collapse the surface so the defect class cannot recur, and no gate is owed. No duplication with no gate outranks duplication with a gate; tolerated duplication is the exception and carries its defence (the amendment template's sanctioned-copy rule is the model).
16
+
17
+ But for a drift-prone surface that must exist, the gate is cheap insurance and is owed. The defence that excuses a *missing* gate on such a surface is a high false-positive rate: a noisy check breeds exemptions and erodes the battery's authority, so the class a check cannot decide cleanly stays a stated manual duty rather than a noisy gate. A stated manual duty carries a *named cadence*, or it is a duty no session performs. The un-gateable class joins a tracked audit roster reviewed on a lifecycle hook, with event-keyed due-ness: a named observable event beats an iteration counter no surface tracks ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The audit roster owns the mechanism).
18
+
19
+ *Under agent work:* an unenforced rule is a rule the next session cannot see; a gate is the only carrier of intent that survives a fresh context window.
20
+
21
+ *Enforced by:* the meta-gate contracts every gate must satisfy — [gate-sdk/SPEC.md](../gate-sdk/SPEC.md).
14
22
 
15
23
  *Digest:* the fix and the gate that catches it land in one unit; removing the duplication outranks gating it.
16
24
 
17
- 3. **De-literalization.** Prose cites names; code or the owning SPEC owns values. Knob defaults, shared constants, and derivable rosters are stated once at their owner, and prose names the knob or the roster rather than its value. The duty widens past values to *source identifiers*: prose names the public contract — the knob, the command, the entry point another surface calls — never a source's internal identifiers or its step-by-step algorithm. **Reach, judged at the file and not the kit, decides whether a name may appear.** A shipped vendored library is a public contract by construction, so its owning kit's SPEC may name any function it defines. Beyond that kit only its exports may be named: an underscore-prefixed helper is private to its kit, and another kit's prose naming one is a finding. The native crate reads the same way, with the module in place of the file. An item visible past its module (`pub`, `pub(crate)`, `pub(super)`) may be named. A private item belongs to the component its nearest `spec:` pointer names (the item's own pointer, else its module's first line), and any other component naming it is a finding. **Reach is checked first.** Only a name it admits goes on to the citation test, so a private name out of reach stays a finding even when it is a decision's subject. Among admitted names, naming one as the subject of a contract or decision is a citation. Inventorying a source's helpers or narrating its branch conditions is the same defect as a copied knob value: a second source of a fact the code owns, stale at the next refactor. The WHY, the invariant and the public contract stay SPEC prose; the WHAT and the how live in the source behind a pointer. *Under agent work:* a literal copied into prose is a second source of a number, and an agent that trusts the nearer copy ships the stale one; an internal-helper inventory rots the same way, read as ground truth after the refactor that renamed it. *Enforced by:* for values, the bare-cardinal gate in [canon-kit/SPEC.md](../canon-kit/SPEC.md) §check-manifest-count; the source-identifier class cannot be gated cleanly — a SPEC legitimately names an admitted identifier as a contract, and whether it cites one or inventories them is a judgment — so the Enforcement-first false-positive carve-out applies — and it rides that carve-out's cadence as the `internal-identifier-restatement` seed member of the close-stage audit roster (lifecycle-kit/SPEC.md §The audit roster), a stated authoring duty due on heavy-SPEC contract edits and at release prep.
25
+ 3. **De-literalization.** Prose cites names; code or the owning SPEC owns values. Knob defaults, shared constants, and derivable rosters are stated once at their owner, and prose names the knob or the roster rather than its value. The duty widens past values to *source identifiers*: prose names the public contract — the knob, the command, the entry point another surface calls — never a source's internal identifiers or its step-by-step algorithm.
26
+
27
+ **Reach, judged at the file and not the kit, decides whether a name may appear.** A shipped vendored library is a public contract by construction, so its owning kit's SPEC may name any function it defines. Beyond that kit only its exports may be named: an underscore-prefixed helper is private to its kit, and another kit's prose naming one is a finding. The native crate reads the same way, with the module in place of the file. An item visible past its module (`pub`, `pub(crate)`, `pub(super)`) may be named. A private item belongs to the component its nearest `spec:` pointer names (the item's own pointer, else its module's first line), and any other component naming it is a finding.
28
+
29
+ **Reach is checked first.** Only a name it admits goes on to the citation test, so a private name out of reach stays a finding even when it is a decision's subject. Among admitted names, naming one as the subject of a contract or decision is a citation. Inventorying a source's helpers or narrating its branch conditions is the same defect as a copied knob value: a second source of a fact the code owns, stale at the next refactor. The WHY, the invariant and the public contract stay SPEC prose; the WHAT and the how live in the source behind a pointer.
30
+
31
+ *Under agent work:* a literal copied into prose is a second source of a number, and an agent that trusts the nearer copy ships the stale one; an internal-helper inventory rots the same way, read as ground truth after the refactor that renamed it.
32
+
33
+ *Enforced by:* for values, the bare-cardinal gate in [canon-kit/SPEC.md](../canon-kit/SPEC.md) §check-manifest-count. The source-identifier class cannot be gated cleanly: a SPEC legitimately names an admitted identifier as a contract, and whether it cites one or inventories them is a judgment, so the Enforcement-first false-positive carve-out applies. It rides that carve-out's cadence as the `internal-identifier-restatement` seed member of the close-stage audit roster (lifecycle-kit/SPEC.md §The audit roster), a stated authoring duty due on heavy-SPEC contract edits and at release prep.
18
34
 
19
35
  *Digest:* prose cites names; code or the owning SPEC owns values.
20
36
 
21
- 4. **Derivation-first.** A fact a tool can derive from the tree is derived at use time, never maintained as its own surface. The ladder: derive; else state once at the owner and point (the Content-tiering / SSOT rule); and a second copy a reader genuinely needs is a generated projection with a freshness gate, never a hand-maintained restatement. Whether what remains earns a gate is the Enforcement-first weighing. A count of a collection is the archetypal derivable fact: the collection is its own counting surface, and a stated total anywhere else is a duplicate counting surface, off by one at the next member. *Under agent work:* a hand-maintained enumeration of a derivable set is a copy of the tree that is stale at the next edit, and an agent trusts the nearer roster over the tree it summarizes; derivation deletes the drift axis rather than gating it. *Enforced by:* the derivation seams and their residual meta-checks — the `kit:` couple expansion with its hand-list gate in [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §check-kit-enum, the generated projections' byte-compare freshness assertions in [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §check-graph, and the bare-cardinal gate in [canon-kit/SPEC.md](../canon-kit/SPEC.md) §check-manifest-count.
37
+ 4. **Derivation-first.** A fact a tool can derive from the tree is derived at use time, never maintained as its own surface. The ladder: derive; else state once at the owner and point (Content-tiering / SSOT); and a copy a reader needs is a generated projection with a freshness gate, never a hand-maintained restatement. A count of a collection is the archetypal derivable fact, and a member's position is the next. A stated total, or a position such as "the last line" or "rule 19", duplicates the collection and is off by one at the next member, so name the member; a pointer to an adjacent block ("the block below") is not a position. *Under agent work:* a hand-maintained enumeration is a copy of the tree, stale at the next edit, and an agent trusts the nearer roster over the tree it summarizes; derivation deletes the drift axis rather than gating it. *Enforced by:* the derivation seams — the `kit:` couple expansion's hand-list gate ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §check-kit-enum), projection freshness assertions ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §check-graph) and the bare-cardinal gate ([canon-kit/SPEC.md](../canon-kit/SPEC.md) §check-manifest-count). A position's referent is not decidable from the word ([canon-kit/SPEC.md](../canon-kit/SPEC.md) §check-amendment-retired-spelling), so an audit-roster class is its cadence ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The audit roster).
22
38
 
23
39
  *Digest:* derive the derivable (a roster, a count), never maintain it; a needed copy is generated and freshness-gated.
24
40
 
@@ -30,45 +46,87 @@ The roster is in two registers. **Methodology-maintenance** rules govern how the
30
46
 
31
47
  *Digest:* resident only when no stage, skill, or tool loads it.
32
48
 
33
- 7. **Widest-true-tier placement.** A fact lands at the widest tier where it holds for every reader of that tier: kit-shipped surface when true for every consumer, a consumer-tracked binding or config when it names this repo's own choices, the local-only private brief when it cannot be published. A template's binding-slot grammar is the seam marker between the first two. *Under agent work:* a fact placed too narrow is re-derived by every reader who needed it wider; placed too wide, it publishes a choice or a secret that was never the reader's to see. *Enforced by:* the binding-slot grammar in [lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §check-skill-binding, the seam marker between kit-shipped and consumer-tracked tiers.
49
+ 7. **Widest-true-tier placement.** A fact lands at the widest tier where it holds for every reader of that tier. That is the kit-shipped surface when it is true for every consumer, a consumer-tracked binding or config when it names this repo's own choices, and the local-only private brief when it cannot be published. A template's binding-slot grammar is the seam marker between the first two. *Under agent work:* a fact placed too narrow is re-derived by every reader who needed it wider; placed too wide, it publishes a choice or a secret that was never the reader's to see. *Enforced by:* the binding-slot grammar in [lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §check-skill-binding, the seam marker between kit-shipped and consumer-tracked tiers.
34
50
 
35
51
  *Digest:* the widest tier true for every reader of it.
36
52
 
37
- 8. **Oracle-first.** A check's output is its interface: run the gate instead of emulating it, and treat a red run — including a red commit attempt, where the generated hook runs exactly the coupled subset — as the designed feedback channel, not an incident. Gate source is opened to fix the gate or write its fixtures, never to predict its verdict. Nor is a diagnostic the session did not run an oracle: an editor or language-server report the harness surfaces unasked answers to no pinned toolchain and no snapshot the session controls, so one contradicting the oracle is settled by re-running the oracle, never by editing code the oracle passed. The battery is an oracle but not the only one: a change whose real output is a deployed or generated artifact — a rendered site, a compiled binary, a published package — is *tree-correct* when the battery is green but not yet *artifact-correct*, so it names the artifact surface it carries and exercises that artifact before the task is done, never inferring artifact behaviour from a clean battery. Reachable includes cheap-to-stand-up: an absent-but-installable runtime is one install command away, not unreachable, so it is exercised too. *Under agent work:* a deterministic check costs seconds and zero context; reading its source to anticipate the verdict costs more than running the whole battery and can still be wrong. The replica that exercises an artifact is honest only when deployment-faithful — toolchain version- and plugin-matched to the pinned deployment; a newer local toolchain invents failures the deployment never shows and masks real ones it would, making it a second wrong oracle rather than a check. An ambient report is the cheapest wrong oracle to trust, because it arrives in context unrequested and in a compiler's voice. *Enforced by:* the gate output contract in [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) — the `clean` and `help:` lines are written to be that interface — and the targeted-run resolver reachable through the generated hook. Whether a session acted on an ambient report leaves no residue in the tree, so that clause is judgment.
53
+ 8. **Oracle-first.** A check's output is its interface: run the gate instead of emulating it. Treat a red run as the designed feedback channel, not an incident, and that includes a red commit attempt, where the pre-commit hook runs exactly the coupled subset. Gate source is opened to fix the gate or write its fixtures, never to predict its verdict. Nor is a diagnostic the session did not run an oracle: an editor or language-server report the harness surfaces unasked answers to no pinned toolchain and no snapshot the session controls. One contradicting the oracle is settled by re-running the oracle, never by editing code the oracle passed.
54
+
55
+ The battery is an oracle but not the only one. A change whose real output is a deployed or generated artifact — a rendered site, a compiled binary, a published package — is *tree-correct* when the battery is green but not yet *artifact-correct*. So it names the artifact surface it carries and exercises that artifact before the task is done, never inferring artifact behaviour from a clean battery. Reachable includes cheap-to-stand-up: an absent-but-installable runtime is one install command away, not unreachable, so it is exercised too.
56
+
57
+ *Under agent work:* a deterministic check costs seconds and zero context; reading its source to anticipate the verdict costs more than running the whole battery and can still be wrong. The replica that exercises an artifact is honest only when deployment-faithful — toolchain version- and plugin-matched to the pinned deployment. A newer local toolchain invents failures the deployment never shows and masks real ones it would, making it a second wrong oracle rather than a check. An ambient report is the cheapest wrong oracle to trust, because it arrives in context unrequested and in a compiler's voice.
58
+
59
+ *Enforced by:* the gate output contract in [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) — the `clean` and `help:` lines are written to be that interface — and the targeted-run resolver reachable through the pre-commit hook. Whether a session acted on an ambient report leaves no residue in the tree, so that clause is judgment.
38
60
 
39
61
  *Digest:* run the gate, never emulate it; a red run is the feedback channel.
40
62
 
41
- 9. **Spec-over-precedent.** A gate-enforced doc is ground truth: read the owner, never mine git history or a prior session's artifacts for how to do what an owned surface already specifies. History answers *what happened*, never *what is correct*; precedent is consulted only where no owner exists, and that consultation is a doc gap to capture, not a habit to keep. *Under agent work:* models train on repos whose docs lag practice, so "imitate the last instance" is a reflex prior — and here it is inverted: the gates hold docs and practice convergent, so mimicking a prior session re-imports as house style exactly the deviation that session was gated on. *Enforced by:* the battery itself, which is what makes the owner doc trustworthy, plus the knowledge-friction loop ([drift-kit/SPEC.md](../drift-kit/SPEC.md) §The knowledge-friction loop) — a fact with no owner gets one, shrinking the space where history is the only oracle. No scanner sees *how* a session derived a choice; this rule is judgment with a capture mechanism, not a gate.
63
+ 9. **Spec-over-precedent.** A gate-enforced doc is ground truth: read the owner, never mine git history or a prior session's artifacts for how to do what an owned surface already specifies. History answers *what happened*, never *what is correct*; precedent is consulted only where no owner exists, and that consultation is a doc gap to capture, not a habit to keep. *Under agent work:* models train on repos whose docs lag practice, so "imitate the last instance" is a reflex prior. Here it is inverted: the gates hold docs and practice convergent, so mimicking a prior session re-imports as house style exactly the deviation that session was gated on. *Enforced by:* the battery itself, which is what makes the owner doc trustworthy, plus the knowledge-friction loop ([drift-kit/SPEC.md](../drift-kit/SPEC.md) §The knowledge-friction loop) — a fact with no owner gets one, shrinking the space where history is the only oracle. No scanner sees *how* a session derived a choice, so the rule itself is judgment.
42
64
 
43
65
  *Digest:* the owner doc is ground truth; history answers what happened, never what is correct.
44
66
 
45
- 10. **Gap disposition.** A gap a session surfaces but will not close this session — a coverage hole, a design defect, an escaping class — is *costed*, not merely flagged: the session works out how the gap could be closed and lands that analysis where the next session finds it, as a new queue entry or an enrichment of the standing deferred entry that owns it. A bare flag-and-skip is the defect. This is the knowledge-friction loop one altitude up — that loop captures re-derived *facts* with no owner; this rule captures the *design and coverage gaps* a session leaves behind. It fills the space between two neighbours: Spec-over-precedent captures a doc gap met during precedent consultation, Enforcement-first governs a fix being *landed*, and neither governs a gap being *deferred*. *Under agent work:* a fresh context window cannot see a gap the prior session only reasoned about; an unwritten deferral is one the next session re-discovers from scratch, and the costed remedy is the only carrier of the analysis across the reset. *Enforced by:* judgment with a capture mechanism, not a gate — whether a session costed the remedy is not machine-decidable (the Enforcement-first false-positive carve-out, on Spec-over-precedent's model). It rides the queue's Deferred section for design gaps and the knowledge-friction log ([drift-kit/SPEC.md](../drift-kit/SPEC.md) §The knowledge-friction loop) for fact gaps.
67
+ 10. **Gap disposition.** A gap a session surfaces but will not close this session — a coverage hole, a design defect, an escaping class — is *costed*, not merely flagged. The session works out how the gap could be closed and lands that analysis where the next session finds it, as a new queue entry or an enrichment of the standing deferred entry that owns it. A bare flag-and-skip is the defect. This is the knowledge-friction loop one altitude up — that loop captures re-derived *facts* with no owner; this rule captures the *design and coverage gaps* a session leaves behind. It fills the space between two neighbours: Spec-over-precedent captures a doc gap met during precedent consultation, Enforcement-first governs a fix being *landed*, and neither governs a gap being *deferred*.
68
+
69
+ *Under agent work:* a fresh context window cannot see a gap the prior session only reasoned about; an unwritten deferral is one the next session re-discovers from scratch, and the costed remedy is the only carrier of the analysis across the reset.
70
+
71
+ *Enforced by:* judgment: whether a session costed the remedy leaves nothing for a scanner to read. Its capture surfaces are the queue's Deferred section for design gaps and the knowledge-friction log ([drift-kit/SPEC.md](../drift-kit/SPEC.md) §The knowledge-friction loop) for fact gaps.
46
72
 
47
73
  *Digest:* a gap you defer is costed and filed, never flagged-and-skipped.
48
74
 
49
- 11. **Scope-gated intake.** Delivery work enters only through the scope gate. A new initiative raised mid-session — an operator or lead feature request, a design idea, a "while we're here" — is *filed* as a costed Deferred entry by default, never *started*: it becomes active work only by passing through scope as an iteration's chosen unit. The default is file, not act, because starting unscoped work skips the survey, the economic composition test, and the feature/debt triage scope exists to run. This is Gap disposition's intake-side sibling, guarding the *opposite* failure: that rule catches a gap flagged and skipped (under-action on something found), this one catches a want acted on before it is scoped (over-action on something raised). The rule licenses no self-exemption — editing a governance surface is itself delivery work, so codifying or amending this doctrine is done as a scoped unit, not the very out-of-band edit it forbids. **The one valve is the operator's hotfix ruling, and it is a ruling rather than a judgment call.** An *impacting failure* — a defect that is paying a measured, recurring cost on the lifecycle's own default path right now, such that routing it through a whole iteration costs more than the fix — may be landed in-session when the operator rules it a hotfix. The valve is bounded three ways: the operator rules, never the session; the fix is minimal and ships with its test and its owner-doc correction in the same commit, so the hotfix is not a second content tier waiting for the iteration to catch up — and *minimal* is measured against the failure modes the change itself creates, never against the smallest diff, so a fix reaching one site further to avoid introducing a failure mode its own diff would create is inside the valve rather than outside it; and the queue entry is **deleted in that commit, never moved to the done section** — the ruling and the entry's slug go in the commit message, which is the disposition. The done section is the closing iteration's ledger, and a hotfix belongs to no iteration: a row left there is claimed by the next close as its own delivery and can red the next boundary entry. A session that sees an impacting failure *proposes* the hotfix with its cost against the iteration's, and files it if the operator does not rule — the default is still file. *Under agent work:* an eager context reads a raised want as an instruction to act *now* and will start building it in-session, bypassing scope entirely; the default-to-file reflex is the one a fresh window least reliably supplies, so it is stated rather than assumed. *Enforced by:* judgment with a capture mechanism, not a gate — whether a raised want should have been filed rather than started is not machine-decidable (the Enforcement-first false-positive carve-out, on Gap disposition's model). The intake it names is scope's — the survey that bounds an iteration's units ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The state machine) — and the filed form rides the queue's Deferred section.
75
+ 11. **Scope-gated intake.** Delivery work enters only through the scope gate. A new initiative raised mid-session — an operator or lead feature request, a design idea, a "while we're here" — is *filed* as a costed Deferred entry by default, never *started*: it becomes active work only by passing through scope as an iteration's chosen unit. The default is file, not act, because starting unscoped work skips the survey, the economic composition test, and the feature/debt triage scope exists to run. This is Gap disposition's intake-side sibling, guarding the *opposite* failure: that rule catches a gap flagged and skipped (under-action on something found), this one catches a want acted on before it is scoped (over-action on something raised). The rule licenses no self-exemption — editing a governance surface is itself delivery work, so codifying or amending this doctrine is done as a scoped unit, not the very out-of-band edit it forbids.
76
+
77
+ **The one valve is the operator's hotfix ruling, and it is a ruling rather than a judgment call.**
78
+
79
+ An *impacting failure* (a defect that is paying a measured, recurring cost on the lifecycle's own default path right now, such that routing it through a whole iteration costs more than the fix) may be landed in-session when the operator rules it a hotfix. The valve is bounded three ways:
80
+
81
+ - The operator rules, never the session.
82
+ - The fix is minimal and ships with its test and its owner-doc correction in the same commit, so the hotfix is not a second content tier waiting for the iteration to catch up. *Minimal* is measured against the failure modes the change itself creates, never against the smallest diff. So a fix reaching one site further to avoid introducing a failure mode its own diff would create is inside the valve rather than outside it.
83
+ - The queue entry is **deleted in that commit, never moved to the done section** — the ruling and the entry's slug go in the commit message, which is the disposition.
84
+
85
+ The done section is the closing iteration's ledger, and a hotfix belongs to no iteration: a row left there is claimed by the next close as its own delivery and can red the next boundary entry. A session that sees an impacting failure *proposes* the hotfix with its cost against the iteration's, and files it if the operator does not rule — the default is still file.
86
+
87
+ **The closing stage's drain is outside this rule, because it takes only debt and debt is no initiative.** It is not a valve: it admits no initiative. A gap filed mid-iteration goes to the gap inbox, whether it is a defect a session found or an operator's request for a change that converges on names the governed surfaces already carry. The closing stage's drain fixes it inline, in the session that drains it. A bullet needing a new name, a design ruling, or more than that session holds is promoted to a costed Deferred entry instead, which is this rule's default. The test that routes an operator's request among scope, the drain and the hotfix is the iteration lead's ([lifecycle-kit/templates/lead.md](../lifecycle-kit/templates/lead.md) §Mid-iteration intake).
88
+
89
+ *Under agent work:* an eager context reads a raised want as an instruction to act *now* and will start building it in-session, bypassing scope entirely; the default-to-file reflex is the one a fresh window least reliably supplies, so it is stated rather than assumed.
90
+
91
+ *Enforced by:* judgment: no scanner tells a raised want that should have been filed from one rightly started. The intake it names is scope's — the survey that bounds an iteration's units ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The state machine) — and the filed form rides the queue's Deferred section.
92
+
93
+ *Digest:* a mid-session initiative is filed as a costed Deferred entry by default, never started; work enters only through scope or an operator-ruled hotfix of an impacting failure, minimal and test-and-doc-complete in one commit; a debt-shaped gap is no initiative, fixed at close's drain.
50
94
 
51
- *Digest:* a mid-session initiative is filed as a costed Deferred entry by default, never started; work enters only through scope — or through an operator-ruled hotfix of an impacting failure, minimal and test-and-doc-complete in one commit.
95
+ 12. **Probe-before-assertion.** A claim about the tree, the harness, or a tool's behavior that one cheap command would settle is probed before it is asserted, and what the probe returned travels with the claim. The bar is *availability, not confidence*: a claim is unprobed if a command that would have settled it was there to run and was not, however well-reasoned the assertion. **Labelling a claim inferred does not discharge the probe.** The label is for evidence out of reach: a transcript, log or artifact on disk that holds the answer is read before any hypothesis is stated or relayed.
52
96
 
53
- 12. **Probe-before-assertion.** A claim about the tree, the harness, or a tool's behavior that one cheap command would settle is probed before it is asserted, and what the probe returned travels with the claim. The bar is *availability, not confidence*: a claim is unprobed if a command that would have settled it was there to run and was not, however well-reasoned the assertion. This is Oracle-first's design-time sibling and the two divide cleanly — that rule governs the claim a gate already decides and says run the gate; this one governs the claim made at scope, at spec, in a survey, or in a dispatch, where no oracle is running and standing one up costs a grep. It binds a *relayed* claim as hard as an authored one: forwarding an unverified premise is asserting it, and the forwarder owns the probe the originator skipped. It binds **outbound** claims too, and that reach does not follow from the inward examples: proposing that the operator file a report, open an issue, or escalate to a vendor asserts the thing is *unreported* — a claim about the world the proposal presumes, and one search from settled. The outbound reach is stated rather than left to be derived, because holding the general rule demonstrably does not produce it: the inward habit and the outward one are learned separately. **A probe supports a claim no wider than the corpus it ranged over, and its silence reads exactly like an answer.** A path-scoped grep settles its path, not the tree. A filter's empty return means success only if the filter could have matched. A keyword sweep misses prose that describes a thing without naming it, and a bounded window (`grep -A`, a line range) says nothing past its edge. None of these reports its own coverage. So name the claim's corpus first, run the probe over that corpus, and check the probe's coverage before reading its silence as a negative: a second sweep on a paraphrase, the section's real extent against the window, the size of the set it ranged over. A probe over a narrower corpus is a stand-in for the claim's subject, the case the Read-the-subject rule governs. *Under agent work:* an agent's prose reads identically whether it was measured or inferred, so an unprobed premise enters the record indistinguishable from a verified one and is inherited downstream as settled fact. Each hand-off raises its apparent authority without adding evidence, and the correction cost lands on whichever later session finally runs the command — by which point the claim has shaped the work built on it. *Enforced by:* judgment with a capture mechanism, not a gate — whether a claim was probed is not machine-decidable (the Enforcement-first false-positive carve-out, on Gap disposition's model). Its capture surfaces are the survey record's witness discipline and the queue's practice of dating premise corrections into entry bodies ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The survey record). Mechanizing the corpus check is refused: the two places a claim's corpus is written for a tool, an amendment's update-target roster and a survey record block, write the corpus and the probe side by side, so a check comparing them would hold the record to itself rather than to the claim.
97
+ This is Oracle-first's design-time sibling and the two divide cleanly. That rule governs the claim a gate already decides and says run the gate. This one governs the claim made at scope, at spec, in a survey, or in a dispatch, where no oracle is running and standing one up costs a grep. It binds a *relayed* claim as hard as an authored one: forwarding an unverified premise is asserting it, and the forwarder owns the probe the originator skipped. It binds **outbound** claims too, and that reach does not follow from the inward examples. Proposing that the operator file a report, open an issue, or escalate to a vendor asserts the thing is *unreported* — a claim about the world the proposal presumes, and one search from settled. The outbound reach is stated rather than left to be derived, because holding the general rule demonstrably does not produce it: the inward habit and the outward one are learned separately.
54
98
 
55
- *Digest:* a claim one cheap command would settle is probed over the corpus the claim ranges over before it is asserted; relaying an unverified premise is asserting it.
99
+ **A probe supports a claim no wider than the corpus it ranged over, and its silence reads exactly like an answer.** A path-scoped grep settles its path, not the tree. A filter's empty return means success only if the filter could have matched. A keyword sweep misses prose that describes a thing without naming it, and a bounded window (`grep -A`, a line range) says nothing past its edge. None of these reports its own coverage. So name the claim's corpus first, run the probe over that corpus, and check the probe's coverage before reading its silence as a negative. The coverage checks are a second sweep on a paraphrase, the section's real extent against the window, and the size of the set it ranged over. A probe over a narrower corpus is a stand-in for the claim's subject, the case the Read-the-subject rule governs.
56
100
 
57
- 13. **Policy-as-choice.** A kit behavior that encodes a policy ships as a consumer-selectable set of alternatives, never as its author's one choice baked in. A policy is a calibration another adopter could reasonably set differently while the gate's stated contract stays true: a threshold, a cap, a reach or window, an age, a class set, a phrase list, a fail-or-skip disposition. The set holds `off` wherever the gate's other assertions survive without that calibration, and a per-record exception valve where one record can legitimately sit outside it; `off` for a calibration that is the gate's whole predicate is unregistering the gate, which the registry already offers. The kit's table carries the default: for a calibration older than its knob, the value it shipped with, so an upgrade moves no verdict; for a new one, the kit's recommendation with its ground. A consumer that holds a choice binds it in its own config, and the kit's author is such a consumer. Three things are not policy, because another value breaks something other than taste: a grammar the kit ships (a marker's spelling, a tag's syntax, the heading of a file the kit ships), a contract invariant or an external limit (an engine's bound, a standard's format), and a value that changes no verdict (a quoted excerpt's width). Where a structural bound exists (the token, the clause, the sentence a grammar already defines) it beats a count, because it leaves nothing to choose. A knob's alternatives are values the kit ships working; a consumer-authored adapter extends them and is never the only working configuration ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §The knob file). *Under agent work:* a session designing a kit feature sees one tree, its own, so that tree's preference reads as the obvious value and ships as everyone's; an adopter meets it as a red they can only bypass, and each bypass teaches bypassing. The discriminator costs a knob row at design time and a correction afterwards. *Enforced by:* judgment with a capture mechanism, not a gate. A baked calibration is as often an inline literal as a named constant, and a constant named like a window can be a display width, so a scan over constants is a stand-in reaching part of the class and mislabelling part of what it reaches (the Enforcement-first false-positive carve-out). Its cadence is a consumer audit-roster class due when a gate gains or changes a literal bound or a kit template gains a pattern ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The audit roster), and every calibration the rule turns into a knob is listed by `--emit knob-roster` ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §The knob file).
101
+ *Under agent work:* an agent's prose reads identically whether it was measured or inferred, so an unprobed premise enters the record indistinguishable from a verified one and is inherited downstream as settled fact. Each hand-off raises its apparent authority without adding evidence, and the correction cost lands on whichever later session finally runs the command — by which point the claim has shaped the work built on it.
102
+
103
+ *Enforced by:* judgment: whether a claim was probed is a session act a scanner cannot see. Its capture surfaces are the survey record's witness discipline and the queue's practice of dating premise corrections into entry bodies ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The survey record). Mechanizing the corpus check is refused. The two places a claim's corpus is written for a tool, an amendment's update-target roster and a survey record block, write the corpus and the probe side by side, so a check comparing them would hold the record to itself rather than to the claim.
104
+
105
+ *Digest:* a claim a cheap command or on-disk evidence settles is probed over the corpus it ranges over before it is asserted or relayed; inferred is for evidence out of reach.
106
+
107
+ 13. **Policy-as-choice.** A kit behavior that encodes a policy ships as a consumer-selectable set of alternatives, never as its author's one choice baked in. A policy is a calibration another adopter could reasonably set differently while the gate's stated contract stays true: a threshold, a cap, a reach or window, an age, a class set, a phrase list, a fail-or-skip disposition. The set holds `off` wherever the gate's other assertions survive without that calibration, and a per-record exception valve where one record can legitimately sit outside it. `off` for a calibration that is the gate's whole predicate is unregistering the gate, which the registry already offers. The kit's table carries the default: for a calibration older than its knob, the value it shipped with, so an upgrade moves no verdict; for a new one, the kit's recommendation with its ground. A consumer that holds a choice binds it in its own config, and the kit's author is such a consumer.
108
+
109
+ Three things are not policy, because another value breaks something other than taste. They are a grammar the kit ships (a marker's spelling, a tag's syntax, the heading of a file the kit ships), a contract invariant or an external limit (an engine's bound, a standard's format), and a value that changes no verdict (a quoted excerpt's width). Where a structural bound exists (the token, the clause, the sentence a grammar already defines) it beats a count, because it leaves nothing to choose. A knob's alternatives are values the kit ships working; a consumer-authored adapter extends them and is never the only working configuration ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §The knob file).
110
+
111
+ *Under agent work:* a session designing a kit feature sees one tree, its own, so that tree's preference reads as the obvious value and ships as everyone's; an adopter meets it as a red they can only bypass, and each bypass teaches bypassing. The discriminator costs a knob row at design time and a correction afterwards.
112
+
113
+ *Enforced by:* judgment. A baked calibration is as often an inline literal as a named constant, and a constant named like a window can be a display width. So a scan over constants is a stand-in reaching part of the class and mislabelling part of what it reaches. Its cadence is a consumer audit-roster class due when a gate gains or changes a literal bound or a kit template gains a pattern ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The audit roster), and every calibration the rule turns into a knob is listed by `--emit knob-roster` ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §The knob file).
58
114
 
59
115
  *Digest:* a kit ships a calibration as a consumer-selectable set, off among them, never its author's one choice; each consumer binds its own.
60
116
 
61
- 14. **Absence statements.** State an absence only where a reader must tell *considered, and none* from *not yet filled*, as in a hand-authored checklist or a declaration read as the empty set. There it is a token (`None`, a dash), with a reason only where the grammar asks for one. Elsewhere omit it, since the structure shows it: an empty section is its heading alone. A generated section always is, since an emitter cannot forget to fill it. A sentence saying nothing stands somewhere is the defect on both sides. *Under agent work:* an agent fills an empty section by reflex so the page looks finished, and its sentence is a second source of what the structure carries, stale once the section fills and read on a ledger as a finding. The inverse reflex drops the token a reader needed, so the rule has two branches, not one ban. *Enforced by:* a surface's own grammar where one owns it: an emitter's contract under its freshness gate ([queue-kit/SPEC.md](../queue-kit/SPEC.md) §The roadmap arm), a mandatory negative form ([canon-kit/SPEC.md](../canon-kit/SPEC.md) §check-amendment-retired-spelling). On hand prose the branch is judgment (the Enforcement-first false-positive carve-out), with a consumer audit-roster class as its cadence ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The audit roster).
117
+ 14. **Absence statements.** State an absence only where a reader must tell *considered, and none* from *not yet filled*, as in a hand-authored checklist or a declaration read as the empty set. There it is a token (`None`, a dash), with a reason only where the grammar asks for one. Elsewhere omit it: an empty section is its heading alone, and a generated one always is, since an emitter cannot forget to fill it. *Under agent work:* an agent fills an empty section by reflex so the page looks finished, and its sentence is a second source of what the structure carries, stale once the section fills. The inverse reflex drops a token a reader needed, so the rule has two branches, not one ban. *Enforced by:* a surface's own grammar — an emitter's freshness-gated contract ([queue-kit/SPEC.md](../queue-kit/SPEC.md) §The roadmap arm), a mandatory negative form ([canon-kit/SPEC.md](../canon-kit/SPEC.md) §check-amendment-retired-spelling). Two shapes gate: a section whose whole body is a placeholder or one negative-existential sentence, on the surfaces a consumer binds ([canon-kit/SPEC.md](../canon-kit/SPEC.md) §check-prose-tells), and a placeholder standing where a queue entry would ([queue-kit/SPEC.md](../queue-kit/SPEC.md) §check-task-names). Other hand prose is judgment (Enforcement-first's carve-out), with a consumer audit-roster class as its cadence ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The audit roster).
62
118
 
63
119
  *Digest:* state an absence only where a reader must know it was considered, and then as a token; elsewhere omit it: an empty section is its heading alone.
64
120
 
65
121
  ## Engineering-craft rules
66
122
 
123
+ Where a rule below is *Enforced by* convention, no checkwright gate reads it yet, and the rule says what a gate would have to see.
124
+
67
125
  15. **Spec-invariant test naming.** A test of a spec-mandated invariant encodes that invariant in its *name*; the SPEC's test-requirement section owns which invariants a test must cover. A spec-clause *comment* on the test is not a substitute — it duplicates what the name should carry and rots silently when the clause is renamed. *Under agent work:* a test name is the line read at every failure and kept across refactors; an agent scanning a failing suite reads names, not comment pointers, so the invariant must live where the failure surfaces it. *Enforced by:* the test-naming convention, and canon-kit's `check-comment-tier` ([canon-kit/SPEC.md](../canon-kit/SPEC.md)) — which sweeps the comment substitute out rather than blessing it, leaving the name as the only place to carry the invariant.
68
126
 
69
127
  *Stages:* build, validate
70
128
 
71
- 16. **Test from the real consumer's runtime.** Verify a contract from the runtime of its real consumer, never a more lenient stand-in; a failure at a higher test layer with no failing test at the layer below is a coverage gap in the lower layer, closed there first. *Under agent work:* an agent scripts the contract from whatever client is easiest to drive, and a lenient stand-in passes what the real consumer's stricter stack would reject — a green the production caller does not share. *Enforced by:* a test-layer convention, not yet a checkwright gate: a consumer registers its real-consumer suites in the validate battery ([evidence-kit/SPEC.md](../evidence-kit/SPEC.md)), where a held-constant baseline turns a dropped layer into a red validate.
129
+ 16. **Test from the real consumer's runtime.** Verify a contract from the runtime of its real consumer, never a more lenient stand-in. A failure at a higher test layer with no failing test at the layer below is a coverage gap in the lower layer, closed there first. *Under agent work:* an agent scripts the contract from whatever client is easiest to drive, and a lenient stand-in passes what the real consumer's stricter stack would reject — a green the production caller does not share. *Enforced by:* convention at the test layer: a consumer registers its real-consumer suites in the validate battery ([evidence-kit/SPEC.md](../evidence-kit/SPEC.md)), where a held-constant baseline turns a dropped layer into a red validate.
72
130
 
73
131
  *Stages:* build, validate
74
132
 
@@ -76,31 +134,35 @@ The roster is in two registers. **Methodology-maintenance** rules govern how the
76
134
 
77
135
  *Stages:* build, validate
78
136
 
79
- 18. **Rename is a full-surface sweep.** A rename sweeps every surface in lockstep — prose, fixtures, and docs, not only the compiler-checked identifiers; the done-gate is a text-level completeness check, not the type-checker, and an in-progress rename is verified by a completeness scan before it is called finished. *Under agent work:* an agent reads a green type-check as "rename done" and leaves the retired term alive in every surface the compiler never sees; only a text-level sweep closes it. *Enforced by:* a text-level completeness check whose term list is *consumer config*, never a kit literal — the same seam that keeps product vocabulary out of shipped mechanism ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §The provenance seam), so the check ships and the vocabulary stays with the consumer.
137
+ 18. **Rename is a full-surface sweep.** A rename sweeps every surface in lockstep — prose, fixtures, and docs, not only the compiler-checked identifiers. The done-gate is a text-level completeness check, not the type-checker, and an in-progress rename is verified by a completeness scan before it is called finished. *Under agent work:* a green type-check reads to an agent as "rename done", and the retired term stays alive in every surface the compiler never sees; only a text-level sweep closes it. *Enforced by:* a text-level completeness check whose term list is *consumer config*, never a kit literal — the same seam that keeps product vocabulary out of shipped mechanism ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §The provenance seam), so the check ships and the vocabulary stays with the consumer.
80
138
 
81
139
  *Stages:* build
82
140
 
83
- 19. **Config edits are merges, not rewrites.** Edit a config or settings file with targeted, string-scoped edits, never a full-file write reconstructed from a partial read — a whole-file write built from part of the file silently drops everything the write did not carry. And validate an apparently broken file with the format's own parser before calling it corrupt: an apparent corruption is usually a parse by the wrong tool, not damaged content. *Under agent work:* an agent reads the top of a settings file, writes the whole file back from that fragment, and the keys it never read vanish with no diff to flag them; or it declares a file corrupt off a wrong-tool parse and "repairs" a file that was already valid. *Enforced by:* a convention, not yet a checkwright gate — the harness's Edit tool is the mechanism (an exact-string replace that fails loudly on a missing or ambiguous match, keeping the write scoped to what was read); no gate asserts a given edit was a merge rather than a rewrite.
141
+ 19. **Config edits are merges, not rewrites.** Edit a config or settings file with targeted, string-scoped edits, never a full-file write reconstructed from a partial read. A whole-file write built from part of the file silently drops everything the write did not carry. And validate an apparently broken file with the format's own parser before calling it corrupt: an apparent corruption is usually a parse by the wrong tool, not damaged content. *Under agent work:* an agent reads the top of a settings file, writes the whole file back from that fragment, and the keys it never read vanish with no diff to flag them. Or it declares a file corrupt off a wrong-tool parse and "repairs" a file that was already valid. *Enforced by:* convention. The harness's Edit tool is the mechanism: an exact-string replace that fails loudly on a missing or ambiguous match, keeping the write scoped to what was read. No gate asserts a given edit was a merge rather than a rewrite.
84
142
 
85
143
  *Stages:* build
86
144
 
87
- 20. **Re-verify volatile state before a git history rewrite.** Verify HEAD (`git log --oneline -3`) before an amend or squash; after a `git reset --soft`, re-stage and verify the staged content (`git show :<path>`) before committing — the soft reset keeps the old index snapshot; carry the commit message in the command — `-m`, or `-F -` fed by a quoted heredoc — rather than in a message file, because scratch outlives the session that wrote it and a sibling session committing from the same name lands the wrong message with exit 0; where a file is unavoidable, write it in the same command as the commit and read the landed message back (`git log -1 --format=%B`); and rewrite the message when amending so it states the combined change. *Under agent work:* the git index and HEAD are mutable state an agent reasons about from a stale in-context snapshot, and a rewrite acts on what the working tree *now* holds, not what the transcript last recorded, and a message file under scratch is state another session may have written last — so the verification must be a fresh read, never a remembered one. *Enforced by:* guard-kit's advisory guard rule on `git commit --amend`, `git reset --soft`, and `git commit -F` ([guard-kit/SPEC.md](../guard-kit/SPEC.md) §The generic ruleset), which surfaces this checklist at the moment the rewrite is dispatched — advisory because each command is legitimate.
145
+ 20. **Re-verify volatile state before a git history rewrite.** Verify HEAD (`git log --oneline -3`) before an amend or squash. After a `git reset --soft`, re-stage and verify the staged content (`git show :<path>`) before committing: the soft reset keeps the old index snapshot. Carry the commit message in the command — `-m`, or `-F -` fed by a quoted heredoc — rather than in a message file. Scratch outlives the session that wrote it, and a sibling session committing from the same name lands the wrong message with exit 0. Where a file is unavoidable, write it in the same command as the commit and read the landed message back (`git log -1 --format=%B`). Rewrite the message when amending so it states the combined change.
146
+
147
+ *Under agent work:* the git index and HEAD are mutable state an agent reasons about from a stale in-context snapshot. A rewrite acts on what the working tree *now* holds, not what the transcript last recorded, and a message file under scratch is state another session may have written last. So the verification must be a fresh read, never a remembered one.
148
+
149
+ *Enforced by:* guard-kit's advisory guard rule on `git commit --amend`, `git reset --soft`, and `git commit -F` ([guard-kit/SPEC.md](../guard-kit/SPEC.md) §The generic ruleset), which surfaces this checklist at the moment the rewrite is dispatched — advisory because each command is legitimate.
88
150
 
89
151
  *Stages:* build, close
90
152
 
91
- 21. **Entering another repo's tree, read its governance first.** A cross-repo edit re-reads that repo's agent file and README and checks its branch freshness every time — a second repo's model drifts independently of this one's, so a remembered version of its rules is a stale premise. *Under agent work:* an agent carries the governing rules of the repo it was last in into the next one, importing the wrong house style; only a fresh read of the entered tree's own governance corrects the prior. *Enforced by:* a convention, not yet a checkwright gate — another repo's tree is outside this tree's gate horizon, so no local check can assert its governance was reread.
153
+ 21. **Entering another repo's tree, read its governance first.** A cross-repo edit re-reads that repo's agent file and README and checks its branch freshness every time. A second repo's model drifts independently of this one's, so a remembered version of its rules is a stale premise. *Under agent work:* an agent carries the governing rules of the repo it was last in into the next one, importing the wrong house style; only a fresh read of the entered tree's own governance corrects the prior. *Enforced by:* convention: another repo's tree is outside this tree's gate horizon, so no local check can assert its governance was reread.
92
154
 
93
155
  *Stages:* build
94
156
 
95
- 22. **Naming: drop the qualifier the context supplies — only when every consumer has that context.** A name that travels into a flat namespace keeps its qualifier; default to the shorter form and reject the vacuous one, but a name that loses the context which disambiguated it must carry the qualifier with it. *Under agent work:* an agent copies a short name out of the scope that gave it meaning into a flat namespace where the qualifier is load-bearing, and the collision surfaces far from the rename; "does every reader still have the context" is the discriminator, not shortness. *Enforced by:* a convention, not yet a checkwright gate — whether a qualifier is redundant *for every consumer* is a judgment a scanner cannot decide; the de-literalization instinct, a name sized to its widest reader, is its written form.
157
+ 22. **Naming: drop the qualifier the context supplies — only when every consumer has that context.** A name that travels into a flat namespace keeps its qualifier. Default to the shorter form and reject the vacuous one, but a name that loses the context which disambiguated it must carry the qualifier with it. *Under agent work:* an agent copies a short name out of the scope that gave it meaning into a flat namespace where the qualifier is load-bearing, and the collision surfaces far from the rename. "Does every reader still have the context" is the discriminator, not shortness. *Enforced by:* convention: whether a qualifier is redundant *for every consumer* is a judgment a scanner cannot decide. The de-literalization instinct, a name sized to its widest reader, is its written form.
96
158
 
97
159
  *Stages:* scope, build
98
160
 
99
- 23. **Reuse a co-located consumer's data before designing a new path.** For an embedded or co-located actor, first ask whether it can read a co-located consumer's already-fetched data before minting a new stream, grant, or fetch — a "which path" framing can hide a "no path needed" answer. *Under agent work:* an agent asked "how should X get this data" designs a new channel because the question presupposes one, and never asks whether the data is already in reach; the cheaper reuse stays invisible unless the framing is challenged. *Enforced by:* a convention, not yet a checkwright gate — a data-path choice leaves no artifact a scanner reads; it is design-review judgment, kin to reaching for an existing owner before minting a second source.
161
+ 23. **Reuse a co-located consumer's data before designing a new path.** For an embedded or co-located actor, first ask whether it can read a co-located consumer's already-fetched data before minting a new stream, grant, or fetch. A "which path" framing can hide a "no path needed" answer. *Under agent work:* an agent asked "how should X get this data" designs a new channel because the question presupposes one, and never asks whether the data is already in reach; the cheaper reuse stays invisible unless the framing is challenged. *Enforced by:* convention: a data-path choice leaves no artifact a scanner reads. It is design-review judgment, kin to reaching for an existing owner before minting a second source.
100
162
 
101
163
  *Stages:* scope, build
102
164
 
103
- 24. **A resolver gate's flagged key is a fork, not a verdict.** A name-resolution gate that finds a silent drop has found either dead config to remove *or* promised-but-unwired config to build — one signature, opposite fixes; only the owning SPEC distinguishes them, so verify intent against the SPEC before sweeping the key away. *Under agent work:* an agent reads a gate finding as an instruction ("remove the flagged key") and deletes config the SPEC promised but the wiring never delivered — turning a build-it signal into a delete-it action; the gate saw the drop, not the intent. *Enforced by:* the name-resolution gates that surface the drop — the couples/reads walkers and reference-liveness sweeps in [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) — but the fork itself is resolved against the owning SPEC by judgment; the gate reports the dangling key, never which way it should be closed.
165
+ 24. **A resolver gate's flagged key is a fork, not a verdict.** A name-resolution gate that finds a silent drop has found either dead config to remove *or* promised-but-unwired config to build: one signature, opposite fixes. Only the owning SPEC distinguishes them, so verify intent against the SPEC before sweeping the key away. *Under agent work:* an agent reads a gate finding as an instruction ("remove the flagged key") and deletes config the SPEC promised but the wiring never delivered — turning a build-it signal into a delete-it action; the gate saw the drop, not the intent. *Enforced by:* the name-resolution gates that surface the drop — the couples/reads walkers and reference-liveness sweeps in [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) — but the fork itself is resolved against the owning SPEC by judgment; the gate reports the dangling key, never which way it should be closed.
104
166
 
105
167
  *Stages:* build
106
168
 
@@ -108,14 +170,36 @@ The roster is in two registers. **Methodology-maintenance** rules govern how the
108
170
 
109
171
  *Stages:* build
110
172
 
111
- 26. **An assertion reports the size of the set it ranged over.** A verification a session writes — a scan, a probe, a predicate under edit — whose subject is a set prints that set's size beside its verdict, because an exit code cannot distinguish *asserted and held* from *asserted nothing*: both are zero failures. The corollary governs the probe that proves an assertion bites — a mutation is valid only against a target the assertion actually ranges over, or it reports an empty red set and reads as a pass. *Quiet green, loud red* puts that count on a batch runner's summary line; this is the same tripwire one altitude down, for the one-off verification a session writes and reads inside the session. *Under agent work:* an agent writes the check and reads its verdict in one motion, so the exit code is the only evidence it holds that the check bit — and a predicate just rewritten (a regex carried between dialects, a path list narrowed) fails by matching nothing, which is indistinguishable from success. A printed count is the one signal that survives the rewrite. *Enforced by:* judgment, over a class only partly mechanizable — stated honestly rather than promised to a scanner. Shipped: the vacuous-pass tripwire in [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §run-gates, and the `good/`+`bad/` fixture pair every gate already owes ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §The gate model), which exercises a predicate rather than trusting it. Buildable but unbuilt: a branch-coverage assertion over a check's fixture corpus, for the arm that ships with no fixture to run it. Unreachable: whether a session's mutation probe targeted something its assertion ranges over is a property of a session act that leaves no residue in the tree, so that third stays judgment.
173
+ 26. **An assertion reports the size of the set it ranged over.** A verification a session writes — a scan, a probe, a predicate under edit — whose subject is a set prints that set's size beside its verdict. An exit code cannot distinguish *asserted and held* from *asserted nothing*: both are zero failures. The corollary governs the probe that proves an assertion bites — a mutation is valid only against a target the assertion actually ranges over, or it reports an empty red set and reads as a pass. *Quiet green, loud red* puts that count on a batch runner's summary line; this is the same tripwire one altitude down, for the one-off verification a session writes and reads inside the session.
174
+
175
+ *Under agent work:* an agent writes the check and reads its verdict in one motion, so the exit code is the only evidence it holds that the check bit. A predicate just rewritten (a regex carried between dialects, a path list narrowed) fails by matching nothing, which is indistinguishable from success. A printed count is the one signal that survives the rewrite.
176
+
177
+ *Enforced by:* judgment, over a class only partly mechanizable — stated honestly rather than promised to a scanner. Shipped: the vacuous-pass tripwire in [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §run-gates, and the `good/`+`bad/` fixture pair every gate already owes ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §The gate model), which exercises a predicate rather than trusting it. Buildable but unbuilt: a branch-coverage assertion over a check's fixture corpus, for the arm that ships with no fixture to run it. Unreachable: whether a session's mutation probe targeted something its assertion ranges over is a property of a session act that leaves no residue in the tree, so that third stays judgment.
112
178
 
113
179
  *Stages:* build, validate
114
180
 
115
- 27. **A third-party tool's behavior is a configuration question first.** Before designing any mitigation around a tool you do not control, probe its configuration surface and its issue tracker; a design question is what is left after both come back empty. Repeated confirmation of a *behavior* is evidence about the behavior and none at all about its *mutability*, so an attestation count pushes confidence the wrong way — each re-confirmation makes the mechanism feel settled and suppresses the config probe that would retire it. The corollary reads the mitigation rather than the tool: a workaround that keeps *growing* — more candidates, more unenforceable prose, a hand payment per use — is itself evidence of solving the wrong problem, because a correct fix converges and this shape accretes. When the workaround outgrows the thing it works around, stop and re-probe the premise. *Under agent work:* an agent inherits a prior session's symptom evidence as a settled mechanism and designs against it, and symptom evidence accumulates across sessions without any hand-off ever bearing on whether the symptom is configurable — so the premise hardens exactly as the sessions that could cheaply falsify it multiply. *Enforced by:* judgment, not a gate, and for the reason Probe-before-assertion states — whether a session probed a vendor's settings schema leaves no residue in the tree. The two divide by *target*: that rule governs a claim about the tree or the harness that a local command settles; this one governs a claim about an external tool, where the probe leaves the tree entirely. Its capture surface is the queue's design-pending tier, where a mitigation's growing candidate list is the readable signal the corollary names.
181
+ 27. **A third-party tool's behavior is a configuration question first.** Before designing any mitigation around a tool you do not control, probe its configuration surface and its issue tracker; a design question is what is left after both come back empty. Repeated confirmation of a *behavior* is evidence about the behavior and none at all about its *mutability*, so an attestation count pushes confidence the wrong way — each re-confirmation makes the mechanism feel settled and suppresses the config probe that would retire it. The corollary reads the mitigation rather than the tool: a workaround that keeps *growing* — more candidates, more unenforceable prose, a hand payment per use — is itself evidence of solving the wrong problem, because a correct fix converges and this shape accretes. When the workaround outgrows the thing it works around, stop and re-probe the premise.
182
+
183
+ *Under agent work:* an agent inherits a prior session's symptom evidence as a settled mechanism and designs against it. Symptom evidence accumulates across sessions without any hand-off ever bearing on whether the symptom is configurable, so the premise hardens exactly as the sessions that could cheaply falsify it multiply.
184
+
185
+ *Enforced by:* judgment, not a gate, and for the reason Probe-before-assertion states — whether a session probed a vendor's settings schema leaves nothing in the tree to read. The two divide by *target*: that rule governs a claim about the tree or the harness that a local command settles; this one governs a claim about an external tool, where the probe leaves the tree entirely. Its capture surface is the queue's design-pending tier, where a mitigation's growing candidate list is the readable signal the corollary names.
116
186
 
117
187
  *Stages:* scope, spec, build
118
188
 
119
- 28. **Read the subject, never a stand-in for it — a wrong stand-in is biased, not noisy.** A measurement taken off a proxy for the thing that matters — a module's knob list in place of the walk's filter argument, a declaration set in place of the walks it declares, a hand sweep in place of a census an oracle could run — errs in one consistent *direction*, because the divergence is a property of the proxy rather than of the reading. So independent readings converge on the **same** wrong answer, and agreement between readers is not evidence: the fourth reader reproduces the first reader's error for the first reader's reason. Name the subject, then name the command that reads it; where an assertion's subject is a proxy, the assertion is about the proxy. The corollary is the same substitution one level up, in the option space rather than the measurement: when a session reports that **no legal form exists**, the enumeration may have run over a stand-in axis, so check the frame before accepting the impossibility — a reported dead end is usually true inside a frame that is wrong. *Under agent work:* an agent reaches for whatever is readable, and a proxy gets chosen *because* it reads cleanly — which is also why review passes it: a reviewer re-reads the same readable surface and inherits the bias instead of catching it, so re-reading is the one remedy that cannot work. And an agent reporting a dead end reports it from the option set it enumerated, never from the one it did not see, so a confident "no legal repair" is the shape most in need of a reframe rather than a ruling. *Enforced by:* judgment, and honestly so — which surface a session read a number off leaves no residue in the tree. What ships is the substitute for the read rather than a check on it: an oracle per question (the `--emit` arms and the `good/`+`bad/` fixture pair, [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §The gate model) and the printed set size of *An assertion reports the size of the set it ranged over*, which catches a proxy that ranged over nothing but not one that ranged over the wrong thing. Buildable and unbuilt: a census arm for any population a session is asked to size, so the hand sweep has a cheaper alternative at the moment it is tempting.
189
+ 28. **Read the subject, never a stand-in for it — a wrong stand-in is biased, not noisy.** A measurement taken off a proxy for the thing that matters errs in one consistent *direction*. The proxy is a module's knob list in place of the walk's filter argument, a declaration set in place of the walks it declares, a hand sweep in place of a census an oracle could run. The divergence is a property of the proxy rather than of the reading. So independent readings converge on the **same** wrong answer, and agreement between readers is not evidence: the fourth reader reproduces the first reader's error for the first reader's reason. Name the subject, then name the command that reads it; where an assertion's subject is a proxy, the assertion is about the proxy.
190
+
191
+ The corollary is the same substitution one level up, in the option space rather than the measurement. When a session reports that **no legal form exists**, the enumeration may have run over a stand-in axis, so check the frame before accepting the impossibility: a reported dead end is usually true inside a frame that is wrong.
192
+
193
+ *Under agent work:* an agent reaches for whatever is readable, and a proxy gets chosen *because* it reads cleanly. That is also why review passes it: a reviewer re-reads the same readable surface and inherits the bias instead of catching it, so re-reading is the one remedy that cannot work. And an agent reporting a dead end reports it from the option set it enumerated, never from the one it did not see, so a confident "no legal repair" is the shape most in need of a reframe rather than a ruling.
194
+
195
+ *Enforced by:* judgment, and honestly so — which surface a session read a number off leaves no residue in the tree. What ships is the substitute for the read rather than a check on it. One part is an oracle per question: the `--emit` arms and the `good/`+`bad/` fixture pair ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §The gate model). The other is the printed set size of *An assertion reports the size of the set it ranged over*, which catches a proxy that ranged over nothing but not one that ranged over the wrong thing. Buildable and unbuilt: a census arm for any population a session is asked to size, so the hand sweep has a cheaper alternative at the moment it is tempting.
120
196
 
121
197
  *Stages:* spec, build, validate
198
+
199
+ 29. **Rehearse the published front door from a clean seat.** Before an audience meets a release, install the artifact as published, by each route that audience will take, on a seat that never held the project: no checkout, no cached toolchain, no configuration of the author's. Walk a newcomer's first session there, through the first refusal and the first upgrade, and file every finding (the *Gap disposition* rule). A smoke that packs the tree and installs it from the author's seat exercises neither the published bytes nor the clean host, so it passes what a stranger's first install refuses. A route a pipeline can drive is rehearsed by the pipeline on every publish; one it cannot is walked by hand before the event. Which seats, platforms, routes and events those are is the consumer's release procedure's to name.
200
+
201
+ *Under agent work:* an agent's seat is the author's, with every tool placed and configured, so its green install proves the author's path and no other.
202
+
203
+ *Enforced by:* convention at the release boundary; a consumer mechanizes the drivable routes as a job of its publish pipeline. No checkwright gate reads it yet: whether a rehearsal ran on a seat that never held the project leaves nothing in the tree but the consumer's own record.
204
+
205
+ *Stages:* close
@@ -4,7 +4,7 @@ The experience-packaging rung: the cross-kit delivery doctrine the other kits en
4
4
 
5
5
  The deliverable — [`DOCTRINE.md`](DOCTRINE.md) — carries each rule as its statement, why it holds under coding-agent work, and a pointer to the kit mechanism that enforces it. It is referenced in place, never copy-installed: a consumer's always-loaded agent file gains a one-line-per-rule digest and a markdown link to the vendored doctrine, and re-vendoring the kit *is* the doctrine upgrade. See [SPEC.md](https://checkwright.dev/doctrine-kit/SPEC#the-doctrine-deliverable) for why that reference-not-copy boundary is the mechanism.
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 installer — the gate binary's `--install-doctrine` arm — inserts or replaces the reference block between fixed markers, idempotently. It does not carry the digest: each bullet is derived from the summary its rule states in a `*Digest:*` trailer, so the digest names every methodology rule by construction and a rule cannot land in the doctrine but miss the block every consumer installs. The gate — `check-doctrine-registration` — holds the block honest: it asserts the always-loaded file carries the markdown link *and* keeps its methodology-rule digest in per-rule lockstep with the doctrine (each rule digested or declared trimmed, no digest bullet orphaned), and that each rule carries its one well-formed per-rule trailer — `*Stages:*` routing on the craft register, `*Digest:*` on the methodology register — fail-closed when a scanned file or heading is missing.
10
10
 
@@ -33,7 +33,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
33
33
  ```
34
34
  <!-- gate-roster:end -->
35
35
 
36
- The pre-commit hook runs the gates their `# graph:` manifests trigger, read at commit; `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes it once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered.
36
+ The pre-commit hook runs the gates 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.
37
37
 
38
38
  3. Edit the digest — to drop a rule your project does not keep resident, declare the trim in place: `<!-- doctrine-digest-trim: <rule name> — <reason> -->` inside the digest section. The gate holds the digest in per-rule lockstep with the doctrine modulo declared trims, so a silent omission stays red; point `DOCTRINE_KIT_DIGEST_SECTION` at your heading if it is not `## Delivery doctrine`. The declaration survives the next run: the installer reads your block before it rewrites it and carries each declared marker back into the trimmed rule's position, so re-vendoring never restores a rule you removed. That is the only customization it preserves — see [SPEC.md](https://checkwright.dev/doctrine-kit/SPEC#install-doctrine) for the bound and the two findings it reports.
39
39
 
@@ -4,7 +4,7 @@ Drift reporting for coding-agent sessions. Gates block what a single diff makes
4
4
 
5
5
  Advisory by construction: the report exits 0, never fails a session, and reads **trend, not level** — a KPI's absolute value is noise; its direction across sessions is the signal. See [SPEC.md](https://checkwright.dev/drift-kit/SPEC) for the report frame, the plugin contract, the bundled KPI set, and the knowledge-friction loop.
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
  drift-kit registers **no gates**: its surface is a set of advisory `--emit` arms and a KPI registry, so nothing joins `gates.list`. It follows gate-sdk's resolution and smoke conventions without depending on its registry.
10
10
 
@@ -21,7 +21,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/), then:
21
21
 
22
22
  Prune `scripts/kpis.list` to the KPIs whose surfaces your repo has; each bundled KPI degrades to a visible `n/a` row when its surface is absent, so an over-broad registry is safe but noisy.
23
23
 
24
- 2. Wire the trend line — point context-kit's session-context hook at the report by setting `CONTEXT_KIT_DRIFT_REPORT` to the arm name `drift-report` (or the `DRIFT_ARM` default in your hook copy). The hook runs the arm with `--trend` and prints one line; absent the variable, the line is silently skipped.
24
+ 2. Wire the trend line — point context-kit's session-context hook at the report by setting `CONTEXT_KIT_DRIFT_REPORT` to the arm name `drift-report` in your context-kit knob file. The hook runs the arm with `--trend` and prints one line; left unset, the line is silently skipped.
25
25
 
26
26
  Configuration follows the established kit pattern — override any knob in `drift-config.knobs` (registry path, extra KPI dirs, the queue/log/timings surfaces, the metric dir holding the persistent trend logs, the Done/Deferred section headings); defaults are this repo's layout. Keep the metric dir (`DRIFT_KIT_METRIC_DIR`; [drift-kit/SPEC.md §Layout and configuration](https://checkwright.dev/drift-kit/SPEC#layout-and-configuration) owns the default) gitignored — its trend samples carry account and session identifiers.
27
27
 
@@ -44,22 +44,31 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
44
44
  "$gates" --emit queue-flow [<n>] # design-pending pool filed/drained per trailing iteration, plus mean-filed
45
45
  "$gates" --emit overhead-meter # governance-vs-task byte proxy for this session's transcript (a delegated session passes its transcript or stamp id)
46
46
  "$gates" --emit stage-economics # real spend by stage × model × iteration (stamps ⋈ transcripts ⋈ price table)
47
+ "$gates" --emit statistics [<n>] # the per-iteration figures charted into one local HTML view
48
+ "$gates" --emit manual-ops [iteration] # the shell shapes and hand-edited paths an iteration's sessions repeated, ranked as tooling candidates
47
49
  "$gates" --price-coverage # which running model ids the price table cannot price; with a page command set, whether the pricing page moved
48
- "$gates" --emit file-install [--author] [--] <kind> <field>... # record one observed install, red or check-in (three kinds, three arities); --author files the author seat's own
50
+ "$gates" --emit file-install [--author] [--] <kind> <field>... # record one observed install, held proof, red or check-in (four kinds, four arities); --author files the author seat's own
49
51
  "$gates" --emit install-evidence # the aggregate-only projection over that record, for a consumer to pin behind a freshness gate
52
+ "$gates" --selection-probe [<agent>...] # ask the coding agents you bind, cold, each prompt you bind, and record whether an answer names your subject
50
53
  ```
51
54
 
55
+ `--selection-probe` is the agent-selection probe ([drift-kit/SPEC.md §The agent-selection probe](https://checkwright.dev/drift-kit/SPEC#the-agent-selection-probe)): it runs each agent's argv from a fresh empty directory outside any repository with a prompt appended, and records one `named`, `unnamed`, `failed` or `timed-out` line per agent and prompt in a private record under your metric dir (`DRIFT_KIT_SELECTION_RECORD`), keeping each answer beside it (`DRIFT_KIT_SELECTION_ANSWERS_DIR`). It is off until you bind `DRIFT_KIT_SELECTION_AGENTS`, `DRIFT_KIT_SELECTION_PROMPTS` and `DRIFT_KIT_SELECTION_SUBJECT`; `DRIFT_KIT_SELECTION_TIMEOUT` bounds each call. Run it by hand only: each run spends on every bound agent's account.
56
+
52
57
  `--emit overhead-meter` is the overhead meter ([drift-kit/SPEC.md §The overhead meter](https://checkwright.dev/drift-kit/SPEC#the-overhead-meter)): a byte-proxy over a session transcript that reports what fraction of the volume was governance versus task work, logging one line per session for `kpi-overhead` — the methodology's own cost, measured so efficiency claims cut both ways. Advisory and content-free: it emits counts only, never transcript text.
53
58
 
54
59
  The `trajectory` emit arm is the published-evidence extractor ([drift-kit/SPEC.md §The published-evidence extractor](https://checkwright.dev/drift-kit/SPEC#the-published-evidence-extractor)): a pure function of committed git history that emits one row per closed iteration — stages run, commit shape, amendment latency, validate attestations, gate-roster growth — for a consumer to pin behind a freshness gate.
55
60
 
56
61
  `--emit queue-flow` is the queue-flow arm ([drift-kit/SPEC.md §The queue-flow arm](https://checkwright.dev/drift-kit/SPEC#the-queue-flow-arm)): `kpi-queue-net-delta`'s filed and drained counts over each of the trailing closed iterations, and their mean inflow, the figure a scope session weighs a unit set against.
57
62
 
58
- `--emit stage-economics` is the stage-economics meter ([drift-kit/SPEC.md §The stage-economics meter](https://checkwright.dev/drift-kit/SPEC#the-stage-economics-meter)): it prices real spend by lifecycle stage × model × iteration by joining WORKFLOW-STATE stamps to their session transcripts to a consumer-supplied price table, keeping the cache-read burn lever visible close-over-close. Copy `templates/price-table.tsv` beside your gates dir and fill your model roster (the roster is consumer config, never a kit literal — the provenance seam); absent it, cost degrades to `n/a` and tokens still report. The `/economics` skill (`templates/economics.md`, materialized as `.claude/commands/economics.md`) chains overhead-meter → stage-economics into one post-iteration cost narrative — a reporting ritual the close skill may invoke, not a lifecycle stage and not a gate. If your decisions read the log, run the meter at your terminal stage — its rows are dated by their stamps, so a re-run at every close re-dates nothing — and `kpi-stage-economics-lag` shows how many closes have gone unpriced when that feed is skipped.
63
+ `--emit stage-economics` is the stage-economics meter ([drift-kit/SPEC.md §The stage-economics meter](https://checkwright.dev/drift-kit/SPEC#the-stage-economics-meter)): it prices real spend by lifecycle stage × model × iteration by joining WORKFLOW-STATE stamps to their session transcripts to a consumer-supplied price table, keeping the cache-read burn lever visible close-over-close. Copy `templates/price-table.tsv` beside your gates dir and fill your model roster (the roster is consumer config, never a kit literal — the provenance seam); absent it, cost degrades to `n/a` and tokens still report. The `/economics` skill (`templates/economics.md`, materialized in your agent-skill directory) chains overhead-meter → stage-economics → manual-ops into one post-iteration cost narrative and renders the statistics view — a reporting ritual the close skill may invoke, not a lifecycle stage and not a gate. If your decisions read the log, run the meter at your terminal stage — its rows are dated by their stamps, so a re-run at every close re-dates nothing — and `kpi-stage-economics-lag` shows how many closes have gone unpriced when that feed is skipped.
64
+
65
+ `--emit statistics` is the statistics view ([drift-kit/SPEC.md §The statistics view](https://checkwright.dev/drift-kit/SPEC#the-statistics-view)): the per-iteration figures the arms above report as tables — spend and cache-read by stage band and by model from the stage-economics log, governance share from the overhead log, and commit shape, amendments, validate, gate roster, queue flow, the always-loaded surface and the oldest deferred entry's age from committed history — charted over the closed iterations into one self-contained HTML file with no script. It is written under your metric dir (`DRIFT_KIT_STATISTICS_FILE`) and stays there: it carries your spend, so it is local and uncommitted, and it carries no freshness gate. A figure whose input is missing prints `n/a` with its reason and the rest still chart.
66
+
67
+ `--emit manual-ops` is the manual-operation meter ([drift-kit/SPEC.md §The manual-operation meter](https://checkwright.dev/drift-kit/SPEC#the-manual-operation-meter)): over the transcripts the stage-economics meter attributes to an iteration, it ranks the shell shapes and repository paths edited by hand, with how many iterations each has ranked in, so the close can see where a tool would remove work. Set `DRIFT_KIT_MANUAL_OPS_IGNORE` to the shapes you count as ordinary work. Advisory and content-free: it prints keys and counts, never command text.
59
68
 
60
- `--emit file-install` and `--emit install-evidence` are the two halves of the install-observation channel ([drift-kit/SPEC.md §The install-observation record](https://checkwright.dev/drift-kit/SPEC#the-install-observation-record) and [§The install-evidence projection](https://checkwright.dev/drift-kit/SPEC#the-install-evidence-projection)): the first appends one dated line per install, per red a non-author hit, and per retention check-in to a private, gitignored record under your metric dir (`--author` files an install you or someone acting for you ran into a separate record the projection never reads, so author evidence never reaches a published figure); the second emits an aggregate-only markdown table set over it — every figure with its denominator, no row keyed to a single install, and `<id>`, `<profile>` and `<floor>` never published. The field set is fixed before the first observation on purpose: a red nobody wrote down was never observed, so the evidence cannot be collected retrospectively. Closed-set fields are enforced at capture, so the arm's refusals are the whole observation protocol.
69
+ `--emit file-install` and `--emit install-evidence` are the two halves of the install-observation channel ([drift-kit/SPEC.md §The install-observation record](https://checkwright.dev/drift-kit/SPEC#the-install-observation-record) and [§The install-evidence projection](https://checkwright.dev/drift-kit/SPEC#the-install-evidence-projection)): the first appends one dated line per install, per held proof on that install, per red a non-author hit, and per retention check-in to a private, gitignored record under your metric dir (`--author` files an install you or someone acting for you ran into a separate record the projection never reads, so author evidence never reaches a published figure); the second emits an aggregate-only markdown table set over it — every figure with its denominator, no row keyed to a single install, and `<id>`, `<profile>` and `<floor>` never published. The field set is fixed before the first observation on purpose: a red nobody wrote down was never observed, so the evidence cannot be collected retrospectively. Closed-set fields are enforced at capture, so the arm's refusals are the whole observation protocol.
61
70
 
62
- A KPI plugin is `kpi-<name>.sh`, resolved through `kpis.list` against your KPI dirs, then each vendored kit's `kpis/`, then the binary's built-in members — three tiers, consumer-first. Add your own by dropping a plugin in your gates dir and naming it in the registry; shadow a bundled one with a same-named file. Your plugin is executed directly and reads the exported `DRIFT_KIT_*` environment, both unchanged by the bundled set moving in-crate. The bundled set ([drift-kit/SPEC.md §Bundled KPIs](https://checkwright.dev/drift-kit/SPEC#bundled-kpis)) carries, as lead KPIs, `kpi-task-split`, `kpi-queue-net-delta`, `kpi-gate-backlog`, `kpi-amendment-age`, `kpi-deferred-age`, `kpi-prompt-friction`, `kpi-always-loaded`, `kpi-settings-local`, `kpi-gate-runtime`, `kpi-overhead`, `kpi-price-table-age` and `kpi-stage-economics-lag`; and as lag KPIs, `kpi-knowledge-friction` (fed by the loop below) and `kpi-incident-recurrence` (fed by the queue's `[recurrence:]` tags).
71
+ A KPI plugin is `kpi-<name>.sh`, or `kpi-<name>.ps1` started by the PowerShell host `GATE_SDK_POWERSHELL` names, resolved through `kpis.list` against your KPI dirs, then each vendored kit's `kpis/`, then the binary's built-in members — three tiers, consumer-first. Add your own by dropping a plugin in your gates dir and naming it in the registry; on native Windows, write it in PowerShell. Shadow a bundled one with a same-named file. A `.sh` plugin is executed directly, and either kind reads the exported `DRIFT_KIT_*` environment, both unchanged by the bundled set moving in-crate. The bundled set ([drift-kit/SPEC.md §Bundled KPIs](https://checkwright.dev/drift-kit/SPEC#bundled-kpis)) carries, as lead KPIs, `kpi-task-split`, `kpi-queue-net-delta`, `kpi-gate-backlog`, `kpi-amendment-age`, `kpi-deferred-age`, `kpi-deprecated-surface`, `kpi-prompt-friction`, `kpi-always-loaded`, `kpi-settings-local`, `kpi-gate-runtime`, `kpi-overhead`, `kpi-price-table-age` and `kpi-stage-economics-lag`; and as lag KPIs, `kpi-knowledge-friction` (fed by the loop below) and `kpi-incident-recurrence` (fed by the queue's `[recurrence:]` tags).
63
72
 
64
73
  ## Test
65
74
 
@@ -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/knowledge-friction.log advisory reclaim=bash gate-sdk/bin/run-gates.sh --emit capture-drain .workflow/knowledge-friction.log
@@ -1,16 +1,20 @@
1
- CONSUMER BINDING — create `.claude/commands/economics.md` as a binding shim naming this template (a header `Execute the template at <path>, applying the bindings below.` then a `## Bindings` section) and bind its one slot — the model posture the report weighs. `/economics` is a post-iteration reporting ritual, not a lifecycle stage: it moves no cursor and stamps nothing (drift-kit/SPEC.md §The `/economics` skill), so it is outside the stage roster and never a gate.
1
+ CONSUMER BINDING — create `economics.md` in your agent-skill directory as a binding shim naming this template (a header `Execute the template at <path>, applying the bindings below.` then a `## Bindings` section) and bind its one slot — the model posture the report weighs. `/economics` is a post-iteration reporting ritual, not a lifecycle stage: it moves no cursor and stamps nothing (drift-kit/SPEC.md §The `/economics` skill), so it is outside the stage roster and never a gate.
2
2
 
3
- Run it at close (the close skill may invoke it) or ad hoc. It answers, for the iteration just run: what did it cost, where did the cost land, and was the model posture worth it. Chain the two reporting tools in order, then read their output into one narrative — do not paste the raw tool dumps:
3
+ Run it at close (the close skill may invoke it) or ad hoc. It answers, for the iteration just run: what did it cost, where did the cost land, and was the model posture worth it. Chain the three reporting tools in order, render the view, then read their output into one narrative — do not paste the raw tool dumps:
4
4
 
5
5
  1. **Governance overhead** — `--emit overhead-meter <session-id>` on the gate binary `GATE_SDK_NATIVE_BIN` names, run against the closing session and passing its stage stamp id (a delegated session must) (drift-kit/SPEC.md §The overhead meter): the governance-versus-task byte proxy for this session.
6
6
  2. **Stage economics** — the same binary's `--emit stage-economics` (drift-kit/SPEC.md §The stage-economics meter): real spend by stage × model × iteration, priced through the consumer price table. `cr` (cache-read) is the headline burn field — accumulated-context cache-read, not model choice, is the dominant draw, so lead the cost story with it. A missing price table degrades cost to `n/a` and the tokens still report.
7
+ 3. **Manual operations** — the same binary's `--emit manual-ops` (drift-kit/SPEC.md §The manual-operation meter): the shell shapes and hand-edited paths this iteration repeated, ranked, with how many iterations each has ranked in.
8
+ 4. **Statistics view** — the same binary's `--emit statistics` (drift-kit/SPEC.md §The statistics view): the per-iteration figures charted into one local HTML file. Run it after stage-economics, so the spend panel holds this iteration's rows.
7
9
 
8
- Compose the narrative from those two surfaces:
10
+ Compose the narrative from those surfaces:
9
11
 
10
12
  - **Cost by stage.** From the stage-economics rows, name the priciest stages and their token shape; call out `cr` explicitly as the lever, since it dominates.
11
13
  - **Supervision.** Under a split-lead posture the lead's dispatch, verification, and battery burn carries no stage stamp, so it lands in its own row rather than inside any stage's total (drift-kit/SPEC.md §The stage-economics meter, the reserved `supervision` value). Report it as a named line item beside the per-stage bullets — never folded into them — and say plainly that per-stage figures exclude it. If the run's caveat named an apportionment key (one lead spanning several iterations), repeat the key so the reader can discount the row.
12
14
  - **Fan-out.** A stage that dispatched agents pays for their whole subtree, and that subtree bills to its own suffixed row rather than into the stage's own (drift-kit/SPEC.md §The stage-economics meter, the fan-out row). Report it as a named line item beside that stage's figure — never folded into it — and say plainly that a per-stage figure excludes its own fan-out. Where the run's notice named an apportionment key or a count of transcripts that resolved no anchor, repeat it so the reader can discount the row. Read the row as an **aggregate**: it carries no dispatch-type dimension, so a fork's spend and a typed dispatch's spend are one total in it — do not report it as the cost of forking.
13
15
  - **Overhead share.** From the overhead meter, state what fraction of the closing session was governance versus task work — the methodology's own cost.
16
+ - **Repeated manual operations.** Name the top candidates with their call and session counts, the stages they ran in, and how often they have ranked before. Say which a tool would remove and file it as a gap; a shape that is ordinary work joins `DRIFT_KIT_MANUAL_OPS_IGNORE`.
14
17
  - **Posture verdict.** Weigh *<posture: the model posture this iteration ran — which model class rode which stages, and where the consumer's ruling records it — so the report can judge whether that posture earned its per-stage cost against the stage-economics rows.>* against the priced rows: did the stages that rode the expensive class earn it, or would a cheaper class have served? State the finding; the numbers, not a prior, settle it.
18
+ - **The view.** Name the file the statistics view wrote, and any panel it printed as `n/a`, so the reader knows where the trend is and what it lacks.
15
19
 
16
20
  Every emitting surface is advisory (exit 0, no gate): a missing input is a notice, never a failure. The tools write only under the gitignored metric dir and emit no account identifiers, so the report carries none either.
@@ -9,6 +9,7 @@ kpi-task-split
9
9
  kpi-gate-backlog
10
10
  kpi-amendment-age
11
11
  kpi-deferred-age
12
+ kpi-deprecated-surface
12
13
  kpi-prompt-friction
13
14
  kpi-always-loaded
14
15
  kpi-settings-local
@@ -2,9 +2,9 @@
2
2
 
3
3
  A held-constant test baseline and a committed per-run evidence manifest for the validate stage: a stage stamp proves a stage was *invoked*, evidence-kit proves it produced its green result. The manifest is a versioned, hashable wire contract (`# contract: evidence-manifest v1`) an external verifier can consume, so the kit is adoptable with or without an iteration lifecycle.
4
4
 
5
- The gates: `check-evidence-baseline` (baseline grammar, blocking-slug liveness, scenario coverage, flip causation), `check-evidence-manifest` (manifest grammar and, where lifecycle drives the tree, close-entry green block + validate-stamp coupling), `check-battery-roster` (the runner doc's battery block against the suite roster) and `check-producer-liveness` (no stage entry while the producer is still running). The tools that drive it are both non-gate arms of the gate binary, reached through gate-sdk's front end: `--run-validate` (the codified spine that runs the suites and records evidence) and `--diff-baseline` (the situational runtime diff). See [SPEC.md](https://checkwright.dev/evidence-kit/SPEC) for the full contracts.
5
+ The gates: `check-evidence-baseline` (baseline grammar, blocking-slug liveness, scenario coverage, flip causation), `check-evidence-manifest` (manifest grammar and, where lifecycle drives the tree, close-entry green block + validate-stamp coupling), `check-battery-roster` (the runner doc's battery block against the suite roster) and `check-producer-liveness` (no stage entry while the producer is still running). The tools that drive it are non-gate arms of the gate binary, reached through gate-sdk's front end: `--run-validate` (the codified spine that runs the suites and records evidence), `--diff-baseline` (the situational runtime diff) and `--emit baseline-claims` (each baseline row as a `measured:` oracle line, for prose that quotes one). See [SPEC.md](https://checkwright.dev/evidence-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
 
@@ -21,7 +21,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
21
21
  ```
22
22
  <!-- gate-roster:end -->
23
23
 
24
- The pre-commit hook runs the gates their `# graph:` manifests trigger, read at commit; `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes it once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered.
24
+ The pre-commit hook runs the gates 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.
25
25
 
26
26
  2. Seed the two surfaces — `.workflow/validate-baseline.txt`:
27
27
 
@@ -1 +1,2 @@
1
1
  suite 'beta' is absent from the battery-roster block
2
+ roster line runs no configured suite: './bin/cw --run-gate-tests stale/gate-tests'
@@ -6,9 +6,10 @@
6
6
  ```bash
7
7
  bash bin/run-alpha.sh # alpha
8
8
  bash bin/run-delta.sh # a suite validate no longer runs
9
+ ./bin/cw --run-gate-tests stale/gate-tests # a door line naming a retired suite
9
10
  ```
10
11
  <!-- battery-roster:end -->
11
12
 
12
13
  `bash bin/run-beta.sh` appears here, outside the markers, for a different
13
14
  rhetorical job — so beta is undocumented and gamma is missing outright, while
14
- the delta line resolves to no configured suite.
15
+ the delta line and the stale door line resolve to no configured suite.
@@ -1,7 +1,9 @@
1
- # spec: evidence-kit/SPEC.md §check-battery-roster — fixture consumer config: the same three suites as good/, so the pair differs only in the runner doc
1
+ # spec: evidence-kit/SPEC.md §check-battery-roster — fixture consumer config: the same four suites as good/, so the pair differs only in the runner doc
2
2
  EVIDENCE_KIT_SUITES[] = alpha
3
3
  EVIDENCE_KIT_SUITES[] = beta
4
4
  EVIDENCE_KIT_SUITES[] = gamma
5
+ EVIDENCE_KIT_SUITES[] = door
5
6
  EVIDENCE_KIT_RUN_alpha = bash bin/run-alpha.sh
6
7
  EVIDENCE_KIT_RUN_beta = env FIXTURE_VERBOSE=1 bash bin/run-beta.sh
7
8
  EVIDENCE_KIT_RUN_gamma = bash bin/run-gamma.sh --deep
9
+ EVIDENCE_KIT_RUN_door = ./bin/cw --run-gate-tests door/gate-tests
@@ -7,6 +7,7 @@
7
7
  bash bin/run-alpha.sh # alpha
8
8
  bash bin/run-beta.sh # beta — the env prefix is normalized away
9
9
  bash bin/run-gamma.sh --deep # gamma — arguments are part of the command
10
+ ./bin/cw --run-gate-tests door/gate-tests # door — a path-led command word on the binary door
10
11
  ```
11
12
  <!-- battery-roster:end -->
12
13
 
@@ -1,7 +1,9 @@
1
- # spec: evidence-kit/SPEC.md §check-battery-roster — fixture consumer config: three suites, one env-prefixed, so the pair exercises the invocation normalization the parity compare runs on
1
+ # spec: evidence-kit/SPEC.md §check-battery-roster — fixture consumer config: four suites, one env-prefixed and one on the binary door, so the pair exercises the invocation normalization the parity compare runs on and a path-led command word
2
2
  EVIDENCE_KIT_SUITES[] = alpha
3
3
  EVIDENCE_KIT_SUITES[] = beta
4
4
  EVIDENCE_KIT_SUITES[] = gamma
5
+ EVIDENCE_KIT_SUITES[] = door
5
6
  EVIDENCE_KIT_RUN_alpha = bash bin/run-alpha.sh
6
7
  EVIDENCE_KIT_RUN_beta = env FIXTURE_VERBOSE=1 bash bin/run-beta.sh
7
8
  EVIDENCE_KIT_RUN_gamma = bash bin/run-gamma.sh --deep
9
+ EVIDENCE_KIT_RUN_door = ./bin/cw --run-gate-tests door/gate-tests