checkwright 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (489) hide show
  1. package/README.md +1013 -50
  2. package/lib/common/digest.sh +18 -0
  3. package/lib/common/lock.sh +40 -0
  4. package/lib/common/profile.sh +33 -0
  5. package/lib/common/recipe.sh +56 -43
  6. package/lib/diff.sh +64 -0
  7. package/lib/doctor.sh +81 -7
  8. package/lib/init.sh +167 -52
  9. package/lib/uninstall.sh +212 -0
  10. package/lib/update.sh +34 -0
  11. package/package.json +2 -2
  12. package/payload/artifact/targets.list +30 -0
  13. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  14. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -0
  15. package/payload/canon-kit/README.md +2 -0
  16. package/payload/canon-kit/SPEC.md +666 -59
  17. package/payload/canon-kit/checks/check-amendment-queue.sh +1 -0
  18. package/payload/canon-kit/checks/check-comment-tier.gate +3 -0
  19. package/payload/canon-kit/checks/check-deprecation-task.gate +3 -0
  20. package/payload/canon-kit/checks/check-docs-cmd.gate +3 -0
  21. package/payload/canon-kit/checks/check-docs-link-convention.sh +12 -4
  22. package/payload/canon-kit/checks/check-install-claim.gate +3 -0
  23. package/payload/canon-kit/checks/check-knob-citation.gate +3 -0
  24. package/payload/canon-kit/checks/check-knob-default-coupling.sh +1 -0
  25. package/payload/canon-kit/checks/check-manifest-count.gate +3 -0
  26. package/payload/canon-kit/checks/check-manifest-temporal.gate +3 -0
  27. package/payload/canon-kit/checks/check-md-refs.gate +3 -0
  28. package/payload/canon-kit/checks/check-measured-claim.gate +3 -0
  29. package/payload/canon-kit/checks/check-payload-claim.gate +3 -0
  30. package/payload/canon-kit/checks/check-prose-enum.gate +3 -0
  31. package/payload/canon-kit/checks/check-prose-tells.sh +1 -0
  32. package/payload/canon-kit/checks/check-spec-derivable-section.gate +3 -0
  33. package/payload/canon-kit/checks/check-spec-dod-singleton.gate +3 -0
  34. package/payload/canon-kit/checks/check-spec-embedded-source.sh +1 -0
  35. package/payload/canon-kit/checks/check-spec-fence-balance.gate +3 -0
  36. package/payload/canon-kit/checks/check-spec-pointer.gate +3 -0
  37. package/payload/canon-kit/checks/check-surface-duplication.sh +1 -0
  38. package/payload/canon-kit/checks/check-todo-task-liveness.gate +3 -0
  39. package/payload/canon-kit/checks/check-tracking-claim.gate +3 -0
  40. package/payload/canon-kit/gate-tests/check-comment-tier/bad/.workflow/fixture-state.txt +4 -0
  41. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.gate +4 -0
  42. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.rs +5 -0
  43. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +4 -0
  44. package/payload/canon-kit/gate-tests/check-comment-tier/bad/templates/bad-tmpl.sh +4 -0
  45. package/payload/canon-kit/gate-tests/check-comment-tier/good/.workflow/fixture-state.txt +3 -0
  46. package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
  47. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +4 -0
  48. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +5 -0
  49. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
  50. package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
  51. package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +29 -5
  52. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
  53. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
  54. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
  55. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
  56. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
  57. package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
  58. package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
  59. package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
  60. package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
  61. package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
  62. package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
  63. package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
  64. package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
  65. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/OUTSIDE.md +4 -0
  66. package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/index.md +3 -0
  67. package/payload/canon-kit/gate-tests/check-docs-link-convention/good/OUTSIDE.md +4 -0
  68. package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/methodology.md +8 -0
  69. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +94 -0
  70. package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
  71. package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +4 -0
  72. package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +32 -8
  73. package/payload/canon-kit/gate-tests/check-md-refs.test.sh +61 -9
  74. package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +12 -0
  75. package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +3 -0
  76. package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +6 -0
  77. package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +23 -0
  78. package/payload/canon-kit/gate-tests/check-measured-claim/good/expect.txt +1 -0
  79. package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +6 -0
  80. package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +90 -0
  81. package/payload/canon-kit/gate-tests/check-payload-claim/bad/README.md +15 -0
  82. package/payload/canon-kit/gate-tests/check-payload-claim/bad/expect.txt +2 -0
  83. package/payload/canon-kit/gate-tests/check-payload-claim/bad/install.md +19 -0
  84. package/payload/canon-kit/gate-tests/check-payload-claim/bad/posts/note.md +6 -0
  85. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +8 -0
  86. package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/payload-claims.sh +7 -0
  87. package/payload/canon-kit/gate-tests/check-payload-claim/good/README.md +15 -0
  88. package/payload/canon-kit/gate-tests/check-payload-claim/good/expect.txt +2 -0
  89. package/payload/canon-kit/gate-tests/check-payload-claim/good/install.md +20 -0
  90. package/payload/canon-kit/gate-tests/check-payload-claim/good/posts/note.md +6 -0
  91. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +8 -0
  92. package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/payload-claims.sh +7 -0
  93. package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +27 -4
  94. package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +21 -7
  95. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/.workflow/fixture-state.txt +2 -0
  96. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.gate +2 -0
  97. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +4 -0
  98. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +4 -0
  99. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/templates/tmpl.sh +5 -0
  100. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/widget.sh +1 -0
  101. package/payload/canon-kit/gate-tests/check-spec-pointer/good/.workflow/fixture-state.txt +2 -0
  102. package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
  103. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.gate +2 -0
  104. package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +4 -0
  105. package/payload/canon-kit/gate-tests/check-spec-pointer/good/templates/tmpl.sh +5 -0
  106. package/payload/canon-kit/gate-tests/check-spec-pointer/good/widget.sh +1 -0
  107. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/.workflow/fixture-state.txt +3 -0
  108. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.gate +2 -0
  109. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.rs +4 -0
  110. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +3 -0
  111. package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/templates/tmpl.sh +5 -0
  112. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/.workflow/fixture-state.txt +3 -0
  113. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -1
  114. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.gate +2 -0
  115. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.rs +4 -0
  116. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/templates/tmpl.sh +5 -0
  117. package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -2
  118. package/payload/canon-kit/lib/spec.sh +109 -70
  119. package/payload/canon-kit/smoke/install.sh +21 -1
  120. package/payload/canon-kit/templates/SPEC-amendment.md +9 -2
  121. package/payload/context-kit/README.md +4 -1
  122. package/payload/context-kit/SPEC.md +166 -9
  123. package/payload/context-kit/bin/env-probe.sh +19 -6
  124. package/payload/context-kit/checks/check-brevity.sh +1 -0
  125. package/payload/context-kit/checks/check-footprint-fresh.sh +1 -0
  126. package/payload/context-kit/checks/check-memory-off.sh +1 -0
  127. package/payload/context-kit/checks/check-settings-paths.sh +94 -0
  128. package/payload/context-kit/checks/check-settings-pins.sh +1 -0
  129. package/payload/context-kit/gate-tests/check-settings-paths/bad/args +1 -0
  130. package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
  131. package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +12 -0
  132. package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/real-tool.sh +4 -0
  133. package/payload/context-kit/gate-tests/check-settings-paths/good/args +1 -0
  134. package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +1 -0
  135. package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
  136. package/payload/context-kit/gate-tests/check-settings-paths/good/tools/real-tool.sh +4 -0
  137. package/payload/context-kit/index-tests/expected/toolfloor.txt +9 -0
  138. package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
  139. package/payload/context-kit/lib/toolfloor.sh +15 -4
  140. package/payload/context-kit/smoke/agents-md.sh +12 -1
  141. package/payload/context-kit/smoke/install.sh +4 -1
  142. package/payload/delegation-kit/README.md +3 -3
  143. package/payload/delegation-kit/SPEC.md +499 -26
  144. package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +97 -0
  145. package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +1 -0
  146. package/payload/delegation-kit/checks/check-gate-tamper.sh +2 -1
  147. package/payload/delegation-kit/checks/check-rule-citation.sh +1 -0
  148. package/payload/delegation-kit/lib/delegation.sh +1 -0
  149. package/payload/delegation-kit/smoke/install.sh +2 -1
  150. package/payload/delegation-kit/templates/agent-dispatch-guard.sh +61 -0
  151. package/payload/delegation-kit/templates/agent-execution.md +127 -12
  152. package/payload/delegation-kit/templates/delegation-config.sh +4 -0
  153. package/payload/delegation-kit/templates/dispatch-checklists.md +1 -1
  154. package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
  155. package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +30 -0
  156. package/payload/doctrine-kit/DOCTRINE.md +112 -11
  157. package/payload/doctrine-kit/README.md +12 -3
  158. package/payload/doctrine-kit/SPEC.md +163 -11
  159. package/payload/doctrine-kit/bin/install-doctrine.sh +167 -17
  160. package/payload/doctrine-kit/checks/check-doctrine-registration.sh +41 -11
  161. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +3 -0
  162. package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +3 -0
  163. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +82 -2
  164. package/payload/doctrine-kit/smoke/install.sh +167 -1
  165. package/payload/drift-kit/README.md +3 -2
  166. package/payload/drift-kit/SPEC.md +264 -22
  167. package/payload/drift-kit/bin/kfric.sh +21 -2
  168. package/payload/drift-kit/bin/stage-economics.sh +157 -3
  169. package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +42 -0
  170. package/payload/drift-kit/smoke/install.sh +183 -1
  171. package/payload/drift-kit/templates/economics.md +9 -0
  172. package/payload/drift-kit/templates/kpis.list +6 -1
  173. package/payload/evidence-kit/README.md +20 -6
  174. package/payload/evidence-kit/SPEC.md +355 -17
  175. package/payload/evidence-kit/bin/run-validate.sh +51 -9
  176. package/payload/evidence-kit/checks/check-battery-roster.sh +87 -0
  177. package/payload/evidence-kit/checks/check-evidence-baseline.sh +1 -0
  178. package/payload/evidence-kit/checks/check-evidence-manifest.sh +1 -0
  179. package/payload/evidence-kit/checks/check-producer-liveness.sh +35 -0
  180. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/args +1 -0
  181. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/expect.txt +1 -0
  182. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/runner.md +14 -0
  183. package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +7 -0
  184. package/payload/evidence-kit/gate-tests/check-battery-roster/good/args +1 -0
  185. package/payload/evidence-kit/gate-tests/check-battery-roster/good/expect.txt +1 -0
  186. package/payload/evidence-kit/gate-tests/check-battery-roster/good/runner.md +14 -0
  187. package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +7 -0
  188. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +68 -0
  189. package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/args +1 -0
  190. package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/expect.txt +1 -0
  191. package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/run-validate.lock +1 -0
  192. package/payload/evidence-kit/gate-tests/check-producer-liveness/good/args +1 -0
  193. package/payload/evidence-kit/gate-tests/check-producer-liveness/good/expect.txt +2 -0
  194. package/payload/evidence-kit/gate-tests/check-producer-liveness/good/run-validate.lock +1 -0
  195. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +109 -0
  196. package/payload/evidence-kit/lib/evidence.sh +18 -0
  197. package/payload/evidence-kit/smoke/install.sh +17 -3
  198. package/payload/gate-sdk/README.md +17 -1
  199. package/payload/gate-sdk/SPEC.md +4427 -92
  200. package/payload/gate-sdk/bin/build-native.sh +38 -0
  201. package/payload/gate-sdk/bin/enforcement-map.sh +2 -1
  202. package/payload/gate-sdk/bin/gen-pre-commit.sh +32 -2
  203. package/payload/gate-sdk/bin/port-blockers.sh +445 -0
  204. package/payload/gate-sdk/bin/run-consumer-smoke.sh +129 -2
  205. package/payload/gate-sdk/bin/run-gate-tests.sh +61 -9
  206. package/payload/gate-sdk/bin/run-gates.sh +37 -2
  207. package/payload/gate-sdk/bin/upgrade-smoke.sh +55 -7
  208. package/payload/gate-sdk/checks/check-action-gh-repo.gate +3 -0
  209. package/payload/gate-sdk/checks/check-action-pinning.gate +3 -0
  210. package/payload/gate-sdk/checks/check-action-run-shell.sh +4 -1
  211. package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
  212. package/payload/gate-sdk/checks/check-commit-msg.sh +1 -0
  213. package/payload/gate-sdk/checks/check-commit-subject.sh +1 -0
  214. package/payload/gate-sdk/checks/check-core-files.sh +28 -4
  215. package/payload/gate-sdk/checks/check-crate-arms.sh +61 -0
  216. package/payload/gate-sdk/checks/check-enforcement-fresh.sh +1 -0
  217. package/payload/gate-sdk/checks/check-exec-bit.sh +21 -1
  218. package/payload/gate-sdk/checks/check-gate-assertions.sh +31 -6
  219. package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +107 -0
  220. package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +7 -7
  221. package/payload/gate-sdk/checks/check-gate-fail-closed.sh +1 -0
  222. package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +1 -0
  223. package/payload/gate-sdk/checks/check-gate-output.sh +41 -3
  224. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +333 -0
  225. package/payload/gate-sdk/checks/check-graph.sh +5 -5
  226. package/payload/gate-sdk/checks/check-hook-exec-bit.sh +1 -0
  227. package/payload/gate-sdk/checks/check-identity.sh +1 -0
  228. package/payload/gate-sdk/checks/check-install-disposition.sh +92 -0
  229. package/payload/gate-sdk/checks/check-kit-enum.sh +1 -0
  230. package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
  231. package/payload/gate-sdk/checks/check-readme-roster.sh +6 -0
  232. package/payload/gate-sdk/checks/check-reads-couples.sh +71 -21
  233. package/payload/gate-sdk/checks/check-root-tiering.sh +1 -0
  234. package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
  235. package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
  236. package/payload/gate-sdk/checks/check-template-copy-parity.sh +1 -0
  237. package/payload/gate-sdk/checks/check-template-registry-parity.gate +3 -0
  238. package/payload/gate-sdk/checks/check-test-hermetic.gate +3 -0
  239. package/payload/gate-sdk/checks/check-tree-terms.sh +1 -0
  240. package/payload/gate-sdk/checks/check-workflow-tiering.sh +2 -1
  241. package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +16 -1
  242. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +64 -0
  243. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +7 -0
  244. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +12 -0
  245. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +5 -0
  246. package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +2 -0
  247. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +7 -0
  248. package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +11 -0
  249. package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +2 -0
  250. package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +2 -0
  251. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
  252. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/args +2 -0
  253. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/expect.txt +5 -0
  254. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/kitroot/checks/check-vendored.gate +2 -0
  255. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/check-ported.gate +2 -0
  256. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +2 -0
  257. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gates.list +4 -0
  258. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stamp.txt +1 -0
  259. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stub-bin +6 -0
  260. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/args +2 -0
  261. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/expect.txt +5 -0
  262. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/kitroot/checks/check-vendored.gate +2 -0
  263. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/check-ported.gate +2 -0
  264. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +2 -0
  265. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gates.list +4 -0
  266. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stamp.txt +1 -0
  267. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stub-bin +5 -0
  268. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +81 -0
  269. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +3 -1
  270. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +3 -1
  271. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/gates/check-sample.sh +3 -1
  272. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +1 -0
  273. package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-native-sample.gate +3 -0
  274. package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-sample.sh +1 -0
  275. package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +3 -0
  276. package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +1 -0
  277. package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/Cargo.toml +4 -0
  278. package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/src/gates/native_sample.rs +7 -0
  279. package/payload/gate-sdk/gate-tests/check-gate-output/good/check-native-sample.gate +3 -0
  280. package/payload/gate-sdk/gate-tests/check-gate-output/good/check-sample.sh +1 -0
  281. package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
  282. package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +1 -0
  283. package/payload/gate-sdk/gate-tests/check-gate-output/good/native/Cargo.toml +4 -0
  284. package/payload/gate-sdk/gate-tests/check-gate-output/good/native/src/gates/native_sample.rs +11 -0
  285. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +111 -0
  286. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/args +2 -0
  287. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/conservation.md +7 -0
  288. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +12 -0
  289. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/impl/gate.rs +2 -0
  290. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/check-orphan.rs +3 -0
  291. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/publish.yml +15 -0
  292. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +3 -0
  293. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-dup.gate +1 -0
  294. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-dup.sh +3 -0
  295. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +1 -0
  296. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +6 -0
  297. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +3 -0
  298. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +3 -0
  299. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/targets.list +3 -0
  300. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/args +2 -0
  301. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/conservation.md +8 -0
  302. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +7 -0
  303. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/impl/gate.rs +2 -0
  304. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kitroot/check-other.rs +3 -0
  305. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/publish.yml +15 -0
  306. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +3 -0
  307. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-ported.gate +2 -0
  308. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +6 -0
  309. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +2 -0
  310. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +3 -0
  311. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/targets.list +2 -0
  312. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +184 -0
  313. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
  314. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
  315. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
  316. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
  317. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
  318. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
  319. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
  320. package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
  321. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
  322. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
  323. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
  324. package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
  325. package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
  326. package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
  327. package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
  328. package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -0
  329. package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +6 -5
  330. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +139 -0
  331. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/templates/widgets.list +4 -0
  332. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/widgets/widget-one.sh +3 -0
  333. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/widgets/widget-two.sh +3 -0
  334. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +4 -0
  335. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +1 -0
  336. package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/scripts/gate-sdk-config.sh +5 -0
  337. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/templates/widgets.list +4 -0
  338. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/widgets/widget-one.sh +3 -0
  339. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/widgets/widget-two.sh +3 -0
  340. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +8 -0
  341. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/beta-kit/templates/rules.list +5 -0
  342. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/beta-kit/templates/table.tsv +4 -0
  343. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -0
  344. package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +5 -0
  345. package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
  346. package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +4 -4
  347. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +151 -1
  348. package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
  349. package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +144 -0
  350. package/payload/gate-sdk/lib/consumer-smoke.sh +41 -4
  351. package/payload/gate-sdk/lib/gate.sh +208 -9
  352. package/payload/gate-sdk/lib/inject.sh +46 -1
  353. package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
  354. package/payload/gate-sdk/smoke/install.sh +61 -1
  355. package/payload/guard-kit/README.md +18 -14
  356. package/payload/guard-kit/SPEC.md +366 -72
  357. package/payload/guard-kit/bin/compare-settings-allow.sh +40 -7
  358. package/payload/guard-kit/bin/run-guard-tests.sh +1 -0
  359. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +64 -0
  360. package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
  361. package/payload/guard-kit/guard-tests/cases.tsv +49 -7
  362. package/payload/guard-kit/lib/guard.sh +277 -54
  363. package/payload/guard-kit/templates/close-triage.md +38 -10
  364. package/payload/guard-kit/templates/guard-config.sh +3 -0
  365. package/payload/guard-kit/templates/settings-hooks.json +7 -1
  366. package/payload/lifecycle-kit/README.md +12 -1
  367. package/payload/lifecycle-kit/SPEC.md +991 -41
  368. package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
  369. package/payload/lifecycle-kit/bin/enter-stage.sh +139 -13
  370. package/payload/lifecycle-kit/bin/file-gap.sh +60 -2
  371. package/payload/lifecycle-kit/bin/file-survey.sh +69 -0
  372. package/payload/lifecycle-kit/checks/check-close-surfaces.sh +1 -0
  373. package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +3 -0
  374. package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +3 -0
  375. package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +3 -0
  376. package/payload/lifecycle-kit/checks/check-merge-attrs.gate +3 -0
  377. package/payload/lifecycle-kit/checks/check-scratch-citation.gate +3 -0
  378. package/payload/lifecycle-kit/checks/check-shim-restatement.gate +3 -0
  379. package/payload/lifecycle-kit/checks/check-skill-binding.gate +3 -0
  380. package/payload/lifecycle-kit/checks/check-stage-entry.sh +1 -0
  381. package/payload/lifecycle-kit/checks/check-stage-evidence.gate +3 -0
  382. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +3 -0
  383. package/payload/lifecycle-kit/checks/check-survey-record.gate +3 -0
  384. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -2
  385. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/args +2 -0
  386. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +3 -0
  387. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +5 -0
  388. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/args +2 -0
  389. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/expect.txt +1 -0
  390. package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/gap-inbox.md +4 -0
  391. package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +2 -3
  392. package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +2 -3
  393. package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +1 -0
  394. package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +1 -0
  395. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +3 -3
  396. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/expect.txt +1 -0
  397. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +4 -0
  398. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/surfaces/queue.md +13 -0
  399. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/expect.txt +1 -0
  400. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +4 -0
  401. package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +31 -0
  402. package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +2 -3
  403. package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +2 -3
  404. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +2 -3
  405. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +9 -5
  406. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/args +2 -0
  407. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +4 -0
  408. package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +18 -0
  409. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/args +2 -0
  410. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -0
  411. package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +13 -0
  412. package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +83 -0
  413. package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +122 -0
  414. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
  415. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +102 -0
  416. package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
  417. package/payload/lifecycle-kit/lib/stages.sh +12 -2
  418. package/payload/lifecycle-kit/smoke/install.sh +83 -4
  419. package/payload/lifecycle-kit/templates/consult.md +73 -0
  420. package/payload/lifecycle-kit/templates/lead.md +139 -7
  421. package/payload/lifecycle-kit/templates/stages/align.md +12 -0
  422. package/payload/lifecycle-kit/templates/stages/build.md +8 -0
  423. package/payload/lifecycle-kit/templates/stages/close.md +45 -5
  424. package/payload/lifecycle-kit/templates/stages/scope.md +42 -3
  425. package/payload/lifecycle-kit/templates/stages/spec.md +13 -1
  426. package/payload/lifecycle-kit/templates/stages/validate.md +8 -0
  427. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
  428. package/payload/queue-kit/README.md +6 -1
  429. package/payload/queue-kit/SPEC.md +350 -6
  430. package/payload/queue-kit/bin/queue-counts.sh +35 -0
  431. package/payload/queue-kit/bin/queue-edges.sh +78 -0
  432. package/payload/queue-kit/checks/check-queue-entry-budget.gate +3 -0
  433. package/payload/queue-kit/checks/check-queue-hygiene.gate +3 -0
  434. package/payload/queue-kit/checks/check-queue-prose-precondition.sh +1 -0
  435. package/payload/queue-kit/checks/check-queue-sections.gate +3 -0
  436. package/payload/queue-kit/checks/check-queue-slug-liveness.gate +3 -0
  437. package/payload/queue-kit/checks/check-queue-wrap.gate +3 -0
  438. package/payload/queue-kit/checks/check-roadmap-fresh.sh +1 -0
  439. package/payload/queue-kit/checks/check-tag-lead-line.gate +3 -0
  440. package/payload/queue-kit/checks/check-task-conservation.gate +4 -0
  441. package/payload/queue-kit/checks/check-task-names.gate +3 -0
  442. package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +5 -0
  443. package/payload/queue-kit/gate-tests/queue-counts.test.sh +116 -0
  444. package/payload/queue-kit/gate-tests/queue-edges.test.sh +130 -0
  445. package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
  446. package/payload/queue-kit/lib/queue.sh +4 -19
  447. package/payload/queue-kit/smoke/install.sh +4 -1
  448. package/payload/queue-kit/templates/TASK-QUEUE.md +3 -0
  449. package/payload/site-kit/SPEC.md +64 -27
  450. package/payload/site-kit/checks/check-docs-cname-parity.sh +1 -0
  451. package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
  452. package/payload/site-kit/smoke/install.sh +9 -1
  453. package/profiles.list +36 -8
  454. package/payload/canon-kit/checks/check-comment-tier.sh +0 -211
  455. package/payload/canon-kit/checks/check-deprecation-task.sh +0 -90
  456. package/payload/canon-kit/checks/check-docs-cmd.sh +0 -153
  457. package/payload/canon-kit/checks/check-install-claim.sh +0 -146
  458. package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
  459. package/payload/canon-kit/checks/check-manifest-count.sh +0 -46
  460. package/payload/canon-kit/checks/check-manifest-temporal.sh +0 -83
  461. package/payload/canon-kit/checks/check-md-refs.sh +0 -128
  462. package/payload/canon-kit/checks/check-prose-enum.sh +0 -115
  463. package/payload/canon-kit/checks/check-spec-derivable-section.sh +0 -69
  464. package/payload/canon-kit/checks/check-spec-dod-singleton.sh +0 -45
  465. package/payload/canon-kit/checks/check-spec-fence-balance.sh +0 -42
  466. package/payload/canon-kit/checks/check-spec-pointer.sh +0 -180
  467. package/payload/canon-kit/checks/check-todo-task-liveness.sh +0 -80
  468. package/payload/canon-kit/checks/check-tracking-claim.sh +0 -136
  469. package/payload/gate-sdk/checks/check-action-gh-repo.sh +0 -321
  470. package/payload/gate-sdk/checks/check-action-pinning.sh +0 -55
  471. package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
  472. package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
  473. package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
  474. package/payload/gate-sdk/checks/check-test-hermetic.sh +0 -119
  475. package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +0 -98
  476. package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +0 -54
  477. package/payload/lifecycle-kit/checks/check-merge-attrs.sh +0 -69
  478. package/payload/lifecycle-kit/checks/check-shim-restatement.sh +0 -97
  479. package/payload/lifecycle-kit/checks/check-skill-binding.sh +0 -59
  480. package/payload/lifecycle-kit/checks/check-stage-evidence.sh +0 -81
  481. package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +0 -47
  482. package/payload/queue-kit/checks/check-queue-entry-budget.sh +0 -104
  483. package/payload/queue-kit/checks/check-queue-hygiene.sh +0 -81
  484. package/payload/queue-kit/checks/check-queue-sections.sh +0 -44
  485. package/payload/queue-kit/checks/check-queue-slug-liveness.sh +0 -63
  486. package/payload/queue-kit/checks/check-queue-wrap.sh +0 -56
  487. package/payload/queue-kit/checks/check-tag-lead-line.sh +0 -70
  488. package/payload/queue-kit/checks/check-task-conservation.sh +0 -50
  489. package/payload/queue-kit/checks/check-task-names.sh +0 -128
