checkwright 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +172 -10
  2. package/lib/common/lock.sh +7 -0
  3. package/lib/common/recipe.sh +1 -1
  4. package/lib/diff.sh +2 -0
  5. package/lib/init.sh +40 -16
  6. package/lib/uninstall.sh +2 -0
  7. package/package.json +2 -2
  8. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  9. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  10. package/payload/canon-kit/SPEC.md +125 -13
  11. package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
  12. package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
  13. package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
  14. package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
  15. package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
  16. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
  17. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
  18. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
  19. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
  20. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
  21. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
  22. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
  23. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
  24. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
  25. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
  26. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
  27. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
  28. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
  29. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
  30. package/payload/canon-kit/smoke/install.sh +1 -1
  31. package/payload/context-kit/README.md +6 -4
  32. package/payload/context-kit/SPEC.md +239 -70
  33. package/payload/context-kit/bin/always-loaded.sh +5 -21
  34. package/payload/context-kit/bin/env-probe.sh +2 -17
  35. package/payload/context-kit/checks/check-brevity.gate +3 -0
  36. package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
  37. package/payload/context-kit/checks/check-memory-off.gate +3 -0
  38. package/payload/context-kit/checks/check-settings-paths.gate +3 -0
  39. package/payload/context-kit/checks/check-settings-pins.gate +3 -0
  40. package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
  41. package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
  42. package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
  43. package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
  44. package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
  45. package/payload/context-kit/index-tests/expected/toolfloor.txt +5 -5
  46. package/payload/context-kit/index-tests/toolfloor-cases.sh +5 -5
  47. package/payload/context-kit/lib/context.sh +56 -0
  48. package/payload/context-kit/lib/toolfloor.sh +1 -1
  49. package/payload/context-kit/smoke/agents-md.sh +16 -4
  50. package/payload/context-kit/smoke/install.sh +3 -2
  51. package/payload/context-kit/templates/session-context.sh +5 -5
  52. package/payload/delegation-kit/SPEC.md +284 -9
  53. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
  54. package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
  55. package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
  56. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
  57. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
  58. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
  59. package/payload/delegation-kit/smoke/install.sh +1 -1
  60. package/payload/delegation-kit/templates/agent-execution.md +71 -4
  61. package/payload/doctrine-kit/SPEC.md +1 -1
  62. package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
  63. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +2 -3
  64. package/payload/doctrine-kit/smoke/install.sh +17 -4
  65. package/payload/drift-kit/README.md +2 -2
  66. package/payload/drift-kit/SPEC.md +71 -7
  67. package/payload/drift-kit/bin/stage-economics.sh +1 -1
  68. package/payload/drift-kit/lib/drift.sh +43 -0
  69. package/payload/drift-kit/smoke/install.sh +21 -14
  70. package/payload/evidence-kit/README.md +3 -1
  71. package/payload/evidence-kit/SPEC.md +160 -19
  72. package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
  73. package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
  74. package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
  75. package/payload/evidence-kit/checks/check-producer-liveness.sh +42 -2
  76. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
  77. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
  78. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
  79. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
  80. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
  81. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
  82. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
  83. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
  84. package/payload/evidence-kit/lib/evidence.sh +2 -0
  85. package/payload/evidence-kit/smoke/install.sh +1 -1
  86. package/payload/gate-sdk/README.md +10 -7
  87. package/payload/gate-sdk/SPEC.md +3916 -265
  88. package/payload/gate-sdk/bin/install-hooks.sh +14 -2
  89. package/payload/gate-sdk/bin/port-blockers.sh +37 -9
  90. package/payload/gate-sdk/bin/run-gate-tests.sh +1 -2
  91. package/payload/gate-sdk/bin/run-gates.sh +22 -0
  92. package/payload/gate-sdk/bin/upgrade-smoke.sh +21 -16
  93. package/payload/gate-sdk/checks/check-action-run-shell.sh +1 -0
  94. package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
  95. package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
  96. package/payload/gate-sdk/checks/check-core-files.gate +3 -0
  97. package/payload/gate-sdk/checks/check-crate-arms.sh +1 -0
  98. package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
  99. package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
  100. package/payload/gate-sdk/checks/check-gate-assertions.sh +1 -0
  101. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
  102. package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
  103. package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
  104. package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
  105. package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
  106. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +78 -14
  107. package/payload/gate-sdk/checks/check-graph.gate +3 -0
  108. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
  109. package/payload/gate-sdk/checks/check-identity.gate +3 -0
  110. package/payload/gate-sdk/checks/check-install-disposition.sh +1 -0
  111. package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
  112. package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
  113. package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
  114. package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
  115. package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
  116. package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
  117. package/payload/gate-sdk/checks/check-tree-terms.sh +1 -0
  118. package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
  119. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
  120. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
  121. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
  122. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
  123. package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
  124. package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
  125. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
  126. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
  127. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
  128. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
  129. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
  130. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
  131. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
  132. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
  133. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
  134. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
  135. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
  136. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
  137. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
  138. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
  139. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
  140. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +4 -5
  141. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +7 -0
  142. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
  143. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
  144. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
  145. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
  146. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
  147. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
  148. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +4 -0
  149. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
  150. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
  151. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +4 -0
  152. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
  153. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +49 -4
  154. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
  155. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
  156. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
  157. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
  158. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
  159. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
  160. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
  161. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
  162. package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
  163. package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
  164. package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
  165. package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
  166. package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
  167. package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
  168. package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
  169. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
  170. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
  171. package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
  172. package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
  173. package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
  174. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
  175. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
  176. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
  177. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
  178. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
  179. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
  180. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
  181. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
  182. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
  183. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
  184. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
  185. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
  186. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
  187. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
  188. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
  189. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
  190. package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
  191. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
  192. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +94 -1
  193. package/payload/gate-sdk/lib/gate.sh +232 -25
  194. package/payload/gate-sdk/smoke/install.sh +5 -1
  195. package/payload/guard-kit/SPEC.md +207 -28
  196. package/payload/guard-kit/bin/run-guard-tests.sh +6 -1
  197. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
  198. package/payload/guard-kit/guard-tests/cases.tsv +37 -9
  199. package/payload/guard-kit/lib/guard.sh +170 -6
  200. package/payload/lifecycle-kit/README.md +3 -2
  201. package/payload/lifecycle-kit/SPEC.md +507 -75
  202. package/payload/lifecycle-kit/bin/enter-stage.sh +72 -33
  203. package/payload/lifecycle-kit/bin/file-gap.sh +2 -2
  204. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
  205. package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
  206. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
  207. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -1
  208. package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
  209. package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
  210. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +22 -22
  211. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
  212. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
  213. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +120 -10
  214. package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
  215. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +11 -11
  216. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
  217. package/payload/lifecycle-kit/lib/stages.sh +5 -0
  218. package/payload/lifecycle-kit/smoke/install.sh +29 -15
  219. package/payload/lifecycle-kit/templates/lead.md +24 -0
  220. package/payload/lifecycle-kit/templates/stages/align.md +20 -2
  221. package/payload/lifecycle-kit/templates/stages/build.md +3 -3
  222. package/payload/lifecycle-kit/templates/stages/close.md +20 -6
  223. package/payload/lifecycle-kit/templates/stages/scope.md +20 -1
  224. package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
  225. package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
  226. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +1 -1
  227. package/payload/queue-kit/README.md +10 -10
  228. package/payload/queue-kit/SPEC.md +301 -84
  229. package/payload/queue-kit/bin/queue-counts.sh +1 -1
  230. package/payload/queue-kit/checks/check-queue-entry-budget.gate +1 -1
  231. package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
  232. package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
  233. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
  234. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
  235. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
  236. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
  237. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
  238. package/payload/queue-kit/gate-tests/queue-counts.test.sh +1 -1
  239. package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
  240. package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
  241. package/payload/queue-kit/lib/queue.sh +0 -49
  242. package/payload/queue-kit/smoke/install.sh +1 -1
  243. package/payload/site-kit/SPEC.md +29 -2
  244. package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
  245. package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
  246. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
  247. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
  248. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
  249. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
  250. package/payload/site-kit/smoke/install.sh +1 -1
  251. package/payload/canon-kit/checks/check-amendment-queue.sh +0 -117
  252. package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -79
  253. package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -240
  254. package/payload/canon-kit/checks/check-prose-tells.sh +0 -208
  255. package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -134
  256. package/payload/context-kit/bin/footprint.sh +0 -144
  257. package/payload/context-kit/checks/check-brevity.sh +0 -124
  258. package/payload/context-kit/checks/check-footprint-fresh.sh +0 -39
  259. package/payload/context-kit/checks/check-memory-off.sh +0 -113
  260. package/payload/context-kit/checks/check-settings-paths.sh +0 -94
  261. package/payload/context-kit/checks/check-settings-pins.sh +0 -111
  262. package/payload/context-kit/gate-tests/check-memory-off/bad/args +0 -1
  263. package/payload/context-kit/gate-tests/check-memory-off/good/args +0 -1
  264. package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -62
  265. package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -140
  266. package/payload/delegation-kit/checks/check-rule-citation.sh +0 -77
  267. package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -246
  268. package/payload/drift-kit/bin/trajectory.sh +0 -242
  269. package/payload/evidence-kit/checks/check-battery-roster.sh +0 -87
  270. package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -104
  271. package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -105
  272. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
  273. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
  274. package/payload/gate-sdk/bin/enforcement-map.sh +0 -273
  275. package/payload/gate-sdk/checks/check-commit-msg.sh +0 -51
  276. package/payload/gate-sdk/checks/check-commit-subject.sh +0 -44
  277. package/payload/gate-sdk/checks/check-core-files.sh +0 -76
  278. package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -38
  279. package/payload/gate-sdk/checks/check-exec-bit.sh +0 -96
  280. package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -107
  281. package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -106
  282. package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -85
  283. package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -93
  284. package/payload/gate-sdk/checks/check-gate-output.sh +0 -103
  285. package/payload/gate-sdk/checks/check-graph.sh +0 -632
  286. package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -46
  287. package/payload/gate-sdk/checks/check-identity.sh +0 -135
  288. package/payload/gate-sdk/checks/check-kit-enum.sh +0 -95
  289. package/payload/gate-sdk/checks/check-readme-roster.sh +0 -108
  290. package/payload/gate-sdk/checks/check-reads-couples.sh +0 -200
  291. package/payload/gate-sdk/checks/check-root-tiering.sh +0 -67
  292. package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -127
  293. package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -85
  294. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
  295. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
  296. package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
  297. package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
  298. package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
  299. package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -64
  300. package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -198
  301. package/payload/queue-kit/bin/queue-index.sh +0 -182
  302. package/payload/queue-kit/bin/roadmap.sh +0 -76
  303. package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -64
  304. package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -111
  305. package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -81
  306. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
  307. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
  308. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
  309. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  310. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  311. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
  312. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
  313. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  314. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  315. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
  316. /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
  317. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
  318. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
  319. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
  320. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
  321. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
