checkwright 0.21.0 → 0.23.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 (489) hide show
  1. package/README.md +1013 -50
  2. package/lib/common/digest.sh +18 -0
  3. package/lib/common/lock.sh +40 -0
  4. package/lib/common/profile.sh +33 -0
  5. package/lib/common/recipe.sh +56 -43
  6. package/lib/diff.sh +64 -0
  7. package/lib/doctor.sh +81 -7
  8. package/lib/init.sh +167 -52
  9. package/lib/uninstall.sh +212 -0
  10. package/lib/update.sh +34 -0
  11. package/package.json +2 -2
  12. package/payload/artifact/targets.list +30 -0
  13. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  14. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -0
  15. package/payload/canon-kit/README.md +2 -0
  16. package/payload/canon-kit/SPEC.md +666 -59
  17. package/payload/canon-kit/checks/check-amendment-queue.sh +1 -0
  18. package/payload/canon-kit/checks/check-comment-tier.gate +3 -0
  19. package/payload/canon-kit/checks/check-deprecation-task.gate +3 -0
  20. package/payload/canon-kit/checks/check-docs-cmd.gate +3 -0
  21. package/payload/canon-kit/checks/check-docs-link-convention.sh +12 -4
  22. package/payload/canon-kit/checks/check-install-claim.gate +3 -0
  23. package/payload/canon-kit/checks/check-knob-citation.gate +3 -0
  24. package/payload/canon-kit/checks/check-knob-default-coupling.sh +1 -0
  25. package/payload/canon-kit/checks/check-manifest-count.gate +3 -0
  26. package/payload/canon-kit/checks/check-manifest-temporal.gate +3 -0
  27. package/payload/canon-kit/checks/check-md-refs.gate +3 -0
  28. package/payload/canon-kit/checks/check-measured-claim.gate +3 -0
  29. package/payload/canon-kit/checks/check-payload-claim.gate +3 -0
  30. package/payload/canon-kit/checks/check-prose-enum.gate +3 -0
  31. package/payload/canon-kit/checks/check-prose-tells.sh +1 -0
  32. package/payload/canon-kit/checks/check-spec-derivable-section.gate +3 -0
  33. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +3 -0
  34. package/payload/canon-kit/checks/check-spec-embedded-source.sh +1 -0
  35. package/payload/canon-kit/checks/check-spec-fence-balance.gate +3 -0
  36. package/payload/canon-kit/checks/check-spec-pointer.gate +3 -0
  37. package/payload/canon-kit/checks/check-surface-duplication.sh +1 -0
  38. package/payload/canon-kit/checks/check-todo-task-liveness.gate +3 -0
  39. package/payload/canon-kit/checks/check-tracking-claim.gate +3 -0
  40. package/payload/canon-kit/gate-tests/check-comment-tier/bad/.workflow/fixture-state.txt +4 -0
  41. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.gate +4 -0
  42. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.rs +5 -0
  43. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +4 -0
  44. package/payload/canon-kit/gate-tests/check-comment-tier/bad/templates/bad-tmpl.sh +4 -0
  45. package/payload/canon-kit/gate-tests/check-comment-tier/good/.workflow/fixture-state.txt +3 -0
  46. package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
  47. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +4 -0
  48. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +5 -0
  49. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
  50. package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
  51. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +29 -5
  52. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
  53. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
  54. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
  55. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
  56. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
  57. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
  58. package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
  59. package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
  60. package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
  61. package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
  62. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
  63. package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
  64. package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
  65. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/OUTSIDE.md +4 -0
  66. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/index.md +3 -0
  67. package/payload/canon-kit/gate-tests/check-docs-link-convention/good/OUTSIDE.md +4 -0
  68. package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/methodology.md +8 -0
  69. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +94 -0
  70. package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
  71. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +4 -0
  72. package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +32 -8
  73. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +61 -9
  74. package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +12 -0
  75. package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +3 -0
  76. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +6 -0
  77. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +23 -0
  78. package/payload/canon-kit/gate-tests/check-measured-claim/good/expect.txt +1 -0
  79. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +6 -0
  80. package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +90 -0
  81. package/payload/canon-kit/gate-tests/check-payload-claim/bad/README.md +15 -0
  82. package/payload/canon-kit/gate-tests/check-payload-claim/bad/expect.txt +2 -0
  83. package/payload/canon-kit/gate-tests/check-payload-claim/bad/install.md +19 -0
  84. package/payload/canon-kit/gate-tests/check-payload-claim/bad/posts/note.md +6 -0
  85. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +8 -0
  86. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/payload-claims.sh +7 -0
  87. package/payload/canon-kit/gate-tests/check-payload-claim/good/README.md +15 -0
  88. package/payload/canon-kit/gate-tests/check-payload-claim/good/expect.txt +2 -0
  89. package/payload/canon-kit/gate-tests/check-payload-claim/good/install.md +20 -0
  90. package/payload/canon-kit/gate-tests/check-payload-claim/good/posts/note.md +6 -0
  91. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +8 -0
  92. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/payload-claims.sh +7 -0
  93. package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +27 -4
  94. package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +21 -7
  95. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/.workflow/fixture-state.txt +2 -0
  96. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.gate +2 -0
  97. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +4 -0
  98. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +4 -0
  99. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/templates/tmpl.sh +5 -0
  100. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/widget.sh +1 -0
  101. package/payload/canon-kit/gate-tests/check-spec-pointer/good/.workflow/fixture-state.txt +2 -0
  102. package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
  103. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.gate +2 -0
  104. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +4 -0
  105. package/payload/canon-kit/gate-tests/check-spec-pointer/good/templates/tmpl.sh +5 -0
  106. package/payload/canon-kit/gate-tests/check-spec-pointer/good/widget.sh +1 -0
  107. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/.workflow/fixture-state.txt +3 -0
  108. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.gate +2 -0
  109. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.rs +4 -0
  110. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +3 -0
  111. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/templates/tmpl.sh +5 -0
  112. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/.workflow/fixture-state.txt +3 -0
  113. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -1
  114. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.gate +2 -0
  115. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.rs +4 -0
  116. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/templates/tmpl.sh +5 -0
  117. package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -2
  118. package/payload/canon-kit/lib/spec.sh +109 -70
  119. package/payload/canon-kit/smoke/install.sh +21 -1
  120. package/payload/canon-kit/templates/SPEC-amendment.md +9 -2
  121. package/payload/context-kit/README.md +4 -1
  122. package/payload/context-kit/SPEC.md +166 -9
  123. package/payload/context-kit/bin/env-probe.sh +19 -6
  124. package/payload/context-kit/checks/check-brevity.sh +1 -0
  125. package/payload/context-kit/checks/check-footprint-fresh.sh +1 -0
  126. package/payload/context-kit/checks/check-memory-off.sh +1 -0
  127. package/payload/context-kit/checks/check-settings-paths.sh +94 -0
  128. package/payload/context-kit/checks/check-settings-pins.sh +1 -0
  129. package/payload/context-kit/gate-tests/check-settings-paths/bad/args +1 -0
  130. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
  131. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +12 -0
  132. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/real-tool.sh +4 -0
  133. package/payload/context-kit/gate-tests/check-settings-paths/good/args +1 -0
  134. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +1 -0
  135. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
  136. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/real-tool.sh +4 -0
  137. package/payload/context-kit/index-tests/expected/toolfloor.txt +9 -0
  138. package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
  139. package/payload/context-kit/lib/toolfloor.sh +15 -4
  140. package/payload/context-kit/smoke/agents-md.sh +12 -1
  141. package/payload/context-kit/smoke/install.sh +4 -1
  142. package/payload/delegation-kit/README.md +3 -3
  143. package/payload/delegation-kit/SPEC.md +499 -26
  144. package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +97 -0
  145. package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +1 -0
  146. package/payload/delegation-kit/checks/check-gate-tamper.sh +2 -1
  147. package/payload/delegation-kit/checks/check-rule-citation.sh +1 -0
  148. package/payload/delegation-kit/lib/delegation.sh +1 -0
  149. package/payload/delegation-kit/smoke/install.sh +2 -1
  150. package/payload/delegation-kit/templates/agent-dispatch-guard.sh +61 -0
  151. package/payload/delegation-kit/templates/agent-execution.md +127 -12
  152. package/payload/delegation-kit/templates/delegation-config.sh +4 -0
  153. package/payload/delegation-kit/templates/dispatch-checklists.md +1 -1
  154. package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
  155. package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +30 -0
  156. package/payload/doctrine-kit/DOCTRINE.md +112 -11
  157. package/payload/doctrine-kit/README.md +12 -3
  158. package/payload/doctrine-kit/SPEC.md +163 -11
  159. package/payload/doctrine-kit/bin/install-doctrine.sh +167 -17
  160. package/payload/doctrine-kit/checks/check-doctrine-registration.sh +41 -11
  161. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +3 -0
  162. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +3 -0
  163. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +82 -2
  164. package/payload/doctrine-kit/smoke/install.sh +167 -1
  165. package/payload/drift-kit/README.md +3 -2
  166. package/payload/drift-kit/SPEC.md +264 -22
  167. package/payload/drift-kit/bin/kfric.sh +21 -2
  168. package/payload/drift-kit/bin/stage-economics.sh +157 -3
  169. package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +42 -0
  170. package/payload/drift-kit/smoke/install.sh +183 -1
  171. package/payload/drift-kit/templates/economics.md +9 -0
  172. package/payload/drift-kit/templates/kpis.list +6 -1
  173. package/payload/evidence-kit/README.md +20 -6
  174. package/payload/evidence-kit/SPEC.md +355 -17
  175. package/payload/evidence-kit/bin/run-validate.sh +51 -9
  176. package/payload/evidence-kit/checks/check-battery-roster.sh +87 -0
  177. package/payload/evidence-kit/checks/check-evidence-baseline.sh +1 -0
  178. package/payload/evidence-kit/checks/check-evidence-manifest.sh +1 -0
  179. package/payload/evidence-kit/checks/check-producer-liveness.sh +35 -0
  180. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/args +1 -0
  181. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/expect.txt +1 -0
  182. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/runner.md +14 -0
  183. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +7 -0
  184. package/payload/evidence-kit/gate-tests/check-battery-roster/good/args +1 -0
  185. package/payload/evidence-kit/gate-tests/check-battery-roster/good/expect.txt +1 -0
  186. package/payload/evidence-kit/gate-tests/check-battery-roster/good/runner.md +14 -0
  187. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +7 -0
  188. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +68 -0
  189. package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/args +1 -0
  190. package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/expect.txt +1 -0
  191. package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/run-validate.lock +1 -0
  192. package/payload/evidence-kit/gate-tests/check-producer-liveness/good/args +1 -0
  193. package/payload/evidence-kit/gate-tests/check-producer-liveness/good/expect.txt +2 -0
  194. package/payload/evidence-kit/gate-tests/check-producer-liveness/good/run-validate.lock +1 -0
  195. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +109 -0
  196. package/payload/evidence-kit/lib/evidence.sh +18 -0
  197. package/payload/evidence-kit/smoke/install.sh +17 -3
  198. package/payload/gate-sdk/README.md +17 -1
  199. package/payload/gate-sdk/SPEC.md +4427 -92
  200. package/payload/gate-sdk/bin/build-native.sh +38 -0
  201. package/payload/gate-sdk/bin/enforcement-map.sh +2 -1
  202. package/payload/gate-sdk/bin/gen-pre-commit.sh +32 -2
  203. package/payload/gate-sdk/bin/port-blockers.sh +445 -0
  204. package/payload/gate-sdk/bin/run-consumer-smoke.sh +129 -2
  205. package/payload/gate-sdk/bin/run-gate-tests.sh +61 -9
  206. package/payload/gate-sdk/bin/run-gates.sh +37 -2
  207. package/payload/gate-sdk/bin/upgrade-smoke.sh +55 -7
  208. package/payload/gate-sdk/checks/check-action-gh-repo.gate +3 -0
  209. package/payload/gate-sdk/checks/check-action-pinning.gate +3 -0
  210. package/payload/gate-sdk/checks/check-action-run-shell.sh +4 -1
  211. package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
  212. package/payload/gate-sdk/checks/check-commit-msg.sh +1 -0
  213. package/payload/gate-sdk/checks/check-commit-subject.sh +1 -0
  214. package/payload/gate-sdk/checks/check-core-files.sh +28 -4
  215. package/payload/gate-sdk/checks/check-crate-arms.sh +61 -0
  216. package/payload/gate-sdk/checks/check-enforcement-fresh.sh +1 -0
  217. package/payload/gate-sdk/checks/check-exec-bit.sh +21 -1
  218. package/payload/gate-sdk/checks/check-gate-assertions.sh +31 -6
  219. package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +107 -0
  220. package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +7 -7
  221. package/payload/gate-sdk/checks/check-gate-fail-closed.sh +1 -0
  222. package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +1 -0
  223. package/payload/gate-sdk/checks/check-gate-output.sh +41 -3
  224. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +333 -0
  225. package/payload/gate-sdk/checks/check-graph.sh +5 -5
  226. package/payload/gate-sdk/checks/check-hook-exec-bit.sh +1 -0
  227. package/payload/gate-sdk/checks/check-identity.sh +1 -0
  228. package/payload/gate-sdk/checks/check-install-disposition.sh +92 -0
  229. package/payload/gate-sdk/checks/check-kit-enum.sh +1 -0
  230. package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
  231. package/payload/gate-sdk/checks/check-readme-roster.sh +6 -0
  232. package/payload/gate-sdk/checks/check-reads-couples.sh +71 -21
  233. package/payload/gate-sdk/checks/check-root-tiering.sh +1 -0
  234. package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
  235. package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
  236. package/payload/gate-sdk/checks/check-template-copy-parity.sh +1 -0
  237. package/payload/gate-sdk/checks/check-template-registry-parity.gate +3 -0
  238. package/payload/gate-sdk/checks/check-test-hermetic.gate +3 -0
  239. package/payload/gate-sdk/checks/check-tree-terms.sh +1 -0
  240. package/payload/gate-sdk/checks/check-workflow-tiering.sh +2 -1
  241. package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +16 -1
  242. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +64 -0
  243. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +7 -0
  244. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +12 -0
  245. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +5 -0
  246. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +2 -0
  247. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +7 -0
  248. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +11 -0
  249. package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +2 -0
  250. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +2 -0
  251. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
  252. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/args +2 -0
  253. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/expect.txt +5 -0
  254. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/kitroot/checks/check-vendored.gate +2 -0
  255. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/check-ported.gate +2 -0
  256. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +2 -0
  257. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gates.list +4 -0
  258. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stamp.txt +1 -0
  259. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stub-bin +6 -0
  260. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/args +2 -0
  261. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/expect.txt +5 -0
  262. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/kitroot/checks/check-vendored.gate +2 -0
  263. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/check-ported.gate +2 -0
  264. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +2 -0
  265. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gates.list +4 -0
  266. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stamp.txt +1 -0
  267. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stub-bin +5 -0
  268. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +81 -0
  269. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +3 -1
  270. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +3 -1
  271. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/gates/check-sample.sh +3 -1
  272. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +1 -0
  273. package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-native-sample.gate +3 -0
  274. package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-sample.sh +1 -0
  275. package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +3 -0
  276. package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +1 -0
  277. package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/Cargo.toml +4 -0
  278. package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/src/gates/native_sample.rs +7 -0
  279. package/payload/gate-sdk/gate-tests/check-gate-output/good/check-native-sample.gate +3 -0
  280. package/payload/gate-sdk/gate-tests/check-gate-output/good/check-sample.sh +1 -0
  281. package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
  282. package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +1 -0
  283. package/payload/gate-sdk/gate-tests/check-gate-output/good/native/Cargo.toml +4 -0
  284. package/payload/gate-sdk/gate-tests/check-gate-output/good/native/src/gates/native_sample.rs +11 -0
  285. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +111 -0
  286. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/args +2 -0
  287. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/conservation.md +7 -0
  288. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +12 -0
  289. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/impl/gate.rs +2 -0
  290. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/check-orphan.rs +3 -0
  291. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/publish.yml +15 -0
  292. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +3 -0
  293. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-dup.gate +1 -0
  294. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-dup.sh +3 -0
  295. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +1 -0
  296. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +6 -0
  297. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +3 -0
  298. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +3 -0
  299. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/targets.list +3 -0
  300. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/args +2 -0
  301. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/conservation.md +8 -0
  302. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +7 -0
  303. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/impl/gate.rs +2 -0
  304. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kitroot/check-other.rs +3 -0
  305. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/publish.yml +15 -0
  306. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +3 -0
  307. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-ported.gate +2 -0
  308. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +6 -0
  309. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +2 -0
  310. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +3 -0
  311. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/targets.list +2 -0
  312. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +184 -0
  313. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
  314. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
  315. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
  316. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
  317. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
  318. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
  319. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
  320. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
  321. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
  322. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
  323. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
  324. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
  325. package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
  326. package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
  327. package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
  328. package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -0
  329. package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +6 -5
  330. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +139 -0
  331. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/templates/widgets.list +4 -0
  332. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/widgets/widget-one.sh +3 -0
  333. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/widgets/widget-two.sh +3 -0
  334. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +4 -0
  335. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +1 -0
  336. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/scripts/gate-sdk-config.sh +5 -0
  337. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/templates/widgets.list +4 -0
  338. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/widgets/widget-one.sh +3 -0
  339. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/widgets/widget-two.sh +3 -0
  340. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +8 -0
  341. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/beta-kit/templates/rules.list +5 -0
  342. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/beta-kit/templates/table.tsv +4 -0
  343. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -0
  344. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +5 -0
  345. package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
  346. package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +4 -4
  347. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +151 -1
  348. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
  349. package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +144 -0
  350. package/payload/gate-sdk/lib/consumer-smoke.sh +41 -4
  351. package/payload/gate-sdk/lib/gate.sh +208 -9
  352. package/payload/gate-sdk/lib/inject.sh +46 -1
  353. package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
  354. package/payload/gate-sdk/smoke/install.sh +61 -1
  355. package/payload/guard-kit/README.md +18 -14
  356. package/payload/guard-kit/SPEC.md +366 -72
  357. package/payload/guard-kit/bin/compare-settings-allow.sh +40 -7
  358. package/payload/guard-kit/bin/run-guard-tests.sh +1 -0
  359. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +64 -0
  360. package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
  361. package/payload/guard-kit/guard-tests/cases.tsv +49 -7
  362. package/payload/guard-kit/lib/guard.sh +277 -54
  363. package/payload/guard-kit/templates/close-triage.md +38 -10
  364. package/payload/guard-kit/templates/guard-config.sh +3 -0
  365. package/payload/guard-kit/templates/settings-hooks.json +7 -1
  366. package/payload/lifecycle-kit/README.md +12 -1
  367. package/payload/lifecycle-kit/SPEC.md +991 -41
  368. package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
  369. package/payload/lifecycle-kit/bin/enter-stage.sh +139 -13
  370. package/payload/lifecycle-kit/bin/file-gap.sh +60 -2
  371. package/payload/lifecycle-kit/bin/file-survey.sh +69 -0
  372. package/payload/lifecycle-kit/checks/check-close-surfaces.sh +1 -0
  373. package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +3 -0
  374. package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +3 -0
  375. package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +3 -0
  376. package/payload/lifecycle-kit/checks/check-merge-attrs.gate +3 -0
  377. package/payload/lifecycle-kit/checks/check-scratch-citation.gate +3 -0
  378. package/payload/lifecycle-kit/checks/check-shim-restatement.gate +3 -0
  379. package/payload/lifecycle-kit/checks/check-skill-binding.gate +3 -0
  380. package/payload/lifecycle-kit/checks/check-stage-entry.sh +1 -0
  381. package/payload/lifecycle-kit/checks/check-stage-evidence.gate +3 -0
  382. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +3 -0
  383. package/payload/lifecycle-kit/checks/check-survey-record.gate +3 -0
  384. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -2
  385. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/args +2 -0
  386. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +3 -0
  387. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +5 -0
  388. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/args +2 -0
  389. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/expect.txt +1 -0
  390. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/gap-inbox.md +4 -0
  391. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +2 -3
  392. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +2 -3
  393. package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +1 -0
  394. package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +1 -0
  395. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +3 -3
  396. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/expect.txt +1 -0
  397. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +4 -0
  398. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/surfaces/queue.md +13 -0
  399. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/expect.txt +1 -0
  400. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +4 -0
  401. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +31 -0
  402. package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +2 -3
  403. package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +2 -3
  404. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +2 -3
  405. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +9 -5
  406. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/args +2 -0
  407. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +4 -0
  408. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +18 -0
  409. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/args +2 -0
  410. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -0
  411. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +13 -0
  412. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +83 -0
  413. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +122 -0
  414. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
  415. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +102 -0
  416. package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
  417. package/payload/lifecycle-kit/lib/stages.sh +12 -2
  418. package/payload/lifecycle-kit/smoke/install.sh +83 -4
  419. package/payload/lifecycle-kit/templates/consult.md +73 -0
  420. package/payload/lifecycle-kit/templates/lead.md +139 -7
  421. package/payload/lifecycle-kit/templates/stages/align.md +12 -0
  422. package/payload/lifecycle-kit/templates/stages/build.md +8 -0
  423. package/payload/lifecycle-kit/templates/stages/close.md +45 -5
  424. package/payload/lifecycle-kit/templates/stages/scope.md +42 -3
  425. package/payload/lifecycle-kit/templates/stages/spec.md +13 -1
  426. package/payload/lifecycle-kit/templates/stages/validate.md +8 -0
  427. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
  428. package/payload/queue-kit/README.md +6 -1
  429. package/payload/queue-kit/SPEC.md +350 -6
  430. package/payload/queue-kit/bin/queue-counts.sh +35 -0
  431. package/payload/queue-kit/bin/queue-edges.sh +78 -0
  432. package/payload/queue-kit/checks/check-queue-entry-budget.gate +3 -0
  433. package/payload/queue-kit/checks/check-queue-hygiene.gate +3 -0
  434. package/payload/queue-kit/checks/check-queue-prose-precondition.sh +1 -0
  435. package/payload/queue-kit/checks/check-queue-sections.gate +3 -0
  436. package/payload/queue-kit/checks/check-queue-slug-liveness.gate +3 -0
  437. package/payload/queue-kit/checks/check-queue-wrap.gate +3 -0
  438. package/payload/queue-kit/checks/check-roadmap-fresh.sh +1 -0
  439. package/payload/queue-kit/checks/check-tag-lead-line.gate +3 -0
  440. package/payload/queue-kit/checks/check-task-conservation.gate +4 -0
  441. package/payload/queue-kit/checks/check-task-names.gate +3 -0
  442. package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +5 -0
  443. package/payload/queue-kit/gate-tests/queue-counts.test.sh +116 -0
  444. package/payload/queue-kit/gate-tests/queue-edges.test.sh +130 -0
  445. package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
  446. package/payload/queue-kit/lib/queue.sh +4 -19
  447. package/payload/queue-kit/smoke/install.sh +4 -1
  448. package/payload/queue-kit/templates/TASK-QUEUE.md +3 -0
  449. package/payload/site-kit/SPEC.md +64 -27
  450. package/payload/site-kit/checks/check-docs-cname-parity.sh +1 -0
  451. package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
  452. package/payload/site-kit/smoke/install.sh +9 -1
  453. package/profiles.list +36 -8
  454. package/payload/canon-kit/checks/check-comment-tier.sh +0 -211
  455. package/payload/canon-kit/checks/check-deprecation-task.sh +0 -90
  456. package/payload/canon-kit/checks/check-docs-cmd.sh +0 -153
  457. package/payload/canon-kit/checks/check-install-claim.sh +0 -146
  458. package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
  459. package/payload/canon-kit/checks/check-manifest-count.sh +0 -46
  460. package/payload/canon-kit/checks/check-manifest-temporal.sh +0 -83
  461. package/payload/canon-kit/checks/check-md-refs.sh +0 -128
  462. package/payload/canon-kit/checks/check-prose-enum.sh +0 -115
  463. package/payload/canon-kit/checks/check-spec-derivable-section.sh +0 -69
  464. package/payload/canon-kit/checks/check-spec-dod-singleton.sh +0 -45
  465. package/payload/canon-kit/checks/check-spec-fence-balance.sh +0 -42
  466. package/payload/canon-kit/checks/check-spec-pointer.sh +0 -180
  467. package/payload/canon-kit/checks/check-todo-task-liveness.sh +0 -80
  468. package/payload/canon-kit/checks/check-tracking-claim.sh +0 -136
  469. package/payload/gate-sdk/checks/check-action-gh-repo.sh +0 -321
  470. package/payload/gate-sdk/checks/check-action-pinning.sh +0 -55
  471. package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
  472. package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
  473. package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
  474. package/payload/gate-sdk/checks/check-test-hermetic.sh +0 -119
  475. package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +0 -98
  476. package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +0 -54
  477. package/payload/lifecycle-kit/checks/check-merge-attrs.sh +0 -69
  478. package/payload/lifecycle-kit/checks/check-shim-restatement.sh +0 -97
  479. package/payload/lifecycle-kit/checks/check-skill-binding.sh +0 -59
  480. package/payload/lifecycle-kit/checks/check-stage-evidence.sh +0 -81
  481. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +0 -47
  482. package/payload/queue-kit/checks/check-queue-entry-budget.sh +0 -104
  483. package/payload/queue-kit/checks/check-queue-hygiene.sh +0 -81
  484. package/payload/queue-kit/checks/check-queue-sections.sh +0 -44
  485. package/payload/queue-kit/checks/check-queue-slug-liveness.sh +0 -63
  486. package/payload/queue-kit/checks/check-queue-wrap.sh +0 -56
  487. package/payload/queue-kit/checks/check-tag-lead-line.sh +0 -70
  488. package/payload/queue-kit/checks/check-task-conservation.sh +0 -50
  489. package/payload/queue-kit/checks/check-task-names.sh +0 -128
