checkwright 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1025) hide show
  1. package/README.md +35 -1361
  2. package/bin/checkwright.ps1 +157 -0
  3. package/bin/checkwright.sh +187 -44
  4. package/package.json +15 -14
  5. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  6. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -0
  7. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  8. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
  9. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  10. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -0
  11. package/payload/artifact/targets.list +120 -24
  12. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  13. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -0
  14. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  15. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
  16. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  17. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  18. package/payload/canon-kit/README.md +23 -37
  19. package/payload/canon-kit/checks/check-amendment-queue.gate +2 -2
  20. package/payload/canon-kit/checks/check-amendment-retired-spelling.gate +3 -0
  21. package/payload/canon-kit/checks/check-amendment-update-target.gate +1 -1
  22. package/payload/canon-kit/checks/check-comment-tier.gate +1 -1
  23. package/payload/canon-kit/checks/check-deprecation-task.gate +2 -1
  24. package/payload/canon-kit/checks/check-docs-cmd.gate +2 -2
  25. package/payload/canon-kit/checks/check-docs-link-convention.gate +1 -1
  26. package/payload/canon-kit/checks/check-docs-restatement-parity.gate +4 -0
  27. package/payload/canon-kit/checks/check-fence-command-head.gate +3 -0
  28. package/payload/canon-kit/checks/check-fence-run.gate +3 -0
  29. package/payload/canon-kit/checks/check-install-claim.gate +2 -1
  30. package/payload/canon-kit/checks/check-knob-citation.gate +1 -1
  31. package/payload/canon-kit/checks/check-manifest-count.gate +1 -1
  32. package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
  33. package/payload/canon-kit/checks/check-md-refs.gate +1 -1
  34. package/payload/canon-kit/checks/check-md-unwrapped.gate +3 -0
  35. package/payload/canon-kit/checks/check-measured-claim.gate +2 -1
  36. package/payload/canon-kit/checks/check-payload-claim.gate +2 -1
  37. package/payload/canon-kit/checks/check-prose-bounds.gate +3 -0
  38. package/payload/canon-kit/checks/check-prose-enum.gate +2 -1
  39. package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
  40. package/payload/canon-kit/checks/check-provenance-seam.gate +3 -0
  41. package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
  42. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
  43. package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
  44. package/payload/canon-kit/checks/check-spec-fence-balance.gate +1 -1
  45. package/payload/canon-kit/checks/check-spec-pointer.gate +2 -2
  46. package/payload/canon-kit/checks/check-surface-duplication.gate +3 -0
  47. package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
  48. package/payload/canon-kit/checks/check-tracking-claim.gate +1 -1
  49. package/payload/canon-kit/checks/check-unmarked-claim.gate +2 -1
  50. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +3 -0
  51. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +37 -8
  52. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +6 -3
  53. package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +7 -0
  54. package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +11 -3
  55. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-nosection.md +16 -0
  56. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-thing.md +26 -0
  57. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/expect.txt +8 -0
  58. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/one.md +4 -0
  59. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/two.md +3 -0
  60. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-tidy.md +20 -0
  61. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-widget.md +37 -0
  62. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/README.md +4 -0
  63. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/SPEC.md +4 -0
  64. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/expect.txt +1 -0
  65. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/unnamed.md +4 -0
  66. package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +1 -1
  67. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +1 -1
  68. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +37 -26
  69. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +3 -1
  70. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.knobs +2 -0
  71. package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +6 -2
  72. package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
  73. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.knobs +2 -0
  74. package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +12 -10
  75. package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +4 -1
  76. package/payload/canon-kit/gate-tests/check-docs-cmd.test.sh +61 -0
  77. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +3 -0
  78. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +21 -2
  79. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +2 -0
  80. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/README.md +10 -0
  81. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +11 -0
  82. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/canon-config.knobs +2 -0
  83. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/gate-sdk-config.knobs +2 -0
  84. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/expect.txt +1 -0
  85. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/README.md +12 -0
  86. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/index.md +13 -0
  87. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/canon-config.knobs +2 -0
  88. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/gate-sdk-config.knobs +2 -0
  89. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/args +1 -0
  90. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +16 -0
  91. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +5 -0
  92. package/payload/canon-kit/gate-tests/check-fence-command-head/good/args +1 -0
  93. package/payload/canon-kit/gate-tests/check-fence-command-head/good/bin/run.sh +3 -0
  94. package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +41 -0
  95. package/payload/canon-kit/gate-tests/check-fence-command-head/good/expect.txt +1 -0
  96. package/payload/canon-kit/gate-tests/check-fence-command-head/good/lib/tool.sh +5 -0
  97. package/payload/canon-kit/gate-tests/check-fence-command-head/good/scripts/canon-config.knobs +2 -0
  98. package/payload/canon-kit/gate-tests/check-fence-run/bad/args +1 -0
  99. package/payload/canon-kit/gate-tests/check-fence-run/bad/doc.md +32 -0
  100. package/payload/canon-kit/gate-tests/check-fence-run/bad/expect.txt +7 -0
  101. package/payload/canon-kit/gate-tests/check-fence-run/good/args +1 -0
  102. package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +31 -0
  103. package/payload/canon-kit/gate-tests/check-fence-run/good/expect.txt +1 -0
  104. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.knobs +7 -0
  105. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.knobs +7 -0
  106. package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +42 -7
  107. package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +1 -2
  108. package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  109. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +37 -8
  110. package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +3 -0
  111. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +10 -0
  112. package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +6 -6
  113. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +1 -1
  114. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/doc.md +13 -0
  115. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +4 -0
  116. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/scripts/canon-config.knobs +2 -0
  117. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/doc.md +45 -0
  118. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -0
  119. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/scripts/canon-config.knobs +4 -0
  120. package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +3 -0
  121. package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +1 -0
  122. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.knobs +4 -0
  123. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +8 -0
  124. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.knobs +4 -0
  125. package/payload/canon-kit/gate-tests/check-measured-claim/good/worktrees/SPEC.md +12 -0
  126. package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +32 -13
  127. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.knobs +6 -0
  128. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.knobs +6 -0
  129. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/CLAUDE.md +9 -0
  130. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/SPEC.md +11 -0
  131. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/expect.txt +3 -0
  132. package/payload/canon-kit/gate-tests/check-prose-bounds/bad/scripts/canon-config.knobs +3 -0
  133. package/payload/canon-kit/gate-tests/check-prose-bounds/good/CLAUDE.md +10 -0
  134. package/payload/canon-kit/gate-tests/check-prose-bounds/good/SPEC.md +27 -0
  135. package/payload/canon-kit/gate-tests/check-prose-bounds/good/expect.txt +1 -0
  136. package/payload/canon-kit/gate-tests/check-prose-bounds/good/scripts/canon-config.knobs +3 -0
  137. package/payload/canon-kit/gate-tests/check-prose-bounds.test.sh +98 -0
  138. package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.knobs +3 -0
  139. package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.knobs +3 -0
  140. package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +55 -25
  141. package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +2 -0
  142. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -0
  143. package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
  144. package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/{canon-config.sh → canon-config.knobs} +2 -5
  145. package/payload/canon-kit/gate-tests/check-prose-tells/good/worktrees/prose.md +17 -0
  146. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/TASK-QUEUE.md +15 -0
  147. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/expect.txt +8 -0
  148. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/canon-config.knobs +3 -0
  149. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/gate-sdk-config.knobs +2 -0
  150. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/lifecycle-config.knobs +12 -0
  151. package/payload/canon-kit/gate-tests/check-provenance-seam/bad/widget-toolkit/SPEC.md +27 -0
  152. package/payload/canon-kit/gate-tests/check-provenance-seam/good/TASK-QUEUE.md +15 -0
  153. package/payload/canon-kit/gate-tests/check-provenance-seam/good/expect.txt +1 -0
  154. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/canon-config.knobs +3 -0
  155. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/gate-sdk-config.knobs +2 -0
  156. package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/lifecycle-config.knobs +12 -0
  157. package/payload/canon-kit/gate-tests/check-provenance-seam/good/widget-toolkit/SPEC.md +20 -0
  158. package/payload/canon-kit/gate-tests/check-provenance-seam.test.sh +136 -0
  159. package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +1 -1
  160. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +6 -0
  161. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
  162. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +2 -0
  163. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +4 -0
  164. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +6 -0
  165. package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +15 -0
  166. package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +10 -0
  167. package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
  168. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +2 -0
  169. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
  170. package/payload/canon-kit/gate-tests/check-spec-pointer/good/vendored-kit/notes.txt +4 -0
  171. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +3 -1
  172. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +9 -3
  173. package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -1
  174. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +3 -0
  175. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +1 -0
  176. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.knobs +4 -0
  177. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +3 -0
  178. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.knobs +4 -0
  179. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/worktrees/SPEC.md +11 -0
  180. package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +53 -28
  181. package/payload/canon-kit/templates/SPEC-amendment.md +46 -25
  182. package/payload/canon-kit/templates/canon-config.knobs +1 -0
  183. package/payload/context-kit/README.md +33 -61
  184. package/payload/context-kit/checks/check-brevity.gate +2 -2
  185. package/payload/context-kit/checks/check-footprint-fresh.gate +3 -2
  186. package/payload/context-kit/checks/check-memory-off.gate +1 -1
  187. package/payload/context-kit/checks/check-settings-paths.gate +2 -2
  188. package/payload/context-kit/checks/check-settings-pins.gate +1 -1
  189. package/payload/context-kit/checks/check-surface-ratchet.gate +3 -0
  190. package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +9 -2
  191. package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
  192. package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +9 -4
  193. package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -1
  194. package/payload/context-kit/gate-tests/check-brevity.test.sh +107 -24
  195. package/payload/context-kit/gate-tests/check-footprint-fresh/good/CLAUDE.md +6 -0
  196. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/SPEC.md +3 -0
  197. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/templates/guide.md +3 -0
  198. package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +30 -0
  199. package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/{context-config.sh → context-config.knobs} +1 -3
  200. package/payload/context-kit/gate-tests/check-memory-off/good/scripts/{context-config.sh → context-config.knobs} +1 -3
  201. package/payload/context-kit/gate-tests/check-memory-off.test.sh +1 -1
  202. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +2 -0
  203. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +21 -0
  204. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/run-gates.sh +4 -0
  205. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -1
  206. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +48 -1
  207. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/run-gates.sh +4 -0
  208. package/payload/context-kit/gate-tests/check-settings-pins.test.sh +1 -1
  209. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/CLAUDE.md +5 -0
  210. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/expect.txt +2 -0
  211. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/scripts/context-config.knobs +4 -0
  212. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/surface-ceiling.txt +2 -0
  213. package/payload/context-kit/gate-tests/check-surface-ratchet/bad/templates/ungoverned.md +3 -0
  214. package/payload/context-kit/gate-tests/check-surface-ratchet/good/CLAUDE.md +3 -0
  215. package/payload/context-kit/gate-tests/check-surface-ratchet/good/expect.txt +1 -0
  216. package/payload/context-kit/gate-tests/check-surface-ratchet/good/scripts/context-config.knobs +4 -0
  217. package/payload/context-kit/gate-tests/check-surface-ratchet/good/surface-ceiling.txt +4 -0
  218. package/payload/context-kit/gate-tests/check-surface-ratchet/good/templates/held.md +4 -0
  219. package/payload/context-kit/gate-tests/check-surface-ratchet.test.sh +76 -0
  220. package/payload/context-kit/index-tests/corpus/baseline.txt +1 -1
  221. package/payload/context-kit/index-tests/corpus/surface.md +1 -6
  222. package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -1
  223. package/payload/context-kit/templates/close-brevity.md +9 -28
  224. package/payload/context-kit/templates/context-config.knobs +1 -0
  225. package/payload/context-kit/templates/session-context.sh +43 -28
  226. package/payload/delegation-kit/README.md +35 -69
  227. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +1 -1
  228. package/payload/delegation-kit/checks/check-gate-tamper.gate +1 -1
  229. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +23 -2
  230. package/payload/delegation-kit/templates/agent-execution.md +23 -389
  231. package/payload/delegation-kit/templates/delegation-config.knobs +4 -0
  232. package/payload/delegation-kit/templates/dispatch-checklists.md +8 -45
  233. package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +33 -17
  234. package/payload/doctrine-kit/DOCTRINE.md +92 -458
  235. package/payload/doctrine-kit/README.md +24 -55
  236. package/payload/doctrine-kit/checks/check-doctrine-registration.gate +1 -1
  237. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +48 -3
  238. package/payload/drift-kit/README.md +43 -89
  239. package/payload/drift-kit/templates/close-knowledge.md +7 -22
  240. package/payload/drift-kit/templates/drift-config.knobs +1 -0
  241. package/payload/drift-kit/templates/economics.md +10 -48
  242. package/payload/drift-kit/templates/kpi-deprecated-surface.sh +31 -9
  243. package/payload/drift-kit/templates/kpis.list +2 -1
  244. package/payload/drift-kit/templates/price-table.tsv +1 -1
  245. package/payload/evidence-kit/README.md +23 -46
  246. package/payload/evidence-kit/checks/check-battery-roster.gate +1 -1
  247. package/payload/evidence-kit/checks/check-evidence-baseline.gate +2 -2
  248. package/payload/evidence-kit/checks/check-evidence-manifest.gate +1 -1
  249. package/payload/evidence-kit/checks/check-producer-liveness.gate +3 -0
  250. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +7 -0
  251. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +7 -0
  252. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +7 -7
  253. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -1
  254. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +1 -0
  255. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +2 -0
  256. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/scripts/evidence-config.knobs +4 -0
  257. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +1 -0
  258. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -1
  259. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +1 -0
  260. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/scripts/evidence-config.knobs +3 -0
  261. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +134 -14
  262. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
  263. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
  264. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +5 -4
  265. package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +128 -0
  266. package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +51 -45
  267. package/payload/evidence-kit/gate-tests/pre-hook.test.sh +66 -0
  268. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +29 -16
  269. package/payload/evidence-kit/templates/evidence-config.knobs +1 -0
  270. package/payload/gate-sdk/README.md +48 -79
  271. package/payload/gate-sdk/bin/build-native.sh +27 -4
  272. package/payload/gate-sdk/bin/run-gates.ps1 +266 -0
  273. package/payload/gate-sdk/bin/run-gates.sh +53 -277
  274. package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -1
  275. package/payload/gate-sdk/checks/check-action-job-ref.gate +3 -0
  276. package/payload/gate-sdk/checks/check-action-permissions.gate +3 -0
  277. package/payload/gate-sdk/checks/check-action-pinning.gate +1 -1
  278. package/payload/gate-sdk/checks/check-action-run-path.gate +3 -0
  279. package/payload/gate-sdk/checks/check-action-run-shell.gate +3 -0
  280. package/payload/gate-sdk/checks/check-commit-msg.gate +2 -1
  281. package/payload/gate-sdk/checks/check-commit-subject.gate +1 -1
  282. package/payload/gate-sdk/checks/check-core-files.gate +1 -1
  283. package/payload/gate-sdk/checks/check-crate-arms.gate +3 -0
  284. package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -2
  285. package/payload/gate-sdk/checks/check-exec-bit.gate +1 -1
  286. package/payload/gate-sdk/checks/check-front-end-fail-open.gate +3 -0
  287. package/payload/gate-sdk/checks/check-gate-assertions.gate +2 -2
  288. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +1 -1
  289. package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +1 -1
  290. package/payload/gate-sdk/checks/check-gate-fail-closed.gate +1 -1
  291. package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +1 -1
  292. package/payload/gate-sdk/checks/check-gate-output.gate +1 -1
  293. package/payload/gate-sdk/checks/check-gate-substrate-parity.gate +3 -0
  294. package/payload/gate-sdk/checks/check-graph.gate +2 -1
  295. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +1 -1
  296. package/payload/gate-sdk/checks/check-identity.gate +1 -1
  297. package/payload/gate-sdk/checks/check-install-disposition.gate +3 -0
  298. package/payload/gate-sdk/checks/check-kit-enum.gate +1 -1
  299. package/payload/gate-sdk/checks/check-kit-registration.gate +1 -1
  300. package/payload/gate-sdk/checks/check-kit-roots-dialect.gate +3 -0
  301. package/payload/gate-sdk/checks/check-packed-links.gate +3 -0
  302. package/payload/gate-sdk/checks/check-path-dialect.gate +3 -0
  303. package/payload/gate-sdk/checks/check-pipe-membership.gate +3 -0
  304. package/payload/gate-sdk/checks/check-portability-floor.gate +4 -0
  305. package/payload/gate-sdk/checks/check-projection-roster.gate +4 -0
  306. package/payload/gate-sdk/checks/check-reads-couples.gate +1 -1
  307. package/payload/gate-sdk/checks/check-root-tiering.gate +1 -1
  308. package/payload/gate-sdk/checks/check-shellcheck.gate +3 -0
  309. package/payload/gate-sdk/checks/check-template-copy-parity.gate +1 -1
  310. package/payload/gate-sdk/checks/check-tree-terms.gate +2 -1
  311. package/payload/gate-sdk/checks/check-workflow-tiering.gate +1 -1
  312. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/args +2 -0
  313. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/expect.txt +1 -0
  314. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/scripts/gate-sdk-config.knobs +1 -0
  315. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/notes.md +3 -0
  316. package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/workflows/ci.yml +8 -0
  317. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/args +3 -0
  318. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/expect.txt +1 -0
  319. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/scripts/gate-sdk-config.knobs +1 -0
  320. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/notes.md +3 -0
  321. package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/workflows/ci.yml +8 -0
  322. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/args +3 -0
  323. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/expect.txt +5 -0
  324. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/empty-allowlist.yml +29 -0
  325. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/gates.yml +25 -0
  326. package/payload/gate-sdk/gate-tests/check-action-permissions/good/args +5 -0
  327. package/payload/gate-sdk/gate-tests/check-action-permissions/good/expect.txt +1 -0
  328. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/action.yml +9 -0
  329. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/not-actions.yml +7 -0
  330. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/declared.yml +69 -0
  331. package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/valves.yml +22 -0
  332. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/args +4 -0
  333. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/expect.txt +2 -0
  334. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/scripts/present.sh +3 -0
  335. package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/workflows/ci.yml +14 -0
  336. package/payload/gate-sdk/gate-tests/check-action-run-path/good/args +5 -0
  337. package/payload/gate-sdk/gate-tests/check-action-run-path/good/expect.txt +1 -0
  338. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/scripts/build.sh +3 -0
  339. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/sub/scripts/inner.sh +3 -0
  340. package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/workflows/ci.yml +36 -0
  341. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +4 -2
  342. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +2 -0
  343. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/runner-dialect.yml +36 -0
  344. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -2
  345. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -1
  346. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/runner-dialect.yml +71 -0
  347. package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +102 -9
  348. package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +1 -1
  349. package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +1 -1
  350. package/payload/gate-sdk/gate-tests/check-assertion-strength.test.sh +55 -0
  351. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/expect.txt +1 -0
  352. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/msg.txt +4 -0
  353. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -1
  354. package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +7 -0
  355. package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -1
  356. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +2 -2
  357. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +1 -1
  358. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.knobs +3 -0
  359. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.knobs +3 -0
  360. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/SPEC.md +3 -0
  361. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/checks/check-demo.gate +1 -0
  362. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/probe.conf +1 -0
  363. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/templates/guide.md +3 -0
  364. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/enforcement.md +33 -0
  365. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gate-sdk-config.knobs +1 -0
  366. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gates.list +1 -0
  367. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +1 -1
  368. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/args +3 -0
  369. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/expect.txt +2 -0
  370. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.ps1 +5 -0
  371. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.sh +9 -0
  372. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/args +4 -0
  373. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/expect.txt +1 -0
  374. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.ps1 +5 -0
  375. package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.sh +9 -0
  376. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +4 -1
  377. package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +1 -1
  378. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.knobs +2 -0
  379. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.knobs +2 -0
  380. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +6 -12
  381. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +5 -3
  382. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +3 -1
  383. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +4 -2
  384. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +1 -1
  385. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci/build-artifact.sh +9 -0
  386. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci.yml +9 -0
  387. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +4 -2
  388. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.knobs +5 -0
  389. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +6 -0
  390. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci/build-artifact.sh +9 -0
  391. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci.yml +16 -0
  392. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +7 -3
  393. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.knobs +5 -0
  394. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -1
  395. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +222 -197
  396. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +7 -2
  397. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +4 -0
  398. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +3 -1
  399. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +1 -1
  400. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +8 -8
  401. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +2 -2
  402. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +49 -14
  403. package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
  404. package/payload/gate-sdk/gate-tests/check-identity/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
  405. package/payload/gate-sdk/gate-tests/check-identity.test.sh +1 -1
  406. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-eta.sh +7 -0
  407. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-iota.sh +7 -0
  408. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-theta.sh +7 -0
  409. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-zeta.gate +3 -0
  410. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +1 -1
  411. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +8 -5
  412. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +5 -0
  413. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/native/src/installer/recipe.rs +10 -0
  414. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  415. package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +8 -4
  416. package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +2 -0
  417. package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
  418. package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/checks/check-alpha.sh +1 -1
  419. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-beta.gate +3 -0
  420. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-gamma.sh +6 -0
  421. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-omega.sh +7 -0
  422. package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-psi.sh +7 -0
  423. package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/smoke/install.sh +2 -2
  424. package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +15 -12
  425. package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +7 -5
  426. package/payload/gate-sdk/gate-tests/check-kit-registration/good/scripts/gate-sdk-config.knobs +2 -0
  427. package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +2 -2
  428. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/args +5 -0
  429. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/expect.txt +1 -0
  430. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/checks/placeholder.txt +3 -0
  431. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
  432. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/lib/alpha.sh +3 -0
  433. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/checks/placeholder.txt +3 -0
  434. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/gate-tests/beta.test.sh +3 -0
  435. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/lib/beta.sh +3 -0
  436. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/checks/placeholder.txt +3 -0
  437. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/lib/gate.sh +3 -0
  438. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gate-sdk-config.knobs +7 -0
  439. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gates.list +3 -0
  440. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/args +7 -0
  441. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/expect.txt +1 -0
  442. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/checks/placeholder.txt +3 -0
  443. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
  444. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/lib/alpha.sh +3 -0
  445. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/checks/placeholder.txt +3 -0
  446. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/gate-tests/beta.test.sh +3 -0
  447. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/lib/beta.sh +3 -0
  448. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/checks/placeholder.txt +3 -0
  449. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/lib/gate.sh +3 -0
  450. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/scripts/gates.list +3 -0
  451. package/payload/gate-sdk/gate-tests/check-packed-links/bad/alpha-kit/README.md +5 -0
  452. package/payload/gate-sdk/gate-tests/check-packed-links/bad/args +5 -0
  453. package/payload/gate-sdk/gate-tests/check-packed-links/bad/beta-kit/README.md +5 -0
  454. package/payload/gate-sdk/gate-tests/check-packed-links/bad/expect.txt +2 -0
  455. package/payload/gate-sdk/gate-tests/check-packed-links/bad/scripts/gate-sdk-config.knobs +4 -0
  456. package/payload/gate-sdk/gate-tests/check-packed-links/good/alpha-kit/README.md +5 -0
  457. package/payload/gate-sdk/gate-tests/check-packed-links/good/args +8 -0
  458. package/payload/gate-sdk/gate-tests/check-packed-links/good/beta-kit/README.md +9 -0
  459. package/payload/gate-sdk/gate-tests/check-packed-links/good/expect.txt +1 -0
  460. package/payload/gate-sdk/gate-tests/check-packed-links/good/gamma-kit/SPEC.md +4 -0
  461. package/payload/gate-sdk/gate-tests/check-packed-links/good/scripts/gate-sdk-config.knobs +6 -0
  462. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/args +3 -0
  463. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/expect.txt +15 -0
  464. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/primitive.rs +19 -0
  465. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/producer.rs +8 -0
  466. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/walk.rs +13 -0
  467. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/bound-root.sh +5 -0
  468. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/case-arm.sh +6 -0
  469. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/commented.sh +5 -0
  470. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/common-dir.sh +4 -0
  471. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/glob-test.sh +4 -0
  472. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/late-anchor.sh +7 -0
  473. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/logical-readback.sh +5 -0
  474. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/probe.sh +7 -0
  475. package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/two-root.sh +5 -0
  476. package/payload/gate-sdk/gate-tests/check-path-dialect/good/args +3 -0
  477. package/payload/gate-sdk/gate-tests/check-path-dialect/good/expect.txt +13 -0
  478. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/commented.rs +5 -0
  479. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/local.rs +12 -0
  480. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/namespace.rs +11 -0
  481. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/typed.rs +10 -0
  482. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/verdict.rs +5 -0
  483. package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/walk.rs +24 -0
  484. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/anchored.sh +6 -0
  485. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/cd-only.sh +7 -0
  486. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/commented.sh +6 -0
  487. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/one-root.sh +4 -0
  488. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/probe.sh +8 -0
  489. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/rooted.sh +23 -0
  490. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/subshell.sh +6 -0
  491. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/two-line.sh +8 -0
  492. package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/verdict.sh +7 -0
  493. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/args +4 -0
  494. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/expect.txt +6 -0
  495. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/scripts/gate-sdk-config.knobs +1 -0
  496. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/array-grep.sh +6 -0
  497. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/echo-max-count.sh +5 -0
  498. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/gate-tests/membership.test.sh +6 -0
  499. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/loop-head.sh +5 -0
  500. package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/tests/relocated.test.sh +6 -0
  501. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/args +5 -0
  502. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/expect.txt +3 -0
  503. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/full-reader.sh +4 -0
  504. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/check-x/bad/violating.test.sh +6 -0
  505. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/clean.test.sh +8 -0
  506. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/loop-membership.sh +8 -0
  507. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/no-pipefail.sh +6 -0
  508. package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/one-line-producer.sh +5 -0
  509. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/args +2 -0
  510. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/expect.txt +8 -0
  511. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/patterns.list +4 -0
  512. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/scripts/gate-sdk-config.knobs +4 -0
  513. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/empty-reason-verb +5 -0
  514. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/strings.ps1 +6 -0
  515. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/too-far-verb +5 -0
  516. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/undeclared-verb +3 -0
  517. package/payload/gate-sdk/gate-tests/check-portability-floor/good/args +2 -0
  518. package/payload/gate-sdk/gate-tests/check-portability-floor/good/expect.txt +1 -0
  519. package/payload/gate-sdk/gate-tests/check-portability-floor/good/patterns.list +5 -0
  520. package/payload/gate-sdk/gate-tests/check-portability-floor/good/scripts/gate-sdk-config.knobs +4 -0
  521. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/front.ps1 +7 -0
  522. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/plain-verb +5 -0
  523. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/portability-patterns.list +5 -0
  524. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/upgrade-verb +7 -0
  525. package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +154 -0
  526. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/demo-kit/checks/check-beta.gate +2 -0
  527. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/docs/roster.md +11 -0
  528. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/expect.txt +7 -0
  529. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-alpha.gate +2 -0
  530. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-gamma.gate +2 -0
  531. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-plain.gate +1 -0
  532. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gate-sdk-config.knobs +3 -0
  533. package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gates.list +4 -0
  534. package/payload/gate-sdk/gate-tests/check-projection-roster/good/demo-kit/checks/check-beta.gate +2 -0
  535. package/payload/gate-sdk/gate-tests/check-projection-roster/good/docs/roster.md +16 -0
  536. package/payload/gate-sdk/gate-tests/check-projection-roster/good/expect.txt +1 -0
  537. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-alpha.gate +2 -0
  538. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-delta.gate +2 -0
  539. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-epsilon.gate +2 -0
  540. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-plain.gate +1 -0
  541. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gate-sdk-config.knobs +4 -0
  542. package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gates.list +5 -0
  543. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.knobs +4 -0
  544. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +1 -1
  545. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.knobs +4 -0
  546. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -1
  547. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +4 -4
  548. package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +4 -4
  549. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +25 -20
  550. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +1 -1
  551. package/payload/gate-sdk/gate-tests/{check-template-registry-parity/bad/scripts/gate-sdk-config.sh → check-smoke-entry-guard/bad/scripts/gate-sdk-config.knobs} +2 -3
  552. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +1 -1
  553. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +1 -1
  554. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +1 -1
  555. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +1 -1
  556. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.knobs +4 -0
  557. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +3 -1
  558. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/session-note.sh +6 -0
  559. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -1
  560. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/session-note.sh +6 -0
  561. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +1 -1
  562. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +2 -0
  563. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/drift-kit/templates/kpis.list +18 -0
  564. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +2 -0
  565. package/payload/gate-sdk/gate-tests/{check-smoke-entry-guard/bad/scripts/gate-sdk-config.sh → check-template-registry-parity/bad/scripts/gate-sdk-config.knobs} +2 -3
  566. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +3 -1
  567. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/drift-kit/templates/kpis.list +17 -0
  568. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -1
  569. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.knobs +4 -0
  570. package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +5 -5
  571. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
  572. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +4 -0
  573. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/accounts.txt +1 -0
  574. package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
  575. package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +5 -1
  576. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +1 -0
  577. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/handles.txt +2 -0
  578. package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +44 -5
  579. package/payload/gate-sdk/gate-tests/emit-arm-shape.test.sh +95 -0
  580. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +10 -10
  581. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +10 -184
  582. package/payload/gate-sdk/gate-tests/reads-census.test.sh +96 -0
  583. package/payload/gate-sdk/gate-tests/run-arm-contract.test.sh +190 -0
  584. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +64 -41
  585. package/payload/gate-sdk/gate-tests/run-for-path.test.sh +2 -2
  586. package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +121 -16
  587. package/payload/gate-sdk/gate-tests/run-gates-linked-worktree.test.sh +136 -0
  588. package/payload/gate-sdk/lib/gate.sh +231 -484
  589. package/payload/gate-sdk/lib/test-hermetic.sh +39 -9
  590. package/payload/gate-sdk/templates/check-skeleton.sh +3 -2
  591. package/payload/gate-sdk/templates/gates-workflow.yml +23 -10
  592. package/payload/gate-sdk/templates/msg-patterns.list +14 -5
  593. package/payload/gate-sdk/templates/portability-patterns.list +56 -0
  594. package/payload/guard-kit/README.md +43 -47
  595. package/payload/guard-kit/checks/check-door-binding.gate +3 -0
  596. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/README.md +6 -0
  597. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/templates/alpha-config.knobs +3 -0
  598. package/payload/guard-kit/gate-tests/check-door-binding/bad/args +5 -0
  599. package/payload/guard-kit/gate-tests/check-door-binding/bad/beta-kit/lib/beta.sh +6 -0
  600. package/payload/guard-kit/gate-tests/check-door-binding/bad/expect.txt +5 -0
  601. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/gate-sdk-config.knobs +4 -0
  602. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/guard-config.knobs +3 -0
  603. package/payload/guard-kit/gate-tests/check-door-binding/bad/site/banner.md +8 -0
  604. package/payload/guard-kit/gate-tests/check-door-binding/bad/site/landing.md +11 -0
  605. package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/README.md +8 -0
  606. package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/templates/settings-hooks.json +20 -0
  607. package/payload/guard-kit/gate-tests/check-door-binding/good/args +7 -0
  608. package/payload/guard-kit/gate-tests/check-door-binding/good/beta-kit/lib/beta.sh +6 -0
  609. package/payload/guard-kit/gate-tests/check-door-binding/good/expect.txt +1 -0
  610. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/gate-sdk-config.knobs +4 -0
  611. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/guard-config.knobs +3 -0
  612. package/payload/guard-kit/gate-tests/check-door-binding/good/site/mirror.md +12 -0
  613. package/payload/guard-kit/gate-tests/check-door-binding/good/site/register.md +24 -0
  614. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +40 -27
  615. package/payload/guard-kit/gate-tests/consumer-rules.test.sh +189 -0
  616. package/payload/guard-kit/gate-tests/door-binding-corpus.test.sh +72 -0
  617. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +48 -23
  618. package/payload/guard-kit/gate-tests/guard-config-knobs.test.sh +170 -0
  619. package/payload/guard-kit/gate-tests/rewrite.test.sh +73 -0
  620. package/payload/guard-kit/gate-tests/scan-prompts.test.sh +174 -8
  621. package/payload/guard-kit/gate-tests/scratch-run.test.sh +149 -13
  622. package/payload/guard-kit/gate-tests/worktree-confinement.test.sh +169 -0
  623. package/payload/guard-kit/guard-tests/background-cases.tsv +14 -5
  624. package/payload/guard-kit/guard-tests/cases.tsv +360 -54
  625. package/payload/guard-kit/guard-tests/powershell-background-cases.tsv +29 -0
  626. package/payload/guard-kit/guard-tests/powershell-cases.tsv +81 -0
  627. package/payload/guard-kit/templates/close-triage.md +15 -62
  628. package/payload/guard-kit/templates/guard-config.knobs +26 -0
  629. package/payload/guard-kit/templates/settings-allow.json +15 -0
  630. package/payload/guard-kit/templates/settings-hooks.json +5 -5
  631. package/payload/lifecycle-kit/README.md +48 -76
  632. package/payload/lifecycle-kit/checks/check-audit-roster.gate +3 -0
  633. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +1 -1
  634. package/payload/lifecycle-kit/checks/check-dispatch-entry.gate +3 -0
  635. package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +1 -1
  636. package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +1 -1
  637. package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +1 -1
  638. package/payload/lifecycle-kit/checks/check-merge-attrs.gate +1 -1
  639. package/payload/lifecycle-kit/checks/check-scratch-citation.gate +1 -1
  640. package/payload/lifecycle-kit/checks/check-shim-restatement.gate +1 -1
  641. package/payload/lifecycle-kit/checks/check-skill-binding.gate +1 -1
  642. package/payload/lifecycle-kit/checks/check-stage-entry.gate +2 -2
  643. package/payload/lifecycle-kit/checks/check-stage-evidence.gate +1 -1
  644. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +2 -2
  645. package/payload/lifecycle-kit/checks/check-stamp-subject.gate +3 -0
  646. package/payload/lifecycle-kit/checks/check-survey-record.gate +2 -2
  647. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +93 -18
  648. package/payload/lifecycle-kit/gate-tests/boundary-stage-journal.test.sh +196 -0
  649. package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +214 -0
  650. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/args +2 -0
  651. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/expect.txt +6 -0
  652. package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/roster.txt +34 -0
  653. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/args +2 -0
  654. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/expect.txt +1 -0
  655. package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/roster.txt +22 -0
  656. package/payload/lifecycle-kit/gate-tests/check-audit-roster.test.sh +101 -0
  657. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.knobs +2 -0
  658. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/worktrees/inbox.md +5 -0
  659. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.knobs +2 -0
  660. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +21 -4
  661. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/args +6 -0
  662. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/expect.txt +1 -0
  663. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/head.txt +5 -0
  664. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/marker.txt +1 -0
  665. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/msg.txt +4 -0
  666. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/paths.txt +1 -0
  667. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/staged.txt +5 -0
  668. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/args +6 -0
  669. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/expect.txt +1 -0
  670. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/head.txt +5 -0
  671. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/marker.txt +1 -0
  672. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/msg.txt +4 -0
  673. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/paths.txt +2 -0
  674. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/staged.txt +6 -0
  675. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry.test.sh +60 -0
  676. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +1 -1
  677. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +1 -5
  678. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +1 -5
  679. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +1 -1
  680. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -2
  681. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.knobs +2 -0
  682. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.knobs +2 -0
  683. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/worktrees/queue.md +13 -0
  684. package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +1 -1
  685. package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +1 -1
  686. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +158 -11
  687. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +27 -2
  688. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +4 -1
  689. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +4 -1
  690. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/close.md +5 -0
  691. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +4 -1
  692. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +1 -1
  693. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -1
  694. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +4 -1
  695. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +4 -1
  696. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +4 -1
  697. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +4 -1
  698. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +4 -1
  699. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage.test.sh +73 -0
  700. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/args +4 -0
  701. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/expect.txt +1 -0
  702. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/head.txt +5 -0
  703. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/msg.txt +4 -0
  704. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/staged.txt +6 -0
  705. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/args +4 -0
  706. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/expect.txt +1 -0
  707. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/head.txt +5 -0
  708. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/msg.txt +4 -0
  709. package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/staged.txt +7 -0
  710. package/payload/lifecycle-kit/gate-tests/check-stamp-subject.test.sh +59 -0
  711. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +3 -0
  712. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +24 -0
  713. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -1
  714. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +10 -0
  715. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +56 -5
  716. package/payload/lifecycle-kit/gate-tests/dispatch-marker.test.sh +152 -0
  717. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +23 -48
  718. package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +7 -5
  719. package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +119 -0
  720. package/payload/lifecycle-kit/gate-tests/preflight-valve.test.sh +170 -0
  721. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +5 -3
  722. package/payload/lifecycle-kit/gate-tests/ruling-staleness.test.sh +89 -0
  723. package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +66 -0
  724. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +12 -6
  725. package/payload/lifecycle-kit/templates/consult.md +9 -63
  726. package/payload/lifecycle-kit/templates/lead.md +143 -431
  727. package/payload/lifecycle-kit/templates/lifecycle-config.knobs +1 -0
  728. package/payload/lifecycle-kit/templates/release-sweep.md +6 -35
  729. package/payload/lifecycle-kit/templates/stages/align.md +14 -82
  730. package/payload/lifecycle-kit/templates/stages/build.md +30 -98
  731. package/payload/lifecycle-kit/templates/stages/close.md +21 -170
  732. package/payload/lifecycle-kit/templates/stages/scope.md +42 -167
  733. package/payload/lifecycle-kit/templates/stages/spec.md +31 -97
  734. package/payload/lifecycle-kit/templates/stages/validate.md +22 -59
  735. package/payload/lifecycle-kit/templates/upgrade.md +6 -37
  736. package/payload/queue-kit/README.md +33 -48
  737. package/payload/queue-kit/checks/check-deferred-board-tags.gate +3 -0
  738. package/payload/queue-kit/checks/check-queue-entry-budget.gate +2 -2
  739. package/payload/queue-kit/checks/check-queue-hygiene.gate +2 -2
  740. package/payload/queue-kit/checks/check-queue-prose-precondition.gate +1 -1
  741. package/payload/queue-kit/checks/check-queue-sections.gate +1 -1
  742. package/payload/queue-kit/checks/check-queue-slug-liveness.gate +2 -2
  743. package/payload/queue-kit/checks/check-queue-wrap.gate +2 -2
  744. package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -2
  745. package/payload/queue-kit/checks/check-tag-lead-line.gate +2 -2
  746. package/payload/queue-kit/checks/check-task-conservation.gate +1 -1
  747. package/payload/queue-kit/checks/check-task-names.gate +2 -2
  748. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/TASK-QUEUE.md +41 -0
  749. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/expect.txt +6 -0
  750. package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/widget-kit/README.md +3 -0
  751. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/TASK-QUEUE.md +39 -0
  752. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/expect.txt +1 -0
  753. package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/widget-kit/README.md +3 -0
  754. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +76 -31
  755. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +12 -4
  756. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.knobs +4 -0
  757. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +58 -19
  758. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +8 -4
  759. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.knobs +4 -0
  760. package/payload/queue-kit/gate-tests/check-queue-entry-budget.test.sh +124 -0
  761. package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +11 -1
  762. package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +2 -0
  763. package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +30 -11
  764. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +3 -1
  765. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/expect.txt +1 -0
  766. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/TASK-QUEUE.md +22 -6
  767. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +3 -1
  768. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +1 -1
  769. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +3 -1
  770. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.knobs +1 -0
  771. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +6 -2
  772. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +3 -3
  773. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/worktrees/page.md +4 -0
  774. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.knobs +1 -0
  775. package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +100 -0
  776. package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +3 -1
  777. package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +20 -6
  778. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +15 -8
  779. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.knobs +5 -0
  780. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +13 -6
  781. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.knobs +5 -0
  782. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +28 -7
  783. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +10 -2
  784. package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +30 -8
  785. package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -3
  786. package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +9 -0
  787. package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +20 -6
  788. package/payload/queue-kit/gate-tests/entry-history.test.sh +197 -0
  789. package/payload/queue-kit/gate-tests/queue-counts.test.sh +77 -73
  790. package/payload/queue-kit/gate-tests/queue-edges.test.sh +168 -87
  791. package/payload/queue-kit/gate-tests/queue-index.test.sh +30 -16
  792. package/payload/queue-kit/gate-tests/roadmap.test.sh +65 -58
  793. package/payload/queue-kit/templates/TASK-QUEUE.md +36 -23
  794. package/payload/queue-kit/templates/queue-config.knobs +1 -0
  795. package/payload/site-kit/README.md +26 -45
  796. package/payload/site-kit/checks/check-docs-cname-parity.gate +1 -1
  797. package/payload/site-kit/checks/check-docs-highlight-coverage.gate +4 -0
  798. package/payload/site-kit/checks/check-docs-liquid-parse.gate +3 -0
  799. package/payload/site-kit/checks/check-docs-render-fidelity.gate +3 -0
  800. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +1 -1
  801. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.knobs +2 -0
  802. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +2 -2
  803. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.knobs +2 -0
  804. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/docs/_layouts/default.html +11 -0
  805. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/expect.txt +4 -0
  806. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/highlight-tokens.list +7 -0
  807. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/site-config.knobs +3 -0
  808. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/docs/_layouts/default.html +14 -0
  809. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/expect.txt +1 -0
  810. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/highlight-tokens.list +7 -0
  811. package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/site-config.knobs +1 -0
  812. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/_layouts/default.html +4 -0
  813. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/span.md +3 -0
  814. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +2 -0
  815. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/_layouts/default.html +4 -0
  816. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/front.md +7 -0
  817. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/loop.md +5 -0
  818. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/plain.html +1 -0
  819. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/raw.md +3 -0
  820. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/search.json +4 -0
  821. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/expect.txt +1 -0
  822. package/payload/site-kit/gate-tests/check-docs-liquid-parse-parser.test.sh +62 -0
  823. package/payload/site-kit/gate-tests/check-docs-render-fidelity-batch.test.sh +40 -45
  824. package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +7 -4
  825. package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +7 -4
  826. package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +7 -4
  827. package/payload/site-kit/templates/site-health.yml +67 -4
  828. package/profiles.list +4 -5
  829. package/lib/common/digest.sh +0 -18
  830. package/lib/common/lock.sh +0 -75
  831. package/lib/common/profile.sh +0 -91
  832. package/lib/common/recipe.sh +0 -106
  833. package/lib/diff.sh +0 -66
  834. package/lib/doctor.sh +0 -164
  835. package/lib/init.sh +0 -428
  836. package/lib/uninstall.sh +0 -214
  837. package/lib/update.sh +0 -34
  838. package/payload/canon-kit/SPEC.md +0 -2443
  839. package/payload/canon-kit/checks/check-surface-duplication.sh +0 -106
  840. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +0 -6
  841. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +0 -6
  842. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +0 -10
  843. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +0 -10
  844. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +0 -6
  845. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +0 -6
  846. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +0 -8
  847. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +0 -8
  848. package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +0 -4
  849. package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +0 -4
  850. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +0 -8
  851. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +0 -5
  852. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +0 -5
  853. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +0 -6
  854. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +0 -6
  855. package/payload/canon-kit/lib/spec.sh +0 -560
  856. package/payload/canon-kit/smoke/install.sh +0 -58
  857. package/payload/canon-kit/smoke/violation.sh +0 -22
  858. package/payload/canon-kit/templates/canon-config.sh +0 -2
  859. package/payload/context-kit/SPEC.md +0 -1134
  860. package/payload/context-kit/bin/always-loaded.sh +0 -70
  861. package/payload/context-kit/bin/env-probe.sh +0 -142
  862. package/payload/context-kit/bin/md-index.sh +0 -80
  863. package/payload/context-kit/bin/md-section.sh +0 -63
  864. package/payload/context-kit/bin/pub-index.sh +0 -90
  865. package/payload/context-kit/bin/run-index-tests.sh +0 -91
  866. package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +0 -4
  867. package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +0 -12
  868. package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +0 -12
  869. package/payload/context-kit/index-tests/expected/toolfloor.txt +0 -23
  870. package/payload/context-kit/index-tests/toolfloor-cases.sh +0 -49
  871. package/payload/context-kit/lib/context.sh +0 -56
  872. package/payload/context-kit/lib/pub-lang/rust.sh +0 -26
  873. package/payload/context-kit/lib/pub-lang/ts.sh +0 -32
  874. package/payload/context-kit/lib/toolfloor.sh +0 -58
  875. package/payload/context-kit/smoke/agents-md.sh +0 -139
  876. package/payload/context-kit/smoke/install.sh +0 -64
  877. package/payload/context-kit/smoke/violation.sh +0 -21
  878. package/payload/context-kit/templates/context-config.sh +0 -2
  879. package/payload/delegation-kit/SPEC.md +0 -2078
  880. package/payload/delegation-kit/bin/run-budget-guard-tests.sh +0 -88
  881. package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +0 -97
  882. package/payload/delegation-kit/bin/run-trend-tests.sh +0 -63
  883. package/payload/delegation-kit/bin/run-usage-tests.sh +0 -226
  884. package/payload/delegation-kit/bin/usage-trend.sh +0 -120
  885. package/payload/delegation-kit/bin/usage-verdict.sh +0 -144
  886. package/payload/delegation-kit/bin/wait-probe.sh +0 -184
  887. package/payload/delegation-kit/gate-tests/subagent-stop-liveness.test.sh +0 -99
  888. package/payload/delegation-kit/lib/delegation.sh +0 -84
  889. package/payload/delegation-kit/smoke/install.sh +0 -83
  890. package/payload/delegation-kit/smoke/violation.sh +0 -16
  891. package/payload/delegation-kit/templates/agent-budget-guard.sh +0 -18
  892. package/payload/delegation-kit/templates/agent-dispatch-guard.sh +0 -61
  893. package/payload/delegation-kit/templates/delegation-config.sh +0 -6
  894. package/payload/delegation-kit/templates/statusline-usage.sh +0 -101
  895. package/payload/delegation-kit/templates/subagent-stop-liveness.sh +0 -56
  896. package/payload/delegation-kit/templates/usage-poller.sh +0 -67
  897. package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +0 -20
  898. package/payload/doctrine-kit/SPEC.md +0 -385
  899. package/payload/doctrine-kit/bin/install-doctrine.sh +0 -194
  900. package/payload/doctrine-kit/bin/stage-rules.sh +0 -51
  901. package/payload/doctrine-kit/lib/doctrine.sh +0 -29
  902. package/payload/doctrine-kit/smoke/install.sh +0 -203
  903. package/payload/doctrine-kit/smoke/violation.sh +0 -13
  904. package/payload/drift-kit/SPEC.md +0 -1187
  905. package/payload/drift-kit/bin/drift-report.sh +0 -155
  906. package/payload/drift-kit/bin/kfric.sh +0 -61
  907. package/payload/drift-kit/bin/overhead-meter.sh +0 -106
  908. package/payload/drift-kit/bin/stage-economics.sh +0 -465
  909. package/payload/drift-kit/kpis/kpi-always-loaded.sh +0 -39
  910. package/payload/drift-kit/kpis/kpi-amendment-age.sh +0 -33
  911. package/payload/drift-kit/kpis/kpi-deferred-age.sh +0 -46
  912. package/payload/drift-kit/kpis/kpi-gate-backlog.sh +0 -52
  913. package/payload/drift-kit/kpis/kpi-gate-runtime.sh +0 -31
  914. package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +0 -42
  915. package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +0 -21
  916. package/payload/drift-kit/kpis/kpi-overhead.sh +0 -44
  917. package/payload/drift-kit/kpis/kpi-price-table-age.sh +0 -68
  918. package/payload/drift-kit/kpis/kpi-prompt-friction.sh +0 -38
  919. package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +0 -74
  920. package/payload/drift-kit/kpis/kpi-settings-local.sh +0 -21
  921. package/payload/drift-kit/kpis/kpi-task-split.sh +0 -43
  922. package/payload/drift-kit/lib/drift.sh +0 -43
  923. package/payload/drift-kit/smoke/install.sh +0 -537
  924. package/payload/drift-kit/smoke/overhead-fixture.jsonl +0 -4
  925. package/payload/drift-kit/templates/drift-config.sh +0 -2
  926. package/payload/evidence-kit/SPEC.md +0 -740
  927. package/payload/evidence-kit/bin/diff-baseline.sh +0 -34
  928. package/payload/evidence-kit/bin/run-validate.sh +0 -124
  929. package/payload/evidence-kit/checks/check-producer-liveness.sh +0 -75
  930. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +0 -7
  931. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +0 -7
  932. package/payload/evidence-kit/lib/evidence.sh +0 -193
  933. package/payload/evidence-kit/smoke/install.sh +0 -59
  934. package/payload/evidence-kit/smoke/violation.sh +0 -8
  935. package/payload/evidence-kit/templates/evidence-config.sh +0 -2
  936. package/payload/gate-sdk/SPEC.md +0 -10872
  937. package/payload/gate-sdk/bin/gen-pre-commit.sh +0 -297
  938. package/payload/gate-sdk/bin/install-hooks.sh +0 -60
  939. package/payload/gate-sdk/bin/port-blockers.sh +0 -473
  940. package/payload/gate-sdk/bin/run-consumer-smoke.sh +0 -239
  941. package/payload/gate-sdk/bin/run-gate-tests.sh +0 -179
  942. package/payload/gate-sdk/bin/upgrade-smoke.sh +0 -236
  943. package/payload/gate-sdk/checks/check-action-run-shell.sh +0 -223
  944. package/payload/gate-sdk/checks/check-crate-arms.sh +0 -62
  945. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +0 -450
  946. package/payload/gate-sdk/checks/check-install-disposition.sh +0 -93
  947. package/payload/gate-sdk/checks/check-shellcheck.sh +0 -57
  948. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +0 -2
  949. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +0 -2
  950. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +0 -4
  951. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +0 -14
  952. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +0 -14
  953. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +0 -2
  954. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +0 -2
  955. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +0 -6
  956. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +0 -3
  957. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +0 -6
  958. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +0 -3
  959. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +0 -9
  960. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +0 -3
  961. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +0 -6
  962. package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +0 -10
  963. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +0 -5
  964. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +0 -5
  965. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +0 -5
  966. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +0 -5
  967. package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +0 -211
  968. package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +0 -112
  969. package/payload/gate-sdk/lib/consumer-smoke.sh +0 -69
  970. package/payload/gate-sdk/lib/declaration.sh +0 -59
  971. package/payload/gate-sdk/lib/inject.sh +0 -80
  972. package/payload/gate-sdk/smoke/install.sh +0 -171
  973. package/payload/gate-sdk/smoke/violation.sh +0 -13
  974. package/payload/guard-kit/SPEC.md +0 -1415
  975. package/payload/guard-kit/bin/compare-settings-allow.sh +0 -115
  976. package/payload/guard-kit/bin/run-guard-tests.sh +0 -110
  977. package/payload/guard-kit/bin/scan-prompts.sh +0 -166
  978. package/payload/guard-kit/bin/scratch-run.sh +0 -34
  979. package/payload/guard-kit/gate-tests/guard-read-path.test.sh +0 -52
  980. package/payload/guard-kit/lib/guard.sh +0 -1014
  981. package/payload/guard-kit/smoke/install.sh +0 -26
  982. package/payload/guard-kit/templates/bash-guard.sh +0 -20
  983. package/payload/guard-kit/templates/escalation-guard.sh +0 -27
  984. package/payload/guard-kit/templates/guard-config.sh +0 -8
  985. package/payload/guard-kit/templates/wakeup-guard.sh +0 -20
  986. package/payload/lifecycle-kit/SPEC.md +0 -2884
  987. package/payload/lifecycle-kit/bin/cite-survey.sh +0 -81
  988. package/payload/lifecycle-kit/bin/enter-stage.sh +0 -380
  989. package/payload/lifecycle-kit/bin/file-gap.sh +0 -101
  990. package/payload/lifecycle-kit/bin/file-survey.sh +0 -69
  991. package/payload/lifecycle-kit/bin/install-lifecycle.sh +0 -36
  992. package/payload/lifecycle-kit/bin/session-id.sh +0 -75
  993. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +0 -4
  994. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +0 -4
  995. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +0 -4
  996. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +0 -4
  997. package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +0 -100
  998. package/payload/lifecycle-kit/lib/stages.sh +0 -194
  999. package/payload/lifecycle-kit/smoke/install.sh +0 -434
  1000. package/payload/lifecycle-kit/smoke/violation.sh +0 -8
  1001. package/payload/lifecycle-kit/templates/lifecycle-config.sh +0 -2
  1002. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +0 -29
  1003. package/payload/queue-kit/SPEC.md +0 -1436
  1004. package/payload/queue-kit/bin/lesson-sink.sh +0 -28
  1005. package/payload/queue-kit/bin/queue-counts.sh +0 -35
  1006. package/payload/queue-kit/bin/queue-edges.sh +0 -78
  1007. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +0 -6
  1008. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +0 -6
  1009. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +0 -3
  1010. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +0 -3
  1011. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +0 -6
  1012. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +0 -6
  1013. package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +0 -215
  1014. package/payload/queue-kit/lib/queue.sh +0 -129
  1015. package/payload/queue-kit/smoke/install.sh +0 -25
  1016. package/payload/queue-kit/smoke/violation.sh +0 -8
  1017. package/payload/queue-kit/templates/queue-config.sh +0 -2
  1018. package/payload/site-kit/SPEC.md +0 -601
  1019. package/payload/site-kit/checks/check-docs-render-fidelity.sh +0 -242
  1020. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.sh +0 -7
  1021. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.sh +0 -7
  1022. package/payload/site-kit/lib/site.sh +0 -43
  1023. package/payload/site-kit/smoke/install.sh +0 -34
  1024. package/payload/site-kit/smoke/violation.sh +0 -20
  1025. /package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/{check-ported.gate → check-stage-entry.gate} +0 -0
