checkwright 0.20.0 → 0.22.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 (250) hide show
  1. package/README.md +385 -19
  2. package/lib/common/digest.sh +18 -0
  3. package/lib/common/lock.sh +11 -0
  4. package/lib/common/recipe.sh +8 -11
  5. package/lib/doctor.sh +49 -0
  6. package/lib/init.sh +152 -29
  7. package/package.json +2 -2
  8. package/payload/artifact/targets.list +30 -0
  9. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  10. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -0
  11. package/payload/canon-kit/README.md +1 -0
  12. package/payload/canon-kit/SPEC.md +281 -26
  13. package/payload/canon-kit/checks/check-comment-tier.sh +7 -2
  14. package/payload/canon-kit/checks/check-docs-link-convention.sh +11 -4
  15. package/payload/canon-kit/checks/check-md-refs.sh +22 -9
  16. package/payload/canon-kit/checks/check-payload-claim.sh +133 -0
  17. package/payload/canon-kit/checks/check-prose-enum.sh +1 -1
  18. package/payload/canon-kit/checks/check-spec-pointer.sh +15 -4
  19. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
  20. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +26 -3
  21. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/OUTSIDE.md +4 -0
  22. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/index.md +3 -0
  23. package/payload/canon-kit/gate-tests/check-docs-link-convention/good/OUTSIDE.md +4 -0
  24. package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/methodology.md +8 -0
  25. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +94 -0
  26. package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +5 -3
  27. package/payload/canon-kit/gate-tests/check-payload-claim/bad/README.md +15 -0
  28. package/payload/canon-kit/gate-tests/check-payload-claim/bad/expect.txt +2 -0
  29. package/payload/canon-kit/gate-tests/check-payload-claim/bad/install.md +19 -0
  30. package/payload/canon-kit/gate-tests/check-payload-claim/bad/posts/note.md +6 -0
  31. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +8 -0
  32. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/payload-claims.sh +7 -0
  33. package/payload/canon-kit/gate-tests/check-payload-claim/good/README.md +15 -0
  34. package/payload/canon-kit/gate-tests/check-payload-claim/good/expect.txt +2 -0
  35. package/payload/canon-kit/gate-tests/check-payload-claim/good/install.md +20 -0
  36. package/payload/canon-kit/gate-tests/check-payload-claim/good/posts/note.md +6 -0
  37. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +8 -0
  38. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/payload-claims.sh +7 -0
  39. package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +24 -1
  40. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +1 -0
  41. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/widget.sh +1 -0
  42. package/payload/canon-kit/gate-tests/check-spec-pointer/good/widget.sh +1 -0
  43. package/payload/canon-kit/lib/spec.sh +22 -12
  44. package/payload/canon-kit/smoke/install.sh +20 -1
  45. package/payload/canon-kit/templates/SPEC-amendment.md +5 -1
  46. package/payload/context-kit/SPEC.md +38 -7
  47. package/payload/context-kit/lib/toolfloor.sh +1 -1
  48. package/payload/context-kit/smoke/install.sh +3 -1
  49. package/payload/delegation-kit/README.md +2 -1
  50. package/payload/delegation-kit/SPEC.md +590 -48
  51. package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +97 -0
  52. package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +61 -0
  53. package/payload/delegation-kit/checks/check-gate-tamper.sh +1 -1
  54. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/silent.md +7 -0
  55. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/args +1 -0
  56. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/expect.txt +1 -0
  57. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-cheap.md +7 -0
  58. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-inherit.md +8 -0
  59. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/args +1 -0
  60. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/expect.txt +1 -0
  61. package/payload/delegation-kit/lib/delegation.sh +3 -0
  62. package/payload/delegation-kit/smoke/install.sh +3 -1
  63. package/payload/delegation-kit/templates/agent-dispatch-guard.sh +61 -0
  64. package/payload/delegation-kit/templates/agent-execution.md +171 -15
  65. package/payload/delegation-kit/templates/delegation-config.sh +4 -0
  66. package/payload/delegation-kit/templates/dispatch-checklists.md +1 -1
  67. package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +30 -0
  68. package/payload/doctrine-kit/DOCTRINE.md +27 -0
  69. package/payload/doctrine-kit/README.md +5 -0
  70. package/payload/doctrine-kit/SPEC.md +62 -3
  71. package/payload/doctrine-kit/bin/install-doctrine.sh +84 -4
  72. package/payload/doctrine-kit/smoke/install.sh +77 -1
  73. package/payload/drift-kit/README.md +3 -2
  74. package/payload/drift-kit/SPEC.md +253 -20
  75. package/payload/drift-kit/bin/stage-economics.sh +157 -3
  76. package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +42 -0
  77. package/payload/drift-kit/smoke/install.sh +155 -1
  78. package/payload/drift-kit/templates/economics.md +9 -0
  79. package/payload/drift-kit/templates/kpis.list +6 -1
  80. package/payload/evidence-kit/README.md +20 -6
  81. package/payload/evidence-kit/SPEC.md +355 -17
  82. package/payload/evidence-kit/bin/run-validate.sh +51 -9
  83. package/payload/evidence-kit/checks/check-battery-roster.sh +86 -0
  84. package/payload/evidence-kit/checks/check-producer-liveness.sh +34 -0
  85. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/args +1 -0
  86. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/expect.txt +1 -0
  87. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/runner.md +14 -0
  88. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +7 -0
  89. package/payload/evidence-kit/gate-tests/check-battery-roster/good/args +1 -0
  90. package/payload/evidence-kit/gate-tests/check-battery-roster/good/expect.txt +1 -0
  91. package/payload/evidence-kit/gate-tests/check-battery-roster/good/runner.md +14 -0
  92. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +7 -0
  93. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +68 -0
  94. package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/args +1 -0
  95. package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/expect.txt +1 -0
  96. package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/run-validate.lock +1 -0
  97. package/payload/evidence-kit/gate-tests/check-producer-liveness/good/args +1 -0
  98. package/payload/evidence-kit/gate-tests/check-producer-liveness/good/expect.txt +2 -0
  99. package/payload/evidence-kit/gate-tests/check-producer-liveness/good/run-validate.lock +1 -0
  100. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +109 -0
  101. package/payload/evidence-kit/lib/evidence.sh +18 -0
  102. package/payload/evidence-kit/smoke/install.sh +17 -3
  103. package/payload/gate-sdk/README.md +4 -1
  104. package/payload/gate-sdk/SPEC.md +1955 -79
  105. package/payload/gate-sdk/bin/gen-pre-commit.sh +13 -3
  106. package/payload/gate-sdk/bin/run-consumer-smoke.sh +121 -1
  107. package/payload/gate-sdk/bin/run-gate-tests.sh +40 -9
  108. package/payload/gate-sdk/bin/run-gates.sh +32 -3
  109. package/payload/gate-sdk/bin/upgrade-smoke.sh +3 -3
  110. package/payload/gate-sdk/checks/check-action-gh-repo.gate +2 -0
  111. package/payload/gate-sdk/checks/check-action-pinning.gate +2 -0
  112. package/payload/gate-sdk/checks/check-action-run-shell.sh +3 -1
  113. package/payload/gate-sdk/checks/check-core-files.sh +27 -4
  114. package/payload/gate-sdk/checks/check-exec-bit.sh +20 -1
  115. package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +106 -0
  116. package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +6 -7
  117. package/payload/gate-sdk/checks/check-gate-output.sh +9 -1
  118. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +302 -0
  119. package/payload/gate-sdk/checks/check-graph.sh +7 -8
  120. package/payload/gate-sdk/checks/check-readme-roster.sh +5 -0
  121. package/payload/gate-sdk/checks/check-reads-couples.sh +73 -22
  122. package/payload/gate-sdk/checks/check-template-registry-parity.sh +81 -0
  123. package/payload/gate-sdk/checks/check-tree-terms.sh +11 -7
  124. package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +16 -1
  125. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +64 -0
  126. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/args +2 -0
  127. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/expect.txt +5 -0
  128. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/kitroot/checks/check-vendored.gate +2 -0
  129. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/check-ported.gate +2 -0
  130. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +2 -0
  131. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gates.list +4 -0
  132. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stamp.txt +1 -0
  133. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stub-bin +6 -0
  134. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/args +2 -0
  135. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/expect.txt +5 -0
  136. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/kitroot/checks/check-vendored.gate +2 -0
  137. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/check-ported.gate +2 -0
  138. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +2 -0
  139. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gates.list +4 -0
  140. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stamp.txt +1 -0
  141. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stub-bin +5 -0
  142. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +81 -0
  143. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +3 -1
  144. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +3 -1
  145. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/gates/check-sample.sh +3 -1
  146. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +1 -0
  147. package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-sample.sh +1 -0
  148. package/payload/gate-sdk/gate-tests/check-gate-output/good/check-sample.sh +1 -0
  149. package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
  150. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/args +2 -0
  151. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/conservation.md +7 -0
  152. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +12 -0
  153. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/impl/gate.rs +2 -0
  154. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/check-orphan.rs +3 -0
  155. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/publish.yml +15 -0
  156. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +3 -0
  157. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-dup.gate +1 -0
  158. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-dup.sh +3 -0
  159. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +1 -0
  160. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +6 -0
  161. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +3 -0
  162. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +3 -0
  163. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/targets.list +3 -0
  164. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/args +2 -0
  165. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/conservation.md +8 -0
  166. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +7 -0
  167. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/impl/gate.rs +2 -0
  168. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kitroot/check-other.rs +3 -0
  169. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/publish.yml +15 -0
  170. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +3 -0
  171. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-ported.gate +2 -0
  172. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +6 -0
  173. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +2 -0
  174. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +3 -0
  175. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/targets.list +2 -0
  176. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +123 -0
  177. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +139 -0
  178. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/templates/widgets.list +4 -0
  179. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/widgets/widget-one.sh +3 -0
  180. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/widgets/widget-two.sh +3 -0
  181. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +4 -0
  182. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +1 -0
  183. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/scripts/gate-sdk-config.sh +5 -0
  184. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/templates/widgets.list +4 -0
  185. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/widgets/widget-one.sh +3 -0
  186. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/widgets/widget-two.sh +3 -0
  187. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +8 -0
  188. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/beta-kit/templates/rules.list +5 -0
  189. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/beta-kit/templates/table.tsv +4 -0
  190. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -0
  191. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +5 -0
  192. package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +4 -4
  193. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +41 -1
  194. package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +144 -0
  195. package/payload/gate-sdk/lib/consumer-smoke.sh +26 -1
  196. package/payload/gate-sdk/lib/gate.sh +104 -13
  197. package/payload/gate-sdk/lib/inject.sh +21 -1
  198. package/payload/gate-sdk/smoke/install.sh +19 -1
  199. package/payload/guard-kit/README.md +4 -3
  200. package/payload/guard-kit/SPEC.md +88 -10
  201. package/payload/guard-kit/bin/compare-settings-allow.sh +40 -7
  202. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +64 -0
  203. package/payload/guard-kit/lib/guard.sh +1 -0
  204. package/payload/guard-kit/templates/close-triage.md +35 -7
  205. package/payload/guard-kit/templates/guard-config.sh +3 -0
  206. package/payload/lifecycle-kit/README.md +1 -0
  207. package/payload/lifecycle-kit/SPEC.md +589 -33
  208. package/payload/lifecycle-kit/bin/enter-stage.sh +13 -3
  209. package/payload/lifecycle-kit/bin/file-gap.sh +42 -1
  210. package/payload/lifecycle-kit/bin/file-survey.sh +50 -0
  211. package/payload/lifecycle-kit/checks/check-merge-attrs.sh +1 -1
  212. package/payload/lifecycle-kit/checks/check-skill-binding.sh +1 -1
  213. package/payload/lifecycle-kit/checks/check-survey-record.sh +102 -0
  214. package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +1 -0
  215. package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +1 -0
  216. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +1 -0
  217. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/args +2 -0
  218. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +4 -0
  219. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +18 -0
  220. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/args +2 -0
  221. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -0
  222. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +13 -0
  223. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +84 -0
  224. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +94 -0
  225. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +102 -0
  226. package/payload/lifecycle-kit/lib/stages.sh +8 -2
  227. package/payload/lifecycle-kit/smoke/install.sh +17 -1
  228. package/payload/lifecycle-kit/templates/consult.md +73 -0
  229. package/payload/lifecycle-kit/templates/lead.md +141 -10
  230. package/payload/lifecycle-kit/templates/stages/align.md +12 -0
  231. package/payload/lifecycle-kit/templates/stages/build.md +8 -0
  232. package/payload/lifecycle-kit/templates/stages/close.md +25 -4
  233. package/payload/lifecycle-kit/templates/stages/scope.md +34 -0
  234. package/payload/lifecycle-kit/templates/stages/spec.md +8 -0
  235. package/payload/lifecycle-kit/templates/stages/validate.md +8 -0
  236. package/payload/queue-kit/README.md +4 -1
  237. package/payload/queue-kit/SPEC.md +230 -6
  238. package/payload/queue-kit/bin/queue-edges.sh +78 -0
  239. package/payload/queue-kit/checks/check-queue-entry-budget.sh +5 -3
  240. package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +5 -0
  241. package/payload/queue-kit/gate-tests/queue-edges.test.sh +130 -0
  242. package/payload/queue-kit/smoke/install.sh +4 -1
  243. package/payload/queue-kit/templates/TASK-QUEUE.md +3 -0
  244. package/payload/site-kit/SPEC.md +135 -29
  245. package/payload/site-kit/checks/check-docs-render-fidelity.sh +100 -27
  246. package/payload/site-kit/gate-tests/check-docs-render-fidelity-batch.test.sh +158 -0
  247. package/payload/site-kit/lib/site.sh +16 -2
  248. package/payload/site-kit/smoke/install.sh +9 -1
  249. package/payload/gate-sdk/checks/check-action-gh-repo.sh +0 -321
  250. package/payload/gate-sdk/checks/check-action-pinning.sh +0 -55