@@ -50,10 +50,33 @@ Widening, not replacing: `Surfaced` records when the premise was observed and
50
50
  is the better premise-rot datum, `Filed` is the honest available fallback, so
51
51
  no entry owes a migration. drift-kit re-implements the definition rather than
52
52
  sourcing `lib/queue.sh`, because a kit dependency the other way would close a
53
- cross-kit cycle; both implementations cite this section.
53
+ cross-kit cycle; both implementations cite this section. That is the general
54
+ rule for this format, not a one-off for drift-kit: **a kit that cannot depend on
55
+ queue-kit re-implements the predicate and both ends cite this section.**
56
+ gate-sdk's `check-gate-exemption-tasks` re-implements it for a reason stronger
57
+ than a cycle — gate-sdk is the substrate every kit vendors, so depending on
58
+ queue-kit would invert the layering and make a queue format a precondition for
59
+ running any gate. The holder roster and the residue accounting for the whole set
60
+ live at gate-sdk/SPEC.md §check-gate-exemption-tasks, and are deliberately not
61
+ restated here: two hand-maintained copies of one roster are worse than one,
62
+ because a holder added or dropped is then owed two edits in two SPECs and only
63
+ the one that prompted the change is likely to get it.
54
64
  - Any other section (an iteration header, a lessons section) is outside the