@@ -244,18 +244,38 @@ the array `PROBE_SET` and the predicate below and executes nothing else. It
244
244
  carries no knob, deliberately: the roster is the kit's own dependency set, and a
245
245
  consumer who could override it could only make the contract lie.
246
246
 
247
- A roster element reads `<name>[:<min-version>[:<impl-token>]]`. A bare name keeps
247
+ A roster element reads `<name>[:<min-version>[:<impl-token>[:<audience>]]]`. A
248
+ bare name keeps
248
249
  the original meaning — must be present, no version constraint — so the floor axis
249
250
  is **per-member** rather than a number demanded of every member. The fields are
250
251
  positional, so a member constrained by implementation alone carries an empty
251
252
  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
253
+ field means: `awk`, `awk:`, `awk::` and `awk:::` are one unconstrained member. **A member
253
254
  gains a floor only where a construct the battery actually runs forces one**, and
254
255
  the forcing construct is recorded with it — a floor nobody's code forces is not
255
256
  pinned, which is what stops a version number from rotting into an aspiration
256
257
  (de-literalization applied to a version: the value is owned where the constraint
257
258
  is provable).
258
259
 
260
+ **The audience axis.** The fourth field names *whose* floor a member is, because
261
+ the roster has two kinds of reader and one flat array gated both of them on all
262
+ of it. Its value set is closed and kit-owned exactly as the floor predicate's
263
+ verdict set is: the only declarable value is `contributor`, meaning *a
264
+ contributor-side floor with no install-time role*. The unmarked case is not
265
+ spelled — declaring the complement on every other member would be a roster
266
+ maintained against itself — so the emptiness rule above carries it: an empty or
267
+ omitted audience means every audience. `tool_floor_consumer_side <element>`
268
+ answers the one question a consumer-side reader asks, and exists so no such
269
+ reader re-implements that rule against a value set it does not own. A
270
+ consumer-side reader — `installer/lib/doctor.sh`, whose exit status is `init`'s
271
+ last precondition — filters its roster walk through that predicate and does not
272
+ probe, render or fail on a member the predicate excludes. A contributor-side
273
+ reader — `bin/env-probe.sh` — walks the roster whole and marks the audience
274
+ instead, since a contributor-side floor is exactly what it is reporting on.
275
+ The field is a grammar axis rather than a filter in the reader that needs it,
276
+ because a hard-coded exception is a literal de-literalization forbids and one
277
+ that re-fires the day a second contributor-only member lands.
278
+
259
279
  The constrained members and what forces each:
