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
@@ -0,0 +1,215 @@
1
+ #!/usr/bin/env bash
2
+ # Cross-implementation parity for the one derivation queue-kit holds twice: the
3
+ # shell library queue-kit/lib/queue.sh and its compiled counterpart in
4
+ # native/src/queue.rs. Seven live consumers still source the library, so the
5
+ # duplication is permanent and gets criterion 6's machine-held disposition rather
6
+ # than the deletion disposition a ported primitive takes
7
+ # (gate-sdk/SPEC.md §The port-candidate criteria, criterion 6).
8
+ #
9
+ # The two sides share no representation — the shell derives ERE strings and an
10
+ # array, the crate derives a Sections value and free predicates — so what is
11
+ # compared is *classification* over one canned corpus, never the derived literals
12
+ # (queue-kit/SPEC.md §The queue format). A against B directly, with no committed
13
+ # expected file: a maintained golden would be a third copy to drift, and the
14
+ # failure this exists to catch is one side edited without the other.
15
+ #
16
+ # Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
17
+ set -uo pipefail
18
+ source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
19
+ # shellcheck source=../../gate-sdk/lib/gate.sh
20
+ source "$GATE_SDK_TEST_LIB_DIR/gate.sh"
21
+
22
+ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # queue-kit/
23
+ SANDBOX="$(mktemp -d)"
24
+ trap 'rm -rf "$SANDBOX"' EXIT
25
+
26
+ fails=0
27
+ checks=0
28
+
29
+ # spec: gate-sdk/SPEC.md §check-gate-binary-fresh — a declaration is not a dispatch: a
30
+ # consumer on an uncovered platform vendors the shell library with no artifact behind it, and
31
+ # a parity assertion there would be vacuous rather than true. The skip is declared on the
32
+ # clean line, in the shape the port's omitted-member roster uses, so a reader can tell "no
33
+ # binary here" from "parity holds". A binary that is *present* and refuses the arm is a stale
34
+ # binary rather than an absent one, so it fails here and check-gate-binary-fresh names it.
35
+ BIN="$(gate_native_bin)"
36
+ if [[ ! -x "$BIN" ]]; then
37
+ echo "queue-lib-parity.test: ok (0 assertions; skipped — no gate binary at $BIN, so nothing dispatches to the compiled twin)"
38
+ exit 0
39
+ fi
40
+
41
+ # The corpus lives here rather than in a directory beside this runner because
42
+ # run-gate-tests.sh globs <tests-dir>/*/ as fixture *pairs*: a corpus directory
43
+ # there is a harness error, not a fixture. It exercises every branch each side
44
+ # has — a bold lead-in in each task section, a lessons line, a bare-slug done
45
+ # bullet, and a bullet in a section that is none of these — and it is driven
46
+ # twice, with the icebox configured and unconfigured, because the icebox
47
+ # matchers degrade to the empty string rather than to "every section".
48
+ cat >"$SANDBOX/TASK-QUEUE.md" <<'EOF'
49
+ # TASK-QUEUE.md
50
+
51
+ ## Iteration: parity-corpus
52
+
53
+ ## New Features
54
+
55
+ - **feat-a** — a bold lead-in in the first active section.
56
+ - **sub-a** — an indented sub-task carries the same grammar.
57
+
58
+ ## Technical Debt
59
+
60
+ - **debt-a** — a bold lead-in in the second active section.
61
+
62
+ ## Deferred
63
+
64
+ - **defer-a** — a bold lead-in in the deferred section.
65
+
66
+ ## Chill
67
+
68
+ - **chill-a** — a bold lead-in in the section the icebox knob names.
69
+
70
+ ## Done
71
+
72
+ - done-a
73
+ - **done-b** — a Done entry wearing an active entry's shape.
74
+
75
+ ## Lessons Learned
76
+
77
+ - **l1** [attend] — the lessons heading is fixed spelling, no knob.
78
+
79
+ ## Appendix
80
+
81
+ - **appendix-a** — a bullet in a section that is none of the above.
82
+ EOF
83
+
84
+ cat >"$SANDBOX/icebox-config.sh" <<'EOF'
85
+ QUEUE_KIT_ICEBOX_SECTION="Chill"
86
+ EOF
87
+ : >"$SANDBOX/no-icebox-config.sh"
88
+
89
+ # The shell side's answer is what a consumer gets when it applies the library's
90
+ # exported globals — the same awk the bin/ scripts run, including the explicit
91
+ # `iceboxre != ""` guard an unset icebox knob requires (queue-kit/SPEC.md
92
+ # §The icebox tier). An unguarded `$0 ~ ""` matches every line in awk, which is
93
+ # exactly the degradation-to-"every section" the guard exists to stop.
94
+ cat >"$SANDBOX/classify.awk" <<'EOF'
95
+ function add(v, w) { return v (v == "" ? "" : ",") w }
96
+ {
97
+ v = ""
98
+ if ($0 ~ sectre) v = add(v, "section")
99
+ if ($0 ~ activere) v = add(v, "active")
100
+ if ($0 ~ deferredre) v = add(v, "deferred")
101
+ if (iceboxre != "" && $0 ~ iceboxre) v = add(v, "icebox")
102
+ if ($0 ~ taskre) v = add(v, "task")
103
+ if ($0 ~ lessonsre) v = add(v, "lessons")
104
+ b = "-"
105
+ if ($0 ~ /^[[:space:]]*-[[:space:]]+\*\*[a-z0-9][a-z0-9-]*\*\*/) {
106
+ match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/)
107
+ b = substr($0, RSTART + 2, RLENGTH - 4)
108
+ }
109
+ if (v == "" && b == "-") next
110
+ printf "line\t%d\t%s\t%s\n", NR, (v == "" ? "-" : v), b
111
+ }
112
+ EOF
113
+
114
+ shell_side() { # $1=config file $2=queue file
115
+ (
116
+ export QUEUE_KIT_CONFIG_FILE="$1"
117
+ # shellcheck source=../lib/queue.sh
118
+ source "$DIR/lib/queue.sh"
119
+ printf 'task-sections'
120
+ printf '\t%s' "${QUEUE_TASK_SECTIONS[@]}"
121
+ printf '\n'
122
+ awk -v sectre="$QUEUE_SECTION_RE" -v activere="$QUEUE_ACTIVE_RE" \
123
+ -v deferredre="$QUEUE_DEFERRED_RE" -v iceboxre="$QUEUE_ICEBOX_RE" \
124
+ -v taskre="$QUEUE_TASK_RE" -v lessonsre="$QUEUE_LESSONS_RE" \
125
+ -f "$SANDBOX/classify.awk" "$2"
126
+ queue_live_slugs "$2" | awk '{ print "live\t" $0 }'
127
+ )
128
+ }
129
+
130
+ # The compiled side is reached through the resolved command rather than a path,
131
+ # and every knob it reads crosses the config bridge as a resolved value exactly
132
+ # as a dispatched gate's does (gate-sdk/SPEC.md §lib/gate.sh): the values are
133
+ # taken from the shell library that computed them, so no default is duplicated
134
+ # and the seam this arm crosses is the one every gate already crosses.
135
+ native_side() { # $1=config file $2=queue file
136
+ (
137
+ export QUEUE_KIT_CONFIG_FILE="$1"
138
+ # shellcheck source=../lib/queue.sh
139
+ source "$DIR/lib/queue.sh"
140
+ local IFS=$'\t'
141
+ env "GATE_SDK_KNOB_QUEUE_KIT_ACTIVE_SECTIONS=${QUEUE_KIT_ACTIVE_SECTIONS[*]}" \
142
+ "GATE_SDK_KNOB_QUEUE_KIT_DEFERRED_SECTION=$QUEUE_KIT_DEFERRED_SECTION" \
143
+ "GATE_SDK_KNOB_QUEUE_KIT_ICEBOX_SECTION=$QUEUE_KIT_ICEBOX_SECTION" \
144
+ "$BIN" --queue-parity "$2"
145
+ )
146
+ }
147
+
148
+ compare() { # $1=label $2=config file
149
+ local a b arc brc
150
+ checks=$((checks + 1))
151
+ a="$(shell_side "$2" "$SANDBOX/TASK-QUEUE.md")"; arc=$?
152
+ b="$(native_side "$2" "$SANDBOX/TASK-QUEUE.md")"; brc=$?
153
+ if [[ "$arc" -ne 0 || "$brc" -ne 0 ]]; then
154
+ echo " FAIL [$1]: a side could not report (shell exit $arc, binary exit $brc)"
155
+ fails=$((fails + 1))
156
+ return
157
+ fi
158
+ if [[ -z "$a" ]]; then
159
+ echo " FAIL [$1]: the shell side classified nothing — a vacuous agreement, not a parity hold"
160
+ fails=$((fails + 1))
161
+ return
162
+ fi
163
+ if [[ "$a" != "$b" ]]; then
164
+ echo " FAIL [$1]: the two implementations disagree about the same queue file:"
165
+ diff <(printf '%s\n' "$a") <(printf '%s\n' "$b") | sed 's/^/ /'
166
+ fails=$((fails + 1))
167
+ fi
168
+ }
169
+
170
+ compare "icebox-configured" "$SANDBOX/icebox-config.sh"
171
+ compare "icebox-unconfigured" "$SANDBOX/no-icebox-config.sh"
172
+
173
+ # The corpus must actually reach the branches the comparison is bought for: an
174
+ # agreement over a corpus that classifies nothing is the vacuity this unit exists
175
+ # to end, arriving one layer up. Each of these is read off the shell side, the
176
+ # one that owns the globals under obligation.
177
+ corpus="$(shell_side "$SANDBOX/icebox-config.sh" "$SANDBOX/TASK-QUEUE.md")"
178
+ T=$'\t'
179
+ have() { # $1=label $2=grep -E pattern
180
+ checks=$((checks + 1))
181
+ grep -qE "$2" <<<"$corpus" || {
182
+ echo " FAIL [$1]: the corpus no longer exercises this branch"
183
+ fails=$((fails + 1))
184
+ }
185
+ }
186
+ have "corpus-active" "^line${T}[0-9]+${T}section,active,task${T}-$"
187
+ have "corpus-deferred" "^line${T}[0-9]+${T}section,deferred,task${T}-$"
188
+ have "corpus-icebox" "^line${T}[0-9]+${T}section,icebox,task${T}-$"
189
+ have "corpus-lessons" "^line${T}[0-9]+${T}section,lessons${T}-$"
190
+ have "corpus-plain" "^line${T}[0-9]+${T}section${T}-$"
191
+ have "corpus-bullet" "^line${T}[0-9]+${T}-${T}feat-a$"
192
+ have "corpus-done" "^line${T}[0-9]+${T}-${T}done-b$"
193
+ have "corpus-live" "^live${T}chill-a$"
194
+
195
+ # The discriminating case for the icebox degradation: unconfigured, the icebox
196
+ # section must classify as a plain section on both sides — never as every line.
197
+ corpus_off="$(shell_side "$SANDBOX/no-icebox-config.sh" "$SANDBOX/TASK-QUEUE.md")"
198
+ lack() { # $1=label $2=grep -E pattern $3=what the hit would mean
199
+ checks=$((checks + 1))
200
+ if grep -qE "$2" <<<"$corpus_off"; then
201
+ echo " FAIL [$1]: $3"
202
+ fails=$((fails + 1))
203
+ fi
204
+ }
205
+ lack "icebox-degrades-class" "^line${T}[0-9]+${T}[a-z,]*icebox" \
206
+ "an unconfigured icebox still classified a line as icebox"
207
+ lack "icebox-degrades-task" "^live${T}chill-a$" \
208
+ "an unconfigured icebox left its section a live task section"
209
+
210
+ if [[ "$fails" -gt 0 ]]; then
211
+ echo "queue-lib-parity.test: $fails of $checks assertion(s) failed"
212
+ exit 1
213
+ fi
214
+ echo "queue-lib-parity.test: ok ($checks assertions; one helper and seven globals held to the compiled twin over one corpus, icebox configured and not)"
215
+ exit 0
@@ -1,19 +1,25 @@
1
1
  #!/usr/bin/env bash