@@ -1,182 +0,0 @@
1
- #!/usr/bin/env bash
2
- # spec: queue-kit/SPEC.md §bin/queue-index.sh — compact queue surface for task selection (a tool, not a gate; no # graph: manifest)
3
- #
4
- # usage: queue-index.sh [--collapse-deferred] [--extent <slug>] [--icebox-candidates] [queue-file]
5
- # default: header + active (• ready / ✗ blocked) + deferred titles + icebox tally;
6
- # --collapse-deferred: per-### tally; --extent <slug>: "<start> <end>"; --icebox-candidates: eviction worklist
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
- mode=index; collapse=0; slug=""; file=""
14
- while (($#)); do
15
- case "$1" in
16
- --collapse-deferred) collapse=1; shift ;;
17
- --extent) mode=extent; slug="${2:-}"; shift 2 || true ;;
18
- --icebox-candidates) mode=candidates; shift ;;
19
- -h|--help) sed -n '3,5p' "${BASH_SOURCE[0]}" | sed 's/^# \{0,1\}//'; exit 0 ;;
20
- -*) echo "queue-index: unknown option: $1" >&2; exit 2 ;;
21
- *) file="$1"; shift ;;
22
- esac
23
- done
24
- FILE="${file:-$QUEUE_KIT_QUEUE_FILE}"
25
- [[ -f "$FILE" ]] || { echo "queue-index: file not found: $FILE" >&2; exit 2; }
26
-
27
- if [[ "$mode" == extent ]]; then
28
- [[ -n "$slug" ]] || { echo "queue-index: --extent needs a <slug>" >&2; exit 2; }
29
- range="$(awk -v slug="$slug" '
30
- !found && $0 ~ /^[[:space:]]*-[[:space:]]+\*\*[a-z0-9][a-z0-9-]*\*\*/ {
31
- match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/)
32
- if (substr($0, RSTART + 2, RLENGTH - 4) == slug) {
33
- found = 1; start = NR; ind = match($0, /[^[:space:]]/) - 1; next
34
- }
35
- }
36
- found {
37
- if ($0 ~ /^#/ || $0 ~ /^---[[:space:]]*$/) { print start, NR - 1; done = 1; exit }
38
- if ($0 ~ /^[[:space:]]*-[[:space:]]/ && (match($0, /[^[:space:]]/) - 1) <= ind) {
39
- print start, NR - 1; done = 1; exit
40
- }
41
- }
42
- END { if (found && !done) print start, NR }
43
- ' "$FILE")"
44
- [[ -n "$range" ]] || { echo "queue-index: slug not found: $slug" >&2; exit 1; }
45
- echo "$range"
46
- exit 0
47
- fi
48
-
49
- if [[ "$mode" == candidates ]]; then
50
- cutoff="$(date -d "$QUEUE_KIT_ICEBOX_AGE_DAYS days ago" +%F 2>/dev/null)" \
51
- || { echo "queue-index: cannot compute the age cutoff (date -d unavailable)" >&2; exit 2; }
52
- # spec: queue-kit/SPEC.md §bin/queue-index.sh — an advisory worklist, never a verdict: the age filter only bounds how much close must look at, and the cost-class opener is printed for the reading judgment rather than matched on
53
- awk -v defre="$QUEUE_DEFERRED_RE" -v sectre="$QUEUE_SECTION_RE" -v cutoff="$cutoff" '
54
- function opener(t) {
55
- sub(/^.*\*\*Cost while deferred:?\*\*:?[[:space:]]*/, "", t)
56
- sub(/[[:space:]]*$/, "", t)
57
- if (length(t) > 48) t = substr(t, 1, 47) "…"
58
- return (t == "" ? "(unstated)" : t)
59
- }
60
- # spec: queue-kit/SPEC.md §bin/queue-index.sh — the low cost class is matched on the opener as prose, which is an unacceptable heuristic in a gate and exactly the right ceiling in an advisory worklist; an uncosted entry is listed too, because an absent input appears rather than vanishing
61
- function lowclass(t) { return (t ~ /^(low|zero|bounded|cosmetic)/) }
62
- function flush( d) {
63
- if (slug == "") return
64
- d = (surfaced != "" ? surfaced : filed)
65
- if ((d == "" || d < cutoff) && (cost == "" || lowclass(cost)))
66
- printf "%-46s %4dl %-11s %s\n", slug, FNR - start, \
67
- (d == "" ? "(undated)" : d), (cost == "" ? "(uncosted)" : cost)
68
- slug = ""; surfaced = ""; filed = ""; cost = ""
69
- }
70
- $0 ~ sectre { flush(); ind = ($0 ~ defre); next }
71
- !ind { next }
72
- /^[[:space:]]*-[[:space:]]+\*\*[a-z0-9][a-z0-9-]*\*\*/ {
73
- flush()
74
- match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/)
75
- slug = substr($0, RSTART + 2, RLENGTH - 4); start = FNR
76
- }
77
- slug == "" { next }
78
- match($0, /Surfaced [0-9]{4}-[0-9]{2}-[0-9]{2}/) {
79
- if (surfaced == "") surfaced = substr($0, RSTART + 9, 10)
80
- }
81
- match($0, /Filed [0-9]{4}-[0-9]{2}-[0-9]{2}/) {
82
- if (filed == "") filed = substr($0, RSTART + 6, 10)
83
- }
84
- /\*\*Cost while deferred/ { if (cost == "") cost = opener($0) }
85
- END { FNR++; flush() }
86
- ' "$FILE"
87
- exit 0
88
- fi
89
-
90
- hdr="$(grep -m1 '^## Iteration:' "$FILE" || true)"
91
- [[ -n "$hdr" ]] && { echo "$hdr"; echo ""; }
92
-
93
- awk -v activere="$QUEUE_ACTIVE_RE" -v deferredre="$QUEUE_DEFERRED_RE" \
94
- -v lessonsre="$QUEUE_LESSONS_RE" -v cap="$QUEUE_KIT_ATTEND_CAP" \
95
- -v sectre="$QUEUE_SECTION_RE" -v collapse="$collapse" \
96
- -v iceboxre="$QUEUE_ICEBOX_RE" -v iceboxname="$QUEUE_KIT_ICEBOX_SECTION" '
97
- # spec: queue-kit/SPEC.md §bin/queue-index.sh — tags come off before the slug-and-dash strip so the dash is adjacent when that regex runs, and a title left empty renders as the bare slug rather than an orphaned separator
98
- function title(line, t) {
99
- t = line
100
- sub(/^[[:space:]]*-[[:space:]]+/, "", t)
101
- gsub(/\[[^]]*\]/, "", t)
102
- sub(/^\*\*[a-z0-9][a-z0-9-]*\*\*[[:space:]]*(—[[:space:]]*)?/, "", t)
103
- sub(/^[[:space:]]+/, "", t); sub(/[[:space:]]+$/, "", t)
104
- if (length(t) > 64) t = substr(t, 1, 63) "…"
105
- return t
106
- }
107
- function joined(sl, t) { return (t == "" ? sl : sl " — " t) }
108
- function drainex(line, d) {
109
- if (!match(line, /\[drain-exempt:[[:space:]]*[^]]+\]/)) return ""
110
- d = substr(line, RSTART, RLENGTH)
111
- sub(/\[drain-exempt:[[:space:]]*/, "", d); sub(/\][[:space:]]*$/, "", d)
112
- return d
113
- }
114
- function blockers(line, s, r, b) {
115
- s = line; r = ""
116
- while (match(s, /\[blocked-by:[[:space:]]*[a-z0-9][a-z0-9-]*/)) {
117
- b = substr(s, RSTART, RLENGTH); sub(/\[blocked-by:[[:space:]]*/, "", b)
118
- r = r (r == "" ? "" : ", ") b
119
- s = substr(s, RSTART + RLENGTH)
120
- }
121
- return r
122
- }
123
- $0 ~ activere { sec = "active"; next }
124
- $0 ~ deferredre { sec = "deferred"; next }
125
- iceboxre != "" && $0 ~ iceboxre { sec = "icebox"; next }
126
- $0 ~ lessonsre { sec = "lessons"; next }
127
- $0 ~ sectre { sec = "other"; next }
128
-
129
- # spec: queue-kit/SPEC.md §bin/queue-index.sh — the icebox is a tally and never a listing: this surface is embedded in the always-loaded session brief, so listing the tier would re-import the very tokens the tier exists to remove
130
- sec == "icebox" && /^-[[:space:]]/ && match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/) { ni++; next }
131
-
132
- sec == "lessons" && /^-[[:space:]]/ && /\[attend\]/ {
133
- nl++
134
- if (nl <= cap) { line = $0; sub(/[[:space:]]+$/, "", line); att[nl] = line }
135
- next
136
- }
137
-
138
- sec == "active" && /^-[[:space:]]/ && match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/) {
139
- sl = substr($0, RSTART + 2, RLENGTH - 4)
140
- bl = blockers($0); de = drainex($0)
141
- na++; amark[na] = (bl == "" ? "•" : "✗")
142
- atitle[na] = joined(sl, title($0)) \
143
- (bl == "" ? "" : " [blocked-by: " bl "]") \
144
- (de == "" ? "" : " [drain-exempt: " de "]")
145
- next
146
- }
147
- sec == "deferred" && /^###[[:space:]]/ {
148
- cur = $0; sub(/^###[[:space:]]+/, "", cur); sub(/[[:space:]]+$/, "", cur); next
149
- }
150
- sec == "deferred" && /^-[[:space:]]/ && match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/) {
151
- sl = substr($0, RSTART + 2, RLENGTH - 4)
152
- key = (cur == "" ? "(top)" : cur)
153
- if (!(key in seen)) { seen[key] = 1; dord[++nd] = key }
154
- cnt[key]++
155
- dn++; dsub[dn] = key; dtitle[dn] = joined(sl, title($0))
156
- next
157
- }
158
-
159
- END {
160
- print "Active (pick the first •):"
161
- if (na == 0) print " (none — active queue empty)"
162
- for (i = 1; i <= na; i++) printf " %s %s\n", amark[i], atitle[i]
163
- print ""
164
- if (collapse == 1) {
165
- print "Deferred (tally):"
166
- if (nd == 0) print " (none)"
167
- for (i = 1; i <= nd; i++) printf " %s: %d\n", dord[i], cnt[dord[i]]
168
- } else {
169
- print "Deferred:"
170
- if (dn == 0) print " (none)"
171
- for (i = 1; i <= dn; i++) printf " %s\n", dtitle[i]
172
- }
173
- if (iceboxre != "") printf "%s: %d entries\n", iceboxname, ni + 0
174
- if (nl > 0) {
175
- print ""
176
- print "Attention (Lessons [attend], this iteration):"
177
- lim = (nl < cap ? nl : cap)
178
- for (i = 1; i <= lim; i++) printf " %s\n", att[i]
179
- if (nl > cap) printf " (+%d more [attend])\n", nl - cap
180
- }
181
- }
182
- ' "$FILE"
@@ -1,76 +0,0 @@
1
- #!/usr/bin/env bash
2
- # spec: queue-kit/SPEC.md §bin/roadmap.sh — the public roadmap projected off the queue's [roadmap:] tags (a tool, not a gate; no # graph: manifest)
3
- #
4
- # usage: roadmap.sh [--emit|--write] [queue-file]
5
- # --emit (default): print the generated block, the surface check-roadmap-fresh byte-compares.
6
- # --write: splice that block between QUEUE_KIT_ROADMAP_FILE's markers, touching nothing outside them.
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/inject.sh
12
- source "$SDK/lib/inject.sh"
13
- # shellcheck source=../lib/queue.sh
14
- source "$KIT/lib/queue.sh"
15
-
16
- mode="emit"; file=""
17
- while (($#)); do
18
- case "$1" in
19
- --emit) mode="emit"; shift ;;
20
- --write) mode="write"; shift ;;
21
- -h|--help) sed -n '3,6p' "${BASH_SOURCE[0]}" | sed 's/^# \{0,1\}//'; exit 0 ;;
22
- -*) echo "roadmap: unknown option: $1" >&2; exit 2 ;;
23
- *) file="$1"; shift ;;
24
- esac
25
- done
26
-
27
- FILE="${file:-$QUEUE_KIT_QUEUE_FILE}"
28
- [[ -f "$FILE" ]] || { echo "roadmap: queue file not found: $FILE" >&2; exit 2; }
29
- [[ ${#QUEUE_KIT_HORIZONS[@]} -gt 0 ]] \
30
- || { echo "roadmap: QUEUE_KIT_HORIZONS is empty — no roadmap vocabulary is configured" >&2; exit 2; }
31
-
32
- entries="$(queue_roadmap_entries "$FILE")"; st=$?
33
- [[ "$st" -eq 0 ]] || { echo "roadmap: the queue parse failed (exit $st)" >&2; exit 2; }
34
-
35
- # spec: queue-kit/SPEC.md §bin/roadmap.sh — every configured horizon gets its heading whether or not the queue fills it: an empty horizon is information, and a section that vanishes when it empties reads as a page that forgot it
36
- emit_body() {
37
- local first=1 h n ntags fieldv slug nsum summary track
38
- for h in "${QUEUE_KIT_HORIZONS[@]}"; do
39
- [[ "$first" -eq 1 ]] || printf '\n'
40
- first=0
41
- printf '### %s\n\n' "$h"
42
- n=0
43
- while IFS=$'\t' read -r ntags fieldv slug nsum summary; do
44
- [[ -n "$slug" ]] || continue
45
- [[ "$ntags" == 1 ]] || continue
46
- [[ "$fieldv" == "$h/"* ]] || continue
47
- track="${fieldv#*/}"
48
- [[ -n "$track" && "$track" != */* ]] || continue
49
- # spec: queue-kit/SPEC.md §bin/roadmap.sh — the whitelist: an entry with no single declaration contributes no prose, so unmarked body text can never reach the page even when the gate is bypassed
50
- [[ "$nsum" == 1 && -n "$summary" ]] || continue
51
- printf -- '- **`%s`** *(%s)* — %s\n' "$slug" "$track" "$summary"
52
- n=$((n + 1))
53
- done <<< "$entries"
54
- [[ "$n" -gt 0 ]] || printf '%s\n' "_Nothing is queued under this horizon._"
55
- done
56
- # comment-tier-exempt: load-bearing blank — kramdown ends a list only on a blank
57
- # line, else the :end marker abuts the last bullet and is absorbed into that <li>;
58
- # command substitution strips it on both sides, so the byte-compare still holds.
59
- printf '\n'
60
- }
61
-
62
- if [[ "$mode" == emit ]]; then
63
- emit_body
64
- exit 0
65
- fi
66
-
67
- [[ -n "$QUEUE_KIT_ROADMAP_FILE" ]] \
68
- || { echo "roadmap: --write needs QUEUE_KIT_ROADMAP_FILE; it is empty (no projection page configured)" >&2; exit 2; }
69
- [[ -f "$QUEUE_KIT_ROADMAP_FILE" ]] \
70
- || { echo "roadmap: projection page not found: $QUEUE_KIT_ROADMAP_FILE" >&2; exit 2; }
71
-
72
- BEGIN="<!-- ${QUEUE_KIT_ROADMAP_MARKER}:begin -->"
73
- END="<!-- ${QUEUE_KIT_ROADMAP_MARKER}:end -->"
74
- action="$(emit_body | inject_marker_block "$QUEUE_KIT_ROADMAP_FILE" "$BEGIN" "$END")" \
75
- || { echo "roadmap: failed to write the roadmap block into $QUEUE_KIT_ROADMAP_FILE" >&2; exit 2; }
76
- echo "roadmap: $action the $QUEUE_KIT_ROADMAP_MARKER block in $QUEUE_KIT_ROADMAP_FILE"
@@ -1,64 +0,0 @@
1
- #!/usr/bin/env bash
2
- # graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
3
- # install: zero-config
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)
5
- #
6
- # usage: check-queue-prose-precondition.sh [queue-file]
7
- # Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE); the forward
8
- # trigger set is QUEUE_KIT_PRECONDITION_REGEX (matched against lowercased prose).
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
- [[ -f "$FILE" ]] || { echo "check-queue-prose-precondition: file not found: $FILE" >&2; exit 2; }
20
-
21
- out="$(awk -v activere="$QUEUE_ACTIVE_RE" -v sectre="$QUEUE_SECTION_RE" -v trig="$QUEUE_KIT_PRECONDITION_REGEX" '
22
- function flush() {
23
- if (startln == 0) return
24
- b = tolower(body)
25
- gsub(/\[[^]]*\]/, " ", b) # drop bracket tags/links from the prose
26
- gsub(/(once|when|after)[^.,;]*(landed|shipped|merged|resolved|completed|was [a-z]+ed)/, " ", b) # strip past-tense narration
27
- if (b ~ trig && !hasblock)
28
- printf "%d\t%s\n", startln, lead
29
- startln = 0; body = ""; lead = ""; hasblock = 0
30
- }
31
- $0 ~ activere { inq = 1; flush(); next }
32
- $0 ~ sectre { inq = 0; flush(); next }
33
- !inq { next }
34
- /^-[[:space:]]/ { # a new top-level active entry
35
- flush()
36
- startln = FNR; lead = $0; body = $0
37
- if ($0 ~ /\[blocked-by:/ || $0 ~ /\[precondition-ok:/) hasblock = 1
38
- next
39
- }
40
- {
41
- if (startln == 0) next
42
- body = body " " $0
43
- if ($0 ~ /\[blocked-by:/ || $0 ~ /\[precondition-ok:/) hasblock = 1
44
- }
45
- END { flush() }
46
- ' "$FILE")"; st=$?
47
- fail_closed "$st" QUEUE-PROSE-PRECONDITION awk
48
-
49
- if [[ -n "$out" ]]; then
50
- echo "check-queue-prose-precondition: active entry states a forward precondition in prose"
51
- echo "but carries no [blocked-by:] tag — selection trusts tags, so it is latently blocked"
52
- echo "yet mechanically pickable as 'first unblocked':"
53
- while IFS=$'\t' read -r ln lead; do
54
- [[ -n "$ln" ]] || continue
55
- echo " $FILE:$ln: $lead"
56
- done <<< "$out"
57
- echo " help: tag the real blocker '[blocked-by: <slug>]', or move the entry to the"
58
- echo " Deferred section, or rephrase past-tense if the precondition is already"
59
- echo " met, or opt out with '[precondition-ok: <reason>]' anywhere in the entry."
60
- exit 1
61
- fi
62
-
63
- echo "QUEUE-PROSE-PRECONDITION: clean (no untagged forward precondition in the active sections of $FILE)"
64
- exit 0
@@ -1,111 +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
- # install: on-surface
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
5
- #
6
- # usage: check-roadmap-fresh.sh [projection-file] [emit-file]
7
- # bare: compare the marker block in QUEUE_KIT_ROADMAP_FILE against `roadmap.sh --emit`.
8
- # two args: compare the block extracted from projection-file to a pre-baked emit-file (hermetic fixture).
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
- PROJECTION="${1:-$QUEUE_KIT_ROADMAP_FILE}"
19
- EMIT_SRC="${2:-}"
20
-
21
- # 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
22
- if [[ -z "$PROJECTION" ]]; then
23
- echo "ROADMAP-FRESH: clean (QUEUE_KIT_ROADMAP_FILE empty — this consumer publishes no roadmap)"
24
- exit 0
25
- fi
26
-
27
- [[ -f "$QUEUE_KIT_QUEUE_FILE" ]] \
28
- || { echo "check-roadmap-fresh: queue file not found: $QUEUE_KIT_QUEUE_FILE" >&2; exit 2; }
29
-
30
- # 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
31
- horizons=" ${QUEUE_KIT_HORIZONS[*]+"${QUEUE_KIT_HORIZONS[*]}"} "
32
- tracks=" ${QUEUE_KIT_TRACKS[*]+"${QUEUE_KIT_TRACKS[*]}"} "
33
- bad=()
34
- tagged=0
35
- while IFS=$'\t' read -r ntags fieldv slug nsum _summary; do
36
- [[ -n "$slug" ]] || continue
37
-
38
- # 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
39
- if [[ "$ntags" -eq 0 ]]; then
40
- 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")
41
- continue
42
- fi
43
- tagged=$((tagged + 1))
44
- # 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
45
- [[ "$nsum" -eq 1 ]] \
46
- || bad+=("$slug: is [roadmap:]-tagged but carries $nsum roadmap-summary: declaration(s); exactly one is required")
47
-
48
- if [[ "$ntags" -ne 1 ]]; then
49
- bad+=("$slug: carries $ntags [roadmap:] tags; an entry takes at most one")
50
- continue
51
- fi
52
- if [[ "$fieldv" != */* || "$fieldv" == */*/* ]]; then
53
- bad+=("$slug: field '$fieldv' does not parse as <horizon>/<track>")
54
- continue
55
- fi
56
- h="${fieldv%%/*}"; t="${fieldv#*/}"
57
- [[ "$horizons" == *" $h "* ]] || bad+=("$slug: unknown horizon '$h'")
58
- [[ "$tracks" == *" $t "* ]] || bad+=("$slug: unknown track '$t'")
59
- done < <(queue_roadmap_entries "$QUEUE_KIT_QUEUE_FILE")
60
-
61
- if [[ ${#bad[@]} -gt 0 ]]; then
62
- echo "check-roadmap-fresh: invalid roadmap curation in $QUEUE_KIT_QUEUE_FILE"
63
- echo "(an unconfigured value or an unpaired marking drops the entry off the page"
64
- echo "with nothing else to notice):"
65
- for b in "${bad[@]}"; do echo " $b"; done
66
- echo " help: an entry joins the page with a [roadmap: <horizon>/<track>] tag on its lead"
67
- echo " line, both values drawn from QUEUE_KIT_HORIZONS / QUEUE_KIT_TRACKS, plus"
68
- echo " exactly one indented 'roadmap-summary: <text>' declaration in its body —"
69
- echo " the only prose the public page prints (queue-kit/SPEC.md §bin/roadmap.sh)."
70
- exit 1
71
- fi
72
-
73
- BEGIN="<!-- ${QUEUE_KIT_ROADMAP_MARKER}:begin -->"
74
- END="<!-- ${QUEUE_KIT_ROADMAP_MARKER}:end -->"
75
-
76
- # 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
77
- [[ -f "$PROJECTION" ]] || { echo "check-roadmap-fresh: projection not found: $PROJECTION" >&2; exit 2; }
78
- nb="$(grep -cF -- "$BEGIN" "$PROJECTION")"
79
- ne="$(grep -cF -- "$END" "$PROJECTION")"
80
- [[ "$nb" -eq 1 && "$ne" -eq 1 ]] || {
81
- echo "check-roadmap-fresh: $PROJECTION needs exactly one '$BEGIN' + '$END' pair (found $nb and $ne)" >&2
82
- exit 2
83
- }
84
-
85
- block="$(awk -v b="$BEGIN" -v e="$END" '
86
- $0 == b { inb = 1; next }
87
- $0 == e { inb = 0; next }
88
- inb { print }
89
- ' "$PROJECTION")"; st=$?
90
- fail_closed "$st" check-roadmap-fresh awk
91
-
92
- if [[ -n "$EMIT_SRC" ]]; then
93
- [[ -f "$EMIT_SRC" ]] || { echo "check-roadmap-fresh: emit source not found: $EMIT_SRC" >&2; exit 2; }
94
- emitted="$(cat "$EMIT_SRC")"; st=$?
95
- fail_closed "$st" check-roadmap-fresh cat
96
- else
97
- GEN="$KIT/bin/roadmap.sh"
98
- [[ -x "$GEN" ]] || { echo "check-roadmap-fresh: emitter not found: $GEN" >&2; exit 2; }
99
- emitted="$(bash "$GEN" --emit)"; st=$?
100
- fail_closed "$st" check-roadmap-fresh roadmap
101
- fi
102
-
103
- if [[ "$block" != "$emitted" ]]; then
104
- echo "check-roadmap-fresh: the $QUEUE_KIT_ROADMAP_MARKER block in $PROJECTION is stale vs bin/roadmap.sh:"
105
- diff <(printf '%s\n' "$emitted") <(printf '%s\n' "$block") | head -20 || true
106
- echo " help: regenerate — bash queue-kit/bin/roadmap.sh --write"
107
- exit 1
108
- fi
109
-
110
- 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)"
111
- exit 0
@@ -1,81 +0,0 @@
1
- #!/usr/bin/env bash
2
- # graph: couples=docs/CNAME dir=one valve=none tier=precommit trigger=*
3
- # install: on-surface
4
- # spec: site-kit/SPEC.md §check-docs-cname-parity — the docs/CNAME host is the single gated source of truth for the docs host; no tracked file names a configured host alias other than that host in a URL
5
- #
6
- # usage: check-docs-cname-parity.sh [scan-root] [cname-file] [config-file]
7
- # defaults SITE_KIT_SCAN_ROOT / SITE_KIT_CNAME; config-file overrides
8
- # SITE_KIT_CONFIG_FILE so a fixture supplies its own SITE_KIT_ALIASES.
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
-
16
- SCANARG="${1:-}"; CNAMEARG="${2:-}"; CONFIGARG="${3:-}"
17
- [[ -n "$CONFIGARG" ]] && export SITE_KIT_CONFIG_FILE="$CONFIGARG"
18
- # shellcheck source=../lib/site.sh
19
- source "$KIT/lib/site.sh"
20
-
21
- SCANROOT="${SCANARG:-$SITE_KIT_SCAN_ROOT}"; SCANROOT="${SCANROOT%/}"
22
- CNAME="${CNAMEARG:-$SITE_KIT_CNAME}"
23
-
24
- git rev-parse --git-dir >/dev/null 2>&1 || {
25
- echo "check-docs-cname-parity: not a git repository — cannot enumerate tracked files" >&2; exit 2; }
26
- [[ -f "$CNAME" ]] || { echo "check-docs-cname-parity: CNAME not found: $CNAME" >&2; exit 2; }
27
-
28
- mapfile -t hlines < <(grep -v '^[[:space:]]*$' "$CNAME")
29
- [[ ${#hlines[@]} -eq 1 ]] || {
30
- echo "check-docs-cname-parity: $CNAME must hold exactly one host line (found ${#hlines[@]})" >&2; exit 2; }
31
- H="${hlines[0]//[[:space:]]/}"
32
- [[ -n "$H" ]] || { echo "check-docs-cname-parity: empty host in $CNAME" >&2; exit 2; }
33
-
34
- declare -A IS_ALIAS=()
35
- for a in "${SITE_KIT_ALIASES[@]+"${SITE_KIT_ALIASES[@]}"}"; do IS_ALIAS["$a"]=1; done
36
-
37
- exempt_path() { # $1=path — matches any SITE_KIT_EXEMPT_PATHS glob
38
- local p="$1" g
39
- for g in "${SITE_KIT_EXEMPT_PATHS[@]+"${SITE_KIT_EXEMPT_PATHS[@]}"}"; do
40
- # shellcheck disable=SC2053 # $g is the exempt glob, matched unquoted on purpose
41
- [[ "$p" == $g ]] && return 0
42
- done
43
- return 1
44
- }
45
-
46
- listing="$(git ls-files -- "$SCANROOT")"; st=$?
47
- fail_closed "$st" DOCS-CNAME-PARITY git-ls-files
48
-
49
- files=()
50
- while IFS= read -r path; do
51
- [[ -n "$path" ]] || continue
52
- gate_path_pruned "$path" && continue
53
- exempt_path "$path" && continue
54
- [[ -f "$path" ]] && files+=("$path")
55
- done <<< "$listing"
56
-
57
- if [[ ${#files[@]} -eq 0 ]]; then
58
- echo "DOCS-CNAME-PARITY: clean (0 tracked file(s) under $SCANROOT; docs host is '$H')"
59
- exit 0
60
- fi
61
-
62
- matches="$(grep -IHnoE '://[A-Za-z0-9.-]+' -- "${files[@]}")"; gst=$?
63
- [[ "$gst" -le 1 ]] || fail_closed "$gst" DOCS-CNAME-PARITY grep
64
-
65
- bad=()
66
- while IFS= read -r m; do
67
- [[ -n "$m" ]] || continue
68
- host="${m##*//}"
69
- [[ -n "${IS_ALIAS[$host]:-}" && "$host" != "$H" ]] || continue
70
- bad+=("${m%:://*}: alias '$host' — docs host is '$H'")
71
- done <<< "$matches"
72
-
73
- if [[ ${#bad[@]} -gt 0 ]]; then
74
- echo "check-docs-cname-parity: tracked file(s) cite a configured host alias other than the docs/CNAME host:"
75
- printf ' %s\n' "${bad[@]}"
76
- echo " help: point the URL at the docs/CNAME host '$H' (a rename is a one-file edit to the CNAME"
77
- echo " that this gate then enumerates); SITE_KIT_EXEMPT_PATHS sites are exempt."
78
- exit 1
79
- fi
80
- echo "DOCS-CNAME-PARITY: clean (${#files[@]} tracked file(s) under $SCANROOT; no alias but the docs host '$H' cited in a URL)"
81
- exit 0