55
65
  grammar and ignored by every gate except the file-wide hygiene axes.
56
66
 
67
+ **Where this format has two holders, what is compared between them is
68
+ classification over a corpus, never the derived literals.** The shell library
69
+ exposes ERE strings and an array; its compiled counterpart exposes a section
70
+ value and free predicates over it, so there is no value either could hand the
71
+ other — comparing them would compare nothing, or force one side to grow an
72
+ accessor whose only reader is the test. The comparable question is the one this
73
+ section defines: given the same queue file, do both agree on which lines are
74
+ section boundaries, which are task bullets, which is the lessons line, which
75
+ slugs are live? Two witnesses held to each other over a golden *corpus*, with no
76
+ committed expected file — a maintained golden is a third copy to drift, and the
77
+ failure the comparison exists to catch is one side edited without the other,
78
+ which it catches directly (§lib/queue.sh names the holder).
79
+
57
80
  An entry is a column-0 `- **slug** — prose…` bullet; continuation lines are
58
81
  indented, never column 0. An *indented* bullet with a bold lead-in is a
59
82
  sub-task (same grammar); with a plain or italic lead-in it is a prose note
@@ -150,6 +173,11 @@ entry, the same exemption the deferred section already carries.
150
173
  entry necessarily contains the removed body in its own diff, so recovery is