2
- # Behavioral test of check-roadmap-fresh assertion B and the bin/roadmap.sh emit
2
+ # Behavioral test of check-roadmap-fresh assertion B and the roadmap arm's emit
3
3
  # grammar. The gate's good/bad pair proves assertion A (the byte-compare), which
4
4
  # is the one axis a single pair can carry; B's rejection shapes and the emitter's
5
5
  # projection rules are driven directly here. Config is isolated via
6
6
  # QUEUE_KIT_CONFIG_FILE so the repo's queue-config.sh does not leak in.
7
7
  #
8
+ # Both halves are compiled now, so both are driven through their declared entry
9
+ # points: gate_run resolves the gate's descriptor and its config bridge, and the
10
+ # battery runner's --emit front-end resolves the arm's. The sandbox is a git repo
11
+ # because that front-end anchors at the toplevel before it dispatches.
12
+ #
8
13
  # Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
9
14
  set -uo pipefail
10
15
  source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
11
16
 
12
17
  DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # queue-kit/
13
- GATE="$DIR/checks/check-roadmap-fresh.sh"
14
- EMIT="$DIR/bin/roadmap.sh"
18
+ CHECKS="$DIR/checks"
19
+ FRONTEND="$DIR/../gate-sdk/bin/run-gates.sh"
15
20
  SANDBOX="$(mktemp -d)"