@@ -156,6 +156,48 @@ nothing the tracked surfaces do not already hold. The lead is a boundary skill,
156
156
  not a stage — it stamps nothing and joins no stage set, so the coverage gate
157
157
  never reads it (the release-sweep precedent, §templates/lead.md).
158
158
 
159
+ **Honest limit on the lead's dispatch precondition.** A lead dispatches stage
160
+ N+1 on stage N's **agent completion notification**, never on an artifact — not
161
+ its commit, its stamp, a clean tree, a green battery, or a cleared `--simulate`
162
+ (§templates/lead.md). That precondition is **prose-only and human-enforced**, and
163
+ the cause is structural rather than budgetary. The signal's **producer is the
164
+ harness**, emitting it when the dispatched session's turn ends — outside every
165
+ governed tree, which is not a gap to close but the direct reason no gate can read
166
+ it; its enabling configuration is the dispatch itself, since the lead dispatches
167
+ in the background with notification (delegation-kit/SPEC.md §The delegation
168
+ model), so the producer is reachable on the ordinary path. Its **consumer is the
169
+ lead**, at the dispatch transition for stage N+1, by the lead's own in-turn wait
170
+ rather than a read. Its **truthfulness** is not the harness's to guarantee: a
171
+ dispatched session that ends its turn on still-running work emits a notification
172
+ that lies, which is what delegation-kit/SPEC.md §Operative residency exists to
173
+ prevent. The limit is recorded here rather than left to be inferred from the
174
+ absence of a gate, because an unstated version reads as an oversight for a later
175
+ session to fix by building the impossible gate. Naming it is also what routes the
176
+ enforcement duty to where it *can* be discharged: the **negative is** assertable
177
+ from the artifact side. A producer-liveness gate wired into
178
+ `LIFECYCLE_KIT_ENTRY_PREFLIGHT` (evidence-kit/SPEC.md §check-producer-liveness)
179
+ answers *is the producer still running?* independently of the signal, which is
180
+ what covers the case where the signal itself is wrong. Precedent for a
181
+ prose-only rule in the same template: the no-sibling-dispatch clause, prose for
182
+ the same reason.
183
+
184
+ **Honest limit on the lead's post-dispatch check routing.** The rule that the
185
+ lead's verify of the evidence-producing stage is a **read** of the committed
186
+ evidence rather than a re-run of the producer (§templates/lead.md, applying
187
+ delegation-kit/SPEC.md §Verify after every agent commit) is likewise
188
+ **prose-only and human-enforced**, and for the generic reason that section
189
+ states: the subject is a lead's *choice of command*, which leaves no tracked
190
+ artifact any check could read. The nearest artifact-side proxy is
191
+ `check-producer-liveness` on the entry-preflight hook (evidence-kit/SPEC.md
192
+ §check-producer-liveness), and its coverage boundary must be stated precisely or
193
+ this limit reads as closed when it is not: that gate answers *is a producer
194
+ running now*, so it covers the **concurrent** case — a producer still live when
195
+ the next entry is stamped — and not a **sequential** re-run, where a lead
196
+ re-runs the producer after it has cleanly exited, holds no lock, and reds
197
+ nothing. The two limits in this section are the same shape from opposite sides
198
+ of one dispatch: the one above is about waiting for stage N to be *over*, this
199
+ one about which command is safe *once it is*.
200
+
159
201
  ### Deviation transitions