@@ -0,0 +1 @@
1
+ # spec: lifecycle-kit/SPEC.md §Layout and configuration — the knob roster (every knob, its default) and the line grammar; the gate binary at `GATE_SDK_NATIVE_BIN` prints the defaults with `--emit knob-roster`; set only what you override
@@ -1,39 +1,10 @@
1
- The `release-sweep` skill — the deprecation disposition walk at a major
2
- release boundary. Not an iteration stage: it invokes no `enter-stage.sh`, stamps
3
- no `WORKFLOW-STATE.txt`, and can run in any session at a major. Exit condition:
4
- every deprecation marker in the tree has a disposition line stamped for this
5
- release, and the marked surfaces reflect the dispositions taken.
6
-
7
- Between majors, `check-deprecation-task` (canon-kit) already holds every
8
- deprecation marker bound to a live decommission task — this sweep forces the
9
- standing inventory to a decision at the boundary the deprecations were promised
10
- against, so a "remove after the next major" never silently rides into the major
11
- after that.
1
+ The `release-sweep` skill — the deprecation disposition walk at a major release boundary. Not an iteration stage: it invokes no `--enter-stage`, stamps no `WORKFLOW-STATE.txt`, and can run in any session at a major. Exit condition: every deprecation marker in the tree has a disposition line stamped for this release, and the marked surfaces reflect the dispositions taken.
12
2
 
