checkwright 0.31.0 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (496) hide show
  1. package/README.md +8 -7
  2. package/bin/checkwright.ps1 +3 -3
  3. package/bin/checkwright.sh +5 -1
  4. package/package.json +10 -3
  5. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  6. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
  7. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  8. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  9. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  10. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  11. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
  12. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  13. package/payload/artifact/targets.list +5 -5
  14. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  15. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
  16. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  17. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  18. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  19. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  20. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
  21. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  22. package/payload/canon-kit/README.md +8 -4
  23. package/payload/canon-kit/checks/check-amendment-queue.gate +1 -1
  24. package/payload/canon-kit/checks/check-comment-tier.gate +2 -2
  25. package/payload/canon-kit/checks/check-delta-agreement.gate +4 -0
  26. package/payload/canon-kit/checks/check-deprecation-task.gate +1 -1
  27. package/payload/canon-kit/checks/check-docs-page-length.gate +4 -0
  28. package/payload/canon-kit/checks/check-docs-page-repeat.gate +2 -2
  29. package/payload/canon-kit/checks/check-fence-command-head.gate +1 -1
  30. package/payload/canon-kit/checks/check-fence-paste-unit.gate +4 -0
  31. package/payload/canon-kit/checks/check-knob-default-coupling.gate +1 -1
  32. package/payload/canon-kit/checks/check-manifest-count.gate +3 -3
  33. package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
  34. package/payload/canon-kit/checks/check-pendency-contradiction.gate +3 -0
  35. package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
  36. package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
  37. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
  38. package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
  39. package/payload/canon-kit/checks/check-spec-pointer.gate +1 -1
  40. package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
  41. package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +6 -0
  42. package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-widget.md +7 -0
  43. package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +7 -0
  44. package/payload/canon-kit/gate-tests/check-citation-link/bad/expect.txt +1 -0
  45. package/payload/canon-kit/gate-tests/check-citation-link/bad/site/unclosed.md +4 -0
  46. package/payload/canon-kit/gate-tests/check-citation-link/good/site/page.md +10 -0
  47. package/payload/canon-kit/gate-tests/check-comment-tier/bad/scripts/canon-config.knobs +4 -0
  48. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +2 -0
  49. package/payload/canon-kit/gate-tests/check-comment-tier/good/scripts/canon-config.knobs +4 -0
  50. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +9 -1
  51. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/expect.txt +3 -0
  52. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/scripts/canon-config.knobs +14 -0
  53. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/base/notes/spec.md +9 -0
  54. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/changes/one/deltas/notes/spec.md +7 -0
  55. package/payload/canon-kit/gate-tests/check-delta-agreement/bad/work/changes/two/deltas/cli/spec.md +3 -0
  56. package/payload/canon-kit/gate-tests/check-delta-agreement/good/expect.txt +1 -0
  57. package/payload/canon-kit/gate-tests/check-delta-agreement/good/scripts/canon-config.knobs +14 -0
  58. package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/base/notes/spec.md +9 -0
  59. package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/changes/one/deltas/notes/spec.md +19 -0
  60. package/payload/canon-kit/gate-tests/check-delta-agreement/good/work/changes/two/deltas/cli/spec.md +3 -0
  61. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.knobs +4 -0
  62. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.knobs +4 -0
  63. package/payload/canon-kit/gate-tests/check-docs-cmd.test.sh +20 -4
  64. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/expect.txt +5 -0
  65. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/scripts/canon-config.knobs +3 -0
  66. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/item.md +5 -0
  67. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/nested.md +7 -0
  68. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/page.md +13 -0
  69. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/short.md +3 -0
  70. package/payload/canon-kit/gate-tests/check-docs-page-length/bad/site/unclosed.md +4 -0
  71. package/payload/canon-kit/gate-tests/check-docs-page-length/good/expect.txt +1 -0
  72. package/payload/canon-kit/gate-tests/check-docs-page-length/good/scripts/canon-config.knobs +4 -0
  73. package/payload/canon-kit/gate-tests/check-docs-page-length/good/site/generated.md +3 -0
  74. package/payload/canon-kit/gate-tests/check-docs-page-length/good/site/page.md +15 -0
  75. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/expect.txt +3 -0
  76. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/scripts/canon-config.knobs +2 -1
  77. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/_chrome/footer.html +4 -0
  78. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/page.md +4 -0
  79. package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/unclosed.md +6 -0
  80. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/expect.txt +2 -1
  81. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/scripts/canon-config.knobs +2 -1
  82. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/_chrome/layout.html +8 -0
  83. package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/page.md +13 -0
  84. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +1 -0
  85. package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +4 -0
  86. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +10 -0
  87. package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +2 -0
  88. package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +6 -0
  89. package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/expect.txt +3 -0
  90. package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/scripts/canon-config.knobs +2 -0
  91. package/payload/canon-kit/gate-tests/check-fence-paste-unit/bad/site/page.md +17 -0
  92. package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/expect.txt +1 -0
  93. package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/scripts/canon-config.knobs +2 -0
  94. package/payload/canon-kit/gate-tests/check-fence-paste-unit/good/site/page.md +39 -0
  95. package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +8 -0
  96. package/payload/canon-kit/gate-tests/check-install-claim/bad/README.md +4 -0
  97. package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +14 -0
  98. package/payload/canon-kit/gate-tests/check-manifest-count/bad/expect.txt +2 -0
  99. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +27 -0
  100. package/payload/canon-kit/gate-tests/check-manifest-count/good/expect.txt +1 -1
  101. package/payload/canon-kit/gate-tests/check-manifest-count/good/posts/note.md +7 -0
  102. package/payload/canon-kit/gate-tests/check-manifest-count/good/scripts/canon-config.knobs +4 -0
  103. package/payload/canon-kit/gate-tests/check-manifest-temporal/good/SPEC.md +7 -0
  104. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +17 -1
  105. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/dotted.md +10 -0
  106. package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +1 -0
  107. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/dotted.md +6 -0
  108. package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -1
  109. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +6 -0
  110. package/payload/canon-kit/gate-tests/check-pendency-contradiction/bad/SPEC.md +14 -0
  111. package/payload/canon-kit/gate-tests/check-pendency-contradiction/bad/expect.txt +1 -0
  112. package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/README.md +3 -0
  113. package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/SPEC.md +16 -0
  114. package/payload/canon-kit/gate-tests/check-pendency-contradiction/good/expect.txt +1 -0
  115. package/payload/canon-kit/gate-tests/check-prose-tells/bad/absence-unclosed.md +8 -0
  116. package/payload/canon-kit/gate-tests/check-prose-tells/bad/absence.md +13 -0
  117. package/payload/canon-kit/gate-tests/check-prose-tells/bad/expect.txt +4 -0
  118. package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -1
  119. package/payload/canon-kit/gate-tests/check-prose-tells/good/absence.md +17 -0
  120. package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
  121. package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/canon-config.knobs +4 -1
  122. package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/SPEC.md +9 -0
  123. package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/expect.txt +2 -1
  124. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC.md +14 -0
  125. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +1 -0
  126. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/args +1 -0
  127. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/expect.txt +2 -1
  128. package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/long.md +7 -0
  129. package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/doc.md +13 -0
  130. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +7 -1
  131. package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +8 -0
  132. package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-repeat.md +11 -0
  133. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
  134. package/payload/canon-kit/gate-tests/check-task-label-resolution/good/work/tasks.md +6 -0
  135. package/payload/canon-kit/gate-tests/check-task-path-claim/good/work/tasks.md +6 -0
  136. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/scripts/canon-config.knobs +4 -0
  137. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/scripts/canon-config.knobs +4 -0
  138. package/payload/canon-kit/gate-tests/check-tracking-claim/bad/README.md +4 -0
  139. package/payload/context-kit/README.md +5 -7
  140. package/payload/context-kit/checks/check-brevity.gate +1 -1
  141. package/payload/context-kit/gate-tests/check-brevity.test.sh +1 -0
  142. package/payload/context-kit/gate-tests/check-memory-off.test.sh +25 -1
  143. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
  144. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +16 -0
  145. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/checkwright-gates +2 -0
  146. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -2
  147. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
  148. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/checkwright-gates +2 -0
  149. package/payload/context-kit/gate-tests/session-context-spawn.test.sh +52 -0
  150. package/payload/context-kit/templates/nudge-delegation.txt +4 -0
  151. package/payload/context-kit/templates/settings-sessionstart.json +2 -2
  152. package/payload/delegation-kit/README.md +14 -8
  153. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +1 -0
  154. package/payload/delegation-kit/checks/check-gate-tamper.gate +1 -1
  155. package/payload/delegation-kit/close-surfaces.txt +3 -0
  156. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/stale-effort.md +10 -0
  157. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/stale.md +9 -0
  158. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/unbound.md +8 -0
  159. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/expect.txt +3 -0
  160. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/scripts/delegation-config.knobs +3 -0
  161. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-cheap.md +3 -1
  162. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-paired.md +10 -0
  163. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/expect.txt +1 -1
  164. package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/scripts/delegation-config.knobs +3 -0
  165. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/exception-arrays.sh +44 -0
  166. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +12 -0
  167. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/staged-files +12 -0
  168. package/payload/delegation-kit/gate-tests/check-gate-tamper/good/exception-arrays.sh +44 -0
  169. package/payload/delegation-kit/gate-tests/check-gate-tamper/good/staged-files +1 -0
  170. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +22 -1
  171. package/payload/delegation-kit/templates/agent-execution.md +7 -6
  172. package/payload/delegation-kit/templates/delegation-config.knobs +32 -0
  173. package/payload/delegation-kit/usage-tests/cases.tsv +35 -25
  174. package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +12 -3
  175. package/payload/doctrine-kit/DOCTRINE.md +109 -25
  176. package/payload/doctrine-kit/README.md +2 -2
  177. package/payload/drift-kit/README.md +15 -6
  178. package/payload/drift-kit/close-surfaces.txt +2 -0
  179. package/payload/drift-kit/templates/economics.md +7 -3
  180. package/payload/drift-kit/templates/kpis.list +1 -0
  181. package/payload/evidence-kit/README.md +3 -3
  182. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/expect.txt +1 -0
  183. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/runner.md +2 -1
  184. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +3 -1
  185. package/payload/evidence-kit/gate-tests/check-battery-roster/good/runner.md +1 -0
  186. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +3 -1
  187. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +18 -2
  188. package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +2 -3
  189. package/payload/evidence-kit/gate-tests/run-member-door.test.sh +50 -0
  190. package/payload/gate-sdk/README.md +9 -13
  191. package/payload/gate-sdk/bin/build-native.sh +11 -14
  192. package/payload/gate-sdk/bin/run-gates.ps1 +149 -24
  193. package/payload/gate-sdk/bin/run-gates.sh +57 -14
  194. package/payload/gate-sdk/checks/check-commit-msg.gate +1 -1
  195. package/payload/gate-sdk/checks/check-gate-substrate-parity.gate +1 -1
  196. package/payload/gate-sdk/checks/check-graph.gate +2 -2
  197. package/payload/gate-sdk/checks/check-install-disposition.gate +1 -1
  198. package/payload/gate-sdk/checks/check-path-dialect.gate +1 -1
  199. package/payload/gate-sdk/checks/check-psscriptanalyzer.gate +4 -0
  200. package/payload/gate-sdk/checks/check-shellcheck.gate +1 -1
  201. package/payload/gate-sdk/checks/check-template-copy-parity.gate +1 -1
  202. package/payload/gate-sdk/checks/check-tree-terms.gate +1 -1
  203. package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/args +2 -1
  204. package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/expect.txt +2 -0
  205. package/payload/gate-sdk/gate-tests/check-action-gh-repo/bad/tree/workflows/shapes.yml +29 -0
  206. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/args +2 -1
  207. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/expect.txt +2 -0
  208. package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/shapes.yml +22 -0
  209. package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/demo-kit/index.md +3 -0
  210. package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +17 -1
  211. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +12 -1
  212. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-array-axes.sh +44 -0
  213. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +2 -0
  214. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +2 -1
  215. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-array-axes.sh +46 -0
  216. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +2 -0
  217. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/expect.txt +1 -0
  218. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/check-psopt.gate +3 -0
  219. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/check-psopt.ps1 +1 -0
  220. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/scripts/gates.list +1 -0
  221. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/expect.txt +1 -0
  222. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/scripts/gates.list +3 -1
  223. package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
  224. package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +4 -2
  225. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +5 -0
  226. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/checks/check-kitexec.gate +2 -0
  227. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/checks/check-kitexec.ps1 +1 -0
  228. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-climb.gate +2 -0
  229. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-direxec.gate +2 -0
  230. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twoexec.gate +3 -0
  231. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-txtexec.gate +2 -0
  232. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-txtexec.txt +1 -0
  233. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
  234. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-psgood.gate +3 -0
  235. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-psgood.ps1 +1 -0
  236. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-rsgood.gate +3 -0
  237. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +2 -0
  238. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +42 -5
  239. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +1 -0
  240. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +9 -1
  241. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +2 -2
  242. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +15 -29
  243. package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
  244. package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +3 -1
  245. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/expect.txt +1 -0
  246. package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/portability-patterns.notes.list +1 -0
  247. package/payload/gate-sdk/gate-tests/check-portability-floor/good/args +1 -1
  248. package/payload/gate-sdk/gate-tests/check-portability-floor/good/scripts/gate-sdk-config.knobs +1 -0
  249. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/demo-kit/templates/portability-patterns.list +5 -0
  250. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/rosters/constructs.list +6 -0
  251. package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +15 -2
  252. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/expect.txt +2 -0
  253. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/noisy.ps1 +1 -0
  254. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/pwsh +8 -0
  255. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/bad/scripts/gate-sdk-config.knobs +1 -0
  256. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/clean.ps1 +1 -0
  257. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/expect.txt +1 -0
  258. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/pwsh +7 -0
  259. package/payload/gate-sdk/gate-tests/check-psscriptanalyzer/good/scripts/gate-sdk-config.knobs +2 -0
  260. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/{warn.sh → alpha-kit/gate-tests/kit-warn.sh} +1 -1
  261. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/expect.txt +2 -0
  262. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/scripts/gate-sdk-config.knobs +2 -0
  263. package/payload/gate-sdk/gate-tests/check-shellcheck/bad/scripts/gate-tests/tests-warn.sh +5 -0
  264. package/payload/gate-sdk/gate-tests/check-shellcheck/good/{ok.sh → alpha-kit/gate-tests/kit-ok.sh} +1 -1
  265. package/payload/gate-sdk/gate-tests/check-shellcheck/good/expect.txt +1 -1
  266. package/payload/gate-sdk/gate-tests/check-shellcheck/good/scripts/gate-sdk-config.knobs +2 -0
  267. package/payload/gate-sdk/gate-tests/check-shellcheck/good/scripts/gate-tests/tests-ok.sh +4 -0
  268. package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/args +2 -0
  269. package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/scripts/gate-sdk-config.knobs +1 -0
  270. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +4 -1
  271. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/gate-sdk-config.knobs +1 -0
  272. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/stray/templates/session-note.sh +4 -0
  273. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +6 -2
  274. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/drift-kit/templates/kpis.list +1 -0
  275. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/drift-kit/templates/kpis.list +1 -0
  276. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
  277. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/msg-patterns.old.list +1 -0
  278. package/payload/gate-sdk/gate-tests/check-tree-terms/good/args +2 -2
  279. package/payload/gate-sdk/gate-tests/check-tree-terms/good/scripts/gate-sdk-config.knobs +1 -0
  280. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/demo-kit/templates/msg-patterns.list +2 -0
  281. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/rosters/extra.list +2 -0
  282. package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +1 -0
  283. package/payload/gate-sdk/gate-tests/emit-arm-shape.test.sh +1 -1
  284. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +10 -2
  285. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +29 -3
  286. package/payload/gate-sdk/gate-tests/lib-test-hermetic.test.sh +24 -0
  287. package/payload/gate-sdk/gate-tests/native-git-hooks.test.sh +261 -0
  288. package/payload/gate-sdk/gate-tests/native-rustflags.test.sh +20 -0
  289. package/payload/gate-sdk/gate-tests/run-arm-contract.test.sh +11 -4
  290. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +2 -1
  291. package/payload/gate-sdk/gate-tests/run-for-path.test.sh +11 -1
  292. package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +64 -4
  293. package/payload/gate-sdk/lib/gate.sh +46 -6
  294. package/payload/gate-sdk/lib/test-hermetic.sh +16 -8
  295. package/payload/gate-sdk/templates/adopt.md +1 -1
  296. package/payload/gate-sdk/templates/msg-patterns.list +1 -1
  297. package/payload/gate-sdk/templates/portability-patterns.list +1 -1
  298. package/payload/guard-kit/README.md +12 -7
  299. package/payload/guard-kit/close-surfaces.txt +3 -0
  300. package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/README.md +1 -1
  301. package/payload/guard-kit/gate-tests/check-door-binding/bad/expect.txt +1 -0
  302. package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/guard-config.knobs +2 -1
  303. package/payload/guard-kit/gate-tests/check-door-binding/bad/src/remedy.rs +3 -0
  304. package/payload/guard-kit/gate-tests/check-door-binding/good/expect.txt +1 -0
  305. package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/guard-config.knobs +2 -1
  306. package/payload/guard-kit/gate-tests/check-door-binding/good/site/register.md +8 -0
  307. package/payload/guard-kit/gate-tests/check-door-binding/good/src/remedy.rs +13 -0
  308. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +0 -1
  309. package/payload/guard-kit/gate-tests/consumer-rules.test.sh +105 -3
  310. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +64 -2
  311. package/payload/guard-kit/gate-tests/guard-config-knobs.test.sh +18 -5
  312. package/payload/guard-kit/gate-tests/guard-verdict.test.sh +74 -0
  313. package/payload/guard-kit/gate-tests/worktree-confinement.test.sh +49 -5
  314. package/payload/guard-kit/guard-tests/background-cases.tsv +103 -1
  315. package/payload/guard-kit/guard-tests/cases.tsv +834 -64
  316. package/payload/guard-kit/guard-tests/powershell-cases.tsv +51 -2
  317. package/payload/guard-kit/guard-tests/variant-limits.tsv +14 -0
  318. package/payload/guard-kit/templates/close-triage.md +2 -2
  319. package/payload/guard-kit/templates/guard-config.knobs +9 -0
  320. package/payload/guard-kit/templates/settings-allow.json +1 -1
  321. package/payload/guard-kit/templates/settings-hooks.json +4 -4
  322. package/payload/lifecycle-kit/README.md +11 -6
  323. package/payload/lifecycle-kit/checks/check-disposed-findings.gate +3 -0
  324. package/payload/lifecycle-kit/checks/check-skill-binding.gate +1 -1
  325. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +1 -1
  326. package/payload/lifecycle-kit/close-surfaces.txt +2 -0
  327. package/payload/lifecycle-kit/gate-tests/boundary-set-record.test.sh +82 -0
  328. package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +11 -2
  329. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +11 -1
  330. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/args +2 -0
  331. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/disposed-findings.txt +5 -0
  332. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/bad/expect.txt +5 -0
  333. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/args +2 -0
  334. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/disposed-findings.txt +3 -0
  335. package/payload/lifecycle-kit/gate-tests/check-disposed-findings/good/expect.txt +1 -0
  336. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +1 -0
  337. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +1 -1
  338. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +27 -2
  339. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +6 -0
  340. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +34 -2
  341. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +3 -0
  342. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -0
  343. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/scripts/lifecycle-config.knobs +3 -0
  344. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +3 -0
  345. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/expect.txt +1 -0
  346. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/scripts/lifecycle-config.knobs +2 -0
  347. package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage.test.sh +22 -2
  348. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +9 -2
  349. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +27 -1
  350. package/payload/lifecycle-kit/gate-tests/journal-arm.test.sh +251 -0
  351. package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +46 -5
  352. package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +16 -2
  353. package/payload/lifecycle-kit/templates/consult.md +9 -5
  354. package/payload/lifecycle-kit/templates/frames/project-critique.md +18 -0
  355. package/payload/lifecycle-kit/templates/frames/stage-contract-sweep.md +18 -0
  356. package/payload/lifecycle-kit/templates/frames/stage-contract.md +15 -0
  357. package/payload/lifecycle-kit/templates/host-protocol.md +10 -0
  358. package/payload/lifecycle-kit/templates/lead.md +30 -25
  359. package/payload/lifecycle-kit/templates/stages/align.md +4 -0
  360. package/payload/lifecycle-kit/templates/stages/build.md +5 -3
  361. package/payload/lifecycle-kit/templates/stages/close.md +8 -6
  362. package/payload/lifecycle-kit/templates/stages/scope.md +6 -2
  363. package/payload/lifecycle-kit/templates/stages/spec.md +4 -0
  364. package/payload/lifecycle-kit/templates/stages/validate.md +4 -2
  365. package/payload/lifecycle-kit/templates/upgrade.md +1 -1
  366. package/payload/queue-kit/README.md +3 -2
  367. package/payload/queue-kit/close-surfaces.txt +3 -0
  368. package/payload/queue-kit/gate-tests/check-queue-sections/bad/expect.txt +1 -0
  369. package/payload/queue-kit/gate-tests/check-queue-sections/bad/scripts/queue-config.knobs +2 -0
  370. package/payload/queue-kit/gate-tests/check-queue-sections/good/TASK-QUEUE.md +1 -1
  371. package/payload/queue-kit/gate-tests/check-queue-sections/good/scripts/queue-config.knobs +2 -0
  372. package/payload/queue-kit/gate-tests/check-queue-sections.test.sh +65 -0
  373. package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +10 -1
  374. package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +4 -0
  375. package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +4 -0
  376. package/payload/queue-kit/gate-tests/check-task-conservation.test.sh +38 -0
  377. package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +3 -0
  378. package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +3 -0
  379. package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +8 -0
  380. package/payload/queue-kit/gate-tests/roadmap-lag.test.sh +137 -0
  381. package/payload/site-kit/README.md +3 -3
  382. package/payload/site-kit/gate-tests/check-docs-collapsible/bad/docs/unclosed.md +8 -0
  383. package/payload/site-kit/gate-tests/check-docs-collapsible/bad/expect.txt +1 -0
  384. package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/regions.md +7 -0
  385. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/dotted.md +9 -0
  386. package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +1 -0
  387. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/dotted.md +7 -0
  388. package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/expect.txt +1 -1
  389. package/payload/site-kit/gate-tests/site-health-probe.test.sh +219 -0
  390. package/payload/site-kit/templates/site-health.yml +181 -132
  391. package/profiles.list +11 -10
  392. package/recipes/openspec/canon-config.knobs +5 -0
  393. package/recipes/openspec-overlap/canon-config.knobs +12 -0
  394. package/recipes/openspec-overlap/unregister.list +1 -0
  395. package/payload/context-kit/checks/check-footprint-fresh.gate +0 -4
  396. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/args +0 -4
  397. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/emit.txt +0 -12
  398. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/expect.txt +0 -1
  399. package/payload/context-kit/gate-tests/check-footprint-fresh/bad/projection.txt +0 -11
  400. package/payload/context-kit/gate-tests/check-footprint-fresh/good/CLAUDE.md +0 -6
  401. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/SPEC.md +0 -3
  402. package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/templates/guide.md +0 -3
  403. package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +0 -32
  404. package/payload/context-kit/gate-tests/check-footprint-fresh/good/expect.txt +0 -1
  405. package/payload/context-kit/templates/session-context.sh +0 -148
  406. package/payload/delegation-kit/checks/check-rule-citation.gate +0 -3
  407. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/args +0 -1
  408. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/expect.txt +0 -1
  409. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/spec.md +0 -9
  410. package/payload/delegation-kit/gate-tests/check-rule-citation/bad/tmpl.md +0 -4
  411. package/payload/delegation-kit/gate-tests/check-rule-citation/good/args +0 -1
  412. package/payload/delegation-kit/gate-tests/check-rule-citation/good/expect.txt +0 -1
  413. package/payload/delegation-kit/gate-tests/check-rule-citation/good/spec.md +0 -20
  414. package/payload/delegation-kit/gate-tests/check-rule-citation/good/tmpl.md +0 -5
  415. package/payload/drift-kit/templates/kpi-deprecated-surface.sh +0 -54
  416. package/payload/gate-sdk/checks/check-crate-arms.gate +0 -3
  417. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +0 -3
  418. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +0 -3
  419. package/payload/gate-sdk/checks/check-kit-roots-dialect.gate +0 -3
  420. package/payload/gate-sdk/checks/check-packed-links.gate +0 -3
  421. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +0 -7
  422. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +0 -12
  423. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +0 -5
  424. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.knobs +0 -3
  425. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +0 -7
  426. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +0 -11
  427. package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +0 -2
  428. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.knobs +0 -3
  429. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/args +0 -2
  430. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/expect.txt +0 -5
  431. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/kitroot/checks/check-vendored.gate +0 -2
  432. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/check-ported.gate +0 -2
  433. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.knobs +0 -2
  434. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gates.list +0 -4
  435. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stamp.txt +0 -1
  436. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stub-bin +0 -6
  437. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/args +0 -2
  438. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/expect.txt +0 -5
  439. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/kitroot/checks/check-vendored.gate +0 -2
  440. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/check-ported.gate +0 -2
  441. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.knobs +0 -2
  442. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gates.list +0 -4
  443. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stamp.txt +0 -1
  444. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stub-bin +0 -5
  445. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +0 -97
  446. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/args +0 -1
  447. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/expect.txt +0 -1
  448. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/hooks/pre-commit +0 -2
  449. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/args +0 -1
  450. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/expect.txt +0 -1
  451. package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/hooks/pre-commit +0 -2
  452. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/args +0 -5
  453. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/expect.txt +0 -1
  454. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/checks/placeholder.txt +0 -3
  455. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/gate-tests/alpha.test.sh +0 -3
  456. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/lib/alpha.sh +0 -3
  457. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/checks/placeholder.txt +0 -3
  458. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/gate-tests/beta.test.sh +0 -3
  459. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/lib/beta.sh +0 -3
  460. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/checks/placeholder.txt +0 -3
  461. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/lib/gate.sh +0 -3
  462. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gate-sdk-config.knobs +0 -7
  463. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gates.list +0 -3
  464. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/args +0 -7
  465. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/expect.txt +0 -1
  466. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/checks/placeholder.txt +0 -3
  467. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/gate-tests/alpha.test.sh +0 -3
  468. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/lib/alpha.sh +0 -3
  469. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/checks/placeholder.txt +0 -3
  470. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/gate-tests/beta.test.sh +0 -3
  471. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/lib/beta.sh +0 -3
  472. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/checks/placeholder.txt +0 -3
  473. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/lib/gate.sh +0 -3
  474. package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/scripts/gates.list +0 -3
  475. package/payload/gate-sdk/gate-tests/check-packed-links/bad/alpha-kit/README.md +0 -5
  476. package/payload/gate-sdk/gate-tests/check-packed-links/bad/args +0 -5
  477. package/payload/gate-sdk/gate-tests/check-packed-links/bad/beta-kit/README.md +0 -5
  478. package/payload/gate-sdk/gate-tests/check-packed-links/bad/expect.txt +0 -2
  479. package/payload/gate-sdk/gate-tests/check-packed-links/bad/scripts/gate-sdk-config.knobs +0 -4
  480. package/payload/gate-sdk/gate-tests/check-packed-links/good/alpha-kit/README.md +0 -5
  481. package/payload/gate-sdk/gate-tests/check-packed-links/good/args +0 -8
  482. package/payload/gate-sdk/gate-tests/check-packed-links/good/beta-kit/README.md +0 -9
  483. package/payload/gate-sdk/gate-tests/check-packed-links/good/expect.txt +0 -1
  484. package/payload/gate-sdk/gate-tests/check-packed-links/good/gamma-kit/SPEC.md +0 -4
  485. package/payload/gate-sdk/gate-tests/check-packed-links/good/scripts/gate-sdk-config.knobs +0 -6
  486. package/payload/gate-sdk/gate-tests/check-portability-floor/good/patterns.list +0 -5
  487. package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/portability-patterns.list +0 -5
  488. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +0 -2
  489. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +0 -3
  490. /package/payload/gate-sdk/gate-tests/{check-shellcheck → check-psscriptanalyzer}/bad/args +0 -0
  491. /package/payload/gate-sdk/gate-tests/{check-shellcheck → check-psscriptanalyzer}/good/args +0 -0
  492. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/{delegation-kit → vendor/delegation-kit}/templates/agent-budget-guard.sh +0 -0
  493. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/agent-budget-guard.sh +0 -0
  494. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/delegation-config.sh +0 -0
  495. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/session-note.sh +0 -0
  496. /package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/{delegation-kit → vendor/delegation-kit}/templates/usage-poller.sh +0 -0