160
202
 
161
203
  The stages walk `scope → align → build → validate → close` in order by
@@ -201,11 +243,38 @@ subset re-promotes at a later scope under its own iteration.
201
243
  **Reopen after close** is barred as an in-place edit. Stamps are append-only
202
244
  within an iteration and scope is the only reset, so there is no gate-legal way
203
245
  to continue a closed iteration's evidence file — and no history rewrite is
204
- sanctioned to fake one (doctrine-kit rule 16 territory). The sanctioned shape
246
+ sanctioned to fake one (doctrine-kit's *Re-verify volatile state before a git
247
+ history rewrite* territory — cited by name, since a rule number re-arms the
248
+ drift every later insertion causes). The sanctioned shape
205
249
  is a successor iteration: a post-close defect files as a debt entry and the
206
250
  follow-up iteration proceeds normally; the closed iteration's record stays
207
251
  immutable.
208
252
 
253
+ **The interstitial mitigation** is the shape that fits *between* a close and the
254
+ next scope. A repo-local mitigation for a recurring incident may land directly in
255
+ that window while the incident's queue entry stays open for the kit-shaped form.
256
+ One cap makes it admissible: **it adds no governed name** — canon-kit's
257
+ feature/debt litmus read the other way (canon-kit/SPEC.md §The amendment
258
+ lifecycle, where a task adding any name to a governed surface is a feature and
259
+ needs an amendment). So an interstitial landing is admissible exactly when it is
260
+ debt-shaped; anything feature-shaped waits for scope. The entry stays open either
261
+ way, because the mitigation is repo-local and the entry's deliverable is not. Like
262
+ every shape here it introduces no tooling, state, stamp grammar or tag — the cap
263
+ is an existing litmus and the landing is an ordinary commit. It **widens Reopen
264
+ after close** rather than competing with it: routing a post-close defect to a debt
265
+ entry and a normal follow-up iteration is the right answer for a first occurrence
266
+ and the wrong one for the fourth, and the fourth is now countable
267
+ (queue-kit/SPEC.md §The tag algebra, the `recurrence:` declaration). The commit
268
+ accounting already holds and needs no change — an interstitial commit falls into
269
+ the *next* iteration's range and surfaces when that iteration closes
270
+ (drift-kit/SPEC.md §The published-evidence extractor).
271
+
272
+ **A parallel hotfix track is refused**, recorded here so it is not re-proposed: it
273
+ violates scope-gated intake, it contends on live stage surfaces, and most incident
274
+ fixes are feature-shaped — so a "hotfix" of them is an unreviewed iteration. The
275
+ lane this shape governs already half-existed; what was missing was the signal that
276
+ says when to use it.
277
+
209
278
  **The close-merge** is the concurrent-close shape, and like the others it
210
279
  composes existing mechanism (the merge-supersede rule of §Multi-operator
211
280
  semantics, not new tooling). Iteration boundaries serialize on the integration
@@ -224,7 +293,8 @@ gates are registered in the consumer's `gates.list` by name and resolve
224
293
  through gate-sdk's multi-kit path (consumer gates dir first, then each kit's
225
294
  `checks/`). The kit's markdown templates are laid out on the stage/boundary axis
226
295
  this SPEC classifies them by: `templates/*.md` is exactly the **boundary skills**
227
- (`lead.md`, `release-sweep.md`, `upgrade.md`), `templates/stages/*.md` exactly
296
+ (`lead.md`, `release-sweep.md`, `upgrade.md`, `consult.md`),
297
+ `templates/stages/*.md` exactly
228
298
  the stage-class templates. Stage skills adopt `templates/stages/*.md` in one of
229
299
  two modes — copied into the consumer's agent-skill directory with each named slot
230
300
  overwritten, or a thin binding shim that references the template (the grammar
@@ -239,13 +309,72 @@ the template carries no second copy. The loader validates the machine
239
309
  non-integer n-gram width, a malformed preflight entry) and exits 2 on a
240
310
  malformed config — a broken machine must not gate anything.
241
311
 
242
- Knob-rename compat precedent: before the first release tag a knob rename is
243
- compat-free — no read-the-old-name shim, no deprecation window — because no
244
- external consumer can have vendored the kit yet (the first tag is a
245
- launch-comms prerequisite). From the first tag onward a rename owes the
246
- queue-bound deprecation mechanism and a tightened-gates/release-note
312
+ Knob-rename compat precedent. A rename carries two obligations of different
313
+ natures, and each answers to its own threshold.
314
+
315
+ **Declaration — owed from the first release tag, unconditionally.** A tagged
316
+ release is a distribution, and whoever vendored it reads the note to learn what
317
+ moved. From the first tag onward a rename owes a tightened-gates/release-note
247
318
  declaration (the deprecation-lifecycle and upgrade-path rungs).
248
319
 
320
+ **Compat shim and deprecation window — owed from the project's declared
321
+ general-availability posture onward, never from a tag.** While a project's own
322
+ declared stability posture is pre-general-availability, a knob rename is
323
+ compat-free: no read-the-old-name shim, no deprecation window, no queue-bound
324
+ deprecation marker. The declaration is still owed, so a consumer who vendored
325
+ early is never surprised. They are told; they are simply not carried.
326
+
327
+ The observable is a declared posture rather than an adoption count, because the
328
+ obligation is normative rather than empirical. You owe a migration path because
329
+ you promised stability, not because you counted users. A project that has
330
+ promised nothing owes nothing, and owes it the instant it promises, whether or
331
+ not anyone has installed. "The first observed external install" reads the premise
332
+ most literally and is rejected: it cannot be falsified from the tree, and it
333
+ makes the obligation turn on a fact outside the project's control. A tag was a
334
+ bad proxy for that same reason rather than one that merely aged — it measures
335
+ distribution where the obligation tracks promise, so it would have drifted under
336
+ any release history, fast or slow.
337
+
338
+ **Fail-safe direction.** A project declaring no stability posture at all is
339
+ treated as **past** the threshold: the compat obligation applies. Silence must
340
+ not read as still-pre-GA, because that is the reading under which a project that
341
+ never got round to declaring anything grants itself a permanent exemption. The
342
+ window is opened by an explicit pre-GA declaration and by nothing else.
343
+
344
+ The clause is knob-scoped, and the scoping is substantive rather than accidental:
345
+
346
+ 1. **The mechanism it points at is knob-shaped.** The deprecation path it invokes
347
+ is the queue-bound deprecation markers and the release note's `Renamed knobs`
348
+ section, whose `old → new` / `old → ∅` grammar is specific to config names. A
349
+ rule reaching gate names or file conventions would point at a mechanism that
350
+ does not accept them.
351
+ 2. **No class is left without a home.** A non-knob rename — a gate name, a file
352
+ or directory convention — is structurally accommodated by the release note's
353
+ `Behavior changes` section, whose bullet lead is defined as the changed
354
+ surface's name (script, knob, template, or file), a definition that already
355
+ admits each of those classes. What the note grammar does not yet carry is a
356
+ sentence explicitly *routing* non-knob renames there, so this is a sound
357
+ structural inference rather than an established convention. The narrow scoping
358
+ leaves no rename without a section shaped for it, which is all this reason
359
+ claims.
360
+ 3. **Widening it would restate a neighbour.** A general "any governed name" rule
361
+ is doctrine-tier, and that placement call belongs to doctrine rather than to a
362
+ kit SPEC, which would otherwise settle a doctrine question from the inside and
363
+ duplicate whatever lands there.
364
+
365
+ No gate reads this clause, and that is a ruling rather than an omission. The
366
+ predicate a gate would need is *"this commit renames a knob"*, which is not
367
+ decidable from a diff without a knob-identity model no kit has; an approximation
368
+ would fire on additions and removals alike and be valved into silence. The
369
+ clause's reader is the build-stage session performing the rename, which reads it
370
+ to decide whether it owes a shim and a deprecation marker.
371
+
372
+ A consumer points the general-availability criterion at whatever stability
373
+ declaration it maintains. The kit states the criterion and never the instance:
374
+ naming one project's channel vocabulary here would ship that project's release
375
+ posture as everyone's, and no knob is introduced to read the value either, since
376
+ the clause's reader is a human or agent rather than a gate.
377
+
249
378
  - `LIFECYCLE_KIT_STAGES` — the stage roster, in order; default