13
3
  ## Session ritual
14
4
 
15
- 1. **Inventory the markers.** Walk every deprecation marker over the
16
- `CANON_KIT_DEPRECATION_MARKERS` roster (the same set the gate resolves and
17
- `kpi-deprecated-surface` trends). *<inventory-command: the step-1 inventory —
18
- the roster scan, or your linter's deprecation report.>*
19
- 2. **Force a disposition per entry**, one stamped line each into the release
20
- sweep's evidence file, the `check-lesson-disposition` contract shape at a
21
- release boundary — `<release> deprecation <disposition> <task-slug> — <the
22
- marker's lead prefix>`. The disposition set is **decommission** (remove the
23
- surface now and close its task this release), **carry-forward** (re-justify:
24
- the surface stays deprecated another cycle — the task stays live and the
25
- marker keeps pointing at it), or **un-deprecate** (the removal was reversed —
26
- delete the marker and close its task as won't-do). Clearing is not
27
- dispositioning: a marker whose promised-against major has *arrived* is a
28
- decommission or an explicit re-justification, never a silent carry.
29
- 3. **Apply the decommissions.** For each decommission, remove the surface and
30
- its marker in this release's changes, and move its decommission task to
31
- `Done`. A carry-forward leaves marker and task untouched; an un-deprecate
32
- deletes the marker and closes the task.
33
- 4. *<evidence-gate: the evidence path, the gate decision over the stamp file, and
34
- the reclaim trigger — the kit ships the disposition shape, not a gate over the
35
- evidence; name the stamp file's path and any gate you add.>*
5
+ 1. **Inventory the markers.** Walk every deprecation marker over the `CANON_KIT_DEPRECATION_MARKERS` roster (the same set the gate resolves and `kpi-deprecated-surface` trends). *<inventory-command: the step-1 inventory — the roster scan, or your linter's deprecation report.>*
6
+ 2. **Force a disposition per entry**, one stamped line each into the release sweep's evidence file, the `check-lesson-disposition` contract shape at a release boundary — `<release> deprecation <disposition> <task-slug> — <the marker's lead prefix>`. The disposition set is **decommission** (remove the surface now and close its task this release), **carry-forward** (re-justify: the surface stays deprecated another cycle — the task stays live and the marker keeps pointing at it), or **un-deprecate** (the removal was reversed — delete the marker and close its task as won't-do). Clearing is not dispositioning: a marker whose promised-against major has *arrived* is a decommission or an explicit re-justification, never a silent carry.
7
+ 3. **Apply the decommissions.** For each decommission, remove the surface and its marker in this release's changes, and move its decommission task to `Done`. A carry-forward leaves marker and task untouched; an un-deprecate deletes the marker and closes the task.
8
+ 4. *<evidence-gate: the evidence path, the gate decision over the stamp file, and the reclaim trigger — the kit ships the disposition shape, not a gate over the evidence; name the stamp file's path and any gate you add.>*
36
9
 
37
- The stamp file is operator evidence riding the release commit; nothing in the
38
- kit reads it. The two named slots hold your release-process content — the
39
- inventory command and the evidence-path/gate decision.
10
+ The stamp file is operator evidence riding the release commit; nothing in the kit reads it. The two named slots hold your release-process content — the inventory command and the evidence-path/gate decision.
@@ -1,95 +1,27 @@
1
- The `align` (spec-alignment) stage of an iteration. Cross-spec audit, then
2
- *<consistency-gate: your aggregate consistency gate — e.g. the full gate
3
- battery>* as one gate. Exit condition: no unresolved conflicts or terminology
4
- drift.
1
+ The `align` (spec-alignment) stage of an iteration. Cross-spec audit, then *<consistency-gate: your aggregate consistency gate — e.g. the full gate battery>* as one gate. Exit condition: no unresolved conflicts or terminology drift.
5
2
 
6
- **First step — stamp evidence.** Run lifecycle-kit's `bin/enter-stage.sh
7
- align`: it appends `<iteration> align <session-id> <date> <head>` to
8
- `.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the stamp
9
- proves invocation, not faithful execution), reading `<session-id>` from
10
- `bin/session-id.sh`
11
- (the newest transcript — never hand-picked), using `date +%F`, and refusing
12
- (writing nothing) if `check-stage-entry` is red. On a refusal, **do not force
13
- the entry** — escalate to the lead (where one exists and this is not a standalone
14
- session) and stop; a refused entry is a gate verdict to resolve at its source,
15
- never to override. That stamp *is* the
16
- transition — the last stamp is the stage cursor, so nothing flips and no queue
17
- write is involved. Commit the stamp on its own.
3
+ **First step — stamp evidence.** Run the lifecycle arm `--enter-stage align` on the gate binary `GATE_SDK_NATIVE_BIN` names: it appends `<iteration> align <session-id> <date> <head>` to `.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the stamp proves invocation, not faithful execution), reading `<session-id>` from the `--emit-session-id` arm (the newest transcript — never hand-picked), using `date +%F`, and refusing (writing nothing) if `check-stage-entry` is red. On a refusal, **do not force the entry** — escalate to the lead (where one exists and this is not a standalone session) and stop; a refused entry is a gate verdict to resolve at its source, never to override. That stamp *is* the transition — the last stamp is the stage cursor, so nothing flips and no queue write is involved. Commit the stamp on its own — unless the pre-flight valve admitted this entry, which rewrites the valve ledger in the same motion, so the two commit together (lifecycle-kit/SPEC.md §bin/enter-stage.sh).
18
4
 
19
5
  ## Trigger (align is trigger-gated)
20
6
 
21
- Run `align` only when one fires: (1) phase start, before the first
22
- implementation task; (2) a multi-component spec ambiguity surfaces during
23
- build; (3) this iteration's **authoring stage** (scope by default, or the
24
- dedicated authoring stage where the roster splits one out) authored an amendment
25
- changing ≥2 components' contracts. None firing → the prior stage advances
26
- directly to `build`
27
- (align skipped; the advance still needs user approval per the stage-line
28
- rule). The arriving stage stamps its own entry as its first step
29
- (above).
7
+ Run `align` only when one fires: (1) phase start, before the first implementation task; (2) a multi-component spec ambiguity surfaces during build; (3) this iteration's **authoring stage** (scope by default, or the dedicated authoring stage where the roster splits one out) authored an amendment changing ≥2 components' contracts. None firing → the prior stage advances directly to `build` (align skipped; the advance still needs user approval per the stage-line rule). The arriving stage stamps its own entry as its first step (above).
30
8
 
31
- Trigger 3 is mechanized at build entry: `check-stage-entry` assertion C blocks
32
- the build entry when the on-disk amendments carry a cross-component signal and
33
- no `<iter> align` stamp exists. To skip the audit anyway, the user must
34
- explicitly rule it unwarranted and a `<iter> align-waived <session> <date> <head>`
35
- line is recorded in `.workflow/WORKFLOW-STATE.txt` — never self-issued by the
36
- entering build session (lifecycle-kit/SPEC.md §check-stage-entry).
9
+ Trigger 3 is mechanized at build entry: `check-stage-entry` assertion C blocks the build entry when the on-disk amendments carry a cross-component signal and no `<iter> align` stamp exists. To skip the audit anyway, the user must explicitly rule it unwarranted. The dispatcher then declares the waiver with `--enter-stage --dispatch <stage> --waive <the ruling>`, and the build session's own entry records it. The entering build session never issues it (lifecycle-kit/SPEC.md §check-stage-entry).
37
10
 
38
11
  ## Session ritual
39
12
 
40
- *<audit-fanout: your audit fan-out: sweep the spec corpus for missing fields,
41
- naming inconsistencies, undocumented contracts, contradictions; name the
42
- entry grammar any backfill task filed from a finding is written against.>* Resolve every
43
- finding in the affected spec or amendment — never ad-hoc, never deferred.
44
- When both could hold it, **the surviving surface wins**: an amendment is deleted
45
- at merge, so a correction written into one and deleted in the same commit that
46
- lands it leaves no trace in history at all — the diff shows a file added and
47
- removed, and the reasoning is unrecoverable by any later reader. Land it in the
48
- canonical spec the amendment merges into, and let the amendment cite it.
49
- Commit all spec changes in a single `chore:` commit.
13
+ *<audit-fanout: your audit fan-out: sweep the spec corpus for missing fields, naming inconsistencies, undocumented contracts, contradictions; name the entry grammar any backfill task filed from a finding is written against.>* Resolve every finding in the affected spec or amendment — never ad-hoc, never deferred. When both could hold it, **the surviving surface wins**: land it in the canonical spec the amendment merges into, and let the amendment cite it. Commit all spec changes in a single `chore:` commit.
50
14
 
51
- **A sweep is a survey — check the record before you buy one, and file the one
52
- you buy.** The audit fan-out above is the most expensive survey any stage
53
- dispatches. Before dispatching it, read the survey record and run the witness on
54
- any block whose heading already answers your question; afterwards, file the
55
- finding a later stage will want. Both halves, and what a passing witness
56
- licenses you to cite, are lifecycle-kit/SPEC.md §The survey record.
15
+ **A sweep is a survey — check the record before you buy one, and file the one you buy.** The audit fan-out above is the most expensive survey any stage dispatches. Before dispatching it, read the survey record and run the witness on any block whose heading already answers your question; afterwards, file the finding a later stage will want. Both halves, and what a passing witness licenses you to cite, are lifecycle-kit/SPEC.md §The survey record.
57
16
 
58
- **Audit the amendment against itself before auditing it against the tree.** Two
59
- defects are visible on the amendment alone and both survive a green battery. An
60
- author-stated count ("three things and no fourth") is an assertion about the
61
- deliverable, so check it against what the deltas actually mandate rather than
62
- against the sentence it heads. And every `## Existing sections updated` entry
63
- must name the delta that owns it (canon-kit/templates/SPEC-amendment.md).
17
+ **Audit the amendment against itself before auditing it against the tree.** Two defects are visible on the amendment alone and both survive a green battery. An author-stated count ("three things and no fourth") is an assertion about the deliverable, so check it against what the deltas actually mandate rather than against the sentence it heads. And every `## Existing sections updated` entry must name the delta that owns it (canon-kit/templates/SPEC-amendment.md).
64
18
 