@@ -0,0 +1,3 @@
1
+ # spec: delegation-kit/SPEC.md §check-agent-tier-explicit — the case's binding: two classes bound, one with an effort, routing left unbound
2
+ DELEGATION_KIT_TIER_MODEL[] = judgment=big-tier-placeholder,deep-effort-placeholder
3
+ DELEGATION_KIT_TIER_MODEL[] = mechanical=cheap-tier-placeholder
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  name: explicit-cheap
3
3
  description: Fixture agent definition naming a cheaper tier outright.
4
+ tier: mechanical
4
5
  model: cheap-tier-placeholder
5
6
  ---
6
7
 
7
- Fixture body. The frontmatter states the tier, so the gate passes.
8
+ Fixture body. The frontmatter states the tier, and its model is the one the
9
+ case's binding gives its class, so the gate passes.
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: explicit-paired
3
+ description: Fixture agent definition holding both halves of its class's bound pair.
4
+ tier: judgment
5
+ model: big-tier-placeholder
6
+ effort: deep-effort-placeholder
7
+ ---
8
+
9
+ Fixture body. The case's binding gives this class a model and an effort, and
10
+ the frontmatter holds both generated lines, so the gate passes.
@@ -1 +1 @@
1
- AGENT-TIER-EXPLICIT: clean (2 agent definition(s) under agents
1
+ AGENT-TIER-EXPLICIT: clean (3 agent definition(s) under agents, each declaring an explicit model:; 2 holding their tier class's bound model)
@@ -0,0 +1,3 @@
1
+ # spec: delegation-kit/SPEC.md §check-agent-tier-explicit — the case's binding: two classes bound, one with an effort, so assertion B runs over both halves
2
+ DELEGATION_KIT_TIER_MODEL[] = judgment=big-tier-placeholder,deep-effort-placeholder
3
+ DELEGATION_KIT_TIER_MODEL[] = mechanical=cheap-tier-placeholder
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env bash
2
+ #exception-list: tag spacing
3
+ TAG=(
4
+ 'axes/tag.rs' # permanent: fixture
5
+ )
6
+ # exception-list: next assignment
7
+ printf ignored
8
+ NEXT=(
9
+ 'axes/next.rs' # permanent: fixture
10
+ )
11
+ # exception-list: balance
12
+ BALANCE=( # )
13
+ 'axes/paren).rs' # permanent: fixture )
14
+ 'axes/after.rs' # permanent: fixture
15
+ )
16
+ # exception-list: first token
17
+ TOKEN=(
18
+ 'axes/first.rs' 'scripts/axes/ignored.rs' # permanent: fixture
19
+ )
20
+ # exception-list: opening element
21
+ OPEN=('axes/open.rs')
22
+ # exception-list: tag inside an open array
23
+ OUTER=(
24
+ 'axes/outer.rs' # permanent: fixture
25
+ # exception-list: armed while OUTER is open
26
+ )
27
+ INNER=(
28
+ 'axes/inner.rs' # permanent: fixture
29
+ )
30
+ # exception-list: quote across lines
31
+ QUOTE=(
32
+ 'axes/multi.rs
33
+ )' # permanent: fixture
34
+ 'axes/after-quote.rs' # permanent: fixture
35
+ )
36
+ # exception-list: escapes
37
+ ESCAPE=(
38
+ "axes/esc\").rs" # permanent: fixture
39
+ 'axes/single\' # permanent: fixture
40
+ axes/bare\ name.rs # permanent: fixture
41
+ axes/hash#mid.rs # permanent: fixture
42
+ 'axes/after-escape.rs' # permanent: fixture
43
+ )
44
+ printf '%s\n' "${TAG[@]}" "${NEXT[@]}" "${BALANCE[@]}" "${TOKEN[@]}" "${OPEN[@]}" "${OUTER[@]}" "${INNER[@]}" "${QUOTE[@]}" "${ESCAPE[@]}"
@@ -1,3 +1,15 @@
1
1
  gate edit not isolated
2
2
  self-serving exemption
3
3
  call-service/src/*.rs -> call-service/src/lib.rs
4
+ axes/tag.rs -> axes/tag.rs
5
+ axes/next.rs -> axes/next.rs
6
+ axes/paren).rs -> axes/paren).rs
7
+ axes/after.rs -> axes/after.rs
8
+ axes/first.rs -> axes/first.rs
9
+ axes/open.rs -> axes/open.rs
10
+ axes/inner.rs -> axes/inner.rs
11
+ axes/after-quote.rs -> axes/after-quote.rs
12
+ axes/esc").rs -> axes/esc").rs
13
+ axes/bare name.rs -> axes/bare name.rs
14
+ axes/hash#mid.rs -> axes/hash#mid.rs
15
+ axes/after-escape.rs -> axes/after-escape.rs
@@ -3,3 +3,15 @@
3
3
  # file; a src/ path outside the meta prefixes is not meta-layer)
4
4
  scripts/check-foo.sh
5
5
  call-service/src/lib.rs
6
+ axes/tag.rs
7
+ axes/next.rs
8
+ axes/paren).rs
9
+ axes/after.rs
10
+ axes/first.rs
11
+ axes/open.rs
12
+ axes/inner.rs
13
+ axes/after-quote.rs
14
+ axes/esc").rs
15
+ axes/bare name.rs
16
+ axes/hash#mid.rs
17
+ axes/after-escape.rs
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env bash
2
+ #exception-list: tag spacing
3
+ TAG=(
4
+ 'axes/tag.rs' # permanent: fixture
5
+ )
6
+ # exception-list: next assignment
7
+ printf ignored
8
+ NEXT=(
9
+ 'axes/next.rs' # permanent: fixture
10
+ )
11
+ # exception-list: balance
12
+ BALANCE=( # )
13
+ 'axes/paren).rs' # permanent: fixture )
14
+ 'axes/after.rs' # permanent: fixture
15
+ )
16
+ # exception-list: first token
17
+ TOKEN=(
18
+ 'axes/first.rs' 'scripts/axes/ignored.rs' # permanent: fixture
19
+ )
20
+ # exception-list: opening element
21
+ OPEN=('axes/open.rs')
22
+ # exception-list: tag inside an open array
23
+ OUTER=(
24
+ 'axes/outer.rs' # permanent: fixture
25
+ # exception-list: armed while OUTER is open
26
+ )
27
+ INNER=(
28
+ 'axes/inner.rs' # permanent: fixture
29
+ )
30
+ # exception-list: quote across lines
31
+ QUOTE=(
32
+ 'axes/multi.rs
33
+ )' # permanent: fixture
34
+ 'axes/after-quote.rs' # permanent: fixture
35
+ )
36
+ # exception-list: escapes
37
+ ESCAPE=(
38
+ "axes/esc\").rs" # permanent: fixture
39
+ 'axes/single\' # permanent: fixture
40
+ axes/bare\ name.rs # permanent: fixture
41
+ axes/hash#mid.rs # permanent: fixture
42
+ 'axes/after-escape.rs' # permanent: fixture
43
+ )
44
+ printf '%s\n' "${TAG[@]}" "${NEXT[@]}" "${BALANCE[@]}" "${TOKEN[@]}" "${OPEN[@]}" "${OUTER[@]}" "${INNER[@]}" "${QUOTE[@]}" "${ESCAPE[@]}"
@@ -5,3 +5,4 @@ scripts/check-foo.sh
5
5
  scripts/SPEC.md
6
6
  TASK-QUEUE.md
7
7
  checkwright.lock
8
+ scripts/axes/ignored.rs
@@ -135,9 +135,30 @@ printf '{}\n' >"$d/product/checkwright.lock"
135
135
  git -C "$d" add scripts/check-sample.sh product/checkwright.lock
136
136
  case_run "$d" a-nested-manifest-namesake-beside-a-gate-edit 1 " product/checkwright.lock"
137
137
 
138
+ # I — a descriptor's `# exception:` line is an exemption element: one added beside a co-staged
139
+ # file it matches reds assertion B, and the same element matching nothing staged is silent.
140
+ descriptor_repo() {
141
+ local d
142
+ d="$(new_repo "$1")"
143
+ printf '# graph: dir=one valve=none tier=precommit\n# exception: product/*.txt # permanent: seeded\n' \
144
+ >"$d/scripts/check-described.gate"
145
+ git -C "$d" add scripts/check-described.gate
146
+ git -C "$d" commit -q -m describe
147
+ printf '# exception: %s # until: some-task\n' "$2" >>"$d/scripts/check-described.gate"
148
+ git -C "$d" add scripts/check-described.gate
149
+ printf '%s\n' "$d"
150
+ }
151
+ d="$(descriptor_repo descriptor-self-serving 'product/*.md')"
152
+ printf 'y\n' >"$d/product/excused.md"
153
+ git -C "$d" add product/excused.md
154
+ case_run "$d" a-descriptor-exemption-excusing-a-co-staged-file 1 "product/*.md -> product/excused.md"
155
+
156
+ d="$(descriptor_repo descriptor-unmatched 'nowhere/*.md')"
157
+ case_run "$d" a-descriptor-exemption-matching-nothing-staged 0 "GATE-TAMPER: clean"
158
+
138
159
  if [[ "$fails" -gt 0 ]]; then
139
160
  echo "check-gate-tamper.test: $fails assertion(s) failed"
140
161
  exit 1
141
162
  fi
142
- echo "check-gate-tamper.test: ok (live arm: HEAD-resident exemptions excluded, a newly added one excusing a co-staged file rejected, an unmatched one silent, a gate-file deletion read as empty, a registered gate outside every glob covered, the toplevel install manifest meta-layer and a nested namesake not)"
163
+ echo "check-gate-tamper.test: ok (live arm: HEAD-resident exemptions excluded, a newly added one excusing a co-staged file rejected, an unmatched one silent, a descriptor's # exception: element read alike, a gate-file deletion read as empty, a registered gate outside every glob covered, the toplevel install manifest meta-layer and a nested namesake not)"
143
164
  exit 0
@@ -1,18 +1,18 @@
1
- CONSUMER BINDING — create `.claude/commands/agent-execution.md` as a binding shim naming this template (a header `Execute the template at <path>, applying the bindings below.` then a `## Bindings` section) and bind its two slots — the shared-file roster and the validate battery. The full delegated-`Agent` execution protocol (any stage, any purpose — an audit, a build sweep, a one-off investigation). A resident pointer in the consumer's agent file keeps the protocol reachable from a delegating session; this skill is the complete procedure.
1
+ CONSUMER BINDING — create `agent-execution.md` in your agent-skill directory as a binding shim naming this template (a header `Execute the template at <path>, applying the bindings below.` then a `## Bindings` section) and bind its two slots — the shared-file roster and the validate battery. The full delegated-`Agent` execution protocol (any stage, any purpose — an audit, a build sweep, a one-off investigation). A resident pointer in the consumer's agent file keeps the protocol reachable from a delegating session; this skill is the complete procedure.
2
2
 
3
3
  For a **deletion, rename, or heavy cross-spec audit** dispatch, also load the mechanical pre-flight in [dispatch-checklists.md](dispatch-checklists.md) — a reach-through, not a change to this protocol; every rule below still applies.
4
4
 
5
5
  Four passages below — the **Background + notification, never poll** and **Findings you will act on are durable before you act on them** bullets, and the child-side clauses of isolation cost **(3)**, the resume check included — bind a dispatched role that fires no trigger loading this template, so each is also stated as a bare imperative in the consumer's always-loaded agent definition under delegation-kit/SPEC.md §Operative residency. That copy is sanctioned rather than drift: do not delete it on sight, and when any of the four changes here, propagate.
6
6
 
7
7
  - **Supervisor owns rulings; agents surface, never guess.** SECURITY and design rulings (e.g. a privileged caller set, a naming collision) are decided by the supervisor and handed down; an agent that hits anything its brief doesn't cover stops and reports rather than choosing.
8
- - **Background + notification, never poll.** Always `run_in_background`; wait for the completion notification; do not read the output file. Backgrounding keeps the main loop free to redirect. Backgrounding survives a **turn**, not a **session**. A supervisor's turn ends and its session lives on, so a backgrounded dispatch wakes it by notification — that is the sanctioned pattern just stated. A **dispatched agent's** turn end *is* its session end, and what that reliably kills is the **observer, not the work**: an `Agent` child is reaped with its parent, but a shell `run_in_background` child survives — orphaned, still writing, with nothing left able to read it. The survivor is the worse case, because it keeps mutating shared files while the next actor moves against them. Either way the caller gets no result, so a dispatched agent **never ends a turn on work still running** — it awaits its own long-running work to completion, however long, and reports only results it holds. Awaiting, not "dispatch in the foreground": foreground is a choice for a shell command and not reliably one for an `Agent` dispatch, which the harness may detach whether or not backgrounding was requested. And not by ending the turn to wait for the completion notification — that is the one act that revokes the channel, which is how a *careful* reader reaches this failure. Wait **in-turn on a condition** instead: loop on the work's own artifact (evidence file, lock, exit marker). Never-poll governs waiting on an `Agent`'s completion notification, a channel a supervisor has; condition-waiting is the only one a dispatched role has. **Which primitive — the one whose wait ends when the condition goes true, not when a duration expires.** The harness offers two forms with different reactivity, and the difference is exactly the wall-clock property this rule exists to buy. **Background a command that *exits* on the condition** — a `run_in_background` shell command wrapping `until <cond>; do sleep N; done` — and it fires one notification the moment the condition holds, then ends: that is the sanctioned form, and it holds that place on measurement rather than on preference (delegation-kit/SPEC.md §bin/wait-probe). The harness's **event-stream form**, armed with a command and a deadline, emits one event per occurrence and stays armed to its deadline after the event fires **when the command it was armed with is unbounded** — a `tail -f`, a `while true` — so pointed at a single completion by way of such a command it converts a wait that should end in seconds into one that ends at the timeout. Armed with a command that *exits*, that watch ends too: it is the second choice for a single completion, not a broken one, and it is named here because a reader told only about the first form reaches for this one the next time the shape looks close. Never a bare foreground `sleep`, which ends on neither. **Get the loop's polarity right — the two rules in this bullet compose into a trap, and it is the one that has actually fired.** `until` ends when its condition becomes **true**, so `until` takes a *done* predicate: `until [ -f <marker> ]; do sleep N; done`. Liveness is a *still-running* predicate, so it takes `while`: `while kill -0 <pid> 2>/dev/null; do sleep N; done`, `<pid>` the literal from the record, never `$pid`. Composing "wrap `until <cond>`" with "loop on the recorded PID's liveness" literally gives `until kill -0 <pid>`, whose condition is true while the producer is **alive** — so it exits at once. **The tell** is a waiter that exited **zero**, in milliseconds, with its producer still running and its condition never met. Neither keyword costs anything at the guard, which reads the loop's span and not its keyword. **What you wait *on* splits two ways, and the split is what makes the artifact reachable.** An **`Agent` dispatch** is awaited by its **completion notification** — that record is the harness's, not the session's — so never go looking for it on disk. A **shell child** has no notification channel of its own, so it is awaited on an artifact *the session placed*, and which artifact depends on what the child **is**. A **producer** — a child that writes anything a later reader must not race — is awaited on a **liveness record you write at its launch**, one line in the form `pid=<n> run=<key>`, in a file named **`<key>.run`** — the same `<key>`, so the name carries no field the line does not — written where the **Resume journal — agent writes, scratch reset sweeps** bullet below sends a journal, repo-local gitignored scratch in the main checkout, on that bullet's stated survivability grounds, widened here from the journal to any artifact a session waits on. An **observer** — a wait loop, a read-only pipeline, anything that writes nothing — **writes no record**. **Launch and record in one call, in the spelling the guard grants**: guard-kit's rule *Backgrounded launch that records no producer* (guard-kit/SPEC.md §The generic ruleset) owns the spelling and enforces the same producer/observer split, exempting an **inline** wait loop and a read-only pipeline from the record. It refuses any other launch that writes no record, and a record written in any other spelling costs a permission decision on its `$!`. Spell a wait inline so it meets that exemption; a wait behind a script or binary name is invisible to the guard's span walk and takes the record like any launch. **A call the harness moves to the background on its timeout is a launch you did not make, and it is yours.** The result says so ("moved to the background"), and nothing recorded it. Prevent it: give a foreground call a timeout above the command's run, and launch anything that can outrun that timeout backgrounded, with its record, as above. If a call is moved anyway, it is a live producer from that moment. Where it names its own pid (a lock, a printed pid), write its `<key>.run` record from that pid at once. Either way, end no turn and write nothing to the tracked tree until its completion notification arrives. **A recorded wait owes one check before it starts: can my own record falsify my condition?** Such a wait is only safe where its condition is independent of the record set. A condition that *reads* the record set, directly or through a gate that does — a stage entry, a commit, any tracked-tree write — is falsified by the waiter's own record and can never go true. Two lawful answers: respell the wait inline so it owes no record, or wait on the artifact itself rather than on the gate that reads the record set. A producer's record *is* the wait target: loop on its PID's liveness — `while kill -0 <pid> 2>/dev/null; do sleep N; done`, on the polarity rule above — and the loop ends when the PID stops answering. Write it at the launch, not after, and leave it behind — a completion marker answers *is it done* to a live observer, and the case this rule exists for is the one where the observer is gone, where a liveness record still answers *is it still running* to whoever arrives next. Whoever that is reads it with `check-producer-liveness <record>` — or, because the `.run` suffix makes the set a glob rather than a path someone must be told, `check-producer-liveness <scratch-dir>` over all of them at once — unchanged and already wired (evidence-kit/SPEC.md §check-producer-liveness), which is why the record is in that gate's grammar rather than a shape of your own. **Delete the record when its producer is done, and never before.** While one names a live PID, a guard blocks every `git` command that writes the index, the worktree or a ref (guard-kit rule `git_mutation_under_producer`) — a commit taken under a live producer dirties the tree it is measuring and costs that run's whole verdict. Deleting a record whose producer has exited is not a way around the block: it is a statement of fact that has become false being retracted. **And never by pattern-matching the process table.** `pgrep -f '<pattern>'` matches the waiter's own argv — the harness's wrapper argv matches too — so `until ! pgrep -f '<script>'; do …; done` can never go false and never exits, reddening nothing while it burns the whole foreground cap. Where liveness *is* the condition, match a **recorded PID** (`while kill -0 <pid> 2>/dev/null`) and never a pattern — one rule, whoever started the producer, your own backgrounded child included: a PID is an identity, a pattern is a guess about a process table that includes the guesser. The bracket-trick repair (`pgrep -f '[r]un-smoke.sh'`) is **not** the sanctioned form, and its grounds for being refused are delegation-kit/SPEC.md §The delegation model's.
9
- - **Serialize on shared files; ≤`DELEGATION_KIT_FAN_WIDTH`-wide otherwise.** Agents that edit a shared file (see the roster below) run one at a time — dispatch, await notification, verify, dispatch the next. Independent read-only units may run ≤`DELEGATION_KIT_FAN_WIDTH`-wide. **The git index and HEAD are shared files for every agent that commits**, independent of source-file disjointness: two committing agents racing `git add`/`git commit` interleave and one sweeps the other's staged files under the wrong message. So agents that each commit must be **serialized** *or* run under `isolation: worktree` (own index); reserve the unlocked ≤`DELEGATION_KIT_FAN_WIDTH`-wide bound for **read-only** fan-outs. "No lockfile churn" is a false safety signal — the index is shared regardless. Serialization is by **completion**, not by notification: the next dispatch begins after the previous one has *returned and been verified*. A supervisor reaches that point via the completion notification; a **dispatched agent** reaches it in-turn, awaiting each child before dispatching the next (it cannot end its turn to wait — see the backgrounding rule). The ordering requirement is identical for both; only the waiting mechanism differs, and neither role may overlap two agents on a shared file or the git index.
8
+ - **Background + notification, never poll.** Always `run_in_background`; wait for the completion notification; do not read the output file. Backgrounding keeps the main loop free to redirect. A supervisor's turn ends and its session lives on, so a backgrounded dispatch wakes it by a notification arriving after that turn has ended — that is the sanctioned pattern just stated. A **dispatched agent** has no such pattern. Its report is the whole of what its caller holds, and work still running when the report goes is in no report. A shell `run_in_background` child outlives that turn end, still writing, and it keeps mutating shared files while the next actor moves against them. What becomes of your session after such a turn end is the harness's and differs by harness, so rely on none of it (delegation-kit/SPEC.md §The delegation model). A dispatched agent **never ends a turn on work still running** — it awaits its own long-running work to completion, however long, and reports only results it holds. Awaiting, not "dispatch in the foreground": foreground is a choice for a shell command and not reliably one for an `Agent` dispatch, which the harness may detach whether or not backgrounding was requested. And, for anything but an `Agent` child of its own, not by ending the turn to wait for the completion notification — no harness promises a dispatched session the turn that wait needs, which is how a *careful* reader reaches this failure. Wait **in-turn on a condition** instead: loop on the work's own artifact (evidence file, lock, exit marker). **A wait owes a producer that will make its condition true**, and a backgrounded wait on a file condition is refused at its launch while no launch record names a live producer (guard-kit rule `wait_no_producer`). **Never launch a wait to hold a turn open.** **A question to your caller is a turn end, never a wait**: ask it and end the turn. Never-poll governs waiting on an `Agent`'s completion notification, a channel a supervisor has and a dispatched role has for its own `Agent` child alone (the split below); for everything else condition-waiting is the only one a dispatched role has. **Which primitive — the one whose wait ends when the condition goes true, not when a duration expires.** The harness offers two forms with different reactivity, and the difference is exactly the wall-clock property this rule exists to buy. **Background a command that *exits* on the condition** — a `run_in_background` shell command wrapping `until <cond>; do sleep N; done` — and it fires one notification the moment the condition holds, then ends: that is the sanctioned form, and it holds that place on measurement rather than on preference (delegation-kit/SPEC.md §bin/wait-probe). The harness's **event-stream form**, armed with a command and a deadline, emits one event per occurrence and stays armed to its deadline after the event fires **when the command it was armed with is unbounded** — a `tail -f`, a `while true` — so pointed at a single completion by way of such a command it converts a wait that should end in seconds into one that ends at the timeout. Armed with a command that *exits*, that watch ends too: it is the second choice for a single completion, not a broken one, and it is named here because a reader told only about the first form reaches for this one the next time the shape looks close. Never a bare foreground `sleep`, which ends on neither. **Get the loop's polarity right — the two rules in this bullet compose into a trap, and it is the one that has actually fired.** `until` ends when its condition becomes **true**, so `until` takes a *done* predicate: `until [ -f <marker> ]; do sleep N; done`. Liveness is a *still-running* predicate, so it takes `while`: `while kill -0 <pid> 2>/dev/null; do sleep N; done`, `<pid>` the literal from the record, never `$pid`. Composing "wrap `until <cond>`" with "loop on the recorded PID's liveness" literally gives `until kill -0 <pid>`, whose condition is true while the producer is **alive** — so it exits at once. **The tell** is a waiter that exited **zero**, in milliseconds, with its producer still running and its condition never met. Neither keyword costs anything at the guard, which reads the loop's span and not its keyword. **What you wait *on* splits two ways, and the split is what makes the artifact reachable.** An **`Agent` dispatch** is awaited by its **completion notification** — that record is the harness's, not the session's — so never go looking for it on disk. **A dispatched session with an `Agent` child still running and nothing else to run ends its turn with its report undelivered, and that turn end is the wait.** Where the harness delivers your report through a hand-back call of its own, a turn ended without that call while your `Agent` child is live does not end your session: the child's hand-back arrives as your next turn. Launch no wait, loop or poll to hold the turn open, and make the hand-back call only once you hold every child's return. Where the harness returns your last message as the report, there is no such turn end: keep working until the notification arrives between tool calls (delegation-kit/SPEC.md §The delegation model carries the measurement and its limits). A **shell child** has no notification channel of its own, so it is awaited on an artifact *the session placed*, and which artifact depends on what the child **is**. A **producer** — a child that writes anything a later reader must not race — is awaited on a **liveness record you write at its launch**, one line in the form `pid=<n> run=<key>`, in a file named **`<key>.run`** — the same `<key>`, so the name carries no field the line does not — written where the **Resume journal — agent writes, scratch reset sweeps** bullet below sends a journal, repo-local gitignored scratch in the main checkout, on that bullet's stated survivability grounds, widened here from the journal to any artifact a session waits on. An **observer** — a wait loop, a read-only pipeline, anything that writes nothing — **writes no record**. **Launch and record in one call, in the spelling the guard grants**: guard-kit's rule *Backgrounded launch that records no producer* (guard-kit/SPEC.md §The generic ruleset) owns the spelling and enforces the same producer/observer split, exempting an **inline** wait loop and a read-only pipeline from the record. It refuses any other launch that writes no record, and a record written in any other spelling costs a permission decision on its `$!`. Spell a wait inline so it meets that exemption; a wait behind a script or binary name is invisible to the guard's span walk and takes the record like any launch. **A call the harness moves to the background on its timeout is a launch you did not make, and it is yours.** The result says so ("moved to the background"), and nothing recorded it. Prevent it: give a foreground call a timeout above the command's run, and launch anything that can outrun that timeout backgrounded, with its record, as above. If a call is moved anyway, it is a live producer from that moment. Where it names its own pid (a lock, a printed pid), write its `<key>.run` record from that pid at once. Either way, end no turn and write nothing to the tracked tree until its completion notification arrives. **A recorded wait owes one check before it starts: can my own record falsify my condition?** Such a wait is only safe where its condition is independent of the record set. A condition that *reads* the record set, directly or through a gate that does — a stage entry, a commit, any tracked-tree write — is falsified by the waiter's own record and can never go true. Two lawful answers: respell the wait inline so it owes no record, or wait on the artifact itself rather than on the gate that reads the record set. A producer's record *is* the wait target: loop on its PID's liveness — `while kill -0 <pid> 2>/dev/null; do sleep N; done`, on the polarity rule above — and the loop ends when the PID stops answering. Write it at the launch, not after, and leave it behind — a completion marker answers *is it done* to a live observer, and the case this rule exists for is the one where the observer is gone, where a liveness record still answers *is it still running* to whoever arrives next. Whoever that is reads it with `check-producer-liveness <record>` — or, because the `.run` suffix makes the set a glob rather than a path someone must be told, `check-producer-liveness <scratch-dir>` over all of them at once — unchanged and already wired (evidence-kit/SPEC.md §check-producer-liveness), which is why the record is in that gate's grammar rather than a shape of your own. **Delete the record when its producer is done, and never before.** While one names a live PID, a guard blocks every `git` command that writes the index, the worktree or a ref (guard-kit rule `git_mutation_under_producer`) — a commit taken under a live producer dirties the tree it is measuring and costs that run's whole verdict. Deleting a record whose producer has exited is not a way around the block: it is a statement of fact that has become false being retracted. **And never by pattern-matching the process table.** `pgrep -f '<pattern>'` matches the waiter's own argv — the harness's wrapper argv matches too — so `until ! pgrep -f '<script>'; do …; done` can never go false and never exits, reddening nothing while it burns the whole foreground cap. Where liveness *is* the condition, match a **recorded PID** (`while kill -0 <pid> 2>/dev/null`) and never a pattern — one rule, whoever started the producer, your own backgrounded child included: a PID is an identity, a pattern is a guess about a process table that includes the guesser. The bracket-trick repair (`pgrep -f '[r]un-smoke.sh'`) is **not** the sanctioned form, and its grounds for being refused are delegation-kit/SPEC.md §The delegation model's. <!-- harness-binding: a template addressed to the harness's own agent -->
9
+ - **Serialize on shared files; ≤`DELEGATION_KIT_FAN_WIDTH`-wide otherwise.** Agents that edit a shared file (see the roster below) run one at a time — dispatch, await notification, verify, dispatch the next. Independent read-only units may run ≤`DELEGATION_KIT_FAN_WIDTH`-wide, counting every dispatch still in flight, those you send in one message included. No guard counts them: the budget check's `width=` field reports the bound and nothing refuses a dispatch past it. **The git index and HEAD are shared files for every agent that commits**, independent of source-file disjointness: two committing agents racing `git add`/`git commit` interleave and one sweeps the other's staged files under the wrong message. Commit with the only-paths form, `git commit -o <paths>`: it commits exactly the named paths whatever else is staged, which closes the sweep and not the contention for the index lock and `HEAD`. Name a path you `git rm`'d among those paths: left out, it stays in the temporary index the hook reads, absent on disk, and a gate reading tracked files reds. So agents that each commit must be **serialized** *or* run under `isolation: worktree` (own index); reserve the unlocked ≤`DELEGATION_KIT_FAN_WIDTH`-wide bound for **read-only** fan-outs. "No lockfile churn" is a false safety signal — the index is shared regardless. Serialization is by **completion**, not by notification: the next dispatch begins after the previous one has *returned and been verified*. A supervisor reaches that point via the completion notification; a **dispatched agent** reaches it in-turn, awaiting each child before dispatching the next (how it waits is the backgrounding rule's). The ordering requirement is identical for both; only the waiting mechanism differs, and neither role may overlap two agents on a shared file or the git index.
10
10
  - **Never dispatch a fork to narrow a child.** A fork is wrong exactly when the dispatch's purpose is that the child does *less* than the parent: a fork inherits the parent's context, toolset and model tier whole and disclaims nothing, so every narrowing survives only as a sentence in the prompt. Three dispatching contexts, each with its own grounds. A **read-only audit or survey** wants narrower *authority* — the fork carries the parent's full reach, so the restriction is a request. A **tier-split oracle** wants narrower *cost* — the fork inherits the dispatcher's model, which is exactly the split the posture exists to make (a lead posture that dispatches its own oracle is the named instance). A **rule-injection dispatch** wants a *different* brief — a fork chosen to inject rules the agent types lack still pays to re-materialize its parent's context. The boundary, stated honestly: a fork stays correct where the child does the **same job at the same authority** and only parallelism or isolation is wanted. The dispatch guard blocks there too, because a hook cannot read intent and no sanctioned fork use exists in this doctrine — the valve is unregistering the hook, never a per-dispatch knob, which would restore the honour system the rule replaced (delegation-kit/SPEC.md §The delegation model).
11
11
  - **A read-only claim is made by isolation, not by sentence.** A brief saying "read-only, no edits" makes no claim: a subagent inherits its toolset from its **type**, never from the instruction text. The claim is made by `isolation: worktree`. Take it for an agent that *will* commit — an **own index**, the **Serialize on shared files** rule above — and for any agent *claimed* read-only, as **write confinement**. Grounds for this rule and the next: delegation-kit/SPEC.md §The delegation model.
12
- - **Isolation charges five harness costs, and paying them is the parent's job.** **(1) The worktree's base is configuration, and the default is not HEAD.** `worktree.baseRef` selects it: `fresh` (the default) branches from `origin/<default-branch>`, `head` from the dispatcher's local HEAD. Set it deliberately, and pin it, before you design around it. Under `fresh` a child reads the *pre-change* tree: read your exposure with `git log origin/<default-branch>..HEAD` before dispatching. Naming a commit in the prompt does not make the checkout that commit, so state the rev and have the child verify it with `git rev-parse HEAD` and read every target with `git show <rev>:<path>`. **A child whose target is unreadable at that rev stops and says so**, and never falls back to the dispatch prompt's own paraphrase of it. **(2) The worktree lands inside the repo and untracked**, so an in-flight isolated agent reads as a dirty tree and aborts every clean-tree precondition — a consumer smoke, a packaging step, any commit. Gitignore the path, and **reap what you minted at your own turn end**, by `git worktree list` rather than off `git status`: once ignored, the status is clean while the worktree still stands. Reap **both** halves: `git worktree remove` clears the directory and leaves the agent's branch ref standing, so delete that ref in the same motion, or the refusal clears while the refs accrete unseen. Reap **your own** trees, never every tree you can see; the iteration-boundary refusal — which refuses to enter while any linked worktree exists (lifecycle-kit/SPEC.md §bin/enter-stage.sh) — stays the **backstop**, not the schedule. **And the pid in a worktree's lock reason is the harness's, not an agent liveness signal.** Where a harness locks the tree it writes its own supervising process's pid there, not the dispatched agent's: that process is alive for as long as your session is and carries the same pid across every dispatch and across an iteration boundary, so probing it answers *still in use* for a tree nobody holds. Judge the tree by what it carries, a clean `git status --porcelain` inside it and nothing past its base, and by whether you know a dispatch is in flight; never by that pid. **(3) An isolated child sees only committed state.** Untracked and gitignored files are in no commit, so no base ref reaches them and naming a rev does not help. **A sweep whose corpus includes an untracked or gitignored surface names that surface absolute into the main checkout** in the prompt. The child reads a named file there with the harness's read tool, and searches under it only with a read-only pipeline of the shell guard's read-only roster. Under guard-kit, its rule *A main-checkout path from a linked worktree* admits that form and refuses every other shell command naming the main checkout outside its scratch dir, and its refusal names the roster. Tell the child so in the prompt when the type's definition does not. Classify the corpus before you dispatch rather than after you read the answer; `git check-ignore` decides it. **And the child's side of it, on cost (4)'s pattern:** a target absent inside isolation because it is untracked or gitignored is a **blindness**, never a finding of absence — name the path, say it was unreadable at this rev, and return. And one more check on the child's side, at every resume as well as at the start: dispatched under isolation, confirm that your top level is a linked worktree (`git rev-parse --git-dir` differs from `git rev-parse --git-common-dir`). If it is not, your isolation is gone: stop, say so, and return without running the work. **(4) A gate dispatched to a compiled binary resolves inside an isolated worktree when the main checkout's binary matches the worktree's source, and never by a build.** The front end links that binary into the worktree after comparing source stamps (gate-sdk/SPEC.md §lib/gate.sh, `gate_verdict_bin`); a skewed or absent one leaves the gate unavailable, which inside isolation is **the expected reading, not a defect to repair**: do not read it as a verdict, and **do not build the binary**. Name the gate that could not run, say why, and return. A worktree verdict omits the main checkout's gitignored overlays — a `.local.knobs` file, a local pattern list — so a sweep whose conclusion turns on one names it absolute, as (3) does. **The dispatcher's half:** an oracle-running sweep is delegable into isolation; classify only whether its oracle reads a gitignored overlay. **One exception, and it is the consumer's to supply rather than yours to assume**: the **turn-end liveness reader** may already be resolved for you by the consumer's adapter (delegation-kit/SPEC.md §The turn-end liveness hook (template)), so the refusal that used to meet an isolated agent at every turn end — the one that invited the mutating remedy — need not fire. Nothing else here moves. Every other binary-dispatched gate still resolves inside a worktree only as (4) states, and the **do-not-build** prohibition is unchanged for all of them, that one included. **(5) Your report can be displaced, and the recovery is written down because a parent meeting one has no reason to believe the report still exists.** The harness returns only a dispatched session's **last** assistant message, so any turn-end hook that speaks overwrites whatever you returned. Recovery: **resume the child by id and ask it to re-emit its report verbatim, telling it explicitly not to re-run the work.** Two limits. It is **not reliable** — a resume may answer that the session has just started, leaving the sweep to be re-run. And the usage block is **no signal either**: a successful re-emit can report the *original* run's tool count and tokens, so the zero-tool-use shape marks some resumes and not all. Still reachable from any consumer whose liveness adapter has not taken (4)'s exception, an adopter vendoring this kit today included.
12
+ - **Isolation charges five harness costs, and paying them is the parent's job.** **(1) The worktree's base is configuration, and the default is not HEAD.** `worktree.baseRef` selects it: `fresh` (the default) branches from `origin/<default-branch>`, `head` from the dispatcher's local HEAD. Set it deliberately, and pin it, before you design around it. Under `fresh` a child reads the *pre-change* tree: read your exposure with `git log origin/<default-branch>..HEAD` before dispatching. Naming a commit in the prompt does not make the checkout that commit, so state the rev and have the child verify it with `git rev-parse HEAD` and read every target with `git show <rev>:<path>`. **A child whose target is unreadable at that rev stops and says so**, and never falls back to the dispatch prompt's own paraphrase of it. **(2) The worktree lands inside the repo and untracked**, so an in-flight isolated agent reads as a dirty tree and aborts every clean-tree precondition — a consumer smoke, a packaging step, any commit. Gitignore the path, and **reap what you minted at your own turn end**, by `git worktree list` rather than off `git status`: once ignored, the status is clean while the worktree still stands. Reap **both** halves: `git worktree remove` clears the directory and leaves the agent's branch ref standing, so delete that ref in the same motion, or the refusal clears while the refs accrete unseen. Reap **your own** trees, never every tree you can see; the iteration-boundary refusal — which refuses to enter while any linked worktree exists (lifecycle-kit/SPEC.md §bin/enter-stage.sh) — stays the **backstop**, not the schedule. **And the pid in a worktree's lock reason is the harness's, not an agent liveness signal.** Where a harness locks the tree it writes its own supervising process's pid there, not the dispatched agent's: that process is alive for as long as your session is and carries the same pid across every dispatch and across an iteration boundary, so probing it answers *still in use* for a tree nobody holds. Judge the tree by what it carries, a clean `git status --porcelain` inside it and nothing past its base, and by whether you know a dispatch is in flight; never by that pid. **(3) An isolated child sees only committed state.** Untracked and gitignored files are in no commit, so no base ref reaches them and naming a rev does not help. **A sweep whose corpus includes an untracked or gitignored surface names that surface absolute into the main checkout** in the prompt. The child reads a named file there with the harness's read tool, and searches under it only with a read-only pipeline or a read-only arm of the gate binary, the forms the shell guard's refusal names. Under guard-kit, its rule *A main-checkout path from a linked worktree* admits those forms and refuses every other shell command naming the main checkout outside its scratch dir, and its refusal names both. Tell the child so in the prompt when the type's definition does not. Classify the corpus before you dispatch rather than after you read the answer; `git check-ignore` decides it. **And the child's side of it, on cost (4)'s pattern:** a target absent inside isolation because it is untracked or gitignored is a **blindness**, never a finding of absence — name the path, say it was unreadable at this rev, and return. And one more check on the child's side, at every resume as well as at the start: dispatched under isolation, confirm that your top level is a linked worktree (`git rev-parse --git-dir` differs from `git rev-parse --git-common-dir`). If it is not, your isolation is gone: stop, say so, and return without running the work. **(4) A gate dispatched to a compiled binary resolves inside an isolated worktree when the main checkout's binary matches the worktree's source, and never by a build.** The front end links that binary into the worktree after comparing source stamps (gate-sdk/SPEC.md §lib/gate.sh, `gate_verdict_bin`); a skewed or absent one leaves the gate unavailable, which inside isolation is **the expected reading, not a defect to repair**: do not read it as a verdict, and **do not build the binary**. Name the gate that could not run, say why, and return. A worktree verdict omits the main checkout's gitignored overlays — a `.local.knobs` file, a local pattern list — so a sweep whose conclusion turns on one names it absolute, as (3) does. **The dispatcher's half:** an oracle-running sweep is delegable into isolation; classify only whether its oracle reads a gitignored overlay. **One exception, and it is the consumer's to supply rather than yours to assume**: the **turn-end liveness reader** may already be resolved for you by the consumer's adapter (delegation-kit/SPEC.md §The turn-end liveness hook (template)), so the refusal that used to meet an isolated agent at every turn end — the one that invited the mutating remedy — need not fire. Nothing else here moves. Every other binary-dispatched gate still resolves inside a worktree only as (4) states, and the **do-not-build** prohibition is unchanged for all of them, that one included. **(5) Your report can be displaced, and the recovery is written down because a parent meeting one has no reason to believe the report still exists.** The harness returns only a dispatched session's **last** assistant message, so any turn-end hook that speaks overwrites whatever you returned. Recovery: **resume the child by id and ask it to re-emit its report verbatim, telling it explicitly not to re-run the work.** Two limits. It is **not reliable** — a resume may answer that the session has just started, leaving the sweep to be re-run. And the usage block is **no signal either**: a successful re-emit can report the *original* run's tool count and tokens, so the zero-tool-use shape marks some resumes and not all. Still reachable from any consumer whose liveness adapter has not taken (4)'s exception, an adopter vendoring this kit today included.
13
13
  - **One commit per unit, sized to finish within budget.** Each unit gets its own commit (+ a `[blocked-by: prior]` tag where ordered). A unit that investigates long before its first commit is the only thing an interrupt can destroy — split it. Trigger to split: >4 components, OR mixes mechanical + architectural work, OR >300 tool calls estimated.
14
14
  - **Gate-driven worklist where one exists.** Drive the sweep from the gate's output, so an interrupt loses only the in-flight uncommitted unit and a fresh session re-runs the gate to resume.
15
- - **Resume journal — agent writes, scratch reset sweeps.** The agent writes a running progress journal — an isolated agent by a shell append, since the harness refuses its file-tool writes to the main checkout — (findings triaged, edits applied, what remains) to a repo-local gitignored scratch dir in the main checkout — `.tmp/` here — never a temporary worktree (deleted with the worktree) nor a system temp dir (a restart wipes it); name the path **absolute into the main checkout** in the dispatch prompt so a worktree-isolated agent writes to the surviving tree, not its doomed one. Repo-dir-local scratch is reboot-survivable, cheap to clean, and predictable across coding agents. **Where the consumer runs a stage machine the path is derived, not invented** — it is a function of the stage, so the grant in the prompt restates a name both ends can compute rather than minting one, and several sessions of one stage **append to that one file** instead of each naming its own (lifecycle-kit/SPEC.md §The state machine). The agent updates it as it goes; on success it appends a `DONE` marker. Each finding is written into the journal *inline as it is confirmed* — never "see final output": the agent's return message dies with the session, so a pointer-only journal makes `DONE` lie about recoverability. **Spell the append as its own bare statement**, never chained after a diagnostic read on the same command line: a consumer whose permission layer auto-grants a scratch write bounds that grant to a single-statement command, so a chained append loses it and buys a permission decision on the most frequent write the protocol asks for. Measured at one close: that one spelling was a third of the session's prompting calls. **Nobody deletes a journal while the work it covers is live** — not the agent (no `rm`) and not the supervisor, whose deletion would take the file out from under a resumed agent and destroy its own pull channel mid-unit. Cleanup is the consumer's scratch reset at its next work-unit boundary, not a chore in this protocol. `DONE` is the completion marker and counts **only as the file's last line**: a session resumed past its own marker appends after it. A journal *without* a `DONE` marker signals interruption only in a **cold read** — the supervisor found a journal but never consumed the agent's return (its session died before returning); there, no `DONE` = interrupted, resume from it. On the ordinary path the supervisor consumed the return and ran its post-commit verification, which *is* the completion attest, so the missing marker is redundant, not a signal of interruption. Since every journal now outlives its session, presence alone signals nothing — tell a live journal from a spent one by the work cursor and `git log` (delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps). **Caveat — a journal write has been observed to fail, cause unexplained.** Read it as one unexplained observation, not as a property of isolation. So: grant a journal path explicitly before dispatch to every agent whose run an interruption could cost — a mutating agent, and a read-only sweep alike — rather than assuming the write succeeds; for a read-only fan-out the return value stays the contract, and its journal is the record an interruption leaves (a lifecycle-kit stage session is the standing exception — its journal path is derived by its own `--enter-stage` entry, never granted; lifecycle-kit/SPEC.md §The state machine). **Worktree isolation is not granted or withheld with the journal** — the two answer different questions, and bundling them read as *a read-only fan-out needs no isolation*, which is the reading that licensed an unreviewed commit on the shared branch. A read-only fan-out takes isolation precisely *because* it is claimed read-only (the **A read-only claim is made by isolation, not by sentence** rule above). The child journals as it goes, and the **parent** still owes the durable landing of what it received before acting on it (next bullet).
15
+ - **Resume journal — agent writes, scratch reset sweeps.** The agent writes a running progress journal — an isolated agent by a shell append, since the harness refuses its file-tool writes to the main checkout — (findings triaged, edits applied, what remains) to a repo-local gitignored scratch dir in the main checkout — `.tmp/` here — never a temporary worktree (deleted with the worktree) nor a system temp dir (a restart wipes it); name the path **absolute into the main checkout** in the dispatch prompt so a worktree-isolated agent writes to the surviving tree, not its doomed one. **Where the consumer runs a stage machine the path is derived, not invented** — it is a function of the stage, so the grant in the prompt restates a name both ends can compute rather than minting one, and several sessions of one stage **append to that one file** instead of each naming its own (lifecycle-kit/SPEC.md §The state machine). The agent updates it as it goes; on success it appends a `DONE` marker. Each finding is written into the journal *inline as it is confirmed* — never "see final output": the agent's return message dies with the session, so a pointer-only journal makes `DONE` lie about recoverability. **Spell the append as its own bare, literal statement**, never chained after a diagnostic read and with no quote, escape, expansion, glob or heredoc: a consumer whose permission layer auto-grants a scratch write grants only one literal statement, so any other spelling buys a decision on the protocol's most frequent write. A finding needing a quote or a second line takes the journal arm where the session has one (below). Measured at one close: that one spelling was a third of the session's prompting calls. **Nobody deletes a journal while the work it covers is live** — not the agent (no `rm`) and not the supervisor, whose deletion would take the file out from under a resumed agent and destroy its own pull channel mid-unit. Cleanup is the consumer's scratch reset at its next work-unit boundary, not a chore in this protocol. `DONE` is the completion marker and counts **only as the file's last line**: a session resumed past its own marker appends after it. A journal *without* a `DONE` marker signals interruption only in a **cold read** — the supervisor found a journal but never consumed the agent's return (its session died before returning); there, no `DONE` = interrupted, resume from it. On the ordinary path the supervisor consumed the return and ran its post-commit verification, which *is* the completion attest, so the missing marker is redundant, not a signal of interruption. Since every journal now outlives its session, presence alone signals nothing — tell a live journal from a spent one by the work cursor and `git log` (delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps). **Caveat — a journal write has been observed to fail, cause unexplained.** Read it as one unexplained observation, not as a property of isolation. So: grant a journal path explicitly before dispatch to every agent whose run an interruption could cost — a mutating agent, and a read-only sweep alike — rather than assuming the write succeeds; for a read-only fan-out the return value stays the contract, and its journal is the record an interruption leaves (a lifecycle-kit stage session is the standing exception — its own `--enter-stage` entry derives the path and its `--emit journal` arm appends there, so it is granted no path and spells none; lifecycle-kit/SPEC.md §The journal arm). **Worktree isolation is not granted or withheld with the journal** — the two answer different questions, and bundling them read as *a read-only fan-out needs no isolation*, which is the reading that licensed an unreviewed commit on the shared branch. A read-only fan-out takes isolation precisely *because* it is claimed read-only (the **A read-only claim is made by isolation, not by sentence** rule above). The child journals as it goes, and the **parent** still owes the durable landing of what it received before acting on it (next bullet).
16
16
  - **A child's only upward route is a durable artifact.** No address reaches the agent that dispatched a child — its sends resolve to neither an invented dispatcher name nor its own agent type, only a send addressed to the **top-level session** arrives, and neither level knows its own identity or its parent's. Four dispositions follow. **(1) A durable artifact, for anything mid-run** — the dispatcher mints a path, names it **absolute into the main checkout** in the prompt, and the child writes as it goes. That is already the journal rule above; it is now also the *only* upward route there is, and it is stronger than a message would be, because a file survives a child that dies before returning. A **stop signal takes the same shape** — a sentinel the child checks — so it is cooperative by construction and a wedged child stays out of reach. **(2) Return-value only, otherwise** — a fan-out needing no mid-run channel needs no artifact, which a short read-only fan-out still is. Say so in the prompt of every isolated read-only dispatch: its report is its final message, or the harness's hand-back where it has one, and it sends to no peer. **(3) The downward half is a dispatch-shape rule** — a dispatcher that wants control over its fan-out dispatches in the background and keeps the handle; what actually failed was a dispatcher blocked on a foreground dispatch, holding neither the handle nor a turn. **(4) Naming the address a child should use is refused** — there is none, and the refusal is stated rather than omitted because it is the first thing both original filings reached for. Two corollaries defeat the workarounds a reader would otherwise invent: a message that does reach the top-level session is attributed to the sender's **type**, so a fan-out wider than one is ambiguous at the receiving end; and a child resumed by a message from its dispatcher still cannot reply, so being addressed creates no return path. One live hazard rides with them: the message and stop tools may be **deferred** for a dispatched agent — callable only after a discovery call it has to know to make — so a child that needs to escalate may not hold the channel at all. Hence the obligation, which is the part that binds you: **a dispatcher handing out work that will need a mid-run channel grants a durable path with it**, and reads that path itself.
17
17
 
18
18
  - **A finished child is addressed by the task-id its completion notification carried, never by its name.** Resuming a returned agent to correct or extend its work is the cheap alternative to a cold re-dispatch, and it is the one that keeps the child's own reasoning instead of paying to rebuild it. A resumed isolated child runs in the main checkout, so resume it only to have it re-emit what it already holds, as isolation cost (5)'s recovery does; work that needs the tree again is a new isolated dispatch. The name is not a durable address for that: a name live at dispatch stops resolving once the dispatching session is compacted, while the task-id from the notification resumes the same child from its transcript and is the handle the notification states the child may notify under again. It is also the address to **write down**: the notification lives in the context that dies, so a dispatcher who may want that child later records the task-id under the durability rule below rather than trusting the scroll to still be there.
@@ -22,7 +22,8 @@ Four passages below — the **Background + notification, never poll** and **Find
22
22
  - **A child's citation is a pointer to verify, never evidence in itself.** A returned `file:line` is not checked by confirming the range resolves: that catches a wrong number and misses a wrong spelling, a moved passage, and a sibling instance the sweep never reported. **Re-read the passage** in the parent before acting on it. Quotation with attribution is precisely the signal a reader uses to decide a claim has already been checked, so an unverified one defeats normal trust rather than merely being wrong.
23
23
  - **A return you did not receive is not a finding, and an identifier you did not read is not a citation.** Two shapes, because the attested instances are not all one. **The relayed return:** a claim whose warrant is a dispatched agent's output is made only where that output was **received**. A monitor that timed out, a child that never reported, a notification never consumed — each leaves you holding no return, and a claim made anyway is fabrication however well you reasoned your way to it. All three attested instances of this shape sat in the dispatcher's own *reasoning* rather than in quoted child text, which is why a floor checking relayed quotations would have caught none of them. **The minted identifier:** a commit sha, a `file:line`, a count, a path — written to make a record read as precise, never actually read. The fourth attested instance is this, a fabricated short hash put into a survey record's corpus field. **The discharge is deliberately cheap: no new artifact and no running narration.** Where the return arrived, cite **where it is held** — the journal path you granted and read, or the commit you verified. Where it did not, either do not make the claim, or mark it **unheld in the same sentence**. Marking is admissible on purpose: what this closes is a claim that *looks* sourced, and a claim saying it is not sourced does not commit it. **Its boundary against the three bullets above, so the set does not read as four spellings of one rule:** each of those presupposes a return that arrived. *A child's citation is a pointer to verify* governs a citation that arrived and may be wrong; *Findings you will act on are durable before you act on them* governs a finding that arrived and must outlive the session; *Verify after every agent commit* governs work that landed. This one governs the case where **nothing arrived at all**, which none of them reaches.
24
24
  - **Budget-check before *each* dispatch in a fan-out**, not once at the start. Run `--usage-verdict` on the gate binary `GATE_SDK_NATIVE_BIN` names (verdict exit 0/1/2 from `usage.txt` — it folds in the reading-age and window-validity checks so a dead-window pct can't read stale-high; a PAUSE names its axis — a 5h wall clears in hours, a 7-day wall in days). If the verdict is PAUSE and the work is large, pause for reset. Width is the kill axis: the 5h wall fires mid-flight, and the agents that bank are the ones that *finished* — ≤`DELEGATION_KIT_FAN_WIDTH`-wide bounds the loss to the in-flight wave. **Project the next wave's burn from the last wave's, not just the current pct** — a read-heavy `DELEGATION_KIT_FAN_WIDTH`-wide sweep is far more window-expensive than its subagent-token total suggests, so size waves to leave the next one headroom, or accept one wave per window. **The projection reaches downward as well as forward.** The guard re-arms at every depth — a dispatched session's own dispatches fire it too — but each verdict prices **one call**, never the subtree that call opens. Nothing between a dispatch and its children's children ever sees the whole. So budget a dispatch you expect to fan out for its **subtree**, not its own turn, and read a child's fan-out as your spend even though its verdicts land in a context you never see. **Do not read live budget off the statusline while parked on a dispatch.** Observed: the harness statusline does not refresh while the main session waits on a background agent's completion notification, so its displayed budget freezes for the length of the dispatch — the longer the unit, the staler the number. Poll the verdict arm externally when you need a live reading mid-dispatch (a `watch -n 30` over the gate binary's `--usage-verdict` arm); this is the one sanctioned poll and it does not weaken the never-poll rule above, which governs waiting for *completion*. Enforcement is unaffected either way: the per-dispatch budget check reads a fresh verdict at dispatch time, so a pause/proceed decision is never made off the frozen display — only passive display is stale.
25
- - **Match the dispatched model and effort to the unit's shape.** Delegation levers tokens only when selection follows the work: a read-heavy or mechanical unit (audit, survey, rename/merge sweep) rides a cheaper model class via the dispatch's model parameter or a dedicated agent type; a unit carrying design judgment stays on the supervisor's class. Derive the class ladder from the harness's **live model roster at dispatch time** — model families churn faster than kit text, so a baked model-name list in any doc is drift by construction. Agent-**type** selection derives the same way — from the dispatch-time agent-roster descriptions, not a baked list: an audit or survey rides the type whose description commits to review work, never one that disclaims it (an excerpt-locator serves pure search, not audit). Selection sits with the dispatching session — its context holds what selection needs — and it is **affirmative**: an unselected dispatch does not fall back to a cheap default, it **inherits the dispatcher's tier**, so declining to choose silently buys the most expensive tier in reach — and buys it precisely for the read-only fan-outs that are the cheapest work you dispatch. A standing choice lands in a tracked agent-type definition rather than per-dispatch habit, and that definition states its `model:` field even when the answer is to inherit.
25
+ - **Match the dispatched model and effort to the unit's shape.** Delegation levers tokens only when selection follows the work: a read-heavy or mechanical unit (audit, survey, rename/merge sweep) rides a cheaper model class via the dispatch's model parameter or a dedicated agent type; a unit carrying design judgment stays on the supervisor's class. Read the classes from the consumer's roster and each class's model and effort from its tier binding (`--emit knob-values DELEGATION_KIT_TIER_CLASSES` and `DELEGATION_KIT_TIER_MODEL`, delegation-kit/SPEC.md §The tier binding), name both on the dispatch where the class binds both, and, where none is bound, read the harness's **live model roster at dispatch time**: a model-name list baked into any doc is drift by construction. Agent-**type** selection derives the same way — from the dispatch-time agent-roster descriptions, not a baked list: an audit or survey rides the type whose description commits to review work, never one that disclaims it (an excerpt-locator serves pure search, not audit). Selection sits with the dispatching session — its context holds what selection needs — and it is **affirmative**: an unselected dispatch does not fall back to a cheap default, it **inherits the dispatcher's tier**, so declining to choose silently buys the most expensive tier in reach — and buys it precisely for the read-only fan-outs that are the cheapest work you dispatch. A standing choice lands in a tracked agent-type definition rather than per-dispatch habit, and that definition states its `model:` field even when the answer is to inherit.
26
+ - **A foreign-vendor run returns its work through files.** Where your consumer configures a foreign adapter, a read-only audit or a mechanical sweep may run on another vendor's coding agent through `--foreign-run` instead of a dispatch (delegation-kit/SPEC.md §The foreign-vendor run). Name the unit's class with `--class`: an adapter that takes one runs the model and effort its harness binds to it, and the verdict line's `class=` says whether it did. A stage's contract runs there only as its stage template says. Write the prompt to a file in the scratch dir. The report file is the return; a sweep's patch is yours to apply, verify and commit; the agent's own commits are never taken. It sees committed `HEAD` only, so a unit over uncommitted or gitignored content stays on your harness. No guard fires on it: read an adapter's budget with `--foreign-run <adapter> --budget` before choosing it, and read a `FAILED (budget: …)` line as a window to wait out, never as a failure to retry at once. Ask the agent to end its turn with its open questions rather than guess. Where your consumer configures the adapter's resume form, answer a question with `--foreign-resume <key> <answer-file>`, which continues the same session in the same clone, and end the session with `--foreign-resume <key> --close` once you hold the result. Otherwise size the unit to finish in one run. A turn can outlast a foreground call, so launch a long one backgrounded with its liveness record, and while it runs commit nothing and run nothing else under its key.
26
27
  - **Never revert substantial completed work on your own design judgment** — especially an expensive delegated sweep. Surface the tension and wait for the explicit go-ahead before discarding it: a self-judged revert forfeits the sweep's whole spend and pays it again on the re-run.
27
28
 
28
29
  ## Shared-file roster
@@ -2,3 +2,35 @@
2
2
 
3
3
  # spec: delegation-kit/SPEC.md §Layout and configuration — D2's roster: the consumer's own read-only-dispatched agent-type names; default empty (D2 inert) — never a kit-shipped vocabulary (gate-sdk/SPEC.md §The provenance seam)
4
4
  # DELEGATION_KIT_READONLY_TYPES[] = <agent-type>
5
+
6
+ # spec: delegation-kit/SPEC.md §The tier binding — the class roster, highest first; default judgment, routing, mechanical, and a value here replaces all three
7
+ # DELEGATION_KIT_TIER_CLASSES[] = <class>
8
+
9
+ # spec: delegation-kit/SPEC.md §The tier binding — one element per class; the model is an alias (follows the newest model) or an exact model id (pinned), the effort optional; default empty (off)
10
+ # DELEGATION_KIT_TIER_MODEL[] = judgment=<model>,<effort>
11
+ # DELEGATION_KIT_TIER_MODEL[] = mechanical=<model>
12
+
13
+ # spec: delegation-kit/SPEC.md §The tier binding — a foreign harness's rows in the same grammar, and the harness of each adapter that takes a class; the kit ships neither (each names a vendor), so set both beside the adapters; default empty
14
+ # DELEGATION_KIT_FOREIGN_TIER_MODEL[] = <harness>/<class>=<model>,<effort>
15
+ # DELEGATION_KIT_FOREIGN_HARNESS[] = <adapter>=<harness>
16
+
17
+ # spec: delegation-kit/SPEC.md §The foreign-vendor run — one `<adapter>=<word>` element per argv word, in order; the kit ships no adapter (each names a vendor's program), so set one in the gitignored `.local` overlay; default empty
18
+ # DELEGATION_KIT_FOREIGN_ADAPTERS[] = <adapter>=<program>
19
+ # DELEGATION_KIT_FOREIGN_ADAPTERS[] = <adapter>=@PROMPT_FILE@
20
+
21
+ # spec: delegation-kit/SPEC.md §The foreign-vendor run — an adapter's resume form, one `<adapter>=<word>` element per argv word, restating its confinement, and the literal its session id follows in a turn's output; default empty (every adapter one-shot)
22
+ # DELEGATION_KIT_FOREIGN_RESUME[] = <adapter>=@SESSION_ID@
23
+ # DELEGATION_KIT_FOREIGN_SESSION_MARKER[] = <adapter>=<literal>
24
+
25
+ # spec: delegation-kit/SPEC.md §The keyed verdict — an adapter's usage snapshot, one per adapter; default empty (the adapter is unbudgeted)
26
+ # DELEGATION_KIT_FOREIGN_USAGE[] = <adapter>=<path>
27
+
28
+ # spec: delegation-kit/SPEC.md §The keyed verdict — the argv that writes that snapshot, one `<adapter>=<word>` element per word; the kit ships no producer (each reads a vendor's feed), so set both in the gitignored `.local` overlay; default empty
29
+ # DELEGATION_KIT_FOREIGN_USAGE_CMD[] = <adapter>=<program>
30
+ # DELEGATION_KIT_FOREIGN_USAGE_CMD[] = <adapter>=@USAGE_FILE@
31
+ # spec: delegation-kit/SPEC.md §The keyed verdict — a word carrying `@FAILED_RUN@` also runs that argv after a spawned turn ending FAILED, with the turn's run directory in the word
32
+ # DELEGATION_KIT_FOREIGN_USAGE_CMD[] = <adapter>=@FAILED_RUN@
33
+
34
+ # spec: delegation-kit/SPEC.md §The keyed verdict — the keyed pause thresholds, short window and long; each defaults to the account-keyed knob it derives from
35
+ # DELEGATION_KIT_FOREIGN_PAUSE_PCT = <percent>
36
+ # DELEGATION_KIT_FOREIGN_PAUSE_PCT_LONG = <percent>
@@ -1,44 +1,54 @@
1
1
  # usage-verdict decision table — columns (tab-separated):
2
- # verdict exit pct age_off reset_off cred_age pct_7d reset7d_off append axis desc
2
+ # verdict exit pct age_off reset_off cred_age pct_7d reset7d_off account live append axis desc
3
3
  # Offsets are seconds from *now* (static fixtures would age into permanent STALE).
4
4
  # pct_7d '-' omits the seven_day keys (a three-line snapshot — today's behavior).
5
+ # account is the snapshot's account key and live the oauthAccount.accountUuid the case
6
+ # writes into a fixture account config; '-' omits each.
5
7
  # append is the sample-line count the run must leave in the history log (0 or 1);
6
8
  # axis ('-' / 5h / 7d) asserts which window a PAUSE names. # and blank lines ignored.
7
9
  # Every verdict branch and both pause axes carry a firing and a non-firing case
8
10
  # (delegation-kit/SPEC.md §Testing).
9
- # Defaults under test: PAUSE_PCT=80, PAUSE_PCT_7D=95, STALE_AGE=600, LOGIN_WINDOW=600.
11
+ # Defaults under test: PAUSE_PCT=80, PAUSE_PCT_7D=95, STALE_AGE=600, LOGIN_WINDOW=600, LOGIN_SETTLE=90.
10
12
 
11
13
  # OK — under threshold, fresh reading, live window
12
- OK 0 40 0 3600 - - 0 1 - integer under threshold
13
- OK 0 28.999 0 3600 - - 0 1 - fractional under threshold (non-firing PAUSE)
14
- OK 0 40 0 3600 - 30 500000 1 - weekly present but comfortable — neither axis fires
15
- OK 0 40 0 3600 - 90 500000 1 - weekly between the split thresholds (80..95) — the looser weekly default does not fire
16
- OK 0 40 0 3600 - 99 -100 1 - dead weekly window does not pause (a high 7d pct from a rolled window)
17
- OK 0 79.999 0 3600 - - 0 1 - just under the 5h threshold — the at-or-over boundary's non-firing side
18
- OK 0 40 0 3600 - 94.999 500000 1 - just under the weekly threshold — the at-or-over boundary's non-firing side
14
+ OK 0 40 0 3600 - - 0 - - 1 - integer under threshold
15
+ OK 0 28.999 0 3600 - - 0 - - 1 - fractional under threshold (non-firing PAUSE)
16
+ OK 0 40 0 3600 - 30 500000 - - 1 - weekly present but comfortable — neither axis fires
17
+ OK 0 40 0 3600 - 90 500000 - - 1 - weekly between the split thresholds (80..95) — the looser weekly default does not fire
18
+ OK 0 40 0 3600 - 99 -100 - - 1 - dead weekly window does not pause (a high 7d pct from a rolled window)
19
+ OK 0 79.999 0 3600 - - 0 - - 1 - just under the 5h threshold — the at-or-over boundary's non-firing side
20
+ OK 0 40 0 3600 - 94.999 500000 - - 1 - just under the weekly threshold — the at-or-over boundary's non-firing side
19
21
 
20
22
  # PAUSE (5h) — at or over threshold, fresh, live window, no recent login
21
- PAUSE 1 95 0 3600 - - 0 1 5h integer over the 5h threshold
22
- PAUSE 1 82.5 0 3600 - - 0 1 5h fractional over 5h (the float-compare regression)
23
- PAUSE 1 80.9 0 3600 - - 0 1 5h fractional just over the 5h boundary (int truncation would miss)
24
- PAUSE 1 80 0 3600 - - 0 1 5h exactly at the 5h threshold pauses (at-or-over: the boundary reading is judged at the limit)
25
- PAUSE 1 95 0 3600 99999 - 0 1 5h over 5h with an old login (no lag reroute)
23
+ PAUSE 1 95 0 3600 - - 0 - - 1 5h integer over the 5h threshold
24
+ PAUSE 1 82.5 0 3600 - - 0 - - 1 5h fractional over 5h (the float-compare regression)
25
+ PAUSE 1 80.9 0 3600 - - 0 - - 1 5h fractional just over the 5h boundary (int truncation would miss)
26
+ PAUSE 1 80 0 3600 - - 0 - - 1 5h exactly at the 5h threshold pauses (at-or-over: the boundary reading is judged at the limit)
27
+ PAUSE 1 95 0 3600 99999 - 0 - - 1 5h over 5h with an old login (no lag reroute)
26
28
 
27
29
  # PAUSE (7-day) — the weekly axis fires while 5h sits comfortable, and dominates when both fire
28
- PAUSE 1 40 0 3600 - 96 500000 1 7d weekly over while 5h comfortable -> PAUSE names the 7-day axis
29
- PAUSE 1 95 0 3600 - 97 500000 1 7d both axes over -> the costlier weekly axis is named
30
- PAUSE 1 40 0 3600 - 95 500000 1 7d exactly at the weekly threshold pauses (at-or-over boundary)
30
+ PAUSE 1 40 0 3600 - 96 500000 - - 1 7d weekly over while 5h comfortable -> PAUSE names the 7-day axis
31
+ PAUSE 1 95 0 3600 - 97 500000 - - 1 7d both axes over -> the costlier weekly axis is named
32
+ PAUSE 1 40 0 3600 - 95 500000 - - 1 7d exactly at the weekly threshold pauses (at-or-over boundary)
31
33
 
32
34
  # PAUSE — inside the login window the reroute may suppress an OK, never a PAUSE
33
- PAUSE 1 95 0 3600 60 - 0 1 5h over 5h with a fresh login -> still PAUSE: a lagging reading must not wave through an expensive dispatch
34
- PAUSE 1 40 0 3600 60 96 500000 1 7d weekly over with a fresh login -> still PAUSE (the reroute does not reach either axis)
35
+ PAUSE 1 95 0 3600 60 - 0 - - 1 5h over 5h with a fresh login -> still PAUSE: a lagging reading must not wave through an expensive dispatch
36
+ PAUSE 1 40 0 3600 60 96 500000 - - 1 7d weekly over with a fresh login -> still PAUSE (the reroute does not reach either axis)
35
37
 
36
38
  # STALE — post-login lag (the non-blocking outcome only), stale reading, non-numeric fail-closed
37
- STALE 2 40 0 3600 60 - 0 1 - under threshold with a fresh login -> STALE: the reroute suppresses the OK, so a lagging pct cannot print a fresh-looking OK
38
- STALE 2 79.999 0 3600 60 - 0 1 - just under the 5h threshold with a fresh login -> STALE: the reroute's firing side at the boundary the PAUSE case pins from above
39
- STALE 2 40 1200 3600 - - 0 1 - reading older than STALE_AGE — parsed, so it still logs
40
- STALE 2 abc 0 3600 - - 0 0 - non-numeric pct fails closed and appends nothing (not a parsed sample)
39
+ STALE 2 40 0 3600 60 - 0 - - 1 - under threshold with a fresh login -> STALE: the reroute suppresses the OK, so a lagging pct cannot print a fresh-looking OK
40
+ STALE 2 79.999 0 3600 60 - 0 - - 1 - just under the 5h threshold with a fresh login -> STALE: the reroute's firing side at the boundary the PAUSE case pins from above
41
+ STALE 2 40 1200 3600 - - 0 - - 1 - reading older than STALE_AGE — parsed, so it still logs
42
+ STALE 2 abc 0 3600 - - 0 - - 0 - non-numeric pct fails closed and appends nothing (not a parsed sample)
41
43
 
42
44
  # RESET-OK — the 5h window rolled over; the pct is from the dead window
43
- RESET-OK 0 95 0 -100 - - 0 1 - dead 5h window -> RESET-OK (a high pct must not read as PAUSE)
44
- RESET-OK 0 40 0 -1 - - 0 1 - 5h window just rolled over
45
+ RESET-OK 0 95 0 -100 - - 0 - - 1 - dead 5h window -> RESET-OK (a high pct must not read as PAUSE)
46
+ RESET-OK 0 40 0 -1 - - 0 - - 1 - 5h window just rolled over
47
+
48
+ # The account-keyed reroute — the live identity against the snapshot's account
49
+ STALE 2 40 0 3600 60 - 0 acctA acctB 1 - mismatched account inside the login window -> STALE: the snapshot speaks for another account's windows
50
+ STALE 2 40 0 3600 99999 - 0 acctA acctB 1 - mismatched account outside the login window -> STALE: the account arm needs no fresh auth event
51
+ PAUSE 1 95 0 3600 60 - 0 acctA acctB 1 5h mismatched account at or over threshold -> still PAUSE (the reroute suppresses an OK only)
52
+ OK 0 40 0 3600 300 - 0 acctA acctA 1 - matched account past the settle floor inside the old window -> OK: the settle floor replaces the blanket window
53
+ STALE 2 40 0 3600 60 - 0 acctA acctA 1 - matched account within the settle floor -> STALE: the server-fed pct may still lag the login
54
+ STALE 2 40 0 3600 300 - 0 - acctA 1 - snapshot without account keeps the blanket window -> STALE inside LOGIN_WINDOW
@@ -11,9 +11,11 @@
11
11
  # empty declare), proving D2 stays inert on the roster's absence rather than on
12
12
  # this type's absence from a populated one. A subagent_type prefixed 'armed:'
13
13
  # runs with DELEGATION_KIT_MUTATING_TYPES=(mut-type), DELEGATION_KIT_REQUIRE_TIER=on
14
- # and one definition stating model:, for tiered-type. Either prefix is stripped
15
- # before it reaches the guard's payload. subagent_type UNPARSEABLE sends invalid
16
- # JSON on stdin instead of a built payload.
14
+ # and one definition stating model:, for tiered-type, and an empty tier binding. A
15
+ # subagent_type prefixed 'bound:' runs with the table's roster and the tier binding
16
+ # DELEGATION_KIT_TIER_MODEL=(judgment=big-model mechanical=small). Each prefix is
17
+ # stripped before it reaches the guard's payload. subagent_type UNPARSEABLE sends
18
+ # invalid JSON on stdin instead of a built payload.
17
19
 
18
20
  # D1 — the fork ban is unconditional
19
21
  block fork - - - a fork dispatch blocks regardless of isolation or roster
@@ -38,6 +40,13 @@ fallthrough armed:mut-type - - named the same dispatch naming its model does not
38
40
  fallthrough armed:tiered-type worktree - - a type whose definition states model: needs no model at dispatch
39
41
  fallthrough noroster:mut-type - - - D5 stays inert while its switch is off
40
42
 
43
+ # D6 — the bound tier: a named model is one of the bound values
44
+ block bound:other-type - - named a named model matching no bound value blocks
45
+ fallthrough bound:other-type - - small a named model equal to a bound value does not block
46
+ fallthrough bound:other-type - - vendor-small-4 a model id carrying a bound value as a token after its first does not block
47
+ fallthrough bound:other-type - - - a dispatch naming no model is D5's, never D6's
48
+ fallthrough armed:mut-type - - named D6 stays inert while the binding is empty
49
+
41
50
  # D3 — nested-dispatch advisory (never blocks)
42
51
  advise other-type - yes - a payload carrying agent_id advises: this dispatch creates a grandchild
43
52
  fallthrough other-type - - - a payload with no agent_id falls through D3 untouched