checkwright 0.22.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 (548) hide show
  1. package/README.md +855 -96
  2. package/lib/common/lock.sh +45 -9
  3. package/lib/common/profile.sh +33 -0
  4. package/lib/common/recipe.sh +50 -34
  5. package/lib/diff.sh +66 -0
  6. package/lib/doctor.sh +67 -42
  7. package/lib/init.sh +62 -46
  8. package/lib/uninstall.sh +214 -0
  9. package/lib/update.sh +34 -0
  10. package/package.json +2 -2
  11. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  12. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  13. package/payload/canon-kit/README.md +1 -0
  14. package/payload/canon-kit/SPEC.md +527 -63
  15. package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
  16. package/payload/canon-kit/checks/check-comment-tier.gate +3 -0
  17. package/payload/canon-kit/checks/check-deprecation-task.gate +3 -0
  18. package/payload/canon-kit/checks/check-docs-cmd.gate +3 -0
  19. package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
  20. package/payload/canon-kit/checks/check-install-claim.gate +3 -0
  21. package/payload/canon-kit/checks/check-knob-citation.gate +3 -0
  22. package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
  23. package/payload/canon-kit/checks/check-manifest-count.gate +3 -0
  24. package/payload/canon-kit/checks/check-manifest-temporal.gate +3 -0
  25. package/payload/canon-kit/checks/check-md-refs.gate +3 -0
  26. package/payload/canon-kit/checks/check-measured-claim.gate +3 -0
  27. package/payload/canon-kit/checks/check-payload-claim.gate +3 -0
  28. package/payload/canon-kit/checks/check-prose-enum.gate +3 -0
  29. package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
  30. package/payload/canon-kit/checks/check-spec-derivable-section.gate +3 -0
  31. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +3 -0
  32. package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
  33. package/payload/canon-kit/checks/check-spec-fence-balance.gate +3 -0
  34. package/payload/canon-kit/checks/check-spec-pointer.gate +3 -0
  35. package/payload/canon-kit/checks/check-surface-duplication.sh +1 -0
  36. package/payload/canon-kit/checks/check-todo-task-liveness.gate +3 -0
  37. package/payload/canon-kit/checks/check-tracking-claim.gate +3 -0
  38. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
  39. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
  40. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
  41. package/payload/canon-kit/gate-tests/check-comment-tier/bad/.workflow/fixture-state.txt +4 -0
  42. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.gate +4 -0
  43. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.rs +5 -0
  44. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
  45. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +5 -0
  46. package/payload/canon-kit/gate-tests/check-comment-tier/bad/templates/bad-tmpl.sh +4 -0
  47. package/payload/canon-kit/gate-tests/check-comment-tier/good/.workflow/fixture-state.txt +3 -0
  48. package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
  49. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +4 -0
  50. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +5 -0
  51. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
  52. package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
  53. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +3 -2
  54. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
  55. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
  56. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
  57. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
  58. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
  59. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
  60. package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
  61. package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
  62. package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
  63. package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
  64. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
  65. package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
  66. package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
  67. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
  68. package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
  69. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
  70. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +4 -0
  71. package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +27 -5
  72. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +61 -9
  73. package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +12 -0
  74. package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +3 -0
  75. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +6 -0
  76. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +23 -0
  77. package/payload/canon-kit/gate-tests/check-measured-claim/good/expect.txt +1 -0
  78. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +6 -0
  79. package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +90 -0
  80. package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +3 -3
  81. package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +21 -7
  82. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
  83. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
  84. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
  85. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
  86. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
  87. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
  88. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/.workflow/fixture-state.txt +2 -0
  89. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.gate +2 -0
  90. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +4 -0
  91. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +3 -0
  92. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/templates/tmpl.sh +5 -0
  93. package/payload/canon-kit/gate-tests/check-spec-pointer/good/.workflow/fixture-state.txt +2 -0
  94. package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
  95. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.gate +2 -0
  96. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +4 -0
  97. package/payload/canon-kit/gate-tests/check-spec-pointer/good/templates/tmpl.sh +5 -0
  98. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/.workflow/fixture-state.txt +3 -0
  99. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.gate +2 -0
  100. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.rs +4 -0
  101. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +3 -0
  102. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/templates/tmpl.sh +5 -0
  103. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/.workflow/fixture-state.txt +3 -0
  104. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -1
  105. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.gate +2 -0
  106. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.rs +4 -0
  107. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/templates/tmpl.sh +5 -0
  108. package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -2
  109. package/payload/canon-kit/lib/spec.sh +91 -62
  110. package/payload/canon-kit/smoke/install.sh +2 -1
  111. package/payload/canon-kit/templates/SPEC-amendment.md +4 -1
  112. package/payload/context-kit/README.md +10 -5
  113. package/payload/context-kit/SPEC.md +364 -62
  114. package/payload/context-kit/bin/always-loaded.sh +5 -21
  115. package/payload/context-kit/bin/env-probe.sh +21 -23
  116. package/payload/context-kit/checks/check-brevity.gate +3 -0
  117. package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
  118. package/payload/context-kit/checks/check-memory-off.gate +3 -0
  119. package/payload/context-kit/checks/check-settings-paths.gate +3 -0
  120. package/payload/context-kit/checks/check-settings-pins.gate +3 -0
  121. package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
  122. package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
  123. package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
  124. package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
  125. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
  126. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +12 -0
  127. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/real-tool.sh +4 -0
  128. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +1 -0
  129. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
  130. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/real-tool.sh +4 -0
  131. package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
  132. package/payload/context-kit/index-tests/expected/toolfloor.txt +9 -0
  133. package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
  134. package/payload/context-kit/lib/context.sh +56 -0
  135. package/payload/context-kit/lib/toolfloor.sh +15 -4
  136. package/payload/context-kit/smoke/agents-md.sh +27 -4
  137. package/payload/context-kit/smoke/install.sh +4 -2
  138. package/payload/context-kit/templates/session-context.sh +5 -5
  139. package/payload/delegation-kit/README.md +3 -3
  140. package/payload/delegation-kit/SPEC.md +400 -22
  141. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
  142. package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
  143. package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
  144. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
  145. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
  146. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
  147. package/payload/delegation-kit/smoke/install.sh +1 -1
  148. package/payload/delegation-kit/templates/agent-execution.md +109 -18
  149. package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
  150. package/payload/doctrine-kit/DOCTRINE.md +86 -12
  151. package/payload/doctrine-kit/README.md +7 -3
  152. package/payload/doctrine-kit/SPEC.md +103 -10
  153. package/payload/doctrine-kit/bin/install-doctrine.sh +83 -13
  154. package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
  155. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +3 -0
  156. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +3 -0
  157. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +84 -5
  158. package/payload/doctrine-kit/smoke/install.sh +106 -3
  159. package/payload/drift-kit/README.md +2 -2
  160. package/payload/drift-kit/SPEC.md +84 -11
  161. package/payload/drift-kit/bin/kfric.sh +21 -2
  162. package/payload/drift-kit/bin/stage-economics.sh +1 -1
  163. package/payload/drift-kit/lib/drift.sh +43 -0
  164. package/payload/drift-kit/smoke/install.sh +49 -14
  165. package/payload/evidence-kit/README.md +3 -1
  166. package/payload/evidence-kit/SPEC.md +160 -19
  167. package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
  168. package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
  169. package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
  170. package/payload/evidence-kit/checks/check-producer-liveness.sh +43 -2
  171. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
  172. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
  173. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
  174. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
  175. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
  176. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
  177. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
  178. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
  179. package/payload/evidence-kit/lib/evidence.sh +2 -0
  180. package/payload/evidence-kit/smoke/install.sh +1 -1
  181. package/payload/gate-sdk/README.md +23 -7
  182. package/payload/gate-sdk/SPEC.md +6402 -291
  183. package/payload/gate-sdk/bin/build-native.sh +38 -0
  184. package/payload/gate-sdk/bin/gen-pre-commit.sh +23 -3
  185. package/payload/gate-sdk/bin/install-hooks.sh +14 -2
  186. package/payload/gate-sdk/bin/port-blockers.sh +473 -0
  187. package/payload/gate-sdk/bin/run-consumer-smoke.sh +8 -1
  188. package/payload/gate-sdk/bin/run-gate-tests.sh +27 -7
  189. package/payload/gate-sdk/bin/run-gates.sh +30 -2
  190. package/payload/gate-sdk/bin/upgrade-smoke.sh +70 -17
  191. package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -0
  192. package/payload/gate-sdk/checks/check-action-pinning.gate +1 -0
  193. package/payload/gate-sdk/checks/check-action-run-shell.sh +2 -0
  194. package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
  195. package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
  196. package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
  197. package/payload/gate-sdk/checks/check-core-files.gate +3 -0
  198. package/payload/gate-sdk/checks/check-crate-arms.sh +62 -0
  199. package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
  200. package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
  201. package/payload/gate-sdk/checks/check-gate-assertions.sh +32 -6
  202. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
  203. package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
  204. package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
  205. package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
  206. package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
  207. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +109 -14
  208. package/payload/gate-sdk/checks/check-graph.gate +3 -0
  209. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
  210. package/payload/gate-sdk/checks/check-identity.gate +3 -0
  211. package/payload/gate-sdk/checks/check-install-disposition.sh +93 -0
  212. package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
  213. package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
  214. package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
  215. package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
  216. package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
  217. package/payload/gate-sdk/checks/check-shellcheck.sh +2 -0
  218. package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
  219. package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
  220. package/payload/gate-sdk/checks/check-template-registry-parity.gate +3 -0
  221. package/payload/gate-sdk/checks/check-test-hermetic.gate +3 -0
  222. package/payload/gate-sdk/checks/check-tree-terms.sh +2 -0
  223. package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
  224. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
  225. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
  226. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +7 -0
  227. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +12 -0
  228. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +5 -0
  229. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +2 -0
  230. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +7 -0
  231. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +11 -0
  232. package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +2 -0
  233. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +2 -0
  234. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
  235. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
  236. package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
  237. package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
  238. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
  239. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
  240. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
  241. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
  242. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
  243. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
  244. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
  245. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
  246. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
  247. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
  248. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
  249. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
  250. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
  251. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
  252. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
  253. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
  254. package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-native-sample.gate +3 -0
  255. package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +3 -0
  256. package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +1 -0
  257. package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/Cargo.toml +4 -0
  258. package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/src/gates/native_sample.rs +7 -0
  259. package/payload/gate-sdk/gate-tests/check-gate-output/good/check-native-sample.gate +3 -0
  260. package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -1
  261. package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +1 -0
  262. package/payload/gate-sdk/gate-tests/check-gate-output/good/native/Cargo.toml +4 -0
  263. package/payload/gate-sdk/gate-tests/check-gate-output/good/native/src/gates/native_sample.rs +11 -0
  264. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +110 -0
  265. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +7 -0
  266. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
  267. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
  268. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
  269. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
  270. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
  271. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
  272. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +4 -0
  273. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
  274. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
  275. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +4 -0
  276. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
  277. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +110 -4
  278. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
  279. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
  280. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
  281. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
  282. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
  283. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
  284. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
  285. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
  286. package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
  287. package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
  288. package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
  289. package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
  290. package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
  291. package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
  292. package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
  293. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
  294. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
  295. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
  296. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
  297. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
  298. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
  299. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
  300. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
  301. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
  302. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
  303. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
  304. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
  305. package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
  306. package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
  307. package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
  308. package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -0
  309. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
  310. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
  311. package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
  312. package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
  313. package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
  314. package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +6 -5
  315. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
  316. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
  317. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
  318. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
  319. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
  320. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
  321. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
  322. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
  323. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
  324. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
  325. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
  326. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
  327. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
  328. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
  329. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
  330. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
  331. package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
  332. package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
  333. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
  334. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +204 -1
  335. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
  336. package/payload/gate-sdk/lib/consumer-smoke.sh +24 -12
  337. package/payload/gate-sdk/lib/gate.sh +353 -22
  338. package/payload/gate-sdk/lib/inject.sh +25 -0
  339. package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
  340. package/payload/gate-sdk/smoke/install.sh +47 -1
  341. package/payload/guard-kit/README.md +14 -11
  342. package/payload/guard-kit/SPEC.md +477 -82
  343. package/payload/guard-kit/bin/run-guard-tests.sh +7 -1
  344. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
  345. package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
  346. package/payload/guard-kit/guard-tests/cases.tsv +84 -14
  347. package/payload/guard-kit/lib/guard.sh +440 -54
  348. package/payload/guard-kit/templates/close-triage.md +5 -5
  349. package/payload/guard-kit/templates/settings-hooks.json +7 -1
  350. package/payload/lifecycle-kit/README.md +14 -3
  351. package/payload/lifecycle-kit/SPEC.md +929 -93
  352. package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
  353. package/payload/lifecycle-kit/bin/enter-stage.sh +193 -38
  354. package/payload/lifecycle-kit/bin/file-gap.sh +29 -12
  355. package/payload/lifecycle-kit/bin/file-survey.sh +21 -2
  356. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
  357. package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +3 -0
  358. package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +3 -0
  359. package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +3 -0
  360. package/payload/lifecycle-kit/checks/check-merge-attrs.gate +3 -0
  361. package/payload/lifecycle-kit/checks/check-scratch-citation.gate +3 -0
  362. package/payload/lifecycle-kit/checks/check-shim-restatement.gate +3 -0
  363. package/payload/lifecycle-kit/checks/check-skill-binding.gate +3 -0
  364. package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
  365. package/payload/lifecycle-kit/checks/check-stage-evidence.gate +3 -0
  366. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +3 -0
  367. package/payload/lifecycle-kit/checks/check-survey-record.gate +3 -0
  368. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
  369. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +2 -3
  370. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/args +2 -0
  371. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +3 -0
  372. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +5 -0
  373. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/args +2 -0
  374. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/expect.txt +1 -0
  375. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/gap-inbox.md +4 -0
  376. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +2 -3
  377. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +2 -3
  378. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -3
  379. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/expect.txt +1 -0
  380. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +4 -0
  381. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/surfaces/queue.md +13 -0
  382. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/expect.txt +1 -0
  383. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +4 -0
  384. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +31 -0
  385. package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +2 -3
  386. package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +2 -3
  387. package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
  388. package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
  389. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +24 -25
  390. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
  391. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
  392. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +129 -15
  393. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +2 -3
  394. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +54 -26
  395. package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
  396. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
  397. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
  398. package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
  399. package/payload/lifecycle-kit/lib/stages.sh +9 -0
  400. package/payload/lifecycle-kit/smoke/install.sh +96 -19
  401. package/payload/lifecycle-kit/templates/lead.md +60 -0
  402. package/payload/lifecycle-kit/templates/stages/align.md +20 -2
  403. package/payload/lifecycle-kit/templates/stages/build.md +3 -3
  404. package/payload/lifecycle-kit/templates/stages/close.md +48 -15
  405. package/payload/lifecycle-kit/templates/stages/scope.md +29 -5
  406. package/payload/lifecycle-kit/templates/stages/spec.md +6 -2
  407. package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
  408. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
  409. package/payload/queue-kit/README.md +12 -10
  410. package/payload/queue-kit/SPEC.md +411 -74
  411. package/payload/queue-kit/bin/queue-counts.sh +35 -0
  412. package/payload/queue-kit/checks/check-queue-entry-budget.gate +3 -0
  413. package/payload/queue-kit/checks/check-queue-hygiene.gate +3 -0
  414. package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
  415. package/payload/queue-kit/checks/check-queue-sections.gate +3 -0
  416. package/payload/queue-kit/checks/check-queue-slug-liveness.gate +3 -0
  417. package/payload/queue-kit/checks/check-queue-wrap.gate +3 -0
  418. package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
  419. package/payload/queue-kit/checks/check-tag-lead-line.gate +3 -0
  420. package/payload/queue-kit/checks/check-task-conservation.gate +4 -0
  421. package/payload/queue-kit/checks/check-task-names.gate +3 -0
  422. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
  423. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
  424. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
  425. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
  426. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
  427. package/payload/queue-kit/gate-tests/queue-counts.test.sh +116 -0
  428. package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
  429. package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
  430. package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
  431. package/payload/queue-kit/lib/queue.sh +4 -68
  432. package/payload/queue-kit/smoke/install.sh +1 -1
  433. package/payload/site-kit/SPEC.md +52 -2
  434. package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
  435. package/payload/site-kit/checks/check-docs-render-fidelity.sh +2 -0
  436. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
  437. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
  438. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
  439. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
  440. package/payload/site-kit/smoke/install.sh +1 -1
  441. package/profiles.list +36 -8
  442. package/payload/canon-kit/checks/check-amendment-queue.sh +0 -116
  443. package/payload/canon-kit/checks/check-comment-tier.sh +0 -216
  444. package/payload/canon-kit/checks/check-deprecation-task.sh +0 -90
  445. package/payload/canon-kit/checks/check-docs-cmd.sh +0 -153
  446. package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -78
  447. package/payload/canon-kit/checks/check-install-claim.sh +0 -146
  448. package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
  449. package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -239
  450. package/payload/canon-kit/checks/check-manifest-count.sh +0 -46
  451. package/payload/canon-kit/checks/check-manifest-temporal.sh +0 -83
  452. package/payload/canon-kit/checks/check-md-refs.sh +0 -128
  453. package/payload/canon-kit/checks/check-payload-claim.sh +0 -133
  454. package/payload/canon-kit/checks/check-prose-enum.sh +0 -115
  455. package/payload/canon-kit/checks/check-prose-tells.sh +0 -207
  456. package/payload/canon-kit/checks/check-spec-derivable-section.sh +0 -69
  457. package/payload/canon-kit/checks/check-spec-dod-singleton.sh +0 -45
  458. package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -133
  459. package/payload/canon-kit/checks/check-spec-fence-balance.sh +0 -42
  460. package/payload/canon-kit/checks/check-spec-pointer.sh +0 -187
  461. package/payload/canon-kit/checks/check-todo-task-liveness.sh +0 -80
  462. package/payload/canon-kit/checks/check-tracking-claim.sh +0 -136
  463. package/payload/context-kit/bin/footprint.sh +0 -144
  464. package/payload/context-kit/checks/check-brevity.sh +0 -123
  465. package/payload/context-kit/checks/check-footprint-fresh.sh +0 -38
  466. package/payload/context-kit/checks/check-memory-off.sh +0 -112
  467. package/payload/context-kit/checks/check-settings-pins.sh +0 -110
  468. package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -61
  469. package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -139
  470. package/payload/delegation-kit/checks/check-rule-citation.sh +0 -76
  471. package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -216
  472. package/payload/drift-kit/bin/trajectory.sh +0 -242
  473. package/payload/evidence-kit/checks/check-battery-roster.sh +0 -86
  474. package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -103
  475. package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -104
  476. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
  477. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
  478. package/payload/gate-sdk/bin/enforcement-map.sh +0 -272
  479. package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
  480. package/payload/gate-sdk/checks/check-commit-msg.sh +0 -50
  481. package/payload/gate-sdk/checks/check-commit-subject.sh +0 -43
  482. package/payload/gate-sdk/checks/check-core-files.sh +0 -75
  483. package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -37
  484. package/payload/gate-sdk/checks/check-exec-bit.sh +0 -95
  485. package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -106
  486. package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -105
  487. package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -84
  488. package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -92
  489. package/payload/gate-sdk/checks/check-gate-output.sh +0 -73
  490. package/payload/gate-sdk/checks/check-graph.sh +0 -631
  491. package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -45
  492. package/payload/gate-sdk/checks/check-identity.sh +0 -134
  493. package/payload/gate-sdk/checks/check-kit-enum.sh +0 -94
  494. package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
  495. package/payload/gate-sdk/checks/check-readme-roster.sh +0 -107
  496. package/payload/gate-sdk/checks/check-reads-couples.sh +0 -199
  497. package/payload/gate-sdk/checks/check-root-tiering.sh +0 -66
  498. package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
  499. package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -126
  500. package/payload/gate-sdk/checks/check-template-registry-parity.sh +0 -81
  501. package/payload/gate-sdk/checks/check-test-hermetic.sh +0 -119
  502. package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -84
  503. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
  504. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
  505. package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
  506. package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
  507. package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
  508. package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -63
  509. package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +0 -98
  510. package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +0 -54
  511. package/payload/lifecycle-kit/checks/check-merge-attrs.sh +0 -69
  512. package/payload/lifecycle-kit/checks/check-shim-restatement.sh +0 -97
  513. package/payload/lifecycle-kit/checks/check-skill-binding.sh +0 -59
  514. package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -197
  515. package/payload/lifecycle-kit/checks/check-stage-evidence.sh +0 -81
  516. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +0 -47
  517. package/payload/lifecycle-kit/checks/check-survey-record.sh +0 -102
  518. package/payload/queue-kit/bin/queue-index.sh +0 -182
  519. package/payload/queue-kit/bin/roadmap.sh +0 -76
  520. package/payload/queue-kit/checks/check-queue-entry-budget.sh +0 -106
  521. package/payload/queue-kit/checks/check-queue-hygiene.sh +0 -81
  522. package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -63
  523. package/payload/queue-kit/checks/check-queue-sections.sh +0 -44
  524. package/payload/queue-kit/checks/check-queue-slug-liveness.sh +0 -63
  525. package/payload/queue-kit/checks/check-queue-wrap.sh +0 -56
  526. package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -110
  527. package/payload/queue-kit/checks/check-tag-lead-line.sh +0 -70
  528. package/payload/queue-kit/checks/check-task-conservation.sh +0 -50
  529. package/payload/queue-kit/checks/check-task-names.sh +0 -128
  530. package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -80
  531. /package/payload/context-kit/gate-tests/{check-memory-off → check-settings-paths}/bad/args +0 -0
  532. /package/payload/context-kit/gate-tests/{check-memory-off → check-settings-paths}/good/args +0 -0
  533. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
  534. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
  535. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
  536. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  537. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  538. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
  539. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
  540. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  541. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  542. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
  543. /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
  544. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
  545. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
  546. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
  547. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
  548. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