65
- **A grammar the amendment states about a tool's behaviour is run against that
66
- tool.** An amendment modelling something outside itself — a filter language, an
67
- option parser, a file format — is a *claim about a program*, and reading it is
68
- not testing it. One invocation settles it. Attested: an amendment specified a
69
- pin-path grammar admitting a leading bracket step, the gate refused any path not
70
- opening with `.`, and the tool being modelled read a leading `["k"]` as an array
71
- literal rather than an index — a three-way disagreement that passed authoring and
72
- this audit and was caught by the first differential run at build.
19
+ **A claim about an existing program is checked against that program** — a modelled grammar, a check a gate applies, a refusal an arm makes: one invocation, or the implementing line where none is cheap. If the named program lacks the behaviour, find the one that holds it. Run every `**Inferred, not run:**` marker's command, in an amendment or an active queue entry, correct the passage to what it returned and delete the marker, or rewrite it to the cannot-run form.
73
20
 
74
- **The `## Existing sections updated` roster is checked from the tree, not from
75
- the amendment.** A roster entry with no delta is visible on the document; a
76
- *surface with no entry* is not, because the evidence is in the tree. When a delta
77
- replaces a literal — a version, a floor, a policy phrase — grep the tree for the
78
- old one and reconcile every survivor against the roster. Attested twice in one
79
- iteration, both times a documentation surface reading as commentary that the
80
- grep found and the amendment did not name (`amendment-roster-omission-detection`
81
- owns whether any of this is gateable).
21
+ **The `## Existing sections updated` roster is checked from the tree, and the half that stays yours is the larger one.** A roster entry with no delta is visible on the document; a *surface with no entry* is not, because the evidence is in the tree. The **literal-substitution** half of that is mechanized: an amendment declares what it retires in its `## Retired spellings` block and the battery re-runs each declaration against the tracked tree, reconciling every survivor against the roster — so do not hand-grep a replaced literal, run the gate. What is left is the residue no scanner reaches: a stale prose sentence, a semantic over-claim, a cross-reference dangled by a deletion rather than a substitution, and the **renumber** case, where the retired and the replacing spellings are byte-identical and telling a stale citation from a correct one is a reading of the site's subject matter. That case is routed rather than gated — a cross-corpus citation naming its referent instead of its number has no numeric relation left to decay.
82
22
 