151
174
  `git log -p -S'<slug>' -- <queue-file>` — a pickaxe that depends on no
152
175
  commit-message convention. Nothing is copied into the queue to point at it.
176
+ **Recovery is mandatory before any ruling on the entry**, not merely
177
+ available: the lead line is a one-clause summary that carries neither the
178
+ deliverable nor the blocking design question, so promoting a dormant entry,
179
+ or ruling a build has subsumed one, is judged against the recovered body.
180
+ Ruling off the line alone is ruling off a summary written to be dropped.
153
181
 
154
182
  **Eligibility**, judged at the closing stage: the entry's cost field opens in
155
183
  the low class; it carries no `[roadmap:]` tag; and it has **no live promotion
@@ -185,6 +213,52 @@ grammar: a **bold-code token** — `` **`<slug>`** `` whose token matches the
185
213
  slug grammar — which `check-queue-slug-liveness` resolves against the live
186
214
  slug set on the configured prose surfaces (§check-queue-slug-liveness).
187
215
 
216
+ Inside the queue file, that same token in **single backticks** — matching the
217
+ slug grammar, appearing in an entry's **body** rather than on its lead line —
218
+ is a **citation** of the named entry: the relation an author already drew while
219
+ writing about something else. The two forms are deliberately different claims.
220
+ The bold-code form is a *membership* claim, and a dead one is a false statement
221
+ `check-queue-slug-liveness` reds on; the in-body citation is a *reference*,
222
+ aggregated by `bin/queue-edges.sh` (§bin/queue-edges.sh) and audited by
223
+ nothing. The rules below make citations parseable, each covering a shape a live
224
+ corpus contains:
225
+
226
+ - **Resolution is against the live slug set** — `queue_live_slugs`: active,
227
+ deferred, and a configured icebox, the existing source of truth.
228
+ - **An unresolved token is not an error; it is simply not an edge.** This is the
229
+ load-bearing rule. Entries legitimately name *landed* work — a closed defect
230
+ class, a shipped contract, a settled ruling — and that citation is valuable
231
+ prose no gate may punish, which is why no liveness assertion reaches inward
232
+ from the configured prose surfaces (§check-queue-slug-liveness).
233
+ - **Self-citation is not an edge** — an entry naming its own slug in its own
234
+ body is narration, not a relation.
235
+ - **`[blocked-by: <slug>]` is an edge too**, and the one already-structured
236
+ class: including it makes an inbound set complete rather than merely
237
+ prose-derived.
238
+
239
+ **No relational vocabulary is declared, and that refusal is the design.** Prose
240
+ phrases a relation many ways and keeps inventing more, so an enumerated verb set
241
+ would be brittle the day it landed — and, decisively, a kit literal spelling one
242
+ project's relational verbs would ship that project's vocabulary as everyone's.
243
+ That is the provenance seam, the same reason `[roadmap:]`'s horizons and tracks
244
+ are consumer-configured arrays rather than kit literals. Declaring no vocabulary
245
+ means there is no vocabulary to leak and no consumer config to invent: a
246
+ relation's *kind* rides the citing line itself, quoted verbatim
247
+ (§bin/queue-edges.sh).
248
+
249
+ **A `relates: <kind> <slug>` declaration on the `roadmap-summary:` pattern was
250
+ weighed and refused.** It is precise and it carries a kind — and it is wrong
251
+ here on three counts. Every citation a corpus has already written would need
252
+ hand-authoring, the maintained-roster anti-pattern derivation-first forbids;
253
+ those lines would land inside entries measured against
254
+ `check-queue-entry-budget`'s raw-line cap, where sub-tasks do not relieve a
255
+ parent's budget, so precision would be paid for in evictions; and a
256
+ hand-declared edge can be forgotten in exactly the moment it matters, whereas a
257
+ citation written in prose is written because the author was already thinking
258
+ about the relation. The derived grammar costs zero lines in every entry and is
259
+ satisfied by any corpus that already cross-references — no migration, and no
260
+ adoption step between landing it and reading it.
261
+
188
262
  - `[blocked-by: <slug>]` — the entry is unpickable until `<slug>` completes.