260
280
 
261
281
  - `bash:4.3` — the floor is set by the **highest** construct the battery runs,
@@ -263,8 +283,10 @@ The constrained members and what forces each:
263
283
  (gate-sdk, guard-kit, delegation-kit, evidence-kit checks), `mapfile` (across
264
284
  the kits), the `${x,,}` case expansion (canon-kit's `lib/spec.sh` and checks, a
265
285
  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
286
+ them: `gate-sdk/lib/gate.sh`'s couples expander, which every gate sources. The
287
+ leaf gate that carried the second instance, `check-comment-tier`, has since
288
+ ported to the binary substrate and its script is gone — which changes nothing
289
+ about the floor, because the nameref in the shared gate
268
290
  library makes 4.3 universal rather than one leaf gate's requirement, so a
269
291
  consumer below it cannot run the battery at all. Recorded here because the
270
292
  earlier `4.0` was a fail-open: `env-probe` reported `ok` on a 4.2 box the
@@ -282,6 +304,28 @@ The constrained members and what forces each:
282
304
  the battery at all rather than failing one gate. The representative member is
283
305
  the binary carrying a forcing construct, which is also the floor predicate's
284
306
  own comparison tool.
307
+ - `cargo:1.56::contributor` — a **contributor-side** floor, never a runtime one,
308
+ and that reading is now declared on the element and read by name rather than
309
+ left as an aside: the audience field is what the consumer-side predicate
310
+ above resolves, so the sentence is enforced instead of merely written. It
311
+ carries
312
+ two tiers because two kinds of tree read it. Where a `.gate` descriptor is live
313
+ it is a **commit-time** floor — `gate_command` puts the binary on the pre-commit
314
+ path and is fail-closed on an absent one, so the battery will not run without a
315
+ built crate (gate-sdk/SPEC.md §What the dispatch seam does not settle); that is
316
+ this repo today, its first cohort having landed. Everywhere else it stays the weaker
317
+ **contributor/build** floor: a consumer tree receives a prebuilt binary and never
318
+ a crate, so nothing there compiles at commit time. Both tiers rest on the same
319
+ forcing fact —
320
+ the `native/` crate's `edition = "2021"`, the first edition rustc accepts at
321
+ 1.56. `cargo` is the member rather than `rustc` because `cargo build` is what the
322
+ contributor routine and the `gates` workflow actually invoke, and the two ship as
323
+ one toolchain sharing a version banner — the representative-member rule the
324
+ `sort::coreutils` entry above states. The floor tracks the edition the crate
325
+ declares, not whatever rustc a given box happens to carry; pinning the latter
326
+ would be exactly the aspiration this section's rule forbids. Runtime is
327
+ unaffected: git remains the sole runtime dependency of a ported gate, shelled out
328
+ rather than embedded (TRAJECTORY.md §The closed rulings owns that constraint).
285
329
  Every other member is a bare name — no construct in the battery forces a version
286
330
  on it (the `jq` usage is 1.5-era throughout), so none is pinned.
287
331
 
@@ -306,7 +350,12 @@ not one.
306
350
  **The rendered verdict.** Each toolchain bullet carries the probed banner and,
307
351
  for a constrained member, the constraint and its verdict — `` (floor 4.3, ok) ``,
308
352
  `` (requires GNU — below contract) ``, `` (floor 4.3 — unverified) ``; an
309
- unconstrained member carries no parenthetical. A `**Below contract:**` line joins
353
+ unconstrained member carries no parenthetical. A member carrying an audience
354
+ carries it here too, as `` (floor 1.56, contributor-only, ok) ``, and every line
355
+ that names such a member is marked the same way — the absent list and the
356
+ below-contract list included, because those are the two lines on which *below a
357
+ floor that is yours* and *below a floor you are not on the hook for* would
358
+ otherwise read alike. A `**Below contract:**` line joins
310
359
  the existing `**Absent:**` line, reading `none` when clean and otherwise naming
311
360
  each failing member through the verdict's own fields: `below` and `wrong-impl`
312
361
  are distinguished because the remedies differ — upgrade versus install a
@@ -565,6 +614,100 @@ legible drift a red is for. Absent pins file: the opt-in-off state, a clean
565
614
  skip. Ships a `good/`+`bad/` fixture pair and registers in the consumer's
566
615
  `gates.list` (this repo's included).
567
616
 
617
+ **What a pin is worth depends on which tiers can outrank the file it pins**, and
618
+ the gate reads exactly one tier. The harness resolves settings across five, in
619
+ order: managed policy, then command-line, then the untracked local settings file,
620
+ then the tracked settings file this gate reads, then the operator's user-level
621
+ file. Objects deep-merge; the exceptions that merge rather than override are the
622
+ permissions arrays, MCP servers, HTTP hook URLs and `fallbackModel` chains. Two
623
+ consequences the gate's own verdict does not carry. A pin **does** beat the
624
+ operator's user-level file, which is what makes a tracked pin meaningful at all
625
+ rather than a suggestion the machine can quietly ignore. And a pin is **beaten**
626
+ by three tiers above it, of which `check-memory-off` covers one — the local
627
+ settings overlay — leaving managed policy and command-line flags outside any
628
+ gate's reach. That residue is unclosable here rather than merely unbuilt: neither
629
+ tier leaves an artifact in the tree, and the command line does not exist until
630
+ the session starts.
631
+
632
+ ## check-settings-paths
633
+
634
+ `checks/check-settings-paths.sh` (hermetic, `precommit`) holds the second
635
+ invariant over the same tracked file: every entry in
636
+ `CONTEXT_KIT_SETTINGS_FILE`'s `permissions.allow[]` whose command token is a
637
+ **literal** repo-relative `.sh` path resolves in the working tree. The knob is
638
+ reused, not introduced — §check-settings-pins already owns it and its default.
639
+
640
+ The class it defends is a standing property of a gate port rather than a
641
+ one-time count: replacing a kit's `checks/<gate>.sh` with a `<gate>.gate`
642
+ descriptor strands every allow entry naming the old path, and this repo
643
+ accumulated such entries one cohort apart before the gate existed. A dead grant
644
+ breaks nothing — no command can reach it — so the cost is a permission roster
645
+ whose every reader must re-verify which lines still mean anything.
646
+
647
+ **The extraction predicate**, scoped against the shapes a permission array
648
+ actually carries. A candidate is taken only from an entry of the form
649
+ `Bash(<command>)`; leading `env NAME=VALUE` assignments and a `bash`/`sh`
650
+ interpreter word are skipped, and the first remaining token is the candidate. A
651
+ candidate not ending in `.sh` is out of scope — a bare command names no path,
652
+ and a non-`.sh` path entry (a log truncation, a scratch removal) names a
653
+ runtime-created gitignored path whose absence is its ordinary state, so
654
+ existence is the wrong predicate for it. A candidate **containing `*`** is a
655
+ pattern, intentionally polymorphic over files that need not exist today, and is
656
+ skipped. That rule is scoped to the *command token*, not the entry: this repo's
657
+ standing shape for a grant taking arguments is a bare entry beside a
658
+ `*`-suffixed twin, and the twin's path is as literal — and as strandable — as
659
+ the bare form's, so it stays in scope.
660
+
661
+ Splitting the grant into tokens must not expand it. An unquoted array
662
+ assignment would glob a pattern grant against the tree and then assert an
663
+ arbitrary first match, which greens the whole pattern class instead of skipping
664
+ it while leaving the checked count silently inflated; the implementation splits
665
+ with `read -ra`, which does not expand.
666
+
667
+ Dispositions: exit 1 lists each violating entry verbatim beside the path that
668
+ did not resolve, so the reader can repoint or drop the grant without re-deriving
669
+ which token was read. The clean line reports the **checked count**, which is
670
+ what distinguishes a predicate that scoped to the array from one that vacuously
671
+ matched nothing. Fail-closed (exit 2) on no `jq`, and on a settings file that is
672
+ unreadable or not JSON — the sibling gate reads the same file on the same terms,
673
+ and the file is this gate's sole subject rather than an opt-in manifest, so
674
+ there is no absent-surface skip to grant. A `--fixture <dir>` mode reads
675
+ `<dir>/settings.json` and resolves candidates against `<dir>`, which is the
676
+ hermetic mode the `good/`+`bad/` fixture pair drives.
677
+
678
+ The pair pins the scoping, not merely the verdict. `good/` carries every
679
+ skipped shape — pattern tokens, bare non-path commands, non-`.sh` paths —
680
+ alongside resolving literals in all three extraction shapes (bare,
681
+ `env`-prefixed, trailing-flag), and its expectation pins the **checked count**:
682
+ the pattern-expansion defect above passes an exit-code-only fixture, because an
683
+ expanded pattern resolves by construction, and is visible only in the count.
684
+ `bad/` carries a dead path in the bare, `*`-twin and `env`-prefixed shapes
685
+ beside one resolving grant, so a broken extraction arm shows as a missing
686
+ finding rather than a still-red exit.
687
+
688
+ Its `# graph:` manifest names the settings file as its subject and the check
689
+ script globs as a **reverse trigger** — a cohort deleting a ported gate's `.sh`
690
+ is exactly the edit that strands a grant, so it must re-run the gate. The
691
+ distinction is recorded because gate-sdk/SPEC.md's port criterion 4 turns on it,
692
+ and a later port reading that couple as content would misclassify the member.
693
+ The trigger is a partial route by construction: the generated hook reads staged
694
+ `ACMR` paths, so a *deleted* `.sh` never matches it. What the trigger catches is
695
+ the ordinary edit that strands a grant; what catches the cohort is the full
696
+ battery, which runs whole-tree with no trigger filter.
697
+
698
+ `jq` is not on `GATE_SDK_PROGRAM_FLOOR`, so this gate fails port criterion 7 the
699
+ day it lands and owes designed-away work at its port. That is recorded here
700
+ rather than discovered there: criterion 7 is an ordering signal, not an
701
+ eligibility screen, and hand-rolling a JSON-array scan over floor programs would
702
+ buy a fragile parser to dodge a dependency the sibling gate already carries on
703
+ the same file. One parsing story for the settings file across every reader in
704
+ the tree is worth more than the criterion.
705
+
706
+ **The gate is not the prune.** It reads the settings file and writes nothing,
707
+ but it reds the moment it registers on a tree carrying stranded entries, and the
708
+ settings file is operator-owned configuration a session may not edit. The
709
+ landing order is therefore fixed: the operator prunes, then the gate registers.
710
+
568
711
  ## check-memory-off
569
712
 
570
713
  `checks/check-memory-off.sh` (local-environment class, the check-identity
@@ -622,12 +765,15 @@ context-kit/
622
765
  bin/run-index-tests.sh # expected-output runner for the bin tools
623
766
  checks/check-brevity.sh
624
767
  checks/check-settings-pins.sh # hermetic: pins hold against the settings file
768
+ checks/check-settings-paths.sh # hermetic: literal .sh grants resolve in the tree
625
769
  checks/check-memory-off.sh # local-environment: memory dir + local overrides
626
770
  checks/check-footprint-fresh.sh # hermetic: docs/footprint.md byte-fresh vs the emitter
627
771
  gate-tests/check-brevity/{good,bad}/
628
772
  gate-tests/check-settings-pins/{good,bad}/
773
+ gate-tests/check-settings-paths/{good,bad}/
629
774
  gate-tests/check-memory-off/{good,bad}/
630
775
  gate-tests/check-footprint-fresh/{good,bad}/
776
+ gate-tests/check-brevity.test.sh # the unmatched-section axis the pair cannot hold
631
777
  gate-tests/check-memory-off.test.sh # the local-override axis the pair cannot hold
632
778
  index-tests/ # fixture corpus + expected outputs
633
779
  templates/session-context.sh # consumer copy: marked consumer sections
@@ -700,8 +846,9 @@ as defaults):
700
846
  - `CONTEXT_KIT_BREVITY_POINTER_RE` — the "cites a deeper doc" pattern;
701
847
  default `§`.
702
848
  - `CONTEXT_KIT_SETTINGS_FILE` — the tracked harness settings file
703
- check-settings-pins verifies and whose `.local.json` sibling check-memory-off
704
- scans; default `.claude/settings.json`.
849
+ check-settings-pins and check-settings-paths each verify, on a different
850
+ invariant, and whose `.local.json` sibling check-memory-off scans; default
851
+ `.claude/settings.json`.
705
852
  - `CONTEXT_KIT_SETTINGS_PINS` — the pins manifest; default
706
853
  `${GATE_SDK_GATES_DIR:-scripts}/settings-pins.conf`.
707
854
  - `CONTEXT_KIT_MEMORY_DIRS` — space-separated glob list of harness memory dirs
@@ -733,8 +880,13 @@ order (the shadow's output, not the shipped grammar's, is what the golden
733
880
  records). The floor predicate rides the same runner rather than a fixture pair —
734
881
  it is a sourced function, not a gate: `index-tests/toolfloor-cases.sh` sources
735
882
  `lib/toolfloor.sh` and prints one line per (element, banner) pair, so the closed
736
- verdict set, the three spellings of an unconstrained member, and the
883
+ verdict set, the spellings of an unconstrained member, and the
737
884
  `uncomparable` fail-closed arm are asserted against a golden rather than assumed.
885
+ The audience axis is pinned in a second table in the same file, printing the
886
+ parsed field and the consumer-side predicate per element rather than a verdict,
887
+ because no verdict reads that field: its present, empty and omitted forms are
888
+ each a case, the emptiness rule being the part of the grammar a reader is
889
+ likeliest to get wrong.
738
890
  The runner registers as its own evidence-kit validate suite
739
891
  (`index_tests`, the `demo` precedent): the golden the refactor leans on now
740
892
  has an automated validate-stage consumer. `footprint.sh` is advisory the same way, but its
@@ -746,7 +898,12 @@ fixture pair; the footprint pair drives the hermetic two-argument mode
746
898
  memory-off gates take a `--fixture <dir>` injection (the check-identity
747
899
  precedent): the settings-pins pair reads `<dir>/settings.json` against
748
900
  `<dir>/settings-pins.conf`; the memory-off pair scans `<dir>/memory` for
749
- content. The memory-off local-override axis — an untracked
901
+ content. Two direct unit tests hold the axes the pairs fix and so cannot
902
+ express: `check-brevity.test.sh` holds the unmatched-section resolution (the
903
+ pair fixes `CONTEXT_KIT_BREVITY_SECTION` at the stock default and always
904
+ supplies a file carrying it, so neither case can express a section that
905
+ resolves to nothing — an unmatched section is exit 2, a broken machine rather
906
+ than a clean tree). The memory-off local-override axis — an untracked
750
907
  `settings.local.json` that re-enables a pinned key past an empty dir — cannot
751
908
  be a good/bad pair (the pair fixes the dir axis), so `check-memory-off.test.sh`
752
909
  holds it.
@@ -65,15 +65,27 @@ for _pm in "${PM_CANDIDATES[@]}"; do
65
65
  fi
66
66
  done
67
67
 
68
+ # spec: context-kit/SPEC.md §bin/env-probe — the audience marker, spelled once and appended by every line that names a member, so a reader tells a floor that is theirs apart from one they are not on the hook for
69
+ audience_mark() { # $1 = roster element -> the audience word, empty for the every-audience default
70
+ tool_floor_parse "$1"
71
+ [[ -n "$TOOL_FLOOR_AUDIENCE" ]] || return 0
72
+ printf '%s-only' "$TOOL_FLOOR_AUDIENCE"
73
+ }
74
+
68
75
  # spec: context-kit/SPEC.md §bin/env-probe — renders the constrained member's parenthetical; an unconstrained member carries none, so the roster's optional axis stays optional on the page too
69
76
  render_floor() { # $1 = roster element, $2 = verdict -> the trailing parenthetical, empty when the member is unconstrained
70
- local desc=""
77
+ local desc="" mark
71
78
  tool_floor_parse "$1"
72
79
  [[ -n "$TOOL_FLOOR_MIN" ]] && desc="floor $TOOL_FLOOR_MIN"
73
80
  if [[ -n "$TOOL_FLOOR_IMPL" ]]; then
74
81
  [[ -n "$desc" ]] && desc+=", "
75
82
  desc+="requires $TOOL_FLOOR_IMPL"
76
83
  fi
84
+ mark="$(audience_mark "$1")"
85
+ if [[ -n "$mark" ]]; then
86
+ [[ -n "$desc" ]] && desc+=", "
87
+ desc+="$mark"
88
+ fi
77
89
  [[ -n "$desc" ]] || return 0
78
90
  case "$2" in
79
91
  ok) printf ' (%s, ok)' "$desc" ;;
@@ -88,19 +100,20 @@ below=()
88
100
  for _e in "${PROBE_SET[@]}"; do
89
101
  tool_floor_parse "$_e"
90
102
  _t="$TOOL_FLOOR_NAME"
103
+ _mark="$(audience_mark "$_e")"
91
104
  ver="$(probe_version "$_t")" || ver=""
92
105
  verdict="$(tool_floor_check "$_e" "$ver")"
93
106
  read -r _kind _found _floor <<<"$verdict"
94
107
  case "$_kind" in
95
- absent) absent+=("$_t"); continue ;;
96
- below) below+=("\`$_t\` (found $_found, floor $_floor)") ;;
97
- wrong-impl) below+=("\`$_t\` (found $_found, requires $TOOL_FLOOR_IMPL)") ;;
98
- uncomparable) below+=("\`$_t\` (unverified against floor $TOOL_FLOOR_MIN)") ;;
108
+ absent) absent+=("\`$_t\`${_mark:+ ($_mark)}"); continue ;;
109
+ below) below+=("\`$_t\` (found $_found, floor $_floor${_mark:+, $_mark})") ;;
110
+ wrong-impl) below+=("\`$_t\` (found $_found, requires $TOOL_FLOOR_IMPL${_mark:+, $_mark})") ;;
111
+ uncomparable) below+=("\`$_t\` (unverified against floor $TOOL_FLOOR_MIN${_mark:+, $_mark})") ;;
99
112
  esac