83
- **Every amendment's "wires cleanly against the current tree" is a hypothesis,
84
- and the align audit is its first test.** Authoring a producer silently asserts
85
- the consumer's read side already matches — it rarely does. Verify every
86
- cross-component literal *at the read site*: grep the consumer's actual match
87
- arms, don't trust the amendment's prose. A **negative** existence claim ("no
88
- such harness/helper/gate exists yet") is the audit's weakest evidence shape: a
89
- literal-string grep proves only that the spellings you guessed are absent, and
90
- the thing you are about to build often already exists under a spelling you did
91
- not anticipate. Before asserting absence, search the *concept* two ways — the
92
- symbol under its plausible spellings **and** the directory that would own it —
93
- or write the claim bounded ("no match for X") rather than absolute. When scope authored a new gate, the
94
- audit is that gate's first real run — the drift it surfaces is a backfill
95
- worklist to land before build, not a reason the gate is wrong.
23
+ **Every amendment's "wires cleanly against the current tree" is a hypothesis, and the align audit is its first test.** Verify every cross-component literal *at the read site*: grep the consumer's actual match arms, don't trust the amendment's prose. A **negative** claim — "no such harness/helper/gate exists yet", or an amendment's list of what it keeps or leaves untouched, which bounds nothing — is the audit's weakest evidence shape: a literal-string grep proves only that the spellings you guessed are absent, and the thing you are about to build often already exists under a spelling you did not anticipate. Before asserting absence, search the *concept* two ways — the symbol under its plausible spellings **and** the directory that would own it — or write the claim bounded ("no match for X") rather than absolute. When scope authored a new gate, the audit is that gate's first real run — the drift it surfaces is a backfill worklist to land before build, not a reason the gate is wrong.
24
+
25
+ **Then read your successor's entry.** After your last commit, run `--enter-stage --simulate <stage>` for the build stage. It writes nothing (lifecycle-kit/SPEC.md §bin/enter-stage.sh). An exit of 1 relays a refusal: fix one your own work caused and run the read again, and carry any other into your report verbatim.
26
+
27
+ **Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line before you report.
@@ -1,101 +1,33 @@
1
- The `build` (implementation) stage of an iteration. Implement the queued work
2
- in queue order. Exit condition: task queue empty for this iteration.
3
-
4
- Build is **mandatory every iteration** and processes **both feature and debt
5
- units**: it merges a promoted feature's amendment into the canonical spec and
6
- makes a debt unit's direct edits (a debt unit skips the authoring stage
7
- entirely), and it **owns the task-completion Done move** for either kind. The
8
- authoring stage authors amendments only — it makes no direct spec/code edit and
9
- moves nothing to Done.
10
-
11
- **Step 0 — audit-readiness recheck (before the stamp).** The
12
- entry stamp re-fires the state-coupled gates but **not** your
13
- spec-consistency battery (it couples the spec corpus, not the evidence file), so a
14
- build session can enter on an unverified align corpus. Close that hop:
15
- **iff** an `align` stamp for the current iteration exists in
16
- `.workflow/WORKFLOW-STATE.txt`, run *<consistency-gate: your aggregate
17
- consistency gate>* and refuse to stamp if it is red — fix the drift first (or return to
18
- `align`). Absent an align stamp, align did not run this iteration; build's
19
- prior stage is scope, whose exit the entry already re-fires — **except** when
20
- `check-stage-entry` assertion C fires: a cross-component amendment signal with
21
- no align stamp blocks the entry until the iteration carries either an align
22
- stamp or an explicit `<iter> align-waived <session> <date> <head>` waiver line,
23
- written **only on the user's explicit ruling** — never self-issued by this
24
- entering session.
25
-
26
- **First step — stamp evidence.** Run lifecycle-kit's
27
- `bin/enter-stage.sh build`: it appends `<iteration> build <session-id> <date> <head>`
28
- to `.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the
29
- stamp proves invocation, not faithful execution), reading `<session-id>` from
30
- `bin/session-id.sh`
31
- (the newest transcript — never hand-picked), using `date +%F`, and refusing
32
- (writing nothing) if `check-stage-entry` is red. On a refusal, **do not force
33
- the entry** — escalate to the lead (where one exists and this is not a standalone
34
- session) and stop; a refused entry is a gate verdict to resolve at its source,
35
- never to override. That stamp *is* the
36
- transition — the last stamp is the stage cursor, so nothing flips and no queue
37
- write is involved. Commit the stamp on its own.
38
-
39
- Build runs one fresh session per task: a fresh session rehydrates the
40
- governing docs + queue state at full fidelity from disk, where an in-session
41
- summary would lossily erode the approved plan and re-derived premises. Prefer
42
- a session reset at a task boundary; reach for mid-task summarization only as
43
- a fallback before a commit, never as the routine per-task reset.
44
-
45
- **Every session still stamps** — re-run `bin/enter-stage.sh build` each
46
- session: it appends a fresh `<iter> build <session-id> <date> <head>` line with this
47
- session's id, so WORKFLOW-STATE keeps the per-session audit trail
48
- (`check-stage-evidence` tolerates multiple `build` stamps). A sibling stamp
49
- naming `build` leaves the cursor where it already is, so there is no
50
- once-per-stage write to coordinate — only a re-run within one session that
51
- already stamped is reported as an idempotent no-op. Prefer committing the new
52
- stamp standalone when the task will land as several commits, so the evidence
53
- is durable rather than sitting uncommitted across a long session.
1
+ The `build` (implementation) stage of an iteration. Implement the queued work in queue order. Exit condition: task queue empty for this iteration.
2
+
3
+ Build is **mandatory every iteration** and processes **both feature and debt units**: it merges a promoted feature's amendment into the canonical spec and makes a debt unit's direct edits (a debt unit skips the authoring stage entirely), and it **owns the task-completion Done move** for either kind. The authoring stage authors amendments only — it makes no direct spec/code edit and moves nothing to Done.
4
+
5
+ **Step 0 — audit-readiness recheck (before the stamp).** The entry stamp re-fires the state-coupled gates but **not** your spec-consistency battery (it couples the spec corpus, not the evidence file), so a build session can enter on an unverified align corpus. Close that hop: **iff** an `align` stamp for the current iteration exists in `.workflow/WORKFLOW-STATE.txt`, run *<consistency-gate: your aggregate consistency gate>* and refuse to stamp if it is red — fix the drift first (or return to `align`). Absent an align stamp, align did not run this iteration; build's prior stage is scope, whose exit the entry already re-fires — **except** when `check-stage-entry` assertion C fires: a cross-component amendment signal with no align stamp blocks the entry until the iteration carries either an align stamp or an explicit `<iter> align-waived <session> <date> <head>` waiver line, declared by the dispatcher **only on the user's explicit ruling** with `--enter-stage --dispatch <stage> --waive <the ruling>` and recorded by the entry that consumes it — never self-issued by this entering session.
6
+
7
+ **First step — stamp evidence.** Run the lifecycle arm `--enter-stage build` on the gate binary `GATE_SDK_NATIVE_BIN` names: it appends `<iteration> build <session-id> <date> <head>` to `.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the stamp proves invocation, not faithful execution), reading `<session-id>` from the `--emit-session-id` arm (the newest transcript — never hand-picked), using `date +%F`, and refusing (writing nothing) if `check-stage-entry` is red. On a refusal, **do not force the entry** — escalate to the lead (where one exists and this is not a standalone session) and stop; a refused entry is a gate verdict to resolve at its source, never to override. That stamp *is* the transition — the last stamp is the stage cursor, so nothing flips and no queue write is involved. Commit the stamp on its own — unless the pre-flight valve admitted this entry, which rewrites the valve ledger in the same motion, so the two commit together (lifecycle-kit/SPEC.md §bin/enter-stage.sh).
8
+
9
+ Build runs one fresh session per task. Prefer a session reset at a task boundary; reach for mid-task summarization only as a fallback before a commit, never as the routine per-task reset.
10
+
11
+ **Every session still stamps** — re-run `--enter-stage build` on the gate binary `GATE_SDK_NATIVE_BIN` names each session: it appends a fresh `<iter> build <session-id> <date> <head>` line with this session's id, so WORKFLOW-STATE keeps the per-session audit trail (`check-stage-evidence` tolerates multiple `build` stamps). The entry is also where this session's journal path comes from; there is no other source. A sibling stamp naming `build` leaves the cursor where it already is, so there is no once-per-stage write to coordinate — only a re-run within one session that already stamped is reported as an idempotent no-op. Prefer committing the new stamp standalone when the task will land as several commits, so the evidence is durable rather than sitting uncommitted across a long session.
54
12
 
