checkwright 0.23.0 → 0.25.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 (375) hide show
  1. package/README.md +175 -13
  2. package/lib/common/lock.sh +7 -0
  3. package/lib/common/recipe.sh +1 -1
  4. package/lib/diff.sh +2 -0
  5. package/lib/init.sh +40 -16
  6. package/lib/uninstall.sh +2 -0
  7. package/package.json +2 -2
  8. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  9. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  10. package/payload/canon-kit/README.md +2 -0
  11. package/payload/canon-kit/SPEC.md +454 -28
  12. package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
  13. package/payload/canon-kit/checks/check-amendment-update-target.gate +3 -0
  14. package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
  15. package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
  16. package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
  17. package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
  18. package/payload/canon-kit/checks/check-unmarked-claim.gate +3 -0
  19. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
  20. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
  21. package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
  22. package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/SPEC-thing.md +26 -0
  23. package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/expect.txt +8 -0
  24. package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +47 -0
  25. package/payload/canon-kit/gate-tests/check-amendment-update-target/good/expect.txt +1 -0
  26. package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +82 -0
  27. package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
  28. package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
  29. package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
  30. package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
  31. package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
  32. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
  33. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
  34. package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
  35. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
  36. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
  37. package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
  38. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +11 -0
  39. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +3 -0
  40. package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +6 -0
  41. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +18 -0
  42. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/expect.txt +1 -0
  43. package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +6 -0
  44. package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +85 -0
  45. package/payload/canon-kit/lib/spec.sh +16 -0
  46. package/payload/canon-kit/smoke/install.sh +3 -1
  47. package/payload/canon-kit/templates/SPEC-amendment.md +17 -2
  48. package/payload/context-kit/README.md +6 -4
  49. package/payload/context-kit/SPEC.md +256 -76
  50. package/payload/context-kit/bin/always-loaded.sh +5 -21
  51. package/payload/context-kit/bin/env-probe.sh +2 -17
  52. package/payload/context-kit/checks/check-brevity.gate +3 -0
  53. package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
  54. package/payload/context-kit/checks/check-memory-off.gate +3 -0
  55. package/payload/context-kit/checks/check-settings-paths.gate +3 -0
  56. package/payload/context-kit/checks/check-settings-pins.gate +3 -0
  57. package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
  58. package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
  59. package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
  60. package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
  61. package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
  62. package/payload/context-kit/index-tests/expected/toolfloor.txt +5 -5
  63. package/payload/context-kit/index-tests/toolfloor-cases.sh +5 -5
  64. package/payload/context-kit/lib/context.sh +56 -0
  65. package/payload/context-kit/lib/toolfloor.sh +1 -1
  66. package/payload/context-kit/smoke/agents-md.sh +16 -4
  67. package/payload/context-kit/smoke/install.sh +3 -2
  68. package/payload/context-kit/templates/session-context.sh +5 -5
  69. package/payload/delegation-kit/README.md +11 -1
  70. package/payload/delegation-kit/SPEC.md +652 -11
  71. package/payload/delegation-kit/bin/wait-probe.sh +184 -0
  72. package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
  73. package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
  74. package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
  75. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
  76. package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
  77. package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
  78. package/payload/delegation-kit/gate-tests/subagent-stop-liveness.test.sh +99 -0
  79. package/payload/delegation-kit/smoke/install.sh +21 -1
  80. package/payload/delegation-kit/templates/agent-execution.md +88 -4
  81. package/payload/delegation-kit/templates/subagent-stop-liveness.sh +56 -0
  82. package/payload/doctrine-kit/SPEC.md +1 -1
  83. package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
  84. package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +2 -3
  85. package/payload/doctrine-kit/smoke/install.sh +17 -4
  86. package/payload/drift-kit/README.md +2 -2
  87. package/payload/drift-kit/SPEC.md +71 -7
  88. package/payload/drift-kit/bin/stage-economics.sh +1 -1
  89. package/payload/drift-kit/lib/drift.sh +43 -0
  90. package/payload/drift-kit/smoke/install.sh +21 -14
  91. package/payload/evidence-kit/README.md +3 -1
  92. package/payload/evidence-kit/SPEC.md +160 -19
  93. package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
  94. package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
  95. package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
  96. package/payload/evidence-kit/checks/check-producer-liveness.sh +42 -2
  97. package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
  98. package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
  99. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
  100. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
  101. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
  102. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
  103. package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
  104. package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
  105. package/payload/evidence-kit/lib/evidence.sh +2 -0
  106. package/payload/evidence-kit/smoke/install.sh +1 -1
  107. package/payload/gate-sdk/README.md +17 -9
  108. package/payload/gate-sdk/SPEC.md +4680 -295
  109. package/payload/gate-sdk/bin/build-native.sh +66 -1
  110. package/payload/gate-sdk/bin/install-hooks.sh +14 -2
  111. package/payload/gate-sdk/bin/port-blockers.sh +37 -9
  112. package/payload/gate-sdk/bin/run-gate-tests.sh +1 -2
  113. package/payload/gate-sdk/bin/run-gates.sh +137 -13
  114. package/payload/gate-sdk/bin/upgrade-smoke.sh +21 -16
  115. package/payload/gate-sdk/checks/check-action-run-shell.sh +2 -1
  116. package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
  117. package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
  118. package/payload/gate-sdk/checks/check-core-files.gate +3 -0
  119. package/payload/gate-sdk/checks/check-crate-arms.sh +1 -0
  120. package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
  121. package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
  122. package/payload/gate-sdk/checks/check-gate-assertions.gate +3 -0
  123. package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
  124. package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
  125. package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
  126. package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
  127. package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
  128. package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +132 -15
  129. package/payload/gate-sdk/checks/check-graph.gate +3 -0
  130. package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
  131. package/payload/gate-sdk/checks/check-identity.gate +3 -0
  132. package/payload/gate-sdk/checks/check-install-disposition.sh +1 -0
  133. package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
  134. package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
  135. package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
  136. package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
  137. package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
  138. package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
  139. package/payload/gate-sdk/checks/check-tree-terms.gate +3 -0
  140. package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
  141. package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
  142. package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
  143. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
  144. package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
  145. package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
  146. package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
  147. package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
  148. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +5 -1
  149. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +22 -0
  150. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-count.sh +11 -0
  151. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-extra.sh +14 -0
  152. package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-zero.sh +7 -0
  153. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
  154. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +27 -0
  155. package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-qux.sh +13 -0
  156. package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +117 -0
  157. package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
  158. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
  159. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
  160. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
  161. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
  162. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
  163. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
  164. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
  165. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
  166. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
  167. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
  168. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
  169. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
  170. package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
  171. package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +4 -5
  172. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +9 -0
  173. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kit-spec.md +6 -0
  174. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
  175. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
  176. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
  177. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
  178. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-nospec.sh +4 -0
  179. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
  180. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
  181. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-ungrounded.sh +5 -0
  182. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +6 -0
  183. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
  184. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kit-spec.md +12 -0
  185. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
  186. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +5 -0
  187. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
  188. package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +49 -4
  189. package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
  190. package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
  191. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
  192. package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
  193. package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
  194. package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
  195. package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
  196. package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
  197. package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
  198. package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
  199. package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
  200. package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
  201. package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
  202. package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
  203. package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
  204. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
  205. package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
  206. package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
  207. package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
  208. package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
  209. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
  210. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
  211. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
  212. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
  213. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
  214. package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
  215. package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
  216. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
  217. package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
  218. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
  219. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
  220. package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
  221. package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
  222. package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
  223. package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
  224. package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
  225. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +5 -0
  226. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/multi.txt +4 -0
  227. package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/second-leak.txt +2 -0
  228. package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
  229. package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
  230. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +4 -0
  231. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +2 -0
  232. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +3 -0
  233. package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/worktrees/vendored-note.txt +3 -0
  234. package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +94 -0
  235. package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
  236. package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
  237. package/payload/gate-sdk/gate-tests/lib-gate.test.sh +94 -1
  238. package/payload/gate-sdk/lib/gate.sh +232 -25
  239. package/payload/gate-sdk/smoke/install.sh +28 -1
  240. package/payload/guard-kit/README.md +4 -3
  241. package/payload/guard-kit/SPEC.md +578 -47
  242. package/payload/guard-kit/bin/compare-settings-allow.sh +36 -12
  243. package/payload/guard-kit/bin/run-guard-tests.sh +27 -4
  244. package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +46 -1
  245. package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
  246. package/payload/guard-kit/guard-tests/background-cases.tsv +14 -0
  247. package/payload/guard-kit/guard-tests/cases.tsv +67 -9
  248. package/payload/guard-kit/lib/guard.sh +361 -18
  249. package/payload/guard-kit/templates/bash-guard.sh +2 -0
  250. package/payload/guard-kit/templates/close-triage.md +10 -3
  251. package/payload/guard-kit/templates/guard-config.sh +3 -0
  252. package/payload/lifecycle-kit/README.md +3 -2
  253. package/payload/lifecycle-kit/SPEC.md +509 -77
  254. package/payload/lifecycle-kit/bin/enter-stage.sh +72 -33
  255. package/payload/lifecycle-kit/bin/file-gap.sh +2 -2
  256. package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
  257. package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
  258. package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
  259. package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -1
  260. package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
  261. package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
  262. package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +22 -22
  263. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
  264. package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
  265. package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +120 -10
  266. package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
  267. package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +11 -11
  268. package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
  269. package/payload/lifecycle-kit/lib/stages.sh +5 -0
  270. package/payload/lifecycle-kit/smoke/install.sh +29 -15
  271. package/payload/lifecycle-kit/templates/lead.md +32 -0
  272. package/payload/lifecycle-kit/templates/stages/align.md +20 -2
  273. package/payload/lifecycle-kit/templates/stages/build.md +3 -3
  274. package/payload/lifecycle-kit/templates/stages/close.md +20 -6
  275. package/payload/lifecycle-kit/templates/stages/scope.md +20 -1
  276. package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
  277. package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
  278. package/payload/lifecycle-kit/templates/workflow-state-guard.sh +1 -1
  279. package/payload/queue-kit/README.md +10 -10
  280. package/payload/queue-kit/SPEC.md +379 -84
  281. package/payload/queue-kit/bin/queue-counts.sh +1 -1
  282. package/payload/queue-kit/checks/check-queue-entry-budget.gate +1 -1
  283. package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
  284. package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
  285. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
  286. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
  287. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
  288. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
  289. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
  290. package/payload/queue-kit/gate-tests/queue-counts.test.sh +1 -1
  291. package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
  292. package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
  293. package/payload/queue-kit/lib/queue.sh +0 -49
  294. package/payload/queue-kit/smoke/install.sh +1 -1
  295. package/payload/site-kit/SPEC.md +41 -2
  296. package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
  297. package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
  298. package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
  299. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
  300. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
  301. package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
  302. package/payload/site-kit/smoke/install.sh +1 -1
  303. package/payload/canon-kit/checks/check-amendment-queue.sh +0 -117
  304. package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -79
  305. package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -240
  306. package/payload/canon-kit/checks/check-prose-tells.sh +0 -208
  307. package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -134
  308. package/payload/context-kit/bin/footprint.sh +0 -144
  309. package/payload/context-kit/checks/check-brevity.sh +0 -124
  310. package/payload/context-kit/checks/check-footprint-fresh.sh +0 -39
  311. package/payload/context-kit/checks/check-memory-off.sh +0 -113
  312. package/payload/context-kit/checks/check-settings-paths.sh +0 -94
  313. package/payload/context-kit/checks/check-settings-pins.sh +0 -111
  314. package/payload/context-kit/gate-tests/check-memory-off/bad/args +0 -1
  315. package/payload/context-kit/gate-tests/check-memory-off/good/args +0 -1
  316. package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -62
  317. package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -140
  318. package/payload/delegation-kit/checks/check-rule-citation.sh +0 -77
  319. package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -246
  320. package/payload/drift-kit/bin/trajectory.sh +0 -242
  321. package/payload/evidence-kit/checks/check-battery-roster.sh +0 -87
  322. package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -104
  323. package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -105
  324. package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
  325. package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
  326. package/payload/gate-sdk/bin/enforcement-map.sh +0 -273
  327. package/payload/gate-sdk/checks/check-commit-msg.sh +0 -51
  328. package/payload/gate-sdk/checks/check-commit-subject.sh +0 -44
  329. package/payload/gate-sdk/checks/check-core-files.sh +0 -76
  330. package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -38
  331. package/payload/gate-sdk/checks/check-exec-bit.sh +0 -96
  332. package/payload/gate-sdk/checks/check-gate-assertions.sh +0 -148
  333. package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -107
  334. package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -106
  335. package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -85
  336. package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -93
  337. package/payload/gate-sdk/checks/check-gate-output.sh +0 -103
  338. package/payload/gate-sdk/checks/check-graph.sh +0 -632
  339. package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -46
  340. package/payload/gate-sdk/checks/check-identity.sh +0 -135
  341. package/payload/gate-sdk/checks/check-kit-enum.sh +0 -95
  342. package/payload/gate-sdk/checks/check-readme-roster.sh +0 -108
  343. package/payload/gate-sdk/checks/check-reads-couples.sh +0 -200
  344. package/payload/gate-sdk/checks/check-root-tiering.sh +0 -67
  345. package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -127
  346. package/payload/gate-sdk/checks/check-tree-terms.sh +0 -66
  347. package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -85
  348. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
  349. package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
  350. package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
  351. package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
  352. package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
  353. package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -64
  354. package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -198
  355. package/payload/queue-kit/bin/queue-index.sh +0 -182
  356. package/payload/queue-kit/bin/roadmap.sh +0 -76
  357. package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -64
  358. package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -111
  359. package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -81
  360. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
  361. /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
  362. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
  363. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  364. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  365. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
  366. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
  367. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
  368. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
  369. /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
  370. /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
  371. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
  372. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
  373. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
  374. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
  375. /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
