checkwright 0.0.1 → 0.18.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 (874) hide show
  1. package/README.md +260 -4
  2. package/bin/checkwright.sh +53 -0
  3. package/lib/common/lock.sh +28 -0
  4. package/lib/common/profile.sh +58 -0
  5. package/lib/common/recipe.sh +93 -0
  6. package/lib/doctor.sh +90 -0
  7. package/lib/init.sh +289 -0
  8. package/package.json +15 -3
  9. package/payload/canon-kit/README.md +79 -0
  10. package/payload/canon-kit/SPEC.md +1410 -0
  11. package/payload/canon-kit/checks/check-amendment-queue.sh +116 -0
  12. package/payload/canon-kit/checks/check-comment-tier.sh +211 -0
  13. package/payload/canon-kit/checks/check-deprecation-task.sh +90 -0
  14. package/payload/canon-kit/checks/check-docs-cmd.sh +153 -0
  15. package/payload/canon-kit/checks/check-docs-link-convention.sh +71 -0
  16. package/payload/canon-kit/checks/check-install-claim.sh +146 -0
  17. package/payload/canon-kit/checks/check-knob-citation.sh +117 -0
  18. package/payload/canon-kit/checks/check-knob-default-coupling.sh +239 -0
  19. package/payload/canon-kit/checks/check-manifest-count.sh +46 -0
  20. package/payload/canon-kit/checks/check-manifest-temporal.sh +83 -0
  21. package/payload/canon-kit/checks/check-md-refs.sh +115 -0
  22. package/payload/canon-kit/checks/check-prose-enum.sh +115 -0
  23. package/payload/canon-kit/checks/check-prose-tells.sh +207 -0
  24. package/payload/canon-kit/checks/check-spec-derivable-section.sh +69 -0
  25. package/payload/canon-kit/checks/check-spec-dod-singleton.sh +45 -0
  26. package/payload/canon-kit/checks/check-spec-embedded-source.sh +133 -0
  27. package/payload/canon-kit/checks/check-spec-fence-balance.sh +42 -0
  28. package/payload/canon-kit/checks/check-spec-pointer.sh +176 -0
  29. package/payload/canon-kit/checks/check-surface-duplication.sh +105 -0
  30. package/payload/canon-kit/checks/check-todo-task-liveness.sh +80 -0
  31. package/payload/canon-kit/checks/check-tracking-claim.sh +136 -0
  32. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +5 -0
  33. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +15 -0
  34. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +1 -0
  35. package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +6 -0
  36. package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +15 -0
  37. package/payload/canon-kit/gate-tests/check-amendment-queue/good/expect.txt +1 -0
  38. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +25 -0
  39. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
  40. package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -0
  41. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +32 -0
  42. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +146 -0
  43. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +19 -0
  44. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.sh +6 -0
  45. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +1 -0
  46. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +5 -0
  47. package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +21 -0
  48. package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -0
  49. package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.sh +5 -0
  50. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +5 -0
  51. package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +98 -0
  52. package/payload/canon-kit/gate-tests/check-docs-cmd/bad/args +1 -0
  53. package/payload/canon-kit/gate-tests/check-docs-cmd/bad/doc.md +9 -0
  54. package/payload/canon-kit/gate-tests/check-docs-cmd/bad/expect.txt +1 -0
  55. package/payload/canon-kit/gate-tests/check-docs-cmd/good/args +1 -0
  56. package/payload/canon-kit/gate-tests/check-docs-cmd/good/bin/tool.sh +3 -0
  57. package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +18 -0
  58. package/payload/canon-kit/gate-tests/check-docs-cmd/good/expect.txt +1 -0
  59. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/args +4 -0
  60. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/demokit/index.md +5 -0
  61. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/index.md +3 -0
  62. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +1 -0
  63. package/payload/canon-kit/gate-tests/check-docs-link-convention/good/args +4 -0
  64. package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/demokit/index.md +6 -0
  65. package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/index.md +3 -0
  66. package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/methodology.md +3 -0
  67. package/payload/canon-kit/gate-tests/check-docs-link-convention/good/expect.txt +1 -0
  68. package/payload/canon-kit/gate-tests/check-install-claim/bad/README.md +12 -0
  69. package/payload/canon-kit/gate-tests/check-install-claim/bad/expect.txt +1 -0
  70. package/payload/canon-kit/gate-tests/check-install-claim/bad/install.md +24 -0
  71. package/payload/canon-kit/gate-tests/check-install-claim/bad/posts/note.md +7 -0
  72. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +10 -0
  73. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/install-transports.sh +7 -0
  74. package/payload/canon-kit/gate-tests/check-install-claim/good/README.md +12 -0
  75. package/payload/canon-kit/gate-tests/check-install-claim/good/expect.txt +1 -0
  76. package/payload/canon-kit/gate-tests/check-install-claim/good/install.md +24 -0
  77. package/payload/canon-kit/gate-tests/check-install-claim/good/posts/note.md +7 -0
  78. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +10 -0
  79. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/install-transports.sh +7 -0
  80. package/payload/canon-kit/gate-tests/check-knob-citation/bad/SPEC.md +10 -0
  81. package/payload/canon-kit/gate-tests/check-knob-citation/bad/expect.txt +1 -0
  82. package/payload/canon-kit/gate-tests/check-knob-citation/good/SPEC.md +19 -0
  83. package/payload/canon-kit/gate-tests/check-knob-citation/good/expect.txt +1 -0
  84. package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +71 -0
  85. package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/expect.txt +1 -0
  86. package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/gate-sdk-config.sh +4 -0
  87. package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/SPEC.md +4 -0
  88. package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/lib/widget-cli.sh +3 -0
  89. package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/lib/widget.sh +5 -0
  90. package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/expect.txt +1 -0
  91. package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/gate-sdk-config.sh +5 -0
  92. package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/SPEC.md +7 -0
  93. package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/lib/widget-cli.sh +3 -0
  94. package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/lib/widget.sh +5 -0
  95. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +73 -0
  96. package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +15 -0
  97. package/payload/canon-kit/gate-tests/check-manifest-count/bad/expect.txt +1 -0
  98. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +37 -0
  99. package/payload/canon-kit/gate-tests/check-manifest-count/good/expect.txt +1 -0
  100. package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +104 -0
  101. package/payload/canon-kit/gate-tests/check-manifest-temporal/bad/SPEC.md +6 -0
  102. package/payload/canon-kit/gate-tests/check-manifest-temporal/bad/expect.txt +1 -0
  103. package/payload/canon-kit/gate-tests/check-manifest-temporal/good/SPEC.md +17 -0
  104. package/payload/canon-kit/gate-tests/check-manifest-temporal/good/expect.txt +1 -0
  105. package/payload/canon-kit/gate-tests/check-md-refs/bad/args +1 -0
  106. package/payload/canon-kit/gate-tests/check-md-refs/bad/doc.md +3 -0
  107. package/payload/canon-kit/gate-tests/check-md-refs/bad/expect.txt +1 -0
  108. package/payload/canon-kit/gate-tests/check-md-refs/good/args +1 -0
  109. package/payload/canon-kit/gate-tests/check-md-refs/good/doc.md +3 -0
  110. package/payload/canon-kit/gate-tests/check-md-refs/good/expect.txt +1 -0
  111. package/payload/canon-kit/gate-tests/check-md-refs/good/target.md +1 -0
  112. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +82 -0
  113. package/payload/canon-kit/gate-tests/check-prose-enum/bad/SPEC.md +4 -0
  114. package/payload/canon-kit/gate-tests/check-prose-enum/bad/expect.txt +1 -0
  115. package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +4 -0
  116. package/payload/canon-kit/gate-tests/check-prose-enum/good/SPEC.md +16 -0
  117. package/payload/canon-kit/gate-tests/check-prose-enum/good/expect.txt +1 -0
  118. package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +4 -0
  119. package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +127 -0
  120. package/payload/canon-kit/gate-tests/check-prose-tells/bad/expect.txt +1 -0
  121. package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +15 -0
  122. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +8 -0
  123. package/payload/canon-kit/gate-tests/check-prose-tells/good/expect.txt +1 -0
  124. package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +21 -0
  125. package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/canon-config.sh +8 -0
  126. package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/SPEC.md +20 -0
  127. package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/expect.txt +1 -0
  128. package/payload/canon-kit/gate-tests/check-spec-derivable-section/good/SPEC.md +13 -0
  129. package/payload/canon-kit/gate-tests/check-spec-derivable-section/good/expect.txt +1 -0
  130. package/payload/canon-kit/gate-tests/check-spec-dod-singleton/bad/SPEC.md +15 -0
  131. package/payload/canon-kit/gate-tests/check-spec-dod-singleton/bad/expect.txt +1 -0
  132. package/payload/canon-kit/gate-tests/check-spec-dod-singleton/good/SPEC.md +13 -0
  133. package/payload/canon-kit/gate-tests/check-spec-dod-singleton/good/expect.txt +1 -0
  134. package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +63 -0
  135. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC.md +16 -0
  136. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +1 -0
  137. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.sh +9 -0
  138. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +19 -0
  139. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/expect.txt +1 -0
  140. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.sh +9 -0
  141. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/args +1 -0
  142. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/doc.md +8 -0
  143. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/expect.txt +1 -0
  144. package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/args +1 -0
  145. package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/doc.md +9 -0
  146. package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/expect.txt +1 -0
  147. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +4 -0
  148. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-target.md +6 -0
  149. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
  150. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/cand-tmpl.md +5 -0
  151. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +1 -0
  152. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +5 -0
  153. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/widget.sh +5 -0
  154. package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +4 -0
  155. package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-target.md +6 -0
  156. package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +5 -0
  157. package/payload/canon-kit/gate-tests/check-spec-pointer/good/cand-tmpl.md +7 -0
  158. package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -0
  159. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +5 -0
  160. package/payload/canon-kit/gate-tests/check-spec-pointer/good/widget.sh +6 -0
  161. package/payload/canon-kit/gate-tests/check-surface-duplication/bad/GLOSSARY.md +11 -0
  162. package/payload/canon-kit/gate-tests/check-surface-duplication/bad/VISION.md +6 -0
  163. package/payload/canon-kit/gate-tests/check-surface-duplication/bad/expect.txt +1 -0
  164. package/payload/canon-kit/gate-tests/check-surface-duplication/good/GLOSSARY.md +11 -0
  165. package/payload/canon-kit/gate-tests/check-surface-duplication/good/VISION.md +6 -0
  166. package/payload/canon-kit/gate-tests/check-surface-duplication/good/expect.txt +1 -0
  167. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +19 -0
  168. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.sh +5 -0
  169. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +1 -0
  170. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +23 -0
  171. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -0
  172. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.sh +5 -0
  173. package/payload/canon-kit/gate-tests/check-tracking-claim/bad/README.md +4 -0
  174. package/payload/canon-kit/gate-tests/check-tracking-claim/bad/args +1 -0
  175. package/payload/canon-kit/gate-tests/check-tracking-claim/bad/expect.txt +1 -0
  176. package/payload/canon-kit/gate-tests/check-tracking-claim/bad/kept.txt +1 -0
  177. package/payload/canon-kit/gate-tests/check-tracking-claim/good/README.md +7 -0
  178. package/payload/canon-kit/gate-tests/check-tracking-claim/good/args +1 -0
  179. package/payload/canon-kit/gate-tests/check-tracking-claim/good/expect.txt +1 -0
  180. package/payload/canon-kit/gate-tests/check-tracking-claim/good/kept.txt +1 -0
  181. package/payload/canon-kit/gate-tests/check-tracking-claim/good/roster.list +1 -0
  182. package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +86 -0
  183. package/payload/canon-kit/lib/spec.sh +505 -0
  184. package/payload/canon-kit/smoke/install.sh +36 -0
  185. package/payload/canon-kit/smoke/violation.sh +22 -0
  186. package/payload/canon-kit/templates/SPEC-amendment.md +55 -0
  187. package/payload/canon-kit/templates/canon-config.sh +2 -0
  188. package/payload/context-kit/README.md +82 -0
  189. package/payload/context-kit/SPEC.md +790 -0
  190. package/payload/context-kit/bin/always-loaded.sh +86 -0
  191. package/payload/context-kit/bin/env-probe.sh +144 -0
  192. package/payload/context-kit/bin/footprint.sh +144 -0
  193. package/payload/context-kit/bin/md-index.sh +80 -0
  194. package/payload/context-kit/bin/md-section.sh +63 -0
  195. package/payload/context-kit/bin/pub-index.sh +90 -0
  196. package/payload/context-kit/bin/run-index-tests.sh +91 -0
  197. package/payload/context-kit/checks/check-brevity.sh +123 -0
  198. package/payload/context-kit/checks/check-footprint-fresh.sh +38 -0
  199. package/payload/context-kit/checks/check-memory-off.sh +112 -0
  200. package/payload/context-kit/checks/check-settings-pins.sh +110 -0
  201. package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +14 -0
  202. package/payload/context-kit/gate-tests/check-brevity/bad/args +2 -0
  203. package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
  204. package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +20 -0
  205. package/payload/context-kit/gate-tests/check-brevity/good/args +2 -0
  206. package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -0
  207. package/payload/context-kit/gate-tests/check-brevity.test.sh +89 -0
  208. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/args +4 -0
  209. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/emit.txt +12 -0
  210. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/expect.txt +1 -0
  211. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/projection.txt +11 -0
  212. package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +4 -0
  213. package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +12 -0
  214. package/payload/context-kit/gate-tests/check-footprint-fresh/good/expect.txt +1 -0
  215. package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +12 -0
  216. package/payload/context-kit/gate-tests/check-memory-off/bad/args +1 -0
  217. package/payload/context-kit/gate-tests/check-memory-off/bad/expect.txt +1 -0
  218. package/payload/context-kit/gate-tests/check-memory-off/bad/memory/example-fact.md +6 -0
  219. package/payload/context-kit/gate-tests/check-memory-off/good/args +1 -0
  220. package/payload/context-kit/gate-tests/check-memory-off/good/expect.txt +1 -0
  221. package/payload/context-kit/gate-tests/check-memory-off/good/memory/.gitkeep +0 -0
  222. package/payload/context-kit/gate-tests/check-memory-off.test.sh +54 -0
  223. package/payload/context-kit/gate-tests/check-settings-pins/bad/args +1 -0
  224. package/payload/context-kit/gate-tests/check-settings-pins/bad/expect.txt +1 -0
  225. package/payload/context-kit/gate-tests/check-settings-pins/bad/settings-pins.conf +3 -0
  226. package/payload/context-kit/gate-tests/check-settings-pins/bad/settings.json +6 -0
  227. package/payload/context-kit/gate-tests/check-settings-pins/good/args +1 -0
  228. package/payload/context-kit/gate-tests/check-settings-pins/good/expect.txt +1 -0
  229. package/payload/context-kit/gate-tests/check-settings-pins/good/settings-pins.conf +3 -0
  230. package/payload/context-kit/gate-tests/check-settings-pins/good/settings.json +6 -0
  231. package/payload/context-kit/index-tests/corpus/baseline.txt +2 -0
  232. package/payload/context-kit/index-tests/corpus/hook-sample.txt +4 -0
  233. package/payload/context-kit/index-tests/corpus/sample.md +23 -0
  234. package/payload/context-kit/index-tests/corpus/sample.rs +24 -0
  235. package/payload/context-kit/index-tests/corpus/sample.ts +34 -0
  236. package/payload/context-kit/index-tests/corpus/surface.md +6 -0
  237. package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -0
  238. package/payload/context-kit/index-tests/expected/md-index.txt +6 -0
  239. package/payload/context-kit/index-tests/expected/md-section.txt +6 -0
  240. package/payload/context-kit/index-tests/expected/pub-index-shadow.txt +2 -0
  241. package/payload/context-kit/index-tests/expected/pub-index-ts.txt +12 -0
  242. package/payload/context-kit/index-tests/expected/pub-index.txt +10 -0
  243. package/payload/context-kit/index-tests/expected/toolfloor.txt +14 -0
  244. package/payload/context-kit/index-tests/toolfloor-cases.sh +29 -0
  245. package/payload/context-kit/lib/pub-lang/rust.sh +26 -0
  246. package/payload/context-kit/lib/pub-lang/ts.sh +32 -0
  247. package/payload/context-kit/lib/toolfloor.sh +47 -0
  248. package/payload/context-kit/smoke/agents-md.sh +116 -0
  249. package/payload/context-kit/smoke/install.sh +60 -0
  250. package/payload/context-kit/smoke/violation.sh +21 -0
  251. package/payload/context-kit/templates/close-brevity.md +30 -0
  252. package/payload/context-kit/templates/context-config.sh +2 -0
  253. package/payload/context-kit/templates/session-context.sh +133 -0
  254. package/payload/context-kit/templates/settings-sessionstart.json +12 -0
  255. package/payload/delegation-kit/README.md +87 -0
  256. package/payload/delegation-kit/SPEC.md +792 -0
  257. package/payload/delegation-kit/bin/run-budget-guard-tests.sh +88 -0
  258. package/payload/delegation-kit/bin/run-trend-tests.sh +63 -0
  259. package/payload/delegation-kit/bin/run-usage-tests.sh +226 -0
  260. package/payload/delegation-kit/bin/usage-trend.sh +120 -0
  261. package/payload/delegation-kit/bin/usage-verdict.sh +144 -0
  262. package/payload/delegation-kit/checks/check-gate-tamper.sh +139 -0
  263. package/payload/delegation-kit/checks/check-rule-citation.sh +76 -0
  264. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/args +1 -0
  265. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +1 -0
  266. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/staged-files +5 -0
  267. package/payload/delegation-kit/gate-tests/check-gate-tamper/good/added-exemptions +2 -0
  268. package/payload/delegation-kit/gate-tests/check-gate-tamper/good/args +1 -0
  269. package/payload/delegation-kit/gate-tests/check-gate-tamper/good/expect.txt +1 -0
  270. package/payload/delegation-kit/gate-tests/check-gate-tamper/good/staged-files +5 -0
  271. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/args +1 -0
  272. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/expect.txt +1 -0
  273. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/spec.md +9 -0
  274. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/tmpl.md +4 -0
  275. package/payload/delegation-kit/gate-tests/check-rule-citation/good/args +1 -0
  276. package/payload/delegation-kit/gate-tests/check-rule-citation/good/expect.txt +1 -0
  277. package/payload/delegation-kit/gate-tests/check-rule-citation/good/spec.md +20 -0
  278. package/payload/delegation-kit/gate-tests/check-rule-citation/good/tmpl.md +5 -0
  279. package/payload/delegation-kit/lib/delegation.sh +81 -0
  280. package/payload/delegation-kit/smoke/install.sh +61 -0
  281. package/payload/delegation-kit/smoke/violation.sh +16 -0
  282. package/payload/delegation-kit/templates/agent-budget-guard.sh +18 -0
  283. package/payload/delegation-kit/templates/agent-execution.md +136 -0
  284. package/payload/delegation-kit/templates/delegation-config.sh +2 -0
  285. package/payload/delegation-kit/templates/dispatch-checklists.md +60 -0
  286. package/payload/delegation-kit/templates/statusline-usage.sh +79 -0
  287. package/payload/delegation-kit/templates/usage-poller.sh +67 -0
  288. package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +20 -0
  289. package/payload/delegation-kit/usage-tests/cases.tsv +44 -0
  290. package/payload/delegation-kit/usage-tests/trend-history.log +20 -0
  291. package/payload/doctrine-kit/DOCTRINE.md +386 -0
  292. package/payload/doctrine-kit/README.md +70 -0
  293. package/payload/doctrine-kit/SPEC.md +233 -0
  294. package/payload/doctrine-kit/bin/install-doctrine.sh +44 -0
  295. package/payload/doctrine-kit/bin/stage-rules.sh +51 -0
  296. package/payload/doctrine-kit/checks/check-doctrine-registration.sh +216 -0
  297. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/AGENT.md +14 -0
  298. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +12 -0
  299. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/args +1 -0
  300. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/expect.txt +1 -0
  301. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/AGENT.md +15 -0
  302. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +12 -0
  303. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/args +1 -0
  304. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/expect.txt +1 -0
  305. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +208 -0
  306. package/payload/doctrine-kit/lib/doctrine.sh +29 -0
  307. package/payload/doctrine-kit/smoke/install.sh +24 -0
  308. package/payload/doctrine-kit/smoke/violation.sh +13 -0
  309. package/payload/drift-kit/README.md +115 -0
  310. package/payload/drift-kit/SPEC.md +881 -0
  311. package/payload/drift-kit/bin/drift-report.sh +155 -0
  312. package/payload/drift-kit/bin/kfric.sh +42 -0
  313. package/payload/drift-kit/bin/overhead-meter.sh +106 -0
  314. package/payload/drift-kit/bin/stage-economics.sh +311 -0
  315. package/payload/drift-kit/bin/trajectory.sh +242 -0
  316. package/payload/drift-kit/kpis/kpi-always-loaded.sh +39 -0
  317. package/payload/drift-kit/kpis/kpi-amendment-age.sh +33 -0
  318. package/payload/drift-kit/kpis/kpi-deferred-age.sh +46 -0
  319. package/payload/drift-kit/kpis/kpi-gate-backlog.sh +52 -0
  320. package/payload/drift-kit/kpis/kpi-gate-runtime.sh +31 -0
  321. package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +21 -0
  322. package/payload/drift-kit/kpis/kpi-overhead.sh +44 -0
  323. package/payload/drift-kit/kpis/kpi-price-table-age.sh +68 -0
  324. package/payload/drift-kit/kpis/kpi-prompt-friction.sh +38 -0
  325. package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +74 -0
  326. package/payload/drift-kit/kpis/kpi-settings-local.sh +21 -0
  327. package/payload/drift-kit/kpis/kpi-task-split.sh +43 -0
  328. package/payload/drift-kit/smoke/install.sh +348 -0
  329. package/payload/drift-kit/smoke/overhead-fixture.jsonl +4 -0
  330. package/payload/drift-kit/templates/close-knowledge.md +24 -0
  331. package/payload/drift-kit/templates/drift-config.sh +2 -0
  332. package/payload/drift-kit/templates/economics.md +45 -0
  333. package/payload/drift-kit/templates/kpi-deprecated-surface.sh +32 -0
  334. package/payload/drift-kit/templates/kpis.list +22 -0
  335. package/payload/drift-kit/templates/price-table.tsv +21 -0
  336. package/payload/evidence-kit/README.md +59 -0
  337. package/payload/evidence-kit/SPEC.md +261 -0
  338. package/payload/evidence-kit/bin/diff-baseline.sh +34 -0
  339. package/payload/evidence-kit/bin/run-validate.sh +82 -0
  340. package/payload/evidence-kit/checks/check-evidence-baseline.sh +103 -0
  341. package/payload/evidence-kit/checks/check-evidence-manifest.sh +104 -0
  342. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -0
  343. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +2 -0
  344. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +1 -0
  345. package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +3 -0
  346. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -0
  347. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +2 -0
  348. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/expect.txt +1 -0
  349. package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/validate-baseline.txt +3 -0
  350. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +84 -0
  351. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/TASK-QUEUE.md +1 -0
  352. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +3 -0
  353. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +3 -0
  354. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/expect.txt +1 -0
  355. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/validate-evidence.txt +2 -0
  356. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/TASK-QUEUE.md +1 -0
  357. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +3 -0
  358. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +3 -0
  359. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/expect.txt +1 -0
  360. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/validate-evidence.txt +2 -0
  361. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +107 -0
  362. package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +82 -0
  363. package/payload/evidence-kit/lib/evidence.sh +173 -0
  364. package/payload/evidence-kit/smoke/install.sh +45 -0
  365. package/payload/evidence-kit/smoke/violation.sh +8 -0
  366. package/payload/evidence-kit/templates/evidence-config.sh +2 -0
  367. package/payload/gate-sdk/README.md +124 -0
  368. package/payload/gate-sdk/SPEC.md +1876 -0
  369. package/payload/gate-sdk/bin/enforcement-map.sh +272 -0
  370. package/payload/gate-sdk/bin/gen-pre-commit.sh +267 -0
  371. package/payload/gate-sdk/bin/install-hooks.sh +48 -0
  372. package/payload/gate-sdk/bin/run-consumer-smoke.sh +112 -0
  373. package/payload/gate-sdk/bin/run-gate-tests.sh +128 -0
  374. package/payload/gate-sdk/bin/run-gates.sh +147 -0
  375. package/payload/gate-sdk/bin/upgrade-smoke.sh +163 -0
  376. package/payload/gate-sdk/checks/check-action-pinning.sh +55 -0
  377. package/payload/gate-sdk/checks/check-action-run-shell.sh +219 -0
  378. package/payload/gate-sdk/checks/check-assertion-strength.sh +134 -0
  379. package/payload/gate-sdk/checks/check-commit-msg.sh +50 -0
  380. package/payload/gate-sdk/checks/check-commit-subject.sh +43 -0
  381. package/payload/gate-sdk/checks/check-core-files.sh +52 -0
  382. package/payload/gate-sdk/checks/check-enforcement-fresh.sh +37 -0
  383. package/payload/gate-sdk/checks/check-exec-bit.sh +76 -0
  384. package/payload/gate-sdk/checks/check-gate-assertions.sh +123 -0
  385. package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +106 -0
  386. package/payload/gate-sdk/checks/check-gate-fail-closed.sh +84 -0
  387. package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +92 -0
  388. package/payload/gate-sdk/checks/check-gate-output.sh +65 -0
  389. package/payload/gate-sdk/checks/check-graph.sh +632 -0
  390. package/payload/gate-sdk/checks/check-hook-exec-bit.sh +45 -0
  391. package/payload/gate-sdk/checks/check-identity.sh +134 -0
  392. package/payload/gate-sdk/checks/check-kit-enum.sh +94 -0
  393. package/payload/gate-sdk/checks/check-kit-registration.sh +68 -0
  394. package/payload/gate-sdk/checks/check-readme-roster.sh +102 -0
  395. package/payload/gate-sdk/checks/check-reads-couples.sh +148 -0
  396. package/payload/gate-sdk/checks/check-root-tiering.sh +66 -0
  397. package/payload/gate-sdk/checks/check-shellcheck.sh +55 -0
  398. package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +53 -0
  399. package/payload/gate-sdk/checks/check-template-copy-parity.sh +126 -0
  400. package/payload/gate-sdk/checks/check-test-hermetic.sh +119 -0
  401. package/payload/gate-sdk/checks/check-tree-terms.sh +61 -0
  402. package/payload/gate-sdk/checks/check-workflow-tiering.sh +84 -0
  403. package/payload/gate-sdk/gate-tests/check-action-pinning/bad/args +1 -0
  404. package/payload/gate-sdk/gate-tests/check-action-pinning/bad/expect.txt +1 -0
  405. package/payload/gate-sdk/gate-tests/check-action-pinning/bad/tree/mutable.yml +11 -0
  406. package/payload/gate-sdk/gate-tests/check-action-pinning/bad/tree/nested/pinned.yml +5 -0
  407. package/payload/gate-sdk/gate-tests/check-action-pinning/good/args +1 -0
  408. package/payload/gate-sdk/gate-tests/check-action-pinning/good/expect.txt +1 -0
  409. package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/nested/deep.yml +5 -0
  410. package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/no-refs.yaml +8 -0
  411. package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/pinned.yml +10 -0
  412. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +3 -0
  413. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +1 -0
  414. package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/ci.yml +15 -0
  415. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -0
  416. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -0
  417. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/action.yml +14 -0
  418. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/not-actions.yml +16 -0
  419. package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/ci.yml +106 -0
  420. package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +88 -0
  421. package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/args +3 -0
  422. package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/bin/verdict.sh +5 -0
  423. package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/expect.txt +1 -0
  424. package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +11 -0
  425. package/payload/gate-sdk/gate-tests/check-assertion-strength/good/args +3 -0
  426. package/payload/gate-sdk/gate-tests/check-assertion-strength/good/bin/verdict.sh +5 -0
  427. package/payload/gate-sdk/gate-tests/check-assertion-strength/good/expect.txt +1 -0
  428. package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +16 -0
  429. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/args +2 -0
  430. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/expect.txt +1 -0
  431. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/msg.txt +5 -0
  432. package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -0
  433. package/payload/gate-sdk/gate-tests/check-commit-msg/good/args +2 -0
  434. package/payload/gate-sdk/gate-tests/check-commit-msg/good/expect.txt +1 -0
  435. package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +5 -0
  436. package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -0
  437. package/payload/gate-sdk/gate-tests/check-commit-subject/bad/args +2 -0
  438. package/payload/gate-sdk/gate-tests/check-commit-subject/bad/expect.txt +1 -0
  439. package/payload/gate-sdk/gate-tests/check-commit-subject/bad/msg.txt +4 -0
  440. package/payload/gate-sdk/gate-tests/check-commit-subject/good/args +2 -0
  441. package/payload/gate-sdk/gate-tests/check-commit-subject/good/expect.txt +1 -0
  442. package/payload/gate-sdk/gate-tests/check-commit-subject/good/msg.txt +5 -0
  443. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +73 -0
  444. package/payload/gate-sdk/gate-tests/check-core-files/bad/args +1 -0
  445. package/payload/gate-sdk/gate-tests/check-core-files/bad/core-files.list +3 -0
  446. package/payload/gate-sdk/gate-tests/check-core-files/bad/expect.txt +1 -0
  447. package/payload/gate-sdk/gate-tests/check-core-files/bad/present.txt +1 -0
  448. package/payload/gate-sdk/gate-tests/check-core-files/good/args +1 -0
  449. package/payload/gate-sdk/gate-tests/check-core-files/good/core-files.list +5 -0
  450. package/payload/gate-sdk/gate-tests/check-core-files/good/expect.txt +1 -0
  451. package/payload/gate-sdk/gate-tests/check-core-files/good/nested/also-present.txt +1 -0
  452. package/payload/gate-sdk/gate-tests/check-core-files/good/present.txt +1 -0
  453. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/args +4 -0
  454. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/emit.txt +14 -0
  455. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/expect.txt +1 -0
  456. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/projection.txt +7 -0
  457. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +4 -0
  458. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +14 -0
  459. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/expect.txt +1 -0
  460. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +14 -0
  461. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/args +1 -0
  462. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +7 -0
  463. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +1 -0
  464. package/payload/gate-sdk/gate-tests/check-exec-bit/good/args +1 -0
  465. package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +7 -0
  466. package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -0
  467. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +46 -0
  468. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/args +1 -0
  469. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +1 -0
  470. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +13 -0
  471. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-baz.sh +13 -0
  472. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-foo.sh +10 -0
  473. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/args +1 -0
  474. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -0
  475. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +20 -0
  476. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-baz.sh +12 -0
  477. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-foo.sh +9 -0
  478. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +9 -0
  479. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +1 -0
  480. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +1 -0
  481. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/gates/check-sample.sh +11 -0
  482. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +9 -0
  483. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +1 -0
  484. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +1 -0
  485. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/gates/check-sample.sh +11 -0
  486. package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/args +1 -0
  487. package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/expect.txt +1 -0
  488. package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/gates/check-sample.sh +8 -0
  489. package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/args +1 -0
  490. package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/expect.txt +1 -0
  491. package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/gates/check-sample.sh +8 -0
  492. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +1 -0
  493. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/check-gamma.sh +4 -0
  494. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/expect.txt +1 -0
  495. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gate-tests/check-alpha/bad/.keep +0 -0
  496. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gate-tests/check-alpha/good/.keep +0 -0
  497. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gates.list +4 -0
  498. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +1 -0
  499. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/check-beta.sh +5 -0
  500. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/expect.txt +1 -0
  501. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gate-tests/check-alpha/bad/.keep +0 -0
  502. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gate-tests/check-alpha/good/.keep +0 -0
  503. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gates.list +5 -0
  504. package/payload/gate-sdk/gate-tests/check-gate-output/bad/args +1 -0
  505. package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-sample.sh +4 -0
  506. package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +1 -0
  507. package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +2 -0
  508. package/payload/gate-sdk/gate-tests/check-gate-output/good/args +1 -0
  509. package/payload/gate-sdk/gate-tests/check-gate-output/good/check-sample.sh +9 -0
  510. package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
  511. package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +3 -0
  512. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +12 -0
  513. package/payload/gate-sdk/gate-tests/check-graph/bad/args +1 -0
  514. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +1 -0
  515. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +20 -0
  516. package/payload/gate-sdk/gate-tests/check-graph/good/args +3 -0
  517. package/payload/gate-sdk/gate-tests/check-graph/good/expect.txt +1 -0
  518. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +51 -0
  519. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +55 -0
  520. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +63 -0
  521. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/args +1 -0
  522. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/expect.txt +1 -0
  523. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/hooks/pre-commit +2 -0
  524. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/args +1 -0
  525. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/expect.txt +1 -0
  526. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/hooks/pre-commit +2 -0
  527. package/payload/gate-sdk/gate-tests/check-identity/bad/args +1 -0
  528. package/payload/gate-sdk/gate-tests/check-identity/bad/expect.txt +1 -0
  529. package/payload/gate-sdk/gate-tests/check-identity/bad/git-config-email +1 -0
  530. package/payload/gate-sdk/gate-tests/check-identity/bad/git-remotes +2 -0
  531. package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -0
  532. package/payload/gate-sdk/gate-tests/check-identity/good/args +1 -0
  533. package/payload/gate-sdk/gate-tests/check-identity/good/expect.txt +1 -0
  534. package/payload/gate-sdk/gate-tests/check-identity/good/git-config-email +1 -0
  535. package/payload/gate-sdk/gate-tests/check-identity/good/git-remotes +3 -0
  536. package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -0
  537. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/args +1 -0
  538. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-sample.sh +5 -0
  539. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/expect.txt +1 -0
  540. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -0
  541. package/payload/gate-sdk/gate-tests/check-kit-enum/good/args +1 -0
  542. package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-sample.sh +5 -0
  543. package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -0
  544. package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +3 -0
  545. package/payload/gate-sdk/gate-tests/check-kit-registration/bad/args +4 -0
  546. package/payload/gate-sdk/gate-tests/check-kit-registration/bad/expect.txt +1 -0
  547. package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +20 -0
  548. package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +5 -0
  549. package/payload/gate-sdk/gate-tests/check-kit-registration/good/expect.txt +1 -0
  550. package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +75 -0
  551. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/README.md +14 -0
  552. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/checks/check-alpha-one.sh +3 -0
  553. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/checks/check-alpha-two.sh +3 -0
  554. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +4 -0
  555. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +1 -0
  556. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/gamma-kit/README.md +5 -0
  557. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/gamma-kit/checks/check-gamma-one.sh +3 -0
  558. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +5 -0
  559. package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/README.md +16 -0
  560. package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/checks/check-alpha-one.sh +3 -0
  561. package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/checks/check-alpha-two.sh +3 -0
  562. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +6 -0
  563. package/payload/gate-sdk/gate-tests/check-readme-roster/good/beta-kit/smoke/install.sh +3 -0
  564. package/payload/gate-sdk/gate-tests/check-readme-roster/good/expect.txt +1 -0
  565. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +5 -0
  566. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/args +2 -0
  567. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/corpus/sub/deep.md +1 -0
  568. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/corpus/top.md +1 -0
  569. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -0
  570. package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +6 -0
  571. package/payload/gate-sdk/gate-tests/check-reads-couples/good/args +3 -0
  572. package/payload/gate-sdk/gate-tests/check-reads-couples/good/corpus/sub/deep.md +1 -0
  573. package/payload/gate-sdk/gate-tests/check-reads-couples/good/corpus/top.md +1 -0
  574. package/payload/gate-sdk/gate-tests/check-reads-couples/good/expect.txt +1 -0
  575. package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +8 -0
  576. package/payload/gate-sdk/gate-tests/check-root-tiering/bad/allow.list +1 -0
  577. package/payload/gate-sdk/gate-tests/check-root-tiering/bad/args +1 -0
  578. package/payload/gate-sdk/gate-tests/check-root-tiering/bad/expect.txt +1 -0
  579. package/payload/gate-sdk/gate-tests/check-root-tiering/bad/root/README.md +1 -0
  580. package/payload/gate-sdk/gate-tests/check-root-tiering/bad/root/stray.txt +1 -0
  581. package/payload/gate-sdk/gate-tests/check-root-tiering/good/allow.list +3 -0
  582. package/payload/gate-sdk/gate-tests/check-root-tiering/good/args +1 -0
  583. package/payload/gate-sdk/gate-tests/check-root-tiering/good/expect.txt +1 -0
  584. package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/LICENSE +1 -0
  585. package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/README.md +1 -0
  586. package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/somedir/keep.txt +1 -0
  587. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/args +1 -0
  588. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/expect.txt +1 -0
  589. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/warn.sh +5 -0
  590. package/payload/gate-sdk/gate-tests/check-shellcheck/good/args +1 -0
  591. package/payload/gate-sdk/gate-tests/check-shellcheck/good/expect.txt +1 -0
  592. package/payload/gate-sdk/gate-tests/check-shellcheck/good/ok.sh +4 -0
  593. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +4 -0
  594. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/violation.sh +7 -0
  595. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/args +4 -0
  596. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/expect.txt +1 -0
  597. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/scripts/gate-sdk-config.sh +5 -0
  598. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +4 -0
  599. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +4 -0
  600. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +6 -0
  601. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +4 -0
  602. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/expect.txt +1 -0
  603. package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +5 -0
  604. package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/args +9 -0
  605. package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/delegation-kit/templates/agent-budget-guard.sh +16 -0
  606. package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/expect.txt +1 -0
  607. package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/scripts/agent-budget-guard.sh +17 -0
  608. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +8 -0
  609. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/agent-budget-guard.sh +16 -0
  610. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/delegation-config.sh +3 -0
  611. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/usage-poller.sh +6 -0
  612. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -0
  613. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +16 -0
  614. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/delegation-config.sh +4 -0
  615. package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/args +3 -0
  616. package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/expect.txt +1 -0
  617. package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/leaky.test.sh +5 -0
  618. package/payload/gate-sdk/gate-tests/check-test-hermetic/good/args +3 -0
  619. package/payload/gate-sdk/gate-tests/check-test-hermetic/good/exempt.test.sh +4 -0
  620. package/payload/gate-sdk/gate-tests/check-test-hermetic/good/expect.txt +1 -0
  621. package/payload/gate-sdk/gate-tests/check-test-hermetic/good/sourced.test.sh +5 -0
  622. package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +84 -0
  623. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/args +2 -0
  624. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
  625. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +3 -0
  626. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/leak.txt +1 -0
  627. package/payload/gate-sdk/gate-tests/check-tree-terms/good/args +2 -0
  628. package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -0
  629. package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
  630. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/clean.txt +1 -0
  631. package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/.workflow/payload.txt +1 -0
  632. package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/.workflow/projection.txt +1 -0
  633. package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/expect.txt +1 -0
  634. package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/.workflow/projection.txt +1 -0
  635. package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/.workflow/wire.txt +1 -0
  636. package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/expect.txt +1 -0
  637. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +87 -0
  638. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +78 -0
  639. package/payload/gate-sdk/gate-tests/run-for-path.test.sh +77 -0
  640. package/payload/gate-sdk/lib/consumer-smoke.sh +32 -0
  641. package/payload/gate-sdk/lib/gate.sh +216 -0
  642. package/payload/gate-sdk/lib/inject.sh +35 -0
  643. package/payload/gate-sdk/lib/test-hermetic.sh +11 -0
  644. package/payload/gate-sdk/smoke/install.sh +84 -0
  645. package/payload/gate-sdk/smoke/violation.sh +13 -0
  646. package/payload/gate-sdk/templates/check-skeleton.sh +23 -0
  647. package/payload/gate-sdk/templates/gates-workflow.yml +55 -0
  648. package/payload/gate-sdk/templates/msg-patterns.list +21 -0
  649. package/payload/guard-kit/README.md +65 -0
  650. package/payload/guard-kit/SPEC.md +590 -0
  651. package/payload/guard-kit/bin/compare-settings-allow.sh +58 -0
  652. package/payload/guard-kit/bin/run-guard-tests.sh +86 -0
  653. package/payload/guard-kit/bin/scan-prompts.sh +166 -0
  654. package/payload/guard-kit/bin/scratch-run.sh +34 -0
  655. package/payload/guard-kit/gate-tests/scan-prompts.test.sh +70 -0
  656. package/payload/guard-kit/gate-tests/scratch-run.test.sh +62 -0
  657. package/payload/guard-kit/guard-tests/cases.tsv +117 -0
  658. package/payload/guard-kit/guard-tests/escalation-cases.tsv +13 -0
  659. package/payload/guard-kit/lib/guard.sh +448 -0
  660. package/payload/guard-kit/smoke/install.sh +26 -0
  661. package/payload/guard-kit/templates/bash-guard.sh +18 -0
  662. package/payload/guard-kit/templates/close-triage.md +31 -0
  663. package/payload/guard-kit/templates/escalation-guard.sh +27 -0
  664. package/payload/guard-kit/templates/guard-config.sh +2 -0
  665. package/payload/guard-kit/templates/settings-hooks.json +19 -0
  666. package/payload/guard-kit/templates/wakeup-guard.sh +20 -0
  667. package/payload/lifecycle-kit/README.md +106 -0
  668. package/payload/lifecycle-kit/SPEC.md +1492 -0
  669. package/payload/lifecycle-kit/bin/close-surfaces.sh +94 -0
  670. package/payload/lifecycle-kit/bin/enter-stage.sh +215 -0
  671. package/payload/lifecycle-kit/bin/file-gap.sh +43 -0
  672. package/payload/lifecycle-kit/bin/install-lifecycle.sh +36 -0
  673. package/payload/lifecycle-kit/bin/session-id.sh +75 -0
  674. package/payload/lifecycle-kit/checks/check-close-surfaces.sh +63 -0
  675. package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +98 -0
  676. package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +54 -0
  677. package/payload/lifecycle-kit/checks/check-merge-attrs.sh +69 -0
  678. package/payload/lifecycle-kit/checks/check-shim-restatement.sh +97 -0
  679. package/payload/lifecycle-kit/checks/check-skill-binding.sh +59 -0
  680. package/payload/lifecycle-kit/checks/check-stage-entry.sh +197 -0
  681. package/payload/lifecycle-kit/checks/check-stage-evidence.sh +81 -0
  682. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +47 -0
  683. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +96 -0
  684. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/args +1 -0
  685. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/expect.txt +1 -0
  686. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/owners/inbox.md +5 -0
  687. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +4 -0
  688. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/args +1 -0
  689. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/expect.txt +1 -0
  690. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/inbox.md +5 -0
  691. package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +4 -0
  692. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +66 -0
  693. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/args +2 -0
  694. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/evidence.txt +2 -0
  695. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/expect.txt +1 -0
  696. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/queue-head.md +8 -0
  697. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/queue-work.md +5 -0
  698. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/args +2 -0
  699. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/evidence.txt +3 -0
  700. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/expect.txt +1 -0
  701. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/queue-head.md +8 -0
  702. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/queue-work.md +5 -0
  703. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +56 -0
  704. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +11 -0
  705. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/args +1 -0
  706. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/expect.txt +1 -0
  707. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +11 -0
  708. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/args +1 -0
  709. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/expect.txt +1 -0
  710. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +59 -0
  711. package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +6 -0
  712. package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/expect.txt +1 -0
  713. package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +5 -0
  714. package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/expect.txt +1 -0
  715. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +113 -0
  716. package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/args +2 -0
  717. package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/commands/build.md +6 -0
  718. package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/corpus.md +4 -0
  719. package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/expect.txt +1 -0
  720. package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/args +2 -0
  721. package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/commands/build.md +5 -0
  722. package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/corpus.md +4 -0
  723. package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/expect.txt +1 -0
  724. package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +80 -0
  725. package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/args +1 -0
  726. package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/commands/build.md +5 -0
  727. package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/expect.txt +1 -0
  728. package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/templates/build.md +7 -0
  729. package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/args +1 -0
  730. package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/commands/build.md +7 -0
  731. package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/expect.txt +1 -0
  732. package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/templates/build.md +7 -0
  733. package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +84 -0
  734. package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +7 -0
  735. package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/TASK-QUEUE.md +13 -0
  736. package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/expect.txt +1 -0
  737. package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +7 -0
  738. package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/TASK-QUEUE.md +13 -0
  739. package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/expect.txt +1 -0
  740. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +251 -0
  741. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +6 -0
  742. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/TASK-QUEUE.md +13 -0
  743. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/expect.txt +1 -0
  744. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +6 -0
  745. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/TASK-QUEUE.md +13 -0
  746. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/expect.txt +1 -0
  747. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +115 -0
  748. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/args +1 -0
  749. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +2 -0
  750. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +2 -0
  751. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +2 -0
  752. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +2 -0
  753. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -0
  754. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/args +1 -0
  755. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +2 -0
  756. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +2 -0
  757. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +2 -0
  758. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +2 -0
  759. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +2 -0
  760. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/expect.txt +1 -0
  761. package/payload/lifecycle-kit/lib/stages.sh +179 -0
  762. package/payload/lifecycle-kit/smoke/install.sh +341 -0
  763. package/payload/lifecycle-kit/smoke/violation.sh +8 -0
  764. package/payload/lifecycle-kit/templates/lead.md +271 -0
  765. package/payload/lifecycle-kit/templates/lifecycle-config.sh +2 -0
  766. package/payload/lifecycle-kit/templates/release-sweep.md +39 -0
  767. package/payload/lifecycle-kit/templates/stages/align.md +65 -0
  768. package/payload/lifecycle-kit/templates/stages/build.md +78 -0
  769. package/payload/lifecycle-kit/templates/stages/close.md +122 -0
  770. package/payload/lifecycle-kit/templates/stages/scope.md +112 -0
  771. package/payload/lifecycle-kit/templates/stages/spec.md +91 -0
  772. package/payload/lifecycle-kit/templates/stages/validate.md +54 -0
  773. package/payload/lifecycle-kit/templates/upgrade.md +41 -0
  774. package/payload/queue-kit/README.md +78 -0
  775. package/payload/queue-kit/SPEC.md +797 -0
  776. package/payload/queue-kit/bin/lesson-sink.sh +28 -0
  777. package/payload/queue-kit/bin/queue-index.sh +182 -0
  778. package/payload/queue-kit/bin/roadmap.sh +76 -0
  779. package/payload/queue-kit/checks/check-queue-entry-budget.sh +104 -0
  780. package/payload/queue-kit/checks/check-queue-hygiene.sh +81 -0
  781. package/payload/queue-kit/checks/check-queue-prose-precondition.sh +63 -0
  782. package/payload/queue-kit/checks/check-queue-sections.sh +44 -0
  783. package/payload/queue-kit/checks/check-queue-slug-liveness.sh +63 -0
  784. package/payload/queue-kit/checks/check-queue-wrap.sh +56 -0
  785. package/payload/queue-kit/checks/check-roadmap-fresh.sh +110 -0
  786. package/payload/queue-kit/checks/check-tag-lead-line.sh +70 -0
  787. package/payload/queue-kit/checks/check-task-conservation.sh +50 -0
  788. package/payload/queue-kit/checks/check-task-names.sh +128 -0
  789. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +33 -0
  790. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +4 -0
  791. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +6 -0
  792. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +35 -0
  793. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +6 -0
  794. package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +17 -0
  795. package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +1 -0
  796. package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +25 -0
  797. package/payload/queue-kit/gate-tests/check-queue-hygiene/good/expect.txt +1 -0
  798. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +15 -0
  799. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/expect.txt +1 -0
  800. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/TASK-QUEUE.md +25 -0
  801. package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/expect.txt +1 -0
  802. package/payload/queue-kit/gate-tests/check-queue-sections/bad/TASK-QUEUE.md +13 -0
  803. package/payload/queue-kit/gate-tests/check-queue-sections/bad/expect.txt +1 -0
  804. package/payload/queue-kit/gate-tests/check-queue-sections/good/TASK-QUEUE.md +15 -0
  805. package/payload/queue-kit/gate-tests/check-queue-sections/good/expect.txt +1 -0
  806. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +17 -0
  807. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +4 -0
  808. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +1 -0
  809. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +3 -0
  810. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +19 -0
  811. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +5 -0
  812. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/expect.txt +1 -0
  813. package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +3 -0
  814. package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +15 -0
  815. package/payload/queue-kit/gate-tests/check-queue-wrap/bad/expect.txt +1 -0
  816. package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +25 -0
  817. package/payload/queue-kit/gate-tests/check-queue-wrap/good/expect.txt +1 -0
  818. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +24 -0
  819. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/args +5 -0
  820. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/emit.txt +8 -0
  821. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -0
  822. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/projection.txt +16 -0
  823. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +6 -0
  824. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +22 -0
  825. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/args +5 -0
  826. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/emit.txt +7 -0
  827. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/expect.txt +1 -0
  828. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/projection.txt +16 -0
  829. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +6 -0
  830. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +25 -0
  831. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +2 -0
  832. package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +30 -0
  833. package/payload/queue-kit/gate-tests/check-tag-lead-line/good/expect.txt +1 -0
  834. package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -0
  835. package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +1 -0
  836. package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +25 -0
  837. package/payload/queue-kit/gate-tests/check-task-names/good/expect.txt +1 -0
  838. package/payload/queue-kit/gate-tests/queue-index.test.sh +159 -0
  839. package/payload/queue-kit/gate-tests/roadmap.test.sh +197 -0
  840. package/payload/queue-kit/lib/queue.sh +193 -0
  841. package/payload/queue-kit/smoke/install.sh +22 -0
  842. package/payload/queue-kit/smoke/violation.sh +8 -0
  843. package/payload/queue-kit/templates/TASK-QUEUE.md +43 -0
  844. package/payload/queue-kit/templates/queue-config.sh +2 -0
  845. package/payload/site-kit/README.md +61 -0
  846. package/payload/site-kit/SPEC.md +269 -0
  847. package/payload/site-kit/checks/check-docs-cname-parity.sh +80 -0
  848. package/payload/site-kit/checks/check-docs-render-fidelity.sh +167 -0
  849. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +4 -0
  850. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/expect.txt +1 -0
  851. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/site-config.sh +7 -0
  852. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/tree/CNAME +1 -0
  853. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/tree/README.md +5 -0
  854. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +5 -0
  855. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -0
  856. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/site-config.sh +7 -0
  857. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/CNAME +1 -0
  858. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/docs/posts/2026-01-01-legacy.md +4 -0
  859. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/index.md +4 -0
  860. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/pkg/gate-tests/fixture.md +5 -0
  861. package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/args +8 -0
  862. package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/expect.txt +1 -0
  863. package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/tree/docs/install.md +38 -0
  864. package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/args +6 -0
  865. package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/expect.txt +1 -0
  866. package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/tree/docs/install.md +35 -0
  867. package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +87 -0
  868. package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +80 -0
  869. package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +90 -0
  870. package/payload/site-kit/lib/site.sh +29 -0
  871. package/payload/site-kit/smoke/install.sh +26 -0
  872. package/payload/site-kit/smoke/violation.sh +20 -0
  873. package/payload/site-kit/templates/site-health.yml +164 -0
  874. package/profiles.list +53 -0