189
263
  Repeat per blocker. Must resolve to a live task (active or deferred — a
190
264
  deferred blocker stands; it is unbuilt); a blocker in the done section is a
@@ -251,6 +325,53 @@ comfortably a sentence, and needing no block-end rule a reflow could silently
251
325
  truncate. `check-roadmap-fresh`'s assertion C makes the tag and the declaration
252
326
  mandatory for each other in both directions.
253
327
 
328
+ An entry that has been **re-filed** carries a second declaration on the same
329
+ pattern, `recurrence: <slug> <YYYY-MM-DD> [<YYYY-MM-DD>…]` — one indented body
330
+ line naming the entry's own slug, then one date per re-filing, appended in order
331
+ and never rewritten. The initial filing is not a recurrence and is not listed, so
332
+ the count is the number of dates. It is a declaration rather than a tag for the
333
+ reasons the paragraph above gives: its readers scan a line of its own, and it
334
+ marks no move across a pending/ready boundary, so it fails canon-kit's
335
+ further-tag test. `check-tag-lead-line` does not govern it, and it cannot collide
336
+ with the bracket scans.
337
+
338
+ The **self-naming slug field is mechanism, not decoration**. `check-queue-hygiene`
339
+ rejects any exact-duplicate non-blank line across the whole file, unnormalized, so
340
+ a slug-free `recurrence: <date>` on two entries stamped the same day would red the
341
+ gate — and same-day recurrence on two entries is exactly the case the declaration
342
+ exists to record. Naming the slug makes the line unique by construction. It also
343
+ makes the declaration resolvable by one anchored grep with no entry-boundary
344
+ parsing, which is what lets its two readers — lifecycle-kit's scope pre-emption
345
+ rule (lifecycle-kit/SPEC.md §Layout and configuration,
346
+ `LIFECYCLE_KIT_RECURRENCE_THRESHOLD`) and drift-kit's `kpi-incident-recurrence`
347
+ (drift-kit/SPEC.md §Bundled KPIs) — each read it without depending on the other's
348
+ 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`
350
+ recurrence mode exists** — the obvious home, refused: drift-kit could not call it
351
+ 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
353
+ the grounds that folding jobs together gives one tool two output grammars.
354
+
355
+ **One line with appended dates, not one line per recurrence.** The per-recurrence
356
+ form is byte-unique on the (slug, date) pair and is refused anyway: it grows an
357
+ entry linearly against `check-queue-entry-budget`'s cap, so a *machine* writer
358
+ 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
362
+ `check-queue-wrap`'s budget, reached after a handful of dates on a long slug, and
363
+ reaching it is the *correct* complaint: a slug recorded as recurring that many
364
+ times without anyone promoting it is a governance failure, surfaced loudly rather
365
+ than absorbed.
366
+
367
+ Unlike the `relates:` declaration refused above, no corpus needs migrating. The
368
+ 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
370
+ the finding re-occurred, read off the filed prose rather than derived from it
371
+ (lifecycle-kit/SPEC.md §The committed gap inbox owns the rule and the standard) —
372
+ and hand-read; an entry with no declaration is simply an entry that has not
373
+ recurred.
374
+
254
375
  Two tags ride **Lessons Learned** entries — a lesson is a top-level bullet
255
376
  under the fixed-spelling `## Lessons Learned` heading, and `bin/queue-index.sh`
256
377
  plus `check-tag-lead-line` read that section's lead lines too. That section is
@@ -389,6 +510,21 @@ The icebox is *derived* here rather than configured twice: a non-empty
389
510
  required-sections set, and when it is empty every icebox regex is the empty
390
511
  string so each reader degrades to "no icebox" rather than to "every section".
391
512
 
513
+ **That degradation is the reader's to complete, not the library's.** The empty
514
+ regex only *carries* the "no icebox" answer; an awk consumer must test it
515
+ explicitly (`iceboxre != "" && $0 ~ iceboxre`), because awk's `$0 ~ ""` matches
516
+ every line and an unguarded match therefore degrades to exactly the "every
517
+ section" reading the empty string was chosen to avoid. Any reader of an
518
+ optional section regex owes that guard.
519
+
520
+ `QUEUE_TASK_SECTIONS` is that composition itself — the active sections, the
521
+ deferred section, and a configured icebox, in configured order — exposed rather
522
+ than consumed and discarded. `QUEUE_TASK_RE` is built from it, and a reader that
523
+ needs the sections *individually* rather than as one alternation
524
+ (§bin/queue-counts.sh) reads the array. One composition, two shapes of the same
525
+ answer: a second reader recomposing the set from the three knobs is the drift
526
+ axis a shared adapter exists to remove.
527
+
392
528
  `queue_roadmap_entries <queue-file>` is the single `[roadmap:]` and
393
529
  `roadmap-summary:` parse, shared by `bin/roadmap.sh` and `check-roadmap-fresh` so
394
530
  the emitter and the gate can never disagree about what an entry claims — the same
@@ -403,6 +539,43 @@ rather than empty, because a tab counts as IFS whitespace: a reader splitting on
403
539
  it coalesces an empty column and silently shifts every field after it, so a
404
540
  fixed-arity line must never carry one.
405
541
 
542
+ The in-body citation scan (§The tag algebra) is deliberately **not** here: it
543
+ has one reader, and this library holds adapters two or more readers share. It
544
+ lives in `bin/queue-edges.sh`, which sources this library for the section
545
+ regexes and `queue_live_slugs` it does share. A second reader of body-position
546
+ slug tokens is what would promote the scan into this roster.
547
+
548
+ **The one-adapter guarantee is split for `queue_live_slugs` and the section
549
+ regexes, and the split is machine-held rather than filed as debt.** The gates
550
+ that read the queue ported to the binary substrate (gate-sdk/SPEC.md §Porting a
551
+ gate to the binary substrate), so `check-queue-slug-liveness` and
552
+ `check-task-conservation` call a Rust reimplementation of that helper while
553
+ `bin/queue-edges.sh` keeps calling this one; the same is true of the section
554
+ 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
558
+ shell form cannot be deleted the way a ported primitive's is, and a port-time
559
+ byte-identity proof would expire at the next edit to either side. What holds the
560
+ two equal from here is `gate-tests/queue-lib-parity.test.sh`: it feeds one canned
561
+ corpus to both and compares their **classification** of it byte for byte
562
+ (§The queue format owns why classification is the comparable thing), which is
563
+ criterion 6's *machine-held* disposition rather than its duplication-absent one
564
+ (gate-sdk/SPEC.md §The port-candidate criteria, criterion 6).
565
+
566
+ The obligation covers **one helper — `queue_live_slugs` — and every derived
567
+ global this library exports** (`grep -n '^QUEUE_[A-Z_]*=' queue-kit/lib/queue.sh`),
568
+ and nothing else is owed one. The crate's `done_slugs` has no counterpart here and needs none: a shell
569
+ twin with no caller is a duplication removal disposes of, which enforcement-first
570
+ ranks above gating it, and the bound on that disposition is undocumented surface
571
+ — no section named it, which is what separates it from the section regexes, every
572
+ 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.
578
+
406
579
  The loader sources the consumer config, then a `<config>.local.sh` overlay