100
113
  tool_lines+=" - \`$_t\` — $ver$(render_floor "$_e" "$verdict")"$'\n'
101
114
  done
102
115
  absent_line="none"
103
- [[ ${#absent[@]} -gt 0 ]] && absent_line="$(printf '`%s` ' "${absent[@]}")"
116
+ [[ ${#absent[@]} -gt 0 ]] && absent_line="$(printf '%s ' "${absent[@]}")"
104
117
  below_line="none"
105
118
  if [[ ${#below[@]} -gt 0 ]]; then
106
119
  below_line="$(printf '%s; ' "${below[@]}")"
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=CLAUDE.md dir=one valve=none tier=precommit
3
+ # install: zero-config
3
4
  # spec: context-kit/SPEC.md §The brevity gate — over-budget bullets in the budgeted always-loaded section that cite a deeper doc
4
5
  set -uo pipefail
5
6
 
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=docs/footprint.md,CLAUDE.md,kit:templates/*.md,lifecycle-kit/templates/stages/*.md dir=one valve=none tier=precommit trigger=docs/footprint.md,CLAUDE.md,kit:templates/*.md,lifecycle-kit/templates/stages/*.md
3
+ # install: on-surface
3
4
  # spec: context-kit/SPEC.md §check-footprint-fresh — docs/footprint.md is the byte-fresh projection of footprint.sh --emit
4
5
  #
5
6
  # usage: check-footprint-fresh.sh [projection-file] [emit-file]
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=scripts/settings-pins.conf dir=one valve=none tier=precommit trigger=*
3
+ # install: on-surface
3
4
  # spec: context-kit/SPEC.md §check-memory-off — local-environment scan: the per-project harness memory dir stays empty and no local settings override re-enables a pinned key
4
5
  #
5
6
  # usage: check-memory-off.sh [--fixture <dir>]
@@ -0,0 +1,94 @@
1
+ #!/usr/bin/env bash
2
+ # graph: couples=.claude/settings.json,kit:checks/*.sh,scripts/check-*.sh dir=one valve=none tier=precommit
3
+ # install: on-surface
4
+ # spec: context-kit/SPEC.md §check-settings-paths — every committed allow-list entry whose command token is a literal repo-relative .sh path resolves in the working tree
5
+ #
6
+ # usage: check-settings-paths.sh [--fixture <dir>]
7
+ # live: reads CONTEXT_KIT_SETTINGS_FILE;
8
+ # --fixture <dir> reads <dir>/settings.json and resolves paths against <dir>
9
+ set -uo pipefail
10
+
11
+ KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
12
+ SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
13
+ # shellcheck source=../../gate-sdk/lib/gate.sh
14
+ source "$SDK/lib/gate.sh"
15
+
16
+ _ck_cfg="${CONTEXT_KIT_CONFIG_FILE:-}"
17
+ if [[ -n "$_ck_cfg" ]]; then
18
+ [[ -f "$_ck_cfg" ]] || {
19
+ echo "context-kit: CONTEXT_KIT_CONFIG_FILE not found: $_ck_cfg" >&2
20
+ exit 2
21
+ }
22
+ # shellcheck source=/dev/null # consumer config path is resolved at runtime
23
+ source "$_ck_cfg"
24
+ else
25
+ _ck_cfg="${GATE_SDK_GATES_DIR:-scripts}/context-config.sh"
26
+ if [[ -f "$_ck_cfg" ]]; then
27
+ # shellcheck source=/dev/null # consumer config path is resolved at runtime
28
+ source "$_ck_cfg"
29
+ fi
30
+ fi
31
+ unset _ck_cfg
32
+
33
+ FIXTURE_DIR=""
34
+ while [[ $# -gt 0 ]]; do
35
+ case "$1" in
36
+ --fixture) FIXTURE_DIR="${2:-}"; shift 2 ;;
37
+ -*) echo "check-settings-paths: unknown argument: $1" >&2; exit 2 ;;
38
+ *) echo "check-settings-paths: unexpected argument: $1" >&2; exit 2 ;;
39
+ esac
40
+ done
41
+
42
+ if [[ -n "$FIXTURE_DIR" ]]; then
43
+ [[ -d "$FIXTURE_DIR" ]] || { echo "check-settings-paths: fixture dir not found: $FIXTURE_DIR" >&2; exit 2; }
44
+ SETTINGS_FILE="$FIXTURE_DIR/settings.json"
45
+ ROOT="$FIXTURE_DIR"
46
+ else
47
+ : "${CONTEXT_KIT_SETTINGS_FILE:=.claude/settings.json}"
48
+ SETTINGS_FILE="$CONTEXT_KIT_SETTINGS_FILE"
49
+ ROOT="."
50
+ fi
51
+
52
+ command -v jq >/dev/null 2>&1 || { echo "check-settings-paths: jq not found — cannot read $SETTINGS_FILE" >&2; exit 2; }
53
+ # spec: context-kit/SPEC.md §check-settings-paths — the settings file is the sole subject and the sibling gate reads it on the same terms, so an absent or unparseable one is fail-closed here too, never a clean skip
54
+ [[ -r "$SETTINGS_FILE" ]] || { echo "check-settings-paths: settings file not readable: $SETTINGS_FILE" >&2; exit 2; }
55
+ jq -e . "$SETTINGS_FILE" >/dev/null 2>&1 || { echo "check-settings-paths: $SETTINGS_FILE is not valid JSON" >&2; exit 2; }
56
+
57
+ entries="$(jq -r '.permissions.allow[]? | select(type == "string")' "$SETTINGS_FILE")"; st=$?
58
+ fail_closed "$st" check-settings-paths jq
59
+
60
+ dead=(); checked=0
61
+ while IFS= read -r entry; do
62
+ [[ -n "$entry" ]] || continue
63
+ [[ "$entry" == 'Bash('*')' ]] || continue
64
+ inner="${entry#Bash(}"; inner="${inner%)}"
65
+ # spec: context-kit/SPEC.md §check-settings-paths — `read -ra` splits without pathname
66
+ # expansion: an unquoted array assignment would expand a pattern grant against the tree
67
+ # and check an arbitrary first match, which greens the glob class instead of skipping it
68
+ read -r -a tok <<<"$inner"
69
+ i=0
70
+ # spec: context-kit/SPEC.md §check-settings-paths — the command token is not always argv[0]: a grant may lead with `env NAME=VALUE ...` before the interpreter, and one on this tree does
71
+ if [[ "${tok[0]:-}" == env ]]; then
72
+ i=1
73
+ while [[ "$i" -lt "${#tok[@]}" && "${tok[$i]}" == [A-Za-z_]*=* ]]; do i=$((i + 1)); done
74
+ fi
75
+ if [[ "${tok[$i]:-}" == bash || "${tok[$i]:-}" == sh ]]; then i=$((i + 1)); fi
76
+ cand="${tok[$i]:-}"
77
+ [[ "$cand" == *.sh ]] || continue
78
+ # spec: context-kit/SPEC.md §check-settings-paths — a `*` in the command token makes it a pattern, intentionally polymorphic over files that need not exist today; the `*` twin of a literal grant is a separate token and stays in scope
79
+ [[ "$cand" == *'*'* ]] && continue
80
+ checked=$((checked + 1))
81
+ [[ -f "$ROOT/$cand" ]] || dead+=("$entry — no such file: $cand")
82
+ done <<<"$entries"
83
+
84
+ if [[ ${#dead[@]} -gt 0 ]]; then
85
+ echo "check-settings-paths: $SETTINGS_FILE grants a path that does not resolve in the tree:"
86
+ printf ' %s\n' "${dead[@]}"
87
+ echo " help: repoint each entry at the path that replaced it, or drop the entry if the"
88
+ echo " grant is spent — a port that replaces checks/<gate>.sh with <gate>.gate"
89
+ echo " strands both the bare form and its '*' twin."
90
+ exit 1
91
+ fi
92
+
93
+ echo "SETTINGS-PATHS: clean ($checked literal .sh grant(s) in $SETTINGS_FILE resolve)"
94
+ exit 0
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  # graph: couples=.claude/settings.json,scripts/settings-pins.conf dir=one valve=none tier=precommit
3
+ # install: on-surface
3
4
  # spec: context-kit/SPEC.md §check-settings-pins — every pin in the pins file holds against the tracked harness settings file
4
5
  #
5
6
  # usage: check-settings-pins.sh [--fixture <dir>]
@@ -0,0 +1,3 @@
1
+ Bash(bash tools/removed-gate.sh) — no such file: tools/removed-gate.sh
2
+ Bash(bash tools/removed-gate.sh *) — no such file: tools/removed-gate.sh
3
+ Bash(env DEMO_FLAG=1 bash tools/removed-gate.sh) — no such file: tools/removed-gate.sh
@@ -0,0 +1,12 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(bash tools/real-tool.sh)",
5
+ "Bash(bash tools/removed-gate.sh)",
6
+ "Bash(bash tools/removed-gate.sh *)",
7
+ "Bash(env DEMO_FLAG=1 bash tools/removed-gate.sh)",
8
+ "Bash(bash */checks/check-*.sh)",
9
+ "Bash(git add *)"
10
+ ]
11
+ }
12
+ }
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ # The one resolving grant in the bad case: the red must name the three dead
3
+ # entries and not this one, so the pair pins scoping as well as detection.
4
+ exit 0
@@ -0,0 +1 @@
1
+ SETTINGS-PATHS: clean (4 literal .sh grant(s)
@@ -0,0 +1,16 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(bash tools/real-tool.sh)",
5
+ "Bash(bash tools/real-tool.sh *)",
6
+ "Bash(env DEMO_FLAG=1 bash tools/real-tool.sh)",
7
+ "Bash(bash tools/real-tool.sh --write)",
8
+ "Bash(bash tools/*.sh)",
9
+ "Bash(bash */checks/check-*.sh)",
10
+ "Bash(git add *)",
11
+ "Bash(shellcheck *)",
12
+ "Bash(: > .workflow/prompt-friction.log)",
13
+ "Bash(rm .tmp/*)"
14
+ ]
15
+ }
16
+ }
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ # The resolving target the good case's literal grants point at. Never executed:
3
+ # the gate asserts the path exists and reads nothing from it.
4
+ exit 0
@@ -12,3 +12,12 @@ sort::coreutils | present (/usr/bin/sort) -> wrong-impl present
12
12
  bash:4.0 | GNU bash, no version here -> uncomparable
13
13
  bash:4.0:GNU | GNU bash, version 5.2.37(1)-release -> ok
14
14
  bash:4.0:GNU | bosh, version 3.1 -> wrong-impl bosh,
15
+ cargo:1.56::contributor | cargo 1.86.0 (adbf5df3f 2026-01-01) -> ok
16
+ cargo:1.56::contributor | cargo 1.40.0 -> below 1.40.0 1.56
17
+ cargo:1.56::contributor -> audience=contributor contributor-only
18
+ cargo:::contributor -> audience=contributor contributor-only
19
+ awk::GNU:contributor -> audience=contributor contributor-only
20
+ cargo:1.56:: -> audience=<empty> consumer-side
21
+ cargo:1.56 -> audience=<empty> consumer-side
22
+ cargo -> audience=<empty> consumer-side
23
+ awk::GNU -> audience=<empty> consumer-side
@@ -22,8 +22,28 @@ cases=(
22
22
  'bash:4.0|GNU bash, no version here'
23
23
  'bash:4.0:GNU|GNU bash, version 5.2.37(1)-release'
24
24
  'bash:4.0:GNU|bosh, version 3.1'
25
+ 'cargo:1.56::contributor|cargo 1.86.0 (adbf5df3f 2026-01-01)'
26
+ 'cargo:1.56::contributor|cargo 1.40.0'
25
27
  )
26
28
 
27
29
  for c in "${cases[@]}"; do
28
30
  printf '%s | %s -> %s\n' "${c%%|*}" "${c#*|}" "$(tool_floor_check "${c%%|*}" "${c#*|}")"
29
31
  done
32
+
33
+ # spec: context-kit/SPEC.md §Testing — the audience axis is pinned in its own table because no verdict reads it: these cases assert the fourth field's present, empty and omitted forms and the consumer-side predicate over each, the emptiness rule being the part a reader is likeliest to get wrong
34
+ audience_cases=(
35
+ 'cargo:1.56::contributor'
36
+ 'cargo:::contributor'
37
+ 'awk::GNU:contributor'
38
+ 'cargo:1.56::'
39
+ 'cargo:1.56'
40
+ 'cargo'
41
+ 'awk::GNU'
42
+ )
43
+
44
+ for c in "${audience_cases[@]}"; do
45
+ tool_floor_parse "$c"
46
+ aud="$TOOL_FLOOR_AUDIENCE"
47
+ if tool_floor_consumer_side "$c"; then side="consumer-side"; else side="contributor-only"; fi
48
+ printf '%s -> audience=%s %s\n' "$c" "${aud:-<empty>}" "$side"
49
+ done
@@ -1,24 +1,35 @@
1
1
  # shellcheck shell=bash
2
2
  # spec: context-kit/SPEC.md §bin/env-probe — sourceable owner of the probe roster and its floor predicate; defines names and executes nothing, so a second reader obtains the roster by sourcing instead of grepping a script that does its work on execution
3
3
 
4
- # spec: context-kit/SPEC.md §bin/env-probe — the roster, `<name>[:<min-version>[:<impl-token>]]`; a member gains a floor only where a construct the battery runs forces one, and the SPEC records that construct beside the token
4
+ # spec: context-kit/SPEC.md §bin/env-probe — the roster, `<name>[:<min-version>[:<impl-token>[:<audience>]]]`; a member gains a floor only where a construct the battery runs forces one, and the SPEC records that construct beside the token
5
5
  # shellcheck disable=SC2034 # read by whoever sources this file (bin/env-probe.sh), never here
6
- PROBE_SET=(bash:4.3 git jq awk::GNU sort::coreutils shellcheck)
6
+ PROBE_SET=(bash:4.3 git jq awk::GNU sort::coreutils shellcheck cargo:1.56::contributor)
7
7
 
8
- # spec: context-kit/SPEC.md §bin/env-probe — positional fields, an empty field meaning unconstrained on that axis exactly as an omitted trailing one does, so `awk`, `awk:` and `awk::` parse to one member
9
- tool_floor_parse() { # $1 = roster element -> TOOL_FLOOR_NAME / _MIN / _IMPL
8
+ # spec: context-kit/SPEC.md §bin/env-probe — positional fields, an empty field meaning unconstrained on that axis exactly as an omitted trailing one does, so `awk`, `awk:`, `awk::` and `awk:::` parse to one member
9
+ tool_floor_parse() { # $1 = roster element -> TOOL_FLOOR_NAME / _MIN / _IMPL / _AUDIENCE
10
10
  local elem="$1" rest
11
11
  TOOL_FLOOR_NAME="${elem%%:*}"
12
12
  rest="${elem#"$TOOL_FLOOR_NAME"}"
13
13
  rest="${rest#:}"
14
14
  TOOL_FLOOR_MIN="${rest%%:*}"
15
15
  TOOL_FLOOR_IMPL=""
16
+ TOOL_FLOOR_AUDIENCE=""
16
17
  if [[ "$rest" == *:* ]]; then
17
18
  rest="${rest#*:}"
18
19
  TOOL_FLOOR_IMPL="${rest%%:*}"
20
+ if [[ "$rest" == *:* ]]; then
21
+ rest="${rest#*:}"
22
+ TOOL_FLOOR_AUDIENCE="${rest%%:*}"
23
+ fi
19
24
  fi
20
25
  }
21
26
 
27
+ # spec: context-kit/SPEC.md §bin/env-probe — the audience predicate: `contributor` is the only declarable value and an empty field means every audience, so a consumer-side reader asks this instead of re-implementing the emptiness rule against a value set it does not own
28
+ tool_floor_consumer_side() { # $1 = roster element -> 0 when the member is part of the consumer-side floor
29
+ tool_floor_parse "$1"
30
+ [[ "$TOOL_FLOOR_AUDIENCE" != contributor ]]
31
+ }
32
+
22
33
  tool_floor_version() { # $1 = version banner -> its first dotted-version token, empty when it carries none
23
34
  [[ "$1" =~ ([0-9]+(\.[0-9]+)+) ]] && printf '%s' "${BASH_REMATCH[1]}"
24
35
  }
@@ -36,7 +36,7 @@ cleanup() {
36
36
  }
37
37
  trap cleanup EXIT
38
38
 
39
- csmoke_vendor_and_install "${roots[@]}" || exit 2
39
+ csmoke_vendor_and_install "$(dirname "$SDK")" "${roots[@]}" || exit 2
40
40
 
41
41
  # comment-tier-exempt: the installers write the consumer's agent file as CLAUDE.md; the smoke converts it to AGENTS.md and points each kit's agent-file knob at it, as an AGENTS.md adopter would
42
42
  [[ -f "$SCRATCH/CLAUDE.md" ]] || fail "the installed baseline wrote no CLAUDE.md to convert"
@@ -74,6 +74,17 @@ battery_env=(
74
74
  CANON_KIT_CONFIG_FILE="scripts/canon-config.sh"
75
75
  )
76
76
 
77
+ # spec: gate-sdk/SPEC.md §gen-pre-commit — each kit's own install.sh already wrote the hook
78
+ # and CHECK-GRAPH.html, but that write ran before canon-config.sh existed, so the baked
79
+ # '# graph:' derivation used canon-kit's bare default rather than the AGENTS.md-widened
80
+ # manifest set battery_env now carries. Regenerate under the same env the battery runs
81
+ # with, or check-graph reds the AGENTS.md consumer on a hook stale by construction.
82
+ ( cd "$SCRATCH" && env "${battery_env[@]}" bash gate-sdk/bin/gen-pre-commit.sh --write >/dev/null )
83
+ ( cd "$SCRATCH" && env "${battery_env[@]}" bash gate-sdk/checks/check-graph.sh --emit > scripts/CHECK-GRAPH.html )
84
+ git -C "$SCRATCH" add -A
85
+ git -C "$SCRATCH" -c user.email=smoke@example.invalid -c user.name=smoke \
86
+ commit -q --no-verify -m "regenerate the hook + graph artifact under the AGENTS.md config"
87
+
77
88
  run_battery() { ( cd "$SCRATCH" && env "${battery_env[@]}" bash gate-sdk/bin/run-gates.sh ) 2>&1; }
78
89
 
79
90
  out="$(run_battery)"; rc=$?
@@ -8,6 +8,9 @@ SDK="$SMOKE_KIT_ROOT/../gate-sdk" # the vendored gate-sdk beside this kit
8
8
  cat >> scripts/gates.list <<'EOF'
9
9
  # context-kit
10
10
  check-brevity
11
+ check-memory-off
12
+ check-settings-pins
13
+ check-settings-paths
11
14
  EOF
12
15
 
13
16
  cp "$SMOKE_KIT_ROOT/templates/context-config.sh" scripts/context-config.sh
@@ -35,7 +38,7 @@ qtpl="$SMOKE_KIT_ROOT/../queue-kit/templates/TASK-QUEUE.md"
35
38
  [[ -f TASK-QUEUE.md || ! -f "$qtpl" ]] || cp "$qtpl" TASK-QUEUE.md
36
39
 
37
40
  bash "$SDK/bin/gen-pre-commit.sh" --write >/dev/null
38
- bash "$SDK/checks/check-graph.sh" --emit > .workflow/CHECK-GRAPH.html
41
+ bash "$SDK/checks/check-graph.sh" --emit > scripts/CHECK-GRAPH.html
39
42
 
40
43
  hook_out="$(bash scripts/session-context.sh 2>/dev/null)"; rc=$?
41
44
  if [[ "$rc" -ne 0 ]]; then
@@ -49,9 +49,9 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
49
49
  verdict call refreshes the snapshot on demand (or wire the same poller under
50
50
  a timer), keeping it fresh while a supervising session sits static, or
51
51
  have any producer honour the snapshot contract (SPEC §The usage.txt contract).
52
- The statusline producer also renders a status bar (context + both rate windows +
53
- iteration@stage); the three mandatory snapshot lines are the floor, and
54
- supplying the optional weekly keys arms the second (7-day) pause axis.
52
+ The statusline producer also renders a status bar, whose field set is
53
+ SPEC §The statusline template's; the three mandatory snapshot lines are the
54
+ floor, and supplying the optional weekly keys arms the second (7-day) pause axis.
55
55
 
56
56
  4. Optional — wire the Agent budget guard: copy `templates/agent-budget-guard.sh`
57
57
  into your gates dir and register it under `PreToolUse` matcher `Agent` in