checkwright 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1044) hide show
  1. package/README.md +35 -1361
  2. package/bin/checkwright.ps1 +157 -0
  3. package/bin/checkwright.sh +187 -44
  4. package/package.json +15 -14
  5. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  6. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -0
  7. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  8. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
  9. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  10. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -0
  11. package/payload/artifact/targets.list +120 -24
  12. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  13. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -0
  14. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  15. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
  16. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  17. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  18. package/payload/canon-kit/README.md +25 -37
  19. package/payload/canon-kit/checks/check-amendment-queue.gate +2 -2
  20. package/payload/canon-kit/checks/check-amendment-retired-spelling.gate +3 -0
  21. package/payload/canon-kit/checks/check-amendment-update-target.gate +3 -0
  22. package/payload/canon-kit/checks/check-comment-tier.gate +1 -1
  23. package/payload/canon-kit/checks/check-deprecation-task.gate +2 -1
  24. package/payload/canon-kit/checks/check-docs-cmd.gate +2 -2
  25. package/payload/canon-kit/checks/check-docs-link-convention.gate +1 -1
  26. package/payload/canon-kit/checks/check-docs-restatement-parity.gate +4 -0
  27. package/payload/canon-kit/checks/check-fence-command-head.gate +3 -0
  28. package/payload/canon-kit/checks/check-fence-run.gate +3 -0
  29. package/payload/canon-kit/checks/check-install-claim.gate +2 -1
  30. package/payload/canon-kit/checks/check-knob-citation.gate +1 -1
  31. package/payload/canon-kit/checks/check-manifest-count.gate +1 -1
  32. package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
  33. package/payload/canon-kit/checks/check-md-refs.gate +1 -1
  34. package/payload/canon-kit/checks/check-md-unwrapped.gate +3 -0
  35. package/payload/canon-kit/checks/check-measured-claim.gate +2 -1
  36. package/payload/canon-kit/checks/check-payload-claim.gate +2 -1
  37. package/payload/canon-kit/checks/check-prose-bounds.gate +3 -0
  38. package/payload/canon-kit/checks/check-prose-enum.gate +2 -1
  39. package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
  40. package/payload/canon-kit/checks/check-provenance-seam.gate +3 -0
  41. package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
  42. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
  43. package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
  44. package/payload/canon-kit/checks/check-spec-fence-balance.gate +1 -1
  45. package/payload/canon-kit/checks/check-spec-pointer.gate +2 -2
  46. package/payload/canon-kit/checks/check-surface-duplication.gate +3 -0
  47. package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
  48. package/payload/canon-kit/checks/check-tracking-claim.gate +1 -1
  49. package/payload/canon-kit/checks/check-unmarked-claim.gate +4 -0
  50. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +3 -0
  51. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +37 -8
  52. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +6 -3
  53. package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +7 -0
  54. package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +11 -3
  55. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-nosection.md +16 -0
  56. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-thing.md +26 -0
  57. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/expect.txt +8 -0
  58. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/one.md +4 -0
  59. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/two.md +3 -0
  60. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-tidy.md +20 -0
  61. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-widget.md +37 -0
  62. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/README.md +4 -0
  63. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/SPEC.md +4 -0
  64. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/expect.txt +1 -0
  65. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/unnamed.md +4 -0
  66. package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/SPEC-thing.md +26 -0
  67. package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/expect.txt +8 -0
  68. package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +47 -0
  69. package/payload/canon-kit/gate-tests/check-amendment-update-target/good/expect.txt +1 -0
  70. package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +82 -0
  71. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +1 -1
  72. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +37 -26
  73. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +3 -1
  74. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.knobs +2 -0
  75. package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +6 -2
  76. package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
  77. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.knobs +2 -0
  78. package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +12 -10
  79. package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +4 -1
  80. package/payload/canon-kit/gate-tests/check-docs-cmd.test.sh +61 -0
  81. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +3 -0
  82. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +21 -2
  83. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +2 -0
  84. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/README.md +10 -0
  85. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +11 -0
  86. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/canon-config.knobs +2 -0
  87. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/gate-sdk-config.knobs +2 -0
  88. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/expect.txt +1 -0
  89. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/README.md +12 -0
  90. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/index.md +13 -0
  91. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/canon-config.knobs +2 -0
  92. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/gate-sdk-config.knobs +2 -0
  93. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/args +1 -0
  94. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +16 -0
  95. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +5 -0
  96. package/payload/canon-kit/gate-tests/check-fence-command-head/good/args +1 -0
  97. package/payload/canon-kit/gate-tests/check-fence-command-head/good/bin/run.sh +3 -0
  98. package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +41 -0
  99. package/payload/canon-kit/gate-tests/check-fence-command-head/good/expect.txt +1 -0
  100. package/payload/canon-kit/gate-tests/check-fence-command-head/good/lib/tool.sh +5 -0
  101. package/payload/canon-kit/gate-tests/check-fence-command-head/good/scripts/canon-config.knobs +2 -0
  102. package/payload/canon-kit/gate-tests/check-fence-run/bad/args +1 -0
  103. package/payload/canon-kit/gate-tests/check-fence-run/bad/doc.md +32 -0
  104. package/payload/canon-kit/gate-tests/check-fence-run/bad/expect.txt +7 -0
  105. package/payload/canon-kit/gate-tests/check-fence-run/good/args +1 -0
  106. package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +31 -0
  107. package/payload/canon-kit/gate-tests/check-fence-run/good/expect.txt +1 -0
  108. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.knobs +7 -0
  109. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.knobs +7 -0
  110. package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +42 -7
  111. package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +1 -2
  112. package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  113. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +37 -8
  114. package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +3 -0
  115. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +10 -0
  116. package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +6 -6
  117. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +1 -1
  118. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/doc.md +13 -0
  119. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +4 -0
  120. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/scripts/canon-config.knobs +2 -0
  121. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/doc.md +45 -0
  122. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -0
  123. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/scripts/canon-config.knobs +4 -0
  124. package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +3 -0
  125. package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +1 -0
  126. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.knobs +4 -0
  127. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +8 -0
  128. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.knobs +4 -0
  129. package/payload/canon-kit/gate-tests/check-measured-claim/good/worktrees/SPEC.md +12 -0
  130. package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +32 -13
  131. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.knobs +6 -0
  132. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.knobs +6 -0
  133. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/CLAUDE.md +9 -0
  134. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/SPEC.md +11 -0
  135. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/expect.txt +3 -0
  136. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/scripts/canon-config.knobs +3 -0
  137. package/payload/canon-kit/gate-tests/check-prose-bounds/good/CLAUDE.md +10 -0
  138. package/payload/canon-kit/gate-tests/check-prose-bounds/good/SPEC.md +27 -0
  139. package/payload/canon-kit/gate-tests/check-prose-bounds/good/expect.txt +1 -0
  140. package/payload/canon-kit/gate-tests/check-prose-bounds/good/scripts/canon-config.knobs +3 -0
  141. package/payload/canon-kit/gate-tests/check-prose-bounds.test.sh +98 -0
  142. package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.knobs +3 -0
  143. package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.knobs +3 -0
  144. package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +55 -25
  145. package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +2 -0
  146. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -0
  147. package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
  148. package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/{canon-config.sh → canon-config.knobs} +2 -5
  149. package/payload/canon-kit/gate-tests/check-prose-tells/good/worktrees/prose.md +17 -0
  150. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/TASK-QUEUE.md +15 -0
  151. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/expect.txt +8 -0
  152. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/canon-config.knobs +3 -0
  153. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/gate-sdk-config.knobs +2 -0
  154. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/lifecycle-config.knobs +12 -0
  155. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/widget-toolkit/SPEC.md +27 -0
  156. package/payload/canon-kit/gate-tests/check-provenance-seam/good/TASK-QUEUE.md +15 -0
  157. package/payload/canon-kit/gate-tests/check-provenance-seam/good/expect.txt +1 -0
  158. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/canon-config.knobs +3 -0
  159. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/gate-sdk-config.knobs +2 -0
  160. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/lifecycle-config.knobs +12 -0
  161. package/payload/canon-kit/gate-tests/check-provenance-seam/good/widget-toolkit/SPEC.md +20 -0
  162. package/payload/canon-kit/gate-tests/check-provenance-seam.test.sh +136 -0
  163. package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +1 -1
  164. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +6 -0
  165. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
  166. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +2 -0
  167. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +4 -0
  168. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +6 -0
  169. package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +15 -0
  170. package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +10 -0
  171. package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
  172. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +2 -0
  173. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
  174. package/payload/canon-kit/gate-tests/check-spec-pointer/good/vendored-kit/notes.txt +4 -0
  175. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +3 -1
  176. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +9 -3
  177. package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -1
  178. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +14 -0
  179. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +4 -0
  180. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.knobs +4 -0
  181. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +21 -0
  182. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/expect.txt +1 -0
  183. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.knobs +4 -0
  184. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/worktrees/SPEC.md +11 -0
  185. package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +110 -0
  186. package/payload/canon-kit/templates/SPEC-amendment.md +63 -27
  187. package/payload/canon-kit/templates/canon-config.knobs +1 -0
  188. package/payload/context-kit/README.md +33 -61
  189. package/payload/context-kit/checks/check-brevity.gate +2 -2
  190. package/payload/context-kit/checks/check-footprint-fresh.gate +3 -2
  191. package/payload/context-kit/checks/check-memory-off.gate +1 -1
  192. package/payload/context-kit/checks/check-settings-paths.gate +2 -2
  193. package/payload/context-kit/checks/check-settings-pins.gate +1 -1
  194. package/payload/context-kit/checks/check-surface-ratchet.gate +3 -0
  195. package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +9 -2
  196. package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
  197. package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +9 -4
  198. package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -1
  199. package/payload/context-kit/gate-tests/check-brevity.test.sh +107 -24
  200. package/payload/context-kit/gate-tests/check-footprint-fresh/good/CLAUDE.md +6 -0
  201. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/SPEC.md +3 -0
  202. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/templates/guide.md +3 -0
  203. package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +30 -0
  204. package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/{context-config.sh → context-config.knobs} +1 -3
  205. package/payload/context-kit/gate-tests/check-memory-off/good/scripts/{context-config.sh → context-config.knobs} +1 -3
  206. package/payload/context-kit/gate-tests/check-memory-off.test.sh +1 -1
  207. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +2 -0
  208. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +21 -0
  209. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/run-gates.sh +4 -0
  210. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -1
  211. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +48 -1
  212. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/run-gates.sh +4 -0
  213. package/payload/context-kit/gate-tests/check-settings-pins.test.sh +1 -1
  214. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/CLAUDE.md +5 -0
  215. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/expect.txt +2 -0
  216. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/scripts/context-config.knobs +4 -0
  217. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/surface-ceiling.txt +2 -0
  218. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/templates/ungoverned.md +3 -0
  219. package/payload/context-kit/gate-tests/check-surface-ratchet/good/CLAUDE.md +3 -0
  220. package/payload/context-kit/gate-tests/check-surface-ratchet/good/expect.txt +1 -0
  221. package/payload/context-kit/gate-tests/check-surface-ratchet/good/scripts/context-config.knobs +4 -0
  222. package/payload/context-kit/gate-tests/check-surface-ratchet/good/surface-ceiling.txt +4 -0
  223. package/payload/context-kit/gate-tests/check-surface-ratchet/good/templates/held.md +4 -0
  224. package/payload/context-kit/gate-tests/check-surface-ratchet.test.sh +76 -0
  225. package/payload/context-kit/index-tests/corpus/baseline.txt +1 -1
  226. package/payload/context-kit/index-tests/corpus/surface.md +1 -6
  227. package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -1
  228. package/payload/context-kit/templates/close-brevity.md +9 -28
  229. package/payload/context-kit/templates/context-config.knobs +1 -0
  230. package/payload/context-kit/templates/session-context.sh +43 -28
  231. package/payload/delegation-kit/README.md +35 -59
  232. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +1 -1
  233. package/payload/delegation-kit/checks/check-gate-tamper.gate +1 -1
  234. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +23 -2
  235. package/payload/delegation-kit/templates/agent-execution.md +23 -372
  236. package/payload/delegation-kit/templates/delegation-config.knobs +4 -0
  237. package/payload/delegation-kit/templates/dispatch-checklists.md +8 -45
  238. package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +33 -17
  239. package/payload/doctrine-kit/DOCTRINE.md +92 -458
  240. package/payload/doctrine-kit/README.md +24 -55
  241. package/payload/doctrine-kit/checks/check-doctrine-registration.gate +1 -1
  242. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +48 -3
  243. package/payload/drift-kit/README.md +43 -89
  244. package/payload/drift-kit/templates/close-knowledge.md +7 -22
  245. package/payload/drift-kit/templates/drift-config.knobs +1 -0
  246. package/payload/drift-kit/templates/economics.md +10 -48
  247. package/payload/drift-kit/templates/kpi-deprecated-surface.sh +31 -9
  248. package/payload/drift-kit/templates/kpis.list +2 -1
  249. package/payload/drift-kit/templates/price-table.tsv +1 -1
  250. package/payload/evidence-kit/README.md +23 -46
  251. package/payload/evidence-kit/checks/check-battery-roster.gate +1 -1
  252. package/payload/evidence-kit/checks/check-evidence-baseline.gate +2 -2
  253. package/payload/evidence-kit/checks/check-evidence-manifest.gate +1 -1
  254. package/payload/evidence-kit/checks/check-producer-liveness.gate +3 -0
  255. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +7 -0
  256. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +7 -0
  257. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +7 -7
  258. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -1
  259. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +1 -0
  260. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +2 -0
  261. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/scripts/evidence-config.knobs +4 -0
  262. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +1 -0
  263. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -1
  264. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +1 -0
  265. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/scripts/evidence-config.knobs +3 -0
  266. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +134 -14
  267. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
  268. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
  269. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +5 -4
  270. package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +128 -0
  271. package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +51 -45
  272. package/payload/evidence-kit/gate-tests/pre-hook.test.sh +66 -0
  273. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +29 -16
  274. package/payload/evidence-kit/templates/evidence-config.knobs +1 -0
  275. package/payload/gate-sdk/README.md +47 -73
  276. package/payload/gate-sdk/bin/build-native.sh +89 -1
  277. package/payload/gate-sdk/bin/run-gates.ps1 +266 -0
  278. package/payload/gate-sdk/bin/run-gates.sh +60 -182
  279. package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -1
  280. package/payload/gate-sdk/checks/check-action-job-ref.gate +3 -0
  281. package/payload/gate-sdk/checks/check-action-permissions.gate +3 -0
  282. package/payload/gate-sdk/checks/check-action-pinning.gate +1 -1
  283. package/payload/gate-sdk/checks/check-action-run-path.gate +3 -0
  284. package/payload/gate-sdk/checks/check-action-run-shell.gate +3 -0
  285. package/payload/gate-sdk/checks/check-commit-msg.gate +2 -1
  286. package/payload/gate-sdk/checks/check-commit-subject.gate +1 -1
  287. package/payload/gate-sdk/checks/check-core-files.gate +1 -1
  288. package/payload/gate-sdk/checks/check-crate-arms.gate +3 -0
  289. package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -2
  290. package/payload/gate-sdk/checks/check-exec-bit.gate +1 -1
  291. package/payload/gate-sdk/checks/check-front-end-fail-open.gate +3 -0
  292. package/payload/gate-sdk/checks/check-gate-assertions.gate +3 -0
  293. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +1 -1
  294. package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +1 -1
  295. package/payload/gate-sdk/checks/check-gate-fail-closed.gate +1 -1
  296. package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +1 -1
  297. package/payload/gate-sdk/checks/check-gate-output.gate +1 -1
  298. package/payload/gate-sdk/checks/check-gate-substrate-parity.gate +3 -0
  299. package/payload/gate-sdk/checks/check-graph.gate +2 -1
  300. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +1 -1
  301. package/payload/gate-sdk/checks/check-identity.gate +1 -1
  302. package/payload/gate-sdk/checks/check-install-disposition.gate +3 -0
  303. package/payload/gate-sdk/checks/check-kit-enum.gate +1 -1
  304. package/payload/gate-sdk/checks/check-kit-registration.gate +1 -1
  305. package/payload/gate-sdk/checks/check-kit-roots-dialect.gate +3 -0
  306. package/payload/gate-sdk/checks/check-packed-links.gate +3 -0
  307. package/payload/gate-sdk/checks/check-path-dialect.gate +3 -0
  308. package/payload/gate-sdk/checks/check-pipe-membership.gate +3 -0
  309. package/payload/gate-sdk/checks/check-portability-floor.gate +4 -0
  310. package/payload/gate-sdk/checks/check-projection-roster.gate +4 -0
  311. package/payload/gate-sdk/checks/check-reads-couples.gate +1 -1
  312. package/payload/gate-sdk/checks/check-root-tiering.gate +1 -1
  313. package/payload/gate-sdk/checks/check-shellcheck.gate +3 -0
  314. package/payload/gate-sdk/checks/check-template-copy-parity.gate +1 -1
  315. package/payload/gate-sdk/checks/check-tree-terms.gate +4 -0
  316. package/payload/gate-sdk/checks/check-workflow-tiering.gate +1 -1
  317. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/args +2 -0
  318. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/expect.txt +1 -0
  319. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/scripts/gate-sdk-config.knobs +1 -0
  320. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/notes.md +3 -0
  321. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/workflows/ci.yml +8 -0
  322. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/args +3 -0
  323. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/expect.txt +1 -0
  324. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/scripts/gate-sdk-config.knobs +1 -0
  325. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/notes.md +3 -0
  326. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/workflows/ci.yml +8 -0
  327. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/args +3 -0
  328. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/expect.txt +5 -0
  329. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/empty-allowlist.yml +29 -0
  330. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/gates.yml +25 -0
  331. package/payload/gate-sdk/gate-tests/check-action-permissions/good/args +5 -0
  332. package/payload/gate-sdk/gate-tests/check-action-permissions/good/expect.txt +1 -0
  333. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/action.yml +9 -0
  334. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/not-actions.yml +7 -0
  335. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/declared.yml +69 -0
  336. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/valves.yml +22 -0
  337. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/args +4 -0
  338. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/expect.txt +2 -0
  339. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/scripts/present.sh +3 -0
  340. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/workflows/ci.yml +14 -0
  341. package/payload/gate-sdk/gate-tests/check-action-run-path/good/args +5 -0
  342. package/payload/gate-sdk/gate-tests/check-action-run-path/good/expect.txt +1 -0
  343. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/scripts/build.sh +3 -0
  344. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/sub/scripts/inner.sh +3 -0
  345. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/workflows/ci.yml +36 -0
  346. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +4 -2
  347. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +2 -0
  348. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/runner-dialect.yml +36 -0
  349. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -2
  350. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -1
  351. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/runner-dialect.yml +71 -0
  352. package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +102 -9
  353. package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +1 -1
  354. package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +1 -1
  355. package/payload/gate-sdk/gate-tests/check-assertion-strength.test.sh +55 -0
  356. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/expect.txt +1 -0
  357. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/msg.txt +4 -0
  358. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -1
  359. package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +7 -0
  360. package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -1
  361. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +2 -2
  362. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +1 -1
  363. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.knobs +3 -0
  364. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.knobs +3 -0
  365. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/SPEC.md +3 -0
  366. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/checks/check-demo.gate +1 -0
  367. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/probe.conf +1 -0
  368. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/templates/guide.md +3 -0
  369. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/enforcement.md +33 -0
  370. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gate-sdk-config.knobs +1 -0
  371. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gates.list +1 -0
  372. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +1 -1
  373. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/args +3 -0
  374. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/expect.txt +2 -0
  375. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.ps1 +5 -0
  376. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.sh +9 -0
  377. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/args +4 -0
  378. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/expect.txt +1 -0
  379. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.ps1 +5 -0
  380. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.sh +9 -0
  381. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +5 -1
  382. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +22 -0
  383. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-count.sh +11 -0
  384. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-extra.sh +14 -0
  385. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-zero.sh +7 -0
  386. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
  387. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +30 -0
  388. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-qux.sh +13 -0
  389. package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +117 -0
  390. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.knobs +2 -0
  391. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.knobs +2 -0
  392. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +6 -12
  393. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +5 -3
  394. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +3 -1
  395. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +4 -2
  396. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +1 -1
  397. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci/build-artifact.sh +9 -0
  398. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci.yml +9 -0
  399. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +6 -2
  400. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kit-spec.md +6 -0
  401. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-nospec.sh +4 -0
  402. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-ungrounded.sh +5 -0
  403. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.knobs +5 -0
  404. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +8 -0
  405. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci/build-artifact.sh +9 -0
  406. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci.yml +16 -0
  407. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +6 -2
  408. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kit-spec.md +12 -0
  409. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +1 -0
  410. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.knobs +5 -0
  411. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -1
  412. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +222 -197
  413. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +7 -2
  414. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +4 -0
  415. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +3 -1
  416. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +1 -1
  417. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +8 -8
  418. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +2 -2
  419. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +49 -14
  420. package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
  421. package/payload/gate-sdk/gate-tests/check-identity/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
  422. package/payload/gate-sdk/gate-tests/check-identity.test.sh +1 -1
  423. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-eta.sh +7 -0
  424. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-iota.sh +7 -0
  425. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-theta.sh +7 -0
  426. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-zeta.gate +3 -0
  427. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +1 -1
  428. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +8 -5
  429. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +5 -0
  430. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/native/src/installer/recipe.rs +10 -0
  431. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  432. package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +8 -4
  433. package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +2 -0
  434. package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  435. package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/checks/check-alpha.sh +1 -1
  436. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-beta.gate +3 -0
  437. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-gamma.sh +6 -0
  438. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-omega.sh +7 -0
  439. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-psi.sh +7 -0
  440. package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/smoke/install.sh +2 -2
  441. package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +15 -12
  442. package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +7 -5
  443. package/payload/gate-sdk/gate-tests/check-kit-registration/good/scripts/gate-sdk-config.knobs +2 -0
  444. package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +2 -2
  445. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/args +5 -0
  446. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/expect.txt +1 -0
  447. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/checks/placeholder.txt +3 -0
  448. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
  449. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/lib/alpha.sh +3 -0
  450. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/checks/placeholder.txt +3 -0
  451. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/gate-tests/beta.test.sh +3 -0
  452. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/lib/beta.sh +3 -0
  453. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/checks/placeholder.txt +3 -0
  454. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/lib/gate.sh +3 -0
  455. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gate-sdk-config.knobs +7 -0
  456. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gates.list +3 -0
  457. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/args +7 -0
  458. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/expect.txt +1 -0
  459. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/checks/placeholder.txt +3 -0
  460. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
  461. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/lib/alpha.sh +3 -0
  462. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/checks/placeholder.txt +3 -0
  463. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/gate-tests/beta.test.sh +3 -0
  464. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/lib/beta.sh +3 -0
  465. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/checks/placeholder.txt +3 -0
  466. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/lib/gate.sh +3 -0
  467. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/scripts/gates.list +3 -0
  468. package/payload/gate-sdk/gate-tests/check-packed-links/bad/alpha-kit/README.md +5 -0
  469. package/payload/gate-sdk/gate-tests/check-packed-links/bad/args +5 -0
  470. package/payload/gate-sdk/gate-tests/check-packed-links/bad/beta-kit/README.md +5 -0
  471. package/payload/gate-sdk/gate-tests/check-packed-links/bad/expect.txt +2 -0
  472. package/payload/gate-sdk/gate-tests/check-packed-links/bad/scripts/gate-sdk-config.knobs +4 -0
  473. package/payload/gate-sdk/gate-tests/check-packed-links/good/alpha-kit/README.md +5 -0
  474. package/payload/gate-sdk/gate-tests/check-packed-links/good/args +8 -0
  475. package/payload/gate-sdk/gate-tests/check-packed-links/good/beta-kit/README.md +9 -0
  476. package/payload/gate-sdk/gate-tests/check-packed-links/good/expect.txt +1 -0
  477. package/payload/gate-sdk/gate-tests/check-packed-links/good/gamma-kit/SPEC.md +4 -0
  478. package/payload/gate-sdk/gate-tests/check-packed-links/good/scripts/gate-sdk-config.knobs +6 -0
  479. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/args +3 -0
  480. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/expect.txt +15 -0
  481. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/primitive.rs +19 -0
  482. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/producer.rs +8 -0
  483. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/walk.rs +13 -0
  484. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/bound-root.sh +5 -0
  485. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/case-arm.sh +6 -0
  486. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/commented.sh +5 -0
  487. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/common-dir.sh +4 -0
  488. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/glob-test.sh +4 -0
  489. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/late-anchor.sh +7 -0
  490. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/logical-readback.sh +5 -0
  491. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/probe.sh +7 -0
  492. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/two-root.sh +5 -0
  493. package/payload/gate-sdk/gate-tests/check-path-dialect/good/args +3 -0
  494. package/payload/gate-sdk/gate-tests/check-path-dialect/good/expect.txt +13 -0
  495. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/commented.rs +5 -0
  496. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/local.rs +12 -0
  497. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/namespace.rs +11 -0
  498. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/typed.rs +10 -0
  499. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/verdict.rs +5 -0
  500. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/walk.rs +24 -0
  501. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/anchored.sh +6 -0
  502. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/cd-only.sh +7 -0
  503. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/commented.sh +6 -0
  504. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/one-root.sh +4 -0
  505. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/probe.sh +8 -0
  506. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/rooted.sh +23 -0
  507. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/subshell.sh +6 -0
  508. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/two-line.sh +8 -0
  509. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/verdict.sh +7 -0
  510. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/args +4 -0
  511. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/expect.txt +6 -0
  512. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/scripts/gate-sdk-config.knobs +1 -0
  513. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/array-grep.sh +6 -0
  514. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/echo-max-count.sh +5 -0
  515. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/gate-tests/membership.test.sh +6 -0
  516. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/loop-head.sh +5 -0
  517. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/tests/relocated.test.sh +6 -0
  518. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/args +5 -0
  519. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/expect.txt +3 -0
  520. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/full-reader.sh +4 -0
  521. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/check-x/bad/violating.test.sh +6 -0
  522. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/clean.test.sh +8 -0
  523. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/loop-membership.sh +8 -0
  524. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/no-pipefail.sh +6 -0
  525. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/one-line-producer.sh +5 -0
  526. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/args +2 -0
  527. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/expect.txt +8 -0
  528. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/patterns.list +4 -0
  529. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/scripts/gate-sdk-config.knobs +4 -0
  530. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/empty-reason-verb +5 -0
  531. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/strings.ps1 +6 -0
  532. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/too-far-verb +5 -0
  533. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/undeclared-verb +3 -0
  534. package/payload/gate-sdk/gate-tests/check-portability-floor/good/args +2 -0
  535. package/payload/gate-sdk/gate-tests/check-portability-floor/good/expect.txt +1 -0
  536. package/payload/gate-sdk/gate-tests/check-portability-floor/good/patterns.list +5 -0
  537. package/payload/gate-sdk/gate-tests/check-portability-floor/good/scripts/gate-sdk-config.knobs +4 -0
  538. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/front.ps1 +7 -0
  539. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/plain-verb +5 -0
  540. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/portability-patterns.list +5 -0
  541. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/upgrade-verb +7 -0
  542. package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +154 -0
  543. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/demo-kit/checks/check-beta.gate +2 -0
  544. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/docs/roster.md +11 -0
  545. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/expect.txt +7 -0
  546. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-alpha.gate +2 -0
  547. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-gamma.gate +2 -0
  548. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-plain.gate +1 -0
  549. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gate-sdk-config.knobs +3 -0
  550. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gates.list +4 -0
  551. package/payload/gate-sdk/gate-tests/check-projection-roster/good/demo-kit/checks/check-beta.gate +2 -0
  552. package/payload/gate-sdk/gate-tests/check-projection-roster/good/docs/roster.md +16 -0
  553. package/payload/gate-sdk/gate-tests/check-projection-roster/good/expect.txt +1 -0
  554. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-alpha.gate +2 -0
  555. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-delta.gate +2 -0
  556. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-epsilon.gate +2 -0
  557. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-plain.gate +1 -0
  558. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gate-sdk-config.knobs +4 -0
  559. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gates.list +5 -0
  560. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.knobs +4 -0
  561. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +1 -1
  562. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.knobs +4 -0
  563. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -1
  564. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +4 -4
  565. package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +4 -4
  566. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +25 -20
  567. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +1 -1
  568. package/payload/gate-sdk/gate-tests/{check-template-registry-parity/bad/scripts/gate-sdk-config.sh → check-smoke-entry-guard/bad/scripts/gate-sdk-config.knobs} +2 -3
  569. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +1 -1
  570. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +1 -1
  571. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +1 -1
  572. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +1 -1
  573. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.knobs +4 -0
  574. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +3 -1
  575. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/session-note.sh +6 -0
  576. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -1
  577. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/session-note.sh +6 -0
  578. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +1 -1
  579. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +2 -0
  580. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/drift-kit/templates/kpis.list +18 -0
  581. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +2 -0
  582. package/payload/gate-sdk/gate-tests/{check-smoke-entry-guard/bad/scripts/gate-sdk-config.sh → check-template-registry-parity/bad/scripts/gate-sdk-config.knobs} +2 -3
  583. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +3 -1
  584. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/drift-kit/templates/kpis.list +17 -0
  585. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -1
  586. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.knobs +4 -0
  587. package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +5 -5
  588. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +6 -0
  589. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +4 -0
  590. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/accounts.txt +1 -0
  591. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/multi.txt +4 -0
  592. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/second-leak.txt +2 -0
  593. package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
  594. package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +7 -0
  595. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +5 -0
  596. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/handles.txt +2 -0
  597. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +2 -0
  598. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +3 -0
  599. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/worktrees/vendored-note.txt +3 -0
  600. package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +133 -0
  601. package/payload/gate-sdk/gate-tests/emit-arm-shape.test.sh +95 -0
  602. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +10 -10
  603. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +10 -184
  604. package/payload/gate-sdk/gate-tests/reads-census.test.sh +96 -0
  605. package/payload/gate-sdk/gate-tests/run-arm-contract.test.sh +190 -0
  606. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +64 -41
  607. package/payload/gate-sdk/gate-tests/run-for-path.test.sh +2 -2
  608. package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +121 -16
  609. package/payload/gate-sdk/gate-tests/run-gates-linked-worktree.test.sh +136 -0
  610. package/payload/gate-sdk/lib/gate.sh +231 -484
  611. package/payload/gate-sdk/lib/test-hermetic.sh +39 -9
  612. package/payload/gate-sdk/templates/check-skeleton.sh +3 -2
  613. package/payload/gate-sdk/templates/gates-workflow.yml +23 -10
  614. package/payload/gate-sdk/templates/msg-patterns.list +14 -5
  615. package/payload/gate-sdk/templates/portability-patterns.list +56 -0
  616. package/payload/guard-kit/README.md +43 -46
  617. package/payload/guard-kit/checks/check-door-binding.gate +3 -0
  618. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/README.md +6 -0
  619. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/templates/alpha-config.knobs +3 -0
  620. package/payload/guard-kit/gate-tests/check-door-binding/bad/args +5 -0
  621. package/payload/guard-kit/gate-tests/check-door-binding/bad/beta-kit/lib/beta.sh +6 -0
  622. package/payload/guard-kit/gate-tests/check-door-binding/bad/expect.txt +5 -0
  623. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/gate-sdk-config.knobs +4 -0
  624. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/guard-config.knobs +3 -0
  625. package/payload/guard-kit/gate-tests/check-door-binding/bad/site/banner.md +8 -0
  626. package/payload/guard-kit/gate-tests/check-door-binding/bad/site/landing.md +11 -0
  627. package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/README.md +8 -0
  628. package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/templates/settings-hooks.json +20 -0
  629. package/payload/guard-kit/gate-tests/check-door-binding/good/args +7 -0
  630. package/payload/guard-kit/gate-tests/check-door-binding/good/beta-kit/lib/beta.sh +6 -0
  631. package/payload/guard-kit/gate-tests/check-door-binding/good/expect.txt +1 -0
  632. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/gate-sdk-config.knobs +4 -0
  633. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/guard-config.knobs +3 -0
  634. package/payload/guard-kit/gate-tests/check-door-binding/good/site/mirror.md +12 -0
  635. package/payload/guard-kit/gate-tests/check-door-binding/good/site/register.md +24 -0
  636. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +75 -17
  637. package/payload/guard-kit/gate-tests/consumer-rules.test.sh +189 -0
  638. package/payload/guard-kit/gate-tests/door-binding-corpus.test.sh +72 -0
  639. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +48 -23
  640. package/payload/guard-kit/gate-tests/guard-config-knobs.test.sh +170 -0
  641. package/payload/guard-kit/gate-tests/rewrite.test.sh +73 -0
  642. package/payload/guard-kit/gate-tests/scan-prompts.test.sh +174 -8
  643. package/payload/guard-kit/gate-tests/scratch-run.test.sh +149 -13
  644. package/payload/guard-kit/gate-tests/worktree-confinement.test.sh +169 -0
  645. package/payload/guard-kit/guard-tests/background-cases.tsv +23 -0
  646. package/payload/guard-kit/guard-tests/cases.tsv +374 -38
  647. package/payload/guard-kit/guard-tests/powershell-background-cases.tsv +29 -0
  648. package/payload/guard-kit/guard-tests/powershell-cases.tsv +81 -0
  649. package/payload/guard-kit/templates/close-triage.md +15 -55
  650. package/payload/guard-kit/templates/guard-config.knobs +26 -0
  651. package/payload/guard-kit/templates/settings-allow.json +15 -0
  652. package/payload/guard-kit/templates/settings-hooks.json +5 -5
  653. package/payload/lifecycle-kit/README.md +48 -76
  654. package/payload/lifecycle-kit/checks/check-audit-roster.gate +3 -0
  655. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +1 -1
  656. package/payload/lifecycle-kit/checks/check-dispatch-entry.gate +3 -0
  657. package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +1 -1
  658. package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +1 -1
  659. package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +1 -1
  660. package/payload/lifecycle-kit/checks/check-merge-attrs.gate +1 -1
  661. package/payload/lifecycle-kit/checks/check-scratch-citation.gate +1 -1
  662. package/payload/lifecycle-kit/checks/check-shim-restatement.gate +1 -1
  663. package/payload/lifecycle-kit/checks/check-skill-binding.gate +1 -1
  664. package/payload/lifecycle-kit/checks/check-stage-entry.gate +2 -2
  665. package/payload/lifecycle-kit/checks/check-stage-evidence.gate +1 -1
  666. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +2 -2
  667. package/payload/lifecycle-kit/checks/check-stamp-subject.gate +3 -0
  668. package/payload/lifecycle-kit/checks/check-survey-record.gate +2 -2
  669. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +93 -18
  670. package/payload/lifecycle-kit/gate-tests/boundary-stage-journal.test.sh +196 -0
  671. package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +214 -0
  672. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/args +2 -0
  673. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/expect.txt +6 -0
  674. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/roster.txt +34 -0
  675. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/args +2 -0
  676. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/expect.txt +1 -0
  677. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/roster.txt +22 -0
  678. package/payload/lifecycle-kit/gate-tests/check-audit-roster.test.sh +101 -0
  679. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.knobs +2 -0
  680. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/worktrees/inbox.md +5 -0
  681. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.knobs +2 -0
  682. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +21 -4
  683. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/args +6 -0
  684. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/expect.txt +1 -0
  685. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/head.txt +5 -0
  686. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/marker.txt +1 -0
  687. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/msg.txt +4 -0
  688. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/paths.txt +1 -0
  689. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/staged.txt +5 -0
  690. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/args +6 -0
  691. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/expect.txt +1 -0
  692. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/head.txt +5 -0
  693. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/marker.txt +1 -0
  694. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/msg.txt +4 -0
  695. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/paths.txt +2 -0
  696. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/staged.txt +6 -0
  697. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry.test.sh +60 -0
  698. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +1 -1
  699. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +1 -5
  700. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +1 -5
  701. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +1 -1
  702. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -2
  703. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.knobs +2 -0
  704. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.knobs +2 -0
  705. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/worktrees/queue.md +13 -0
  706. package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +1 -1
  707. package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +1 -1
  708. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +158 -11
  709. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +27 -2
  710. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +4 -1
  711. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +4 -1
  712. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/close.md +5 -0
  713. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +4 -1
  714. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +1 -1
  715. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -1
  716. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +4 -1
  717. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +4 -1
  718. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +4 -1
  719. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +4 -1
  720. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +4 -1
  721. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage.test.sh +73 -0
  722. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/args +4 -0
  723. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/expect.txt +1 -0
  724. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/head.txt +5 -0
  725. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/msg.txt +4 -0
  726. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/staged.txt +6 -0
  727. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/args +4 -0
  728. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/expect.txt +1 -0
  729. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/head.txt +5 -0
  730. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/msg.txt +4 -0
  731. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/staged.txt +7 -0
  732. package/payload/lifecycle-kit/gate-tests/check-stamp-subject.test.sh +59 -0
  733. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +3 -0
  734. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +24 -0
  735. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -1
  736. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +10 -0
  737. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +56 -5
  738. package/payload/lifecycle-kit/gate-tests/dispatch-marker.test.sh +152 -0
  739. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +23 -48
  740. package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +7 -5
  741. package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +119 -0
  742. package/payload/lifecycle-kit/gate-tests/preflight-valve.test.sh +170 -0
  743. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +5 -3
  744. package/payload/lifecycle-kit/gate-tests/ruling-staleness.test.sh +89 -0
  745. package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +66 -0
  746. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +12 -6
  747. package/payload/lifecycle-kit/templates/consult.md +9 -63
  748. package/payload/lifecycle-kit/templates/lead.md +143 -423
  749. package/payload/lifecycle-kit/templates/lifecycle-config.knobs +1 -0
  750. package/payload/lifecycle-kit/templates/release-sweep.md +6 -35
  751. package/payload/lifecycle-kit/templates/stages/align.md +14 -82
  752. package/payload/lifecycle-kit/templates/stages/build.md +30 -98
  753. package/payload/lifecycle-kit/templates/stages/close.md +21 -170
  754. package/payload/lifecycle-kit/templates/stages/scope.md +42 -167
  755. package/payload/lifecycle-kit/templates/stages/spec.md +31 -97
  756. package/payload/lifecycle-kit/templates/stages/validate.md +22 -59
  757. package/payload/lifecycle-kit/templates/upgrade.md +6 -37
  758. package/payload/queue-kit/README.md +33 -48
  759. package/payload/queue-kit/checks/check-deferred-board-tags.gate +3 -0
  760. package/payload/queue-kit/checks/check-queue-entry-budget.gate +2 -2
  761. package/payload/queue-kit/checks/check-queue-hygiene.gate +2 -2
  762. package/payload/queue-kit/checks/check-queue-prose-precondition.gate +1 -1
  763. package/payload/queue-kit/checks/check-queue-sections.gate +1 -1
  764. package/payload/queue-kit/checks/check-queue-slug-liveness.gate +2 -2
  765. package/payload/queue-kit/checks/check-queue-wrap.gate +2 -2
  766. package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -2
  767. package/payload/queue-kit/checks/check-tag-lead-line.gate +2 -2
  768. package/payload/queue-kit/checks/check-task-conservation.gate +1 -1
  769. package/payload/queue-kit/checks/check-task-names.gate +2 -2
  770. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/TASK-QUEUE.md +41 -0
  771. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/expect.txt +6 -0
  772. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/widget-kit/README.md +3 -0
  773. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/TASK-QUEUE.md +39 -0
  774. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/expect.txt +1 -0
  775. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/widget-kit/README.md +3 -0
  776. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +76 -31
  777. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +12 -4
  778. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.knobs +4 -0
  779. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +58 -19
  780. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +8 -4
  781. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.knobs +4 -0
  782. package/payload/queue-kit/gate-tests/check-queue-entry-budget.test.sh +124 -0
  783. package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +11 -1
  784. package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +2 -0
  785. package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +30 -11
  786. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +3 -1
  787. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/expect.txt +1 -0
  788. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/TASK-QUEUE.md +22 -6
  789. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +3 -1
  790. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +1 -1
  791. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +3 -1
  792. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.knobs +1 -0
  793. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +6 -2
  794. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +3 -3
  795. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/worktrees/page.md +4 -0
  796. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.knobs +1 -0
  797. package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +100 -0
  798. package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +3 -1
  799. package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +20 -6
  800. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +15 -8
  801. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.knobs +5 -0
  802. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +13 -6
  803. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.knobs +5 -0
  804. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +28 -7
  805. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +10 -2
  806. package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +30 -8
  807. package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -3
  808. package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +9 -0
  809. package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +20 -6
  810. package/payload/queue-kit/gate-tests/entry-history.test.sh +197 -0
  811. package/payload/queue-kit/gate-tests/queue-counts.test.sh +77 -73
  812. package/payload/queue-kit/gate-tests/queue-edges.test.sh +168 -87
  813. package/payload/queue-kit/gate-tests/queue-index.test.sh +30 -16
  814. package/payload/queue-kit/gate-tests/roadmap.test.sh +65 -58
  815. package/payload/queue-kit/templates/TASK-QUEUE.md +36 -23
  816. package/payload/queue-kit/templates/queue-config.knobs +1 -0
  817. package/payload/site-kit/README.md +26 -45
  818. package/payload/site-kit/checks/check-docs-cname-parity.gate +1 -1
  819. package/payload/site-kit/checks/check-docs-highlight-coverage.gate +4 -0
  820. package/payload/site-kit/checks/check-docs-liquid-parse.gate +3 -0
  821. package/payload/site-kit/checks/check-docs-render-fidelity.gate +3 -0
  822. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +1 -1
  823. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.knobs +2 -0
  824. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +2 -2
  825. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.knobs +2 -0
  826. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/docs/_layouts/default.html +11 -0
  827. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/expect.txt +4 -0
  828. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/highlight-tokens.list +7 -0
  829. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/site-config.knobs +3 -0
  830. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/docs/_layouts/default.html +14 -0
  831. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/expect.txt +1 -0
  832. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/highlight-tokens.list +7 -0
  833. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/site-config.knobs +1 -0
  834. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/_layouts/default.html +4 -0
  835. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/span.md +3 -0
  836. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +2 -0
  837. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/_layouts/default.html +4 -0
  838. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/front.md +7 -0
  839. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/loop.md +5 -0
  840. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/plain.html +1 -0
  841. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/raw.md +3 -0
  842. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/search.json +4 -0
  843. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/expect.txt +1 -0
  844. package/payload/site-kit/gate-tests/check-docs-liquid-parse-parser.test.sh +62 -0
  845. package/payload/site-kit/gate-tests/check-docs-render-fidelity-batch.test.sh +40 -45
  846. package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +7 -4
  847. package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +7 -4
  848. package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +7 -4
  849. package/payload/site-kit/templates/site-health.yml +67 -4
  850. package/profiles.list +4 -5
  851. package/lib/common/digest.sh +0 -18
  852. package/lib/common/lock.sh +0 -75
  853. package/lib/common/profile.sh +0 -91
  854. package/lib/common/recipe.sh +0 -106
  855. package/lib/diff.sh +0 -66
  856. package/lib/doctor.sh +0 -164
  857. package/lib/init.sh +0 -428
  858. package/lib/uninstall.sh +0 -214
  859. package/lib/update.sh +0 -34
  860. package/payload/canon-kit/SPEC.md +0 -2129
  861. package/payload/canon-kit/checks/check-surface-duplication.sh +0 -106
  862. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +0 -6
  863. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +0 -6
  864. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +0 -10
  865. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +0 -10
  866. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +0 -6
  867. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +0 -6
  868. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +0 -8
  869. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +0 -8
  870. package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +0 -4
  871. package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +0 -4
  872. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +0 -8
  873. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +0 -5
  874. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +0 -5
  875. package/payload/canon-kit/lib/spec.sh +0 -544
  876. package/payload/canon-kit/smoke/install.sh +0 -56
  877. package/payload/canon-kit/smoke/violation.sh +0 -22
  878. package/payload/canon-kit/templates/canon-config.sh +0 -2
  879. package/payload/context-kit/SPEC.md +0 -1123
  880. package/payload/context-kit/bin/always-loaded.sh +0 -70
  881. package/payload/context-kit/bin/env-probe.sh +0 -142
  882. package/payload/context-kit/bin/md-index.sh +0 -80
  883. package/payload/context-kit/bin/md-section.sh +0 -63
  884. package/payload/context-kit/bin/pub-index.sh +0 -90
  885. package/payload/context-kit/bin/run-index-tests.sh +0 -91
  886. package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +0 -4
  887. package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +0 -12
  888. package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +0 -12
  889. package/payload/context-kit/index-tests/expected/toolfloor.txt +0 -23
  890. package/payload/context-kit/index-tests/toolfloor-cases.sh +0 -49
  891. package/payload/context-kit/lib/context.sh +0 -56
  892. package/payload/context-kit/lib/pub-lang/rust.sh +0 -26
  893. package/payload/context-kit/lib/pub-lang/ts.sh +0 -32
  894. package/payload/context-kit/lib/toolfloor.sh +0 -58
  895. package/payload/context-kit/smoke/agents-md.sh +0 -139
  896. package/payload/context-kit/smoke/install.sh +0 -64
  897. package/payload/context-kit/smoke/violation.sh +0 -21
  898. package/payload/context-kit/templates/context-config.sh +0 -2
  899. package/payload/delegation-kit/SPEC.md +0 -1712
  900. package/payload/delegation-kit/bin/run-budget-guard-tests.sh +0 -88
  901. package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +0 -97
  902. package/payload/delegation-kit/bin/run-trend-tests.sh +0 -63
  903. package/payload/delegation-kit/bin/run-usage-tests.sh +0 -226
  904. package/payload/delegation-kit/bin/usage-trend.sh +0 -120
  905. package/payload/delegation-kit/bin/usage-verdict.sh +0 -144
  906. package/payload/delegation-kit/lib/delegation.sh +0 -84
  907. package/payload/delegation-kit/smoke/install.sh +0 -63
  908. package/payload/delegation-kit/smoke/violation.sh +0 -16
  909. package/payload/delegation-kit/templates/agent-budget-guard.sh +0 -18
  910. package/payload/delegation-kit/templates/agent-dispatch-guard.sh +0 -61
  911. package/payload/delegation-kit/templates/delegation-config.sh +0 -6
  912. package/payload/delegation-kit/templates/statusline-usage.sh +0 -101
  913. package/payload/delegation-kit/templates/usage-poller.sh +0 -67
  914. package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +0 -20
  915. package/payload/doctrine-kit/SPEC.md +0 -385
  916. package/payload/doctrine-kit/bin/install-doctrine.sh +0 -194
  917. package/payload/doctrine-kit/bin/stage-rules.sh +0 -51
  918. package/payload/doctrine-kit/lib/doctrine.sh +0 -29
  919. package/payload/doctrine-kit/smoke/install.sh +0 -203
  920. package/payload/doctrine-kit/smoke/violation.sh +0 -13
  921. package/payload/drift-kit/SPEC.md +0 -1187
  922. package/payload/drift-kit/bin/drift-report.sh +0 -155
  923. package/payload/drift-kit/bin/kfric.sh +0 -61
  924. package/payload/drift-kit/bin/overhead-meter.sh +0 -106
  925. package/payload/drift-kit/bin/stage-economics.sh +0 -465
  926. package/payload/drift-kit/kpis/kpi-always-loaded.sh +0 -39
  927. package/payload/drift-kit/kpis/kpi-amendment-age.sh +0 -33
  928. package/payload/drift-kit/kpis/kpi-deferred-age.sh +0 -46
  929. package/payload/drift-kit/kpis/kpi-gate-backlog.sh +0 -52
  930. package/payload/drift-kit/kpis/kpi-gate-runtime.sh +0 -31
  931. package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +0 -42
  932. package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +0 -21
  933. package/payload/drift-kit/kpis/kpi-overhead.sh +0 -44
  934. package/payload/drift-kit/kpis/kpi-price-table-age.sh +0 -68
  935. package/payload/drift-kit/kpis/kpi-prompt-friction.sh +0 -38
  936. package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +0 -74
  937. package/payload/drift-kit/kpis/kpi-settings-local.sh +0 -21
  938. package/payload/drift-kit/kpis/kpi-task-split.sh +0 -43
  939. package/payload/drift-kit/lib/drift.sh +0 -43
  940. package/payload/drift-kit/smoke/install.sh +0 -537
  941. package/payload/drift-kit/smoke/overhead-fixture.jsonl +0 -4
  942. package/payload/drift-kit/templates/drift-config.sh +0 -2
  943. package/payload/evidence-kit/SPEC.md +0 -740
  944. package/payload/evidence-kit/bin/diff-baseline.sh +0 -34
  945. package/payload/evidence-kit/bin/run-validate.sh +0 -124
  946. package/payload/evidence-kit/checks/check-producer-liveness.sh +0 -75
  947. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +0 -7
  948. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +0 -7
  949. package/payload/evidence-kit/lib/evidence.sh +0 -193
  950. package/payload/evidence-kit/smoke/install.sh +0 -59
  951. package/payload/evidence-kit/smoke/violation.sh +0 -8
  952. package/payload/evidence-kit/templates/evidence-config.sh +0 -2
  953. package/payload/gate-sdk/SPEC.md +0 -10138
  954. package/payload/gate-sdk/bin/gen-pre-commit.sh +0 -297
  955. package/payload/gate-sdk/bin/install-hooks.sh +0 -60
  956. package/payload/gate-sdk/bin/port-blockers.sh +0 -473
  957. package/payload/gate-sdk/bin/run-consumer-smoke.sh +0 -239
  958. package/payload/gate-sdk/bin/run-gate-tests.sh +0 -179
  959. package/payload/gate-sdk/bin/upgrade-smoke.sh +0 -236
  960. package/payload/gate-sdk/checks/check-action-run-shell.sh +0 -223
  961. package/payload/gate-sdk/checks/check-crate-arms.sh +0 -62
  962. package/payload/gate-sdk/checks/check-gate-assertions.sh +0 -149
  963. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +0 -397
  964. package/payload/gate-sdk/checks/check-install-disposition.sh +0 -93
  965. package/payload/gate-sdk/checks/check-shellcheck.sh +0 -57
  966. package/payload/gate-sdk/checks/check-tree-terms.sh +0 -67
  967. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +0 -2
  968. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +0 -2
  969. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +0 -4
  970. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +0 -14
  971. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +0 -14
  972. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +0 -2
  973. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +0 -2
  974. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +0 -6
  975. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +0 -3
  976. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +0 -6
  977. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +0 -3
  978. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +0 -9
  979. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +0 -3
  980. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +0 -6
  981. package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +0 -10
  982. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +0 -5
  983. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +0 -5
  984. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +0 -5
  985. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +0 -5
  986. package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +0 -211
  987. package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +0 -112
  988. package/payload/gate-sdk/lib/consumer-smoke.sh +0 -69
  989. package/payload/gate-sdk/lib/declaration.sh +0 -59
  990. package/payload/gate-sdk/lib/inject.sh +0 -80
  991. package/payload/gate-sdk/smoke/install.sh +0 -148
  992. package/payload/gate-sdk/smoke/violation.sh +0 -13
  993. package/payload/guard-kit/SPEC.md +0 -1063
  994. package/payload/guard-kit/bin/compare-settings-allow.sh +0 -91
  995. package/payload/guard-kit/bin/run-guard-tests.sh +0 -92
  996. package/payload/guard-kit/bin/scan-prompts.sh +0 -166
  997. package/payload/guard-kit/bin/scratch-run.sh +0 -34
  998. package/payload/guard-kit/gate-tests/guard-read-path.test.sh +0 -52
  999. package/payload/guard-kit/lib/guard.sh +0 -835
  1000. package/payload/guard-kit/smoke/install.sh +0 -26
  1001. package/payload/guard-kit/templates/bash-guard.sh +0 -18
  1002. package/payload/guard-kit/templates/escalation-guard.sh +0 -27
  1003. package/payload/guard-kit/templates/guard-config.sh +0 -5
  1004. package/payload/guard-kit/templates/wakeup-guard.sh +0 -20
  1005. package/payload/lifecycle-kit/SPEC.md +0 -2884
  1006. package/payload/lifecycle-kit/bin/cite-survey.sh +0 -81
  1007. package/payload/lifecycle-kit/bin/enter-stage.sh +0 -380
  1008. package/payload/lifecycle-kit/bin/file-gap.sh +0 -101
  1009. package/payload/lifecycle-kit/bin/file-survey.sh +0 -69
  1010. package/payload/lifecycle-kit/bin/install-lifecycle.sh +0 -36
  1011. package/payload/lifecycle-kit/bin/session-id.sh +0 -75
  1012. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +0 -4
  1013. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +0 -4
  1014. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +0 -4
  1015. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +0 -4
  1016. package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +0 -100
  1017. package/payload/lifecycle-kit/lib/stages.sh +0 -194
  1018. package/payload/lifecycle-kit/smoke/install.sh +0 -434
  1019. package/payload/lifecycle-kit/smoke/violation.sh +0 -8
  1020. package/payload/lifecycle-kit/templates/lifecycle-config.sh +0 -2
  1021. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +0 -29
  1022. package/payload/queue-kit/SPEC.md +0 -1358
  1023. package/payload/queue-kit/bin/lesson-sink.sh +0 -28
  1024. package/payload/queue-kit/bin/queue-counts.sh +0 -35
  1025. package/payload/queue-kit/bin/queue-edges.sh +0 -78
  1026. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +0 -6
  1027. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +0 -6
  1028. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +0 -3
  1029. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +0 -3
  1030. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +0 -6
  1031. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +0 -6
  1032. package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +0 -215
  1033. package/payload/queue-kit/lib/queue.sh +0 -129
  1034. package/payload/queue-kit/smoke/install.sh +0 -25
  1035. package/payload/queue-kit/smoke/violation.sh +0 -8
  1036. package/payload/queue-kit/templates/queue-config.sh +0 -2
  1037. package/payload/site-kit/SPEC.md +0 -589
  1038. package/payload/site-kit/checks/check-docs-render-fidelity.sh +0 -242
  1039. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.sh +0 -7
  1040. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.sh +0 -7
  1041. package/payload/site-kit/lib/site.sh +0 -43
  1042. package/payload/site-kit/smoke/install.sh +0 -34
  1043. package/payload/site-kit/smoke/violation.sh +0 -20
  1044. /package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/{check-ported.gate → check-stage-entry.gate} +0 -0