407
580
  beside it when present — last write wins. This is the tracked-name /
408
581
  gitignored-value split (the `msg-patterns.local.list` precedent): a private
@@ -467,6 +640,118 @@ always-loaded through the session-context hook that embeds this output, so the
467
640
  cap is its token budget. This is the inbound lesson channel reaching every
468
641
  later session of the iteration with zero consumer-hook edits.
469
642
 
643
+ This is a *task-selection* surface, walking bullet lead lines. Its sibling
644
+ `bin/queue-edges.sh` walks entry **bodies** to aggregate citations — a
645
+ 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
647
+ one tool two jobs and two output grammars.
648
+
649
+ ### bin/queue-counts.sh
650
+
651
+ One job: the size of each **task section**, for a caller that wants the shape of
652
+ the queue rather than its contents. It emits one `<section-name><TAB><count>`
653
+ line per task section, in configured order, and nothing else — no flags, no
654
+ modes, one output grammar.
655
+
656
+ The section set is **derived, never listed**: it is `QUEUE_TASK_SECTIONS`, the
657
+ same composition `QUEUE_TASK_RE` is built from (§lib/queue.sh). So
658
+ `QUEUE_KIT_DONE_SECTION` is out because Done is not a task section, a configured
659
+ `QUEUE_KIT_ICEBOX_SECTION` is in because the icebox is a live one, and a consumer
660
+ who renamed their sections gets their own names back. Nothing here enumerates a
661
+ section name, which is what keeps the vocabulary inside this kit when a caller
662
+ outside it renders the numbers.
663
+
664
+ 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
666
+ sizes for one queue. Not lines, and not bullets: an indented bullet inside an
667
+ entry body is body.
668
+
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
672
+ tool two output grammars — the same refusal that keeps `bin/queue-edges.sh`
673
+ separate. A tally keyed by section name is a different job with a different
674
+ grammar, so it lands beside the index rather than inside it. Recorded here
675
+ because the next reader meeting two queue tools would otherwise read the split as
676
+ an oversight and merge them.
677
+
678
+ **It is invoked as a subprocess, never sourced.** `lib/queue.sh` exits 2 at
679
+ source time on a missing `QUEUE_KIT_CONFIG_FILE` and on any malformed-config
680
+ assertion — correct for a gate, and fatal for a long-lived caller that sourced
681
+ it. A subprocess turns that contract into a non-zero exit and empty stdout, which
682
+ a caller degrades on. The caller this was built for is delegation-kit's
683
+ statusline template, whose own contract records the degradation
684
+ (delegation-kit/SPEC.md §The statusline template).
685
+
686
+ ### bin/queue-edges.sh
687
+
688
+ 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
690
+ mutates nothing.
691
+
692
+ ```
693
+ usage: queue-edges.sh [--inbound <slug>] [queue-file]
694
+ default: every live slug with at least one inbound edge, and its citing entries
695
+ --inbound <slug>: the inbound set for one slug
696
+ ```
697
+
698
+ **Inbound only.** An outbound view is refused for want of a reader: an entry's
699
+ outbound edges *are* its own body, which a session asking the question is
700
+ already reading. Inbound is the direction invisible without a scan of the whole
701
+ file — which is the entire finding this tool answers. Nothing anywhere sums an
702
+ entry's inbound edges into that entry's own cost and benefit, so a survey that
703
+ reads every sibling entry individually can still misrank a unit that several of
704
+ them separately depend on. The tool is that missing sum, which is also what
705
+ makes splitting an entry safe: a split scatters an entry's weight across
706
+ siblings, and this is what adds it back up.
707
+
708
+ Targets print in queue order — the order every other reader of this file walks
709
+ — each with its inbound count, then one line per citing edge. A slug with no
710
+ inbound edges is absent from the default listing and yields empty output under
711
+ `--inbound`; that is the normal case, not a finding. A `--inbound` slug that is
712
+ not live exits 1 with a message on stderr rather than printing nothing, because
713
+ silence from this tool has to mean "no inbound edges" and nothing else.
714
+
715
+ **Each edge carries the citing entry's slug and its citing line verbatim**
716
+ (surrounding whitespace stripped, since the output re-indents). This is what
717
+ buys a relation's *kind* without declaring a vocabulary for one: the nature of
718
+ the relation is already written, in the citing author's own words, by the
719
+ person who understood it. Quoting it beats a one-token classification from a
720
+ fixed set, and it is free. It also keeps the tool honest about precision — a
721
+ citation that is a passing mention rather than a relation is *visibly* a
722
+ passing mention once its line is on screen, so a reader discards it in the time
723
+ it takes to read one line. Recall is what the surface needs, and a
724
+ high-recall list whose noise self-identifies is the right trade.
725
+
726
+ A citation is attributed to the **nearest preceding slug bullet**, so a
727
+ sub-task cites in its own name rather than its parent's, and a lead line
728
+ contributes its `[blocked-by:]` tag alone — never its prose, which is title and
729
+ tags rather than relation.
730
+
731
+ The body-citation scan lives **in this tool, not in `lib/queue.sh`**: it has
732
+ exactly one reader, and the library's rule is shared adapters (§lib/queue.sh).
733
+ It reuses that library's section regexes and `queue_live_slugs`; a second
734
+ reader of body-position slugs is what would move it.
735
+
736
+ **No tracked projection, and no freshness gate.** A tracked artifact needs a
737
+ reader who cannot run the tool, and there is none — the one consumer is a
738
+ session with a shell. A generated public page like the roadmap is tracked
739
+ because its audience is outside the repo; this has no such audience. Against
740
+ that, a committed copy of derived edges over what is typically a repo's
741
+ highest-churn file would restale on essentially every queue edit, buying a
742
+ per-commit regeneration tax for zero benefit. Derivation-first is satisfied by
743
+ 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
745
+ and is gated by nothing, for the same reason.
746
+
747
+ **Not a gate, either.** There is nothing to red: an entry with no inbound edges
748
+ is normal, and an entry with many is not a defect. The adjacent temptation —
749
+ redding on a backticked token that resolves to no live slug — is refused
750
+ outright, because those are overwhelmingly legitimate citations of landed work
751
+ (§The tag algebra), and `check-queue-slug-liveness` already owns the liveness
752
+ invariant on the surfaces where a dead reference *is* a false claim. Extending
753
+ it inward would red on good prose.
754
+
470
755
  ### bin/roadmap.sh
471
756
 
472
757
  The public-roadmap emitter: a tool, not a gate (no `# graph:` manifest),
@@ -643,6 +928,41 @@ binds top-level entries only — a sub-task is covered by its parent's costing.
643
928
  entry's residency is one iteration by the drain rule, so it has no carry to
644
929
  cap. The carry problem is the deferred pool's alone.