@@ -1,81 +0,0 @@
1
- #!/usr/bin/env bash
2
- # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
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
4
- #
5
- # usage: check-queue-hygiene.sh [queue-file]
6
- # Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE).
7
- set -uo pipefail
8
-
9
- KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
10
- SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
11
- # shellcheck source=../../gate-sdk/lib/gate.sh
12
- source "$SDK/lib/gate.sh"
13
- # shellcheck source=../lib/queue.sh
14
- source "$KIT/lib/queue.sh"
15
-
16
- FILE="${1:-$QUEUE_KIT_QUEUE_FILE}"
17
- [[ -f "$FILE" ]] || { echo "check-queue-hygiene: file not found: $FILE" >&2; exit 2; }
18
-
19
- out="$(awk -v leads="$(printf '%s\n' "${QUEUE_KIT_PROSE_LEADS[@]+"${QUEUE_KIT_PROSE_LEADS[@]}"}")" '
20
- BEGIN { nl = split(leads, L, "\n") }
21
- {
22
- if ($0 ~ /<!--/ || $0 ~ /-->/)
23
- printf "html\t%d\t%s\n", FNR, $0
24
-
25
- if ($0 ~ /^[^[:space:]]/) { # column-0, non-blank line
26
- ok = 0
27
- if ($0 ~ /^#/) ok = 1 # heading
28
- else if ($0 ~ /^-[[:space:]]/) ok = 1 # bullet
29
- else if ($0 ~ /^---[[:space:]]*$/) ok = 1 # rule
30
- else {
31
- for (i = 1; i <= nl; i++)
32
- if (L[i] != "" && index($0, L[i]) == 1) { ok = 1; break }
33
- }
34
- if (!ok) printf "prose\t%d\t%s\n", FNR, $0
35
- }
36
-
37
- if ($0 !~ /^[[:space:]]*$/ && $0 !~ /^---[[:space:]]*$/) {
38
- if ($0 in seen)
39
- printf "dup\t%d\t%s (first seen at line %d)\n", FNR, $0, seen[$0]
40
- else
41
- seen[$0] = FNR
42
- }
43
- }
44
- ' "$FILE")"; st=$?
45
- fail_closed "$st" QUEUE-HYGIENE awk
46
-
47
- html=(); prose=(); dup=()
48
- while IFS=$'\t' read -r class ln text; do
49
- [[ -n "$class" ]] || continue
50
- case "$class" in
51
- html) html+=("$FILE:$ln: $text") ;;
52
- prose) prose+=("$FILE:$ln: $text") ;;
53
- dup) dup+=("$FILE:$ln: $text") ;;
54
- esac
55
- done <<< "$out"
56
-
57
- if [[ ${#html[@]} -gt 0 || ${#prose[@]} -gt 0 || ${#dup[@]} -gt 0 ]]; then
58
- if [[ ${#html[@]} -gt 0 ]]; then
59
- echo "check-queue-hygiene: HTML comment(s) in the queue (provenance belongs in git history):"
60
- printf ' %s\n' "${html[@]}"
61
- echo " help: delete the comment; record the why in the commit message, not the queue."
62
- fi
63
- if [[ ${#dup[@]} -gt 0 ]]; then
64
- [[ ${#html[@]} -gt 0 ]] && echo ""
65
- echo "check-queue-hygiene: exact-duplicate line(s) (copy-paste artifact):"
66
- printf ' %s\n' "${dup[@]}"
67
- echo " help: remove the duplicate; if two tasks genuinely share wording, differentiate them."
68
- fi
69
- if [[ ${#prose[@]} -gt 0 ]]; then
70
- { [[ ${#html[@]} -gt 0 ]] || [[ ${#dup[@]} -gt 0 ]]; } && echo ""
71
- echo "check-queue-hygiene: column-0 prose (every column-0 line must be a heading,"
72
- echo "a '- ' bullet, '---', or a configured QUEUE_KIT_PROSE_LEADS lead):"
73
- printf ' %s\n' "${prose[@]}"
74
- echo " help: indent the prose to a continuation line under its bullet, or (for a"
75
- echo " recurring protocol lead) add its token to QUEUE_KIT_PROSE_LEADS."
76
- fi
77
- exit 1
78
- fi
79
-
80
- echo "QUEUE-HYGIENE: clean (no HTML comments, no duplicate lines, no column-0 prose in $FILE)"
81
- exit 0
@@ -1,63 +0,0 @@
1
- #!/usr/bin/env bash
2
- # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
3
- # 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
- # usage: check-queue-prose-precondition.sh [queue-file]
6
- # Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE); the forward
7
- # trigger set is QUEUE_KIT_PRECONDITION_REGEX (matched against lowercased prose).
8
- set -uo pipefail
9
-
10
- KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
11
- SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
12
- # shellcheck source=../../gate-sdk/lib/gate.sh
13
- source "$SDK/lib/gate.sh"
14
- # shellcheck source=../lib/queue.sh
15
- source "$KIT/lib/queue.sh"
16
-
17
- FILE="${1:-$QUEUE_KIT_QUEUE_FILE}"
18
- [[ -f "$FILE" ]] || { echo "check-queue-prose-precondition: file not found: $FILE" >&2; exit 2; }
19
-
20
- out="$(awk -v activere="$QUEUE_ACTIVE_RE" -v sectre="$QUEUE_SECTION_RE" -v trig="$QUEUE_KIT_PRECONDITION_REGEX" '
21
- function flush() {
22
- if (startln == 0) return
23
- b = tolower(body)
24
- gsub(/\[[^]]*\]/, " ", b) # drop bracket tags/links from the prose
25
- gsub(/(once|when|after)[^.,;]*(landed|shipped|merged|resolved|completed|was [a-z]+ed)/, " ", b) # strip past-tense narration
26
- if (b ~ trig && !hasblock)
27
- printf "%d\t%s\n", startln, lead
28
- startln = 0; body = ""; lead = ""; hasblock = 0
29
- }
30
- $0 ~ activere { inq = 1; flush(); next }
31
- $0 ~ sectre { inq = 0; flush(); next }
32
- !inq { next }
33
- /^-[[:space:]]/ { # a new top-level active entry
34
- flush()
35
- startln = FNR; lead = $0; body = $0
36
- if ($0 ~ /\[blocked-by:/ || $0 ~ /\[precondition-ok:/) hasblock = 1
37
- next
38
- }
39
- {
40
- if (startln == 0) next
41
- body = body " " $0
42
- if ($0 ~ /\[blocked-by:/ || $0 ~ /\[precondition-ok:/) hasblock = 1
43
- }
44
- END { flush() }
45
- ' "$FILE")"; st=$?
46
- fail_closed "$st" QUEUE-PROSE-PRECONDITION awk
47
-
48
- if [[ -n "$out" ]]; then
49
- echo "check-queue-prose-precondition: active entry states a forward precondition in prose"
50
- echo "but carries no [blocked-by:] tag — selection trusts tags, so it is latently blocked"
51
- echo "yet mechanically pickable as 'first unblocked':"
52
- while IFS=$'\t' read -r ln lead; do
53
- [[ -n "$ln" ]] || continue
54
- echo " $FILE:$ln: $lead"
55
- done <<< "$out"
56
- echo " help: tag the real blocker '[blocked-by: <slug>]', or move the entry to the"
57
- echo " Deferred section, or rephrase past-tense if the precondition is already"
58
- echo " met, or opt out with '[precondition-ok: <reason>]' anywhere in the entry."
59
- exit 1
60
- fi
61
-
62
- echo "QUEUE-PROSE-PRECONDITION: clean (no untagged forward precondition in the active sections of $FILE)"
63
- exit 0
@@ -1,44 +0,0 @@
1
- #!/usr/bin/env bash
2
- # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
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
4
- #
5
- # usage: check-queue-sections.sh [queue-file]
6
- # Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE).
7
- set -uo pipefail
8
-
9
- KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
10
- SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
11
- # shellcheck source=../../gate-sdk/lib/gate.sh
12
- source "$SDK/lib/gate.sh"
13
- # shellcheck source=../lib/queue.sh
14
- source "$KIT/lib/queue.sh"
15
-
16
- FILE="${1:-$QUEUE_KIT_QUEUE_FILE}"
17
- [[ -f "$FILE" ]] || { echo "check-queue-sections: file not found: $FILE" >&2; exit 2; }
18
-
19
- missing=(); dup=()
20
- for sec in "${QUEUE_KIT_REQUIRED_SECTIONS[@]}"; do
21
- if [[ "$sec" == *: ]]; then re="^## ${sec}"; else re="^## ${sec}[[:space:]]*\$"; fi
22
- n="$(grep -cE -- "$re" "$FILE")"; gst=$?
23
- if [[ "$gst" -ge 2 ]]; then
24
- echo "check-queue-sections: grep failed on '$re' (exit $gst) — cannot verify" >&2
25
- exit 2
26
- fi
27
- if [[ "$n" -eq 0 ]]; then missing+=("$sec")
28
- elif [[ "$n" -gt 1 ]]; then dup+=("$sec ($n occurrences)")
29
- fi
30
- done
31
-
32
- if [[ ${#missing[@]} -gt 0 || ${#dup[@]} -gt 0 ]]; then
33
- echo "check-queue-sections: required '##' section(s) not present exactly once in $FILE"
34
- echo "(every section-scoped scanner — amendment-queue, task-names, conservation, the"
35
- echo "session-context index — locates work by these headings and finds nothing when one drops):"
36
- for s in "${missing[@]}"; do echo " missing: ## $s"; done
37
- for s in "${dup[@]}"; do echo " duplicate: ## $s"; done
38
- echo " help: restore the heading (spelled exactly), or remove the duplicate. The"
39
- echo " required set is QUEUE_KIT_REQUIRED_SECTIONS (queue-config.sh)."
40
- exit 1
41
- fi
42
-
43
- echo "QUEUE-SECTIONS: clean (${#QUEUE_KIT_REQUIRED_SECTIONS[@]} required section(s) each present once in $FILE)"
44
- exit 0
@@ -1,63 +0,0 @@
1
- #!/usr/bin/env bash
2
- # graph: couples=TASK-QUEUE.md,scripts/*.sh dir=one valve=none tier=precommit
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
4
- #
5
- # usage: check-queue-slug-liveness.sh [scan-root] (default '.')
6
- # Scans QUEUE_KIT_PROSE_SURFACE_GLOBS (empty default: no-op) under the root.
7
- set -uo pipefail
8
-
9
- KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
10
- SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
11
- # shellcheck source=../../gate-sdk/lib/gate.sh
12
- source "$SDK/lib/gate.sh"
13
- # shellcheck source=../lib/queue.sh
14
- source "$KIT/lib/queue.sh"
15
-
16
- ROOT="${1:-.}"
17
- [[ -d "$ROOT" ]] || { echo "check-queue-slug-liveness: not a directory: $ROOT" >&2; exit 2; }
18
-
19
- files=()
20
- if [[ ${#QUEUE_KIT_PROSE_SURFACE_GLOBS[@]} -gt 0 ]]; then
21
- shopt -s nullglob globstar
22
- for g in "${QUEUE_KIT_PROSE_SURFACE_GLOBS[@]}"; do
23
- for f in "$ROOT"/$g; do [[ -f "$f" ]] && files+=("$f"); done
24
- done
25
- shopt -u nullglob globstar
26
- fi
27
-
28
- if [[ ${#files[@]} -eq 0 ]]; then
29
- echo "QUEUE-SLUG-LIVENESS: clean (no prose surface configured in QUEUE_KIT_PROSE_SURFACE_GLOBS — nothing to resolve)"
30
- exit 0
31
- fi
32
-
33
- QUEUE="$QUEUE_KIT_QUEUE_FILE"
34
- [[ -f "$QUEUE" ]] || QUEUE="$ROOT/$QUEUE_KIT_QUEUE_FILE"
35
- [[ -f "$QUEUE" ]] || { echo "check-queue-slug-liveness: queue file not found: $QUEUE_KIT_QUEUE_FILE" >&2; exit 2; }
36
-
37
- live_str="$(queue_live_slugs "$QUEUE" | tr '\n' ' ')"; st=${PIPESTATUS[0]}
38
- fail_closed "$st" QUEUE-SLUG-LIVENESS queue_live_slugs
39
-
40
- out="$(awk -v live="$live_str" '
41
- BEGIN { n = split(live, a, " "); for (i = 1; i <= n; i++) L[a[i]] = 1 }
42
- {
43
- s = $0
44
- while (match(s, /\*\*`[a-z0-9][a-z0-9-]*`\*\*/)) {
45
- tok = substr(s, RSTART + 3, RLENGTH - 6)
46
- if (!(tok in L)) printf "%s:%d:%s\n", FILENAME, FNR, tok
47
- s = substr(s, RSTART + RLENGTH)
48
- }
49
- }
50
- ' "${files[@]}")"; st=$?
51
- fail_closed "$st" QUEUE-SLUG-LIVENESS awk
52
-
53
- if [[ -n "$out" ]]; then
54
- echo "check-queue-slug-liveness: bold-code token claims queue membership but names no live task:"
55
- while IFS= read -r line; do printf ' %s\n' "$line"; done <<< "$out"
56
- echo " help: a **\`slug\`** token claims the slug is a live queue task. If the task"
57
- echo " landed, drop the bold-code form and cite its owning SPEC; otherwise fix"
58
- echo " the slug or restore the task to the queue."
59
- exit 1
60
- fi
61
-
62
- echo "QUEUE-SLUG-LIVENESS: clean (${#files[@]} prose surface(s) scanned; every slug-shaped bold-code token resolves to a live task in $QUEUE)"
63
- exit 0
@@ -1,56 +0,0 @@
1
- #!/usr/bin/env bash
2
- # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
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
4
- #
5
- # usage: check-queue-wrap.sh [queue-file]
6
- # Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE); the floor is
7
- # QUEUE_KIT_WRAP_BUDGET (default 100; the authoring target is ~80).
8
- set -uo pipefail
9
-
10
- KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
11
- SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
12
- # shellcheck source=../../gate-sdk/lib/gate.sh
13
- source "$SDK/lib/gate.sh"
14
- # shellcheck source=../lib/queue.sh
15
- source "$KIT/lib/queue.sh"
16
-
17
- FILE="${1:-$QUEUE_KIT_QUEUE_FILE}"
18
- [[ -f "$FILE" ]] || { echo "check-queue-wrap: file not found: $FILE" >&2; exit 2; }
19
-
20
- # comment-tier-exempt: the code-point width trick is below SPEC altitude
21
- # LC_ALL=C makes awk bytewise; cplen() subtracts UTF-8 continuation bytes (0x80–0xBF) to recover width.
22
- out="$(LC_ALL=C awk -v budget="$QUEUE_KIT_WRAP_BUDGET" '
23
- function cplen(s, t, cont) {
24
- t = s
25
- cont = gsub(/[\200-\277]/, "", t)
26
- return length(s) - cont
27
- }
28
- /^[[:space:]]*```/ { fence = !fence; next } # fenced-code delimiter: exempt, toggle
29
- fence { next } # inside a fenced block: exempt
30
- /^[[:space:]]*\|/ { next } # table row: exempt
31
- {
32
- w = cplen($0)
33
- if (w <= budget) next
34
- maxtok = 0
35
- n = split($0, T, /[[:space:]]+/)
36
- for (i = 1; i <= n; i++) { tl = cplen(T[i]); if (tl > maxtok) maxtok = tl }
37
- if (maxtok > budget) next # one unbreakable token (URL/path): no wrap helps
38
- printf "%d\t%d\t%s\n", FNR, w, $0
39
- }
40
- ' "$FILE")"; st=$?
41
- fail_closed "$st" QUEUE-WRAP awk
42
-
43
- if [[ -n "$out" ]]; then
44
- echo "check-queue-wrap: line(s) over the $QUEUE_KIT_WRAP_BUDGET-column budget (a runaway"
45
- echo "that reflows to column 0 corrupts the '- ' lead the tools key on):"
46
- while IFS=$'\t' read -r ln w text; do
47
- [[ -n "$ln" ]] || continue
48
- echo " $FILE:$ln: $w cols — $text"
49
- done <<< "$out"
50
- echo " help: hard-wrap the line at ~80 columns. Exempt already: table rows,"
51
- echo " fenced code, and a line over budget solely from one unbreakable token."
52
- exit 1
53
- fi
54
-
55
- echo "QUEUE-WRAP: clean (no line exceeds $QUEUE_KIT_WRAP_BUDGET columns in $FILE)"
56
- exit 0
@@ -1,110 +0,0 @@
1
- #!/usr/bin/env bash
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
- # 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
- # usage: check-roadmap-fresh.sh [projection-file] [emit-file]
6
- # bare: compare the marker block in QUEUE_KIT_ROADMAP_FILE against `roadmap.sh --emit`.
7
- # two args: compare the block extracted from projection-file to a pre-baked emit-file (hermetic fixture).
8
- set -uo pipefail
9
-
10
- KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
11
- SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
12
- # shellcheck source=../../gate-sdk/lib/gate.sh
13
- source "$SDK/lib/gate.sh"
14
- # shellcheck source=../lib/queue.sh
15
- source "$KIT/lib/queue.sh"
16
-
17
- PROJECTION="${1:-$QUEUE_KIT_ROADMAP_FILE}"
18
- EMIT_SRC="${2:-}"
19
-
20
- # spec: queue-kit/SPEC.md §check-roadmap-fresh — no configured page is the clean skip for a consumer that publishes no roadmap, matching check-queue-slug-liveness's empty-globs behavior
21
- if [[ -z "$PROJECTION" ]]; then
22
- echo "ROADMAP-FRESH: clean (QUEUE_KIT_ROADMAP_FILE empty — this consumer publishes no roadmap)"
23
- exit 0
24
- fi
25
-
26
- [[ -f "$QUEUE_KIT_QUEUE_FILE" ]] \
27
- || { echo "check-roadmap-fresh: queue file not found: $QUEUE_KIT_QUEUE_FILE" >&2; exit 2; }
28
-
29
- # spec: queue-kit/SPEC.md §check-roadmap-fresh — assertion B runs first: a tag naming an unconfigured horizon is silently dropped from the emission, so a freshness verdict taken before the fields are validated would pass a page that quietly lost an item
30
- horizons=" ${QUEUE_KIT_HORIZONS[*]+"${QUEUE_KIT_HORIZONS[*]}"} "
31
- tracks=" ${QUEUE_KIT_TRACKS[*]+"${QUEUE_KIT_TRACKS[*]}"} "
32
- bad=()
33
- tagged=0
34
- while IFS=$'\t' read -r ntags fieldv slug nsum _summary; do
35
- [[ -n "$slug" ]] || continue
36
-
37
- # spec: queue-kit/SPEC.md §check-roadmap-fresh — assertion C, both directions: the tag decides projection and the declaration is the only prose that may be projected, so neither is meaningful without the other
38
- if [[ "$ntags" -eq 0 ]]; then
39
- bad+=("$slug: carries a roadmap-summary: declaration but no [roadmap:] tag; a dead marking is what a dropped or reflowed tag looks like from the page's side")
40
- continue
41
- fi
42
- tagged=$((tagged + 1))
43
- # spec: queue-kit/SPEC.md §check-roadmap-fresh — the declaration count and the tag's fields are independent, so both are reported in one run rather than costing the author a second round trip
44
- [[ "$nsum" -eq 1 ]] \
45
- || bad+=("$slug: is [roadmap:]-tagged but carries $nsum roadmap-summary: declaration(s); exactly one is required")
46
-
47
- if [[ "$ntags" -ne 1 ]]; then
48
- bad+=("$slug: carries $ntags [roadmap:] tags; an entry takes at most one")
49
- continue
50
- fi
51
- if [[ "$fieldv" != */* || "$fieldv" == */*/* ]]; then
52
- bad+=("$slug: field '$fieldv' does not parse as <horizon>/<track>")
53
- continue
54
- fi
55
- h="${fieldv%%/*}"; t="${fieldv#*/}"
56
- [[ "$horizons" == *" $h "* ]] || bad+=("$slug: unknown horizon '$h'")
57
- [[ "$tracks" == *" $t "* ]] || bad+=("$slug: unknown track '$t'")
58
- done < <(queue_roadmap_entries "$QUEUE_KIT_QUEUE_FILE")
59
-
60
- if [[ ${#bad[@]} -gt 0 ]]; then
61
- echo "check-roadmap-fresh: invalid roadmap curation in $QUEUE_KIT_QUEUE_FILE"
62
- echo "(an unconfigured value or an unpaired marking drops the entry off the page"
63
- echo "with nothing else to notice):"
64
- for b in "${bad[@]}"; do echo " $b"; done
65
- echo " help: an entry joins the page with a [roadmap: <horizon>/<track>] tag on its lead"
66
- echo " line, both values drawn from QUEUE_KIT_HORIZONS / QUEUE_KIT_TRACKS, plus"
67
- echo " exactly one indented 'roadmap-summary: <text>' declaration in its body —"
68
- echo " the only prose the public page prints (queue-kit/SPEC.md §bin/roadmap.sh)."
69
- exit 1
70
- fi
71
-
72
- BEGIN="<!-- ${QUEUE_KIT_ROADMAP_MARKER}:begin -->"
73
- END="<!-- ${QUEUE_KIT_ROADMAP_MARKER}:end -->"
74
-
75
- # spec: queue-kit/SPEC.md §check-roadmap-fresh — a configured path with no page, no markers, or a half marker pair is a broken install, not a clean skip
76
- [[ -f "$PROJECTION" ]] || { echo "check-roadmap-fresh: projection not found: $PROJECTION" >&2; exit 2; }
77
- nb="$(grep -cF -- "$BEGIN" "$PROJECTION")"
78
- ne="$(grep -cF -- "$END" "$PROJECTION")"
79
- [[ "$nb" -eq 1 && "$ne" -eq 1 ]] || {
80
- echo "check-roadmap-fresh: $PROJECTION needs exactly one '$BEGIN' + '$END' pair (found $nb and $ne)" >&2
81
- exit 2
82
- }
83
-
84
- block="$(awk -v b="$BEGIN" -v e="$END" '
85
- $0 == b { inb = 1; next }
86
- $0 == e { inb = 0; next }
87
- inb { print }
88
- ' "$PROJECTION")"; st=$?
89
- fail_closed "$st" check-roadmap-fresh awk
90
-
91
- if [[ -n "$EMIT_SRC" ]]; then
92
- [[ -f "$EMIT_SRC" ]] || { echo "check-roadmap-fresh: emit source not found: $EMIT_SRC" >&2; exit 2; }
93
- emitted="$(cat "$EMIT_SRC")"; st=$?
94
- fail_closed "$st" check-roadmap-fresh cat
95
- else
96
- GEN="$KIT/bin/roadmap.sh"
97
- [[ -x "$GEN" ]] || { echo "check-roadmap-fresh: emitter not found: $GEN" >&2; exit 2; }
98
- emitted="$(bash "$GEN" --emit)"; st=$?
99
- fail_closed "$st" check-roadmap-fresh roadmap
100
- fi
101
-
102
- if [[ "$block" != "$emitted" ]]; then
103
- echo "check-roadmap-fresh: the $QUEUE_KIT_ROADMAP_MARKER block in $PROJECTION is stale vs bin/roadmap.sh:"
104
- diff <(printf '%s\n' "$emitted") <(printf '%s\n' "$block") | head -20 || true
105
- echo " help: regenerate — bash queue-kit/bin/roadmap.sh --write"
106
- exit 1
107
- fi
108
-
109
- echo "ROADMAP-FRESH: clean (the $QUEUE_KIT_ROADMAP_MARKER block in $PROJECTION byte-matches bin/roadmap.sh; $tagged tagged entry/entries name a configured horizon and track)"
110
- exit 0
@@ -1,70 +0,0 @@
1
- #!/usr/bin/env bash
2
- # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
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
4
- #
5
- # usage: check-tag-lead-line.sh [queue-file]
6
- # Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE).
7
- set -uo pipefail
8
-
9
- KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
10
- SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
11
- # shellcheck source=../../gate-sdk/lib/gate.sh
12
- source "$SDK/lib/gate.sh"
13
- # shellcheck source=../lib/queue.sh
14
- source "$KIT/lib/queue.sh"
15
-
16
- FILE="${1:-$QUEUE_KIT_QUEUE_FILE}"
17
- [[ -f "$FILE" ]] || { echo "check-tag-lead-line: file not found: $FILE" >&2; exit 2; }
18
-
19
- lessontags="${QUEUE_KIT_LESSON_TAGS[*]+"${QUEUE_KIT_LESSON_TAGS[*]}"}"
20
- out="$(awk -v taskre="$QUEUE_TASK_RE" -v lessonsre="$QUEUE_LESSONS_RE" \
21
- -v sectre="$QUEUE_SECTION_RE" -v lessontags="$lessontags" '
22
- # spec: queue-kit/SPEC.md §check-tag-lead-line — one class table, each entry the tag name plus its bracket terminator; the match literal and the arr[] key both come off it, and scripts/enum-sets.sh reads this same table
23
- BEGIN {
24
- ncls = split("blocked-by: spec: design-pending] attend] drain-exempt: roadmap:", cls, " ")
25
- nlt = split(lessontags, lt, " ")
26
- }
27
- function classes(line, arr, i, nm, term) {
28
- delete arr
29
- for (i = 1; i <= ncls; i++) {
30
- term = substr(cls[i], length(cls[i]))
31
- nm = substr(cls[i], 1, length(cls[i]) - 1)
32
- if (index(line, "[" nm term)) arr[nm] = 1
33
- }
34
- for (i = 1; i <= nlt; i++)
35
- if (index(line, "[" lt[i] "]")) arr[lt[i]] = 1
36
- }
37
- $0 ~ taskre { inscan = 1; leadfnr = 0; delete leadcls; next }
38
- $0 ~ lessonsre { inscan = 1; leadfnr = 0; delete leadcls; next }
39
- $0 ~ sectre { inscan = 0; leadfnr = 0; delete leadcls; next }
40
- !inscan { next }
41
- /^[[:space:]]*```/ { fence = !fence; next }
42
- fence { next }
43
- /^[[:space:]]*\|/ { next } # table row: exempt
44
- /^[[:space:]]*-[[:space:]]/ { # bullet lead line
45
- classes($0, leadcls); leadfnr = FNR; next
46
- }
47
- {
48
- if (leadfnr == 0) next # continuation with no owning bullet
49
- classes($0, cont)
50
- for (k in cont)
51
- if (!(k in leadcls))
52
- printf "%d\t%s\t%d\n", FNR, k, leadfnr
53
- }
54
- ' "$FILE")"; st=$?
55
- fail_closed "$st" TAG-LEAD-LINE awk
56
-
57
- if [[ -n "$out" ]]; then
58
- echo "check-tag-lead-line: tag(s) pushed off the bullet lead line (a tag reader"
59
- echo "scans only the lead; a tag on a continuation line silently stops counting):"
60
- while IFS=$'\t' read -r ln cls lead; do
61
- [[ -n "$ln" ]] || continue
62
- echo " $FILE:$ln: [$cls] on a continuation line; lead line $lead carries no [$cls]"
63
- done <<< "$out"
64
- echo " help: move the tag back onto the bullet's lead line (the '- ...' line). If a"
65
- echo " reflow pushed it there, re-wrap so the lead line carries the tag."
66
- exit 1
67
- fi
68
-
69
- echo "TAG-LEAD-LINE: clean (every governed tag in the task + Lessons sections is on its bullet lead line in $FILE)"
70
- exit 0
@@ -1,50 +0,0 @@
1
- #!/usr/bin/env bash
2
- # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
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 (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
5
- #
6
- # usage: check-task-conservation.sh [queue-file]
7
- # Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE). Diffs
8
- # `git show HEAD:<queue>` against the worktree; no git baseline ⇒ clean exit.
9
- set -uo pipefail
10
-
11
- KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
12
- SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
13
- # shellcheck source=../../gate-sdk/lib/gate.sh
14
- source "$SDK/lib/gate.sh"
15
- # shellcheck source=../lib/queue.sh
16
- source "$KIT/lib/queue.sh"
17
-
18
- FILE="${1:-$QUEUE_KIT_QUEUE_FILE}"
19
-
20
- git rev-parse --git-dir >/dev/null 2>&1 || {
21
- echo "TASK-CONSERVATION: clean (no git repository — no HEAD baseline to compare)"; exit 0; }
22
-
23
- head_tmp="$(mktemp)"
24
- trap 'rm -f "$head_tmp"' EXIT
25
- if ! git show "HEAD:$FILE" >"$head_tmp" 2>/dev/null; then
26
- echo "TASK-CONSERVATION: clean ($FILE not at HEAD — no prior live slugs to conserve)"; exit 0
27
- fi
28
- [[ -f "$FILE" ]] || { echo "check-task-conservation: worktree file not found: $FILE" >&2; exit 2; }
29
-
30
- declare -A present=()
31
- while IFS= read -r s; do [[ -n "$s" ]] && present["$s"]=1; done < <(queue_live_slugs "$FILE")
32
- while IFS= read -r s; do [[ -n "$s" ]] && present["$s"]=1; done < <(queue_done_slugs "$FILE")
33
-
34
- lost=(); conserved=0
35
- while IFS= read -r s; do
36
- [[ -n "$s" ]] || continue
37
- if [[ -n "${present[$s]:-}" ]]; then conserved=$((conserved + 1)); else lost+=("$s"); fi
38
- done < <(queue_live_slugs "$head_tmp")
39
-
40
- if [[ ${#lost[@]} -gt 0 ]]; then
41
- echo "check-task-conservation: live slug(s) present at HEAD but gone from the working"
42
- echo "tree — neither live nor done (a lost task; the absence class diff-review misses):"
43
- printf ' %s\n' "${lost[@]}"
44
- echo " help: restore the entry, or move its slug to the done section if it completed."
45
- echo " A rename must move the old slug to done and sweep every [blocked-by:] ref."
46
- exit 1
47
- fi
48
-
49
- echo "TASK-CONSERVATION: clean ($conserved HEAD live slug(s) all still present in $FILE)"
50
- exit 0