16
21
  trap 'rm -rf "$SANDBOX"' EXIT
22
+ git -C "$SANDBOX" init -q
17
23
 
18
24
  cat >"$SANDBOX/config.sh" <<'EOF'
19
25
  QUEUE_KIT_HORIZONS=(soon someday)
@@ -42,14 +48,18 @@ queue() { # $1=the entry lead line, $2=optional body line(s) — writes a minim
42
48
  }
43
49
  decl=' roadmap-summary: A sentence an author marked for the public page.'
44
50
 
51
+ emit() { # $@ = the arm's own argv tail
52
+ ( cd "$SANDBOX" && bash "$FRONTEND" --emit roadmap "$@" 2>&1 )
53
+ }
54
+
45
55
  # The projection page is kept fresh throughout, so every verdict below is
46
56
  # assertion B's and never assertion A's.
47
57
  refresh() {
48
58
  printf 'framing\n\n<!-- roadmap:begin -->\n<!-- roadmap:end -->\n' >"$SANDBOX/ROADMAP.md"
49
- ( cd "$SANDBOX" && bash "$EMIT" --write >/dev/null )
59
+ emit --write >/dev/null
50
60
  }
51
61
 
52
- run_gate() { ( cd "$SANDBOX" && bash "$GATE" 2>&1 ); }
62
+ run_gate() { ( cd "$SANDBOX" && gate_run check-roadmap-fresh "$CHECKS" 2>&1 ); }
53
63
 
54
64
  # Every field valid, one declaration -> clean.
55
65
  queue '- **ok-thing** [roadmap: soon/alpha] — a valid entry.' "$decl"
@@ -131,7 +141,7 @@ want "both-horizon" "$out" "unknown horizon 'eventually'"
131
141
  printf ' roadmap-summary: A deferred rung, said publicly.\n'
132
142
  printf '\n## Done\n\n- shipped-thing\n\n## Lessons Learned\n'