250
379
  `(scope align build validate close)`.
251
380
  - `LIFECYCLE_KIT_PREDECESSOR` — associative map stage → the predecessor whose
@@ -309,6 +438,25 @@ declaration (the deprecation-lifecycle and upgrade-path rungs).
309
438
  `${GATE_SDK_WORKFLOW_DIR:-.workflow}/gap-inbox.md`, written by `bin/file-gap.sh`,
310
439
  its `merge=union` attribute verified by `check-merge-attrs`, drained by the
311
440
  close skill and read for emptiness by `bin/enter-stage.sh`'s boundary refusal.
441
+ - `LIFECYCLE_KIT_SURVEY_RECORD_FILE` — the committed per-iteration survey record
442
+ (§The survey record); default
443
+ `${GATE_SDK_WORKFLOW_DIR:-.workflow}/survey-record.md`, written by
444
+ `bin/file-survey.sh`, asserted by `check-survey-record`, its headings printed
445
+ and its body truncated by `bin/enter-stage.sh` (a kit-owned boundary built-in,
446
+ so it does not ride `LIFECYCLE_KIT_BOUNDARY_TRUNCATE`), and its
447
+ `merge=iteration-scoped` attribute verified by `check-merge-attrs`. One knob,
448
+ and no second one for the grammar, the witness commands, or an opt-out — each
449
+ of those is contract rather than layout.
450
+ - `LIFECYCLE_KIT_RECURRENCE_THRESHOLD` — positive integer, default `2`; the
451
+ recorded re-filing count at which a **deferred** entry enters the scope stage's
452
+ proposed unit set regardless of the standing directive's theme (the pre-emption
453
+ rule, §templates/stages/). Two recorded re-filings is a third incidence of the
454
+ same finding. It is a stated policy with a stated purpose rather than a derived
455
+ number, and a knob for that reason — `QUEUE_KIT_ENTRY_LINE_CAP`'s posture. The
456
+ count it is read against is the date count of the entry's `recurrence:`
457
+ declaration (queue-kit/SPEC.md §The tag algebra owns that grammar). That rule is
458
+ its only reader: queue-kit owns the declaration and reads no threshold,
459
+ drift-kit reports the count and applies no verdict.
312
460
  - `LIFECYCLE_KIT_CLOSE_SURFACE_GLOBS` — the consumer's `close-surface:`
313
461
  declaration surfaces beyond the resolved kit roots (§The close-surface
314
462
  roster); default `*/SPEC.md`. It deliberately does **not** default to
@@ -376,8 +524,12 @@ side's content is per-iteration scratch the boundary doctrine already declares
376
524
  dead (git history is the permanent audit trail). The supersede set is **derived,
377
525
  never maintained**: it is exactly what `bin/enter-stage.sh` truncates at the
378
526
  iteration boundary — `LIFECYCLE_KIT_STATE_FILE`,
379
- `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE`, and the `LIFECYCLE_KIT_BOUNDARY_TRUNCATE`
380
- members — rendered by `lifecycle_supersede_set` (§lib/stages.sh). The queue file
527
+ `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE`, `LIFECYCLE_KIT_SURVEY_RECORD_FILE`, and
528
+ the `LIFECYCLE_KIT_BOUNDARY_TRUNCATE`
529
+ members — rendered by `lifecycle_supersede_set` (§lib/stages.sh). The survey
530
+ record is in the set for a reason worth stating: a carried survey describes a
531
+ tree state the arriving iteration never had, so taking the other side would
532
+ hand a stale finding a fresh-looking home (§The survey record). The queue file
381
533
  is deliberately *not* in the set: its body (backlog sections, lessons) is shared
382
534
  content that merges like any prose, and only its header line is iteration-scoped
383
535
  — resolved by hand to the arriving iteration, with a wrong resolution going red
@@ -441,7 +593,11 @@ friction, and routes here.
441
593
  **The surface.** `.workflow/gap-inbox.md` (knob `LIFECYCLE_KIT_GAP_INBOX_FILE`,
442
594
  §Layout and configuration) is a committed, append-only capture buffer. Grammar:
443
595
  a `# contract:` prose header, then one `- <YYYY-MM-DD> — <gap prose>` bullet per
444
- gap. Committed, not gitignored — a per-clone buffer fragments the backlog across
596
+ gap, optionally carrying a **recurrence marker** between the date and the prose:
597
+ ``- <YYYY-MM-DD> — recurrence of `<slug>`: <gap prose>``. The single-backticked
598
+ slug is queue-kit's existing in-body citation form (queue-kit/SPEC.md §The tag
599
+ algebra), borrowed rather than re-spelled. Committed, not gitignored — a
600
+ per-clone buffer fragments the backlog across
445
601
  operators, the finding that rules the gitignored friction log out as the channel.
446
602
 