@@ -1,134 +0,0 @@
1
- #!/usr/bin/env bash
2
- # graph: couples=*SPEC*.md,*.rs,*.toml,*.sql,*.rego,*.ts,*.tsx,*.yaml,*.yml,*.proto,*.sh,Dockerfile dir=one valve=none tier=precommit
3
- # install: zero-config
4
- # spec: canon-kit/SPEC.md §check-spec-embedded-source — a canonical spec's fenced block must not verbatim-copy a tracked source file
5
- set -uo pipefail
6
-
7
- KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
8
- SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
9
- # shellcheck source=../../gate-sdk/lib/gate.sh
10
- source "$SDK/lib/gate.sh"
11
- # shellcheck source=../lib/spec.sh
12
- source "$KIT/lib/spec.sh"
13
-
14
- ROOT="${1:-.}"
15
- [[ -d "$ROOT" ]] || { echo "check-spec-embedded-source: scan root not found: $ROOT" >&2; exit 2; }
16
-
17
- declare -A LANG2KIND EXT2KIND BASE2KIND
18
- find_globs=()
19
- for entry in "${CANON_KIT_EMBED_LANGS[@]}"; do
20
- IFS='|' read -r kind aliases globs <<<"$entry"
21
- IFS=',' read -ra al <<<"$aliases"
22
- for a in "${al[@]}"; do [[ -n "$a" ]] && LANG2KIND["$a"]="$kind"; done
23
- IFS=',' read -ra gl <<<"$globs"
24
- for g in "${gl[@]}"; do
25
- [[ -n "$g" ]] || continue
26
- find_globs+=("$g")
27
- if [[ "$g" == \*.* ]]; then EXT2KIND["${g#*.}"]="$kind"; else BASE2KIND["$g"]="$kind"; fi
28
- done
29
- done
30
- for l in "${CANON_KIT_EMBED_ILLUSTRATIVE[@]}"; do unset "LANG2KIND[$l]"; done
31
-
32
- langmap=""; for k in "${!LANG2KIND[@]}"; do langmap+="$k=${LANG2KIND[$k]} "; done
33
- extmap=""; for k in "${!EXT2KIND[@]}"; do extmap+="$k=${EXT2KIND[$k]} "; done
34
- basemap=""; for k in "${!BASE2KIND[@]}"; do basemap+="$k=${BASE2KIND[$k]} "; done
35
-
36
- find_expr=(); first=1
37
- for g in "${find_globs[@]}"; do
38
- if (( first )); then find_expr+=( -name "$g" ); first=0
39
- else find_expr+=( -o -name "$g" ); fi
40
- done
41
- mapfile -t candidates < <(gate_find "$ROOT" \( "${find_expr[@]}" \) -type f 2>/dev/null | sed 's#^\./##' | sort -u)
42
- mapfile -t amendfiles < <(spec_amendments "$ROOT" | sed 's#^\./##' | sort -u)
43
- mapfile -t specs < <( { spec_canonical_specs "$ROOT"; printf '%s\n' "${amendfiles[@]+"${amendfiles[@]}"}"; } | sed 's#^\./##' | grep -v '^$' | sort -u )
44
-
45
- [[ ${#specs[@]} -eq 0 ]] && { echo "SPEC-EMBEDDED-SOURCE: clean (0 spec files found)"; exit 0; }
46
-
47
- amendset=""; for a in "${amendfiles[@]+"${amendfiles[@]}"}"; do amendset+="$a"$'\n'; done
48
-
49
- flagged="$(awk -v threshold="$CANON_KIT_EMBED_THRESHOLD" -v minlines="$CANON_KIT_EMBED_MINLINES" \
50
- -v langmap="$langmap" -v extmap="$extmap" -v basemap="$basemap" \
51
- -v amendset="$amendset" -v wirekind="$CANON_KIT_EMBED_WIRE_KIND" '
52
- function trim(s) { gsub(/^[[:space:]]+|[[:space:]]+$/, "", s); return s }
53
- function trivial(s) {
54
- return (s == "" || s == "{" || s == "}" || s == "(" || s == ")" || \
55
- s == "..." || s == "};" || s == "});" || s == "//" || s == "#")
56
- }
57
- function file_kind(fn, b, e) {
58
- b = fn; sub(/.*\//, "", b)
59
- if (b in basekind) return basekind[b]
60
- e = b; sub(/.*\./, "", e)
61
- return (e in extkind) ? extkind[e] : ""
62
- }
63
- function lang_kind(l) { return (l in langkind) ? langkind[l] : "" }
64
- function emit_block( l, parts, i, f, best, bestf, frac, nd) {
65
- if (blkkind == "" || nb < minlines) return
66
- # spec: canon-kit/SPEC.md §check-spec-embedded-source — amendment wire-delta exemption
67
- if (blkkind == wirekind && is_amendment) return
68
- nd = 0; for (l in bl) nd++
69
- if (nd < minlines) return
70
- delete hits
71
- for (l in bl) {
72
- if (!(l in idx)) continue
73
- split(idx[l], parts, "\x01")
74
- for (i in parts) if (parts[i] != "" && fkind[parts[i]] == blkkind) hits[parts[i]]++
75
- }
76
- best = 0; bestf = ""
77
- for (f in hits) { frac = hits[f] / nd; if (frac > best) { best = frac; bestf = f } }
78
- if (best + 0.0 >= threshold + 0.0)
79
- printf " %s:%d [%s] ~%d%% of %d lines copied from %s\n", \
80
- FILENAME, blkstart, blklang, int(best * 100 + 0.5), nd, bestf
81
- }
82
- BEGIN {
83
- n = split(langmap, a, " "); for (i = 1; i <= n; i++) if (a[i] != "") { split(a[i], kv, "="); langkind[kv[1]] = kv[2] }
84
- n = split(extmap, a, " "); for (i = 1; i <= n; i++) if (a[i] != "") { split(a[i], kv, "="); extkind[kv[1]] = kv[2] }
85
- n = split(basemap, a, " "); for (i = 1; i <= n; i++) if (a[i] != "") { split(a[i], kv, "="); basekind[kv[1]] = kv[2] }
86
- n = split(amendset, a, "\n"); for (i = 1; i <= n; i++) if (a[i] != "") amend[a[i]] = 1
87
- }
88
- FNR == 1 {
89
- is_spec = (FILENAME ~ /SPEC[^/]*\.md$/)
90
- is_amendment = (FILENAME in amend)
91
- infence = 0; lastnb = ""
92
- }
93
- !is_spec {
94
- s = trim($0)
95
- if (trivial(s)) next
96
- if (!(s SUBSEP FILENAME in seen)) { seen[s SUBSEP FILENAME] = 1; idx[s] = idx[s] "\x01" FILENAME }
97
- if (!(FILENAME in fkind)) fkind[FILENAME] = file_kind(FILENAME)
98
- next
99
- }
100
- {
101
- if (!infence) {
102
- if ($0 ~ /^[[:space:]]*```[[:space:]]*[A-Za-z+]*[[:space:]]*$/) {
103
- lang = $0; sub(/^[[:space:]]*```[[:space:]]*/, "", lang); lang = tolower(trim(lang))
104
- skipblock = (lastnb ~ /spec-embedded-source-exempt:/) ? 1 : 0
105
- infence = 1; blklang = lang; blkkind = lang_kind(lang)
106
- blkstart = FNR; nb = 0; delete bl
107
- next
108
- }
109
- if (trim($0) != "") lastnb = $0
110
- next
111
- }
112
- if ($0 ~ /^[[:space:]]*```[[:space:]]*$/) {
113
- if (!skipblock) emit_block()
114
- infence = 0; lastnb = ""
115
- next
116
- }
117
- s = trim($0)
118
- if (trivial(s)) next
119
- nb++; bl[s] = 1
120
- }
121
- ' "${candidates[@]+"${candidates[@]}"}" "${specs[@]}")"; st=$?
122
- fail_closed "$st" check-spec-embedded-source awk
123
-
124
- if [[ -n "$flagged" ]]; then
125
- echo "check-spec-embedded-source: spec fenced block(s) verbatim-copy a tracked source"
126
- echo "file (the file is the home of the body); cite the path instead, or bless a"
127
- echo "genuinely-illustrative block:"
128
- echo ""
129
- echo "$flagged"
130
- echo " help: replace the embedded body with a path reference to the cited source file, or, if the block is a genuine illustrative shape/schema example, add '<!-- spec-embedded-source-exempt: <reason> -->' on the line directly above the opening fence"
131
- exit 1
132
- fi
133
- echo "SPEC-EMBEDDED-SOURCE: clean (${#specs[@]} spec file(s) scanned; no fenced block copies a tracked source)"
134
- exit 0
@@ -1,144 +0,0 @@
1
- #!/usr/bin/env bash
2
- # spec: context-kit/SPEC.md §bin/footprint — per-kit two-tier context footprint, a deterministic projection of tracked kit surfaces
3
- # usage: footprint.sh [--emit] (bare: human header + table; --emit: the committed docs/footprint.md page)
4
- set -uo pipefail
5
-
6
- REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
7
- cd "$REPO_ROOT" 2>/dev/null || { echo "footprint: cannot enter repo root" >&2; exit 2; }
8
-
9
- _ck_cfg="${CONTEXT_KIT_CONFIG_FILE:-}"
10
- if [[ -n "$_ck_cfg" ]]; then
11
- [[ -f "$_ck_cfg" ]] || {
12
- echo "context-kit: CONTEXT_KIT_CONFIG_FILE not found: $_ck_cfg" >&2
13
- exit 2
14
- }
15
- # shellcheck source=/dev/null # consumer config path is resolved at runtime
16
- source "$_ck_cfg"
17
- else
18
- _ck_cfg="${GATE_SDK_GATES_DIR:-scripts}/context-config.sh"
19
- if [[ -f "$_ck_cfg" ]]; then
20
- # shellcheck source=/dev/null # consumer config path is resolved at runtime
21
- source "$_ck_cfg"
22
- fi
23
- fi
24
- unset _ck_cfg
25
-
26
- declare -p CONTEXT_KIT_SURFACES >/dev/null 2>&1 || CONTEXT_KIT_SURFACES=("CLAUDE.md")
27
-
28
- emit=0
29
- [[ "${1:-}" == "--emit" ]] && emit=1
30
-
31
- # spec: context-kit/SPEC.md §bin/footprint — the measured set is the kit roster, derived not maintained: top-level dirs carrying a SPEC.md
32
- mapfile -t KITS < <(for _s in */SPEC.md; do [[ -f "$_s" ]] && printf '%s\n' "${_s%/SPEC.md}"; done | sort)
33
-
34
- # spec: context-kit/SPEC.md §bin/footprint — a file set collapses to an exact line count and a byte total; the token estimate is bytes/4, computed at render
35
- sum_files() { # args: files... -> "<lines> <bytes>"
36
- local L=0 B=0 f n
37
- for f in "$@"; do
38
- [[ -f "$f" ]] || continue
39
- n="$(wc -l < "$f")"; L=$(( L + n ))
40
- n="$(wc -c < "$f")"; B=$(( B + n ))
41
- done
42
- printf '%d %d' "$L" "$B"
43
- }
44
-
45
- # spec: context-kit/SPEC.md §bin/footprint — always-loaded tier: the content between a kit's generated begin/end markers in the configured surface files, the agent-file block the kit injects
46
- kit_always() { # $1 = kit -> "<lines> <bytes>"
47
- local kit="$1" L=0 B=0 sf block bl bb
48
- for sf in "${CONTEXT_KIT_SURFACES[@]}"; do
49
- [[ -f "$sf" ]] || continue
50
- block="$(awk -v k="$kit" '
51
- index($0, "<!-- " k ":begin -->") { inb=1; next }
52
- index($0, "<!-- " k ":end -->") { inb=0; next }
53
- inb { print }
54
- ' "$sf")"
55
- [[ -n "$block" ]] || continue
56
- bl="$(printf '%s\n' "$block" | wc -l)"; L=$(( L + bl ))
57
- bb="$(printf '%s\n' "$block" | wc -c)"; B=$(( B + bb ))
58
- done
59
- printf '%d %d' "$L" "$B"
60
- }
61
-
62
- # spec: context-kit/SPEC.md §bin/footprint — load-triggered tier: the kit's shipped skill/template markdown under its templates tree (gate-test fixtures sit outside it, so they never enter the count)
63
- kit_triggered() { # $1 = kit -> "<lines> <bytes>"
64
- local kit="$1"
65
- mapfile -t _tf < <(find "$kit/templates" -type f -name '*.md' 2>/dev/null | sort)
66
- sum_files "${_tf[@]+"${_tf[@]}"}"
67
- }
68
-
69
- cell() { # $1 $2 = lines bytes -> "<n>l · ~<n>t" or an em dash when empty
70
- local l="$1" b="$2"
71
- if [[ "$l" -eq 0 && "$b" -eq 0 ]]; then printf '%s' "—"; return; fi
72
- printf '%dl · ~%dt' "$l" $(( b / 4 ))
73
- }
74
-
75
- ROWS=()
76
- tAL=0 tAB=0 tTL=0 tTB=0
77
- for kit in "${KITS[@]}"; do
78
- read -r al ab <<<"$(kit_always "$kit")"
79
- read -r tl tb <<<"$(kit_triggered "$kit")"
80
- tAL=$(( tAL + al )); tAB=$(( tAB + ab ))
81
- tTL=$(( tTL + tl )); tTB=$(( tTB + tb ))
82
- ROWS+=("| $kit | $(cell "$al" "$ab") | $(cell "$tl" "$tb") |")
83
- done
84
-
85
- print_table() {
86
- echo "| kit | always-loaded | load-triggered |"
87
- echo "| --- | --- | --- |"
88
- printf '%s\n' "${ROWS[@]}"
89
- echo "| **total** | $(cell "$tAL" "$tAB") | $(cell "$tTL" "$tTB") |"
90
- }
91
-
92
- if [[ "$emit" -eq 0 ]]; then
93
- echo "=== Context footprint (context-kit — kit-shipped share only) ==="
94
- echo "Per-kit always-loaded vs load-triggered cost; lines exact, tokens a bytes/4 estimate."
95
- echo
96
- print_table
97
- exit 0
98
- fi
99
-
100
- cat <<'EOF'
101
- ---
102
- title: Footprint
103
- nav_parent: value
104
- nav_child_order: 2
105
- ---
106
-
107
- # Context footprint
108
-
109
- What vendoring Checkwright costs a consumer's context budget, measured per kit
110
- and split by when the cost is paid. Every number here is generated from the
111
- tracked kit surfaces by `context-kit/bin/footprint.sh` and held current by a
112
- freshness gate, so the page cannot drift from what the kits actually ship.
113
-
114
- ## What is measured
115
-
116
- Each kit's footprint splits by when its cost lands in a session:
117
-
118
- - **Always-loaded** — the fixed block a kit injects into the consumer's
119
- always-loaded agent file, so it rides every session's context. Measured as the
120
- content a kit generates between its own `begin`/`end` markers in the configured
121
- surface files.
122
- - **Load-triggered** — the kit's shipped skill and template markdown, pulled
123
- into context only when its trigger fires. Measured over the markdown the kit
124
- ships under its templates directory.
125
-
126
- Line counts are exact. The token column is a labeled estimate — a
127
- bytes-over-four heuristic, marked with a leading `~` because the true count is
128
- model-tokenizer-dependent; read it as an order of magnitude, never a precise
129
- figure.
130
-
131
- ## What is excluded
132
-
133
- The figures are kit-share only — what a kit itself ships. A consumer's own
134
- bindings (the skill shims that point at a vendored template), consumer
135
- configuration, the reference SPEC and README pages a reader opens on demand, and
136
- the session hook's dynamic body (which is consumer state, not fixed kit text) are
137
- all left out, so each number reflects the kit's advertised cost rather than a
138
- host repository's residue.
139
-
140
- ## Per-kit footprint
141
-
142
- EOF
143
- print_table
144
- exit 0
@@ -1,124 +0,0 @@
1
- #!/usr/bin/env bash
2
- # graph: couples=CLAUDE.md dir=one valve=none tier=precommit
3
- # install: zero-config
4
- # spec: context-kit/SPEC.md §The brevity gate — over-budget bullets in the budgeted always-loaded section that cite a deeper doc
5
- set -uo pipefail
6
-
7
- KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
8
- SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
9
- # shellcheck source=../../gate-sdk/lib/gate.sh
10
- source "$SDK/lib/gate.sh"
11
-
12
- _ck_cfg="${CONTEXT_KIT_CONFIG_FILE:-}"
13
- if [[ -n "$_ck_cfg" ]]; then
14
- [[ -f "$_ck_cfg" ]] || {
15
- echo "context-kit: CONTEXT_KIT_CONFIG_FILE not found: $_ck_cfg" >&2
16
- exit 2
17
- }
18
- # shellcheck source=/dev/null # consumer config path is resolved at runtime
19
- source "$_ck_cfg"
20
- else
21
- _ck_cfg="${GATE_SDK_GATES_DIR:-scripts}/context-config.sh"
22
- if [[ -f "$_ck_cfg" ]]; then
23
- # shellcheck source=/dev/null # consumer config path is resolved at runtime
24
- source "$_ck_cfg"
25
- fi
26
- fi
27
- unset _ck_cfg
28
- : "${CONTEXT_KIT_BREVITY_FILE:=CLAUDE.md}"
29
- : "${CONTEXT_KIT_BREVITY_SECTION:=## Shared conventions}"
30
- : "${CONTEXT_KIT_BREVITY_BUDGET:=4}"
31
- : "${CONTEXT_KIT_BREVITY_POINTER_RE:=§}"
32
- [[ "$CONTEXT_KIT_BREVITY_BUDGET" =~ ^[0-9]+$ ]] \
33
- || { echo "check-brevity: CONTEXT_KIT_BREVITY_BUDGET must be an integer: $CONTEXT_KIT_BREVITY_BUDGET" >&2; exit 2; }
34
-
35
- if [[ $# -gt 0 ]]; then
36
- BREVITY_FILE="$1"
37
- else
38
- REPO_ROOT="$(git rev-parse --show-toplevel)" \
39
- || { echo "check-brevity: not inside a git repository" >&2; exit 2; }
40
- BREVITY_FILE="$REPO_ROOT/$CONTEXT_KIT_BREVITY_FILE"
41
- fi
42
- [[ -f "$BREVITY_FILE" ]] || { echo "check-brevity: file not found: $BREVITY_FILE" >&2; exit 2; }
43
-
44
- BUDGET="$CONTEXT_KIT_BREVITY_BUDGET"
45
-
46
- read -r -d '' BREVITY_AWK <<'AWK' || true
47
- function hlevel(line, n) {
48
- if (line !~ /^#+[[:space:]]/) return 0
49
- n = 0
50
- while (substr(line, n + 1, 1) == "#") n++
51
- return n
52
- }
53
- function flush() {
54
- if (!have) return
55
- pointer = (body ~ pointer_re) ? 1 : 0
56
- # last = span at the final non-blank line, so a trailing blank before the
57
- # next heading (or EOF) never inflates the line count of the last bullet.
58
- printf "%d\t%d\t%d\t%s\n", last, pointer, exempt, name
59
- have = 0
60
- }
61
- # Enter the governed section: heading line whose text starts with the knob.
62
- !insec {
63
- if (hlevel($0) > 0 && substr($0, 1, length(section)) == section) {
64
- insec = 1; seen = 1; start_lvl = hlevel($0); prev = $0
65
- }
66
- next
67
- }
68
- # A heading at the same level or higher closes the section.
69
- insec && hlevel($0) > 0 && hlevel($0) <= start_lvl { flush(); insec = 0; next }
70
- insec {
71
- if ($0 ~ /^- \*\*/) {
72
- flush()
73
- have = 1
74
- name = $0
75
- sub(/^- \*\*/, "", name)
76
- sub(/\*\*.*/, "", name)
77
- span = 1
78
- last = 1
79
- body = $0
80
- exempt = ($0 ~ /brevity-exempt/ || prev ~ /brevity-exempt/) ? 1 : 0
81
- } else if (have) {
82
- span++
83
- if ($0 ~ /[^[:space:]]/) last = span
84
- body = body " " $0
85
- }
86
- prev = $0
87
- next
88
- }
89
- END { flush(); if (!seen) print "@@NOSECTION" }
90
- AWK
91
-
92
- records="$(awk \
93
- -v section="$CONTEXT_KIT_BREVITY_SECTION" \
94
- -v pointer_re="$CONTEXT_KIT_BREVITY_POINTER_RE" \
95
- "$BREVITY_AWK" "$BREVITY_FILE")"; st=$?
96
- fail_closed "$st" check-brevity awk
97
-
98
- if [[ "$records" == "@@NOSECTION" ]]; then
99
- printf 'check-brevity: no heading matches %s in %s: %s\n' \
100
- CONTEXT_KIT_BREVITY_SECTION "$BREVITY_FILE" "'$CONTEXT_KIT_BREVITY_SECTION'" >&2
101
- printf 'check-brevity: help: a renamed or deleted section silently disarms this gate — repoint CONTEXT_KIT_BREVITY_SECTION at the live heading, or restore the heading it names\n' >&2
102
- exit 2
103
- fi
104
-
105
- total=0
106
- within=0
107
- findings=()
108
- while IFS=$'\t' read -r span pointer exempt name; do
109
- [[ -n "$span" ]] || continue
110
- total=$((total + 1))
111
- [[ "$span" -le "$BUDGET" ]] && within=$((within + 1))
112
- if [[ "$span" -gt "$BUDGET" && "$pointer" -eq 1 && "$exempt" -ne 1 ]]; then
113
- findings+=("$name — $span lines AND cites a deeper doc (over the ${BUDGET}-line budget while admitting its detail lives elsewhere)")
114
- fi
115
- done <<< "$records"
116
-
117
- if [[ ${#findings[@]} -gt 0 ]]; then
118
- echo "BREVITY: ${#findings[@]} bullet(s) over budget in '$CONTEXT_KIT_BREVITY_SECTION':"
119
- printf ' %s\n' "${findings[@]}"
120
- echo " help: cut each to ≤${BUDGET} lines by pushing detail into the section it already points to, or add <!-- brevity-exempt: <reason> --> on the bullet's first line / the line above if every line is load-bearing"
121
- exit 1
122
- fi
123
- echo "BREVITY: clean ($total bullets, $within within budget)"
124
- exit 0
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env bash
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
4
- # spec: context-kit/SPEC.md §check-footprint-fresh — docs/footprint.md is the byte-fresh projection of footprint.sh --emit
5
- #
6
- # usage: check-footprint-fresh.sh [projection-file] [emit-file]
7
- # bare: compare docs/footprint.md against `footprint.sh --emit`.
8
- # two args: compare projection-file to a pre-baked emit-file (hermetic fixture).
9
- set -uo pipefail
10
-
11
- KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
12
- SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
13
- # shellcheck source=../../gate-sdk/lib/gate.sh
14
- source "$SDK/lib/gate.sh"
15
-
16
- PROJECTION="${1:-docs/footprint.md}"
17
- EMIT_SRC="${2:-}"
18
-
19
- [[ -f "$PROJECTION" ]] || { echo "check-footprint-fresh: projection not found: $PROJECTION" >&2; exit 2; }
20
-
21
- if [[ -n "$EMIT_SRC" ]]; then
22
- [[ -f "$EMIT_SRC" ]] || { echo "check-footprint-fresh: emit source not found: $EMIT_SRC" >&2; exit 2; }
23
- emitted="$(cat "$EMIT_SRC")"; st=$?
24
- fail_closed "$st" check-footprint-fresh cat
25
- else
26
- FOOT="$KIT/bin/footprint.sh"
27
- [[ -x "$FOOT" ]] || { echo "check-footprint-fresh: emitter not found: $FOOT" >&2; exit 2; }
28
- emitted="$(bash "$FOOT" --emit)"; st=$?
29
- fail_closed "$st" check-footprint-fresh footprint
30
- fi
31
-
32
- if [[ "$emitted" != "$(cat "$PROJECTION")" ]]; then
33
- echo "check-footprint-fresh: $PROJECTION is stale vs the footprint emitter:"
34
- diff <(printf '%s\n' "$emitted") "$PROJECTION" | head -20 || true
35
- echo " help: regenerate — bash context-kit/bin/footprint.sh --emit > docs/footprint.md"
36
- exit 1
37
- fi
38
- echo "FOOTPRINT-FRESH: clean ($PROJECTION byte-matches the footprint emitter)"
39
- exit 0
@@ -1,113 +0,0 @@
1
- #!/usr/bin/env bash
2
- # graph: couples=scripts/settings-pins.conf dir=one valve=none tier=precommit trigger=*
3
- # install: on-surface
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
5
- #
6
- # usage: check-memory-off.sh [--fixture <dir>]
7
- # live: scans CONTEXT_KIT_MEMORY_DIRS and the untracked local settings file;
8
- # --fixture <dir> scans <dir>/memory, <dir>/settings.local.json, <dir>/settings-pins.conf
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
- # spec: context-kit/SPEC.md §Layout and configuration — the harness names each project's dir by its absolute path with '/' and '.' folded to '-'; a knob because the layout moves (the plugin-marketplace ruling)
34
- memory_dir_default() {
35
- local top
36
- top="$(git rev-parse --show-toplevel 2>/dev/null)" || return 0
37
- [[ -n "$top" ]] || return 0
38
- printf '%s/.claude/projects/%s/memory\n' "$HOME" "$(printf '%s' "$top" | tr '/.' '-')"
39
- }
40
-
41
- MODE=live
42
- FIXTURE_DIR=""
43
- while [[ $# -gt 0 ]]; do
44
- case "$1" in
45
- --fixture) MODE=fixture; FIXTURE_DIR="${2:-}"; shift 2 ;;
46
- -*) echo "check-memory-off: unknown argument: $1" >&2; exit 2 ;;
47
- *) echo "check-memory-off: unexpected argument: $1" >&2; exit 2 ;;
48
- esac
49
- done
50
-
51
- declare -a MEM_DIRS=()
52
- if [[ "$MODE" == fixture ]]; then
53
- [[ -d "$FIXTURE_DIR" ]] || { echo "check-memory-off: fixture dir not found: $FIXTURE_DIR" >&2; exit 2; }
54
- MEM_DIRS=("$FIXTURE_DIR/memory")
55
- PINS_FILE="$FIXTURE_DIR/settings-pins.conf"
56
- LOCAL_SETTINGS="$FIXTURE_DIR/settings.local.json"
57
- else
58
- : "${CONTEXT_KIT_SETTINGS_FILE:=.claude/settings.json}"
59
- : "${CONTEXT_KIT_SETTINGS_PINS:=${GATE_SDK_GATES_DIR:-scripts}/settings-pins.conf}"
60
- PINS_FILE="$CONTEXT_KIT_SETTINGS_PINS"
61
- LOCAL_SETTINGS="${CONTEXT_KIT_SETTINGS_FILE%.json}.local.json"
62
- memdirs="${CONTEXT_KIT_MEMORY_DIRS:-$(memory_dir_default)}"
63
- for pat in $memdirs; do
64
- for d in $pat; do
65
- [[ -e "$d" ]] && MEM_DIRS+=("$d")
66
- done
67
- done
68
- fi
69
-
70
- polluted=(); overrides=()
71
-
72
- # spec: context-kit/SPEC.md §check-memory-off — content is any regular file that is not the dir-preserving .gitkeep
73
- for d in "${MEM_DIRS[@]+"${MEM_DIRS[@]}"}"; do
74
- [[ -d "$d" ]] || continue
75
- files="$(find "$d" -type f ! -name .gitkeep 2>/dev/null)"; st=$?
76
- fail_closed "$st" check-memory-off find
77
- [[ -n "$files" ]] && polluted+=("$d")
78
- done
79
-
80
- # spec: context-kit/SPEC.md §check-memory-off — the untracked local settings file can re-enable what the tracked pin disabled; the hermetic gate cannot see it, this one can
81
- if [[ -f "$LOCAL_SETTINGS" && -e "$PINS_FILE" && -r "$PINS_FILE" ]]; then
82
- command -v jq >/dev/null 2>&1 || { echo "check-memory-off: jq not found — cannot read $LOCAL_SETTINGS to verify no pinned key is overridden" >&2; exit 2; }
83
- jq -e . "$LOCAL_SETTINGS" >/dev/null 2>&1 || { echo "check-memory-off: $LOCAL_SETTINGS is not valid JSON" >&2; exit 2; }
84
- while IFS= read -r line; do
85
- path="${line%%=*}"; path="${path#"${path%%[![:space:]]*}"}"; path="${path%"${path##*[![:space:]]}"}"
86
- expected="${line#*=}"; expected="${expected#"${expected%%[![:space:]]*}"}"; expected="${expected%"${expected##*[![:space:]]}"}"
87
- [[ "$line" == *=* && -n "$path" && -n "$expected" && "$path" == .* ]] || continue
88
- actual="$(jq -c "$path" "$LOCAL_SETTINGS" 2>/dev/null)"; st=$?
89
- [[ "$st" -eq 0 ]] || continue
90
- if [[ "$actual" != "null" && "$actual" != "$expected" ]]; then
91
- overrides+=("$path locally set to $actual (pin expects $expected)")
92
- fi
93
- done < <(gates_list_members "$PINS_FILE")
94
- fi
95
-
96
- if [[ ${#polluted[@]} -gt 0 || ${#overrides[@]} -gt 0 ]]; then
97
- echo "check-memory-off: the harness memory posture is not clean on this clone:"
98
- for d in "${polluted[@]+"${polluted[@]}"}"; do
99
- echo " memory dir holds content: $d"
100
- done
101
- for o in "${overrides[@]+"${overrides[@]}"}"; do
102
- echo " local settings override: $o"
103
- done
104
- echo " help: durable facts belong in tracked surfaces (the knowledge-friction loop,"
105
- echo " the lesson channels, or the operator's local brief), not the harness"
106
- echo " memory dir — empty it; and drop any memory-re-enabling key from"
107
- echo " $LOCAL_SETTINGS. See context-kit/SPEC.md §The memory-off doctrine."
108
- exit 1
109
- fi
110
-
111
- # spec: context-kit/SPEC.md §check-memory-off — CI-neutral: an absent dir proves nothing about another clone (fail-open on absent, stated here)
112
- echo "MEMORY-OFF: clean (${#MEM_DIRS[@]} memory dir(s) present, all empty; an absent dir proves nothing about another clone)"
113
- exit 0
@@ -1,94 +0,0 @@
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