645
930
 
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.
943
+
944
+ *Why the cap is not widened for exceptional content.* Assertion A's bound is
945
+ the amendment-inlining line above, not a length preference, so raising the
946
+ number moves the number without moving the line — and the entries that would
947
+ claim an exception are the likeliest ungoverned amendments. A conditional cap
948
+ collapses back into authorization anyway, or it is the self-issued exemption
949
+ the delegation doctrine already names as the standard failure mode.
950
+
951
+ **A ruling the operator restates from memory is filed in the moment.** The
952
+ compression rule above is an authoring contract, so a break in it is silent, and
953
+ it surfaces in one recognisable form: the operator supplies a closed decision
954
+ from memory because no surface carries it any more. That restatement is the
955
+ moment the content is in hand and the cheapest it will ever be, so it is filed
956
+ *then*, as a **recording entry** — never noted for a later pass. Deferring the
957
+ filing is not a cheaper version of it: the ruling stays exactly where it was
958
+ lost from, and the next session pays the same restatement over again. A
959
+ recording entry is the queue's holding pen for a decision in flight, never its
960
+ home; its deliverable is the ruling landed in the surface that owns it, one
961
+ owner per fact as everywhere else, and the entry is done when that surface
962
+ carries it. The gate cannot hold this either, for the same reason it cannot hold
963
+ compression: nothing distinguishes a sentence that was recalled from one that
964
+ was read.
965
+
646
966
  ### check-queue-wrap
647
967
 
