checkwright 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +172 -10
  2. package/lib/common/lock.sh +7 -0
  3. package/lib/common/recipe.sh +1 -1
  4. package/lib/diff.sh +2 -0
  5. package/lib/init.sh +40 -16
  6. package/lib/uninstall.sh +2 -0
  7. package/package.json +2 -2
  8. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  9. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  10. package/payload/canon-kit/SPEC.md +125 -13
  11. package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
  12. package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
  13. package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
  14. package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
  15. package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
  16. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
  17. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
  18. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
  19. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
  20. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
  21. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
  22. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
  23. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
  24. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
  25. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
  26. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
  27. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
  28. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
  29. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
  30. package/payload/canon-kit/smoke/install.sh +1 -1
  31. package/payload/context-kit/README.md +6 -4
  32. package/payload/context-kit/SPEC.md +239 -70
  33. package/payload/context-kit/bin/always-loaded.sh +5 -21
  34. package/payload/context-kit/bin/env-probe.sh +2 -17
  35. package/payload/context-kit/checks/check-brevity.gate +3 -0
  36. package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
  37. package/payload/context-kit/checks/check-memory-off.gate +3 -0
  38. package/payload/context-kit/checks/check-settings-paths.gate +3 -0
  39. package/payload/context-kit/checks/check-settings-pins.gate +3 -0
  40. package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
  41. package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
  42. package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
  43. package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
  44. package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
  45. package/payload/context-kit/index-tests/expected/toolfloor.txt +5 -5
  46. package/payload/context-kit/index-tests/toolfloor-cases.sh +5 -5
  47. package/payload/context-kit/lib/context.sh +56 -0
  48. package/payload/context-kit/lib/toolfloor.sh +1 -1
  49. package/payload/context-kit/smoke/agents-md.sh +16 -4
  50. package/payload/context-kit/smoke/install.sh +3 -2
  51. package/payload/context-kit/templates/session-context.sh +5 -5
  52. package/payload/delegation-kit/SPEC.md +284 -9
  53. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
  54. package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
  55. package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
  56. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
  57. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
  58. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
  59. package/payload/delegation-kit/smoke/install.sh +1 -1
  60. package/payload/delegation-kit/templates/agent-execution.md +71 -4
  61. package/payload/doctrine-kit/SPEC.md +1 -1
  62. package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
  63. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +2 -3
  64. package/payload/doctrine-kit/smoke/install.sh +17 -4
  65. package/payload/drift-kit/README.md +2 -2
  66. package/payload/drift-kit/SPEC.md +71 -7
  67. package/payload/drift-kit/bin/stage-economics.sh +1 -1
  68. package/payload/drift-kit/lib/drift.sh +43 -0
  69. package/payload/drift-kit/smoke/install.sh +21 -14
  70. package/payload/evidence-kit/README.md +3 -1
  71. package/payload/evidence-kit/SPEC.md +160 -19
  72. package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
  73. package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
  74. package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
  75. package/payload/evidence-kit/checks/check-producer-liveness.sh +42 -2
  76. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
  77. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
  78. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
  79. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
  80. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
  81. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
  82. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
  83. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
  84. package/payload/evidence-kit/lib/evidence.sh +2 -0
  85. package/payload/evidence-kit/smoke/install.sh +1 -1
  86. package/payload/gate-sdk/README.md +10 -7
  87. package/payload/gate-sdk/SPEC.md +3916 -265
  88. package/payload/gate-sdk/bin/install-hooks.sh +14 -2
  89. package/payload/gate-sdk/bin/port-blockers.sh +37 -9
  90. package/payload/gate-sdk/bin/run-gate-tests.sh +1 -2
  91. package/payload/gate-sdk/bin/run-gates.sh +22 -0
  92. package/payload/gate-sdk/bin/upgrade-smoke.sh +21 -16
  93. package/payload/gate-sdk/checks/check-action-run-shell.sh +1 -0
  94. package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
  95. package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
  96. package/payload/gate-sdk/checks/check-core-files.gate +3 -0
  97. package/payload/gate-sdk/checks/check-crate-arms.sh +1 -0
  98. package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
  99. package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
  100. package/payload/gate-sdk/checks/check-gate-assertions.sh +1 -0
  101. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
  102. package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
  103. package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
  104. package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
  105. package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
  106. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +78 -14
  107. package/payload/gate-sdk/checks/check-graph.gate +3 -0
  108. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
  109. package/payload/gate-sdk/checks/check-identity.gate +3 -0
  110. package/payload/gate-sdk/checks/check-install-disposition.sh +1 -0
  111. package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
  112. package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
  113. package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
  114. package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
  115. package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
  116. package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
  117. package/payload/gate-sdk/checks/check-tree-terms.sh +1 -0
  118. package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
  119. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
  120. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
  121. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
  122. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
  123. package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
  124. package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
  125. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
  126. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
  127. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
  128. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
  129. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
  130. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
  131. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
  132. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
  133. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
  134. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
  135. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
  136. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
  137. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
  138. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
  139. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
  140. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +4 -5
  141. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +7 -0
  142. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
  143. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
  144. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
  145. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
  146. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
  147. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
  148. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +4 -0
  149. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
  150. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
  151. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +4 -0
  152. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
  153. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +49 -4
  154. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
  155. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
  156. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
  157. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
  158. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
  159. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
  160. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
  161. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
  162. package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
  163. package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
  164. package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
  165. package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
  166. package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
  167. package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
  168. package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
  169. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
  170. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
  171. package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
  172. package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
  173. package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
  174. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
  175. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
  176. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
  177. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
  178. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
  179. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
  180. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
  181. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
  182. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
  183. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
  184. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
  185. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
  186. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
  187. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
  188. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
  189. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
  190. package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
  191. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
  192. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +94 -1
  193. package/payload/gate-sdk/lib/gate.sh +232 -25
  194. package/payload/gate-sdk/smoke/install.sh +5 -1
  195. package/payload/guard-kit/SPEC.md +207 -28
  196. package/payload/guard-kit/bin/run-guard-tests.sh +6 -1
  197. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
  198. package/payload/guard-kit/guard-tests/cases.tsv +37 -9
  199. package/payload/guard-kit/lib/guard.sh +170 -6
  200. package/payload/lifecycle-kit/README.md +3 -2
  201. package/payload/lifecycle-kit/SPEC.md +507 -75
  202. package/payload/lifecycle-kit/bin/enter-stage.sh +72 -33
  203. package/payload/lifecycle-kit/bin/file-gap.sh +2 -2
  204. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
  205. package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
  206. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
  207. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -1
  208. package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
  209. package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
  210. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +22 -22
  211. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
  212. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
  213. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +120 -10
  214. package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
  215. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +11 -11
  216. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
  217. package/payload/lifecycle-kit/lib/stages.sh +5 -0
  218. package/payload/lifecycle-kit/smoke/install.sh +29 -15
  219. package/payload/lifecycle-kit/templates/lead.md +24 -0
  220. package/payload/lifecycle-kit/templates/stages/align.md +20 -2
  221. package/payload/lifecycle-kit/templates/stages/build.md +3 -3
  222. package/payload/lifecycle-kit/templates/stages/close.md +20 -6
  223. package/payload/lifecycle-kit/templates/stages/scope.md +20 -1
  224. package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
  225. package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
  226. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +1 -1
  227. package/payload/queue-kit/README.md +10 -10
  228. package/payload/queue-kit/SPEC.md +301 -84
  229. package/payload/queue-kit/bin/queue-counts.sh +1 -1
  230. package/payload/queue-kit/checks/check-queue-entry-budget.gate +1 -1
  231. package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
  232. package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
  233. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
  234. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
  235. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
  236. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
  237. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
  238. package/payload/queue-kit/gate-tests/queue-counts.test.sh +1 -1
  239. package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
  240. package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
  241. package/payload/queue-kit/lib/queue.sh +0 -49
  242. package/payload/queue-kit/smoke/install.sh +1 -1
  243. package/payload/site-kit/SPEC.md +29 -2
  244. package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
  245. package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
  246. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
  247. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
  248. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
  249. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
  250. package/payload/site-kit/smoke/install.sh +1 -1
  251. package/payload/canon-kit/checks/check-amendment-queue.sh +0 -117
  252. package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -79
  253. package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -240
  254. package/payload/canon-kit/checks/check-prose-tells.sh +0 -208
  255. package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -134
  256. package/payload/context-kit/bin/footprint.sh +0 -144
  257. package/payload/context-kit/checks/check-brevity.sh +0 -124
  258. package/payload/context-kit/checks/check-footprint-fresh.sh +0 -39
  259. package/payload/context-kit/checks/check-memory-off.sh +0 -113
  260. package/payload/context-kit/checks/check-settings-paths.sh +0 -94
  261. package/payload/context-kit/checks/check-settings-pins.sh +0 -111
  262. package/payload/context-kit/gate-tests/check-memory-off/bad/args +0 -1
  263. package/payload/context-kit/gate-tests/check-memory-off/good/args +0 -1
  264. package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -62
  265. package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -140
  266. package/payload/delegation-kit/checks/check-rule-citation.sh +0 -77
  267. package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -246
  268. package/payload/drift-kit/bin/trajectory.sh +0 -242
  269. package/payload/evidence-kit/checks/check-battery-roster.sh +0 -87
  270. package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -104
  271. package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -105
  272. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
  273. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
  274. package/payload/gate-sdk/bin/enforcement-map.sh +0 -273
  275. package/payload/gate-sdk/checks/check-commit-msg.sh +0 -51
  276. package/payload/gate-sdk/checks/check-commit-subject.sh +0 -44
  277. package/payload/gate-sdk/checks/check-core-files.sh +0 -76
  278. package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -38
  279. package/payload/gate-sdk/checks/check-exec-bit.sh +0 -96
  280. package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -107
  281. package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -106
  282. package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -85
  283. package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -93
  284. package/payload/gate-sdk/checks/check-gate-output.sh +0 -103
  285. package/payload/gate-sdk/checks/check-graph.sh +0 -632
  286. package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -46
  287. package/payload/gate-sdk/checks/check-identity.sh +0 -135
  288. package/payload/gate-sdk/checks/check-kit-enum.sh +0 -95
  289. package/payload/gate-sdk/checks/check-readme-roster.sh +0 -108
  290. package/payload/gate-sdk/checks/check-reads-couples.sh +0 -200
  291. package/payload/gate-sdk/checks/check-root-tiering.sh +0 -67
  292. package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -127
  293. package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -85
  294. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
  295. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
  296. package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
  297. package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
  298. package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
  299. package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -64
  300. package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -198
  301. package/payload/queue-kit/bin/queue-index.sh +0 -182
  302. package/payload/queue-kit/bin/roadmap.sh +0 -76
  303. package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -64
  304. package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -111
  305. package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -81
  306. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
  307. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
  308. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
  309. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  310. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  311. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
  312. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
  313. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  314. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  315. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
  316. /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
  317. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
  318. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
  319. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
  320. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
  321. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