133
143
  } >"$SANDBOX/TASK-QUEUE.md"
134
- out="$( cd "$SANDBOX" && bash "$EMIT" --emit )"
144
+ out="$(emit)"
135
145
  want "emit-declared" "$out" '- **`live-thing`** *(alpha)* — The public sentence, and only this.'
136
146
  absent "emit-leadprose" "$out" "LEADPROSE"
137
147
  absent "emit-bodyprose" "$out" "BODYPROSE"
@@ -143,21 +153,21 @@ want "emit-heading" "$out" "### soon"
143
153
  # The whitelist holds even with the gate bypassed: a tagged entry whose
144
154
  # declaration is missing contributes no bullet at all rather than a naked one.
145
155
  queue '- **unmarked** [roadmap: soon/alpha] — LEADPROSE only, nothing marked.' ' BODYPROSE here too.'
146
- out="$( cd "$SANDBOX" && bash "$EMIT" --emit )"
156
+ out="$(emit)"
147
157
  absent "bypass-slug" "$out" "unmarked"
148
158
  absent "bypass-leadprose" "$out" "LEADPROSE"
149
159
  absent "bypass-bodyprose" "$out" "BODYPROSE"
150
160
 
151
161
  # An empty horizon still gets its heading, carrying the placeholder.
152
162
  queue '- **only-soon** [roadmap: soon/alpha] — the only entry.' "$decl"
153
- out="$( cd "$SANDBOX" && bash "$EMIT" --emit )"
163
+ out="$(emit)"
154
164
  want "empty-heading" "$out" "### someday"
155
165
  want "empty-placeholder" "$out" "_Nothing is queued under this horizon._"
156
166
 
157
167
  # The written block ends on a blank line before the :end marker — without it the
158
168
  # Pages parser leaves the list open and renders the marker inside the last <li>.
159
169
  printf 'framing\n\n<!-- roadmap:begin -->\n<!-- roadmap:end -->\n' >"$SANDBOX/ROADMAP.md"
160
- ( cd "$SANDBOX" && bash "$EMIT" --write >/dev/null )
170
+ emit --write >/dev/null
161
171
  if ! grep -B1 -F -- '<!-- roadmap:end -->' "$SANDBOX/ROADMAP.md" | head -1 | grep -qx ''; then
162
172
  echo " FAIL [write-trailing-blank]: no blank line before the :end marker:"
163
173
  printf ' %s\n' "$(cat "$SANDBOX/ROADMAP.md")"
@@ -166,7 +176,7 @@ fi
166
176
 
167
177
  # --write leaves every byte outside the markers untouched.
168
178
  printf 'KEEP-ABOVE\n\n<!-- roadmap:begin -->\nstale\n<!-- roadmap:end -->\n\nKEEP-BELOW\n' >"$SANDBOX/ROADMAP.md"
169
- ( cd "$SANDBOX" && bash "$EMIT" --write >/dev/null )
179
+ emit --write >/dev/null
170
180
  page="$(cat "$SANDBOX/ROADMAP.md")"
171
181
  want "write-above" "$page" "KEEP-ABOVE"
172
182
  want "write-below" "$page" "KEEP-BELOW"
@@ -177,7 +187,7 @@ cat >"$SANDBOX/noroadmap.sh" <<'EOF'
177
187
  QUEUE_KIT_HORIZONS=(soon someday)
178
188
  QUEUE_KIT_TRACKS=(alpha beta)
179
189
  EOF
180
- out="$( cd "$SANDBOX" && QUEUE_KIT_CONFIG_FILE="$SANDBOX/noroadmap.sh" bash "$GATE" 2>&1 )"
190
+ out="$( cd "$SANDBOX" && QUEUE_KIT_CONFIG_FILE="$SANDBOX/noroadmap.sh" gate_run check-roadmap-fresh "$CHECKS" 2>&1 )"
181
191
  code "skip-exit" "$?" 0
182
192
  want "skip" "$out" "this consumer publishes no roadmap"
183
193
 
@@ -185,7 +195,7 @@ want "skip" "$out" "this consumer publishes no roadmap"
185
195
  cat >"$SANDBOX/halfconfig.sh" <<'EOF'
186
196
  QUEUE_KIT_HORIZONS=(soon someday)
187
197
  EOF
188
- out="$( cd "$SANDBOX" && QUEUE_KIT_CONFIG_FILE="$SANDBOX/halfconfig.sh" bash "$GATE" 2>&1 )"
198
+ out="$( cd "$SANDBOX" && QUEUE_KIT_CONFIG_FILE="$SANDBOX/halfconfig.sh" gate_run check-roadmap-fresh "$CHECKS" 2>&1 )"
189
199
  code "half-exit" "$?" 2
190
200
  want "half" "$out" "QUEUE_KIT_TRACKS is empty"
191
201
 
@@ -74,14 +74,12 @@ QUEUE_DEFERRED_RE="^## ${QUEUE_KIT_DEFERRED_SECTION}[[:space:]]*$"
74
74
  # spec: queue-kit/SPEC.md §The icebox tier — an unset knob leaves a regex nothing can match, so every icebox reader degrades to "no icebox" rather than to "every section"