648
968
  Invariant: no line exceeds the `QUEUE_KIT_WRAP_BUDGET` gate floor (default
@@ -651,8 +971,10 @@ Invariant: no line exceeds the `QUEUE_KIT_WRAP_BUDGET` gate floor (default
651
971
  parse; the tripwire fires before that lands.
652
972
 
653
973
  Calibration: three exemptions mirror the wrapping convention — table rows,
654
- fenced-code blocks, and lines over budget solely due to one unbreakable token
655
- (URL, path). Width is Unicode code points, not bytes.
974
+ fenced-code blocks, and lines whose own longest token itself exceeds the budget
975
+ (URL, path). That third one is narrower than "over budget because of one long
976
+ token": a 101-column line whose longest token is 55 is **not** exempt, because
977
+ the token still wraps. Width is Unicode code points, not bytes.
656
978
 
657
979
  ### check-tag-lead-line
658
980
 
@@ -731,6 +1053,19 @@ exit (nothing to compare is not a violation). Clearing the done section is
731
1053
  safe: only HEAD's *live* slugs are conserved. A rename intentionally fires —
732
1054
  move the old slug to done, sweep refs.
733
1055
 
1056
+ **The gate is a binary subcommand, and the `no-fixture:` reason survived the
1057
+ port intact — what it does not excuse is parity.** The reason is structural
1058
+ rather than a stopgap, so it stays true on either substrate; but a member with
1059
+ no pair still owes the proof that both implementations agree, and it is paid by
1060
+ the constructed scenario gate-sdk/SPEC.md §The port-candidate criteria specifies
1061
+ for exactly this shape: throwaway repositories, the worktree mutated without
1062
+ committing, both implementations run over the same case and compared byte for
1063
+ byte. `git` is the one external program the gate invokes — the sanctioned floor
1064
+ exception — and the branch that reports a clean exit when there is no repository
1065
+ at all is part of what the scenario covers. The same absence of a fixture case
1066
+ is why gate-sdk/SPEC.md §check-gate-output reads this member's output contract
1067
+ off its implementation module rather than off its descriptor.
1068
+
734
1069
  ### check-queue-prose-precondition
735
1070
 
736
1071
  Invariant: no active-section entry states a forward precondition in prose
@@ -774,9 +1109,10 @@ is ground truth, the prose the audited follower.
774
1109
 
775
1110
  ### templates/
776
1111
 
777
- `queue-config.sh` — the consumer config template documenting every knob (the
778
- `# spec:` pointer to the §Layout knob table, which now includes
779
- `QUEUE_KIT_LESSON_SINKS` and its local-overlay reminder).
1112
+ `queue-config.sh` — the consumer config template: a two-line `# spec:` pointer
1113
+ to the §Layout knob table (which now includes `QUEUE_KIT_LESSON_SINKS` and its
1114
+ local-overlay reminder), so the table stays the one owner of the knob roster
1115
+ rather than a parallel copy in the template drifting against it.
780
1116
  `TASK-QUEUE.md` — a starter queue skeleton: the sections in default order,
781
1117
  one example entry per grammar shape shown under `Technical Debt` (the
782
1118
  `[spec:]`-gated `New Features` carries teaching prose only, since a spec-ready
@@ -785,6 +1121,14 @@ starter-template conformance contract owned by gate-sdk/SPEC.md §Consumer smoke
785
1121
  — and carries lifecycle-kit's iteration header as inert scaffold so a
786
1122
  combined-tree copy clears the stage gates too.
787
1123
 
1124
+ Shipping this file is also what makes this kit the queue format's owner as far
1125
+ as an adopter's install is concerned: `checkwright init` seeds their queue from
1126
+ the template of the first kit in their profile that ships one, and falls back to
1127
+ an inline skeleton only when none does (installer/README.md §What init seeds).
1128
+ The declaration is the artifact rather than a roster naming this kit. Until that
1129
+ selection was resolved over the whole profile at once, no profile reached this
1130
+ kit first and no adopter ever received the file.
1131
+
788
1132
  ## Out of scope
789
1133
 
790
1134
  <!-- prose-enum-exempt: names the two amendment-lifecycle tags specifically; [blocked-by:] is a dependency tag outside that lifecycle, not a dropped task-tag member -->
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env bash
2
+ # spec: queue-kit/SPEC.md §bin/queue-counts.sh — per-task-section entry counts (a tool, not a gate; no # graph: manifest)
3
+ #
4
+ # usage: queue-counts.sh [queue-file]
5
+ # emits one "<section-name><TAB><count>" line per task section, in configured
6
+ # order; no flags, no modes, one output grammar
7
+ set -uo pipefail
8
+
9
+ KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
10
+ # shellcheck source=../lib/queue.sh
11
+ source "$KIT/lib/queue.sh"
12
+
13
+ file=""
14
+ while (($#)); do
15
+ case "$1" in
16
+ -h|--help) grep -m5 '^# ' "${BASH_SOURCE[0]}" | sed 's/^# \{0,1\}//'; exit 0 ;;
17
+ -*) echo "queue-counts: unknown option: $1" >&2; exit 2 ;;
18
+ *) file="$1"; shift ;;
19
+ esac
20
+ done
21
+ FILE="${file:-$QUEUE_KIT_QUEUE_FILE}"
22
+ [[ -f "$FILE" ]] || { echo "queue-counts: file not found: $FILE" >&2; exit 2; }
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
25
+ awk -v sects="$(printf '%s\n' "${QUEUE_TASK_SECTIONS[@]}")" -v sectre="$QUEUE_SECTION_RE" '
26
+ BEGIN { n = split(sects, S, "\n") }
27
+ $0 ~ sectre {
28
+ h = $0; sub(/^##[[:space:]]+/, "", h); sub(/[[:space:]]+$/, "", h)
29
+ cur = ""
30
+ for (i = 1; i <= n; i++) if (S[i] == h) cur = h
31
+ next
32
+ }
33
+ cur != "" && /^-[[:space:]]/ && $0 ~ /\*\*[a-z0-9][a-z0-9-]*\*\*/ { c[cur]++ }
34
+ END { for (i = 1; i <= n; i++) printf "%s\t%d\n", S[i], c[S[i]] + 0 }
35
+ ' "$FILE"
@@ -0,0 +1,78 @@
1
+ #!/usr/bin/env bash
2
+ # spec: queue-kit/SPEC.md §bin/queue-edges.sh — inbound citation aggregator (a tool, not a gate; no # graph: manifest)
3
+ #
4
+ # usage: queue-edges.sh [--inbound <slug>] [queue-file]
5
+ # default: every live slug with at least one inbound edge, and its citing entries
6
+ # --inbound <slug>: the inbound set for one slug
7
+ set -uo pipefail
8
+
9
+ KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
10
+ # shellcheck source=../lib/queue.sh
11
+ source "$KIT/lib/queue.sh"
12
+
13
+ target=""; file=""
14
+ while (($#)); do
15
+ case "$1" in
16
+ --inbound) target="${2:-}"; shift 2 || true ;;
17
+ -h|--help) sed -n '4,6p' "${BASH_SOURCE[0]}" | sed 's/^# \{0,1\}//'; exit 0 ;;
18
+ -*) echo "queue-edges: unknown option: $1" >&2; exit 2 ;;
19
+ *) file="$1"; shift ;;
20
+ esac
21
+ done
22
+ FILE="${file:-$QUEUE_KIT_QUEUE_FILE}"
23
+ [[ -f "$FILE" ]] || { echo "queue-edges: file not found: $FILE" >&2; exit 2; }
24
+
25
+ live="$(queue_live_slugs "$FILE")"
26
+ # spec: queue-kit/SPEC.md §bin/queue-edges.sh — a dead --inbound slug is a caller error, not an empty set: silence has to mean "no inbound edges" and nothing else
27
+ if [[ -n "$target" ]] && ! grep -qxF -- "$target" <<<"$live"; then
28
+ echo "queue-edges: not a live slug: $target" >&2
29
+ exit 1
30
+ fi
31
+
32
+ awk -v taskre="$QUEUE_TASK_RE" -v sectre="$QUEUE_SECTION_RE" \
33
+ -v live="$live" -v want="$target" '
34
+ BEGIN { n = split(live, a, "\n"); for (i = 1; i <= n; i++) if (a[i] != "") L[a[i]] = 1 }
35
+ # spec: queue-kit/SPEC.md §The tag algebra — resolution against the live slug set, self-citation dropped; an unresolved token is silently not an edge, never a complaint
36
+ function emit(tgt, line) {
37
+ if (!(tgt in L) || tgt == cur || cur == "") return
38
+ if (want != "" && tgt != want) return
39
+ sub(/^[[:space:]]+/, "", line); sub(/[[:space:]]+$/, "", line)
40
+ if (!(tgt in seen)) { seen[tgt] = 1; ord[++nt] = tgt }
41
+ cnt[tgt]++
42
+ rec[tgt, cnt[tgt]] = sprintf(" %-46s %s", cur, line)
43
+ }
44
+ function scanblocked(line, s, b) {
45
+ s = line
46
+ while (match(s, /\[blocked-by:[[:space:]]*[a-z0-9][a-z0-9-]*/)) {
47
+ b = substr(s, RSTART, RLENGTH); sub(/\[blocked-by:[[:space:]]*/, "", b)
48
+ emit(b, line)
49
+ s = substr(s, RSTART + RLENGTH)
50
+ }
51
+ }
52
+ function scanbody(line, s, t) {
53
+ s = line
54
+ while (match(s, /`[a-z0-9][a-z0-9-]*`/)) {
55
+ t = substr(s, RSTART + 1, RLENGTH - 2)
56
+ emit(t, line)
57
+ s = substr(s, RSTART + RLENGTH)
58
+ }
59
+ }
60
+ $0 ~ taskre { inq = 1; cur = ""; next }
61
+ $0 ~ sectre { inq = 0; cur = ""; next }
62
+ !inq { next }
63
+ # spec: queue-kit/SPEC.md §bin/queue-edges.sh — a citation is attributed to the nearest preceding slug bullet, so a sub-task cites in its own name; the lead line yields its [blocked-by:] tag alone, never its prose
64
+ /^[[:space:]]*-[[:space:]]+\*\*[a-z0-9][a-z0-9-]*\*\*/ {
65
+ match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/)
66
+ cur = substr($0, RSTART + 2, RLENGTH - 4)
67
+ scanblocked($0)
68
+ next
69
+ }
70
+ cur != "" { scanbody($0) }
71
+ END {
72
+ for (i = 1; i <= nt; i++) {
73
+ t = ord[i]
74
+ printf "%s (%d inbound)\n", t, cnt[t]
75
+ for (j = 1; j <= cnt[t]; j++) print rec[t, j]
76
+ }
77
+ }
78
+ ' "$FILE"
@@ -0,0 +1,3 @@
1
+ # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: queue-kit/SPEC.md §check-queue-entry-budget — a deferred entry is a costed filing: bounded above so it is not an inlined amendment, bounded below so it is not a flag-and-skip; an icebox entry is its lead line and nothing else
@@ -0,0 +1,3 @@
1
+ # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # spec: queue-kit/SPEC.md §check-queue-hygiene — the queue holds only tasks, tags, and structure: no HTML comments, no duplicate lines, no column-0 prose
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
3
+ # install: zero-config
3
4
  # spec: queue-kit/SPEC.md §check-queue-prose-precondition — no active entry states a forward precondition in prose without a blocked-by tag (selection trusts tags, not prose)
4
5
  #
5
6
  # usage: check-queue-prose-precondition.sh [queue-file]
@@ -0,0 +1,3 @@
1
+ # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: queue-kit/SPEC.md §check-queue-sections — the queue carries each required ## section heading exactly once, the fail-closed floor under every section-scoped scanner
@@ -0,0 +1,3 @@
1
+ # graph: couples=TASK-QUEUE.md,scripts/*.sh dir=one valve=none tier=precommit
2
+ # install: on-surface
3
+ # spec: queue-kit/SPEC.md §check-queue-slug-liveness — every slug-shaped bold-code token in a configured prose surface resolves against the queue's live slug set
@@ -0,0 +1,3 @@
1
+ # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # spec: queue-kit/SPEC.md §check-queue-wrap — no queue line exceeds the wrap budget (Unicode code points), so a runaway never reflows to column 0
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=TASK-QUEUE.md,ROADMAP.md,scripts/queue-config.sh dir=one valve=none tier=precommit trigger=TASK-QUEUE.md,ROADMAP.md,scripts/queue-config.sh
3
+ # install: on-surface
3
4
  # spec: queue-kit/SPEC.md §check-roadmap-fresh — every [roadmap:] tag names a configured horizon and track and pairs with exactly one roadmap-summary: declaration, and the projection page's marker block is the byte-fresh emission of bin/roadmap.sh
4
5
  #
5
6
  # usage: check-roadmap-fresh.sh [projection-file] [emit-file]
@@ -0,0 +1,3 @@
1
+ # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # spec: queue-kit/SPEC.md §check-tag-lead-line — every governed tag (blocked-by/spec/design-pending/drain-exempt/roadmap in the task sections, attend + configured lesson tags in Lessons) sits on its bullet's lead line, the only line the tag readers scan
@@ -0,0 +1,4 @@
1
+ # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # no-fixture: HEAD-vs-worktree diff — a committed fixture has HEAD == worktree, so the loss case (an uncommitted deletion) has no static-fixture representation; parity is proved by the constructed scenario instead (queue-kit/SPEC.md §check-task-conservation).
4
+ # spec: queue-kit/SPEC.md §check-task-conservation — every live slug present at HEAD is still present (live or done) in the working tree
@@ -0,0 +1,3 @@
1
+ # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
2
+ # install: zero-config
3
+ # spec: queue-kit/SPEC.md §check-task-names — task entries lead with a unique kebab slug, done entries are bare slugs, every blocked-by resolves to a live task
@@ -17,6 +17,11 @@
17
17
  ### Later
18
18
 
19
19
  - **gamma-feature** — revisit when the alpha surface settles.
20
+ recurrence: gamma-feature 2026-08-04
21
+ - **delta-feature** — re-filed the same day as gamma, which is the case the
22
+ recurrence declaration's self-naming slug field exists to keep unique: strip
23
+ the slugs and these two lines are byte-identical and this fixture reds.
24
+ recurrence: delta-feature 2026-08-04
20
25
 
21
26
  ## Done
22
27