@adammcarter/use-cases 0.1.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 (704) hide show
  1. package/.agents/skills/migration/SKILL.md +85 -0
  2. package/.agents/skills/showcase/SKILL.md +60 -0
  3. package/.agents/skills/use-cases/SKILL.md +161 -0
  4. package/.agents/skills/walkthrough/SKILL.md +48 -0
  5. package/.claude-plugin/plugin.json +14 -0
  6. package/.codex-plugin/plugin.json +33 -0
  7. package/.mcp.json +8 -0
  8. package/.opencode/plugin/use-cases.js +32 -0
  9. package/CHANGELOG.md +125 -0
  10. package/LICENSE +21 -0
  11. package/README.md +112 -0
  12. package/bootstrap/use-cases.md +60 -0
  13. package/docs/README.md +51 -0
  14. package/docs/acceptance.md +16 -0
  15. package/docs/activation.md +89 -0
  16. package/docs/adr/0001-p0-bootstrap-decisions.md +107 -0
  17. package/docs/adr/0002-p1-schema-contracts.md +136 -0
  18. package/docs/adr/0003-p2-use-case-matrix-contracts.md +67 -0
  19. package/docs/adr/0004-p3-evidence-ledger-contracts.md +85 -0
  20. package/docs/adr/0005-p4-cli-contract.md +70 -0
  21. package/docs/adr/0006-trusted-user-approval-path.md +125 -0
  22. package/docs/cli.md +108 -0
  23. package/docs/data-model.md +56 -0
  24. package/docs/getting-started.md +296 -0
  25. package/docs/hosts.md +30 -0
  26. package/docs/markers-adoption.md +100 -0
  27. package/docs/mcp.md +114 -0
  28. package/docs/migration.md +90 -0
  29. package/docs/reference/error-codes.md +123 -0
  30. package/docs/reference/stability.md +123 -0
  31. package/docs/release.md +26 -0
  32. package/docs/security/ci-hardening.md +144 -0
  33. package/docs/security/key-management.md +158 -0
  34. package/docs/security.md +66 -0
  35. package/docs/showcase.md +39 -0
  36. package/docs/tutorials/python-pytest.md +188 -0
  37. package/examples/basic-product/demo-capsules/product-search.yml +23 -0
  38. package/examples/basic-product/evidence/by-id/ev/evidence-basic-search.jsonl +1 -0
  39. package/examples/basic-product/showcase-runs/run.basic.product.search/events.jsonl +4 -0
  40. package/examples/basic-product/use-cases/product.yml +85 -0
  41. package/examples/basic-product/use-cases.yml +9 -0
  42. package/examples/damaged-product/evidence/broken.jsonl +1 -0
  43. package/examples/damaged-product/use-cases/duplicate-a.yml +28 -0
  44. package/examples/damaged-product/use-cases/duplicate-b.yml +28 -0
  45. package/examples/damaged-product/use-cases/malformed.yml +14 -0
  46. package/examples/damaged-product/use-cases/valid-sibling.yml +28 -0
  47. package/examples/damaged-product/use-cases.yml +9 -0
  48. package/examples/host-projections/use-cases.yml +9 -0
  49. package/examples/python-pytest/README.md +39 -0
  50. package/examples/python-pytest/pytest.ini +8 -0
  51. package/examples/python-pytest/src/coupon.py +32 -0
  52. package/examples/python-pytest/tests/use_cases/example.checkout.apply_coupon_test.py +31 -0
  53. package/examples/python-pytest/use-cases/checkout.yml +47 -0
  54. package/examples/python-pytest/use-cases.yml +19 -0
  55. package/hooks/hooks-codex.json +16 -0
  56. package/hooks/hooks.json +16 -0
  57. package/hooks/session-start +42 -0
  58. package/hosts/claude.yml +29 -0
  59. package/hosts/codex.yml +29 -0
  60. package/hosts/copilot.yml +29 -0
  61. package/hosts/opencode.yml +29 -0
  62. package/package.json +81 -0
  63. package/packages/cli/README.md +37 -0
  64. package/packages/cli/dist/args/parse.d.ts +6 -0
  65. package/packages/cli/dist/args/parse.d.ts.map +1 -0
  66. package/packages/cli/dist/args/parse.js +55 -0
  67. package/packages/cli/dist/args/parse.js.map +1 -0
  68. package/packages/cli/dist/args/validate.d.ts +3 -0
  69. package/packages/cli/dist/args/validate.d.ts.map +1 -0
  70. package/packages/cli/dist/args/validate.js +80 -0
  71. package/packages/cli/dist/args/validate.js.map +1 -0
  72. package/packages/cli/dist/builtins.d.ts +2 -0
  73. package/packages/cli/dist/builtins.d.ts.map +1 -0
  74. package/packages/cli/dist/builtins.js +235 -0
  75. package/packages/cli/dist/builtins.js.map +1 -0
  76. package/packages/cli/dist/command/dispatch.d.ts +4 -0
  77. package/packages/cli/dist/command/dispatch.d.ts.map +1 -0
  78. package/packages/cli/dist/command/dispatch.js +45 -0
  79. package/packages/cli/dist/command/dispatch.js.map +1 -0
  80. package/packages/cli/dist/command/help-catalog.d.ts +13 -0
  81. package/packages/cli/dist/command/help-catalog.d.ts.map +1 -0
  82. package/packages/cli/dist/command/help-catalog.js +42 -0
  83. package/packages/cli/dist/command/help-catalog.js.map +1 -0
  84. package/packages/cli/dist/command/registry.d.ts +3 -0
  85. package/packages/cli/dist/command/registry.d.ts.map +1 -0
  86. package/packages/cli/dist/command/registry.js +33 -0
  87. package/packages/cli/dist/command/registry.js.map +1 -0
  88. package/packages/cli/dist/command/types.d.ts +32 -0
  89. package/packages/cli/dist/command/types.d.ts.map +1 -0
  90. package/packages/cli/dist/command/types.js +6 -0
  91. package/packages/cli/dist/command/types.js.map +1 -0
  92. package/packages/cli/dist/commands/capsule.d.ts +7 -0
  93. package/packages/cli/dist/commands/capsule.d.ts.map +1 -0
  94. package/packages/cli/dist/commands/capsule.js +178 -0
  95. package/packages/cli/dist/commands/capsule.js.map +1 -0
  96. package/packages/cli/dist/commands/common.d.ts +7 -0
  97. package/packages/cli/dist/commands/common.d.ts.map +1 -0
  98. package/packages/cli/dist/commands/common.js +32 -0
  99. package/packages/cli/dist/commands/common.js.map +1 -0
  100. package/packages/cli/dist/commands/doctor.d.ts +6 -0
  101. package/packages/cli/dist/commands/doctor.d.ts.map +1 -0
  102. package/packages/cli/dist/commands/doctor.js +133 -0
  103. package/packages/cli/dist/commands/doctor.js.map +1 -0
  104. package/packages/cli/dist/commands/evidence.d.ts +6 -0
  105. package/packages/cli/dist/commands/evidence.d.ts.map +1 -0
  106. package/packages/cli/dist/commands/evidence.js +191 -0
  107. package/packages/cli/dist/commands/evidence.js.map +1 -0
  108. package/packages/cli/dist/commands/host.d.ts +6 -0
  109. package/packages/cli/dist/commands/host.d.ts.map +1 -0
  110. package/packages/cli/dist/commands/host.js +180 -0
  111. package/packages/cli/dist/commands/host.js.map +1 -0
  112. package/packages/cli/dist/commands/keygen.d.ts +4 -0
  113. package/packages/cli/dist/commands/keygen.d.ts.map +1 -0
  114. package/packages/cli/dist/commands/keygen.js +132 -0
  115. package/packages/cli/dist/commands/keygen.js.map +1 -0
  116. package/packages/cli/dist/commands/markers.d.ts +8 -0
  117. package/packages/cli/dist/commands/markers.d.ts.map +1 -0
  118. package/packages/cli/dist/commands/markers.js +455 -0
  119. package/packages/cli/dist/commands/markers.js.map +1 -0
  120. package/packages/cli/dist/commands/matrix.d.ts +8 -0
  121. package/packages/cli/dist/commands/matrix.d.ts.map +1 -0
  122. package/packages/cli/dist/commands/matrix.js +237 -0
  123. package/packages/cli/dist/commands/matrix.js.map +1 -0
  124. package/packages/cli/dist/commands/migrate.d.ts +4 -0
  125. package/packages/cli/dist/commands/migrate.d.ts.map +1 -0
  126. package/packages/cli/dist/commands/migrate.js +82 -0
  127. package/packages/cli/dist/commands/migrate.js.map +1 -0
  128. package/packages/cli/dist/commands/plan.d.ts +6 -0
  129. package/packages/cli/dist/commands/plan.d.ts.map +1 -0
  130. package/packages/cli/dist/commands/plan.js +129 -0
  131. package/packages/cli/dist/commands/plan.js.map +1 -0
  132. package/packages/cli/dist/commands/recover.d.ts +4 -0
  133. package/packages/cli/dist/commands/recover.d.ts.map +1 -0
  134. package/packages/cli/dist/commands/recover.js +352 -0
  135. package/packages/cli/dist/commands/recover.js.map +1 -0
  136. package/packages/cli/dist/commands/schema.d.ts +5 -0
  137. package/packages/cli/dist/commands/schema.d.ts.map +1 -0
  138. package/packages/cli/dist/commands/schema.js +51 -0
  139. package/packages/cli/dist/commands/schema.js.map +1 -0
  140. package/packages/cli/dist/commands/showcase.d.ts +14 -0
  141. package/packages/cli/dist/commands/showcase.d.ts.map +1 -0
  142. package/packages/cli/dist/commands/showcase.js +638 -0
  143. package/packages/cli/dist/commands/showcase.js.map +1 -0
  144. package/packages/cli/dist/commands/workflow.d.ts +5 -0
  145. package/packages/cli/dist/commands/workflow.d.ts.map +1 -0
  146. package/packages/cli/dist/commands/workflow.js +107 -0
  147. package/packages/cli/dist/commands/workflow.js.map +1 -0
  148. package/packages/cli/dist/coreLoader.d.ts +6 -0
  149. package/packages/cli/dist/coreLoader.d.ts.map +1 -0
  150. package/packages/cli/dist/coreLoader.js +34 -0
  151. package/packages/cli/dist/coreLoader.js.map +1 -0
  152. package/packages/cli/dist/index.d.ts +5 -0
  153. package/packages/cli/dist/index.d.ts.map +1 -0
  154. package/packages/cli/dist/index.js +83 -0
  155. package/packages/cli/dist/index.js.map +1 -0
  156. package/packages/cli/dist/render.d.ts +2 -0
  157. package/packages/cli/dist/render.d.ts.map +1 -0
  158. package/packages/cli/dist/render.js +88 -0
  159. package/packages/cli/dist/render.js.map +1 -0
  160. package/packages/cli/dist/runtime.d.ts +25 -0
  161. package/packages/cli/dist/runtime.d.ts.map +1 -0
  162. package/packages/cli/dist/runtime.js +89 -0
  163. package/packages/cli/dist/runtime.js.map +1 -0
  164. package/packages/cli/package.json +38 -0
  165. package/packages/core/README.md +37 -0
  166. package/packages/core/dist/capsules/index.d.ts +4 -0
  167. package/packages/core/dist/capsules/index.d.ts.map +1 -0
  168. package/packages/core/dist/capsules/index.js +4 -0
  169. package/packages/core/dist/capsules/index.js.map +1 -0
  170. package/packages/core/dist/capsules/loadCapsule.d.ts +11 -0
  171. package/packages/core/dist/capsules/loadCapsule.d.ts.map +1 -0
  172. package/packages/core/dist/capsules/loadCapsule.js +167 -0
  173. package/packages/core/dist/capsules/loadCapsule.js.map +1 -0
  174. package/packages/core/dist/capsules/runCapsule.d.ts +3 -0
  175. package/packages/core/dist/capsules/runCapsule.d.ts.map +1 -0
  176. package/packages/core/dist/capsules/runCapsule.js +333 -0
  177. package/packages/core/dist/capsules/runCapsule.js.map +1 -0
  178. package/packages/core/dist/capsules/types.d.ts +106 -0
  179. package/packages/core/dist/capsules/types.d.ts.map +1 -0
  180. package/packages/core/dist/capsules/types.js +2 -0
  181. package/packages/core/dist/capsules/types.js.map +1 -0
  182. package/packages/core/dist/durableWrite.d.ts +2 -0
  183. package/packages/core/dist/durableWrite.d.ts.map +1 -0
  184. package/packages/core/dist/durableWrite.js +34 -0
  185. package/packages/core/dist/durableWrite.js.map +1 -0
  186. package/packages/core/dist/errors/registry.d.ts +122 -0
  187. package/packages/core/dist/errors/registry.d.ts.map +1 -0
  188. package/packages/core/dist/errors/registry.js +206 -0
  189. package/packages/core/dist/errors/registry.js.map +1 -0
  190. package/packages/core/dist/errors/render.d.ts +3 -0
  191. package/packages/core/dist/errors/render.d.ts.map +1 -0
  192. package/packages/core/dist/errors/render.js +64 -0
  193. package/packages/core/dist/errors/render.js.map +1 -0
  194. package/packages/core/dist/errors.d.ts +5 -0
  195. package/packages/core/dist/errors.d.ts.map +1 -0
  196. package/packages/core/dist/errors.js +9 -0
  197. package/packages/core/dist/errors.js.map +1 -0
  198. package/packages/core/dist/evidence/appendEvidenceEvent.d.ts +27 -0
  199. package/packages/core/dist/evidence/appendEvidenceEvent.d.ts.map +1 -0
  200. package/packages/core/dist/evidence/appendEvidenceEvent.js +218 -0
  201. package/packages/core/dist/evidence/appendEvidenceEvent.js.map +1 -0
  202. package/packages/core/dist/evidence/assurance.d.ts +18 -0
  203. package/packages/core/dist/evidence/assurance.d.ts.map +1 -0
  204. package/packages/core/dist/evidence/assurance.js +38 -0
  205. package/packages/core/dist/evidence/assurance.js.map +1 -0
  206. package/packages/core/dist/evidence/index.d.ts +8 -0
  207. package/packages/core/dist/evidence/index.d.ts.map +1 -0
  208. package/packages/core/dist/evidence/index.js +8 -0
  209. package/packages/core/dist/evidence/index.js.map +1 -0
  210. package/packages/core/dist/evidence/jsonlLedger.d.ts +13 -0
  211. package/packages/core/dist/evidence/jsonlLedger.d.ts.map +1 -0
  212. package/packages/core/dist/evidence/jsonlLedger.js +171 -0
  213. package/packages/core/dist/evidence/jsonlLedger.js.map +1 -0
  214. package/packages/core/dist/evidence/linkEvidence.d.ts +4 -0
  215. package/packages/core/dist/evidence/linkEvidence.d.ts.map +1 -0
  216. package/packages/core/dist/evidence/linkEvidence.js +53 -0
  217. package/packages/core/dist/evidence/linkEvidence.js.map +1 -0
  218. package/packages/core/dist/evidence/replayEvidence.d.ts +6 -0
  219. package/packages/core/dist/evidence/replayEvidence.d.ts.map +1 -0
  220. package/packages/core/dist/evidence/replayEvidence.js +216 -0
  221. package/packages/core/dist/evidence/replayEvidence.js.map +1 -0
  222. package/packages/core/dist/evidence/results.d.ts +4 -0
  223. package/packages/core/dist/evidence/results.d.ts.map +1 -0
  224. package/packages/core/dist/evidence/results.js +32 -0
  225. package/packages/core/dist/evidence/results.js.map +1 -0
  226. package/packages/core/dist/evidence/types.d.ts +149 -0
  227. package/packages/core/dist/evidence/types.d.ts.map +1 -0
  228. package/packages/core/dist/evidence/types.js +2 -0
  229. package/packages/core/dist/evidence/types.js.map +1 -0
  230. package/packages/core/dist/host-profiles/claude.yml +29 -0
  231. package/packages/core/dist/host-profiles/codex.yml +29 -0
  232. package/packages/core/dist/host-profiles/copilot.yml +29 -0
  233. package/packages/core/dist/host-profiles/opencode.yml +29 -0
  234. package/packages/core/dist/hosts/conformanceStatus.d.ts +16 -0
  235. package/packages/core/dist/hosts/conformanceStatus.d.ts.map +1 -0
  236. package/packages/core/dist/hosts/conformanceStatus.js +160 -0
  237. package/packages/core/dist/hosts/conformanceStatus.js.map +1 -0
  238. package/packages/core/dist/hosts/index.d.ts +5 -0
  239. package/packages/core/dist/hosts/index.d.ts.map +1 -0
  240. package/packages/core/dist/hosts/index.js +5 -0
  241. package/packages/core/dist/hosts/index.js.map +1 -0
  242. package/packages/core/dist/hosts/loadHostProfile.d.ts +6 -0
  243. package/packages/core/dist/hosts/loadHostProfile.d.ts.map +1 -0
  244. package/packages/core/dist/hosts/loadHostProfile.js +41 -0
  245. package/packages/core/dist/hosts/loadHostProfile.js.map +1 -0
  246. package/packages/core/dist/hosts/projectHostFiles.d.ts +16 -0
  247. package/packages/core/dist/hosts/projectHostFiles.d.ts.map +1 -0
  248. package/packages/core/dist/hosts/projectHostFiles.js +272 -0
  249. package/packages/core/dist/hosts/projectHostFiles.js.map +1 -0
  250. package/packages/core/dist/hosts/types.d.ts +122 -0
  251. package/packages/core/dist/hosts/types.d.ts.map +1 -0
  252. package/packages/core/dist/hosts/types.js +2 -0
  253. package/packages/core/dist/hosts/types.js.map +1 -0
  254. package/packages/core/dist/index.d.ts +26 -0
  255. package/packages/core/dist/index.d.ts.map +1 -0
  256. package/packages/core/dist/index.js +31 -0
  257. package/packages/core/dist/index.js.map +1 -0
  258. package/packages/core/dist/init/index.d.ts +2 -0
  259. package/packages/core/dist/init/index.d.ts.map +1 -0
  260. package/packages/core/dist/init/index.js +3 -0
  261. package/packages/core/dist/init/index.js.map +1 -0
  262. package/packages/core/dist/init/scaffold.d.ts +28 -0
  263. package/packages/core/dist/init/scaffold.d.ts.map +1 -0
  264. package/packages/core/dist/init/scaffold.js +293 -0
  265. package/packages/core/dist/init/scaffold.js.map +1 -0
  266. package/packages/core/dist/markers/appendOnly.d.ts +23 -0
  267. package/packages/core/dist/markers/appendOnly.d.ts.map +1 -0
  268. package/packages/core/dist/markers/appendOnly.js +75 -0
  269. package/packages/core/dist/markers/appendOnly.js.map +1 -0
  270. package/packages/core/dist/markers/bindingSetHash.d.ts +28 -0
  271. package/packages/core/dist/markers/bindingSetHash.d.ts.map +1 -0
  272. package/packages/core/dist/markers/bindingSetHash.js +33 -0
  273. package/packages/core/dist/markers/bindingSetHash.js.map +1 -0
  274. package/packages/core/dist/markers/canonicalJson.d.ts +4 -0
  275. package/packages/core/dist/markers/canonicalJson.d.ts.map +1 -0
  276. package/packages/core/dist/markers/canonicalJson.js +51 -0
  277. package/packages/core/dist/markers/canonicalJson.js.map +1 -0
  278. package/packages/core/dist/markers/ciAuthority.d.ts +17 -0
  279. package/packages/core/dist/markers/ciAuthority.d.ts.map +1 -0
  280. package/packages/core/dist/markers/ciAuthority.js +131 -0
  281. package/packages/core/dist/markers/ciAuthority.js.map +1 -0
  282. package/packages/core/dist/markers/cli/bind.d.ts +48 -0
  283. package/packages/core/dist/markers/cli/bind.d.ts.map +1 -0
  284. package/packages/core/dist/markers/cli/bind.js +198 -0
  285. package/packages/core/dist/markers/cli/bind.js.map +1 -0
  286. package/packages/core/dist/markers/cli/index.d.ts +9 -0
  287. package/packages/core/dist/markers/cli/index.d.ts.map +1 -0
  288. package/packages/core/dist/markers/cli/index.js +15 -0
  289. package/packages/core/dist/markers/cli/index.js.map +1 -0
  290. package/packages/core/dist/markers/cli/io.d.ts +18 -0
  291. package/packages/core/dist/markers/cli/io.d.ts.map +1 -0
  292. package/packages/core/dist/markers/cli/io.js +62 -0
  293. package/packages/core/dist/markers/cli/io.js.map +1 -0
  294. package/packages/core/dist/markers/cli/precommit.d.ts +32 -0
  295. package/packages/core/dist/markers/cli/precommit.d.ts.map +1 -0
  296. package/packages/core/dist/markers/cli/precommit.js +174 -0
  297. package/packages/core/dist/markers/cli/precommit.js.map +1 -0
  298. package/packages/core/dist/markers/cli/prove.d.ts +69 -0
  299. package/packages/core/dist/markers/cli/prove.d.ts.map +1 -0
  300. package/packages/core/dist/markers/cli/prove.js +381 -0
  301. package/packages/core/dist/markers/cli/prove.js.map +1 -0
  302. package/packages/core/dist/markers/cli/scan.d.ts +63 -0
  303. package/packages/core/dist/markers/cli/scan.d.ts.map +1 -0
  304. package/packages/core/dist/markers/cli/scan.js +233 -0
  305. package/packages/core/dist/markers/cli/scan.js.map +1 -0
  306. package/packages/core/dist/markers/cli/shared.d.ts +25 -0
  307. package/packages/core/dist/markers/cli/shared.d.ts.map +1 -0
  308. package/packages/core/dist/markers/cli/shared.js +123 -0
  309. package/packages/core/dist/markers/cli/shared.js.map +1 -0
  310. package/packages/core/dist/markers/cli/validateLedger.d.ts +38 -0
  311. package/packages/core/dist/markers/cli/validateLedger.d.ts.map +1 -0
  312. package/packages/core/dist/markers/cli/validateLedger.js +81 -0
  313. package/packages/core/dist/markers/cli/validateLedger.js.map +1 -0
  314. package/packages/core/dist/markers/cli/verify.d.ts +65 -0
  315. package/packages/core/dist/markers/cli/verify.d.ts.map +1 -0
  316. package/packages/core/dist/markers/cli/verify.js +245 -0
  317. package/packages/core/dist/markers/cli/verify.js.map +1 -0
  318. package/packages/core/dist/markers/commentPrefix.d.ts +7 -0
  319. package/packages/core/dist/markers/commentPrefix.d.ts.map +1 -0
  320. package/packages/core/dist/markers/commentPrefix.js +79 -0
  321. package/packages/core/dist/markers/commentPrefix.js.map +1 -0
  322. package/packages/core/dist/markers/constants.d.ts +10 -0
  323. package/packages/core/dist/markers/constants.d.ts.map +1 -0
  324. package/packages/core/dist/markers/constants.js +13 -0
  325. package/packages/core/dist/markers/constants.js.map +1 -0
  326. package/packages/core/dist/markers/evidenceLedger.d.ts +150 -0
  327. package/packages/core/dist/markers/evidenceLedger.d.ts.map +1 -0
  328. package/packages/core/dist/markers/evidenceLedger.js +391 -0
  329. package/packages/core/dist/markers/evidenceLedger.js.map +1 -0
  330. package/packages/core/dist/markers/freshness.d.ts +125 -0
  331. package/packages/core/dist/markers/freshness.d.ts.map +1 -0
  332. package/packages/core/dist/markers/freshness.js +605 -0
  333. package/packages/core/dist/markers/freshness.js.map +1 -0
  334. package/packages/core/dist/markers/index.d.ts +26 -0
  335. package/packages/core/dist/markers/index.d.ts.map +1 -0
  336. package/packages/core/dist/markers/index.js +38 -0
  337. package/packages/core/dist/markers/index.js.map +1 -0
  338. package/packages/core/dist/markers/keygen.d.ts +6 -0
  339. package/packages/core/dist/markers/keygen.d.ts.map +1 -0
  340. package/packages/core/dist/markers/keygen.js +18 -0
  341. package/packages/core/dist/markers/keygen.js.map +1 -0
  342. package/packages/core/dist/markers/keyring.d.ts +23 -0
  343. package/packages/core/dist/markers/keyring.d.ts.map +1 -0
  344. package/packages/core/dist/markers/keyring.js +93 -0
  345. package/packages/core/dist/markers/keyring.js.map +1 -0
  346. package/packages/core/dist/markers/markerLine.d.ts +35 -0
  347. package/packages/core/dist/markers/markerLine.d.ts.map +1 -0
  348. package/packages/core/dist/markers/markerLine.js +125 -0
  349. package/packages/core/dist/markers/markerLine.js.map +1 -0
  350. package/packages/core/dist/markers/physicalLines.d.ts +10 -0
  351. package/packages/core/dist/markers/physicalLines.d.ts.map +1 -0
  352. package/packages/core/dist/markers/physicalLines.js +48 -0
  353. package/packages/core/dist/markers/physicalLines.js.map +1 -0
  354. package/packages/core/dist/markers/policyHash.d.ts +4 -0
  355. package/packages/core/dist/markers/policyHash.d.ts.map +1 -0
  356. package/packages/core/dist/markers/policyHash.js +14 -0
  357. package/packages/core/dist/markers/policyHash.js.map +1 -0
  358. package/packages/core/dist/markers/proofSignature.d.ts +29 -0
  359. package/packages/core/dist/markers/proofSignature.d.ts.map +1 -0
  360. package/packages/core/dist/markers/proofSignature.js +106 -0
  361. package/packages/core/dist/markers/proofSignature.js.map +1 -0
  362. package/packages/core/dist/markers/reconcile.d.ts +26 -0
  363. package/packages/core/dist/markers/reconcile.d.ts.map +1 -0
  364. package/packages/core/dist/markers/reconcile.js +52 -0
  365. package/packages/core/dist/markers/reconcile.js.map +1 -0
  366. package/packages/core/dist/markers/registry.d.ts +53 -0
  367. package/packages/core/dist/markers/registry.d.ts.map +1 -0
  368. package/packages/core/dist/markers/registry.js +161 -0
  369. package/packages/core/dist/markers/registry.js.map +1 -0
  370. package/packages/core/dist/markers/rowHash.d.ts +2 -0
  371. package/packages/core/dist/markers/rowHash.d.ts.map +1 -0
  372. package/packages/core/dist/markers/rowHash.js +10 -0
  373. package/packages/core/dist/markers/rowHash.js.map +1 -0
  374. package/packages/core/dist/markers/scanner.d.ts +67 -0
  375. package/packages/core/dist/markers/scanner.d.ts.map +1 -0
  376. package/packages/core/dist/markers/scanner.js +292 -0
  377. package/packages/core/dist/markers/scanner.js.map +1 -0
  378. package/packages/core/dist/markers/schemas/binding-registry-event.schema.json +41 -0
  379. package/packages/core/dist/markers/schemas/freshness-status.schema.json +134 -0
  380. package/packages/core/dist/markers/schemas/proof-event.schema.json +170 -0
  381. package/packages/core/dist/markers/spanCanon.d.ts +4 -0
  382. package/packages/core/dist/markers/spanCanon.d.ts.map +1 -0
  383. package/packages/core/dist/markers/spanCanon.js +42 -0
  384. package/packages/core/dist/markers/spanCanon.js.map +1 -0
  385. package/packages/core/dist/markers/swiftFuncRecognizer.d.ts +36 -0
  386. package/packages/core/dist/markers/swiftFuncRecognizer.d.ts.map +1 -0
  387. package/packages/core/dist/markers/swiftFuncRecognizer.js +638 -0
  388. package/packages/core/dist/markers/swiftFuncRecognizer.js.map +1 -0
  389. package/packages/core/dist/markers/validators.d.ts +13 -0
  390. package/packages/core/dist/markers/validators.d.ts.map +1 -0
  391. package/packages/core/dist/markers/validators.js +64 -0
  392. package/packages/core/dist/markers/validators.js.map +1 -0
  393. package/packages/core/dist/markers/verificationContextHash.d.ts +23 -0
  394. package/packages/core/dist/markers/verificationContextHash.d.ts.map +1 -0
  395. package/packages/core/dist/markers/verificationContextHash.js +96 -0
  396. package/packages/core/dist/markers/verificationContextHash.js.map +1 -0
  397. package/packages/core/dist/markers/verifierPresets.d.ts +18 -0
  398. package/packages/core/dist/markers/verifierPresets.d.ts.map +1 -0
  399. package/packages/core/dist/markers/verifierPresets.js +71 -0
  400. package/packages/core/dist/markers/verifierPresets.js.map +1 -0
  401. package/packages/core/dist/markers/verifierResolver.d.ts +27 -0
  402. package/packages/core/dist/markers/verifierResolver.d.ts.map +1 -0
  403. package/packages/core/dist/markers/verifierResolver.js +151 -0
  404. package/packages/core/dist/markers/verifierResolver.js.map +1 -0
  405. package/packages/core/dist/migration/index.d.ts +2 -0
  406. package/packages/core/dist/migration/index.d.ts.map +1 -0
  407. package/packages/core/dist/migration/index.js +2 -0
  408. package/packages/core/dist/migration/index.js.map +1 -0
  409. package/packages/core/dist/migration/testMatrix.d.ts +42 -0
  410. package/packages/core/dist/migration/testMatrix.d.ts.map +1 -0
  411. package/packages/core/dist/migration/testMatrix.js +351 -0
  412. package/packages/core/dist/migration/testMatrix.js.map +1 -0
  413. package/packages/core/dist/package/index.d.ts +2 -0
  414. package/packages/core/dist/package/index.d.ts.map +1 -0
  415. package/packages/core/dist/package/index.js +2 -0
  416. package/packages/core/dist/package/index.js.map +1 -0
  417. package/packages/core/dist/package/inspectPackage.d.ts +67 -0
  418. package/packages/core/dist/package/inspectPackage.d.ts.map +1 -0
  419. package/packages/core/dist/package/inspectPackage.js +371 -0
  420. package/packages/core/dist/package/inspectPackage.js.map +1 -0
  421. package/packages/core/dist/presentation/candidates.d.ts +13 -0
  422. package/packages/core/dist/presentation/candidates.d.ts.map +1 -0
  423. package/packages/core/dist/presentation/candidates.js +86 -0
  424. package/packages/core/dist/presentation/candidates.js.map +1 -0
  425. package/packages/core/dist/presentation/index.d.ts +8 -0
  426. package/packages/core/dist/presentation/index.d.ts.map +1 -0
  427. package/packages/core/dist/presentation/index.js +8 -0
  428. package/packages/core/dist/presentation/index.js.map +1 -0
  429. package/packages/core/dist/presentation/items.d.ts +18 -0
  430. package/packages/core/dist/presentation/items.d.ts.map +1 -0
  431. package/packages/core/dist/presentation/items.js +228 -0
  432. package/packages/core/dist/presentation/items.js.map +1 -0
  433. package/packages/core/dist/presentation/ordering.d.ts +8 -0
  434. package/packages/core/dist/presentation/ordering.d.ts.map +1 -0
  435. package/packages/core/dist/presentation/ordering.js +31 -0
  436. package/packages/core/dist/presentation/ordering.js.map +1 -0
  437. package/packages/core/dist/presentation/planHelpers.d.ts +26 -0
  438. package/packages/core/dist/presentation/planHelpers.d.ts.map +1 -0
  439. package/packages/core/dist/presentation/planHelpers.js +62 -0
  440. package/packages/core/dist/presentation/planHelpers.js.map +1 -0
  441. package/packages/core/dist/presentation/presentationFormat.d.ts +39 -0
  442. package/packages/core/dist/presentation/presentationFormat.d.ts.map +1 -0
  443. package/packages/core/dist/presentation/presentationFormat.js +58 -0
  444. package/packages/core/dist/presentation/presentationFormat.js.map +1 -0
  445. package/packages/core/dist/presentation/renderCard.d.ts +37 -0
  446. package/packages/core/dist/presentation/renderCard.d.ts.map +1 -0
  447. package/packages/core/dist/presentation/renderCard.js +129 -0
  448. package/packages/core/dist/presentation/renderCard.js.map +1 -0
  449. package/packages/core/dist/presentation/scoring.d.ts +10 -0
  450. package/packages/core/dist/presentation/scoring.d.ts.map +1 -0
  451. package/packages/core/dist/presentation/scoring.js +82 -0
  452. package/packages/core/dist/presentation/scoring.js.map +1 -0
  453. package/packages/core/dist/presentation/selectPlan.d.ts +4 -0
  454. package/packages/core/dist/presentation/selectPlan.d.ts.map +1 -0
  455. package/packages/core/dist/presentation/selectPlan.js +122 -0
  456. package/packages/core/dist/presentation/selectPlan.js.map +1 -0
  457. package/packages/core/dist/presentation/selectShowcasePlan.d.ts +3 -0
  458. package/packages/core/dist/presentation/selectShowcasePlan.d.ts.map +1 -0
  459. package/packages/core/dist/presentation/selectShowcasePlan.js +6 -0
  460. package/packages/core/dist/presentation/selectShowcasePlan.js.map +1 -0
  461. package/packages/core/dist/presentation/selectWalkthroughPlan.d.ts +3 -0
  462. package/packages/core/dist/presentation/selectWalkthroughPlan.d.ts.map +1 -0
  463. package/packages/core/dist/presentation/selectWalkthroughPlan.js +6 -0
  464. package/packages/core/dist/presentation/selectWalkthroughPlan.js.map +1 -0
  465. package/packages/core/dist/presentation/selection.d.ts +7 -0
  466. package/packages/core/dist/presentation/selection.d.ts.map +1 -0
  467. package/packages/core/dist/presentation/selection.js +20 -0
  468. package/packages/core/dist/presentation/selection.js.map +1 -0
  469. package/packages/core/dist/presentation/snapshot.d.ts +12 -0
  470. package/packages/core/dist/presentation/snapshot.d.ts.map +1 -0
  471. package/packages/core/dist/presentation/snapshot.js +53 -0
  472. package/packages/core/dist/presentation/snapshot.js.map +1 -0
  473. package/packages/core/dist/presentation/types.d.ts +172 -0
  474. package/packages/core/dist/presentation/types.d.ts.map +1 -0
  475. package/packages/core/dist/presentation/types.js +2 -0
  476. package/packages/core/dist/presentation/types.js.map +1 -0
  477. package/packages/core/dist/redact.d.ts +11 -0
  478. package/packages/core/dist/redact.d.ts.map +1 -0
  479. package/packages/core/dist/redact.js +17 -0
  480. package/packages/core/dist/redact.js.map +1 -0
  481. package/packages/core/dist/roots.d.ts +81 -0
  482. package/packages/core/dist/roots.d.ts.map +1 -0
  483. package/packages/core/dist/roots.js +220 -0
  484. package/packages/core/dist/roots.js.map +1 -0
  485. package/packages/core/dist/schema/cliResult.d.ts +34 -0
  486. package/packages/core/dist/schema/cliResult.d.ts.map +1 -0
  487. package/packages/core/dist/schema/cliResult.js +35 -0
  488. package/packages/core/dist/schema/cliResult.js.map +1 -0
  489. package/packages/core/dist/schema/diagnostic.d.ts +26 -0
  490. package/packages/core/dist/schema/diagnostic.d.ts.map +1 -0
  491. package/packages/core/dist/schema/diagnostic.js +28 -0
  492. package/packages/core/dist/schema/diagnostic.js.map +1 -0
  493. package/packages/core/dist/schema/index.d.ts +8 -0
  494. package/packages/core/dist/schema/index.d.ts.map +1 -0
  495. package/packages/core/dist/schema/index.js +9 -0
  496. package/packages/core/dist/schema/index.js.map +1 -0
  497. package/packages/core/dist/schema/registry.d.ts +15 -0
  498. package/packages/core/dist/schema/registry.d.ts.map +1 -0
  499. package/packages/core/dist/schema/registry.js +206 -0
  500. package/packages/core/dist/schema/registry.js.map +1 -0
  501. package/packages/core/dist/schema/syntheticContracts.d.ts +3 -0
  502. package/packages/core/dist/schema/syntheticContracts.d.ts.map +1 -0
  503. package/packages/core/dist/schema/syntheticContracts.js +342 -0
  504. package/packages/core/dist/schema/syntheticContracts.js.map +1 -0
  505. package/packages/core/dist/schema/validate.d.ts +21 -0
  506. package/packages/core/dist/schema/validate.d.ts.map +1 -0
  507. package/packages/core/dist/schema/validate.js +210 -0
  508. package/packages/core/dist/schema/validate.js.map +1 -0
  509. package/packages/core/dist/schemas/v1/authority.schema.json +70 -0
  510. package/packages/core/dist/schemas/v1/cli-result.schema.json +30 -0
  511. package/packages/core/dist/schemas/v1/common.schema.json +274 -0
  512. package/packages/core/dist/schemas/v1/demo-capsule.schema.json +78 -0
  513. package/packages/core/dist/schemas/v1/evidence-append-result.schema.json +14 -0
  514. package/packages/core/dist/schemas/v1/evidence-event.schema.json +181 -0
  515. package/packages/core/dist/schemas/v1/evidence-status-result.schema.json +68 -0
  516. package/packages/core/dist/schemas/v1/host-profile.schema.json +94 -0
  517. package/packages/core/dist/schemas/v1/host-status-result.schema.json +49 -0
  518. package/packages/core/dist/schemas/v1/keyring.schema.json +77 -0
  519. package/packages/core/dist/schemas/v1/ledger.schema.json +99 -0
  520. package/packages/core/dist/schemas/v1/marker.schema.json +84 -0
  521. package/packages/core/dist/schemas/v1/matrix-list-result.schema.json +67 -0
  522. package/packages/core/dist/schemas/v1/matrix-mutation-result.schema.json +49 -0
  523. package/packages/core/dist/schemas/v1/matrix-validation-result.schema.json +77 -0
  524. package/packages/core/dist/schemas/v1/mcp-tool-results.schema.json +34 -0
  525. package/packages/core/dist/schemas/v1/migration-test-matrix-result.schema.json +76 -0
  526. package/packages/core/dist/schemas/v1/presentation-plan-result.schema.json +62 -0
  527. package/packages/core/dist/schemas/v1/presentation-plan.schema.json +259 -0
  528. package/packages/core/dist/schemas/v1/release-gate-result.schema.json +136 -0
  529. package/packages/core/dist/schemas/v1/showcase-approval-result.schema.json +5 -0
  530. package/packages/core/dist/schemas/v1/showcase-event-append-result.schema.json +17 -0
  531. package/packages/core/dist/schemas/v1/showcase-event.schema.json +235 -0
  532. package/packages/core/dist/schemas/v1/showcase-finish-result.schema.json +5 -0
  533. package/packages/core/dist/schemas/v1/showcase-run-status-result.schema.json +70 -0
  534. package/packages/core/dist/schemas/v1/showcase-start-result.schema.json +5 -0
  535. package/packages/core/dist/schemas/v1/use-case-file.schema.json +178 -0
  536. package/packages/core/dist/schemas/v1/workflow-mode.schema.json +16 -0
  537. package/packages/core/dist/schemas/v1/workspace-config.schema.json +58 -0
  538. package/packages/core/dist/showcase/appendShowcaseEvent.d.ts +116 -0
  539. package/packages/core/dist/showcase/appendShowcaseEvent.d.ts.map +1 -0
  540. package/packages/core/dist/showcase/appendShowcaseEvent.js +353 -0
  541. package/packages/core/dist/showcase/appendShowcaseEvent.js.map +1 -0
  542. package/packages/core/dist/showcase/approval.d.ts +2 -0
  543. package/packages/core/dist/showcase/approval.d.ts.map +1 -0
  544. package/packages/core/dist/showcase/approval.js +2 -0
  545. package/packages/core/dist/showcase/approval.js.map +1 -0
  546. package/packages/core/dist/showcase/approvalAuthority.d.ts +19 -0
  547. package/packages/core/dist/showcase/approvalAuthority.d.ts.map +1 -0
  548. package/packages/core/dist/showcase/approvalAuthority.js +46 -0
  549. package/packages/core/dist/showcase/approvalAuthority.js.map +1 -0
  550. package/packages/core/dist/showcase/index.d.ts +11 -0
  551. package/packages/core/dist/showcase/index.d.ts.map +1 -0
  552. package/packages/core/dist/showcase/index.js +11 -0
  553. package/packages/core/dist/showcase/index.js.map +1 -0
  554. package/packages/core/dist/showcase/jsonlLedger.d.ts +11 -0
  555. package/packages/core/dist/showcase/jsonlLedger.d.ts.map +1 -0
  556. package/packages/core/dist/showcase/jsonlLedger.js +50 -0
  557. package/packages/core/dist/showcase/jsonlLedger.js.map +1 -0
  558. package/packages/core/dist/showcase/planBinding.d.ts +5 -0
  559. package/packages/core/dist/showcase/planBinding.d.ts.map +1 -0
  560. package/packages/core/dist/showcase/planBinding.js +33 -0
  561. package/packages/core/dist/showcase/planBinding.js.map +1 -0
  562. package/packages/core/dist/showcase/replayRun.d.ts +5 -0
  563. package/packages/core/dist/showcase/replayRun.d.ts.map +1 -0
  564. package/packages/core/dist/showcase/replayRun.js +199 -0
  565. package/packages/core/dist/showcase/replayRun.js.map +1 -0
  566. package/packages/core/dist/showcase/results.d.ts +3 -0
  567. package/packages/core/dist/showcase/results.d.ts.map +1 -0
  568. package/packages/core/dist/showcase/results.js +4 -0
  569. package/packages/core/dist/showcase/results.js.map +1 -0
  570. package/packages/core/dist/showcase/revisionEpochs.d.ts +2 -0
  571. package/packages/core/dist/showcase/revisionEpochs.d.ts.map +1 -0
  572. package/packages/core/dist/showcase/revisionEpochs.js +2 -0
  573. package/packages/core/dist/showcase/revisionEpochs.js.map +1 -0
  574. package/packages/core/dist/showcase/startRun.d.ts +2 -0
  575. package/packages/core/dist/showcase/startRun.d.ts.map +1 -0
  576. package/packages/core/dist/showcase/startRun.js +2 -0
  577. package/packages/core/dist/showcase/startRun.js.map +1 -0
  578. package/packages/core/dist/showcase/types.d.ts +66 -0
  579. package/packages/core/dist/showcase/types.d.ts.map +1 -0
  580. package/packages/core/dist/showcase/types.js +2 -0
  581. package/packages/core/dist/showcase/types.js.map +1 -0
  582. package/packages/core/dist/skills/canonicalSkills.d.ts +3 -0
  583. package/packages/core/dist/skills/canonicalSkills.d.ts.map +1 -0
  584. package/packages/core/dist/skills/canonicalSkills.js +7 -0
  585. package/packages/core/dist/skills/canonicalSkills.js.map +1 -0
  586. package/packages/core/dist/skills/index.d.ts +4 -0
  587. package/packages/core/dist/skills/index.d.ts.map +1 -0
  588. package/packages/core/dist/skills/index.js +4 -0
  589. package/packages/core/dist/skills/index.js.map +1 -0
  590. package/packages/core/dist/skills/types.d.ts +26 -0
  591. package/packages/core/dist/skills/types.d.ts.map +1 -0
  592. package/packages/core/dist/skills/types.js +2 -0
  593. package/packages/core/dist/skills/types.js.map +1 -0
  594. package/packages/core/dist/skills/validateSkillAssets.d.ts +6 -0
  595. package/packages/core/dist/skills/validateSkillAssets.d.ts.map +1 -0
  596. package/packages/core/dist/skills/validateSkillAssets.js +218 -0
  597. package/packages/core/dist/skills/validateSkillAssets.js.map +1 -0
  598. package/packages/core/dist/useCases/integrity.d.ts +11 -0
  599. package/packages/core/dist/useCases/integrity.d.ts.map +1 -0
  600. package/packages/core/dist/useCases/integrity.js +178 -0
  601. package/packages/core/dist/useCases/integrity.js.map +1 -0
  602. package/packages/core/dist/useCases/loadUseCaseMatrix.d.ts +7 -0
  603. package/packages/core/dist/useCases/loadUseCaseMatrix.d.ts.map +1 -0
  604. package/packages/core/dist/useCases/loadUseCaseMatrix.js +74 -0
  605. package/packages/core/dist/useCases/loadUseCaseMatrix.js.map +1 -0
  606. package/packages/core/dist/useCases/mutateUseCaseMatrix.d.ts +25 -0
  607. package/packages/core/dist/useCases/mutateUseCaseMatrix.d.ts.map +1 -0
  608. package/packages/core/dist/useCases/mutateUseCaseMatrix.js +198 -0
  609. package/packages/core/dist/useCases/mutateUseCaseMatrix.js.map +1 -0
  610. package/packages/core/dist/useCases/query.d.ts +12 -0
  611. package/packages/core/dist/useCases/query.d.ts.map +1 -0
  612. package/packages/core/dist/useCases/query.js +47 -0
  613. package/packages/core/dist/useCases/query.js.map +1 -0
  614. package/packages/core/dist/useCases/types.d.ts +149 -0
  615. package/packages/core/dist/useCases/types.d.ts.map +1 -0
  616. package/packages/core/dist/useCases/types.js +2 -0
  617. package/packages/core/dist/useCases/types.js.map +1 -0
  618. package/packages/core/dist/useCases/validateUseCaseFile.d.ts +9 -0
  619. package/packages/core/dist/useCases/validateUseCaseFile.d.ts.map +1 -0
  620. package/packages/core/dist/useCases/validateUseCaseFile.js +107 -0
  621. package/packages/core/dist/useCases/validateUseCaseFile.js.map +1 -0
  622. package/packages/core/dist/version.d.ts +9 -0
  623. package/packages/core/dist/version.d.ts.map +1 -0
  624. package/packages/core/dist/version.js +17 -0
  625. package/packages/core/dist/version.js.map +1 -0
  626. package/packages/core/package.json +39 -0
  627. package/packages/mcp/README.md +48 -0
  628. package/packages/mcp/dist/index.d.ts +20 -0
  629. package/packages/mcp/dist/index.d.ts.map +1 -0
  630. package/packages/mcp/dist/index.js +180 -0
  631. package/packages/mcp/dist/index.js.map +1 -0
  632. package/packages/mcp/dist/prompts.d.ts +32 -0
  633. package/packages/mcp/dist/prompts.d.ts.map +1 -0
  634. package/packages/mcp/dist/prompts.js +199 -0
  635. package/packages/mcp/dist/prompts.js.map +1 -0
  636. package/packages/mcp/dist/resources.d.ts +22 -0
  637. package/packages/mcp/dist/resources.d.ts.map +1 -0
  638. package/packages/mcp/dist/resources.js +342 -0
  639. package/packages/mcp/dist/resources.js.map +1 -0
  640. package/packages/mcp/dist/toolHandlers.d.ts +28 -0
  641. package/packages/mcp/dist/toolHandlers.d.ts.map +1 -0
  642. package/packages/mcp/dist/toolHandlers.js +592 -0
  643. package/packages/mcp/dist/toolHandlers.js.map +1 -0
  644. package/packages/mcp/dist/toolSchemas.d.ts +23 -0
  645. package/packages/mcp/dist/toolSchemas.d.ts.map +1 -0
  646. package/packages/mcp/dist/toolSchemas.js +223 -0
  647. package/packages/mcp/dist/toolSchemas.js.map +1 -0
  648. package/packages/mcp/dist/tools.d.ts +22 -0
  649. package/packages/mcp/dist/tools.d.ts.map +1 -0
  650. package/packages/mcp/dist/tools.js +65 -0
  651. package/packages/mcp/dist/tools.js.map +1 -0
  652. package/packages/mcp/package.json +38 -0
  653. package/plugin.json +6 -0
  654. package/schemas/v1/authority.schema.json +70 -0
  655. package/schemas/v1/cli-result.schema.json +30 -0
  656. package/schemas/v1/common.schema.json +274 -0
  657. package/schemas/v1/demo-capsule.schema.json +78 -0
  658. package/schemas/v1/evidence-append-result.schema.json +14 -0
  659. package/schemas/v1/evidence-event.schema.json +181 -0
  660. package/schemas/v1/evidence-status-result.schema.json +68 -0
  661. package/schemas/v1/host-profile.schema.json +94 -0
  662. package/schemas/v1/host-status-result.schema.json +49 -0
  663. package/schemas/v1/keyring.schema.json +77 -0
  664. package/schemas/v1/ledger.schema.json +99 -0
  665. package/schemas/v1/marker.schema.json +84 -0
  666. package/schemas/v1/matrix-list-result.schema.json +67 -0
  667. package/schemas/v1/matrix-mutation-result.schema.json +49 -0
  668. package/schemas/v1/matrix-validation-result.schema.json +77 -0
  669. package/schemas/v1/mcp-tool-results.schema.json +34 -0
  670. package/schemas/v1/migration-test-matrix-result.schema.json +76 -0
  671. package/schemas/v1/presentation-plan-result.schema.json +62 -0
  672. package/schemas/v1/presentation-plan.schema.json +259 -0
  673. package/schemas/v1/release-gate-result.schema.json +136 -0
  674. package/schemas/v1/showcase-approval-result.schema.json +5 -0
  675. package/schemas/v1/showcase-event-append-result.schema.json +17 -0
  676. package/schemas/v1/showcase-event.schema.json +235 -0
  677. package/schemas/v1/showcase-finish-result.schema.json +5 -0
  678. package/schemas/v1/showcase-run-status-result.schema.json +70 -0
  679. package/schemas/v1/showcase-start-result.schema.json +5 -0
  680. package/schemas/v1/use-case-file.schema.json +178 -0
  681. package/schemas/v1/workflow-mode.schema.json +16 -0
  682. package/schemas/v1/workspace-config.schema.json +58 -0
  683. package/use-cases/capsule/demos.yml +212 -0
  684. package/use-cases/capsule/runner.yml +49 -0
  685. package/use-cases/diagnostics/contracts.yml +239 -0
  686. package/use-cases/evidence/core.yml +32 -0
  687. package/use-cases/evidence/ledger.yml +330 -0
  688. package/use-cases/hosts/profiles.yml +365 -0
  689. package/use-cases/hosts/projections.yml +96 -0
  690. package/use-cases/lifecycle/loop.yml +229 -0
  691. package/use-cases/matrix/core.yml +92 -0
  692. package/use-cases/matrix/product.yml +289 -0
  693. package/use-cases/mcp/surface.yml +257 -0
  694. package/use-cases/mcp/wrapper.yml +100 -0
  695. package/use-cases/migration/importer.yml +171 -0
  696. package/use-cases/migration/test-matrix.yml +32 -0
  697. package/use-cases/planning/cards.yml +215 -0
  698. package/use-cases/release/package.yml +80 -0
  699. package/use-cases/release/proof.yml +180 -0
  700. package/use-cases/roadmap/deferred.yml +184 -0
  701. package/use-cases/showcase/flow.yml +269 -0
  702. package/use-cases/showcase/live.yml +44 -0
  703. package/use-cases/skills/assets.yml +92 -0
  704. package/use-cases.yml +9 -0