@@ -0,0 +1,39 @@
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.
12
+
13
+ ## Session ritual
14
+
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.>*
36
+
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.
@@ -0,0 +1,65 @@
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.
5
+
6
+ **First step — stamp evidence.** Run lifecycle-kit's `bin/enter-stage.sh
7
+ align`: it appends `<iteration> align <session-id> <date>` 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.
18
+
19
+ ## Trigger (align is trigger-gated)
20
+
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).
30
+
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>`
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).
37
+
38
+ ## Session ritual
39
+
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
+ Commit all spec changes in a single `chore:` commit.
45
+
46
+ **Audit the amendment against itself before auditing it against the tree.** Two
47
+ defects are visible on the amendment alone and both survive a green battery. An
48
+ author-stated count ("three things and no fourth") is an assertion about the
49
+ deliverable, so check it against what the deltas actually mandate rather than
50
+ against the sentence it heads. And every `## Existing sections updated` entry
51
+ must name the delta that owns it (canon-kit/templates/SPEC-amendment.md).
52
+
53
+ **Every amendment's "wires cleanly against the current tree" is a hypothesis,
54
+ and the align audit is its first test.** Authoring a producer silently asserts
55
+ the consumer's read side already matches — it rarely does. Verify every
56
+ cross-component literal *at the read site*: grep the consumer's actual match
57
+ arms, don't trust the amendment's prose. A **negative** existence claim ("no
58
+ such harness/helper/gate exists yet") is the audit's weakest evidence shape: a
59
+ literal-string grep proves only that the spellings you guessed are absent, and
60
+ the thing you are about to build often already exists under a spelling you did
61
+ not anticipate. Before asserting absence, search the *concept* two ways — the
62
+ symbol under its plausible spellings **and** the directory that would own it —
63
+ or write the claim bounded ("no match for X") rather than absolute. When scope authored a new gate, the
64
+ audit is that gate's first real run — the drift it surfaces is a backfill
65
+ worklist to land before build, not a reason the gate is wrong.
@@ -0,0 +1,78 @@
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>` 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>`
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>` 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.
54
+
55
+ ## Session ritual
56
+
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
+ **Run the system; don't reason about it** — when a running system is
73
+ reachable, reproduce first, read second. Recorded evidence rots: a static
74
+ trace in a task body is a dated hypothesis to re-verify, not a premise. A
75
+ change carrying an artifact surface — a change whose real output is a deployed
76
+ or generated artifact — names that surface and exercises the artifact
77
+ deployment-faithfully before the stage exits; a green battery is tree-correct,
78
+ not artifact-correct (Oracle-first).
@@ -0,0 +1,122 @@
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).
4
+
5
+ **First step — stamp evidence.** Run lifecycle-kit's `bin/enter-stage.sh
6
+ close`: it appends `<iteration> close <session-id> <date>` 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.
17
+
18
+ ## Session ritual
19
+
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).
29
+
30
+ 1. **Process Lessons Learned** → durable rules or debt tasks, then clear the
31
+ section. **Give each entry an explicit disposition before clearing, and
32
+ stamp it** — one line per entry into `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE`
33
+ (`<iteration> lesson <kind> <ref> — <lead-line prefix>`), the record
34
+ `check-lesson-disposition` reads when the entry leaves the queue (the
35
+ stamp, not the commit body, is the mechanically-decidable evidence — the
36
+ pre-commit battery has no commit message yet). The disposition set is
37
+ →rule (name the file + section; prefer a stage-local skill file over an
38
+ always-loaded doc for a stage-local procedure), →task (name the new slug),
39
+ →harvest (a lesson carrying a configured harvest tag on its lead line —
40
+ route its *body* to the sink this skill names for that tag, below), or
41
+ →discard (state why it needs no durable home — a lesson that is private
42
+ rule content discards to the consumer's local-only private brief, if one
43
+ exists, rather than any tracked surface). Clearing is not
44
+ processing: a lesson naming a concrete *unfixed gap* must become a task,
45
+ not evaporate. When a lesson claims it was "already filed under <slug>",
46
+ verify the target task's **body** actually carries the specific finding
47
+ before dispositioning →task — the slug merely existing is not enough.
48
+ Gap generalization, per lesson recording drift no check caught: name the
49
+ check class that should have caught it, then either file the missing
50
+ check as a deferred task or state in one line why no scanner is
51
+ buildable — the disposition is not complete without one of the two.
52
+ Lesson-vs-task litmus (holds at filing time in any stage, not just here):
53
+ if the deliverable and its done-state are nameable now, it is a task —
54
+ file it in the deferred section directly, never stage it in Lessons where
55
+ it waits a stage and risks →discard; Lessons is for observations about
56
+ how the work should be done, whose durable home (rule vs task vs nothing)
57
+ genuinely needs this stage's call.
58
+ *<harvest-routing: harvest routing table: each `QUEUE_KIT_LESSON_TAGS` tag →
59
+ the sink file its body appends to, plus the sink's reclaim path (a gitignored
60
+ sink needs a named trigger that empties it — the runtime-artifact lifecycle
61
+ rule).>*
62
+ 2. **Drain the gap inbox** (`LIFECYCLE_KIT_GAP_INBOX_FILE`,
63
+ §The committed gap inbox) → disposition every `- <date> — <gap>` bullet,
64
+ then **truncate the inbox to its `# contract:` header**. The disposition set
65
+ is →promote (file a deferred `[design-pending]` queue entry for the gap),
66
+ →fix (resolve it inline this session), or →discard (state why in the close
67
+ commit message — the bullet's own prose is the disposition body). The date
68
+ feeds the staleness read (an aged bullet is a signal, not a free pass).
69
+ Draining is not deleting: a bullet naming a concrete unfixed gap must become a
70
+ task or a fix, not evaporate — the same clearing-is-not-processing rule as
71
+ Lessons. The next iteration's scope entry refuses a non-empty inbox
72
+ (§bin/enter-stage.sh), so an undrained gap blocks the boundary rather than
73
+ crossing it silently.
74
+ 3. **Sweep the inbound triage surfaces** — run `bin/close-surfaces.sh` and
75
+ disposition every row (§The close-surface roster). The roster is derived, not
76
+ enumerated here or in the binding below: a `forced=` row has a structural
77
+ forcing function and cannot be skipped silently; an `advisory` row may be
78
+ skipped, but the skip is a judgment to state, not an omission to leave
79
+ invisible. An `(undeclared)` row is a capture surface nobody declared — file
80
+ the missing declaration rather than reading past it.
81
+ *<housekeeping: your housekeeping sweeps beyond the roster: deprecation scan,
82
+ gate-runtime budget check, backlog-aging / premise-rot review, and the
83
+ per-surface triage procedures the roster's rows route to.>*
84
+ 4. **Clear Done.**
85
+ 5. Review top-level docs for staleness (*is it still true?*). Same
86
+ gap-generalization obligation as step 1, per staleness actually found:
87
+ name the check class that should have caught it, and file the missing
88
+ check as a deferred task or state in one line why no scanner is
89
+ buildable — a silent fix forfeits the check.
90
+ 6. **Runtime-artifact lifecycle check** — any gitignored/runtime artifact
91
+ introduced this iteration (log, cache, scratch dir) has a named cleanup
92
+ trigger: a write-path needs a paired reclaim-path. For a workflow-directory
93
+ artifact the roster already answers it: the `reclaim=` field is that named
94
+ trigger, and `check-close-surfaces` blocks a capture-tier declaration without
95
+ one. What stays a judgment here is the artifact *outside* that directory.
96
+ 7. **Release disposition** — run after the surface-mutating steps above and
97
+ **before** the brevity pass (the disposition note is itself such a write).
98
+ Every close dispositions the iteration at the release boundary: read the
99
+ consumer's release policy (the `release-policy` slot below) and either
100
+ execute its release procedure or stamp an explicit no-release line. Silence
101
+ is not a disposition — a close that says nothing about release is incomplete.
102
+ Stamp one line into the consumer-named disposition-evidence file:
103
+ `<iteration> release <version|none> — <one-line basis>` (the
104
+ `check-lesson-disposition` contract shape at the release boundary, the same
105
+ lineage release-sweep's stamp follows) — `<version>` is the tag applied,
106
+ `none` states the both-None (or consumer-equivalent) outcome. Ordering: a tag
107
+ names a commit, so the tag-and-host-release half of the procedure runs *after*
108
+ the iteration's final commit lands; the note-authoring and stamp halves ride
109
+ the close commits themselves.
110
+ *<release-policy: the consumer's release procedure and criteria source by
111
+ citation, the disposition-evidence path, and any boundary-only sub-procedures
112
+ (e.g. a major-only deprecation sweep); or a plain "no release process — every
113
+ iteration stamps none" line for a consumer without one.>*
114
+ 8. **Brevity pass on the always-loaded surfaces** — run this **last**, after
115
+ every surface-mutating step above. Scope by principle, not a fixed list:
116
+ every surface injected into each agent session. Staleness asks *is it
117
+ still true?*; brevity asks *is each block worth its standing per-session
118
+ token cost?* — reword/delete over annotating; outdated context goes to git
119
+ history. On-demand files (specs, this skill) are exempt — their cost is
120
+ paid only when opened.
121
+ 9. **Optionally merge** — an iteration can close without merging if validate
122
+ is incomplete or a follow-up iteration is planned.
@@ -0,0 +1,112 @@
1
+ The `scope` stage of an iteration — the exploratory half of design. Identify and
2
+ bound the iteration's units, promote them into the active queue — debt always,
3
+ features only where scope also authors (below) — and suggest the
4
+ iteration name; author the promoted features' design amendments here **unless
5
+ the roster splits out a dedicated authoring stage** (below), which then owns
6
+ them. Exit condition: *<exit-condition: your scope exit
7
+ condition — e.g. no design-pending tag left in the active queue; your
8
+ amendment-readiness gate green>*.
9
+
10
+ **First step — reset + stamp evidence.** Run lifecycle-kit's
11
+ `bin/enter-stage.sh scope`. `scope` is the iteration boundary, so the tool
12
+ *resets* the evidence file: it truncates `.workflow/WORKFLOW-STATE.txt` back
13
+ to its header (dropping the prior iteration's stamps — git history is the
14
+ permanent audit trail; the gates only ever read the current iteration), stamps
15
+ `— scope <session-id> <date>` under the unnamed-iteration sentinel, and sets
16
+ the queue header to `## Iteration: —`. It reads `<session-id>`
17
+ from `bin/session-id.sh` itself (the newest transcript — never hand-picked),
18
+ uses `date +%F`, and refuses (writing nothing) if `check-stage-entry` is red.
19
+ On a refusal, **do not force the entry** — escalate to the lead (where one
20
+ exists and this is not a standalone session) and stop; a refused entry is a gate
21
+ verdict to resolve at its source, never to override.
22
+ *<evidence-reset: reset any per-iteration evidence file your validate stage
23
+ writes that the tool does not already truncate — the tool truncates
24
+ WORKFLOW-STATE, the lesson-evidence file, and every `LIFECYCLE_KIT_BOUNDARY_TRUNCATE`
25
+ member, in the same commit as this stamp.>* A new
26
+ iteration stays `—` until this skill names it (below); only `scope` resets,
27
+ later stages append. Honest limit: the stamp proves the skill was *invoked*,
28
+ not that the work was done faithfully — it forces deliberate invocation and an
29
+ audit trail, nothing more.
30
+
31
+ ## Session ritual
32
+
33
+ *<ritual: your scope ritual: index the governing docs before reading them
34
+ whole; update design-ahead projections (diagrams, models) in scope itself
35
+ behind a gate-safe PROPOSED marker so review happens a stage before the code;
36
+ ask clarifying questions about scope before proposing; name the grammar owner
37
+ of each governed surface this stage writes — queue-entry tags, amendment
38
+ refs — so a session reads the owner instead of re-deriving the grammar from
39
+ a gate's source.>*
40
+
41
+ **Triage every task at filing — feature vs debt by the new-names litmus.** A
42
+ task that adds any name to a governed surface (a script, a config knob, a
43
+ file or directory convention, a tag, a contract another component must
44
+ honor) is a feature: its design amendment is authored — in this stage unless
45
+ the roster splits authoring into a dedicated stage (below), however
46
+ small the diff looks. Debt converges behavior on names the specs already
47
+ carry and needs no amendment. The tell for misfiling: a design ruling
48
+ longer than a few lines drafted into a queue entry is an amendment inlined
49
+ where no gate can see it — move it into one.
50
+
51
+ **A standing directive is a theme, not a unit list.** A directive received from
52
+ a lead or operator at iteration open bounds this survey — it names the theme,
53
+ never the units. The intake sweep and the premise re-verification run regardless,
54
+ and the proposed unit set is escalated for ruling before promotion: to the lead
55
+ under the split posture, to the user directly under none — the stage's ordinary
56
+ stop. The destination changes; the proposal step does not.
57
+
58
+ **Weigh the iteration's cost before opening it — the economic composition test.**
59
+ A lone sub-threshold unit may not justify a whole iteration's fixed cost: either
60
+ bundle related-surface deferred entries into the iteration, or argue the unit is
61
+ significant enough to stand alone. The cost principle — amortize a fixed setup
62
+ cost across a shared-surface batch — is the lead's, owned by
63
+ lifecycle-kit/templates/lead.md §Economics and applied there to dispatch
64
+ batching; scope applies the same principle one axis over, to iteration
65
+ composition. Cite it and weigh it here; do not re-derive the economics.
66
+
67
+ **Authoring the promoted features' amendments is scope's — unless the roster
68
+ splits out a dedicated authoring stage.** Where it does, that stage authors the
69
+ amendment(s) and pairs the feature entries into the queue, and scope keeps only
70
+ the exploratory half: survey, propose, name, and debt promotion — ending at the
71
+ boundary so the survey context drops before authoring begins (that drop is the
72
+ split's whole economics). Feature promotion is not a separable step that could
73
+ fall to either stage: writing the amendment *is* promoting the entry
74
+ (canon-kit/SPEC.md §The amendment lifecycle, the bidirectional rule), so the
75
+ stage that authors is necessarily the stage that promotes. Either way the
76
+ detailed authoring how-to — causal
77
+ completeness (every new field's producer, consumer, and named reader, surveyed
78
+ across the whole component set) and the bidirectional queue pairing — is
79
+ single-sourced in the authoring stage's template
80
+ (`lifecycle-kit/templates/stages/spec.md`); a default-roster scope that authors
81
+ follows it here.
82
+
83
+ A premise inherited from a queued task ("clean/mechanical", "already filed",
84
+ "dead code") is a dated hypothesis — re-verify it against the current tree
85
+ before building on it, whether or not this stage goes on to author.
86
+
87
+ When done, **set the iteration name without waiting for confirmation** and
88
+ inform the user: replace the `—` placeholder in the queue header AND update
89
+ the WORKFLOW-STATE scope stamp to match (`check-stage-evidence` requires
90
+ every stamp's iteration to match the header's, so they ride in one commit).
91
+ The header carries the *name axis alone* — there is no stage field to set, and
92
+ no stage field to advance. The *arriving* stage's skill moves the cursor by
93
+ stamping, as that skill's first step. Invoking the next skill is the
94
+ stage-advance approval (the name itself needs none).
95
+
96
+ Close by **recommending the next stage**: where the roster splits out a
97
+ dedicated authoring stage and this iteration promoted a feature, that stage
98
+ (it authors the promoted amendments); otherwise the trigger-gated audit stage
99
+ when one of its triggers fired this session, else the build stage. The
100
+ cross-component trigger is mechanical — an amendment on disk spanning ≥2
101
+ component dirs makes `check-stage-entry` assertion C demand the audit stamp
102
+ (or a user-ruled waiver) at the next stage's entry — so whichever stage
103
+ promoted such an amendment should say so rather than let the entry discover it.
104
+
105
+ With this stage's promotion commit landed (debt, plus the features only where
106
+ scope authored them), the iteration named, and the next stage
107
+ recommended, present the consumer's **hand-off** — how this consumer carries a
108
+ closed scope into the remaining stages: *<handoff: the consumer's start-sequence
109
+ choice at this boundary — driving the rest under a lead versus steering the
110
+ stages by hand, or a plain "no lead — run the stages by hand" line for a
111
+ lead-less or harness-less consumer; point at the consumer's documented
112
+ start sequence by citation, never restating its steps here>*.
@@ -0,0 +1,91 @@
1
+ The `spec` (amendment-authoring) stage of an iteration — the generative half of
2
+ design, split out from `scope` on a roster that carries a dedicated authoring
3
+ stage. The ontology: **scope bounds the units; `spec` authors the amendments;
4
+ the audit stage independently verifies them.** Author the design amendment(s)
5
+ for the feature units this iteration promotes, pair each into the active queue,
6
+ and recommend the next stage. Exit condition: *<exit-condition: your spec exit
7
+ condition — every promoted feature carries a `[spec:]` ref resolving to an
8
+ amendment on disk, and each amendment's causal-completeness check is green>*.
9
+
10
+ ## Trigger (spec is trigger-gated)
11
+
12
+ Run `spec` only when this iteration promotes ≥1 **feature** unit — an amendment
13
+ to author. A **debt-only** iteration skips `spec` entirely (scope advances to
14
+ the next stage), exactly as the audit stage is skipped when no cross-component
15
+ amendment exists. The trigger is **procedural** — scope's next-stage
16
+ recommendation — and backstopped by the existing amendment-pairing gate: a
17
+ feature entry carries a `[spec: <ref>]` only once this stage has authored the
18
+ file, and the bidirectional rule reds any `[spec:]` ref resolving to no file, so
19
+ a skipped `spec` cannot ship a feature without its amendment (the same
20
+ procedural-plus-one-gated-backstop shape as the audit stage's own trigger).
21
+
22
+ **First step — stamp evidence.** Run lifecycle-kit's `bin/enter-stage.sh spec`:
23
+ it appends `<iteration> spec <session-id> <date>` to
24
+ `.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the stamp
25
+ proves invocation, not faithful execution), reading `<session-id>` from
26
+ `bin/session-id.sh` (the newest transcript — never hand-picked), using
27
+ `date +%F`, and refusing (writing nothing) if `check-stage-entry` is red. On a
28
+ refusal, **do not force the entry** — escalate to the lead (where one exists and
29
+ this is not a standalone session) and stop; a refused entry is a gate verdict to
30
+ resolve at its source, never to override. `spec`
31
+ is **not** the iteration boundary, so it **appends** — only the first stage
32
+ resets the evidence file. That stamp *is* the transition — the last stamp is the
33
+ stage cursor, so nothing flips and no queue write is involved. Commit the stamp
34
+ on its own.
35
+
36
+ Because this is a **fresh session** — a fresh prompt cache, on the tier the
37
+ lead chose — the causal-completeness authoring no longer re-reads scope's whole
38
+ survey context through every authoring turn; the exploratory sweep dropped at
39
+ scope's session boundary. That drop is the point of the split.
40
+
41
+ ## Session ritual
42
+
43
+ *<ritual: your spec ritual: hold the provenance seam and config-via-env
44
+ convention; author each promoted feature's amendment against the amendment
45
+ lifecycle and causal-completeness contract your canon-kit owns; name the
46
+ queue-entry grammar and `[spec:]` ref-resolution owners the promotion writes
47
+ against.>*
48
+
49
+ **Verify causal completeness before declaring an amendment ready.** Every new
50
+ state, event, or interface the amendment introduces names its **producer** (what
51
+ code path or trigger creates it — and that the producer's enabling config is
52
+ actually emitted everywhere it must be), its **consumer** (what receives it, by
53
+ what mechanism), updates any **existing integration prose** describing the prior
54
+ flow, and gives every new field a **named reader** (a field with no named reader
55
+ should be removed). Survey those readers across the **whole component set**,
56
+ never a hand-picked subset, and never silence a probe's stderr — a `2>/dev/null`
57
+ on a path grep reads a bad path as "no reader", manufacturing the false negative
58
+ that hides a cross-component reader.
59
+
60
+ **Label every delta with its work class.** In the amendment's §What changes,
61
+ every delta carries a **work-class** tag — either **mechanical** or
62
+ **design-bearing**. A delta is **mechanical** when executing it demands only
63
+ oracle-running — running a fixed verification battery, a rename/merge sweep, a
64
+ mechanical pin — with low generative judgment. It is **design-bearing** when
65
+ executing it demands generative or verificational judgment — authoring a
66
+ contract, a cross-spec audit, a non-obvious implementation. The label records
67
+ what the delta *demands*, never a model name: a baked model name is drift by
68
+ construction against a churning roster, and a spec-time model *recommendation*
69
+ would attach to a batch the lead has not cut yet (the lead cuts batches at
70
+ build). The two values apply delegation-kit's unit-shape distinction
71
+ (`templates/agent-execution.md`, "Match the dispatched model and effort to the
72
+ unit's shape" — a read-heavy or mechanical unit rides a cheaper model class; a
73
+ unit carrying design judgment stays on the supervisor's class) at authoring
74
+ time. This is judgment `spec` holds and the lead does not: `spec` knows what
75
+ each delta demands, the lead knows only what the queue entry says. The label's
76
+ one reader is the lead's per-batch tier decision (`lead.md` §Economics), which
77
+ reads the labels of a batch's deltas at batch-cut time.
78
+
79
+ **Writing the amendment *is* promoting the deferred entry.** Land the
80
+ `[spec: <ref>]` ref on the feature entry and the amendment file itself in **one
81
+ commit**, satisfying canon-kit's bidirectional rule — without the pairing,
82
+ design rationale and ruled-out alternatives get re-derived under build pressure.
83
+ scope has already run the feature/debt litmus at filing and bounded the unit
84
+ set; this stage authors, it does not re-triage.
85
+
86
+ Close by **recommending the next stage**: the trigger-gated audit stage when one
87
+ of its triggers fired this session (an amendment changing ≥2 components'
88
+ contracts is one — `check-stage-entry` will demand the audit stamp at the next
89
+ stage's entry), otherwise the build stage. A `spec` that authored a
90
+ cross-component amendment should say so rather than let the downstream entry
91
+ discover it.
@@ -0,0 +1,54 @@
1
+ The `validate` stage of an iteration. Run the full test/verification suites.
2
+ Exit condition: *<exit-condition: your validate exit condition — prefer "zero
3
+ NEW failures against a committed baseline" over bare "all pass", which is
4
+ unsatisfiable while any suite is tracked-red on a deferred blocker; each
5
+ held-constant red line carries the live task slug that blocks it>*.
6
+
7
+ **First step — stamp evidence.** Run lifecycle-kit's `bin/enter-stage.sh
8
+ validate`: it appends `<iteration> validate <session-id> <date>` to
9
+ `.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the stamp
10
+ proves invocation, not faithful execution), reading `<session-id>` from
11
+ `bin/session-id.sh`
12
+ (the newest transcript — never hand-picked), using `date +%F`. That stamp *is*
13
+ the transition — the last stamp is the stage cursor, so nothing flips and no
14
+ queue write is involved. Commit the stamp on its own. The tool refuses (writing
15
+ nothing) if
16
+ `check-stage-entry` is red — which for `validate` additionally requires the
17
+ active queue drained before this entry (build is not done until the queue is
18
+ empty). On a refusal, **do not force the entry** — escalate to the lead (where
19
+ one exists and this is not a standalone session) and stop; a refused entry is a
20
+ gate verdict to resolve at its source, never to override.
21
+
22
+ ## Session ritual
23
+
24
+ *<suites: execute your suites. Compilation is not done — a green build is not a
25
+ green test run; gate on the positive success token of your runner, not the
26
+ absence of a failure token. Capture runs to files so the evidence outlives the
27
+ session. Name the baseline-grammar owner any red-triage baseline edit writes
28
+ against.>*
29
+
30
+ **Triage a red against the queue before excavating it.** On any failure,
31
+ first grep the queue's deferred/lessons sections — a pre-existing red is
32
+ usually already a filed task with the diagnosis written. If it's filed: note
33
+ it and move on. Only excavate a failure that is genuinely new or a suspected
34
+ regression from the current diff.
35
+
36
+ When filing a finding, place it by kind: nameable deliverable + done-state ⇒
37
+ queue task (the deferred section, design-pending); an observation about how
38
+ the work should be done ⇒ the lessons section, dispositioned at close.
39
+ Undone work parked as a lesson evaporates; a process insight parked as a
40
+ task rots.
41
+
42
+ **Record the evidence.** Append one line per suite to your per-iteration
43
+ evidence manifest (suite, log digest, verdict, date) and commit it at validate
44
+ completion — the evidence does not exist at the entry stamp, so it rides a
45
+ later commit, not the entry stamp. An iteration with a validate stamp but no
46
+ evidence line is the recorded-nothing gap the manifest closes. If your kit
47
+ provides a codified validate spine — a `run-validate` tool that runs each
48
+ suite, diffs the held-constant baseline, and appends the evidence line —
49
+ invoke it here rather than hand-running the suites and hand-writing the
50
+ manifest.
51
+
52
+ Do not declare validate complete until the baseline diff is clean: no
53
+ baseline-pass item regressed, every held-constant red still carries a live
54
+ blocking slug, and any recovered item has been promoted to pass.
@@ -0,0 +1,41 @@
1
+ The `upgrade` skill — the phase-B disposition walk for a consumer moving their
2
+ vendored kits from one release to the next. Not an iteration stage: it invokes
3
+ no `enter-stage.sh`, stamps no `WORKFLOW-STATE.txt`, and runs in any session at
4
+ an upgrade. Phase A (the deterministic wholesale kit-sync) and this phase-B walk
5
+ are the two halves of the upgrade contract — the install guide §The upgrade
6
+ contract owns the shape, and `gate-sdk/bin/upgrade-smoke.sh` proves it
7
+ mechanically where the consumer has the smoke. Exit condition: the full battery
8
+ is green or every red carries a stamped disposition.
9
+
10
+ ## Session ritual
11
+
12
+ 1. **Run phase A.** Replace the vendored kit directories wholesale at the
13
+ target release and regenerate the generated artifacts, the install guide's
14
+ phase-A steps. Where the upgrade smoke is available, run it first: a green
15
+ verdict is the mechanical proof that the sync is deterministic and the red
16
+ set is declared, before you disposition anything by hand.
17
+ 2. **Read the target release note.** The note whose front-matter `release:`
18
+ names the target version carries two checklists. Register every gate its
19
+ Tightened gates section names into *<gates-list: where this consumer
20
+ registers its gates — the gates.list path when non-default; a new release's
21
+ gate reaches an upgrading consumer only through this declaration, never
22
+ through the phase-A sync, so registering it here is the delivery step.>*, and
23
+ apply each Renamed knobs rename to your own config.
24
+ 3. **Run the full battery; disposition every red.** Each red gate is one of two
25
+ dispositions — **fix-the-tree** (the surface moved; migrate your code to the
26
+ new contract) or **exempt-with-cause** (a gate you shadow or omit from your
27
+ registry, the cause stamped) — and never a weakening of the gate. Stamp one
28
+ disposition line per red into *<disposition-evidence: this consumer's
29
+ evidence/disposition stamp path, committed on the upgrade commit.>*.
30
+ 4. **Judge the semantic residual — the ungateable audit.** For every skill you
31
+ bind through a shim, set the target template's slots beside your shim's slot
32
+ fills. A changed slot set reds `check-skill-binding` and a verbatim copy reds
33
+ `check-shim-restatement`, but the residual — a fill you worded to cover what
34
+ the new template's slot now means to own — clears both gates and cannot be
35
+ gated. The upgrade is that class's audit cadence: surface each changed
36
+ template slot against your fill and delete the wording the template now
37
+ carries for you.
38
+
39
+ The disposition stamp is operator evidence riding the upgrade commit; nothing
40
+ in the kit reads it. The two named slots hold this consumer's residue — where
41
+ its gates register and where its dispositions land.