@@ -1,487 +1,121 @@
1
1
  # DOCTRINE.md — the Checkwright delivery doctrine
2
2
 
3
- The cross-kit delivery rules the kits enforce piecemeal, stated once. This file
4
- is the deliverable of [doctrine-kit](README.md): referenced in place from a
5
- consumer's always-loaded agent file, never copy-installed — re-vendoring the kit
6
- *is* the doctrine upgrade. Each rule lands as its statement, why it holds under
7
- coding-agent work, and a pointer to the mechanism that enforces it; the
8
- mechanism and its knob rosters live in the cited kit SPEC, never restated here.
9
-
10
- The roster is in two registers. **Methodology-maintenance** rules govern how the
11
- methodology's own surfaces stay honest; they bear on every surface edit and form
12
- the always-loaded digest a consumer installs. **Engineering-craft** rules govern
13
- how the work built under the methodology is written; they are load-triggered by
14
- test, rename, git-rewrite, config-edit, and dispatch work and live behind the
15
- link — an application of the load-trigger residency rule to the doctrine itself.
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
+
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.
16
6
 
17
7
  ## Methodology-maintenance rules
18
8
 
19
- 1. **Content-tiering / SSOT.** Every governed surface owns exactly one content
20
- tier and *points to* — never restates — a fact another surface owns. A
21
- parallel copy is the defect; the fix is one shape: replace the slab with a
22
- pointer to the owner, then a gate forbids it growing back.
23
- *Under agent work:* a restated fact drifts the moment one copy is edited and
24
- the other is not, and an agent reading the stale copy inherits the drift as
25
- ground truth. One owner means one thing to keep true.
26
- *Enforced by:* the anti-restatement gate family — the comment-tier and
27
- manifest/prose gates in [canon-kit/SPEC.md](../canon-kit/SPEC.md).
28
- *Digest:* one content tier per surface; point, never restate.
29
-
30
- 2. **Enforcement-first.** On any fix or redundancy finding, name the defect
31
- class *and* the mechanism that catches it, and land both in one unit; a green
32
- instance fix is the stop signal to ask what check should have caught it. When
33
- the gate cannot land in the same unit, the instance fix rides the gate's unit
34
- rather than landing bare. The mechanism is bought against a budget — gate
35
- count, runtime, maintenance — so the strongest form is structural: remove the
36
- duplication or collapse the surface so the defect class cannot recur, and no
37
- gate is owed. No duplication with no gate outranks duplication with a gate;
38
- tolerated duplication is the exception and carries its defence (the amendment
39
- template's sanctioned-copy rule is the model). The caveat that keeps this
40
- from reading gate-averse: for a drift-prone surface that must exist, the
41
- gate is cheap insurance and is owed — the budget argument never keeps a
42
- needed gate out; it keeps removable surfaces from being kept because a gate
43
- could watch them. The defence that excuses a *missing* gate on such a
44
- surface is a high false-positive rate: a noisy check breeds exemptions and
45
- erodes the battery's authority, so the class a check cannot decide cleanly
46
- stays a stated manual duty rather than a noisy gate. A stated manual duty
47
- carries a *named cadence*, or it is a duty no session performs: the
48
- un-gateable class joins a tracked audit roster reviewed on a lifecycle hook,
49
- with event-keyed due-ness — a named observable event (a contract edit, a
50
- release prep, a template upgrade, a new member on a governed surface) beats
51
- an iteration counter no surface tracks. The roster is hand-curated, not derived — which classes escape a
52
- clean check is a judgment no tool enumerates, so Derivation-first's ladder
53
- lands on state-once-at-the-owner — and the roster plus its review step *are*
54
- the capture mechanism this carve-out owes, self-applying like the
55
- Gap-disposition rule's costed deferral rather than a gate; a duty with no
56
- cadence rots exactly like the gap that rule catches.
57
- *Under agent work:* an unenforced rule is a rule the next session cannot see;
58
- a gate is the only carrier of intent that survives a fresh context window.
59
- *Enforced by:* the meta-gate contracts every gate must satisfy —
60
- [gate-sdk/SPEC.md](../gate-sdk/SPEC.md).
61
- *Digest:* the fix and the gate that catches it land in one unit; removing the duplication outranks gating it.
62
-
63
- 3. **De-literalization.** Prose cites names; code or the owning SPEC owns values.
64
- Knob defaults, shared constants, and derivable rosters are stated once at
65
- their owner, and prose names the knob or the roster rather than its value.
66
- The duty widens past values to *source identifiers*: prose names the public
67
- contract — the knob, the command, the entry point another surface calls —
68
- never the source's internal identifier roster or its step-by-step algorithm.
69
- A SPEC subsection that inventories internal helpers or narrates branch
70
- conditions is the same defect as a copied knob value: a second source of a
71
- fact the code owns, stale at the next refactor. The WHY, the invariant, and
72
- the public contract stay SPEC prose; the WHAT and the how live in the source
73
- behind a pointer. The judgment line: an identifier stays in prose iff a
74
- consumer outside the file must type or configure it, and goes behind a
75
- pointer iff only the source's own maintainer meets it.
76
- *Under agent work:* a literal copied into prose is a second source of a
77
- number, and an agent that trusts the nearer copy ships the stale one; an
78
- internal-helper inventory rots the same way, read as ground truth after the
79
- refactor that renamed it.
80
- *Enforced by:* for values, the bare-cardinal gate in
81
- [canon-kit/SPEC.md](../canon-kit/SPEC.md) §check-manifest-count; the
82
- source-identifier class cannot be gated cleanly — a SPEC legitimately names
83
- public functions as contracts, so the Enforcement-first false-positive
84
- carve-out applies — and it rides that carve-out's cadence as the
85
- `internal-identifier-restatement` seed member of the close-stage audit
86
- roster (`.workflow/audit-roster.txt`), a stated authoring duty due on
87
- heavy-SPEC contract edits and at release prep.
88
- *Digest:* prose cites names; code or the owning SPEC owns values.
89
-
90
- 4. **Derivation-first.** A fact a tool can derive from the tree is derived at
91
- use time, never maintained as its own surface. The ladder: derive; else
92
- state once at the owner and point (the Content-tiering / SSOT rule); and a
93
- second copy a reader genuinely needs is a generated projection with a
94
- freshness gate, never a hand-maintained restatement. Whether what remains
95
- earns a gate is the Enforcement-first weighing. A count of a collection is
96
- the archetypal derivable fact: the collection is its own counting surface,
97
- and a stated total anywhere else is a duplicate counting surface, off by
98
- one at the next member.
99
- *Under agent work:* a hand-maintained enumeration of a derivable set is a
100
- copy of the tree that is stale at the next edit, and an agent trusts the
101
- nearer roster over the tree it summarizes; derivation deletes the drift
102
- axis rather than gating it.
103
- *Enforced by:* the derivation seams and their residual meta-checks — the
104
- `kit:` couple expansion with its hand-list gate in
105
- [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §check-kit-enum, the generated
106
- projections' byte-compare freshness assertions in
107
- [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §check-graph, and the
108
- bare-cardinal gate in [canon-kit/SPEC.md](../canon-kit/SPEC.md)
109
- §check-manifest-count.
110
- *Digest:* derive the derivable (a roster, a count), never maintain it; a needed copy is generated and freshness-gated.
111
-
112
- 5. **Always-loaded shape.** A rule in the always-loaded agent file is one line —
113
- the convention plus a pointer; its mechanism, rosters, and defaults live
114
- behind the pointer in the owning doc.
115
- *Under agent work:* the always-loaded file is read in full at every session
116
- start, so every line spent restating a mechanism is context tax on every
117
- task; a one-line pointer pays once and loads the detail only when needed.
118
- *Enforced by:* the brevity budget in
119
- [context-kit/SPEC.md](../context-kit/SPEC.md) §The brevity gate.
120
- *Digest:* one line per rule here; the mechanism behind the pointer.
121
-
122
- 6. **Load-trigger residency.** The always-loaded file earns a rule only when no
123
- stage, skill, or tool-call trigger exists to load it; anything a trigger can
124
- pull lives in its owned doc behind that trigger.
125
- *Under agent work:* always-loaded context is the scarcest budget; a rule that
126
- a stage or a tool call would load anyway costs nothing to defer and everything
127
- to keep resident.
128
- *Enforced by:* the stage/skill load-triggers in
129
- [lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) and the tool-call hook seam in
130
- [guard-kit/SPEC.md](../guard-kit/SPEC.md), which give every triggered rule a home
131
- that loads on demand.
132
- *Digest:* resident only when no stage, skill, or tool loads it.
133
-
134
- 7. **Widest-true-tier placement.** A fact lands at the widest tier where it holds
135
- for every reader of that tier: kit-shipped surface when true for every
136
- consumer, a consumer-tracked binding or config when it names this repo's own
137
- choices, the local-only private brief when it cannot be published. A
138
- template's binding-slot grammar is the seam marker between the first two.
139
- *Under agent work:* a fact placed too narrow is re-derived by every reader who
140
- needed it wider; placed too wide, it publishes a choice or a secret that was
141
- never the reader's to see.
142
- *Enforced by:* the binding-slot grammar in
143
- [lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §check-skill-binding, the seam
144
- marker between kit-shipped and consumer-tracked tiers.
145
- *Digest:* the widest tier true for every reader of it.
146
-
147
- 8. **Oracle-first.** A check's output is its interface: run the gate instead of
148
- emulating it, and treat a red run — including a red commit attempt, where the
149
- generated hook runs exactly the coupled subset — as the designed feedback
150
- channel, not an incident. Gate source is opened to fix the gate or write its
151
- fixtures, never to predict its verdict. The battery is an oracle but not the
152
- only one: a change whose real output is a deployed or generated artifact — a
153
- rendered site, a compiled binary, a published package — is *tree-correct*
154
- when the battery is green but not yet *artifact-correct*, so it names the
155
- artifact surface it carries and exercises that artifact before the task is
156
- done, never inferring artifact behaviour from a clean battery. Reachable
157
- includes cheap-to-stand-up: an absent-but-installable runtime is one install
158
- command away, not unreachable, so it is exercised too.
159
- *Under agent work:* a deterministic check costs seconds and zero context;
160
- reading its source to anticipate the verdict costs more than running the whole
161
- battery and can still be wrong. The replica that exercises an artifact is
162
- honest only when deployment-faithful — toolchain version- and plugin-matched
163
- to the pinned deployment; a newer local toolchain invents failures the
164
- deployment never shows and masks real ones it would, making it a second wrong
165
- oracle rather than a check.
166
- *Enforced by:* the gate output contract in
167
- [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) — the `clean` and `help:` lines are
168
- written to be that interface — and the targeted-run resolver reachable through
169
- the generated hook.
170
- *Digest:* run the gate, never emulate it; a red run is the feedback channel.
171
-
172
- 9. **Spec-over-precedent.** A gate-enforced doc is ground truth: read the
173
- owner, never mine git history or a prior session's artifacts for how to do
174
- what an owned surface already specifies. History answers *what happened*,
175
- never *what is correct*; precedent is consulted only where no owner exists,
176
- and that consultation is a doc gap to capture, not a habit to keep.
177
- *Under agent work:* models train on repos whose docs lag practice, so
178
- "imitate the last instance" is a reflex prior — and here it is inverted:
179
- the gates hold docs and practice convergent, so mimicking a prior session
180
- re-imports as house style exactly the deviation that session was gated on.
181
- *Enforced by:* the battery itself, which is what makes the owner doc
182
- trustworthy, plus the knowledge-friction loop
183
- ([drift-kit/SPEC.md](../drift-kit/SPEC.md) §The knowledge-friction loop) —
184
- a fact with no owner gets one, shrinking the space where history is the
185
- only oracle. No scanner sees *how* a session derived a choice; this rule
186
- is judgment with a capture mechanism, not a gate.
187
- *Digest:* the owner doc is ground truth; history answers what happened, never what is correct.
188
-
189
- 10. **Gap disposition.** A gap a session surfaces but will not close this
190
- session — a coverage hole, a design defect, an escaping class — is *costed*,
191
- not merely flagged: the session works out how the gap could be closed and
192
- lands that analysis where the next session finds it, as a new queue entry or
193
- an enrichment of the standing deferred entry that owns it. A bare
194
- flag-and-skip is the defect. This is the knowledge-friction loop one altitude
195
- up — that loop captures re-derived *facts* with no owner; this rule captures
196
- the *design and coverage gaps* a session leaves behind. It fills the space
197
- between two neighbours: Spec-over-precedent captures a doc gap met during
198
- precedent consultation, Enforcement-first governs a fix being *landed*, and
199
- neither governs a gap being *deferred*.
200
- *Under agent work:* a fresh context window cannot see a gap the prior session
201
- only reasoned about; an unwritten deferral is one the next session
202
- re-discovers from scratch, and the costed remedy is the only carrier of the
203
- analysis across the reset.
204
- *Enforced by:* judgment with a capture mechanism, not a gate — whether a
205
- session costed the remedy is not machine-decidable (the Enforcement-first
206
- false-positive carve-out, on Spec-over-precedent's model). It rides the
207
- queue's Deferred section for design gaps and the knowledge-friction log
208
- ([drift-kit/SPEC.md](../drift-kit/SPEC.md) §The knowledge-friction loop) for
209
- fact gaps.
210
- *Digest:* a gap you defer is costed and filed, never flagged-and-skipped.
211
-
212
- 11. **Scope-gated intake.** Delivery work enters only through the scope gate. A
213
- new initiative raised mid-session — an operator or lead feature request, a
214
- design idea, a "while we're here" — is *filed* as a costed Deferred entry by
215
- default, never *started*: it becomes active work only by passing through scope
216
- as an iteration's chosen unit. The default is file, not act, because starting
217
- unscoped work skips the survey, the economic composition test, and the
218
- feature/debt triage scope exists to run. This is Gap disposition's
219
- intake-side sibling, guarding the *opposite* failure: that rule catches a gap
220
- flagged and skipped (under-action on something found), this one catches a want
221
- acted on before it is scoped (over-action on something raised). The rule
222
- licenses no self-exemption — editing a governance surface is itself delivery
223
- work, so codifying or amending this doctrine is done as a scoped unit, not the
224
- very out-of-band edit it forbids.
225
- *Under agent work:* an eager context reads a raised want as an instruction to
226
- act *now* and will start building it in-session, bypassing scope entirely; the
227
- default-to-file reflex is the one a fresh window least reliably supplies, so it
228
- is stated rather than assumed.
229
- *Enforced by:* judgment with a capture mechanism, not a gate — whether a raised
230
- want should have been filed rather than started is not machine-decidable (the
231
- Enforcement-first false-positive carve-out, on Gap disposition's model). The
232
- intake it names is scope's — the survey that bounds an iteration's units
233
- ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The state machine) — and the
234
- filed form rides the queue's Deferred section.
235
- *Digest:* a mid-session initiative is filed as a costed Deferred entry by default, never started; work enters only through scope.
236
-
237
- 12. **Probe-before-assertion.** A claim about the tree, the harness, or a tool's
238
- behavior that one cheap command would settle is probed before it is
239
- asserted, and what the probe returned travels with the claim. The bar is
240
- *availability, not confidence*: a claim is unprobed if a command that would
241
- have settled it was there to run and was not, however well-reasoned the
242
- assertion. This is Oracle-first's design-time sibling and the two divide
243
- cleanly — that rule governs the claim a gate already decides and says run the
244
- gate; this one governs the claim made at scope, at spec, in a survey, or in a
245
- dispatch, where no oracle is running and standing one up costs a grep. It
246
- binds a *relayed* claim as hard as an authored one: forwarding an unverified
247
- premise is asserting it, and the forwarder owns the probe the originator
248
- skipped. It binds **outbound** claims too, and that reach does not follow
249
- from the inward examples: proposing that the operator file a report, open an
250
- issue, or escalate to a vendor asserts the thing is *unreported* — a claim
251
- about the world the proposal presumes, and one search from settled. Attested:
252
- a session drafted a complete vendor bug report and handed it over; the issue
253
- was already documented upstream, with duplicates. The operator searched, the
254
- session had not — and that same session had been corrected once that day for
255
- relaying an unverified premise, so holding the general rule is what failed to
256
- prevent the outbound instance. That is why the case is named here rather than
257
- left to be derived from the rule.
258
- *Under agent work:* an agent's prose reads identically whether it was
259
- measured or inferred, so an unprobed premise enters the record
260
- indistinguishable from a verified one and is inherited downstream as settled
261
- fact. Each hand-off raises its apparent authority without adding evidence,
262
- and the correction cost lands on whichever later session finally runs the
263
- command — by which point the claim has shaped the work built on it.
264
- *Enforced by:* judgment with a capture mechanism, not a gate — whether a
265
- claim was probed is not machine-decidable (the Enforcement-first
266
- false-positive carve-out, on Gap disposition's model). Its capture surfaces
267
- are the survey record's witness discipline and the queue's practice of
268
- dating premise corrections into entry bodies
269
- ([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The survey record);
270
- `probe-before-assertion-doctrine` in the queue holds the open question of
271
- whether any slice of the class is mechanizable.
272
- *Digest:* a claim one cheap command would settle is probed before it is asserted; relaying an unverified premise is asserting it.
9
+ 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
+
11
+ *Digest:* one content tier per surface; point, never restate.
12
+
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).
14
+
15
+ *Digest:* the fix and the gate that catches it land in one unit; removing the duplication outranks gating it.
16
+
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.
18
+
19
+ *Digest:* prose cites names; code or the owning SPEC owns values.
20
+
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.
22
+
23
+ *Digest:* derive the derivable (a roster, a count), never maintain it; a needed copy is generated and freshness-gated.
24
+
25
+ 5. **Always-loaded shape.** A rule in the always-loaded agent file is one line — the convention plus a pointer; its mechanism, rosters, and defaults live behind the pointer in the owning doc. *Under agent work:* the always-loaded file is read in full at every session start, so every line spent restating a mechanism is context tax on every task; a one-line pointer pays once and loads the detail only when needed. No tier is free: an on-demand doc pays at every open, and one a stage opens each iteration is always-loaded in effect, so brevity binds every governed file and the close pass walks each one that grew. *Enforced by:* the brevity budget and the per-file growth ratchet in [context-kit/SPEC.md](../context-kit/SPEC.md) §The brevity gate and §The surface ratchet.
26
+
27
+ *Digest:* one line per rule here; the mechanism behind the pointer.
28
+
29
+ 6. **Load-trigger residency.** The always-loaded file earns a rule only when no stage, skill, or tool-call trigger exists to load it; anything a trigger can pull lives in its owned doc behind that trigger. *Under agent work:* always-loaded context is the scarcest budget; a rule that a stage or a tool call would load anyway costs nothing to defer and everything to keep resident. *Enforced by:* the stage/skill load-triggers in [lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) and the tool-call hook seam in [guard-kit/SPEC.md](../guard-kit/SPEC.md), which give every triggered rule a home that loads on demand.
30
+
31
+ *Digest:* resident only when no stage, skill, or tool loads it.
32
+
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.
34
+
35
+ *Digest:* the widest tier true for every reader of it.
36
+
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.
38
+
39
+ *Digest:* run the gate, never emulate it; a red run is the feedback channel.
40
+
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.
42
+
43
+ *Digest:* the owner doc is ground truth; history answers what happened, never what is correct.
44
+
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.
46
+
47
+ *Digest:* a gap you defer is costed and filed, never flagged-and-skipped.
48
+
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.
50
+
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.
52
+
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.
54
+
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.
56
+
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).
58
+
59
+ *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
+
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).
62
+
63
+ *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.
273
64
 
274
65
  ## Engineering-craft rules
275
66
 
276
- 13. **Spec-invariant test naming.** A test of a spec-mandated invariant encodes
277
- that invariant in its *name*; the SPEC's test-requirement section owns which
278
- invariants a test must cover. A spec-clause *comment* on the test is not a
279
- substitute — it duplicates what the name should carry and rots silently when
280
- the clause is renamed.
281
- *Under agent work:* a test name is the line read at every failure and kept
282
- across refactors; an agent scanning a failing suite reads names, not comment
283
- pointers, so the invariant must live where the failure surfaces it.
284
- *Enforced by:* the test-naming convention, and canon-kit's `check-comment-tier`
285
- ([canon-kit/SPEC.md](../canon-kit/SPEC.md)) — which sweeps the comment
286
- substitute out rather than blessing it, leaving the name as the only place to
287
- carry the invariant.
288
- *Stages:* build, validate
289
-
290
- 14. **Test from the real consumer's runtime.** Verify a contract from the runtime
291
- of its real consumer, never a more lenient stand-in; a failure at a higher
292
- test layer with no failing test at the layer below is a coverage gap in the
293
- lower layer, closed there first.
294
- *Under agent work:* an agent scripts the contract from whatever client is
295
- easiest to drive, and a lenient stand-in passes what the real consumer's
296
- stricter stack would reject — a green the production caller does not share.
297
- *Enforced by:* a test-layer convention, not yet a checkwright gate: a consumer
298
- registers its real-consumer suites in the validate battery
299
- ([evidence-kit/SPEC.md](../evidence-kit/SPEC.md)), where a held-constant
300
- baseline turns a dropped layer into a red validate.
301
- *Stages:* build, validate
302
-
303
- 15. **Inspectable-run discipline.** A component a test or an automation spawns
304
- must emit a readable log to an inspectable path — never a muted sink; on a
305
- failure, read that evidence before theorizing. A run you cannot inspect
306
- barely beats a guess.
307
- *Under agent work:* an agent theorizes confidently from nothing; forcing every
308
- spawned component to leave an inspectable artifact converts a guess into a
309
- read, and recorded evidence beats a reconstructed hypothesis.
310
- *Enforced by:* the convention, kin to delegation-kit's resume-journal
311
- discipline ([delegation-kit/SPEC.md](../delegation-kit/SPEC.md)) — the same
312
- move of making a background actor write an inspectable record rather than
313
- trusting its self-report.
67
+ 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
+
69
+ *Stages:* build, validate
70
+
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.
72
+
73
+ *Stages:* build, validate
74
+
75
+ 17. **Inspectable-run discipline.** A component a test or an automation spawns must emit a readable log to an inspectable path — never a muted sink; on a failure, read that evidence before theorizing. A run you cannot inspect barely beats a guess. *Under agent work:* an agent theorizes confidently from nothing; forcing every spawned component to leave an inspectable artifact converts a guess into a read, and recorded evidence beats a reconstructed hypothesis. *Enforced by:* the convention, kin to delegation-kit's resume-journal discipline ([delegation-kit/SPEC.md](../delegation-kit/SPEC.md)) — the same move of making a background actor write an inspectable record rather than trusting its self-report.
76
+
314
77
  *Stages:* build, validate
315
78
 
316
- 16. **Rename is a full-surface sweep.** A rename sweeps every surface in
317
- lockstep — prose, fixtures, and docs, not only the compiler-checked
318
- identifiers; the done-gate is a text-level completeness check, not the
319
- type-checker, and an in-progress rename is verified by a completeness scan
320
- before it is called finished.
321
- *Under agent work:* an agent reads a green type-check as "rename done" and
322
- leaves the retired term alive in every surface the compiler never sees; only
323
- a text-level sweep closes it.
324
- *Enforced by:* a text-level completeness check whose term list is *consumer
325
- config*, never a kit literal — the same seam that keeps product vocabulary
326
- out of shipped mechanism (the config-via-env pattern in
327
- [gate-sdk/SPEC.md](../gate-sdk/SPEC.md)), so the check ships and the
328
- vocabulary stays with the consumer.
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.
80
+
329
81
  *Stages:* build
330
82
 
331
- 17. **Config edits are merges, not rewrites.** Edit a config or settings file
332
- with targeted, string-scoped edits, never a full-file write reconstructed
333
- from a partial read — a whole-file write built from part of the file
334
- silently drops everything the write did not carry. And validate an
335
- apparently broken file with the format's own parser before calling it
336
- corrupt: an apparent corruption is usually a parse by the wrong tool, not
337
- damaged content.
338
- *Under agent work:* an agent reads the top of a settings file, writes the
339
- whole file back from that fragment, and the keys it never read vanish with
340
- no diff to flag them; or it declares a file corrupt off a wrong-tool parse
341
- and "repairs" a file that was already valid.
342
- *Enforced by:* a convention, not yet a checkwright gate — the harness's Edit
343
- tool is the mechanism (an exact-string replace that fails loudly on a
344
- missing or ambiguous match, keeping the write scoped to what was read); no
345
- gate asserts a given edit was a merge rather than a rewrite.
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.
84
+
346
85
  *Stages:* build
347
86
 
348
- 18. **Re-verify volatile state before a git history rewrite.** Verify HEAD
349
- (`git log --oneline -3`) before an amend or squash; after a `git reset
350
- --soft`, re-stage and verify the staged content (`git show :<path>`) before
351
- committing — the soft reset keeps the old index snapshot; write any `git
352
- commit -F` message file fresh in the same turn (prefer `-m` for a short
353
- message — a leftover file lands the wrong message with exit 0); and rewrite
354
- the message when amending so it states the combined change.
355
- *Under agent work:* the git index and HEAD are mutable state an agent
356
- reasons about from a stale in-context snapshot, and a rewrite acts on what
357
- the working tree *now* holds, not what the transcript last recorded — so the
358
- verification must be a fresh read, never a remembered one.
359
- *Enforced by:* guard-kit's advisory guard rule on `git commit --amend`, `git
360
- reset --soft`, and `git commit -F`
361
- ([guard-kit/SPEC.md](../guard-kit/SPEC.md) §The generic ruleset), which
362
- surfaces this checklist at the moment the rewrite is dispatched — advisory
363
- because each command is legitimate.
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.
88
+
364
89
  *Stages:* build, close
365
90
 
366
- 19. **Entering another repo's tree, read its governance first.** A cross-repo
367
- edit re-reads that repo's agent file and README and checks its branch
368
- freshness every time — a second repo's model drifts independently of this
369
- one's, so a remembered version of its rules is a stale premise.
370
- *Under agent work:* an agent carries the governing rules of the repo it was
371
- last in into the next one, importing the wrong house style; only a fresh
372
- read of the entered tree's own governance corrects the prior.
373
- *Enforced by:* a convention, not yet a checkwright gate — another repo's
374
- tree is outside this tree's gate horizon, so no local check can assert its
375
- governance was reread.
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.
92
+
376
93
  *Stages:* build
377
94
 
378
- 20. **Naming: drop the qualifier the context supplies — only when every consumer
379
- has that context.** A name that travels into a flat namespace keeps its
380
- qualifier; default to the shorter form and reject the vacuous one, but a
381
- name that loses the context which disambiguated it must carry the qualifier
382
- with it.
383
- *Under agent work:* an agent copies a short name out of the scope that gave
384
- it meaning into a flat namespace where the qualifier is load-bearing, and
385
- the collision surfaces far from the rename; "does every reader still have
386
- the context" is the discriminator, not shortness.
387
- *Enforced by:* a convention, not yet a checkwright gate — whether a
388
- qualifier is redundant *for every consumer* is a judgment a scanner cannot
389
- decide; the de-literalization instinct, a name sized to its widest reader,
390
- is its written form.
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.
96
+
391
97
  *Stages:* scope, build
392
98
 
393
- 21. **Reuse a co-located consumer's data before designing a new path.** For an
394
- embedded or co-located actor, first ask whether it can read a co-located
395
- consumer's already-fetched data before minting a new stream, grant, or
396
- fetch — a "which path" framing can hide a "no path needed" answer.
397
- *Under agent work:* an agent asked "how should X get this data" designs a
398
- new channel because the question presupposes one, and never asks whether the
399
- data is already in reach; the cheaper reuse stays invisible unless the
400
- framing is challenged.
401
- *Enforced by:* a convention, not yet a checkwright gate — a data-path choice
402
- leaves no artifact a scanner reads; it is design-review judgment, kin to
403
- reaching for an existing owner before minting a second source.
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.
100
+
404
101
  *Stages:* scope, build
405
102
 
406
- 22. **A resolver gate's flagged key is a fork, not a verdict.** A name-resolution
407
- gate that finds a silent drop has found either dead config to remove *or*
408
- promised-but-unwired config to build — one signature, opposite fixes; only
409
- the owning SPEC distinguishes them, so verify intent against the SPEC before
410
- sweeping the key away.
411
- *Under agent work:* an agent reads a gate finding as an instruction ("remove
412
- the flagged key") and deletes config the SPEC promised but the wiring never
413
- delivered — turning a build-it signal into a delete-it action; the gate saw
414
- the drop, not the intent.
415
- *Enforced by:* the name-resolution gates that surface the drop — the
416
- couples/reads walkers and reference-liveness sweeps in
417
- [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) — but the fork itself is resolved
418
- against the owning SPEC by judgment; the gate reports the dangling key,
419
- never which way it should be closed.
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.
104
+
420
105
  *Stages:* build
421
106
 
422
- 23. **Quiet green, loud red.** A batch runner's success is one summary line
423
- carrying its scope counts (the count doubling as the roster-collapse
424
- tripwire); failure output is verbatim and never quiets. Per-item success
425
- banners are an opt-in reading, not the default — the red path is the
426
- feedback channel, the green path is a receipt.
427
- *Under agent work:* every green re-run accretes the full banner roll in the
428
- session's context, and a supervising session re-reads it on each cold wake —
429
- success residue crowds out the signal the run exists to carry.
430
- *Enforced by:* judgment at review — "prints too much on success" is not
431
- mechanically decidable; the leaf mechanisms are gate-sdk's per-gate output
432
- contract and the quiet-default run surfaces
433
- ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §run-gates).
107
+ 25. **Quiet green, loud red.** A batch runner's success is one summary line carrying its scope counts (the count doubling as the roster-collapse tripwire); failure output is verbatim and never quiets. Per-item success banners are an opt-in reading, not the default — the red path is the feedback channel, the green path is a receipt. *Under agent work:* every green re-run accretes the full banner roll in the session's context, and a supervising session re-reads it on each cold wake — success residue crowds out the signal the run exists to carry. *Enforced by:* judgment at review — "prints too much on success" is not mechanically decidable; the leaf mechanisms are gate-sdk's per-gate output contract and the quiet-default run surfaces ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §run-gates).
108
+
434
109
  *Stages:* build
435
110
 
436
- 24. **An assertion reports the size of the set it ranged over.** A verification a
437
- session writes — a scan, a probe, a predicate under edit — whose subject is a
438
- set prints that set's size beside its verdict, because an exit code cannot
439
- distinguish *asserted and held* from *asserted nothing*: both are zero
440
- failures. The corollary governs the probe that proves an assertion bites — a
441
- mutation is valid only against a target the assertion actually ranges over,
442
- or it reports an empty red set and reads as a pass. *Quiet green, loud red*
443
- puts that count on a batch runner's summary line; this is the same tripwire
444
- one altitude down, for the one-off verification a session writes and reads
445
- inside the session.
446
- *Under agent work:* an agent writes the check and reads its verdict in one
447
- motion, so the exit code is the only evidence it holds that the check bit —
448
- and a predicate just rewritten (a regex carried between dialects, a path list
449
- narrowed) fails by matching nothing, which is indistinguishable from success.
450
- A printed count is the one signal that survives the rewrite.
451
- *Enforced by:* judgment, over a class only partly mechanizable — stated
452
- honestly rather than promised to a scanner. Shipped: the vacuous-pass
453
- tripwire in [gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §run-gates, and the
454
- `good/`+`bad/` fixture pair every gate already owes
455
- ([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §The gate model), which exercises a
456
- predicate rather than trusting it. Buildable but unbuilt: a branch-coverage
457
- assertion over a check's fixture corpus, for the arm that ships with no
458
- fixture to run it. Unreachable: whether a session's mutation probe targeted
459
- something its assertion ranges over is a property of a session act that
460
- leaves no residue in the tree, so that third stays judgment.
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.
112
+
461
113
  *Stages:* build, validate
462
114
 
463
- 25. **A third-party tool's behavior is a configuration question first.** Before
464
- designing any mitigation around a tool you do not control, probe its
465
- configuration surface and its issue tracker; a design question is what is
466
- left after both come back empty. Repeated confirmation of a *behavior* is
467
- evidence about the behavior and none at all about its *mutability*, so an
468
- attestation count pushes confidence the wrong way — each re-confirmation
469
- makes the mechanism feel settled and suppresses the config probe that would
470
- retire it. The corollary reads the mitigation rather than the tool: a
471
- workaround that keeps *growing* — more candidates, more unenforceable prose,
472
- a hand payment per use — is itself evidence of solving the wrong problem,
473
- because a correct fix converges and this shape accretes. When the workaround
474
- outgrows the thing it works around, stop and re-probe the premise.
475
- *Under agent work:* an agent inherits a prior session's symptom evidence as a
476
- settled mechanism and designs against it, and symptom evidence accumulates
477
- across sessions without any hand-off ever bearing on whether the symptom is
478
- configurable — so the premise hardens exactly as the sessions that could
479
- cheaply falsify it multiply.
480
- *Enforced by:* judgment, not a gate, and for the reason Probe-before-assertion
481
- states — whether a session probed a vendor's settings schema leaves no residue
482
- in the tree. The two divide by *target*: that rule governs a claim about the
483
- tree or the harness that a local command settles; this one governs a claim
484
- about an external tool, where the probe leaves the tree entirely. Its capture
485
- surface is the queue's design-pending tier, where a mitigation's growing
486
- candidate list is the readable signal the corollary names.
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.
116
+
487
117
  *Stages:* scope, spec, build
118
+
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.
120
+
121
+ *Stages:* spec, build, validate