@@ -6,8 +6,10 @@ state machine. The problem the kit solves: a coding agent selects work by
6
6
  parsing, not by reading — so everything selection trusts (position, slugs,
7
7
  tags) is grammar a gate can enforce, and everything a human writes freely
8
8
  (task prose) is kept out of the parse path. Drift between what the prose says
9
- and what a parser sees is the failure mode; all but one of the gates exist to
10
- close one instance of it each.
9
+ and what a parser sees is the failure mode; all but two of the gates exist to
10
+ close one instance of it each. The two exceptions hold a different axis —
11
+ projection freshness (`check-roadmap-fresh`) and the deferred pool's
12
+ per-entry budget (`check-queue-entry-budget`).
11
13
 
12
14
  The kit carries the queue grammar and its gates only; a consumer's section
13
15
  names, wrap budget, and protocol vocabulary are config, with this repo's
@@ -45,7 +47,7 @@ as `##` sections over column-0 bullets:
45
47
 
46
48
  The **defer date** of an entry is its `Surfaced <date>` mark when present, else
47
49
  the date on its `Filed <date>` provenance line. One definition, two readers —
48
- drift-kit's deferred-age KPI and `bin/queue-index.sh --icebox-candidates`.
50
+ drift-kit's deferred-age KPI and the `queue-index` arm's `--icebox-candidates`.
49
51
  Widening, not replacing: `Surfaced` records when the premise was observed and
50
52
  is the better premise-rot datum, `Filed` is the honest available fallback, so
51
53
  no entry owes a migration. drift-kit re-implements the definition rather than
@@ -95,7 +97,7 @@ by the drain rule — the drain stage's entry requires the active sections empty
95
97
  the same iteration whichever section holds it. What ranks is the promoting
96
98
  stage's decision to put an entry in an active section at all; order within them
97
99
  is a sequencing default, the posture the roadmap projection already states
98
- outright for queue order generally (§bin/roadmap.sh).
100
+ outright for queue order generally (§The roadmap arm).
99
101
 
100
102
  Features lead on the feature/debt asymmetry canon-kit owns (canon-kit/SPEC.md
101
103
  §The amendment lifecycle): a feature merges an amendment into the canonical
@@ -285,7 +287,7 @@ adoption step between landing it and reading it.
285
287
  - `[precondition-ok: <reason>]` — per-entry opt-out valve for
286
288
  `check-queue-prose-precondition`.
287
289
  - `[roadmap: <horizon>/<track>]` — public-projection marker: the entry is
288
- curated onto the generated roadmap page (§bin/roadmap.sh), under `<horizon>`
290
+ curated onto the generated roadmap page (§The roadmap arm), under `<horizon>`
289
291
  and labelled `<track>`. The tag's spelling is fixed mechanism; its two field