447
603
  **The affordance.** `bin/file-gap.sh "<gap prose>"` (the `bin/kfric.sh` pattern:
@@ -451,6 +607,38 @@ advisory tooling, not a gate — no fixture pair is owed; the raw append (a bull
451
607
  line into the inbox) stays a legal fallback, the grammar being the surface's
452
608
  contract, not the writer.
453
609
 
610
+ It also **resolves the prose against the live slug set** at capture and, on a
611
+ match, stamps the recurrence marker into the bullet it was already writing. The
612
+ live set is every column-0 `- **<slug>** —` entry bullet in the queue file
613
+ *outside* the fixed-spelling `## Lessons Learned` section — that is exactly
614
+ active, deferred, and a configured icebox — and it needs **no section knob of its
615
+ own** because both exclusions fall out of grammar the kit already reads. The done
616
+ section is excluded by construction: a done entry is a bare-slug line, outside the
617
+ entry grammar queue-kit/SPEC.md §The queue format defines. Lessons is excluded by
618
+ name, and must be: a lesson lead line is outside that grammar for every *gate*,
619
+ but it may legitimately be *written* in the entry shape (`- **slug** [tag] —
620
+ prose`), so a grammar-only scan would resolve a live lesson as a queue entry and
621
+ stamp a declaration onto something that is not one. The `## Lessons Learned`
622
+ literal is fixed spelling rather than config (queue-kit/SPEC.md §The tag algebra),
623
+ and this kit already carries it — `bin/enter-stage.sh`'s boundary refusal and
624
+ `check-lesson-disposition` both scan it.
625
+ The done exclusion is the substantive half: a finding that recurs *after* its fix
626
+ landed is a new defect, not a recurrence, and files as one. Resolution is
627
+ lifecycle-kit's own awk over the
628
+ queue — the shape `check-stage-entry` assertion B already takes — never
629
+ queue-kit's `queue_live_slugs`, because reaching for it would close a cross-kit
630
+ cycle. queue-kit/SPEC.md §The queue format states that as the general rule (a kit
631
+ that cannot depend on queue-kit re-implements the predicate and both ends cite the
632
+ owner section), and drift-kit's `kpi-deferred-age` records the same accepted
633
+ residual.
634
+
635
+ **The tool writes no queue file, and that is the load-bearing constraint on the
636
+ whole channel.** This inbox exists precisely because a gap surfaced mid-stage has
637
+ no committed place to land except the queue file a stage session is already
638
+ contending on. A `file-gap.sh` that stamped a `recurrence:` declaration onto a
639
+ queue entry would do the one thing the inbox was built to prevent. The queue write
640
+ therefore belongs to the closing stage's drain, which writes the queue anyway.
641
+
454
642
  It also **warns at the point of capture**, reading the cursor
455
643
  (`lifecycle_current_stage`) to say which consequence the filer is buying: an
456
644
  ordinary filing is told the bullet blocks the next first-stage entry until the
@@ -497,9 +685,212 @@ kit is vendored. Consumers: the close skill's drain step (§templates/stages/)
497
685
  dispositions every bullet — promoted to a deferred `[design-pending]` entry,
498
686
  fixed inline that session, or discarded with cause in the close commit message —
499
687
  then truncates the inbox to its header; the boundary refusal reads emptiness at
500
- the next scope entry as the backstop. Each bullet's two fields have named
501
- readers: the date feeds close's staleness judgment, the prose is the disposition
502
- body.
688
+ the next scope entry as the backstop.
689
+
690
+ That drain step is also the **sole producer** of the `recurrence:` declaration
691
+ (queue-kit/SPEC.md §The tag algebra): a bullet naming a live slug stamps a
692
+ recurrence date onto that entry's declaration — creating the line when absent,
693
+ appending the date when present — **in addition to** its ordinary disposition,
694
+ never instead of it. It is reachable at every close with no enabling config,
695
+ since the drain is already mandatory and the boundary refusal already forces it,
696
+ and no mid-iteration path writes the declaration at all. The drain
697
+ **re-resolves the prose itself** rather than trusting the capture-time marker,
698
+ and that is what makes the channel whole: a raw append into the inbox stays a
699
+ legal fallback, so a bullet filed without the tool carries no marker and must
700
+ still be counted. The marker is a capture-time convenience; the drain is the
701
+ channel. Stamping is **idempotent per (slug, date)** — two filings of one slug on
702
+ one day record one date, the day being the only resolution the bullet's own
703
+ grammar has, and inventing a finer one would claim precision this channel does not
704
+ carry.
705
+
706
+ Each bullet's three fields have named readers: the date feeds close's staleness
707
+ judgment and becomes the stamped recurrence date, the prose is the disposition
708
+ body and the drain's own resolution input, and the optional recurrence marker is
709
+ read by the filer at capture (via stderr) and by the drain as a convenience it
710
+ does not depend on.
711
+
712
+ ## The survey record
713
+
714
+ A stage that dispatches a survey — a census, a cohort sweep, a roster built by
715
+ applying a criterion set to a corpus — buys a finding that lives in the
716
+ dispatching session's context and dies with it. The next stage needing the same
717
+ roster has no artifact to read, so it dispatches the same survey again. Neither
718
+ session is undisciplined: each is correct in isolation, and the cost is
719
+ structural. This surface is where the expensive half of a survey is carried
720
+ across the stage boundary.
721
+
722
+ **The decomposition that makes carrying safe.** A carried finding has a
723
+ staleness problem a re-derivation does not: a census written at scope and read
724
+ at build is correct only while the tree it censused holds still, and the stages
725
+ between them are exactly when that tree moves. Sizing that window per *kind* of
726
+ survey is not makeable — it depends on what the next stage does, which the
727
+ author cannot know. So it is answered mechanically per record instead. A survey
728
+ worth carrying ran an **oracle** (the oracle-first doctrine demands it), and
729
+ that splits it in two: a **cheap, re-runnable half** — the oracle's verdict —
730
+ and an **expensive, judgment half** — the reading laid over that verdict against
731
+ a criterion set. The re-derivation re-buys both; this surface carries the
732
+ expensive half and re-runs the cheap one.
733
+
734
+ > **A carried survey is a citation with a falsifiable staleness witness, never a
735
+ > substitute for the oracle. The consuming stage re-runs the oracle and diffs the
736
+ > surveyed corpus since the recorded revision; if both hold, the recorded
737
+ > judgment stands and is cited rather than re-bought. If either moved, the stage
738
+ > dispatches only the delta.**
739
+
740
+ A survey therefore stays true exactly as long as its witness holds, and the
741
+ witness is checkable in two commands.
742
+
743
+ **The surface.** `.workflow/survey-record.md` (knob
744
+ `LIFECYCLE_KIT_SURVEY_RECORD_FILE`, §Layout and configuration) is a committed
745
+ per-iteration record, append-only within the iteration. Grammar: a `# contract:`
746
+ prose header, then one block per survey:
747
+
748
+ ```
749
+ ## <YYYY-MM-DD> <stage> — <the one-line question this survey answered>
750
+ - corpus: <git pathspec the survey covered>
751
+ - oracle: <the command whose verdict grounds it, or the literal `none`>
752
+ - rev: <full commit sha the survey was taken at>
753
+ - finding: <the judgment, in prose>
754
+ ```
755
+
756
+ Four fields, and each earns its place by being read at a named transition —
757
+ `corpus` and `rev` by the diff, `oracle` by the re-run, `finding` by the
758
+ consuming session. The heading is the discovery key and it states the
759
+ *question*, because a later stage searches by the question it is about to ask,
760
+ not by the corpus it has not yet chosen.
761
+
762
+ **No field for "how long this stays true."** Deliberately absent: an author
763
+ cannot know it, and a field carrying a guess would be read as a warrant.
764
+ `corpus` + `rev` + `oracle` let the *reader* compute it, which is the whole
765
+ ruling above.
766
+
767
+ **Append-only within the iteration, never edited in place.** A survey that
768
+ turned out wrong is superseded by a later block answering the same question, not
769
+ by a correction to the old one — the record is evidence of what was believed
770
+ when, and rewriting it destroys the only thing that makes a stale finding
771
+ diagnosable after the fact.
772
+
773
+ **The witness — the re-use protocol.** A session about to buy a survey reads the
774
+ record first and, for any block whose heading answers its question, runs the
775
+ witness:
776
+
777
+ 1. **Corpus still?** `git diff --quiet <rev>..HEAD -- <corpus>` — clean means no
778
+ commit since the survey touched anything it covered.
779
+ 2. **Oracle still?** Re-run `<oracle>` and compare its verdict to the one the
780
+ finding was written against.
781
+
782
+ Both hold → **cite the record; do not re-buy the survey.** Either moved →
783
+ **dispatch only the delta**, the dispatch prompt naming the record block and the
784
+ diff, so the child re-surveys what changed rather than the corpus. The
785
+ asymmetry is what makes this safe to ship: a false *stale* costs one
786
+ re-derivation — exactly today's cost, so the mechanism's worst case is the
787
+ status quo — while a false *fresh* would need a change touching neither the
788
+ corpus nor the oracle's verdict, in which case the finding is in fact still
789
+ true. The mechanism can only degrade *toward* the behavior it replaces.
790
+
791
+ **The honest limit.** A survey whose grounds are *not* an oracle — a judgment
792
+ over prose, a reading of history — records `oracle: none`, and that block is a
793
+ **note, not a re-usable survey**: readable for orientation, re-derived before it
794
+ is relied on. Stating that costs one line per record and is the difference
795
+ between a mechanism and a false-assurance surface. An *empty* oracle is the
796
+ silent form of the same thing and is refused (§check-survey-record).
797
+
798
+ *Ruled out: a timestamp freshness window.* "Trust a survey under N hours old" is
799
+ the per-kind taxonomy in disguise — wrong in both directions (a one-minute-old
800
+ survey is stale if the tree moved; a week-old one is fine if it did not) and it
801
+ buys nothing the two-command witness does not. *Ruled out: auto-invalidating
802
+ every block on any commit* — too coarse to leave the mechanism any use; the
803
+ `corpus` pathspec exists precisely to make invalidation proportionate.
804
+
805
+ **The affordance.** `bin/file-survey.sh "<question>" "<corpus>" "<oracle>"
806
+ "<finding>"` appends one block, seeding the contract header when the record does
807
+ not yet exist. It follows `bin/file-gap.sh` exactly: repo-root cd,
808
+ config-via-env, exit 2 on a missing or empty argument. Advisory tooling, not a
809
+ gate — the raw append stays a legal fallback, the grammar being the surface's
810
+ contract rather than the writer.
811
+
812
+ It **stamps `rev` and the date itself and derives `<stage>` from the cursor**
813
+ (`lifecycle_current_stage`), which is the load-bearing decision in the tool:
814
+ `rev` is the field the entire re-use protocol turns on and exactly the field an
815
+ author would get wrong — a short sha, the rev they *started* at, or none.
816
+ Machine-stamping it is how the mechanism avoids failing silently when someone
817
+ forgets, which is the failure shape that rules out author-supplied conventions
818
+ elsewhere in this kit. A tree with no `HEAD` commit cannot ground a witness, so
819
+ that is a refusal (exit 2) rather than a blank field; a tree with no cursor yet
820
+ stamps the never-named `—` the queue header already uses.
821
+
822
+ It **deliberately does not** inherit `file-gap.sh`'s slug resolution. A survey's
823
+ prose routinely names queue slugs as its subject, and that resolver scans whole
824
+ prose, so it would stamp a recurrence declaration onto the survey's subject.
825
+ Adding no resolver here is a decision, not an omission.
826
+
827
+ **How this differs from the gap inbox, which it sits beside.** The two are
828
+ sibling committed per-iteration surfaces with deliberately *opposite* semantics
829
+ on both axes, and a reader who meets them apart will assume symmetry and get
830
+ both wrong:
831
+
832
+ - **Merge.** The gap inbox is `merge=union` — a gap filed on either side of a
833
+ concurrent merge must survive. The survey record is `merge=iteration-scoped`
834
+ (keep-ours): a survey from the other side describes a tree state this clone
835
+ never had, so surviving the merge is the hazard, not the save.
836
+ - **Boundary.** The gap inbox *refuses* the iteration boundary while it holds
837
+ bullets, because every gap owes a disposition. The survey record is
838
+ boundary-**truncated and never refuses**: a survey owes nobody a disposition,
839
+ being scratch whose whole lifetime was the iteration that just ended
840
+ (§bin/enter-stage.sh).
841
+
842
+ That per-iteration lifetime is delivered by the boundary reset rather than by a
843
+ judgment — which is precisely the window the design needed sized. The record
844
+ resets as a **kit built-in member**, not through the consumer's
845
+ `LIFECYCLE_KIT_BOUNDARY_TRUNCATE` array, by the same rule
846
+ `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE` follows: a defaulted bash array is
847
+ *replaced* when a consumer assigns it, so shipping the record as a default
848
+ member would silently lose the reset in every consumer that sets the knob for
849
+ its own reasons.
850
+
851
+ Two homes were ruled out, each on grounds that decide it alone. **The resume
852
+ journal** (delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset
853
+ sweeps) is crash recovery for the
854
+ *writing* session, discoverable by its per-session name — a hand-off surface
855
+ must be discoverable by content, by a session that never knew the writer's name
856
+ — and it lives in untracked scratch with a second reclaimer, context-kit's
857
+ session-context hook, whose age guard is shorter than an iteration
858
+ (context-kit/SPEC.md §The session-context hook); a scope-stage journal can be
859
+ swept before the stage that would read it ever runs, silently and
860
+ time-dependently. **The gap inbox** has the right tier and the wrong semantics
861
+ on both axes above: routing surveys there would make the boundary refuse on
862
+ residue nobody owes a disposition for.
863
+
864
+ **Producers and consumers.** Producer: any session that bought a survey, via
865
+ `bin/file-survey.sh` (the raw append the sanctioned fallback); the knob default
866
+ makes the channel live everywhere the kit is vendored, so the deployed
867
+ configuration that must be set is none. Consumer: the next stage session, at its
868
+ `bin/enter-stage.sh` entry — which prints the record's headings, the questions
869
+ and never the findings — and at the moment it is about to dispatch a survey,
870
+ where the witness applies. Each field's reader at its transition: `corpus` and
871
+ `rev` by the consuming session's `git diff` at the pre-dispatch check, `oracle`
872
+ by the same session at the same transition to re-run, `finding` by that session
873
+ only *after* the witness holds (which is why the entry report prints headings and
874
+ not findings), the `## ` heading by `bin/enter-stage.sh` at every stage entry and
875
+ by `check-survey-record` at commit time as the block delimiter. Third reader, at
876
+ the iteration boundary: the first-stage truncate, which reads the surface as a
877
+ whole and discards it.
878
+
879
+ **Nothing is produced on the delegation side.** No journal contract moves, no
880
+ dispatch shape changes, no obligation lands on a dispatched child. The producer
881
+ is the *parent*, which is where delegation-kit's durable-before-you-act rule
882
+ already puts the write; this surface gives that existing obligation a home for
883
+ one shape of finding rather than adding an obligation. It is also **not** the
884
+ durable escalation artifact delegation-kit/SPEC.md §The delegation model
885
+ prescribes as a child's upward route: that one is mid-run, dispatcher-minted,
886
+ per-dispatch and written by the child, where this is a hand-off, single-path,
887
+ per-iteration and written by the parent after the child returns. Different
888
+ writer, reader, lifetime and discovery key — they must not be collapsed.
889
+
890
+ **Open, and shared with the gap inbox:** who commits an append filed by a
891
+ session that is not the stage session. This surface inherits that question and
892
+ does not answer it; the exposure is smaller, since a survey lost to an
893
+ uncommitted append costs a re-derivation, which is today's cost.
503
894
 
504
895
  ## The close-surface roster
505
896
 
@@ -619,8 +1010,9 @@ which renders the resident registration block (§bin/install-lifecycle.sh) from
619
1010
  live config so `bin/install-lifecycle.sh` and `check-lifecycle-registration`
620
1011
  derive one text and cannot drift. Three more renderers follow the same
621
1012
  writer/asserter shape for the merge-attribute surface: `lifecycle_supersede_set`
622
- prints the derived iteration-scoped supersede set (the state file, the kit-owned
623
- lesson-evidence file, and each `LIFECYCLE_KIT_BOUNDARY_TRUNCATE` member — exactly
1013
+ prints the derived iteration-scoped supersede set (the state file, the two
1014
+ kit-owned built-ins — the lesson-evidence file and the survey record — and each
1015
+ `LIFECYCLE_KIT_BOUNDARY_TRUNCATE` member: exactly
624
1016
  what `bin/enter-stage.sh` truncates at the boundary); `lifecycle_union_set`
625
1017
  prints the derived union-merge set (the gap inbox — §The committed gap inbox);
626
1018
  and `lifecycle_merge_attrs_block` renders the supersede set as
@@ -701,10 +1093,23 @@ that vendored the cursor extraction mid-iteration heals at its next boundary
701
1093
  without a migration step. `LIFECYCLE_KIT_BOUNDARY_TRUNCATE`
702
1094
  is a generic per-iteration reset knob — no consumer surface is named in
703
1095
  the kit; a downstream kit whose per-iteration file must start each cycle from
704
- its contract header adds itself here, as evidence-kit's manifest does. The
705
- kit-owned `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE` resets by the same rule as a
706
- **built-in member** — the kit owns that surface, so it does not ride the
707
- consumer knob (git history keeps the retired stamps).
1096
+ its contract header adds itself here, as evidence-kit's manifest does. The two
1097
+ kit-owned surfaces — `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE` and
1098
+ `LIFECYCLE_KIT_SURVEY_RECORD_FILE` (§The survey record) — reset by the same rule
1099
+ as **built-in members**: the kit owns those surfaces, so they do not ride the
1100
+ consumer knob (git history keeps the retired stamps and the retired surveys).
1101
+
1102
+ **What counts as the header, for the truncate.** The retained run is the
1103
+ member's leading blank and `#` **comment** lines, stopping at the first data
1104
+ line *or* at a markdown `## ` section heading, whichever comes first. The second
1105
+ half of that predicate is load-bearing rather than defensive: on a markdown
1106
+ surface whose blocks *are* `## ` headings — the survey record — a bare
1107
+ "keep every leading `#` line" rule reads the first block's heading as part of
1108
+ the header and carries one stale survey across the boundary, with the record's
1109
+ own read trigger then advertising it. The failure is silent, survives a green
1110
+ battery, and is invisible to any fixture that does not run a real boundary
1111
+ entry, which is why the boundary behavior is exercised end-to-end in
1112
+ `gate-tests/` rather than reasoned about.
708
1113
 
709
1114
  The boundary reset additionally **wipes the scratch dir** (`GATE_SDK_TMP_DIR`),
710
1115
  deleting every member whose basename is neither `.gitkeep` nor a
@@ -759,7 +1164,20 @@ iteration, so no `[attend]` injection (queue-kit §bin/queue-index.sh) can
759
1164
  outlive the iteration that filed it. It **likewise refuses while the gap inbox
760
1165
  (`LIFECYCLE_KIT_GAP_INBOX_FILE`) holds bullets** — the same refusal contract, so
761
1166
  a mid-iteration gap the close skill did not drain (§The committed gap inbox)
762
- cannot cross the boundary untriaged; an absent inbox has no bullets and passes. The boundary entry additionally **refuses
1167
+ cannot cross the boundary untriaged; an absent inbox has no bullets and passes.
1168
+ **The survey record, its neighbour in the boundary reset, deliberately does
1169
+ not refuse** (§The survey record): it is truncated like any built-in member, and
1170
+ a non-empty one is never a blocker, because a survey owes nobody a disposition —
1171
+ it is scratch whose whole lifetime was the iteration just ending. The two
1172
+ surfaces sit one line apart in this tool with opposite semantics, so the
1173
+ asymmetry is stated rather than left to be inferred. The entry additionally
1174
+ carries the record's **read trigger**: when the record is non-empty the report
1175
+ prints its `## ` headings — the questions the iteration's prior surveys answered,
1176
+ never their findings, since printing a possibly-stale judgment ahead of its
1177
+ witness is the failure the witness exists to prevent. It rides the tool every
1178
+ stage already invokes as its first step, so it adds no invocation point and no
1179
+ schedule, and it lands at the one moment a stage session is guaranteed to be
1180
+ looking. The boundary entry additionally **refuses
763
1181
  when a `LIFECYCLE_KIT_BOUNDARY_REQUIRE` member lacks a disposition line for the
764
1182
  closing iteration** (exit 1, nothing written, the same refusal contract): each
765
1183
  member must carry a data line whose first token is the closing iteration's name,
@@ -808,7 +1226,8 @@ re-runs its entry step safely. It reads the `lib/stages.sh` knobs
808
1226
  (`LIFECYCLE_KIT_QUEUE_FILE`, `LIFECYCLE_KIT_STATE_FILE`, `LIFECYCLE_KIT_STAGES`,
809
1227
  `LIFECYCLE_KIT_FIRST_STAGE`, `LIFECYCLE_KIT_BOUNDARY_TRUNCATE`,
810
1228
  `LIFECYCLE_KIT_BOUNDARY_PRESERVE`,
811
- `LIFECYCLE_KIT_BOUNDARY_REQUIRE`, `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE`, and
1229
+ `LIFECYCLE_KIT_BOUNDARY_REQUIRE`, `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE`,
1230
+ `LIFECYCLE_KIT_SURVEY_RECORD_FILE`, and
812
1231
  `LIFECYCLE_KIT_ENTRY_PREFLIGHT`). Advisory tooling,
813
1232
  not a gate: no fixture pair is owed; it is exercised end-to-end in
814
1233
  `smoke/install.sh` — including the boundary require-check scenarios (a member
@@ -1126,8 +1545,8 @@ tokens; a shim's bindings are the `**slot-name** —` lead lines under
1126
1545
  `## Bindings`; the directive's template path resolves relative to the current
1127
1546
  directory (the tree root at pre-commit). A skills dir that does not exist is
1128
1547
  fail-closed (exit 2). The `# graph:` couples the skills dir, the stage-template
1129
- dir, each boundary skill (`lead.md`, `release-sweep.md`, `upgrade.md`), and each
1130
- out-of-tree bound template (e.g. `delegation-kit/templates/agent-execution.md`)
1548
+ dir, each boundary skill (`lead.md`, `release-sweep.md`, `upgrade.md`,
1549
+ `consult.md`), and each out-of-tree bound template (e.g. `delegation-kit/templates/agent-execution.md`)
1131
1550
  at `tier=precommit`, so a slot added to a template or a binding changed in a shim
1132
1551
  fires the gate. The boundary skills are coupled **by name** because this couple
1133
1552
  carries no kit-wide `templates/*.md` glob: a bindable template left off it is one
@@ -1225,7 +1644,8 @@ a git-native driver a consumer's own tracked append log legitimately carries
1225
1644
  (§Multi-operator semantics), so there is no smuggling to catch. A missing
1226
1645
  `.gitattributes` reports every derived surface as unmechanized (exit 1, the
1227
1646
  install remedy); an unreadable one, an empty supersede set (a lifecycle always
1228
- owns at least its state + lesson-evidence files), or an empty union set (it
1647
+ owns at least its state file and its two kit-owned built-ins, the
1648
+ lesson-evidence file and the survey record), or an empty union set (it
1229
1649
  always owns at least its gap inbox), is fail-closed (exit 2).
1230
1650
 
1231
1651
  The gate satisfies the four gate-sdk contracts (gate-sdk/SPEC.md §The gate model):
@@ -1246,6 +1666,54 @@ a reshaped `LIFECYCLE_KIT_BOUNDARY_TRUNCATE` in the consumer config is backstopp
1246
1666
  by the whole-tree `run-gates.sh` battery (the `check-stage-skill-coverage`
1247
1667
  precedent).
1248
1668
 
1669
+ ### check-survey-record
1670
+
1671
+ Invariant: every block in the survey record (§The survey record) carries a whole
1672
+ witness. Over each `## ` block: all four keys present, in order, one per line
1673
+ (and no fifth key, no stray line); `corpus` non-empty; `oracle` non-empty, where
1674
+ the literal `none` is legal and is the honest form and an *empty* value is the
1675
+ silent form and is refused; and `rev` a full 40-hex sha naming a commit that
1676
+ exists — the assertion that catches the short-sha and wrong-rev cases, and the
1677
+ reason the field is machine-stamped rather than author-supplied.
1678
+
1679
+ An absent record, and a record truncated to its header, are **clean and counted
1680
+ inert**: the surface is optional, and a consumer that never files a survey must
1681
+ not carry a red gate.
1682
+
1683
+ Enforcement-first is why the gate ships in the same unit as the surface rather
1684
+ than as follow-up debt: a block missing its witness is *silently unusable*,
1685
+ which is the exact failure class the surface exists to close.
1686
+
1687
+ **Bare drives the configured record with the full assertion set; an explicit
1688
+ file argument drives it hermetically — grammar only, with no rev-existence
1689
+ probe.** That split is forced by portability rather than convenience: a fixture's
1690
+ `rev` names no commit in the tree the fixture is copied into, so a pair asserting
1691
+ existence would go red in every consumer that vendored the kit. Bare also
1692
+ degrades to grammar-only outside a git repository, where there is nothing to
1693
+ resolve a sha against. The clean line names which mode ran, so a grammar-only
1694
+ pass can never be read as a verified one.
1695
+
1696
+ The gate satisfies the four gate-sdk contracts (gate-sdk/SPEC.md §The gate
1697
+ model): the single `SURVEY-RECORD: clean` line and a `help:` remedy naming the
1698
+ grammar and `bin/file-survey.sh` on the finding path (output); exit 2 on an
1699
+ unreadable or explicitly-named-but-missing record and on a failed parse
1700
+ (fail-closed); a `good/`+`bad/` fixture pair under `gate-tests/` driven through
1701
+ the hermetic argument — the good case a two-block record including an
1702
+ `oracle: none` note, the bad case a short sha, an empty oracle and a block with
1703
+ its `oracle` line missing — plus `gate-tests/check-survey-record.test.sh` for the
1704
+ half the pair cannot hold: both arms of the rev-existence probe in a sandbox
1705
+ repo (a rev naming a real commit, and a well-formed 40-hex rev naming nothing)
1706
+ and the two inert shapes (fixture-pair); and registration in this repo's
1707
+ `gates.list`, where its scan target is this repo's own record (self-lint). Its
1708
+ `# graph:` couples the record at `tier=precommit`.
1709
+
1710
+ *Not gated, and stated so the gate is not mistaken for more than it is:* whether
1711
+ a `finding` is **true**, and whether a session holding a fresh record actually
1712
+ read it. The first is unmechanizable; the second leaves no tracked artifact —
1713
+ the class delegation-kit/SPEC.md §Operative residency rules no gate is owed for.
1714
+ The entry report's read trigger (§bin/enter-stage.sh) is the affordance in place
1715
+ of an oracle there, and it is weaker than one by construction.
1716
+
1249
1717
  ### templates/stages/
1250
1718
 
1251
1719
  The stage-skill templates (`scope`/`align`/`build`/`validate`/`close`) carry
@@ -1457,36 +1925,124 @@ dispatch policy in the ruling-config slot), the lead model (dispatch a
1457
1925
  stage session as a background agent whose prompt is that stage's ordinary skill
1458
1926
  invocation, with the inline-run posture sentence reading
1459
1927
  `LIFECYCLE_KIT_SESSION_BOUNDARY` — inline stage runs banned under `stage`,
1460
- the sanctioned blocked-dispatch fallback under `iteration`), the
1928
+ the sanctioned blocked-dispatch fallback under `iteration`; and the
1929
+ completion-notification dispatch precondition, with the prompt-answered-signal
1930
+ trap and the gating-versus-liveness boundary that keeps it from reading as a
1931
+ reversal of the hand-derivation corollary below — its honest limit is recorded
1932
+ in §The state machine and it is standing lead policy under the
1933
+ policy-is-config rule), the
1461
1934
  opening-an-iteration contract (the lead never selects the unit set — it relays
1462
1935
  the operator's standing directive, a theme bounding scope's survey and never a
1463
1936
  slug list, verbatim in the scope dispatch, and routes scope's proposed set back
1464
1937
  as an ordinary escalation; selection is scope's contract, and a lead-authored
1465
1938
  menu pre-empts the premise re-verification), the four-header
1466
- escalation block (Question / Options / Recommendation / Evidence), the split-channel design (routine narration to the
1939
+ escalation block (Question / Options / Recommendation / Evidence) together with
1940
+ the one class the lead never rules under either posture — reversing, demoting or
1941
+ re-scoping a recorded operator ruling or a stated objective is operator-class and
1942
+ is relayed, carved out of the derivable-from-the-governed-surfaces routing rule
1943
+ because a session holding contrary evidence reads the surface carrying the ruling
1944
+ as stale rather than as closed, the split-channel design (routine narration to the
1467
1945
  resume journal, escalations to the message channel), the compact economics —
1468
1946
  the split-where-the-tail-dominates rule, the unified posture's handoff compact,
1469
1947
  and operator-suggested compacts at the acceptance
1470
1948
  boundaries that pay under the cold-wakes-times-compressible-residue rule —
1471
- with the dispatch-granularity rule (batch units sharing a kit or SPEC
1472
- surface, split on a model-tier change or a delegation-kit split trigger) and
1949
+ with the dispatch-granularity rule (the roster derived from every unit the
1950
+ iteration promoted rather than from the amendment set, then batch units
1951
+ sharing a kit or SPEC surface, split on a model-tier change or a
1952
+ delegation-kit split trigger) and
1473
1953
  the lead-owns-batching clause (an intra-stage batch split is N sibling stage
1474
- sessions the lead dispatches and validates — each a same-stage re-entry,
1954
+ sessions the lead dispatches and verifies — each a same-stage re-entry,
1475
1955
  §The state machine — and a stage session never dispatches a sibling stage
1476
1956
  session), and
1477
1957
  the stamps-authoritative invariant carried from §The state machine as the
1478
1958
  design's load-bearing rule — with its two corollaries: the lead never
1479
1959
  hand-derives prior-stage completeness from WORKFLOW-STATE or the git log (it
1480
1960
  dispatches and trusts `enter-stage.sh`'s fail-closed refusal, or gates an
1481
- expensive dispatch with `--simulate`, §bin/enter-stage.sh), and a ruling
1961
+ expensive dispatch with `--simulate`, and reads that same drain-entry verdict
1962
+ **before** declaring a stage's batches complete rather than after,
1963
+ §bin/enter-stage.sh), and a ruling
1482
1964
  whose acting session is not imminent is filed to a durable governed surface
1483
- in the moment it is made. The template also carries the lead's first step —
1965
+ in the moment it is made. An earlier second assertion over the drain
1966
+ assertion's own population is **ruled out** on record: a batching roster has
1967
+ dropped a promoted unit in practice and `check-stage-entry` named
1968
+ it at the refused entry, so the defect is detected late — at the price of one
1969
+ wasted dispatch — rather than undetected, and a duplicate reading of one fact
1970
+ would buy only the timing the simulate read already buys for free.
1971
+ The template also carries the lead's first step —
1484
1972
  writing the session-role marker context-kit's hook reads
1485
1973
  (context-kit/SPEC.md §The session-context hook). Dispatch safety is not re-owned — it inherits
1486
1974
  delegation-kit's protocol by citation (delegation-kit/SPEC.md §The delegation
1487
- model: background dispatch, the per-dispatch budget guard, validate after any
1488
- agent commit). Consumer residue stays in named slots — the tracked
1975
+ model: background dispatch, the per-dispatch budget guard, verify after any
1976
+ agent commit) — with one lifecycle **instance** the generic rule cannot state
1977
+ because it would have to name a stage: when the dispatched stage is the
1978
+ evidence-producing one, the lead's verify is a read of the committed evidence
1979
+ manifest rather than a re-run of its producer, the harm splitting between an
1980
+ inert battery re-run and a destructive producer re-run (delegation-kit/SPEC.md
1981
+ §Verify after every agent commit owns the generic rule and the split; its honest
1982
+ limit here is recorded in §The state machine). Consumer residue stays in named slots — the tracked
1489
1983
  agent-definition carrying the standing dispatch policy the dispatch names (the
1490
1984
  ruling-class roster and everything else true of every dispatch, not improvised
1491
1985
  per prompt), and whether the consumer wires the optional escalation-shape guard