55
13
  ## Session ritual
56
14
 
57
- *<ritual: your build ritual: pick the first unblocked task; read the spec for
58
- every component the task touches and merge its amendments into the canonical
59
- spec on completion; implement exactly what the spec describes — no features
60
- beyond it; write tests as you go; present a plan for approval before code where
61
- your process requires it; name your amendment-merge procedure owner and the
62
- queue-entry grammar the task-completion move writes against.>*
63
-
64
- Build-time question triage — who rules, and where the ruling lives: a
65
- question *within the amendment's envelope* (calibration, mechanics) is ruled
66
- in-session and written into the spec text being merged — a ruling that lives
67
- only in conversation evaporates. A *change to the envelope* (narrowing or
68
- widening asserted behavior, user-facing semantics) stops and surfaces to the
69
- user — never pick a "conservative alternative" silently. A *cross-component
70
- causal gap* is not a TODO: stop, resolve it this session, update the spec.
71
-
72
- **Don't re-buy the roster the stage before you already bought.** Where
73
- implementing a task sends you across a corpus — every call site of a helper,
74
- every spec citing a name — read the survey record first: a block whose heading
75
- answers your question, whose corpus is unmoved since its recorded rev and whose
76
- oracle still returns the same verdict, is cited rather than re-surveyed, and one
77
- whose witness fails narrows the dispatch to what moved. File the surveys you buy
78
- (lifecycle-kit/SPEC.md §The survey record).
79
-
80
- **Declare a gate you land or tighten, in the unit that lands it.** A unit that
81
- lands a new gate or makes an existing one stricter appends that gate's bare name
82
- to the tightened-gates declaration surface,
83
- `<workflow-dir>/tightened-gates.txt` (gate-sdk/SPEC.md §upgrade-smoke), in the
84
- same commit. Build is the only stage that knows what it tightened at the moment
85
- it tightens it, so the declaration is written from knowledge rather than
86
- reconstructed later from a red — and an assertion that discovers its own
87
- allowed-red set from the gate it was supposed to check is its own trigger. The
88
- surface accumulates across the iterations batched into one release; the release
89
- step composes the note's Tightened-gates section from it and drains it at the
90
- tag, so nothing here loads the release runbook. Only gates a consumer's vendored
91
- tree can actually run are declared: a gate living solely in your own gates
92
- directory never reaches a vendored tree and is not part of any release's
93
- allowed-red set.
94
-
95
- **Run the system; don't reason about it** — when a running system is
96
- reachable, reproduce first, read second. Recorded evidence rots: a static
97
- trace in a task body is a dated hypothesis to re-verify, not a premise. A
98
- change carrying an artifact surface — a change whose real output is a deployed
99
- or generated artifact — names that surface and exercises the artifact
100
- deployment-faithfully before the stage exits; a green battery is tree-correct,
101
- not artifact-correct (Oracle-first).
15
+ *<ritual: your build ritual: pick the first unblocked task; read the spec for every component the task touches and merge its amendments into the canonical spec on completion; implement exactly what the spec describes — no features beyond it; write tests as you go; present a plan for approval before code where your process requires it; name your amendment-merge procedure owner and the queue-entry grammar the task-completion move writes against.>*
16
+
17
+ Build-time question triage — who rules, and where the ruling lives: a question *within the amendment's envelope* (calibration, mechanics) is ruled in-session and written into the spec text being merged — a ruling that lives only in conversation evaporates. A *change to the envelope* (narrowing or widening asserted behavior, user-facing semantics) stops and surfaces to the user — never pick a "conservative alternative" silently. A *cross-component causal gap* is not a TODO: stop, resolve it this session, update the spec.
18
+
19
+ **A defect or redundancy you find mid-build owes its catcher** — read the rule body before the fix lands (doctrine-kit/DOCTRINE.md, Enforcement-first).
20
+
21
+ **Instruction-surface edits carry the instruction only.** Grounds → the mechanism's owning section, same commit; history → the commit message (doctrine-kit/DOCTRINE.md, Content-tiering / SSOT).
22
+
23
+ **Don't re-buy the roster the stage before you already bought.** Where implementing a task sends you across a corpus — every call site of a helper, every spec citing a name — read the survey record first: a block whose heading answers your question, whose corpus is unmoved since its recorded rev and whose oracle still returns the same verdict, is cited rather than re-surveyed, and one whose witness fails narrows the dispatch to what moved. File the surveys you buy (lifecycle-kit/SPEC.md §The survey record).
24
+
25
+ **An amendment's roster is a floor, never the reach.** Before the merge counts as complete, re-derive every roster it carries (update targets, callers, readers) against the tree. Grep each name the change moves or retires over the tracked tree without silencing stderr. Ask what consumes the changed behaviour without spelling any of those names. Then run the battery and the touched kit's fixture suite. Land every site the roster missed in the same unit as in-envelope work, and name the missed sites in the commit message. Decline a rostered target only when the surface already says what its citing delta needs from it, naming in the commit message the target, that need and the passage that already meets it. A surface lacking what the delta needs, a missing passage included, is a missed site you land in this unit. Never write an edit a met need does not call for, nor drop a target silently.
26
+
27
+ **Declare what a vendoring consumer will meet, in the unit that lands it.** A unit that lands or tightens a gate, renames or removes a knob, or removes a kit tool or changes what a kit script, template or default does appends one bullet to the matching section of the release declaration surface, `<workflow-dir>/release-declarations.md` (gate-sdk/SPEC.md §upgrade-smoke), in the same commit, written as the release note's bullet: the lead token that section takes, then what moved and what the consumer must do. The surface accumulates across the iterations batched into one release; the release step composes the note from it and drains it at the tag, so nothing here loads the release runbook. Only what ships inside a kit is declared.
28
+
29
+ **Run the system; don't reason about it** — when a running system is reachable, reproduce first, read second. Recorded evidence rots: a static trace in a task body is a dated hypothesis to re-verify, not a premise. An amendment passage or active queue entry marked `**Inferred, cannot run before build:**` is run as soon as its subject exists, before the delta resting on it lands, and the merge carries what it returned. A change carrying an artifact surface — a change whose real output is a deployed or generated artifact — names that surface and exercises the artifact deployment-faithfully before the stage exits; a green battery is tree-correct, not artifact-correct (Oracle-first). An entry carrying `[observed-by:]`, or whose oracle is a remote run, is complete only when its run is read: after its landing commit, run close's push precondition, push under the entry's `**Push need**` line, wait in-turn for the run, and read it before the Done move (lifecycle-kit/SPEC.md §The state machine). A push no such line names changes the set's push need: escalate it before spending it.
30
+
31
+ **Then read your successor's entry.** After your last commit, run `--enter-stage --simulate <stage>` for the drain stage, when your batch's Done moves emptied the active sections — a batch that leaves work active skips the read, since that entry refuses on active work by design and the next batch re-enters this stage. It writes nothing (lifecycle-kit/SPEC.md §bin/enter-stage.sh). An exit of 1 relays a refusal: fix one your own work caused and run the read again, and carry any other into your report verbatim.
32
+
33
+ **Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line before you report.
@@ -1,176 +1,27 @@
1
- The `close` stage of an iteration. Harvest lessons, housekeep, optionally
2
- merge. Exit condition: Done and Lessons Learned sections cleared (harvestable
3
- lessons promoted first).
1
+ The `close` stage of an iteration. Harvest lessons, housekeep, optionally merge. Exit condition: Done and Lessons Learned sections cleared (harvestable lessons promoted first).
4
2
 