290
292
  *values* are drawn from the consumer-configured `QUEUE_KIT_HORIZONS` and
291
293
  `QUEUE_KIT_TRACKS` arrays — the same fixed-spelling/configured-values split
@@ -346,19 +348,25 @@ rule (lifecycle-kit/SPEC.md §Layout and configuration,
346
348
  `LIFECYCLE_KIT_RECURRENCE_THRESHOLD`) and drift-kit's `kpi-incident-recurrence`
347
349
  (drift-kit/SPEC.md §Bundled KPIs) — each read it without depending on the other's
348
350
  kit. Self-citation is already narration rather than an edge (above), so the field
349
- costs no new rule. That one-grep property is also why **no `bin/queue-index.sh`
351
+ costs no new rule. That one-grep property is also why **no `queue-index`
350
352
  recurrence mode exists** — the obvious home, refused: drift-kit could not call it
351
353
  without the cycle its own KPI already records, which would leave lifecycle-kit's
352
- rule as the only caller, and §bin/queue-index.sh already resists a further mode on
354
+ rule as the only caller, and §The queue-index arm already resists a further mode on
353
355
  the grounds that folding jobs together gives one tool two output grammars.
354
356
 
355
357
  **One line with appended dates, not one line per recurrence.** The per-recurrence
356
358
  form is byte-unique on the (slug, date) pair and is refused anyway: it grows an
357
359
  entry linearly against `check-queue-entry-budget`'s cap, so a *machine* writer
358
360
  could push a deferred entry past that cap and red some later, unrelated session's
359
- commit — and the cap's remedy is authorization-gated (§check-queue-entry-budget: a
360
- session blocked by it does not self-serve the split). The single-line form costs
361
- one entry line forever regardless of count. Its own ceiling is
361
+ commit — and the cap's remedy is only half self-served (§check-queue-entry-budget:
362
+ relocating grounds into an entry that already owns their subject is self-served
363
+ for a mandated write, while minting a *new* entry to hold them stays
364
+ authorization-gated). That ground survives the discount §check-queue-entry-budget
365
+ grants this declaration, **because the discount is one line**: the second and
366
+ later lines of a per-recurrence variant are counted like any other, so the variant
367
+ still grows an entry linearly against the cap. The single-line form costs **no**
368
+ counted line at all, which strengthens the case for it rather than weakening it.
369
+ Its own ceiling is
362
370
  `check-queue-wrap`'s budget, reached after a handful of dates on a long slug, and
363
371
  reaching it is the *correct* complaint: a slug recorded as recurring that many
364
372
  times without anyone promoting it is a governance failure, surfaced loudly rather
@@ -366,14 +374,15 @@ than absorbed.
366
374
 
367
375
  Unlike the `relates:` declaration refused above, no corpus needs migrating. The
368
376
  line is **session-written under judgment** — the closing stage's gap-inbox drain
369
- is its only mechanized producer, and each date records that session's ruling that
377
+ is its only mechanized producer, while any session that judges a recurrence is
378
+ obliged to stamp one directly, and each date records that session's ruling that
370
379
  the finding re-occurred, read off the filed prose rather than derived from it
371
380
  (lifecycle-kit/SPEC.md §The committed gap inbox owns the rule and the standard) —
372
381
  and hand-read; an entry with no declaration is simply an entry that has not
373
382
  recurred.
374
383
 
375
384
  Two tags ride **Lessons Learned** entries — a lesson is a top-level bullet
376
- under the fixed-spelling `## Lessons Learned` heading, and `bin/queue-index.sh`
385
+ under the fixed-spelling `## Lessons Learned` heading, and the `queue-index` arm
377
386
  plus `check-tag-lead-line` read that section's lead lines too. That section is
378
387
  one of close's inbound triage surfaces, and its forcing function is the sibling
379
388
  of the gap inbox's — the first-stage entry refuses while it holds entries — so it
@@ -383,8 +392,8 @@ close-surface: TASK-QUEUE.md#Lessons-Learned forced=lifecycle-kit/SPEC.md §bin/
383
392
 
384
393
  - `[attend]` — fixed spelling, kit mechanism (the inbound channel): the filing
385
394
  session marks a lesson as a live attention point for later sessions *of the
386
- same iteration*. `queue-index.sh` emits an attention block of `[attend]`
387
- lead lines (§bin/queue-index.sh); the injection dies at the iteration
395
+ same iteration*. The `queue-index` arm emits an attention block of `[attend]`
396
+ lead lines (§The queue-index arm); the injection dies at the iteration
388
397
  boundary because lifecycle-kit's first-stage entry refuses a non-empty
389
398
  Lessons section.