75
75
  # shellcheck disable=SC2034 # consumed by sourcing gates, never within this lib
76
76
  QUEUE_ICEBOX_RE="${QUEUE_KIT_ICEBOX_SECTION:+^## ${QUEUE_KIT_ICEBOX_SECTION}[[:space:]]*$}"
77
- # shellcheck disable=SC2034 # consumed by sourcing gates, never within this lib
78
- QUEUE_DONE_RE="^## ${QUEUE_KIT_DONE_SECTION}[[:space:]]*$"
79
- _qk_task_sections=("${QUEUE_KIT_ACTIVE_SECTIONS[@]}" "$QUEUE_KIT_DEFERRED_SECTION")
77
+ # spec: queue-kit/SPEC.md §lib/queue.sh — the task-section set in configured order, the one composition the task regex and every per-section reader share
78
+ QUEUE_TASK_SECTIONS=("${QUEUE_KIT_ACTIVE_SECTIONS[@]}" "$QUEUE_KIT_DEFERRED_SECTION")
80
79
  # spec: queue-kit/SPEC.md §The icebox tier — the icebox is a *live* task section: joining the shared task regex is what makes eviction a conserved move and carries slug uniqueness, blocker resolution, the living-prose contract and the lead-line guard onto the tier with no gate edit
81
- [[ -n "$QUEUE_KIT_ICEBOX_SECTION" ]] && _qk_task_sections+=("$QUEUE_KIT_ICEBOX_SECTION")
80
+ [[ -n "$QUEUE_KIT_ICEBOX_SECTION" ]] && QUEUE_TASK_SECTIONS+=("$QUEUE_KIT_ICEBOX_SECTION")
82
81
  # shellcheck disable=SC2034 # consumed by sourcing gates, never within this lib
83
- QUEUE_TASK_RE="^## ($(queue_alt "${_qk_task_sections[@]}"))[[:space:]]*$"
84
- unset _qk_task_sections
82
+ QUEUE_TASK_RE="^## ($(queue_alt "${QUEUE_TASK_SECTIONS[@]}"))[[:space:]]*$"
85
83
  # shellcheck disable=SC2034 # consumed by sourcing gates, never within this lib
86
84
  QUEUE_SECTION_RE="^## "
87
85
  # spec: queue-kit/SPEC.md §The tag algebra — the Lessons heading is fixed spelling (a required-sections default), read by queue-index + check-tag-lead-line; no knob
@@ -99,68 +97,6 @@ queue_live_slugs() {
99
97
  ' "$1"
100
98
  }
101
99
 
102
- queue_done_slugs() {
103
- awk -v donere="$QUEUE_DONE_RE" -v sectre="$QUEUE_SECTION_RE" '
104
- $0 ~ donere { ind = 1; next }
105
- $0 ~ sectre { ind = 0 }
106
- ind && $0 ~ /^[[:space:]]*-[[:space:]]+[a-z0-9][a-z0-9-]*[[:space:]]*$/ {
107
- line = $0
108
- sub(/^[[:space:]]*-[[:space:]]+/, "", line)
109
- sub(/[[:space:]]*$/, "", line)
110
- print line
111
- }
112
- ' "$1"
113
- }
114
-
115
- # spec: queue-kit/SPEC.md §bin/roadmap.sh — the one [roadmap:] + roadmap-summary: parse, shared by the emitter and check-roadmap-fresh so the two never disagree on what an entry claims. One TSV line per live entry carrying either, in queue order: <tag-count> <raw-field> <slug> <declaration-count> <summary>. The summary is the entry's roadmap-summary: declaration verbatim — a whitelist, so unmarked body prose never reaches the page.
116
- queue_roadmap_entries() {
117
- awk -v taskre="$QUEUE_TASK_RE" -v sectre="$QUEUE_SECTION_RE" '
118
- function tagcount(line, s, n) {
119
- s = line; n = 0
120
- while (match(s, /\[roadmap:/)) { n++; s = substr(s, RSTART + RLENGTH) }
121
- return n
122
- }
123
- function field(line, f) {
124
- if (!match(line, /\[roadmap:[^]]*\]/)) return ""
125
- f = substr(line, RSTART, RLENGTH)
126
- sub(/^\[roadmap:[[:space:]]*/, "", f); sub(/[[:space:]]*\]$/, "", f)
127
- return f
128
- }
129
- function slugof(line) {
130
- if (!match(line, /\*\*[a-z0-9][a-z0-9-]*\*\*/)) return ""
131
- return substr(line, RSTART + 2, RLENGTH - 4)
132
- }
133
- function declared(line, t) {
134
- t = line
135
- sub(/^[[:space:]]*roadmap-summary:[[:space:]]*/, "", t)
136
- gsub(/[[:space:]]+/, " ", t)
137
- sub(/^ /, "", t); sub(/ $/, "", t)
138
- return t
139
- }
140
- # spec: queue-kit/SPEC.md §lib/queue.sh — the field column of an untagged entry prints as "-", never empty: tab counts as IFS whitespace, so a reader splitting on it coalesces an empty column and silently shifts every field after it
141
- function flush( f) {
142
- f = (fieldv == "" ? "-" : fieldv)
143
- if (slug != "" && (ntags > 0 || nsum > 0))
144
- printf "%d\t%s\t%s\t%d\t%s\n", ntags, f, slug, nsum, sumtext
145
- slug = ""; ntags = 0; nsum = 0; fieldv = ""; sumtext = ""
146
- }
147
- $0 ~ taskre { flush(); inq = 1; next }
148
- $0 ~ sectre { flush(); inq = 0; next }
149
- !inq { next }
150
- /^[[:space:]]*-[[:space:]]+\*\*[a-z0-9][a-z0-9-]*\*\*/ {
151
- flush()
152
- slug = slugof($0); ntags = tagcount($0); fieldv = field($0)
153
- next
154
- }
155
- # spec: queue-kit/SPEC.md §The tag algebra — the declaration is body-scoped by design, so it is read off a continuation line and counted per entry
156
- slug != "" && /^[[:space:]]+roadmap-summary:/ {
157
- nsum++
158
- if (nsum == 1) sumtext = declared($0)
159
- }
160
- END { flush() }
161
- ' "$1"
162
- }
163
-
164
100
  _qk_errs=()