@@ -0,0 +1,13 @@
1
+ export interface MarkerValidationError {
2
+ instance_path: string;
3
+ message: string;
4
+ }
5
+ export interface MarkerValidationResult {
6
+ ok: boolean;
7
+ errors: MarkerValidationError[];
8
+ }
9
+ export declare function validateMarkerSchema(schemaId: string, value: unknown): MarkerValidationResult;
10
+ export declare function validateBindingRegistryEvent(value: unknown): MarkerValidationResult;
11
+ export declare function validateProofEvent(value: unknown): MarkerValidationResult;
12
+ export declare function validateFreshnessStatus(value: unknown): MarkerValidationResult;
13
+ //# sourceMappingURL=validators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/markers/validators.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC;AA2CD,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,sBAAsB,CAkB7F;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,sBAAsB,CAEnF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,sBAAsB,CAEzE;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,sBAAsB,CAE9E"}
@@ -0,0 +1,64 @@
1
+ import Ajv2020Module, {} from "ajv/dist/2020.js";
2
+ import { existsSync, readFileSync } from "node:fs";
3
+ import { join } from "node:path";
4
+ import { fileURLToPath } from "node:url";
5
+ import { BINDING_REGISTRY_SCHEMA_ID, EVIDENCE_SCHEMA_ID, STATUS_SCHEMA_ID } from "./constants.js";
6
+ const SCHEMA_FILES = {
7
+ [BINDING_REGISTRY_SCHEMA_ID]: "binding-registry-event.schema.json",
8
+ [EVIDENCE_SCHEMA_ID]: "proof-event.schema.json",
9
+ [STATUS_SCHEMA_ID]: "freshness-status.schema.json"
10
+ };
11
+ let validatorCache;
12
+ function findSchemasDir() {
13
+ const candidates = [
14
+ fileURLToPath(new URL("./schemas/", import.meta.url)),
15
+ fileURLToPath(new URL("../../src/markers/schemas/", import.meta.url))
16
+ ];
17
+ const found = candidates.find((candidate) => existsSync(join(candidate, "binding-registry-event.schema.json")));
18
+ if (!found) {
19
+ throw new Error(`unable to locate markers schemas from ${import.meta.url}`);
20
+ }
21
+ return found;
22
+ }
23
+ function buildValidators() {
24
+ if (validatorCache) {
25
+ return validatorCache;
26
+ }
27
+ const Ajv2020 = Ajv2020Module.default;
28
+ const ajv = new Ajv2020({ allErrors: true, strict: true });
29
+ const schemasDir = findSchemasDir();
30
+ validatorCache = new Map(Object.entries(SCHEMA_FILES).map(([schemaId, fileName]) => {
31
+ const schema = JSON.parse(readFileSync(join(schemasDir, fileName), "utf8"));
32
+ return [schemaId, ajv.compile(schema)];
33
+ }));
34
+ return validatorCache;
35
+ }
36
+ export function validateMarkerSchema(schemaId, value) {
37
+ const validator = buildValidators().get(schemaId);
38
+ if (!validator) {
39
+ return {
40
+ ok: false,
41
+ errors: [{ instance_path: "", message: `unknown schema: ${schemaId}` }]
42
+ };
43
+ }
44
+ const ok = validator(value);
45
+ return {
46
+ ok,
47
+ errors: ok
48
+ ? []
49
+ : (validator.errors ?? []).map((error) => ({
50
+ instance_path: error.instancePath,
51
+ message: error.message ?? "schema validation failed"
52
+ }))
53
+ };
54
+ }
55
+ export function validateBindingRegistryEvent(value) {
56
+ return validateMarkerSchema(BINDING_REGISTRY_SCHEMA_ID, value);
57
+ }
58
+ export function validateProofEvent(value) {
59
+ return validateMarkerSchema(EVIDENCE_SCHEMA_ID, value);
60
+ }
61
+ export function validateFreshnessStatus(value) {
62
+ return validateMarkerSchema(STATUS_SCHEMA_ID, value);
63
+ }
64
+ //# sourceMappingURL=validators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validators.js","sourceRoot":"","sources":["../../src/markers/validators.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,EAAE,EAAyB,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EACjB,MAAM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-0,0 +1,23 @@
1
+ import { type VerifierResolution, type WorkspaceVerifierContext } from "./verifierResolver.js";
2
+ export declare const VERIFICATION_CONTEXT_HASH_ID = "ucase-verification-context-hash-v1";
3
+ export interface VerificationContextFs {
4
+ readText(path: string): string | null;
5
+ }
6
+ export interface VerificationContextHashArgs {
7
+ verificationPolicy: unknown;
8
+ verifiers: ReadonlyArray<VerifierResolution>;
9
+ rootDir: string;
10
+ fs: VerificationContextFs;
11
+ lockfileName?: string;
12
+ }
13
+ export declare function computeVerificationContextHash(args: VerificationContextHashArgs): string;
14
+ export interface RowVerificationContextHashArgs {
15
+ slug: string;
16
+ verificationPolicy: unknown;
17
+ rootDir: string;
18
+ fs: VerificationContextFs;
19
+ lockfileName?: string;
20
+ workspaceVerifiers?: WorkspaceVerifierContext;
21
+ }
22
+ export declare function computeRowVerificationContextHash(args: RowVerificationContextHashArgs): string;
23
+ //# sourceMappingURL=verificationContextHash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verificationContextHash.d.ts","sourceRoot":"","sources":["../../src/markers/verificationContextHash.ts"],"names":[],"mappings":"AAqBA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC9B,MAAM,uBAAuB,CAAC;AAG/B,eAAO,MAAM,4BAA4B,uCAAuC,CAAC;AAUjF,MAAM,WAAW,qBAAqB;IAEpC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACvC;AAED,MAAM,WAAW,2BAA2B;IAE1C,kBAAkB,EAAE,OAAO,CAAC;IAE5B,SAAS,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAE7C,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,qBAAqB,CAAC;IAE1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA8BD,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,2BAA2B,GAAG,MAAM,CA+BxF;AAED,MAAM,WAAW,8BAA8B;IAE7C,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,qBAAqB,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,kBAAkB,CAAC,EAAE,wBAAwB,CAAC;CAC/C;AAKD,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,8BAA8B,GAAG,MAAM,CAY9F"}
@@ -0,0 +1,96 @@
1
+ // Verification context hash (closes the "weakened verifier" freshness hole).
2
+ //
3
+ // A proof event today certifies {row hash, policy hashes, binding-set hash, span
4
+ // hashes} — i.e. WHAT was verified and against WHICH code. It says nothing about
5
+ // HOW it was verified. So if someone later weakens or deletes the row's
6
+ // acceptance test while the production spans are untouched, the old proof stays
7
+ // FRESH even though the thing that proved it is gone.
8
+ //
9
+ // `computeVerificationContextHash` binds a proof to its verifier context: the
10
+ // row's verification_policy, the RESOLVED verifier(s) it demands (id, kind,
11
+ // evidence_kind, command argv, timeout), the byte contents of every declared
12
+ // input file (e.g. the acceptance test itself), and the repo lockfile. The hash
13
+ // is embedded in the proof and re-derived at scan time; if it drifts, the proof
14
+ // is no longer FRESH.
15
+ //
16
+ // Pure + deterministic: file reads go through an injected seam, a missing input
17
+ // is an explicit `absent` marker (never an error), inputs are sorted+deduped, and
18
+ // the result depends ONLY on the declared inputs + lockfile + policy + verifiers —
19
+ // never on unrelated files in the tree.
20
+ import { isAbsolute, join } from "node:path";
21
+ import { canonicalJsonSha256, sha256 } from "./canonicalJson.js";
22
+ import { resolveRowVerifiers } from "./verifierResolver.js";
23
+ // The id of this hashing algorithm, embedded alongside the hash in proof events.
24
+ export const VERIFICATION_CONTEXT_HASH_ID = "ucase-verification-context-hash-v1";
25
+ // Deterministic sentinel for a declared input (or lockfile) that does not exist.
26
+ // Distinct from any real `sha256:...` value, so absent != present-but-empty.
27
+ const ABSENT_CONTENT = "absent";
28
+ // The repo lockfile whose contents pin the toolchain a verifier would run under.
29
+ const DEFAULT_LOCKFILE = "pnpm-lock.yaml";
30
+ // sha256 of a file's bytes, or the ABSENT sentinel when it does not exist.
31
+ function contentMarker(fs, rootDir, relOrAbs) {
32
+ const path = isAbsolute(relOrAbs) ? relOrAbs : join(rootDir, relOrAbs);
33
+ const text = fs.readText(path);
34
+ return text === null ? ABSENT_CONTENT : sha256(text);
35
+ }
36
+ // Canonical, order-stable projection of one resolved/blocked verifier. Only the
37
+ // fields that define HOW verification runs are hashed (line/format independent).
38
+ function verifierToCanon(verifier) {
39
+ if (verifier.status === "resolved") {
40
+ const canon = {
41
+ verifier_id: verifier.verifier_id,
42
+ status: verifier.status,
43
+ kind: verifier.kind,
44
+ evidence_kind: verifier.evidence_kind,
45
+ command: verifier.command
46
+ };
47
+ if (verifier.timeout_seconds !== undefined) {
48
+ canon.timeout_seconds = verifier.timeout_seconds;
49
+ }
50
+ return canon;
51
+ }
52
+ return { verifier_id: verifier.verifier_id, status: verifier.status, reason: verifier.reason };
53
+ }
54
+ // Compute the verification context hash for a row given its already-resolved
55
+ // verifiers. Returns "sha256:<hex>".
56
+ export function computeVerificationContextHash(args) {
57
+ const lockfileName = args.lockfileName ?? DEFAULT_LOCKFILE;
58
+ // Verifiers sorted by id for stability (resolveRowVerifiers already sorts, but
59
+ // this keeps the hash independent of caller ordering).
60
+ const verifiers = [...args.verifiers]
61
+ .sort((left, right) => left.verifier_id < right.verifier_id ? -1 : left.verifier_id > right.verifier_id ? 1 : 0)
62
+ .map(verifierToCanon);
63
+ // Union of every resolved verifier's declared inputs, deduped + sorted, each
64
+ // paired with the sha256 of its current bytes (or the absent marker).
65
+ const inputPaths = new Set();
66
+ for (const verifier of args.verifiers) {
67
+ if (verifier.status === "resolved") {
68
+ for (const input of verifier.inputs) {
69
+ inputPaths.add(input);
70
+ }
71
+ }
72
+ }
73
+ const inputs = [...inputPaths]
74
+ .sort((left, right) => (left < right ? -1 : left > right ? 1 : 0))
75
+ .map((path) => ({ path, content_sha256: contentMarker(args.fs, args.rootDir, path) }));
76
+ return canonicalJsonSha256({
77
+ verification_policy: args.verificationPolicy ?? null,
78
+ verifiers,
79
+ inputs,
80
+ lockfile_sha256: contentMarker(args.fs, args.rootDir, lockfileName)
81
+ });
82
+ }
83
+ // Convenience: resolve a row's verifiers, then compute its context hash. This is
84
+ // the single entry point both `prove` (to embed) and `scan` (to re-derive) use,
85
+ // so the embedded and recomputed hashes are guaranteed to agree byte-for-byte.
86
+ export function computeRowVerificationContextHash(args) {
87
+ const verifiers = resolveRowVerifiers({ slug: args.slug, verification_policy: args.verificationPolicy }, args.workspaceVerifiers ?? {});
88
+ return computeVerificationContextHash({
89
+ verificationPolicy: args.verificationPolicy,
90
+ verifiers,
91
+ rootDir: args.rootDir,
92
+ fs: args.fs,
93
+ lockfileName: args.lockfileName
94
+ });
95
+ }
96
+ //# sourceMappingURL=verificationContextHash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verificationContextHash.js","sourceRoot":"","sources":["../../src/markers/verificationContextHash.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,EAAE;AACF,iFAAiF;AACjF,iFAAiF;AACjF,wEAAwE;AACxE,gFAAgF;AAChF,sDAAsD;AACtD,EAAE;AACF,8EAA8E;AAC9E,4EAA4E;AAC5E,6EAA6E;AAC7E,gFAAgF;AAChF,gFAAgF;AAChF,sBAAsB;AACtB,EAAE;AACF,gFAAgF;AAChF,kFAAkF;AAClF,mFAAmF;AACnF,wCAAwC;AACxC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EACL,mBAAmB,EAGpB,MAAM,uBAAuB,CAAC;AAE/B,iFAAiF;AACjF,MAAM,CAAC,MAAM,4BAA4B,GAAG,oCAAoC,CAAC;AAEjF,iFAAiF;AACjF,6EAA6E;AAC7E,MAAM,cAAc,GAAG,QAAQ,CAAC;AAE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;QACT,MAAM;QACN,eAAe,EAAE,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC;KACpE,CAAC,CAAC;AACL,CAAC;AAeD,iFAAiF;AACjF,gFAAgF;AAChF,+EAA+E;AAC/E,MAAM,UAAU,iCAAiC,CAAC,IAAoC;IACpF,MAAM,SAAS,GAAG,mBAAmB,CACnC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,CAAC,kBAAkB,EAAE,EACjE,IAAI,CAAC,kBAAkB,IAAI,EAAE,CAC9B,CAAC;IACF,OAAO,8BAA8B,CAAC;QACpC,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;QAC3C,SAAS;QACT,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,EAAE,EAAE,IAAI,CAAC,EAAE;QACX,YAAY,EAAE,IAAI,CAAC,YAAY;KAChC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const VERIFIER_PRESET_IDS: readonly ["command.generic", "js.vitest", "js.npm-test", "python.pytest", "go.test", "make.target"];
2
+ export type VerifierPresetId = (typeof VERIFIER_PRESET_IDS)[number];
3
+ export interface ExpandedPreset {
4
+ kind: "script";
5
+ command: string[];
6
+ inputs: string[];
7
+ }
8
+ export type PresetExpansion = {
9
+ status: "resolved";
10
+ preset: VerifierPresetId;
11
+ expansion: ExpandedPreset;
12
+ } | {
13
+ status: "blocked";
14
+ reason: string;
15
+ };
16
+ export declare function isVerifierPresetId(value: unknown): value is VerifierPresetId;
17
+ export declare function expandPreset(presetId: string, slug: string): PresetExpansion;
18
+ //# sourceMappingURL=verifierPresets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifierPresets.d.ts","sourceRoot":"","sources":["../../src/markers/verifierPresets.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,mBAAmB,qGAOtB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,MAAM,eAAe,GACvB;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAC;IAAC,SAAS,EAAE,cAAc,CAAA;CAAE,GAC3E;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAwB1C,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAE5E;AAID,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,eAAe,CAiB5E"}
@@ -0,0 +1,71 @@
1
+ // Language-agnostic verifier presets.
2
+ //
3
+ // A preset is a named, reusable expansion of the "what command verifies this
4
+ // row" question. Each preset expands — with `{slug}` substituted everywhere it
5
+ // appears — to a `{ kind:"script", command, inputs }` triple. Presets let a
6
+ // workspace adopt the matrix WITHOUT inheriting the historical pnpm/vitest
7
+ // assumption: that convention now lives here as `js.vitest`, alongside npm,
8
+ // pytest, go, make, and a bring-your-own-argv `command.generic`.
9
+ //
10
+ // Pure + deterministic: `expandPreset` substitutes `{slug}` and returns either a
11
+ // resolved expansion or a BLOCKED result for an unknown preset id (never throws),
12
+ // mirroring the resolver's return-blocked contract so the two compose cleanly.
13
+ const SLUG_TOKEN = "{slug}";
14
+ // The canonical preset id union. Keep in sync with the `verifier_preset_id`
15
+ // enum in schemas/v1/common.schema.json.
16
+ export const VERIFIER_PRESET_IDS = [
17
+ "command.generic",
18
+ "js.vitest",
19
+ "js.npm-test",
20
+ "python.pytest",
21
+ "go.test",
22
+ "make.target"
23
+ ];
24
+ // Raw (un-substituted) preset templates. `command.generic` ships an empty
25
+ // command on purpose: the caller supplies the argv, so there is no default.
26
+ const PRESET_TEMPLATES = {
27
+ "command.generic": { command: [], inputs: [] },
28
+ "js.vitest": {
29
+ // Resolve the locally-installed vitest via `npx --no-install` so an
30
+ // npm-only machine with no global pnpm still verifies. pnpm installs
31
+ // vitest into node_modules/.bin, which npx resolves too, so pnpm users
32
+ // are unaffected. `--no-install` forbids any network fetch — if vitest
33
+ // is not installed locally, the command fails fast rather than hanging.
34
+ command: ["npx", "--no-install", "vitest", "run", "tests/use-cases/{slug}.test.ts"],
35
+ inputs: ["tests/use-cases/{slug}.test.ts"]
36
+ },
37
+ "js.npm-test": { command: ["npm", "test"], inputs: [] },
38
+ "python.pytest": {
39
+ command: ["pytest", "tests/use_cases/{slug}_test.py"],
40
+ inputs: ["tests/use_cases/{slug}_test.py"]
41
+ },
42
+ "go.test": { command: ["go", "test", "./..."], inputs: [] },
43
+ "make.target": { command: ["make", "test-use-case", "SLUG={slug}"], inputs: [] }
44
+ };
45
+ export function isVerifierPresetId(value) {
46
+ return typeof value === "string" && VERIFIER_PRESET_IDS.includes(value);
47
+ }
48
+ // Expand a preset id into its concrete `{ kind, command, inputs }`, substituting
49
+ // `{slug}` throughout. Unknown ids return BLOCKED rather than throwing.
50
+ export function expandPreset(presetId, slug) {
51
+ if (!isVerifierPresetId(presetId)) {
52
+ return {
53
+ status: "blocked",
54
+ reason: `unknown verifier preset '${presetId}'; known presets: ${VERIFIER_PRESET_IDS.join(", ")}`
55
+ };
56
+ }
57
+ const template = PRESET_TEMPLATES[presetId];
58
+ return {
59
+ status: "resolved",
60
+ preset: presetId,
61
+ expansion: {
62
+ kind: "script",
63
+ command: template.command.map((part) => substituteSlug(part, slug)),
64
+ inputs: template.inputs.map((part) => substituteSlug(part, slug))
65
+ }
66
+ };
67
+ }
68
+ function substituteSlug(value, slug) {
69
+ return value.split(SLUG_TOKEN).join(slug);
70
+ }
71
+ //# sourceMappingURL=verifierPresets.js.map
@@ -0,0 +1 @@
1
+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AEF,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAK,mBAAyC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACjG,CAAC;AAED,iFAAiF;AACjF,wEAAwE;AACxE,MAAM,UAAU,YAAY,CAAC,QAAgB,EAAE,IAAY;IACzD,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAClC,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,4BAA4B,QAAQ,qBAAqB,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;SAClG,CAAC;IACJ,CAAC;IACD,MAAM,QAAQ,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC5C,OAAO;QACL,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,QAAQ;QAChB,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACnE,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SAClE;KACF,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,KAAa,EAAE,IAAY;IACjD,OAAO,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC"}
@@ -0,0 +1,27 @@
1
+ export declare const DEFAULT_CONVENTION_VERIFIER_ID = "acceptance";
2
+ export interface VerifierResolverRow {
3
+ slug: string;
4
+ verification_policy: unknown;
5
+ }
6
+ export interface WorkspaceVerifierContext {
7
+ default?: string;
8
+ verifiers?: Record<string, unknown>;
9
+ }
10
+ export interface ResolvedVerifier {
11
+ verifier_id: string;
12
+ status: "resolved";
13
+ source: "policy" | "workspace_config" | "workspace_default";
14
+ kind: "script";
15
+ evidence_kind: string;
16
+ command: string[];
17
+ inputs: string[];
18
+ timeout_seconds?: number;
19
+ }
20
+ export interface BlockedVerifier {
21
+ verifier_id: string;
22
+ status: "blocked";
23
+ reason: string;
24
+ }
25
+ export type VerifierResolution = ResolvedVerifier | BlockedVerifier;
26
+ export declare function resolveRowVerifiers(row: VerifierResolverRow, workspace?: WorkspaceVerifierContext): VerifierResolution[];
27
+ //# sourceMappingURL=verifierResolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifierResolver.d.ts","sourceRoot":"","sources":["../../src/markers/verifierResolver.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,8BAA8B,eAAe,CAAC;AAU3D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAMD,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,QAAQ,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;IAC5D,IAAI,EAAE,QAAQ,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,eAAe,CAAC;AAIpE,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,mBAAmB,EACxB,SAAS,GAAE,wBAA6B,GACvC,kBAAkB,EAAE,CAStB"}
@@ -0,0 +1,151 @@
1
+ // Resolve the concrete verifier(s) a marker row's verification_policy demands.
2
+ //
3
+ // A verification_policy in "requirements" mode lists `required_verifiers` ids per
4
+ // requirement. Each id resolves CONFIG-DRIVEN, in this order:
5
+ // 1. the row's own `verification_policy.verifiers[id]`;
6
+ // 2. the WORKSPACE CONFIG's `verifiers[id]`;
7
+ // 3. if `id` is the default-convention id ("acceptance") and the workspace
8
+ // config declares `verifiers.default`, the entry that default names;
9
+ // 4. otherwise BLOCKED — returned (never thrown) so callers can surface an
10
+ // actionable diagnostic instead of crashing.
11
+ //
12
+ // A verifier ENTRY (in either map) is either an explicit `{ kind:"script",
13
+ // command, ... }` or a preset reference `{ preset, ... }` that resolves via
14
+ // `expandPreset` (PIECE 1). There is NO hardcoded pnpm/vitest default any more —
15
+ // that convention now lives ONLY in the `js.vitest` preset.
16
+ //
17
+ // Pure + deterministic: given a row + workspace verifiers the result is sorted by
18
+ // verifier_id and deduped, and `{slug}` is substituted everywhere it appears in
19
+ // command/inputs.
20
+ import { expandPreset } from "./verifierPresets.js";
21
+ // The convention id rows reference when they want "the workspace default verifier".
22
+ // It carries no built-in command — it resolves ONLY via the workspace config's
23
+ // `verifiers.default`. Absent that, it is BLOCKED.
24
+ export const DEFAULT_CONVENTION_VERIFIER_ID = "acceptance";
25
+ const SLUG_TOKEN = "{slug}";
26
+ // The default evidence_kind for an entry that does not declare one (preset refs
27
+ // may omit it). Matches the historical default-convention evidence kind.
28
+ const DEFAULT_EVIDENCE_KIND = "test_result";
29
+ // Resolve every required_verifier id referenced by the row's verification_policy.
30
+ // The returned array is deduped by verifier_id and sorted ascending for stability.
31
+ export function resolveRowVerifiers(row, workspace = {}) {
32
+ const ids = collectRequiredVerifierIds(row.verification_policy);
33
+ const rowVerifiers = extractVerifiers(row.verification_policy);
34
+ const workspaceVerifiers = isRecord(workspace.verifiers) ? workspace.verifiers : {};
35
+ return ids
36
+ .map((id) => resolveOne(id, row.slug, rowVerifiers, workspaceVerifiers, workspace.default))
37
+ .sort((left, right) => left.verifier_id < right.verifier_id ? -1 : left.verifier_id > right.verifier_id ? 1 : 0);
38
+ }
39
+ function resolveOne(id, slug, rowVerifiers, workspaceVerifiers, workspaceDefault) {
40
+ // 1. The row's own declared verifier.
41
+ if (isRecord(rowVerifiers[id])) {
42
+ return resolveEntry(id, slug, rowVerifiers[id], "policy");
43
+ }
44
+ // 2. The workspace config's verifier of the same id.
45
+ if (isRecord(workspaceVerifiers[id])) {
46
+ return resolveEntry(id, slug, workspaceVerifiers[id], "workspace_config");
47
+ }
48
+ // 3. The default-convention id, backed by the workspace's `verifiers.default`.
49
+ if (id === DEFAULT_CONVENTION_VERIFIER_ID && typeof workspaceDefault === "string") {
50
+ const target = workspaceVerifiers[workspaceDefault];
51
+ if (isRecord(target)) {
52
+ return resolveEntry(id, slug, target, "workspace_default");
53
+ }
54
+ return {
55
+ verifier_id: id,
56
+ status: "blocked",
57
+ reason: `workspace verifiers.default '${workspaceDefault}' does not name a declared verifier`
58
+ };
59
+ }
60
+ // 4. Unresolvable: actionable, never thrown.
61
+ return {
62
+ verifier_id: id,
63
+ status: "blocked",
64
+ reason: `no verifier '${id}' configured; declare it in the row's verification_policy.verifiers ` +
65
+ `or the workspace verifiers map, or set verifiers.default`
66
+ };
67
+ }
68
+ // Resolve one verifier ENTRY (explicit script or preset reference) to a concrete
69
+ // ResolvedVerifier, substituting {slug}. A preset reference expands via PIECE 1's
70
+ // expandPreset; an unknown preset id surfaces as BLOCKED.
71
+ function resolveEntry(id, slug, entry, source) {
72
+ if (typeof entry.preset === "string") {
73
+ return resolvePresetEntry(id, slug, entry, source);
74
+ }
75
+ return resolveScriptEntry(id, slug, entry, source);
76
+ }
77
+ function resolvePresetEntry(id, slug, entry, source) {
78
+ const expansion = expandPreset(entry.preset, slug);
79
+ if (expansion.status === "blocked") {
80
+ return { verifier_id: id, status: "blocked", reason: expansion.reason };
81
+ }
82
+ // The entry may override inputs and supply evidence_kind / timeout_seconds.
83
+ const inputs = Array.isArray(entry.inputs)
84
+ ? toStringArray(entry.inputs).map((part) => substituteSlug(part, slug))
85
+ : expansion.expansion.inputs;
86
+ const resolved = {
87
+ verifier_id: id,
88
+ status: "resolved",
89
+ source,
90
+ kind: "script",
91
+ evidence_kind: typeof entry.evidence_kind === "string" ? entry.evidence_kind : DEFAULT_EVIDENCE_KIND,
92
+ command: expansion.expansion.command,
93
+ inputs
94
+ };
95
+ if (typeof entry.timeout_seconds === "number") {
96
+ resolved.timeout_seconds = entry.timeout_seconds;
97
+ }
98
+ return resolved;
99
+ }
100
+ function resolveScriptEntry(id, slug, entry, source) {
101
+ const resolved = {
102
+ verifier_id: id,
103
+ status: "resolved",
104
+ source,
105
+ kind: "script",
106
+ evidence_kind: typeof entry.evidence_kind === "string" ? entry.evidence_kind : DEFAULT_EVIDENCE_KIND,
107
+ command: toStringArray(entry.command).map((part) => substituteSlug(part, slug)),
108
+ inputs: toStringArray(entry.inputs).map((part) => substituteSlug(part, slug))
109
+ };
110
+ if (typeof entry.timeout_seconds === "number") {
111
+ resolved.timeout_seconds = entry.timeout_seconds;
112
+ }
113
+ return resolved;
114
+ }
115
+ function collectRequiredVerifierIds(policy) {
116
+ if (!isRecord(policy) || policy.mode !== "requirements" || !Array.isArray(policy.requirements)) {
117
+ return [];
118
+ }
119
+ const seen = new Set();
120
+ const ids = [];
121
+ for (const requirement of policy.requirements) {
122
+ if (!isRecord(requirement) || !Array.isArray(requirement.required_verifiers)) {
123
+ continue;
124
+ }
125
+ for (const id of requirement.required_verifiers) {
126
+ if (typeof id === "string" && !seen.has(id)) {
127
+ seen.add(id);
128
+ ids.push(id);
129
+ }
130
+ }
131
+ }
132
+ return ids;
133
+ }
134
+ function extractVerifiers(policy) {
135
+ if (isRecord(policy) && isRecord(policy.verifiers)) {
136
+ return policy.verifiers;
137
+ }
138
+ return {};
139
+ }
140
+ function substituteSlug(value, slug) {
141
+ return value.split(SLUG_TOKEN).join(slug);
142
+ }
143
+ function toStringArray(value) {
144
+ return Array.isArray(value)
145
+ ? value.filter((item) => typeof item === "string")
146
+ : [];
147
+ }
148
+ function isRecord(value) {
149
+ return typeof value === "object" && value !== null && !Array.isArray(value);
150
+ }
151
+ //# sourceMappingURL=verifierResolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifierResolver.js","sourceRoot":"","sources":["../../src/markers/verifierResolver.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,EAAE;AACF,kFAAkF;AAClF,8DAA8D;AAC9D,0DAA0D;AAC1D,+CAA+C;AAC/C,6EAA6E;AAC7E,0EAA0E;AAC1E,6EAA6E;AAC7E,kDAAkD;AAClD,EAAE;AACF,2EAA2E;AAC3E,4EAA4E;AAC5E,iFAAiF;AACjF,4DAA4D;AAC5D,EAAE;AACF,kFAAkF;AAClF,gFAAgF;AAChF,kBAAkB;AAElB,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,oFAAoF;AACpF,+EAA+E;AAC/E,mDAAmD;AACnD,MAAM,CAAC,MAAM,8BAA8B,GAAG,YAAY,CAAC;AAE3D,MAAM,UAAU,GAAG,QAAQ,CAAC;AAE5B,gFAAgF;AAChF,yEAAyE;AACzE,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAqC5C,kFAAkF;AAClF,mFAAmF;AACnF,MAAM,UAAU,mBAAmB,CACjC,GAAwB,EACxB,YAAsC,EAAE;IAExC,MAAM,GAAG,GAAG,0BAA0B,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IAChE,MAAM,YAAY,GAAG,gBAAgB,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IAC/D,MAAM,kBAAkB,GAAG,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,C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,CAAC;QACzB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC;QAClE,CAAC,CAAC,EAAE,CAAC;AACT,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./testMatrix.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migration/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./testMatrix.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migration/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { ResolvedWorkspaceContext } from "../roots.js";
2
+ export type TestMatrixMigrationMode = "dry_run" | "write";
3
+ export type TestMatrixMigrationWarning = {
4
+ code: string;
5
+ row_ref: string | null;
6
+ message: string;
7
+ };
8
+ export type TestMatrixMigrationResult = {
9
+ schema_version: 1;
10
+ source: {
11
+ path: string;
12
+ digest: string;
13
+ parser: string;
14
+ };
15
+ mode: TestMatrixMigrationMode;
16
+ summary: {
17
+ tables_found: number;
18
+ rows_seen: number;
19
+ rows_importable: number;
20
+ rows_needing_review: number;
21
+ files_planned: number;
22
+ files_written: number;
23
+ };
24
+ drafts: Array<{
25
+ output_path: string;
26
+ feature_id: string;
27
+ use_case_ids: string[];
28
+ content: string;
29
+ }>;
30
+ warnings: TestMatrixMigrationWarning[];
31
+ would_write: Array<{
32
+ path: string;
33
+ action: "create" | "update_generated" | "skip_unchanged" | "conflict";
34
+ }>;
35
+ };
36
+ export declare function migrateTestMatrix(options: {
37
+ context: ResolvedWorkspaceContext;
38
+ sourcePath: string;
39
+ outDir?: string;
40
+ mode: TestMatrixMigrationMode;
41
+ }): TestMatrixMigrationResult;
42
+ //# sourceMappingURL=testMatrix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testMatrix.d.ts","sourceRoot":"","sources":["../../src/migration/testMatrix.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AA4B5D,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,OAAO,CAAC;AAE1D,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,EAAE,CAAC,CAAC;IAClB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,aAAa,EAAE,MAAM,CAAC;QACtB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,MAAM,EAAE,KAAK,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IACH,QAAQ,EAAE,0BAA0B,EAAE,CAAC;IACvC,WAAW,EAAE,KAAK,CAAC;QACjB,IAAI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