390
399
  - **Harvest tags** — `QUEUE_KIT_LESSON_TAGS` (array of bare tag names, default
@@ -401,8 +410,9 @@ close-surface: TASK-QUEUE.md#Lessons-Learned forced=lifecycle-kit/SPEC.md §bin/
401
410
 
402
411
  The kit is vendored beside gate-sdk (conventionally at `queue-kit/`); its
403
412
  gates are registered in the consumer's `gates.list` by name and resolve
404
- through gate-sdk's multi-kit path. `bin/queue-index.sh` is a tool, not a gate
405
- (no `# graph:` manifest).
413
+ through gate-sdk's multi-kit path. The `queue-index` arm is not among them: it
414
+ is a non-gate arm of the binary, registered in no `gates.list` and carrying no
415
+ `.gate` descriptor (§The queue-index arm).
406
416
 
407
417
  Config follows lifecycle-kit's pattern: copy `templates/queue-config.sh`
408
418
  into the gates dir as `queue-config.sh` (or point `QUEUE_KIT_CONFIG_FILE`
@@ -428,7 +438,7 @@ Knobs:
428
438
  line cap `check-queue-entry-budget` assertion A holds over the deferred
429
439
  section.
430
440
  - `QUEUE_KIT_ICEBOX_AGE_DAYS` — positive integer, default `30`; the defer-date
431
- age filter for `bin/queue-index.sh --icebox-candidates`, and nothing else.
441
+ age filter for the `queue-index` arm's `--icebox-candidates`, and nothing else.
432
442
  - `QUEUE_KIT_WRAP_BUDGET` — default `100` (`check-queue-wrap` gate floor).
433
443
  - `QUEUE_KIT_PROSE_LEADS` — array of column-0 lead tokens exempt from the
434
444
  hygiene gate's no-prose axis, default `("Protocol:")`.
@@ -458,7 +468,7 @@ Knobs:
458
468
  fail-open default (§bin/lesson-sink.sh). A private sink value belongs in the
459
469
  local overlay, not this tracked file.
460
470
  - `QUEUE_KIT_ATTEND_CAP` — positive integer, default `3`; the maximum `[attend]`
461
- lead lines `bin/queue-index.sh` emits in its attention block before folding
471
+ lead lines the `queue-index` arm emits in its attention block before folding
462
472
  the rest into an overflow note.
463
473
  - `QUEUE_KIT_HORIZONS` — ordered array of horizon names for the `[roadmap:]`
464
474
  tag's first field, default empty. The order is the projection's emitted
@@ -525,19 +535,25 @@ needs the sections *individually* rather than as one alternation
525
535
  answer: a second reader recomposing the set from the three knobs is the drift
526
536
  axis a shared adapter exists to remove.
527
537
 
528
- `queue_roadmap_entries <queue-file>` is the single `[roadmap:]` and
529
- `roadmap-summary:` parse, shared by `bin/roadmap.sh` and `check-roadmap-fresh` so
530
- the emitter and the gate can never disagree about what an entry claims — the same
531
- one-adapter rule the section regexes follow. It walks the live task sections in
532
- queue order and prints one tab-separated line per entry carrying **either**
533
- marking: the entry's `[roadmap:]` tag count, the raw field text, the slug, the
534
- `roadmap-summary:` declaration count, and the declaration's text. Emitting on
535
- either marking rather than on the tag alone is what lets assertion C see a dead
536
- declaration — an entry the tag has fallen off is exactly the case a
537
- tag-triggered walk cannot report. An untagged entry's field column prints as `-`
538
- rather than empty, because a tab counts as IFS whitespace: a reader splitting on
539
- it coalesces an empty column and silently shifts every field after it, so a
540
- fixed-arity line must never carry one.
538
+ `roadmap_entries` — `native/src/queue.rs`'s, this library holding no counterpart
539
+ — is the single `[roadmap:]` and `roadmap-summary:` parse, shared by the roadmap
540
+ arm (§The roadmap arm) and `check-roadmap-fresh` so the emitter and the gate can
541
+ never disagree about what an entry claims — the same one-adapter rule the section
542
+ regexes follow. It walks the live task sections in queue order and returns one
543
+ record per entry carrying **either** marking: the entry's `[roadmap:]` tag count,
544
+ the raw field text, the slug, the `roadmap-summary:` declaration count, and the
545
+ declaration's text. Emitting on either marking rather than on the tag alone is
546
+ what lets assertion C see a dead declaration — an entry the tag has fallen off is
547
+ exactly the case a tag-triggered walk cannot report.
548
+
549
+ **The record is a typed value rather than a TSV line, and that difference is a
550
+ deletion rather than a translation.** A tab-separated form exists only because a
551
+ shell function's only return channel is stdout, and such a form must carry a
552
+ defensive `-` in an untagged entry's field column: a tab counts as IFS
553
+ whitespace, so a reader splitting on it coalesces an empty column and silently
554
+ shifts every field after it. In-crate the five fields travel as fields, so the
555
+ field-count and embedded-tab hazards have no spelling and an absent field is
556
+ simply empty.
541
557
 
542
558
  The in-body citation scan (§The tag algebra) is deliberately **not** here: it
543
559
  has one reader, and this library holds adapters two or more readers share. It
@@ -552,9 +568,10 @@ gate to the binary substrate), so `check-queue-slug-liveness` and
552
568
  `check-task-conservation` call a Rust reimplementation of that helper while
553
569
  `bin/queue-edges.sh` keeps calling this one; the same is true of the section
554
570
  regexes, every one of which a `bin/` script still reads directly. The split is
555
- **permanent** — every `bin/` script in the kit still sources this library, and so
556
- do `check-roadmap-fresh` and `check-queue-prose-precondition`
557
- (`grep -rl lib/queue.sh queue-kit/bin queue-kit/checks` is the roster) — so the
571
+ **permanent** — every `bin/` script in the kit still sources this library
572
+ (`grep -rl lib/queue.sh queue-kit/bin queue-kit/checks` is the roster, and the
573
+ `checks/` half of it is empty now that every gate here dispatches to the binary)
574
+ — so the
558
575
  shell form cannot be deleted the way a ported primitive's is, and a port-time
559
576
  byte-identity proof would expire at the next edit to either side. What holds the
560
577
  two equal from here is `gate-tests/queue-lib-parity.test.sh`: it feeds one canned
@@ -570,11 +587,13 @@ twin with no caller is a duplication removal disposes of, which enforcement-firs
570
587
  ranks above gating it, and the bound on that disposition is undocumented surface
571
588
  — no section named it, which is what separates it from the section regexes, every
572
589
  one of which is documented and load-bearing.
573
- `queue_roadmap_entries` is **not** in the split
574
- either, for the opposite reason: its only two consumers are `bin/roadmap.sh` and
575
- `check-roadmap-fresh`, and the gate was held on shell by the cohort's own ruling
576
- (gate-sdk/SPEC.md §The first cohort, and the rule that selects the next), so the
577
- emitter and the gate still cannot disagree.
590
+ `roadmap_entries` is **not** in the split
591
+ either, for the opposite reason: its only two consumers are the roadmap arm and
592
+ `check-roadmap-fresh`, and both now sit on the **crate** function. The exclusion
593
+ is therefore **satisfied on the other substrate, not repealed** — the two still
594
+ cannot disagree, by the identical argument, and what would have spent it is
595
+ porting exactly one of the pair, which is why the arm and the gate landed in one
596
+ commit.
578
597
 
579
598
  The loader sources the consumer config, then a `<config>.local.sh` overlay
580
599
  beside it when present — last write wins. This is the tracked-name /
@@ -583,7 +602,43 @@ sink value tracked in `queue-config.sh` would itself be the leak, so it lands
583
602
  in the gitignored overlay instead. The overlay is optional — its absence is
584
603
  fail-open, not an error.
585
604
 
586
- ### bin/queue-index.sh
605
+ ### The queue-index arm
606
+
607
+ A **non-gate arm of the binary** (gate-sdk/SPEC.md §The non-gate arm), reached
608
+ through the battery runner's `--emit` front-end:
609
+ `run-gates.sh --emit queue-index [<flags>] [<queue-file>]`. It registers in the
610
+ emitter table under the derived spelling `--emit-queue-index`, stays outside
611
+ `--list`, and owes no `.gate` descriptor, no `gates.list` registration and no
612
+ `good/`+`bad/` fixture pair. The shell tool it replaces is deleted rather than
613
+ retained as a dispatching shim: a shim keeps the interpreted lines the port
614
+ exists to retire and adds a second entry point into the emission path, which the
615
+ class forbids.
616
+
617
+ **The front-end is not optional dressing.** A caller that invoked the binary
618
+ directly would resolve platform defaults and silently ignore every consumer
619
+ override; the front-end sources the shell library and supplies the bridged
620
+ environment in front of the arm. The arm is configured — its bridged reads are
621
+ declared beside it in the emitter table — which is why it is a table member
622
+ rather than a hardcoded top-level flag: a hardcoded flag receives no
623
+ configuration at all, and an arm that cannot see `QUEUE_KIT_ICEBOX_SECTION`
624
+ silently drops the tally in every consumer that configures a tier. The derived
625
+ regexes the shell library built (`QUEUE_ACTIVE_RE` and its siblings) were never a
626
+ configuration surface, only that library's internal spelling of these knobs, so
627
+ none of them crosses into the arm and nothing is lost by their not crossing.
628
+
629
+ **The three modes stay three modes on one arm**, selected from the arm's own
630
+ argv tail — the emitter type is defined over an argv slice precisely so a mode
631
+ rides as a flag rather than needing a second arm. The refusal to grow a *fourth*
632
+ mode is unchanged, and so are the three grammars: they are the contract this port
633
+ preserves.
634
+
635
+ **One observable moved, and it is stated rather than absorbed.** A `--extent`
636
+ slug that resolves to nothing reported `queue-index: slug not found: <slug>` at
637
+ exit 1 and now reports the arm's error at exit **2**, because the emitter type
638
+ returns a `Result` and the dispatcher maps every error arm to 2. Preserving the
639
+ old code would mean widening the class's return contract for one mode's error
640
+ path; no caller reads it — `extent`'s caller is a session reading two integers —
641
+ so the widening is not taken. Every mode's **stdout** grammar is byte-preserved.
587
642
 
588
643
  Compact surface of the queue for task selection — the iteration header line
589
644
  if present, then every top-level active entry as a one-line title plus tags,
@@ -604,7 +659,7 @@ entries under no subsection tallied as `(top)`.
604
659
  A configured icebox contributes exactly **one line** to the index —
605
660
  `<section>: N entries` — and never an entry listing, on **both** `index`-mode
606
661
  renderings (`--collapse-deferred` is a flag within that mode, not a mode of its
607
- own; the tool's modes are `index`, `extent`, and `icebox-candidates`). The
662
+ own; the arm's modes are `index`, `extent`, and `icebox-candidates`). The
608
663
  tally must not reach `extent`, whose contract is two integers and nothing else.
609
664
  The reasoning is the surface's: this output is embedded in the always-loaded
610
665
  session-context brief, so listing the tier would re-import the very tokens the
@@ -629,6 +684,15 @@ is exactly the right ceiling. **A pool younger than the age threshold yields an
629
684
  empty worklist**, which is correct and is not a reason to seed a tier by hand
630
685
  against the tool: eligibility is the rule, the worklist is the convenience.
631
686
 
687
+ **The worklist deliberately does not filter the tier's categorical exclusions —
688
+ a `[roadmap:]` tag or a live promotion trigger — and that is settled, not
689
+ pending.** Operator-ruled 2026-08-18 on five consecutive measurements at zero
690
+ precision: filtering the machine-readable half would have moved the eligible
691
+ count from zero to zero, and the other half is a prose-parsing fork nothing
692
+ justifies. So the closing stage reads a row and applies §The icebox tier's
693
+ eligibility rule to it, which is the division of labour the paragraph above
694
+ already states; a row the rule excludes is a line read, not a defect.
695
+
632
696
  No queue-mutating tool is added — `--extent <slug>` already yields the line
633
697
  range an eviction deletes.
634
698
 
@@ -640,10 +704,16 @@ always-loaded through the session-context hook that embeds this output, so the
640
704
  cap is its token budget. This is the inbound lesson channel reaching every
641
705
  later session of the iteration with zero consumer-hook edits.
642
706
 
707
+ The age cutoff keeps its `date -d` derivation rather than moving to an in-crate
708
+ civil-date computation, and the reason is behaviour preservation: `date` resolves
709
+ the operator's local zone where an in-crate computation would resolve UTC, and a
710
+ port that shifts the cutoff by a day is not the behaviour-preserving port this
711
+ was. Its refusal on a `date` without `-d` survives with it.
712
+
643
713
  This is a *task-selection* surface, walking bullet lead lines. Its sibling
644
714
  `bin/queue-edges.sh` walks entry **bodies** to aggregate citations — a
645
715
  different question over the same file (§bin/queue-edges.sh). They stay two
646
- tools rather than one tool with a fourth mode, because folding them would give
716
+ tools rather than one with a fourth mode, because folding them would give
647
717
  one tool two jobs and two output grammars.
648
718
 
649
719
  ### bin/queue-counts.sh
@@ -662,13 +732,13 @@ section name, which is what keeps the vocabulary inside this kit when a caller
662
732
  outside it renders the numbers.
663
733
 
664
734
  The counted unit is the **top-level entry bullet** — the same unit
665
- §bin/queue-index.sh lists, so the index and the counters cannot report different
735
+ §The queue-index arm lists, so the index and the counters cannot report different
666
736
  sizes for one queue. Not lines, and not bullets: an indented bullet inside an
667
737
  entry body is body.
668
738
 
669
- **Why a second tool rather than a fourth mode on `bin/queue-index.sh`.** That
670
- tool's modes are fixed at `index`, `extent` and `icebox-candidates`
671
- (§bin/queue-index.sh), on the stated grounds that folding jobs together gives one
739
+ **Why a second tool rather than a fourth mode on the `queue-index` arm.** That
740
+ arm's modes are fixed at `index`, `extent` and `icebox-candidates`
741
+ (§The queue-index arm), on the stated grounds that folding jobs together gives one
672
742
  tool two output grammars — the same refusal that keeps `bin/queue-edges.sh`
673
743
  separate. A tally keyed by section name is a different job with a different
674
744
  grammar, so it lands beside the index rather than inside it. Recorded here
@@ -686,7 +756,7 @@ statusline template, whose own contract records the degradation
686
756
  ### bin/queue-edges.sh
687
757
 
688
758
  The inbound-citation aggregator: a tool, not a gate (no `# graph:` manifest),
689
- following `bin/queue-index.sh`. It reads the queue, writes **stdout only**, and
759
+ following the queue-index precedent. It reads the queue, writes **stdout only**, and
690
760
  mutates nothing.
691
761
 
692
762
  ```
@@ -741,7 +811,7 @@ that, a committed copy of derived edges over what is typically a repo's
741
811
  highest-churn file would restale on essentially every queue edit, buying a
742
812
  per-commit regeneration tax for zero benefit. Derivation-first is satisfied by
743
813
  deriving on demand: that rule's "generate and freshness-gate" clause governs a
744
- copy that is *needed*, and this one is not. `bin/queue-index.sh` writes nothing
814
+ copy that is *needed*, and this one is not. The `queue-index` arm writes nothing
745
815
  and is gated by nothing, for the same reason.
746
816
 
747
817
  **Not a gate, either.** There is nothing to red: an entry with no inbound edges
@@ -752,13 +822,29 @@ outright, because those are overwhelmingly legitimate citations of landed work
752
822
  invariant on the surfaces where a dead reference *is* a false claim. Extending
753
823
  it inward would red on good prose.
754
824
 
755
- ### bin/roadmap.sh
756
-
757
- The public-roadmap emitter: a tool, not a gate (no `# graph:` manifest),
758
- following `bin/queue-index.sh`. `--emit` prints the generated block to stdout;
759
- `--write` splices it between the markers in `QUEUE_KIT_ROADMAP_FILE` through
760
- gate-sdk's `inject_marker_block`, leaving every byte outside them untouched. It
761
- reads the live task sections only — active, deferred, and a configured icebox,
825
+ ### The roadmap arm
826
+
827
+ The public-roadmap emitter: a **non-gate arm** of the gate binary
828
+ (gate-sdk/SPEC.md §The non-gate arm), reached as
829
+ `bash gate-sdk/bin/run-gates.sh --emit roadmap`, following the queue-index
830
+ precedent. The bare arm prints the generated block to stdout; `--write` splices
831
+ it between the markers in `QUEUE_KIT_ROADMAP_FILE` through the crate's shared
832
+ marker writer, leaving every byte outside them untouched.
833
+
834
+ **Table membership is forced rather than chosen, and the alternative is the
835
+ failure mode that looks like success.** An arm receives no configuration and only
836
+ an emitter-table member is bridged, so this tool ported as a hardcoded top-level
837
+ flag would resolve platform defaults and silently ignore every consumer override
838
+ of the horizons, the tracks, the queue path or the marker name. The table's knob
839
+ column is what keeps `QUEUE_KIT_HORIZONS` and `QUEUE_KIT_TRACKS` on the caller's
840
+ side of the bridge, which is the provenance seam holding: the crate ships the
841
+ projection *grammar* — the headings, the bullet shape, the placeholder, the
842
+ trailing blank — and not one lane name (§The tag algebra).
843
+
844
+ The section trio (`QUEUE_KIT_ACTIVE_SECTIONS`, `QUEUE_KIT_DEFERRED_SECTION`,
845
+ `QUEUE_KIT_ICEBOX_SECTION`) rides the same roster, because the shared adapter is
846
+ what scopes the scan and a knob the bridge does not carry is a knob the arm
847
+ cannot read. It reads the live task sections only — active, deferred, and a configured icebox,
762
848
  never the done section, because a shipped item is history, not direction. The
763
849
  icebox enters that walk on purpose even though no icebox entry can be
764
850
  projectable: excluded, a `[roadmap:]` tag that drifted into the tier would
@@ -767,7 +853,8 @@ silently drop a public commitment; included, it reds (§The icebox tier).
767
853
  The emit grammar is a contract on both sides: `check-roadmap-fresh` byte-compares
768
854
  it and a reader consumes it as the page's body.
769
855
 
770
- - One `### <horizon>` heading per configured horizon, in configured order, each
856
+ - One `### <horizon>` heading per configured horizon, in the knob array's own
857
+ order — never a sort the crate imposes — each
771
858
  emitted even when the queue puts nothing there — an empty horizon is
772
859
  information, and a section that vanishes when it empties reads as a page that
773
860
  forgot it. An empty horizon carries a one-line placeholder instead of bullets.
@@ -783,10 +870,9 @@ it and a reader consumes it as the page's body.
783
870
 
784
871
  The block ends on a blank line. That blank is load-bearing rather than cosmetic:
785
872
  the Pages parser closes a list only on one, so without it the `:end` marker abuts
786
- the last bullet and renders *inside* that list item. Command substitution strips
787
- the trailing newline on both sides of the freshness compare, so the byte-compare
788
- is unaffected — the same arrangement `gen-value-rollup.sh` uses to keep a table
789
- from swallowing its marker.
873
+ the last bullet and renders *inside* that list item. Both sides of the freshness
874
+ compare strip their trailing newlines, so the byte-compare is unaffected — the same arrangement the value-rollup emitter uses to keep a
875
+ table from swallowing its marker.
790
876
 
791
877
  Honest limit — the lead line is a shared budget, and `[roadmap:]` competes for it
792
878
  with every other tag the entry carries. Against `check-queue-wrap`'s floor a
@@ -812,8 +898,9 @@ is held to.
812
898
 
813
899
  Invariant, in two assertions over `QUEUE_KIT_ROADMAP_FILE`:
814
900
 
815
- - **(A) Freshness.** The committed marker block byte-matches
816
- `bin/roadmap.sh --emit`, on the `check-footprint-fresh` /
901
+ - **(A) Freshness.** The committed marker block byte-matches the roadmap arm's
902
+ emission, called **in-process** rather than spawned — the arm ported in the same
903
+ commit, so there is no shell left to reach — on the `check-footprint-fresh` /
817
904
  `check-value-rollup-fresh` model — diff the emission against the block and name
818
905
  the regen command in the red output. A missing file, missing markers, or an
819
906
  unbalanced marker pair is fail-closed (exit 2): an absent projection under a
@@ -830,6 +917,14 @@ Invariant, in two assertions over `QUEUE_KIT_ROADMAP_FILE`:
830
917
  reflowed tag looks like from the page's side, and the tag is what decides
831
918
  projection.
832
919
 
920
+ **Assertion B runs before assertion A, and the ordering is carried deliberately.**
921
+ A tag naming an unconfigured horizon is silently dropped from the emission, so a
922
+ freshness verdict taken before the fields are validated would pass a page that
923
+ quietly lost an item. That is a correctness property of the pair of assertions
924
+ rather than an implementation accident, and it is written here because a reader
925
+ taking the three assertions as an unordered set would lose it with nothing
926
+ reddening.
927
+
833
928
  Assertions B and C live here rather than in `check-tag-lead-line` because this is
834
929
  the gate that already loads the horizon and track vocabularies and the shared
835
930
  `[roadmap:]` parse; putting them in the lead-line gate would make a placement gate
@@ -845,6 +940,20 @@ pre-baked fixture files, the interface both cited models carry: a freshness gate
845
940
  offering only its bare form has no fixture that does not read the live queue, so
846
941
  the pair's verdict would turn on tree state outside the fixture directory.
847
942
 
943
+ **What the fixture pair proves is bounded, and it is explicitly not the arm's
944
+ parity proof.** Both cases steer assertion A off the live emitter, so the pair
945
+ would have gone green over an arm with no implementation at all. The pair proves
946
+ the comparator and the two-argument plumbing; what proved the emission was the
947
+ transition-scoped parity run against the shell emitter, held while both existed
948
+ (gate-sdk/SPEC.md §The first cohort, and the rule that selects the next).
949
+
950
+ The declaration is `checks/check-roadmap-fresh.gate` — hermetic, `precommit`,
951
+ binary-dispatched. Its `couples=` names every crate module the gate reaches
952
+ transitively, the emit module and the two shared with the emit side of the
953
+ compare included: the generated hook's `staged_matches` trigger is derived from
954
+ that field, so an omitted module leaves the gate registered and green while the
955
+ page it holds goes stale at commit time.
956
+
848
957
  ### bin/lesson-sink.sh
849
958
 
850
959
  The outbound channel's router: reads a lesson body on stdin and resolves the
@@ -894,15 +1003,24 @@ queue file at `tier=precommit`.
894
1003
 
895
1004
  ### check-queue-entry-budget
896
1005
 
897
- Invariant, one statement from two sides: **a deferred entry is a costed filing
1006
+ Invariant, one statement from three sides: **a deferred entry is a costed filing
898
1007
  — bounded above so it is not an inlined amendment, bounded below so it is not a
899
- flag-and-skip.** Three assertions:
900
-
901
- - **(A) Size.** No deferred entry exceeds `QUEUE_KIT_ENTRY_LINE_CAP` lines,
902
- counted as the lead line through the line before the next bullet at the same
903
- or shallower indent — the same extent `bin/queue-index.sh --extent` yields, so
904
- the range the gate measures is the range an eviction deletes. A sub-task
905
- nests inside its parent's extent and is measured as its own entry too.
1008
+ flag-and-skip, and bounded in what it may displace, so a bound on filing never
1009
+ becomes a bound on the record.** The first two sides are about the entry's
1010
+ *size*; the third is about what the cap *spends* to stay inside it. Three
1011
+ assertions:
1012
+
1013
+ - **(A) Size.** No deferred entry exceeds `QUEUE_KIT_ENTRY_LINE_CAP` **counted**
1014
+ lines. An entry's **extent** is the lead line through the line before the next
1015
+ bullet at the same or shallower indent — the same extent
1016
+ the `queue-index` arm's `--extent` yields, so the range the gate measures is the
1017
+ range an eviction deletes. Its **count** is that extent less **at most one**
1018
+ line matching the `recurrence:` declaration grammar (§The tag algebra). Extent
1019
+ and count differ by that one discounted line and by nothing else, which is what
1020
+ keeps the equality above a statement about the *range* while the cap binds the
1021
+ *count*. A sub-task nests inside its parent's extent and is measured as its own
1022
+ entry too — and claims its own at-most-one discount, so a parent whose extent
1023
+ holds two declarations still discounts one.
906
1024
  - **(B) Icebox shape.** Every icebox entry is exactly one line; a continuation
907
1025
  line under an icebox bullet is a violation. Skips clean when
908
1026
  `QUEUE_KIT_ICEBOX_SECTION` is empty, the empty-knob behavior
@@ -928,25 +1046,115 @@ binds top-level entries only — a sub-task is covered by its parent's costing.
928
1046
  entry's residency is one iteration by the drain rule, so it has no carry to
929
1047
  cap. The carry problem is the deferred pool's alone.
930
1048
 
931
- **Compression is lossless, and the split is authorization-gated.** An entry
932
- that will not fit is compressed by *answering* grounds, never by dropping or
933
- summarizing them away; a ground that survives unanswered is relocated into a
934
- distinct linked entry. The gate cannot hold this: it sees an entry's current
935
- extent, and judging whether a removed line was answered or discarded is
936
- semantic. So the rule is a stated authoring contract, and the remedy carries
937
- its own authorization — a parent session (the iteration lead), or the operator
938
- in the absence of one, grants permission to split and issues the recipe with
939
- the ruling. A session blocked by the cap does not self-serve the split, the
940
- same lineage as a `check-stage-entry` assertion C waiver
941
- (lifecycle-kit/SPEC.md §check-stage-entry), and the gate's failure text
942
- therefore cites this section rather than inlining the recipe.
1049
+ **Clean-path headroom.** When all three assertions hold, the clean line is
1050
+ followed by one line per Deferred entry — a sub-task included, since it is
1051
+ measured as its own entry under (A) — naming that entry's headroom to the cap:
1052
+ the same count assertion A already derives, one subtraction away, so exposing
1053
+ it costs no new computation and mints no new name. This is exposure, not a new
1054
+ capability: the enforcing member already computes each entry's count in order
1055
+ to enforce the cap, so a session sizing an edit reads the measurement instead
1056
+ of hand-rolling it — a hand-rolled probe carries the risk of a second spelling
1057
+ of the cap, a second implementation of the parse, and a mismeasured entry
1058
+ boundary that reads as a false cap overrun. The rejected
1059
+ alternative was a `--headroom <slug>` mode on the `queue-index` arm: it mints a
1060
+ name against that arm's standing no-fourth-mode refusal, where this
1061
+ exposure spends nothing beyond a print at the compiled assertion's existing
1062
+ computation.
1063
+
1064
+ *Why one `recurrence:` line is discounted, and why exactly one.* The line is
1065
+ **fixed-shape and width-bounded** — §The tag algebra rules its ceiling to be
1066
+ `check-queue-wrap`'s budget and rules reaching that ceiling the *correct*
1067
+ complaint, so the discount cannot let an entry grow without bound. It is exactly
1068
+ the **generated-shaped content** that argued content was otherwise spent to seat,
1069
+ so making the count blind to it removes that trade rather than arbitrating it.
1070
+ And it is **one line, not a grammar-wide exemption**: the declaration's own rule
1071
+ is one line per entry with dates appended, so one line is the whole of what that
1072
+ form can claim — §The tag algebra refuses the one-line-per-recurrence variant
1073
+ partly *because* it grows an entry linearly against this cap, and a grammar-wide
1074
+ exemption would retire that refusal's ground as a side effect. The match is the
1075
+ declaration's own grammar — the `recurrence:` lead token, a slug, then at least
1076
+ one ISO date, the shape drift-kit's `kpi-incident-recurrence` already reads —
1077
+ with no entry-boundary or self-slug condition added, since the at-most-one bound
1078
+ is what does the scoping. The discount narrows the **count** only and removes
1079
+ nothing from the scan, so (B), which counts icebox continuation lines, and (C),
1080
+ which asserts a lead-in is *present*, cannot flip; (A) itself reds on
1081
+ *exceeding* the cap and is monotone in the count, so a smaller count reds
1082
+ strictly less.
1083
+
1084
+ **A mandated write is the class the cap has no self-served answer for.** A
1085
+ mandated write is a write on a deferred entry that another governed contract
1086
+ obliges the writing session to make **in the commit it is already making**, and
1087
+ whose obligation is citable to that contract by name. Two instances exist, both
1088
+ already in the tree rather than invented here: a judged `recurrence:` date and
1089
+ the grounds it is read from, which must land in the commit the judging session is
1090
+ already making because that commit is the audit artifact (lifecycle-kit/SPEC.md
1091
+ §The committed gap inbox); and a ruling recorded onto the entry it rules, under
1092
+ the recording-in-the-moment rule below. Its **producers** are the sessions those
1093
+ two contracts already bind — any session that judges a recurrence, the gap-inbox
1094
+ drain being its mechanized instance, and any session recording a
1095
+ ruling — both running today with no new trigger, no new field and nothing to
1096
+ configure; its **consumers** are that same session reading this section when
1097
+ assertion A blocks it, a path the gate's failure text already routes it down, and
1098
+ lifecycle-kit's judgment contract, which cites the class by name for the write it
1099
+ mandates. **What is not a mandated write, because a class that excludes nothing
1100
+ is not a class:** the session's own evidence for a claim, a further ground for a
1101
+ claim already made, a cross-reference it would like to add, a correction it could
1102
+ equally make in a later commit. All of those keep the reliefs they have. The test
1103
+ is not *how important is this* — every session believes its write matters — but
1104
+ *does a named contract oblige this write in this commit*.
1105
+
1106
+ **Compression is lossless; relocation is self-served for a mandated write, and
1107
+ the split stays authorization-gated.** An entry that will not fit is compressed
1108
+ by *answering* grounds, never by dropping or summarizing them away; a ground that
1109
+ survives unanswered is relocated into a distinct linked entry. The gate cannot
1110
+ hold this: it sees an entry's current extent, and judging whether a removed line
1111
+ was answered or discarded is semantic. So the rule is a stated authoring
1112
+ contract — and that third relief is **two acts wearing one name**.
1113
+
1114
+ - **Relocating grounds** into an entry that **already exists and already owns the
1115
+ ground's subject** is self-served when, and only when, what the cap blocks is a
1116
+ mandated write. The relocating session cites the mandating contract in the
1117
+ commit that makes the relocation, and names the target with a
1118
+ single-backticked slug in the entry body — already a citation under §The tag
1119
+ algebra and already aggregated by `bin/queue-edges.sh`, so the link needs no
1120
+ declaration of its own. A `relocated:` declaration is refused on the ground
1121
+ §The tag algebra refuses `relates:` on: it would cost a counted line against
1122
+ this very cap, on the entry least able to pay it.
1123
+ - **Splitting the unit** — minting a *new* entry to hold what would not fit —
1124
+ carries its own authorization, unchanged: a parent session (the iteration
1125
+ lead), or the operator in the absence of one, grants permission to split and
1126
+ issues the recipe with the ruling. A session blocked by the cap does not
1127
+ self-serve *that*, the same lineage as a `check-stage-entry` assertion C waiver
1128
+ (lifecycle-kit/SPEC.md §check-stage-entry), and the gate's failure text
1129
+ therefore cites this section rather than inlining the recipe.
1130
+
1131
+ *Why the line falls between the two acts.* Grounds are not rankable work, so
1132
+ moving them into an entry that already owns their subject mints no ranking peer;
1133
+ a new entry *is* a new unit, competing for the scope attention that ranks both,
1134
+ which is a scope-class judgment and keeps the authorization. That is what stops
1135
+ the sharpest displacement shape — an entry too full to hold its own design half,
1136
+ so the half is filed as a separate entry competing with its own parent — from
1137
+ becoming routine under a blanket relief. And the authorization is safe to drop
1138
+ for the narrow act because a mandated write is by construction not
1139
+ discretionary: its obligation belongs to another surface and is citable, so a
1140
+ reader can check the trigger even though no gate reads it, and the act is
1141
+ net-negative on the parent by construction — a relocation that does not reduce
1142
+ the parent's extent is not a relocation, which assertion A enforces from the
1143
+ other side. **The honest limit, stated because it is real:** where no existing
1144
+ entry owns the ground's subject, the self-served relief is unavailable and the
1145
+ session is back to compressing by answering, or to asking. That is the correct
1146
+ outcome rather than a hole — needing to mint an entry *is* the signal that a
1147
+ unit, not a ground, is what would not fit.
943
1148
 
944
1149
  *Why the cap is not widened for exceptional content.* Assertion A's bound is
945
1150
  the amendment-inlining line above, not a length preference, so raising the
946
1151
  number moves the number without moving the line — and the entries that would
947
1152
  claim an exception are the likeliest ungoverned amendments. A conditional cap
948
1153
  collapses back into authorization anyway, or it is the self-issued exemption
949
- the delegation doctrine already names as the standard failure mode.
1154
+ the delegation doctrine already names as the standard failure mode. The
1155
+ recurrence discount is **not** that widening and must not be read as one: it
1156
+ changes what the count includes, never the number, and it is unconditional —
1157
+ no entry claims it by being exceptional.
950
1158
 
951
1159
  **A ruling the operator restates from memory is filed in the moment.** The
952
1160
  compression rule above is an authoring contract, so a break in it is silent, and
@@ -990,7 +1198,7 @@ scanned surface both widen with the lesson channels: `[blocked-by:]` /
990
1198
  `[spec:]` / `[design-pending]` / `[drain-exempt:]` / `[roadmap:]` in the task
991
1199
  sections (active + deferred), plus
992
1200
  `[attend]` and every `QUEUE_KIT_LESSON_TAGS` name in the `## Lessons Learned`
993
- section — the section `queue-index.sh` now reads, which retires the old "parsed
1201
+ section — the section the `queue-index` arm now reads, which retires the old "parsed
994
1202
  by no reader" exemption for it. Couples
995
1203
  the width-only wrap gate to the tag-parsing tools over the same surface: gate
996
1204
  the coupling, not just each side.
@@ -1011,6 +1219,15 @@ Calibration: lead-class rule — a tag of class C on a continuation line is a
1011
1219
  violation only when the lead line lacks class C (prose that mentions a tag
1012
1220
  the lead already carries is tolerated); tags outside the scanned sections are
1013
1221
  parsed by no reader and ignored. Fenced-code and table lines exempt.
1222
+ **Single backticks are not an exemption**, and the consequence is worth stating
1223
+ where an author meets it: an entry body *discussing* a tag it does not carry —
1224
+ `` `[roadmap:]` `` inside a sentence about the roadmap arm — reds exactly as a
1225
+ reflowed tag would, because the class table matches the bracketed token and the
1226
+ lead-class rule only tolerates what the lead line already carries. So prose
1227
+ about a tag spells its name without the brackets. Widening the exemption to
1228
+ inline code is refused: the entry-body citation grammar above already puts
1229
+ single backticks to work as a *live* claim (§The tag algebra), so a scan that
1230
+ skipped them would have to skip the citation surface too.
1014
1231
  Residual accepted gap: a same-class duplicate sliding off while one stays on
1015
1232
  the lead — negligible severity, not reflow-realistic.
1016
1233
 
@@ -21,7 +21,7 @@ done
21
21
  FILE="${file:-$QUEUE_KIT_QUEUE_FILE}"
22
22
  [[ -f "$FILE" ]] || { echo "queue-counts: file not found: $FILE" >&2; exit 2; }
23
23
 
24
- # spec: queue-kit/SPEC.md §bin/queue-counts.sh — the counted unit is the top-level entry bullet, the same one bin/queue-index.sh lists, so two readers cannot disagree about the size of one queue
24
+ # spec: queue-kit/SPEC.md §bin/queue-counts.sh — the counted unit is the top-level entry bullet, the same one the queue-index arm lists, so two readers cannot disagree about the size of one queue
25
25
  awk -v sects="$(printf '%s\n' "${QUEUE_TASK_SECTIONS[@]}")" -v sectre="$QUEUE_SECTION_RE" '
26
26
  BEGIN { n = split(sects, S, "\n") }
27
27
  $0 ~ sectre {