5
- **First step — stamp evidence.** Run lifecycle-kit's `bin/enter-stage.sh
6
- close`: it appends `<iteration> close <session-id> <date> <head>` to
7
- `.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the stamp
8
- proves invocation, not faithful execution), reading `<session-id>` from
9
- `bin/session-id.sh`
10
- (the newest transcript — never hand-picked), using `date +%F`, and refusing
11
- (writing nothing) if `check-stage-entry` is red. On a refusal, **do not force
12
- the entry** — escalate to the lead (where one exists and this is not a standalone
13
- session) and stop; a refused entry is a gate verdict to resolve at its source,
14
- never to override. That stamp *is* the
15
- transition — the last stamp is the stage cursor, so nothing flips and no queue
16
- write is involved. Commit the stamp on its own.
3
+ **First step — stamp evidence.** Run the lifecycle arm `--enter-stage close` on the gate binary `GATE_SDK_NATIVE_BIN` names: it appends `<iteration> close <session-id> <date> <head>` to `.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the stamp proves invocation, not faithful execution), reading `<session-id>` from the `--emit-session-id` arm (the newest transcript — never hand-picked), using `date +%F`, and refusing (writing nothing) if `check-stage-entry` is red. On a refusal, **do not force the entry** — escalate to the lead (where one exists and this is not a standalone session) and stop; a refused entry is a gate verdict to resolve at its source, never to override. That stamp *is* the transition — the last stamp is the stage cursor, so nothing flips and no queue write is involved. Commit the stamp on its own — unless the pre-flight valve admitted this entry, which rewrites the valve ledger in the same motion, so the two commit together (lifecycle-kit/SPEC.md §bin/enter-stage.sh).
17
4
 
18
5
  ## Session ritual
19
6
 
20
- **Where close's own captures file.** Close never writes the active queue
21
- sections — promoting a unit into them is scope's. Every finding close itself
22
- captures files instead as a Deferred `[design-pending]` entry for a later scope
23
- to promote: a lesson turned task, a drained gap, a housekeeping or triage
24
- finding, or a dispatch's "capture as debt". The active sections must be empty
25
- at the drain boundary, so a finding mis-filed into one is caught only later as
26
- a red `check-stage-entry` at the next iteration's entry; filing to Deferred
27
- keeps the boundary clean (lifecycle-kit/SPEC.md §check-stage-entry owns the
28
- deferred-filing model for ruled-but-unpromoted work).
7
+ **Where close's own captures file.** Close never writes the active queue sections — promoting a unit into them is scope's. Every finding close itself captures files instead as a Deferred entry for a later scope to promote: a lesson turned task, a drained gap, a housekeeping or triage finding, or a dispatch's "capture as debt". The active sections must be empty at the drain boundary, so a finding mis-filed into one is caught only later as a red `check-stage-entry` at the next iteration's entry; filing to Deferred keeps the boundary clean (lifecycle-kit/SPEC.md §check-stage-entry owns the deferred-filing model for ruled-but-unpromoted work). Every filing (a drain →promote too) runs the owner lookup first and records it in the commit message; each claim it did not run takes the inferred marker (§The committed gap inbox).
29
8
 
30
- **The survey record is not a close surface.** It carries no disposition
31
- obligation and blocks no boundary — the next first-stage entry truncates it,
32
- and that is the whole reclaim (lifecycle-kit/SPEC.md §The survey record). Close
33
- owes it exactly one thing: a survey close *buys* while triaging is filed like
34
- any other, so a finding worth an iteration's carry does not die with this
35
- session.
9
+ **The survey record is not a close surface.** It carries no disposition obligation and blocks no boundary — the next first-stage entry truncates it, and that is the whole reclaim (lifecycle-kit/SPEC.md §The survey record). Close owes it exactly one thing: a survey close *buys* while triaging is filed like any other, so a finding worth an iteration's carry does not die with this session.
36
10
 
37
- 1. **Process Lessons Learned** → durable rules or debt tasks, then clear the
38
- section. **Give each entry an explicit disposition before clearing, and
39
- stamp it** — one line per entry into `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE`
40
- (`<iteration> lesson <kind> <ref> — <lead-line prefix>`), the record
41
- `check-lesson-disposition` reads when the entry leaves the queue (the
42
- stamp, not the commit body, is the mechanically-decidable evidence — the
43
- pre-commit battery has no commit message yet). The disposition set is
44
- →rule (name the file + section; prefer a stage-local skill file over an
45
- always-loaded doc for a stage-local procedure), →task (name the new slug),
46
- →harvest (a lesson carrying a configured harvest tag on its lead line —
47
- route its *body* to the sink this skill names for that tag, below), or
48
- →discard (state why it needs no durable home — a lesson that is private
49
- rule content discards to the consumer's local-only private brief, if one
50
- exists, rather than any tracked surface). Clearing is not
51
- processing: a lesson naming a concrete *unfixed gap* must become a task,
52
- not evaporate. When a lesson claims it was "already filed under <slug>",
53
- verify the target task's **body** actually carries the specific finding
54
- before dispositioning →task — the slug merely existing is not enough.
55
- Gap generalization, per lesson recording drift no check caught: name the
56
- check class that should have caught it, then either file the missing
57
- check as a deferred task or state in one line why no scanner is
58
- buildable — the disposition is not complete without one of the two.
59
- Lesson-vs-task litmus (holds at filing time in any stage, not just here):
60
- if the deliverable and its done-state are nameable now, it is a task —
61
- file it in the deferred section directly, never stage it in Lessons where
62
- it waits a stage and risks →discard; Lessons is for observations about
63
- how the work should be done, whose durable home (rule vs task vs nothing)
64
- genuinely needs this stage's call.
65
- *<harvest-routing: harvest routing table: each `QUEUE_KIT_LESSON_TAGS` tag →
66
- the sink file its body appends to, plus the sink's reclaim path (a gitignored
67
- sink needs a named trigger that empties it — the runtime-artifact lifecycle
68
- rule).>*
69
- 2. **Drain the gap inbox** (`LIFECYCLE_KIT_GAP_INBOX_FILE`,
70
- §The committed gap inbox) → disposition every `- <date> — <gap>` bullet,
71
- then **truncate the inbox to its `# contract:` header**. The disposition set
72
- is →promote (file a deferred `[design-pending]` queue entry for the gap),
73
- →fix (resolve it inline this session), or →discard (state why in the close
74
- commit message — the bullet's own prose is the disposition body). The date
75
- feeds the staleness read (an aged bullet is a signal, not a free pass).
76
- Draining is not deleting: a bullet naming a concrete unfixed gap must become a
77
- task or a fix, not evaporate — the same clearing-is-not-processing rule as
78
- Lessons.
79
- **Re-verify before dispositioning.** A bullet's prose is the filer's claim, not
80
- an established fact: capture is deliberately frictionless, so nothing upstream
81
- checked it and a bullet can assert a mechanism its filer inferred rather than
82
- ran. Per bullet, name the claim the disposition turns on and the command that
83
- establishes it, run that command, and disposition against what it returned.
84
- Record the outcome in the close commit message beside the bullet's disposition
85
- — which bullets were re-verified and what fell — so a corrected premise is
86
- visible rather than silently absorbed. A claim no cheap command settles is
87
- dispositioned *as a claim*: say so, and let the promoted entry carry the
88
- unverified premise openly (§The committed gap inbox rules why this sits at the
89
- drain and not at filing time).
90
- The next iteration's first-stage entry refuses a non-empty inbox **when this
91
- stage was skipped** (§bin/enter-stage.sh), so an undrained gap blocks the
92
- boundary rather than crossing it silently.
93
- **A finding your own later steps generate postdates this drain, and it routes
94
- to the inbox like any other.** The audits, the lesson disposition, the
95
- staleness read and the release disposition all run after this step, so what
96
- they turn up has no drainer left in this iteration. File it (`bin/file-gap.sh`)
97
- and let it be carried: the next first-stage entry admits it and takes it as
98
- that session's intake (§The committed gap inbox). Do **not** back-date it into
99
- a drain that has already run — a second pass over an inbox your own later
100
- steps keep refilling is the loop that shape was rejected for.
101
- **Judge the recurrence, in addition to the disposition — you are the judge,
102
- and nothing upstream ruled.** That framing is the **general** contract rather
103
- than this stage's local one — every session that judges a recurrence is obliged
104
- to stamp it, and this drain is only its mechanized instance (§The committed gap
105
- inbox owns the rule and what a stamp outside a drain owes instead). Your
106
- obligation here is undiminished by that reach.
107
- A slug appearing in a bullet is an *input*, never
108
- a verdict; the question is whether the finding **re-occurred** or is merely
109
- being cited, corrected, or argued against, and the bullet's prose is your
110
- grounds (the filer was asked at capture to write the claim there). State the
111
- call in the close commit message beside the bullet's disposition — a
112
- **declined** match stated as explicitly as a stamped one, since an unstated
113
- decline is indistinguishable from an unread bullet. On a judged recurrence,
114
- append the bullet's date to that entry's `recurrence:` declaration (creating
115
- the line when absent), **in this same queue-writing commit** — never *instead
116
- of* the bullet's own disposition. That same-commit rule is load-bearing rather
117
- than housekeeping: the declaration is no longer re-derivable, so this commit
118
- *is* the audit artifact, carrying the judgment beside the prose it was made
119
- from. It is idempotent per (slug, date): a slug already carrying today's date
120
- gains nothing. A slug that resolves only in the done section is not a
121
- recurrence — the finding recurred after its fix landed, which is a new defect,
122
- and it files as one.
123
- 3. **Sweep the inbound triage surfaces** — run
124
- `bash gate-sdk/bin/run-gates.sh --emit close-surfaces` and
125
- disposition every row (§The close-surface roster). The roster is derived, not
126
- enumerated here or in the binding below: a `forced=` row has a structural
127
- forcing function and cannot be skipped silently; an `advisory` row may be
128
- skipped, but the skip is a judgment to state, not an omission to leave
129
- invisible. An `(undeclared)` row is a capture surface nobody declared — file
130
- the missing declaration rather than reading past it.
131
- *<housekeeping: your housekeeping sweeps beyond the roster: deprecation scan,
132
- gate-runtime budget check, backlog-aging / premise-rot review, and the
133
- per-surface triage procedures the roster's rows route to.>*
134
- 4. **Clear Done.**
135
- 5. Review top-level docs for staleness (*is it still true?*). Same
136
- gap-generalization obligation as step 1, per staleness actually found:
137
- name the check class that should have caught it, and file the missing
138
- check as a deferred task or state in one line why no scanner is
139
- buildable — a silent fix forfeits the check.
140
- 6. **Runtime-artifact lifecycle check** — any gitignored/runtime artifact
141
- introduced this iteration (log, cache, scratch dir) has a named cleanup
142
- trigger: a write-path needs a paired reclaim-path. For a workflow-directory
143
- artifact the roster already answers it: the `reclaim=` field is that named
144
- trigger, and `check-close-surfaces` blocks a capture-tier declaration without
145
- one. What stays a judgment here is the artifact *outside* that directory.
146
- 7. **Release disposition** — run after the surface-mutating steps above and
147
- **before** the brevity pass (the disposition note is itself such a write).
148
- Every close dispositions the iteration at the release boundary: read the
149
- consumer's release policy (the `release-policy` slot below) and either
150
- execute its release procedure or stamp an explicit no-release line. Silence
151
- is not a disposition — a close that says nothing about release is incomplete.
152
- Stamp one line into the consumer-named disposition-evidence file:
153
- `<iteration> release <version|none|deferred:<version>> — <one-line basis>`
154
- (the `check-lesson-disposition` contract shape at the release boundary, the
155
- same lineage release-sweep's stamp follows) — `<version>` is the tag applied,
156
- `none` states the both-None (or consumer-equivalent) outcome, and
157
- `deferred:<version>` records criteria that were met while the release was held
158
- back, flooring the next qualifying note at that version. A consumer's release
159
- policy may make deferral the default disposition, so this third form is the
160
- common one under such a policy rather than an exception. Ordering: a tag
161
- names a commit, so the tag-and-host-release half of the procedure runs *after*
162
- the iteration's final commit lands; the note-authoring and stamp halves ride
163
- the close commits themselves.
164
- *<release-policy: the consumer's release procedure and criteria source by
165
- citation, the disposition-evidence path, and any boundary-only sub-procedures
166
- (e.g. a major-only deprecation sweep); or a plain "no release process — every
167
- iteration stamps none" line for a consumer without one.>*
168
- 8. **Brevity pass on the always-loaded surfaces** — run this **last**, after
169
- every surface-mutating step above. Scope by principle, not a fixed list:
170
- every surface injected into each agent session. Staleness asks *is it
171
- still true?*; brevity asks *is each block worth its standing per-session
172
- token cost?* — reword/delete over annotating; outdated context goes to git
173
- history. On-demand files (specs, this skill) are exempt — their cost is
174
- paid only when opened.
175
- 9. **Optionally merge** — an iteration can close without merging if validate
176
- is incomplete or a follow-up iteration is planned.
11
+ 1. **Process Lessons Learned** → durable rules or debt tasks, then clear the section. **Give each entry an explicit disposition before clearing, and stamp it** — one line per entry into `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE` (`<iteration> lesson <kind> <ref> — <lead-line prefix>`), the record `check-lesson-disposition` reads when the entry leaves the queue (the stamp, not the commit body, is the mechanically-decidable evidence — the pre-commit battery has no commit message yet). The disposition set is →rule (name the file + section; prefer a stage-local skill file over an always-loaded doc for a stage-local procedure), →task (name the new slug), →harvest (a lesson carrying a configured harvest tag on its lead line — route its *body* to the sink this skill names for that tag, below), or →discard (state why it needs no durable home — a lesson that is private rule content discards to the consumer's local-only private brief, if one exists, rather than any tracked surface). Clearing is not processing: a lesson naming a concrete *unfixed gap* must become a task, not evaporate. When a lesson claims it was "already filed under <slug>", verify the target task's **body** actually carries the specific finding before dispositioning →task — the slug merely existing is not enough. Gap generalization, per lesson recording drift no check caught: name the check class that should have caught it, then either file the missing check as a deferred task or state in one line why no scanner is buildable — the disposition is not complete without one of the two; read the rule body first (doctrine-kit/DOCTRINE.md, Enforcement-first). Lesson-vs-task litmus (holds at filing time in any stage, not just here): if the deliverable and its done-state are nameable now, it is a task — file it in the deferred section directly, never stage it in Lessons where it waits a stage and risks →discard; Lessons is for observations about how the work should be done, whose durable home (rule vs task vs nothing) genuinely needs this stage's call. *<harvest-routing: harvest routing table: each `QUEUE_KIT_LESSON_TAGS` tag → the sink file its body appends to, plus the sink's reclaim path (a gitignored sink needs a named trigger that empties it — the runtime-artifact lifecycle rule).>*
12
+ 2. **Drain the gap inbox** (`LIFECYCLE_KIT_GAP_INBOX_FILE`, §The committed gap inbox) → disposition every `- <date> — <gap>` bullet, then **truncate the inbox to its `# contract:` header**. **Read the drain's inputs first.** Before the first bullet, run `--emit close-surfaces` on the gate binary `GATE_SDK_NATIVE_BIN` names and read each surface the slot below names whose row is not `empty` or `absent`. A fact there bearing on a bullet's claim is that bullet's re-verification input. The surface's own disposition and reclaim stay at step 4. Name the surfaces read in the drain's commit message. *<drain-inputs: the capture surfaces holding facts a gap bullet's re-verification may need (a knowledge-friction capture, say) — never a raw machine log.>* The disposition set, **tried in this order** (§The committed gap inbox owns the order and why): →fix (resolve it inline this session — the default for a debt-shaped bullet), →promote (file a deferred queue entry carrying its `[cost:]` and `[surface:]` tags, queue-kit/SPEC.md §The tag algebra — only what →fix does not take), or →discard (state why in the close commit message — the bullet's own prose is the disposition body). The icebox is not a disposition here: it takes deferred entries that aged without recurring, at this stage's eviction step, never a bullet drained today (queue-kit/SPEC.md §The icebox tier). A →promote states in the commit message why →fix failed; the commit message also states drift-kit's `qnet` figure for the iteration, so the pool's net motion is read at every close rather than discovered at a consult. The date feeds the staleness read (an aged bullet is a signal, not a free pass). Draining is not deleting: a bullet naming a concrete unfixed gap must become a task or a fix, not evaporate — the same clearing-is-not-processing rule as Lessons. **Re-verify before dispositioning.** A bullet's prose is the filer's claim, not an established fact: capture is deliberately frictionless, so nothing upstream checked it and a bullet can assert a mechanism its filer inferred rather than ran. Per bullet, name the claim the disposition turns on and the command that establishes it, run that command, and disposition against what it returned. Record the outcome in the close commit message beside the bullet's disposition — which bullets were re-verified and what fell — so a corrected premise is visible rather than silently absorbed. A claim no cheap command settles is dispositioned *as a claim*: say so, and carry it on the promoted entry as the inferred marker (§templates/stages/; §The committed gap inbox rules why this sits at the drain and not at filing time). The next iteration's first-stage entry refuses a non-empty inbox **when this stage was skipped** (§bin/enter-stage.sh), so an undrained gap blocks the boundary rather than crossing it silently. **A finding your own later steps generate postdates this drain, and it routes to the inbox like any other.** The audits, the lesson disposition, the staleness read and the release disposition all run after this step, so what they turn up has no drainer left in this iteration. File it (`--emit file-gap`) and let it be carried: the next first-stage entry admits it and takes it as that session's intake (§The committed gap inbox). Do **not** back-date it into a drain that has already run — a second pass over an inbox your own later steps keep refilling is the loop that shape was rejected for. **Read the queue's retired citations here too, and this is a command you run rather than a file you already have open.** The drain works from `LIFECYCLE_KIT_GAP_INBOX_FILE`, so nothing in this step has touched the queue yet: invoke queue-kit's inbound-citation arm over the queue file (queue-kit/SPEC.md §The queue-edges arm) and read its **retired** block. Each entry there cites a slug that was once live and is not now — a directional pointer at work that has been disposed of, indistinguishable from a live pointer to any reader who did not run this. It is a finding, never a violation: the correction is inline on the citing entry, in this session, the way every attested instance was fixed. A row the arm marks `name live at <path>` is **not** in that set: its citations point at mechanism the tree still carries. Skip it, and spend the step on the rows left. This is the corrective transition for the class; scope's ranking survey is the other reader, and it reads the same block to a different end. **Judge the recurrence, in addition to the disposition — you are the judge, and nothing upstream ruled.** That framing is the **general** contract rather than this stage's local one — every session that judges a recurrence is obliged to stamp it, and this drain is only its mechanized instance (§The committed gap inbox owns the rule and what a stamp outside a drain owes instead). Your obligation here is undiminished by that reach. A slug appearing in a bullet is an *input*, never a verdict; the question is whether the finding **re-occurred** or is merely being cited, corrected, or argued against, and the bullet's prose is your grounds (the filer was asked at capture to write the claim there). State the call in the close commit message beside the bullet's disposition — a **declined** match stated as explicitly as a stamped one, since an unstated decline is indistinguishable from an unread bullet. On a judged recurrence, append the bullet's date to that entry's `[recurrence:]` array (creating the tag when absent), **in this same queue-writing commit** — never *instead of* the bullet's own disposition. That same-commit rule is load-bearing rather than housekeeping: the declaration is no longer re-derivable, so this commit *is* the audit artifact, carrying the judgment beside the prose it was made from. It is idempotent per (slug, date): a slug already carrying today's date gains nothing. A slug that resolves only in the done section is not a recurrence — the finding recurred after its fix landed, which is a new defect, and it files as one.
13
+ 3. **Disposition the pre-flight valve ledger** — every line of the closing iteration, in this session. A `used` line means an entry of this iteration was admitted past a refusing pre-flight: **file the blocking task its reason names and land the baseline row that names that task**, carrying the reason's `reproduces-at=<rev>` commit onto that row where evidence-kit/SPEC.md §check-evidence-baseline's flip assertion binds it, so the next iteration's pre-flight passes without a valve. Inline the finding into the filed task rather than pointing it at the ledger — the ledger dies at the next boundary, so a pointer would resolve to nothing. A residual `armed` line is dispositioned with the same weight: a session expected a refusal that never came, or armed the wrong stage, and either is worth one stated line rather than a quiet truncation. A header-only ledger is a clean disposition and says so in one line. The valve's own contract, including why a second reach in one iteration is the failure: lifecycle-kit/SPEC.md §bin/enter-stage.sh.
14
+ 4. **Sweep the inbound triage surfaces** — run `--emit close-surfaces` on the gate binary `GATE_SDK_NATIVE_BIN` names and disposition every row (§The close-surface roster). The roster is derived, not enumerated here or in the binding below: a `forced=` row has a structural forcing function and cannot be skipped silently; an `advisory` row may be skipped, but the skip is a judgment to state, not an omission to leave invisible. An `(undeclared)` row is a capture surface nobody declared: file the missing declaration. A row's state is read too: `empty` is a clean read to state, and `absent` is a finding — nothing ever wrote the surface or its writer is gone, so confirm the writer or file the gap. A row whose `<tracking>` is not `tracked` is read by you, never by an isolated agent, which sees only committed state (delegation-kit/templates/agent-execution.md, isolation cost 3). *<housekeeping: your housekeeping sweeps beyond the roster: deprecation scan, gate-runtime budget check, backlog-aging / premise-rot review, and the per-surface triage procedures the roster's rows route to.>*
15
+ 5. **Retire what this iteration's landings mooted, then clear Done.** The inputs are the done section's slugs and the iteration's commit range. The range runs from the head recorded on the first-stage stamp (the first data line of `.workflow/WORKFLOW-STATE.txt`) to HEAD. Derive the candidates rather than recalling them: (a) the live entries citing a done slug, which are the retired-block rows for those slugs in the inbound-citation output step 2 already produced; (b) the live entries naming a path the range deleted (`git diff --name-only --diff-filter=D`); (c) the live entries citing a markdown heading the range removed from a file it kept (`git diff --diff-filter=M` over `*.md`, its removed heading lines). Read each candidate against the landing it cites. An entry whose question the landing answered, or whose referent it removed, moves to the done section as a bare slug in this stage's queue commit, every link to it rewritten to a backticked slug, and that commit's message names, per moved slug, the landing that mooted it. A `[roadmap:]` entry is outside every exit (queue-kit/SPEC.md §The icebox tier) and stays. A candidate still open stays too, with any stale pointer in it corrected inline, the way step 2's retired-citation read corrects one. Before moving an entry, relocate anything in its body worth more than the entry to the surface that owns it, because the done line keeps only the slug. Run the battery before committing. A red naming a moved slug is a pointer the move stranded, and it is corrected in that same commit. Then clear Done. Why the sweep sits here and not in build, and the moots its candidates cannot reach: lifecycle-kit/SPEC.md §templates/stages/.
16
+ 6. Review top-level docs for staleness (*is it still true?*). Same gap-generalization obligation as step 1, per staleness actually found: name the check class that should have caught it, and file the missing check as a deferred task or state in one line why no scanner is buildable — a silent fix forfeits the check.
17
+ 7. **Repair the ruling record** — read it for aged facts and fired discharge conditions, and repair what its own contract puts in this session's hands. The record grants the authority and states the boundary; this step only adds the obligation to look, so read the boundary there rather than from a restatement here. A repair is **fix-shaped by the drain's own litmus** and needs no new criterion — it adds no governed name and lands test-and-doc- complete in this session's own commit — so a two-word correction is not routed through a deferred entry. The record is a declared row on the close-surface roster (§The close-surface roster), so a consumer that configures none sees this step skip rather than fail, and the probe that reports fired conditions, undeclared ones and the citing sites is lifecycle-kit/SPEC.md §The ruling-staleness probe. It lands here, beside the staleness read, and not in the brevity pass: a repair asks *is it still true?* exactly, and running it under a pass whose licence is compression would put a correction inside a step licensed to delete. **One discharge this step records rather than repairs:** where an operator directive was discharged by **falsification** — the premise it rested on measured false rather than the work being done — that discharge is recorded on the record as a closed-ruling line, because it leaves no landed unit and no queue trace, so a later session reading only the directive re-derives the whole investigation.
18
+ 8. **Review the audit roster**, where `LIFECYCLE_KIT_AUDIT_ROSTER_FILE` names one (lifecycle-kit/SPEC.md §The audit roster). Per class block, judge which `due:` events fired since `last:` (a `last:` naming another stage is a pre-stamp, so unreviewed), then perform each due audit or defer it as a costed filing. Per audit: derive the corpus from `scope:` and the range it names (this iteration's range unless `scope:` names another base); the predecessor's `corpus:` is a floor; triage every hit; **replace** `last:`, `corpus:`, `hits:` and `declined:`; fold a reading that changes the next sweep into `scope:` by re-phrasing. Narration and findings go in the commit message, never on the roster.
19
+ 9. **Runtime-artifact lifecycle check** — any gitignored/runtime artifact introduced this iteration (log, cache, scratch dir) has a named cleanup trigger: a write-path needs a paired reclaim-path. For a workflow-directory artifact the roster already answers it: the `reclaim=` field is that named trigger, and `check-close-surfaces` blocks a capture-tier declaration without one. What stays a judgment here is the artifact *outside* that directory.
20
+ 10. **Release disposition** — run after the surface-mutating steps above and **before** the brevity pass (the disposition note is itself such a write). Every close dispositions the iteration at the release boundary: read the consumer's release policy (the `release-policy` slot below) and either execute its release procedure or stamp an explicit no-release line. Silence is not a disposition — a close that says nothing about release is incomplete. Stamp one line into the consumer-named disposition-evidence file: `<iteration> release <version|none|deferred:<version>> — <one-line basis>` (the `check-lesson-disposition` contract shape at the release boundary, the same lineage release-sweep's stamp follows) — `<version>` is the tag applied, `none` states the both-None (or consumer-equivalent) outcome, and `deferred:<version>` records criteria that were met while the release was held back, flooring the next qualifying note at that version. A consumer's release policy may make deferral the default disposition, so this third form is the common one under such a policy rather than an exception. Ordering: a tag names a commit, so the tag-and-host-release half of the procedure runs *after* the iteration's final commit lands; the note-authoring and stamp halves ride the close commits themselves. *<release-policy: the consumer's release procedure and criteria source by citation, the disposition-evidence path, and any boundary-only sub-procedures (e.g. a major-only deprecation sweep); or a plain "no release process — every iteration stamps none" line for a consumer without one.>*
21
+ 11. **Brevity pass on every governed prose file** — run this **last**, after every surface-mutating step above. Scope by principle, not a fixed list: every surface injected into each agent session, and every file that grew since the last close. Staleness asks *is it still true?*; brevity asks *is each block worth its cost at every read?* — reword/delete over annotating; outdated context goes to git history. No file is exempt: an on-demand file pays at every open, and one a stage opens each iteration is always-loaded in effect.
22
+ 12. **Optionally merge** — an iteration can close without merging if validate is incomplete or a follow-up iteration is planned.
23
+ 13. **The push precondition — select the writing identity, immediately before each push.** Any push this stage makes runs the consumer's identity precondition first, and that holds for the *ordinary* close push and not only for a release. It is **per-push, never per-session**: a session that pushes twice runs it twice. Where the consumer keeps its account and transport mechanics outside the tree, the release procedure's pointer to that local runbook is the one to follow here too, rather than a second formulation. **No gate substitutes for this.** The closing push is counted in every push need the scope stage states, so it is spent without an ask of its own; the budget's hotfix allowance still governs a red push. *<push-budget: how many pushes this consumer's iteration may spend, how many hotfix pushes a red push earns before the operator is asked, and the remote run a push is watched to — or a plain "no remote — nothing is pushed" line.>*
24
+
25
+ **Then read your successor's entry.** After your last commit, run `--enter-stage --simulate <stage>` for the roster's first stage, whose iteration-boundary checks read what this close leaves. It writes nothing (lifecycle-kit/SPEC.md §bin/enter-stage.sh). An exit of 1 relays a refusal: fix one your own work caused and run the read again, and carry any other into your report verbatim.
26
+
27
+ **Last step — the resume journal.** This stage's exit artifact is the resume journal the `--enter-stage` arm named at the stamp; its path is a derivation (lifecycle-kit/SPEC.md §The state machine) and its contract is delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps. Append `DONE` as the file's last line before you report.