1492
1986
  (guard-kit/SPEC.md §wakeup-guard) or leaves it inert.
1987
+
1988
+ ### templates/consult.md
1989
+
1990
+ The **operator strategy session** template, and a **boundary skill** of the class
1991
+ §Layout and configuration enumerates: like `lead.md` it invokes no
1992
+ `enter-stage.sh`, stamps nothing, and joins no stage set, so
1993
+ `check-stage-skill-coverage` never reads it. The classification is what makes it
1994
+ cost no new mechanism. A consultation may run before an iteration opens, between
1995
+ stages, or across an iteration boundary, and a template with no cursor is at odds
1996
+ with none of those. It carries named slots, so it adopts the
1997
+ binding-shim grammar (§templates/stages/) and `check-skill-binding` holds the
1998
+ slot pairing.
1999
+
2000
+ *A seventh stage was ruled out.* It would need a predecessor entry in
2001
+ `LIFECYCLE_KIT_STAGES`, a fixed position in the walk, and a stamp — none of which
2002
+ a session that may precede or span an iteration has — and it would make
2003
+ `check-stage-entry` assertion A demand a consult stamp on every iteration that
2004
+ legitimately holds no consultation.
2005
+
2006
+ **What the template owns** is a landing contract: the session's exit condition is
2007
+ that every ruling the operator closed has reached a governed surface, every
2008
+ refused alternative is recorded with its grounds, and every always-loaded surface
2009
+ those rulings stale is corrected, flagged, or filed. Two mechanisms are what make
2010
+ that reachable rather than aspirational, and both are stated in the ritual. A
2011
+ ruling lands **at the moment it closes**, not at exit, so an interrupted session
2012
+ loses at most the ruling in flight rather than the session's whole output. And
2013
+ the session journals while it cannot commit, on the durability rule at its owning
2014
+ tier (delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset
2015
+ sweeps), which is what converts a shared index held by a live stage session from
2016
+ data loss into latency. The journal's reclaim is the existing boundary wipe of
2017
+ the scratch dir (§bin/enter-stage.sh) and no `LIFECYCLE_KIT_BOUNDARY_PRESERVE`
2018
+ entry is added — a preserved journal would outlive the session that can interpret
2019
+ it, its content having been discharged into a commit at exit.
2020
+
2021
+ **Write authority is not this template's to grant.** Who may record a ruling on a
2022
+ consumer's ruling record is stated by that record, at the widest tier true for
2023
+ every reader of it — every session that closes a ruling with the operator faces
2024
+ the question, not only a consult session. What the skill adds on top is
2025
+ obligation: elsewhere recording a closed ruling is permitted, here a consultation
2026
+ that did not record one has not exited.
2027
+
2028
+ Dispatch safety is inherited by citation rather than re-owned
2029
+ (delegation-kit/templates/agent-execution.md), on the same rule
2030
+ §templates/lead.md follows — a copied protocol is a second content tier that
2031
+ drifts. The template does state **tier selection** in its own right, because the
2032
+ hazard is sharper here than for a stage session: an unselected dispatch inherits
2033
+ the dispatcher's tier, and a consultation runs at the judgment tier while most of
2034
+ what it dispatches is read-only research, so an unselected fan-out buys the most
2035
+ expensive tier for the cheapest work.
2036
+
2037
+ Consumer residue stays in exactly **two named slots**, and the split is the
2038
+ provenance seam rather than a convenience — `entry-reading` (the surfaces a
2039
+ consultation reads on entry) and `landing-surfaces` (the surfaces a closed ruling
2040
+ may land on, by ruling class). A consumer's entry set reaches its private
2041
+ context, and a kit literal naming it would publish a private surface; its landing
2042
+ set names that consumer's own governance layout, and a kit shipping those names
2043
+ would ship one project's layout as everyone's. What stays kit mechanism is the
2044
+ shape: a consultation has an entry read-set and an exit landing-set, and every
2045
+ closed ruling reaches the landing set before the session ends. Each slot has a
2046
+ named reader — the entry step and the exit check respectively — and
2047
+ `check-skill-binding` requires the shim to bind exactly that set, so an unbound
2048
+ slot or an orphan binding is caught mechanically rather than by review.