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
@@ -76,7 +76,9 @@ pattern): wired as the harness's session-start hook via
76
76
  Every step is guarded and degrades silently — the hook never fails a
77
77
  session. Steps, in order:
78
78
 
79
- 1. **Queue index** — via queue-kit's `queue-index.sh`, collapsing the
79
+ 1. **Queue index** — via queue-kit's `queue-index` arm, reached through the
80
+ battery runner's `--emit` front-end (queue-kit/SPEC.md §The queue-index arm),
81
+ collapsing the
80
82
  Deferred section to a tally except on the close and scope stages. The stage
81
83
  it routes on comes from the cursor — `CONTEXT_KIT_STATE_FILE`'s last data
82
84
  line — with an empty cursor (no such file, or one truncated to its preamble
@@ -91,7 +93,7 @@ session. Steps, in order:
91
93
  A configured icebox tier rides **both** branches as a one-line tally, so
92
94
  this step needs no new stage routing: a dormant entry is already one line,
93
95
  so there is no full listing of it to withhold, and the eviction work that
94
- reads the tier reads `queue-index.sh --icebox-candidates` rather than this
96
+ reads the tier reads `--emit queue-index --icebox-candidates` rather than this
95
97
  index.
96
98
  2. **Dirty-surface pre-run** — for each component with uncommitted
97
99
  changes, pre-run the matching surface index (default: `pub-index` over
@@ -244,18 +246,38 @@ the array `PROBE_SET` and the predicate below and executes nothing else. It
244
246
  carries no knob, deliberately: the roster is the kit's own dependency set, and a
245
247
  consumer who could override it could only make the contract lie.
246
248
 
247
- A roster element reads `<name>[:<min-version>[:<impl-token>]]`. A bare name keeps
249
+ A roster element reads `<name>[:<min-version>[:<impl-token>[:<audience>]]]`. A
250
+ bare name keeps
248
251
  the original meaning — must be present, no version constraint — so the floor axis
249
252
  is **per-member** rather than a number demanded of every member. The fields are
250
253
  positional, so a member constrained by implementation alone carries an empty
251
254
  min-version field (`awk::GNU`), and an empty field means what an omitted trailing
252
- field means: `awk`, `awk:`, and `awk::` are one unconstrained member. **A member
255
+ field means: `awk`, `awk:`, `awk::` and `awk:::` are one unconstrained member. **A member
253
256
  gains a floor only where a construct the battery actually runs forces one**, and
254
257
  the forcing construct is recorded with it — a floor nobody's code forces is not
255
258
  pinned, which is what stops a version number from rotting into an aspiration
256
259
  (de-literalization applied to a version: the value is owned where the constraint
257
260
  is provable).
258
261
 
262
+ **The audience axis.** The fourth field names *whose* floor a member is, because
263
+ the roster has two kinds of reader and one flat array gated both of them on all
264
+ of it. Its value set is closed and kit-owned exactly as the floor predicate's
265
+ verdict set is: the only declarable value is `contributor`, meaning *a
266
+ contributor-side floor with no install-time role*. The unmarked case is not
267
+ spelled — declaring the complement on every other member would be a roster
268
+ maintained against itself — so the emptiness rule above carries it: an empty or
269
+ omitted audience means every audience. `tool_floor_consumer_side <element>`
270
+ answers the one question a consumer-side reader asks, and exists so no such
271
+ reader re-implements that rule against a value set it does not own. A
272
+ consumer-side reader — `installer/lib/doctor.sh`, whose exit status is `init`'s
273
+ last precondition — filters its roster walk through that predicate and does not
274
+ probe, render or fail on a member the predicate excludes. A contributor-side
275
+ reader — `bin/env-probe.sh` — walks the roster whole and marks the audience
276
+ instead, since a contributor-side floor is exactly what it is reporting on.
277
+ The field is a grammar axis rather than a filter in the reader that needs it,
278
+ because a hard-coded exception is a literal de-literalization forbids and one
279
+ that re-fires the day a second contributor-only member lands.
280
+
259
281
  The constrained members and what forces each:
260
282
 
261
283
  - `bash:4.3` — the floor is set by the **highest** construct the battery runs,
@@ -263,8 +285,10 @@ The constrained members and what forces each:
263
285
  (gate-sdk, guard-kit, delegation-kit, evidence-kit checks), `mapfile` (across
264
286
  the kits), the `${x,,}` case expansion (canon-kit's `lib/spec.sh` and checks, a
265
287
  delegation-kit template) — but the **nameref** (`local -n`, bash 4.3) outranks
266
- them: `gate-sdk/lib/gate.sh`'s couples expander, which every gate sources, and
267
- `canon-kit/checks/check-comment-tier.sh`. The nameref in the shared gate
288
+ them: `gate-sdk/lib/gate.sh`'s couples expander, which every gate sources. The
289
+ leaf gate that carried the second instance, `check-comment-tier`, has since
290
+ ported to the binary substrate and its script is gone — which changes nothing
291
+ about the floor, because the nameref in the shared gate
268
292
  library makes 4.3 universal rather than one leaf gate's requirement, so a
269
293
  consumer below it cannot run the battery at all. Recorded here because the
270
294
  earlier `4.0` was a fail-open: `env-probe` reported `ok` on a 4.2 box the
@@ -282,22 +306,39 @@ The constrained members and what forces each:
282
306
  the battery at all rather than failing one gate. The representative member is
283
307
  the binary carrying a forcing construct, which is also the floor predicate's
284
308
  own comparison tool.
285
- - `cargo:1.56` — a **contributor-side** floor, never a runtime one, and it carries
309
+ - `cargo:1.71::contributor` — a **contributor-side** floor, never a runtime one,
310
+ and that reading is now declared on the element and read by name rather than
311
+ left as an aside: the audience field is what the consumer-side predicate
312
+ above resolves, so the sentence is enforced instead of merely written. It
313
+ carries
286
314
  two tiers because two kinds of tree read it. Where a `.gate` descriptor is live
287
315
  it is a **commit-time** floor — `gate_command` puts the binary on the pre-commit
288
316
  path and is fail-closed on an absent one, so the battery will not run without a
289
317
  built crate (gate-sdk/SPEC.md §What the dispatch seam does not settle); that is
290
- this repo, once its first cohort lands. Everywhere else it stays the weaker
318
+ this repo today, its first cohort having landed. Everywhere else it stays the weaker
291
319
  **contributor/build** floor: a consumer tree receives a prebuilt binary and never
292
320
  a crate, so nothing there compiles at commit time. Both tiers rest on the same
293
- forcing fact —
294
- the `native/` crate's `edition = "2021"`, the first edition rustc accepts at
295
- 1.56. `cargo` is the member rather than `rustc` because `cargo build` is what the
321
+ forcing fact — the **highest MSRV in the crate's resolved dependency graph**,
322
+ which since the settings cohort took the crate's first dependency
323
+ (gate-sdk/SPEC.md §The settings cohort, and the crate's first dependency) is
324
+ above the `edition = "2021"` floor of 1.56 that governed while the graph was
325
+ empty. It is re-derived against the lock at any dependency change rather than
326
+ recalled, and a move carries every surface stating it — including **§The
327
+ rendered verdict below and `docs/site-architecture.md`, both of which quote
328
+ this element as a *format example***, and both machine-checked by nothing. That
329
+ pair is named rather than described because a format example is the shape a
330
+ floor move keeps missing: it reads as illustration, so it survives the grep a
331
+ reader runs for the surface. The 1.56 → 1.71 move missed
332
+ `docs/site-architecture.md` at authoring and this section's own example at the
333
+ merge, the second caught only by a close-stage audit. It is also a `check-crate-arms` input: clippy
334
+ suppresses a lint whose suggested API postdates the declared floor, so raising
335
+ the floor un-suppresses lints against code no change touched.
336
+ `cargo` is the member rather than `rustc` because `cargo build` is what the
296
337
  contributor routine and the `gates` workflow actually invoke, and the two ship as
297
338
  one toolchain sharing a version banner — the representative-member rule the
298
- `sort::coreutils` entry above states. The floor tracks the edition the crate
299
- declares, not whatever rustc a given box happens to carry; pinning the latter
300
- would be exactly the aspiration this section's rule forbids. Runtime is
339
+ `sort::coreutils` entry above states. The floor tracks what the crate and its
340
+ graph actually require, not whatever rustc a given box happens to carry; pinning
341
+ the latter would be exactly the aspiration this section's rule forbids. Runtime is
301
342
  unaffected: git remains the sole runtime dependency of a ported gate, shelled out
302
343
  rather than embedded (TRAJECTORY.md §The closed rulings owns that constraint).
303
344
  Every other member is a bare name — no construct in the battery forces a version
@@ -324,7 +365,12 @@ not one.
324
365
  **The rendered verdict.** Each toolchain bullet carries the probed banner and,
325
366
  for a constrained member, the constraint and its verdict — `` (floor 4.3, ok) ``,
326
367
  `` (requires GNU — below contract) ``, `` (floor 4.3 — unverified) ``; an
327
- unconstrained member carries no parenthetical. A `**Below contract:**` line joins
368
+ unconstrained member carries no parenthetical. A member carrying an audience
369
+ carries it here too, as `` (floor 1.71, contributor-only, ok) ``, and every line
370
+ that names such a member is marked the same way — the absent list and the
371
+ below-contract list included, because those are the two lines on which *below a
372
+ floor that is yours* and *below a floor you are not on the hook for* would
373
+ otherwise read alike. A `**Below contract:**` line joins
328
374
  the existing `**Absent:**` line, reading `none` when clean and otherwise naming
329
375
  each failing member through the verdict's own fields: `below` and `wrong-impl`
330
376
  are distinguished because the remedies differ — upgrade versus install a
@@ -364,8 +410,8 @@ nothing unbidden.
364
410
  `bin/always-loaded.sh` measures the standing surface: the summed line
365
411
  count of the configured surface files (default `CLAUDE.md`) plus the
366
412
  steady-state hook body, approximated by the configured hook-body command
367
- (default: queue-kit's `queue-index.sh --collapse-deferred` when
368
- resolvable). The approximation is deliberate: the meter must never run the
413
+ (default: queue-kit's `queue-index` arm through the battery runner's `--emit`
414
+ front-end, `--collapse-deferred`, when resolvable). The approximation is deliberate: the meter must never run the
369
415
  session-context hook itself — the hook emits this meter's own output line,
370
416
  so self-measurement would recurse and inflate.
371
417
 
@@ -393,7 +439,7 @@ the measurement.
393
439
 
394
440
  ## bin/footprint
395
441
 
396
- `bin/footprint.sh` publishes the kits' measured context footprint — the
442
+ The footprint emitter publishes the kits' measured context footprint — the
397
443
  adoption-cost evidence a consumer weighs before vendoring, the concrete form of
398
444
  the token-economics positioning. Where the meter reads one consumer's live
399
445
  always-loaded total, this reads the tracked kit surfaces and attributes the cost
@@ -427,17 +473,31 @@ honest. The exclusion is also a determinism requirement: the freshness gate
427
473
  byte-compares the emission, so every measured surface must be a static tracked
428
474
  file — a live hook run, being state-dependent, could never be byte-gated.
429
475
 
430
- **Emission.** Bare invocation prints a human header plus the per-kit table;
431
- `--emit` prints the committed `docs/footprint.md` page whole (front matter,
432
- method and exclusion prose, then the table with a totals row) — the `--emit`
433
- symmetry the sibling emitters (`always-loaded.sh`, drift-kit's `trajectory.sh`)
434
- share. Advisory by construction: exit is always zero and the script never joins
435
- `gates.list`; the freshness gate (§check-footprint-fresh) is what blocks a stale
476
+ **Emission, and the substrate it runs on.** The emitter is a **non-gate arm of
477
+ the gate binary**, `--emit-footprint` (gate-sdk/SPEC.md §The non-gate arm), and
478
+ it prints the committed `docs/footprint.md` page whole: front matter, method and
479
+ exclusion prose, then the table with a totals row. It is reached as
480
+ `bash gate-sdk/bin/run-gates.sh --emit footprint`, because an arm receives no
481
+ configuration of its own and that front-end resolves `CONTEXT_KIT_SURFACES`
482
+ across the config bridge before invoking it.
483
+
484
+ The emission is a **library function** the arm wraps rather than the arm itself,
485
+ which is what lets §check-footprint-fresh call it in-process and the value
486
+ rollup consume its per-kit figures as data rather than re-parsing the rendered
436
487
  page.
437
488
 
489
+ **The advisory bare mode did not survive the port**, and its loss is the ported
490
+ script's deletion rather than a separate decision: the shell emitter printed a
491
+ human header plus the table on a bare invocation, and the replacement arm's
492
+ contract is exactly what `--emit` printed. The table is still reachable — it is
493
+ in the emitted page — so what went is the header, which had no reader that the
494
+ page does not serve. Advisory by construction is unchanged: the arm never joins
495
+ `gates.list`, and the freshness gate (§check-footprint-fresh) is what blocks a
496
+ stale page.
497
+
438
498
  ## The brevity gate
439
499
 
440
- `checks/check-brevity.sh` — a section-agnostic name: the governed section
500
+ `check-brevity` — a section-agnostic name: the governed section
441
501
  is a knob, so no section name binds the gate (a consumer's
442
502
  `check-convention-brevity` would be its section-specific counterpart). It scans one designated
443
503
  always-loaded file for a bulleted section where each `- **name:**` bullet
@@ -563,32 +623,184 @@ dir, the untracked local settings) is a local-environment scan, CI-neutral
563
623
 
564
624
  ## check-settings-pins
565
625
 
566
- `checks/check-settings-pins.sh` (hermetic, `precommit`) is the identity.conf
567
- pattern pointed at harness config. Every pin in `CONTEXT_KIT_SETTINGS_PINS`
626
+ `checks/check-settings-pins.gate` (hermetic, `precommit`, dispatched to the gate
627
+ binary — gate-sdk/SPEC.md §The settings cohort, and the crate's first dependency)
628
+ is the identity.conf pattern pointed at harness config. Every pin in
629
+ `CONTEXT_KIT_SETTINGS_PINS`
568
630
  (default `${GATE_SDK_GATES_DIR:-scripts}/settings-pins.conf`) holds against
569
631
  the tracked settings file `CONTEXT_KIT_SETTINGS_FILE` (default
570
- `.claude/settings.json`). Grammar: one `<jq path> = <expected JSON>` per line,
571
- `#` comments and blanks ignored; the expected side is the exact `jq -c`
572
- rendering (`false`, `"1"`, `{"k":1}`). General-purpose by construction — any
632
+ `.claude/settings.json`). Grammar: one `<path> = <expected JSON>` per line,
633
+ `#` comments and blanks ignored. General-purpose by construction — any
573
634
  settings key is pinnable — this consumer's first pins hold the
574
635
  auto-memory-disabling keys.
575
636
 
637
+ **The left-hand side is a path expression, not a `jq` filter**, and the grammar
638
+ is complete:
639
+
640
+ ```
641
+ path := '.' | step+
642
+ step := '.' ident | '.' '"' string '"' | '[' '"' string '"' ']' | '[' int ']'
643
+ ident := [A-Za-z_][A-Za-z0-9_]*
644
+ int := '-'? [0-9]+
645
+ ```
646
+
647
+ A path **opens with `.`**; everything else — pipes, filters, `?` error
648
+ suppression, slices, iteration, functions, arithmetic — is refused, and the gate
649
+ turns that refusal into **exit 2 naming the offending pin, the knob it came from,
650
+ and the construct**. The leading-`.` rule is load-bearing rather than tidy: `jq`
651
+ reads a leading `["k"]` as an array *literal* and returns `["k"]`, so admitting
652
+ one would answer a question `jq` was never asked. This is a narrowing of a
653
+ consumer config surface, taken openly and refusing loudly outside the subset — not
654
+ the silent mis-scan the ERE cohort's foreclosure forbids, which binds *sizing an
655
+ implementation* to one consumer's usage while the documented grammar stays wider.
656
+ The knob's whole documented job is naming a settings key, which a path expression
657
+ expresses in full. Operator-ruled 2026-08-14, with a filter crate (`jaq`) priced
658
+ against it and declined; a later reader must not reopen it on the observation that
659
+ such a crate exists, because that observation is what the ruling was made against.
660
+
661
+ **The right-hand side is a JSON value, and the comparison is structural** — the
662
+ `jq -c` *rendering* is not the contract. A byte-rendering contract is unachievable
663
+ across `jq` versions and therefore cannot be a parity target: `jq` 1.6 re-renders
664
+ every number through a double where 1.7 preserves an unmutated literal, so
665
+ `{"x":1e3}` renders `1000` under one and `1e3` under the other, and a crate
666
+ holding byte parity with "`jq -c`" would be holding parity with whichever `jq` the
667
+ comparison ran against. Structural comparison has no such dependency and diverges
668
+ from the shell only in the forgiving direction — an expected side written with
669
+ non-canonical spacing now matches. Part of what *structural* means is one explicit
670
+ rule the object model does not give free: **numbers compare by their `f64` value
671
+ wherever they occur, every other shape by the parsed value's own equality**. The
672
+ parser's own equality separates `1` from `1.0` by variant where `jq` calls them
673
+ one value, and `jq`'s equality is not shallow, so a pin nested one level deep
674
+ would otherwise report a mismatch nobody would think to test for.
675
+
676
+ Two semantics are **preserved deliberately rather than improved**, because a port
677
+ proves parity and does not repair rules. A path evaluating to `null` is the
678
+ **absent** branch, whether the key is absent or explicitly `null`: the shell
679
+ cannot tell the two apart and the compiled form can, so reproducing the
680
+ conflation is the faithful port, and a session wanting the distinction files an
681
+ entry against this section. And **indexing follows `jq`'s own type rules** — a
682
+ field step on `null` yields `null`; a field step on a string, number, boolean or
683
+ array, and an index step on an object, are errors the gate classifies as a
684
+ malformed pin.
685
+
576
686
  Dispositions: a pin whose path resolves to the expected value passes; a path
577
687
  present with a different value is the legible violation (exit 1, each finding
578
688
  reading path, expected, and actual). Fail-closed (exit 2) on an unreadable or
579
- non-JSON settings file, no `jq`, a malformed pin line, or a pin naming a key
580
- **absent** from the settings file — an absent key is a desynced manifest (the
581
- pins and the settings are one repo's tracked config, edited together), not the
582
- legible drift a red is for. Absent pins file: the opt-in-off state, a clean
583
- skip. Ships a `good/`+`bad/` fixture pair and registers in the consumer's
584
- `gates.list` (this repo's included).
689
+ non-JSON settings file, a malformed pin line, a pin outside the path grammar, or
690
+ a pin naming a key **absent** from the settings file — an absent key is a desynced
691
+ manifest (the pins and the settings are one repo's tracked config, edited
692
+ together), not the legible drift a red is for. Absent pins file: the opt-in-off
693
+ state, a clean skip. Ships a `good/`+`bad/` fixture pair and registers in the
694
+ consumer's `gates.list` (this repo's included).
695
+
696
+ **What a pin is worth depends on which tiers can outrank the file it pins**, and
697
+ the gate reads exactly one tier. The harness resolves settings across five, in
698
+ order: managed policy, then command-line, then the untracked local settings file,
699
+ then the tracked settings file this gate reads, then the operator's user-level
700
+ file. Objects deep-merge; the exceptions that merge rather than override are the
701
+ permissions arrays, MCP servers, HTTP hook URLs and `fallbackModel` chains. Two
702
+ consequences the gate's own verdict does not carry. A pin **does** beat the
703
+ operator's user-level file, which is what makes a tracked pin meaningful at all
704
+ rather than a suggestion the machine can quietly ignore. And a pin is **beaten**
705
+ by three tiers above it, of which `check-memory-off` covers one — the local
706
+ settings overlay — leaving managed policy and command-line flags outside any
707
+ gate's reach. That residue is unclosable here rather than merely unbuilt: neither
708
+ tier leaves an artifact in the tree, and the command line does not exist until
709
+ the session starts.
710
+
711
+ ## check-settings-paths
712
+
713
+ `checks/check-settings-paths.gate` (hermetic, `precommit`, dispatched to the gate
714
+ binary alongside its sibling — gate-sdk/SPEC.md §The settings cohort, and the
715
+ crate's first dependency) holds the second
716
+ invariant over the same tracked file: every entry in
717
+ `CONTEXT_KIT_SETTINGS_FILE`'s `permissions.allow[]` whose command token is a
718
+ **literal** repo-relative `.sh` path resolves in the working tree. The knob is
719
+ reused, not introduced — §check-settings-pins already owns it and its default.
720
+
721
+ The class it defends is a standing property of a gate port rather than a
722
+ one-time count: replacing a kit's `checks/<gate>.sh` with a `<gate>.gate`
723
+ descriptor strands every allow entry naming the old path, and this repo
724
+ accumulated such entries one cohort apart before the gate existed. A dead grant
725
+ breaks nothing — no command can reach it — so the cost is a permission roster
726
+ whose every reader must re-verify which lines still mean anything.
727
+
728
+ **The extraction predicate**, scoped against the shapes a permission array
729
+ actually carries. A candidate is taken only from an entry of the form
730
+ `Bash(<command>)`; leading `env NAME=VALUE` assignments and a `bash`/`sh`
731
+ interpreter word are skipped, and the first remaining token is the candidate. A
732
+ candidate not ending in `.sh` is out of scope — a bare command names no path,
733
+ and a non-`.sh` path entry (a log truncation, a scratch removal) names a
734
+ runtime-created gitignored path whose absence is its ordinary state, so
735
+ existence is the wrong predicate for it. A candidate **containing `*`** is a
736
+ pattern, intentionally polymorphic over files that need not exist today, and is
737
+ skipped. That rule is scoped to the *command token*, not the entry: this repo's
738
+ standing shape for a grant taking arguments is a bare entry beside a
739
+ `*`-suffixed twin, and the twin's path is as literal — and as strandable — as
740
+ the bare form's, so it stays in scope.
741
+
742
+ Splitting the grant into tokens must not expand it. Globbing a pattern grant
743
+ against the tree and then asserting an arbitrary first match would green the whole
744
+ pattern class instead of skipping it, while leaving the checked count silently
745
+ inflated. The shell form protected that with `read -ra`, which does not expand;
746
+ the compiled form splits on ASCII whitespace, which has no expansion to suppress.
747
+ The property is the same and it is the property, not the idiom, that the fixture
748
+ pair's checked count pins.
749
+
750
+ Dispositions: exit 1 lists each violating entry verbatim beside the path that
751
+ did not resolve, so the reader can repoint or drop the grant without re-deriving
752
+ which token was read. The clean line reports the **checked count**, which is
753
+ what distinguishes a predicate that scoped to the array from one that vacuously
754
+ matched nothing. Fail-closed (exit 2) on a settings file that is
755
+ unreadable or not JSON — the sibling gate reads the same file on the same terms,
756
+ and the file is this gate's sole subject rather than an opt-in manifest, so
757
+ there is no absent-surface skip to grant. A `--fixture <dir>` mode reads
758
+ `<dir>/settings.json` and resolves candidates against `<dir>`, which is the
759
+ hermetic mode the `good/`+`bad/` fixture pair drives.
760
+
761
+ The pair pins the scoping, not merely the verdict. `good/` carries every
762
+ skipped shape — pattern tokens, bare non-path commands, non-`.sh` paths —
763
+ alongside resolving literals in all three extraction shapes (bare,
764
+ `env`-prefixed, trailing-flag), and its expectation pins the **checked count**:
765
+ the pattern-expansion defect above passes an exit-code-only fixture, because an
766
+ expanded pattern resolves by construction, and is visible only in the count.
767
+ `bad/` carries a dead path in the bare, `*`-twin and `env`-prefixed shapes
768
+ beside one resolving grant, so a broken extraction arm shows as a missing
769
+ finding rather than a still-red exit.
770
+
771
+ Its `# graph:` manifest names the settings file as its subject and the check
772
+ script globs as a **reverse trigger** — a cohort deleting a ported gate's `.sh`
773
+ is exactly the edit that strands a grant, so it must re-run the gate. The
774
+ distinction is recorded because gate-sdk/SPEC.md's port criterion 4 turns on it,
775
+ and a later port reading that couple as content would misclassify the member.
776
+ The trigger is a partial route by construction: the generated hook reads staged
777
+ `ACMR` paths, so a *deleted* `.sh` never matches it. What the trigger catches is
778
+ the ordinary edit that strands a grant; what catches the cohort is the full
779
+ battery, which runs whole-tree with no trigger filter.
780
+
781
+ **The criterion-7 debt this gate landed carrying is paid, and this paragraph is
782
+ the record that it was.** `jq` is not on `GATE_SDK_PROGRAM_FLOOR`, so the gate
783
+ failed port criterion 7 the day it landed and owed designed-away work at its port.
784
+ That work is the settings cohort (gate-sdk/SPEC.md §The settings cohort, and the
785
+ crate's first dependency), which retired the requirement for this member and its
786
+ sibling by taking a JSON reader into the crate rather than by hand-rolling a
787
+ parser to dodge a dependency — the outcome this paragraph predicted when it said
788
+ one parsing story for the settings file is worth more than the criterion. `jq`
789
+ remains required by `check-installer-no-deps` alone (excluded with cause) now that
790
+ `check-memory-off` has taken the same reader, so it is retired from the battery
791
+ but for that one member, and not from the shipped install path at all.
792
+
793
+ **The gate is not the prune.** It reads the settings file and writes nothing,
794
+ but it reds the moment it registers on a tree carrying stranded entries, and the
795
+ settings file is operator-owned configuration a session may not edit. The
796
+ landing order is therefore fixed: the operator prunes, then the gate registers.
585
797
 
586
798
  ## check-memory-off
587
799
 
588
- `checks/check-memory-off.sh` (local-environment class, the check-identity
589
- precedent) scans the operator's machine, not the tree — its `# graph:`
590
- manifest couples the pins file it reads and triggers on `*`, because the
591
- surfaces it guards (the memory dir and the untracked local settings) never
800
+ `checks/check-memory-off.gate` (local-environment class, binary-dispatched, the
801
+ check-identity precedent) scans the operator's machine, not the tree — its
802
+ `# graph:` manifest couples the pins file it reads and triggers on `*`, because
803
+ the surfaces it guards (the memory dir and the untracked local settings) never
592
804
  stage. Two red conditions:
593
805
 
594
806
  - the harness's per-project memory dir holds content — any regular file that
@@ -601,13 +813,38 @@ stage. Two red conditions:
601
813
  scan; its default derives the current project's dir from the harness layout
602
814
  (§Layout and configuration). CI-neutral: where the surface is absent the gate
603
815
  is clean, and the clean line states the fail-open caveat — an absent dir
604
- proves nothing about another clone. It fails closed only when it cannot read
605
- what is present to check: a local settings file with no `jq`.
816
+ proves nothing about another clone.
817
+
818
+ **It has one arm, and the knobs are it.** The `--fixture <dir>` arm the shell
819
+ form carried is deleted: every path it redirected — the scanned dirs, the pins
820
+ manifest, the local settings file derived from `CONTEXT_KIT_SETTINGS_FILE` by
821
+ swapping `.json` for `.local.json` — a knob already redirects, so the arm bought
822
+ a shorter spelling and paid for it with a second code path that never drove the
823
+ derivation being checked. The pair and `check-memory-off.test.sh` reach the gate
824
+ through the three knobs instead, which is what makes them a parity oracle for the
825
+ live arm rather than for a fixture-only one.
826
+
827
+ **Comparison is structural and a null actual is a skip**, and the two are
828
+ recorded because they part company with `check-settings-pins` over one manifest.
829
+ The pins file declares *expected JSON*, not an expected byte form, so `1` and
830
+ `1.0` are one value here as they already are there; a right-hand side that is not
831
+ JSON cannot be compared structurally at all and is skipped on this member's one
832
+ disposition for a pin it cannot read — that same line of that same manifest is
833
+ what the sibling gate fail-closes on, so the condition is graded, not lost. A
834
+ path evaluating to **null**, by contrast, is this gate's ordinary clean case: the
835
+ local file simply sets no override for that key. `check-settings-pins` reads a
836
+ null as an absent pin and refuses, which is right for the tracked file it reads
837
+ and would be a correctness regression here, reddening every clone whose local
838
+ settings merely omit a pinned key.
839
+
840
+ Fail-closed (exit 2) when it cannot read what is present to check: a local
841
+ settings file that is unreadable or not valid JSON, a memory dir it cannot walk,
842
+ or a `HOME` it cannot read when the default derivation is the one in play.
606
843
 
607
844
  ## check-footprint-fresh
608
845
 
609
- `checks/check-footprint-fresh.sh` (hermetic, `precommit`) byte-compares the
610
- committed `docs/footprint.md` against `footprint.sh --emit`, the
846
+ `checks/check-footprint-fresh.gate` (hermetic, `precommit`) byte-compares the
847
+ committed `docs/footprint.md` against the footprint emitter, the
611
848
  `check-docs-mirror-fresh`/`check-trajectory-fresh` posture: a generated,
612
849
  freshness-gated projection is Derivation-first's sanctioned copy, so the
613
850
  maintainer re-runs the emitter after any change to a measured surface and a
@@ -615,8 +852,16 @@ stale page reddens the battery. Its `# graph:` manifest couples the measured
615
852
  surfaces — the configured agent file and each kit's `templates/` tree — so an
616
853
  edit to what the page counts re-fires the gate.
617
854
 
855
+ **It is a registry member of the gate binary, and its emitter is a function call
856
+ rather than a spawn.** The comparator and the emitter ported in one unit, so
857
+ where the shell form ran `bash <emitter> --emit` in a subprocess, the compiled
858
+ member calls the emitter module's `emit()` **in-process** — which is what
859
+ retires the family's `bash` hop for this member (gate-sdk/SPEC.md §The first
860
+ cohort, and the rule that selects the next). The `CONTEXT_KIT_SURFACES` the
861
+ emitter reads arrives across the config bridge, declared by this member.
862
+
618
863
  Bare, it runs the live emitter; a two-argument form
619
- (`check-footprint-fresh.sh <projection> <emit>`) compares two pre-baked files,
864
+ (`check-footprint-fresh <projection> <emit>`) compares two pre-baked files,
620
865
  the hermetic mode the `good/`+`bad/` fixture pair drives. Fail-closed (exit 2)
621
866
  on a missing projection or emit source; the stale byte-compare is the exit-1
622
867
  violation. The page's generated numbers ride the `docs/evidence-data.md`
@@ -631,23 +876,26 @@ context-kit/
631
876
  bin/md-index.sh
632
877
  bin/md-section.sh
633
878
  bin/pub-index.sh # dispatcher over the per-language extractors
879
+ lib/context.sh # sourced config loader + the kit's knob defaults; the config bridge sources it
634
880
  lib/toolfloor.sh # sourceable owner: the probe roster + the floor predicate
635
881
  lib/pub-lang/rust.sh # shipped extractor: Rust public items
636
882
  lib/pub-lang/ts.sh # shipped extractor: TypeScript export surface
637
883
  bin/always-loaded.sh
638
- bin/footprint.sh # per-kit two-tier footprint; --emit is docs/footprint.md
639
884
  bin/env-probe.sh # derives the marker-bounded local env profile
640
885
  bin/run-index-tests.sh # expected-output runner for the bin tools
641
- checks/check-brevity.sh
642
- checks/check-settings-pins.sh # hermetic: pins hold against the settings file
643
- checks/check-memory-off.sh # local-environment: memory dir + local overrides
644
- checks/check-footprint-fresh.sh # hermetic: docs/footprint.md byte-fresh vs the emitter
886
+ checks/check-brevity.gate # hermetic, binary-dispatched: the budgeted section's over-budget pointer bullets
887
+ checks/check-settings-pins.gate # hermetic, binary-dispatched: pins hold against the settings file
888
+ checks/check-settings-paths.gate # hermetic, binary-dispatched: literal .sh grants resolve in the tree
889
+ checks/check-memory-off.gate # local-environment, binary-dispatched: memory dir + local overrides
890
+ checks/check-footprint-fresh.gate # hermetic, binary-dispatched: docs/footprint.md byte-fresh vs the emitter it calls in-process
645
891
  gate-tests/check-brevity/{good,bad}/
646
892
  gate-tests/check-settings-pins/{good,bad}/
893
+ gate-tests/check-settings-paths/{good,bad}/
647
894
  gate-tests/check-memory-off/{good,bad}/
648
895
  gate-tests/check-footprint-fresh/{good,bad}/
649
896
  gate-tests/check-brevity.test.sh # the unmatched-section axis the pair cannot hold
650
897
  gate-tests/check-memory-off.test.sh # the local-override axis the pair cannot hold
898
+ gate-tests/check-settings-pins.test.sh # the refusal axis the pair cannot hold
651
899
  index-tests/ # fixture corpus + expected outputs
652
900
  templates/session-context.sh # consumer copy: marked consumer sections
653
901
  templates/settings-sessionstart.json
@@ -674,6 +922,38 @@ what the consumer left unset, and a set-but-missing `CONTEXT_KIT_CONFIG_FILE`
674
922
  exits 2 rather than silently running on defaults. Knobs (this repo's layout
675
923
  as defaults):
676
924
 
925
+ ### lib/context.sh
926
+
927
+ **The one home of the consumer-config load and of every knob default above**, a
928
+ sourceable library on queue-kit's `lib/queue.sh` shape: it loads the consumer
929
+ config first, then defaults each knob the consumer left unset, then refuses a
930
+ malformed value rather than running on it. Every context-kit gate and `bin/` tool
931
+ sources it instead of re-defaulting, which is the single-home form
932
+ `check-knob-default-coupling` asserts and what keeps a shell-side and a bridged
933
+ value one value rather than two.
934
+
935
+ **The config bridge is what forces a library rather than a convention.**
936
+ gate-sdk's config bridge resolves each declared knob by sourcing one kit's
937
+ library in a subshell, and **exits 2 on a knob that library does not define**
938
+ (gate-sdk/SPEC.md §lib/gate.sh), so a
939
+ `.gate`-dispatched member whose knobs were defaulted inside a check script would
940
+ resolve none of them. That mechanism is indifferent to what any crate links: a
941
+ member receives its knobs this way whatever the binary carries.
942
+
943
+ **Every default here is repo-relative, and that is a bridge requirement rather
944
+ than a style.** A bridged value is baked verbatim into the tracked pre-commit
945
+ hook, so an absolute path would pin one clone's layout into a committed artifact.
946
+ The one knob whose natural value *is* absolute — `CONTEXT_KIT_MEMORY_DIRS`,
947
+ naming a harness directory under `HOME` — defaults to **empty**, and the empty
948
+ value means "derive it" rather than "no dir": the derivation belongs to the one
949
+ member that reads the knob (`native/src/gates/memory_off.rs`), which folds `/`
950
+ and `.` to `-` in the repo toplevel exactly as the harness names each project's
951
+ dir. Deriving it lazily at that reader is also what keeps a `git` subprocess off
952
+ the path of every unrelated knob resolution. The shell library once carried the
953
+ derivation as `context_memory_dir_default()`; it left with the shell gate that
954
+ was its only caller, so the layout rule has one implementation rather than two
955
+ agreeing ones.
956
+
677
957
  - `CONTEXT_KIT_SURFACES` — array of always-loaded files; default
678
958
  `("CLAUDE.md")`. The measured surface is agent-file-name-agnostic: a consumer
679
959
  whose harness reads `AGENTS.md` (or any other always-loaded agent file) sets
@@ -690,7 +970,7 @@ as defaults):
690
970
  default `${GATE_SDK_GATES_DIR:-scripts}/pub-lang`.
691
971
  - `CONTEXT_KIT_HOOK_CMD` — command whose output line count approximates
692
972
  the steady-state hook body; default queue-kit's
693
- `queue-index.sh --collapse-deferred` when resolvable, else empty
973
+ `run-gates.sh --emit queue-index --collapse-deferred` when resolvable, else empty
694
974
  (surfaces only).
695
975
  - `CONTEXT_KIT_DRIFT_REPORT` — path to the consumer's drift-report script;
696
976
  the session-context hook runs it with `--trend` for the brief's drift
@@ -719,8 +999,18 @@ as defaults):
719
999
  - `CONTEXT_KIT_BREVITY_POINTER_RE` — the "cites a deeper doc" pattern;
720
1000
  default `§`.
721
1001
  - `CONTEXT_KIT_SETTINGS_FILE` — the tracked harness settings file
722
- check-settings-pins verifies and whose `.local.json` sibling check-memory-off
723
- scans; default `.claude/settings.json`.
1002
+ check-settings-pins and check-settings-paths each verify, on a different
1003
+ invariant, and whose `.local.json` sibling check-memory-off scans; default
1004
+ `.claude/settings.json`. **Explicitly setting it to a path that does not exist
1005
+ is refused (exit 2) by `lib/context.sh` at resolution time**, while leaving it
1006
+ unset and having no file at the default path is not-adopted and degrades at
1007
+ each reader. The refusal lives in the library because that is the last place
1008
+ *set-ness* is visible: once the value crosses gate-sdk's config bridge a
1009
+ compiled reader sees one path string and cannot tell the misconfigured case
1010
+ from the unadopted one. Emptiness is **not** the signal here — the config
1011
+ validation below rejects an empty value as malformed, an invariant older than
1012
+ the bridge — which is why this knob refuses where `DRIFT_KIT_KPIS_FILE`
1013
+ resolves empty (drift-kit/SPEC.md §lib/drift.sh).
724
1014
  - `CONTEXT_KIT_SETTINGS_PINS` — the pins manifest; default
725
1015
  `${GATE_SDK_GATES_DIR:-scripts}/settings-pins.conf`.
726
1016
  - `CONTEXT_KIT_MEMORY_DIRS` — space-separated glob list of harness memory dirs
@@ -752,20 +1042,28 @@ order (the shadow's output, not the shipped grammar's, is what the golden
752
1042
  records). The floor predicate rides the same runner rather than a fixture pair —
753
1043
  it is a sourced function, not a gate: `index-tests/toolfloor-cases.sh` sources
754
1044
  `lib/toolfloor.sh` and prints one line per (element, banner) pair, so the closed
755
- verdict set, the three spellings of an unconstrained member, and the
1045
+ verdict set, the spellings of an unconstrained member, and the
756
1046
  `uncomparable` fail-closed arm are asserted against a golden rather than assumed.
1047
+ The audience axis is pinned in a second table in the same file, printing the
1048
+ parsed field and the consumer-side predicate per element rather than a verdict,
1049
+ because no verdict reads that field: its present, empty and omitted forms are
1050
+ each a case, the emptiness rule being the part of the grammar a reader is
1051
+ likeliest to get wrong.
757
1052
  The runner registers as its own evidence-kit validate suite
758
1053
  (`index_tests`, the `demo` precedent): the golden the refactor leans on now
759
- has an automated validate-stage consumer. `footprint.sh` is advisory the same way, but its
1054
+ has an automated validate-stage consumer. The footprint emitter is advisory the same way, but its
760
1055
  projection is gated rather than runner-tested: `check-footprint-fresh` byte-holds
761
1056
  `docs/footprint.md` against `--emit`. `check-brevity`, `check-settings-pins`,
762
1057
  `check-memory-off`, and `check-footprint-fresh` are gates and carry the standard
763
1058
  fixture pair; the footprint pair drives the hermetic two-argument mode
764
1059
  (`<projection> <emit>`), the `check-trajectory-fresh` precedent. Both
765
- memory-off gates take a `--fixture <dir>` injection (the check-identity
766
- precedent): the settings-pins pair reads `<dir>/settings.json` against
767
- `<dir>/settings-pins.conf`; the memory-off pair scans `<dir>/memory` for
768
- content. Two direct unit tests hold the axes the pairs fix and so cannot
1060
+ memory-off pairs reach their subject differently, and the difference is the
1061
+ point: the settings-pins pair takes a `--fixture <dir>` injection (the
1062
+ check-identity precedent) reading `<dir>/settings.json` against
1063
+ `<dir>/settings-pins.conf`, while the memory-off pair drives
1064
+ `CONTEXT_KIT_MEMORY_DIRS` from its own case-dir config, because that member's
1065
+ fixture arm was deleted for being a code path its live arm never took.
1066
+ Three direct unit tests hold the axes the pairs fix and so cannot
769
1067
  express: `check-brevity.test.sh` holds the unmatched-section resolution (the
770
1068
  pair fixes `CONTEXT_KIT_BREVITY_SECTION` at the stock default and always
771
1069
  supplies a file carrying it, so neither case can express a section that
@@ -773,7 +1071,11 @@ resolves to nothing — an unmatched section is exit 2, a broken machine rather
773
1071
  than a clean tree). The memory-off local-override axis — an untracked
774
1072
  `settings.local.json` that re-enables a pinned key past an empty dir — cannot
775
1073
  be a good/bad pair (the pair fixes the dir axis), so `check-memory-off.test.sh`
776
- holds it.
1074
+ holds it. `check-settings-pins.test.sh` holds the **refusal** axis: the pair
1075
+ fixes the holds-vs-mismatch axis (exit 0 vs exit 1) alone, so a pin outside
1076
+ the documented path grammar — a jq filter, an iteration, a slice, an array
1077
+ literal — needs its own case to prove the refusal is exit 2, loud and naming
1078
+ the pin, the knob and the construct, never a silent clean verdict.
777
1079
 
778
1080
  `smoke/install.sh` copies the templates into the scratch consumer (config
779
1081
  into the gates dir, hook wiring into the harness settings), runs the hook
@@ -795,8 +1097,8 @@ mechanics (gate-sdk/SPEC.md §Consumer smoke), converts its agent file from
795
1097
  `CLAUDE.md` to `AGENTS.md`, sets the agent-file knobs in the consumer's config
796
1098
  seams (`GATE_SDK_AGENT_FILE`, `LIFECYCLE_KIT_AGENT_FILE`, `DOCTRINE_KIT_AGENT_FILE`,
797
1099
  `CANON_KIT_MANIFEST_FILES`, `CONTEXT_KIT_SURFACES`, `CONTEXT_KIT_BREVITY_FILE`),
798
- then asserts the battery is green, `always-loaded.sh` and `footprint.sh` measure
799
- the `AGENTS.md` surface, and `check-root-tiering`'s built-in allowlist accepts
1100
+ then asserts the battery is green, `always-loaded.sh` and the footprint emitter
1101
+ measure the `AGENTS.md` surface, and `check-root-tiering`'s built-in allowlist accepts
800
1102
  `AGENTS.md` at root while rejecting a stray second agent file. It is a standalone
801
1103
  harness — not driven by `run-consumer-smoke.sh`, which asserts the kit defaults
802
1104
  under zero config — and registers as its own evidence-kit validate suite