165
101
  [[ ${#QUEUE_KIT_ACTIVE_SECTIONS[@]} -gt 0 ]] || _qk_errs+=("QUEUE_KIT_ACTIVE_SECTIONS is empty")
166
102
  [[ -n "$QUEUE_KIT_DEFERRED_SECTION" ]] || _qk_errs+=("QUEUE_KIT_DEFERRED_SECTION is empty")
@@ -22,4 +22,4 @@ EOF
22
22
  cp "$SMOKE_KIT_ROOT/templates/TASK-QUEUE.md" TASK-QUEUE.md
23
23
 
24
24
  bash "$SDK/bin/gen-pre-commit.sh" --write >/dev/null
25
- bash "$SDK/checks/check-graph.sh" --emit > scripts/CHECK-GRAPH.html
25
+ bash "$SDK/bin/run-gates.sh" --emit graph > scripts/CHECK-GRAPH.html
@@ -65,6 +65,14 @@ told to load but cannot find. Knobs:
65
65
  `SITE_KIT_RENDERER_BATCH` is empty: one of the gate's two renderer contracts,
66
66
  and the fallback of the pair. A consumer whose Pages stack differs points this
67
67
  at its own renderer; an unresolvable one fails the gate closed.
68
+ **Its value is also a port blocker, and repointing it moves one.** The first
69
+ element of whatever this knob holds is an external program
70
+ `check-docs-render-fidelity` requires, which is what gate-sdk's criterion 7
71
+ screens for and what `gate-sdk/bin/port-blockers.sh` derives by resolving this
72
+ knob (gate-sdk/SPEC.md §port-blockers). The dependency is spelled nowhere in the
73
+ gate's own source, so it is recorded here, where the knob lives: a consumer who
74
+ points this at a renderer their payload already carries removes that blocker,
75
+ and one who points it at a heavier toolchain deepens it.
68
76
  - `SITE_KIT_RENDERER_BATCH` — array, **optional**: a command rendering N
69
77
  documents over one stream, `NUL`-terminated in both directions and
70
78
  count-preserving, the framing specified in §check-docs-render-fidelity. Setting
@@ -93,6 +101,7 @@ kit path into a workflow whose whole distribution model is verbatim copy.
93
101
 
94
102
  ## check-docs-cname-parity
95
103
 
104
+ `checks/check-docs-cname-parity.gate` (`precommit`, binary-dispatched).
96
105
  Invariant: no tracked file cites a `SITE_KIT_ALIASES` host in a `://` URL,
97
106
  where the authoritative host `H` is read from `SITE_KIT_CNAME`. The CNAME file
98
107
  must hold exactly one non-blank host line (else exit 2); `H` itself is exempt
@@ -105,8 +114,34 @@ one-line edit to the CNAME file that the gate re-propagates — the host lives i
105
114
  one gated place, and drift anywhere else is caught. The scan reads tracked
106
115
  content only, so an untracked local file is never a source; a `git ls-files`
107
116
  error is fail-closed (exit 2). The positional form
108
- `check-docs-cname-parity.sh [scan-root] [cname-file] [config-file]` lets a
109
- fixture point all three at a synthetic tree without touching consumer config.
117
+ `check-docs-cname-parity <scan-root> <cname-file>` lets a fixture point both at
118
+ a synthetic tree without touching consumer config.
119
+
120
+ **Its default scan root makes the whole tracked tree its content corpus, and
121
+ that is a port cost worth stating where the rule lives.** With `SITE_KIT_SCAN_ROOT`
122
+ unset the walk is every tracked file, so every kit's `checks/*.sh` and `*.gate`
123
+ is inside the corpus this gate reads *as content* — gate-sdk's criterion 4
124
+ verbatim, reached through the walk rather than through the trigger field. The
125
+ `# graph:` couple is the single literal CNAME file, so the derived
126
+ substrate-sensitive set never selects it and gate-sdk's conservation assertion
127
+ structurally cannot see the hold; it is the first worked instance in that
128
+ direction (gate-sdk/SPEC.md §The fourth budget batch). The discharge is the
129
+ general one: the fixture pair carries the arm, because `gate-tests` is pruned
130
+ from every live-tree walk and no port can change what is inside it. The pair's
131
+ good case therefore takes the default arm — no positional, scan root and CNAME
132
+ both off the config bridge, a fixture declaration path inside its own corpus —
133
+ and the bad case keeps the explicit-root arm.
134
+
135
+ **There is no third positional selecting a config file, and the ground is a
136
+ finding rather than a preference.** Such an argument could only work by exporting
137
+ `SITE_KIT_CONFIG_FILE` and re-sourcing `lib/site.sh` mid-run. A
138
+ `.gate`-dispatched member cannot do that: the config bridge resolves every declared knob *before* the binary starts
139
+ (gate-sdk/SPEC.md §lib/gate.sh), so an argument that selects which config file
140
+ the knobs come from arrives a process too late, and a documented flag that
141
+ silently changes nothing is worse than none. A fixture supplies its own alias set
142
+ the way any consumer does — a `site-config.sh` in the gates dir the loader
143
+ already resolves — which is the shape gate-sdk/SPEC.md §The third budget batch
144
+ settled for the same cause, and it costs the pair nothing.
110
145
 
111
146
  ## check-docs-render-fidelity
112
147
 
@@ -376,6 +411,21 @@ recovery closes it. The `ALT_DOMAIN` value is a bare hostname, never a `://`
376
411
  literal, so it does not itself trip the parity gate. A `# enforce:` marker rides
377
412
  the template so that, once copied, an enforcement map projects it as a monitor.
378
413
 
414
+ **The arm roster is a floor, not a ceiling, and "copied verbatim" describes the
415
+ distribution model rather than forbidding an edit.** The copy is the consumer's
416
+ file: nothing syncs it back, and no gate couples the two, so a consumer may add
417
+ arms of its own. Which side of the seam an arm belongs on follows from what it
418
+ asserts. An arm implementing an invariant this kit ships belongs in the template,
419
+ where every consumer inherits it. An arm implementing a **consumer-local**
420
+ invariant belongs in that consumer's copy and must stay out of the template —
421
+ copied into a tree that never declared the convention it derives from, it would
422
+ assert something no kit ships and no consumer agreed to, which is dead config
423
+ that reads as coverage. An arm cannot be truer than the declaration it composes,
424
+ so it lives at the widest tier that declaration is true for. A consumer-local
425
+ arm becomes template material only if its underlying declaration becomes kit
426
+ mechanism — and then it arrives as an optional arm on the existing
427
+ set-the-env-or-delete-the-arm pattern, the way the release-note knobs already do.
428
+
379
429
  The workflow's `permissions:` block is an **allowlist, not an addition** — every
380
430
  scope it omits is `none` — so reading the tag list and the Release bodies needs
381
431
  `contents: read` declared beside `issues: write`, and the probe step needs its own
@@ -0,0 +1,3 @@
1
+ # graph: couples=docs/CNAME,native/src/gates/docs_cname_parity.rs,native/src/fresh.rs dir=one valve=none tier=precommit trigger=*
2
+ # install: on-surface
3
+ # 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
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=docs/*.md,docs/*/index.md,docs/posts/*.md dir=one valve=none tier=precommit
3
+ # install: on-surface
4
+ # port-until: cohort-held-members-port-prerequisites
3
5
  # spec: site-kit/SPEC.md §check-docs-render-fidelity — every tracked docs markdown page, rendered through the Pages parser, leaks no code-span corruption symptom (a stray backtick or a raw non-HTML-element tag) into text, promotes no code-fenced heading, and renders no fewer tables than its source GFM table starts; a missing renderer fails closed
4
6
  #
5
7
  # usage: check-docs-render-fidelity.sh [docs-dir] [config-file]
@@ -1,4 +1,5 @@
1
- # Point the gate at this fixture's synthetic tree, CNAME, and alias config. A
2
- # tracked doc cites two configured aliases in ://URL form, neither under an
3
- # exempt path. The gate must REJECT.
4
- tree tree/CNAME site-config.sh
1
+ # Point the gate at this fixture's synthetic tree and CNAME — the EXPLICIT
2
+ # scan-root arm. A tracked doc there cites two configured aliases in ://URL
3
+ # form, neither under an exempt path. The alias set arrives through the knob,
4
+ # from this case's own scripts/site-config.sh. The gate must REJECT.
5
+ tree tree/CNAME
@@ -1,5 +1,6 @@
1
- # Point the gate at this fixture's synthetic tree, CNAME, and alias config. It
2
- # cites the apex host plus alias URLs, but every alias URL sits under an exempt
3
- # path class (*docs/posts/* immutable posts, */gate-tests/* fixtures). The gate
4
- # must PASS.
5
- tree tree/CNAME site-config.sh
1
+ # No positional: the gate takes its DEFAULT whole-tree arm — SITE_KIT_SCAN_ROOT
2
+ # resolves to "." and SITE_KIT_CNAME to docs/CNAME, both through the config
3
+ # bridge, from this case dir. The corpus is therefore every tracked file of this
4
+ # case, declaration paths included, which is the criterion-4 exposure that arm
5
+ # creates and the reason it needs a case at all. The alias URLs sit under the
6
+ # pruned and the exempt path classes, so the gate must PASS.
@@ -0,0 +1,3 @@
1
+ # graph: couples=docs/CNAME dir=one valve=none tier=precommit
2
+ # no-fixture: fixture descriptor (scanned as text, never dispatched): a declaration path lying inside the corpus the default whole-tree arm scans as content, which is criterion 4's predicate verbatim
3
+ # spec: site-kit/SPEC.md §check-docs-cname-parity — the live site is <https://apex.example/>, the apex host, so this declaration is scanned and cleared rather than skipped
@@ -1 +1 @@
1
- DOCS-CNAME-PARITY: clean
1
+ DOCS-CNAME-PARITY: clean (6 tracked file(s) under .; no alias but the docs host 'apex.example' cited in a URL)
@@ -31,4 +31,4 @@ mkdir -p .github/workflows
31
31
  cp "$SMOKE_KIT_ROOT/templates/site-health.yml" .github/workflows/site-health.yml
32
32
 
33
33
  bash "$SDK/bin/gen-pre-commit.sh" --write >/dev/null
34
- bash "$SDK/checks/check-graph.sh" --emit > scripts/CHECK-GRAPH.html
34
+ bash "$SDK/bin/run-gates.sh" --emit graph > scripts/CHECK-GRAPH.html
package/profiles.list CHANGED
@@ -6,10 +6,19 @@
6
6
  # a kit lands.
7
7
  #
8
8
  # The rows below are the two rosters that are not derivable, each a judgment
9
- # recorded with the criterion that produced it. The invariant over all three —
10
- # starter is contained in delegation is contained in full, every named kit
11
- # resolves in the payload, and no fourth profile — is asserted by the consumer
12
- # smoke, which runs `init` per profile against a packed tarball.
9
+ # recorded with the criterion that produced it. That split is the whole contract
10
+ # of this file: **membership is hand-authored and shape is derived.** A row here
11
+ # says which kits a profile carries; nothing here says how the profiles relate,
12
+ # because that follows from the rows.
13
+ #
14
+ # The shape is a bounded lattice, not a chain: profiles are partially ordered by
15
+ # kit-set inclusion, exactly one sits below every other and exactly one above,
16
+ # and two profiles containing neither the other are alternatives rather than
17
+ # steps. The consumer smoke derives that order from these rows and the payload
18
+ # and asserts it — every named kit resolves, the bounds are unique, the maximum
19
+ # is the payload-derived profile, and moving up a comparable pair only ever adds
20
+ # to the gate roster. A fourth profile is admitted exactly when it fits; there is
21
+ # no count to raise here.
13
22
 
14
23
  # starter — the smallest set that reaches a green battery with a working
15
24
  # generated hook and at least one gate that reds on a real consumer defect
@@ -32,10 +41,12 @@ starter gate-sdk
32
41
  #
33
42
  # The honest consequence of the starting-subset rule, stated where the roster is
34
43
  # read rather than only on the install page: lifecycle-kit registers **no gate**
35
- # at install, because its gates read a stage attestation only a stage session can
36
- # write. So an adopter who picks this profile *for* lifecycle governance gets the
37
- # stage machinery vendored and nothing enforcing it until their first stage
38
- # stamp arms those gates. Vendored is not yet enforced.
44
+ # at install, because none of its gates is `zero-config` — for reasons that
45
+ # differ across the roster rather than one reason covering it
46
+ # (installer/README.md §What init seeds). So an adopter who picks this profile
47
+ # *for* lifecycle governance gets the stage machinery vendored and nothing
48
+ # enforcing it until the surface each gate reads exists — a stage stamp for
49
+ # most, the kit's own installer for two. Vendored is not yet enforced.
39
50
  delegation gate-sdk
40
51
  delegation lifecycle-kit
41
52
  delegation queue-kit
@@ -45,6 +56,23 @@ delegation context-kit
45
56
  delegation guard-kit
46
57
  delegation doctrine-kit
47
58
 
59
+ # prose — the smallest set that governs a repository whose artifacts are prose,
60
+ # on a git-only floor. gate-sdk is forced in for the same reason it is forced in
61
+ # starter: no runner, no hook generator, no registry. canon-kit is the kit whose
62
+ # subject is authored documents; every other kit's subject is either the agent
63
+ # session — which is delegation's criterion, and why these two are alternatives
64
+ # rather than steps — or a deployed site.
65
+ #
66
+ # What the adopter actually receives, stated here because a criterion that
67
+ # overpromises is worse than none: link, claim, staleness and pointer governance
68
+ # over every README.md at any depth plus the agent file, which is real for a
69
+ # documentation repository since a docs tree is usually a tree of READMEs. It is
70
+ # not governance over `docs/*.md` — neither the manifest set nor the comment
71
+ # surface reads that path, and widening to it is the adopter's own
72
+ # CANON_KIT_PROSE_SURFACE_GLOBS edit in the config seam init already delivers.
73
+ prose gate-sdk
74
+ prose canon-kit
75
+
48
76
  # What `full` adds on top of delegation is the set whose subject is something
49
77
  # other than a session: canon-kit governs authored documents, drift-kit reports
50
78
  # trends advisorily and registers no gates, site-kit governs a deployed docs