@agent-ix/quoin 0.22.5 → 0.24.1

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 (398) hide show
  1. package/README.md +8 -258
  2. package/bin/launcher.js +138 -0
  3. package/package.json +22 -119
  4. package/.agents/plugins/marketplace.json +0 -14
  5. package/.claude-plugin/marketplace.json +0 -16
  6. package/.claude-plugin/plugin.json +0 -8
  7. package/.codex-plugin/plugin.json +0 -27
  8. package/.github/plugin/marketplace.json +0 -16
  9. package/bin/quoin.js +0 -21
  10. package/default-modules.yaml +0 -107
  11. package/dist/advisor/advise.d.ts +0 -199
  12. package/dist/advisor/advise.d.ts.map +0 -1
  13. package/dist/advisor/index.d.ts +0 -10
  14. package/dist/advisor/index.d.ts.map +0 -1
  15. package/dist/advisor/methods.d.ts +0 -60
  16. package/dist/advisor/methods.d.ts.map +0 -1
  17. package/dist/advisor-BkgwDKvQ.js +0 -63
  18. package/dist/assurance/graph.d.ts +0 -87
  19. package/dist/assurance/graph.d.ts.map +0 -1
  20. package/dist/assurance/index.d.ts +0 -9
  21. package/dist/assurance/index.d.ts.map +0 -1
  22. package/dist/assurance/render.d.ts +0 -3
  23. package/dist/assurance/render.d.ts.map +0 -1
  24. package/dist/auditor/audit.d.ts +0 -146
  25. package/dist/auditor/audit.d.ts.map +0 -1
  26. package/dist/auditor/combinatorial.d.ts +0 -53
  27. package/dist/auditor/combinatorial.d.ts.map +0 -1
  28. package/dist/auditor/index.d.ts +0 -9
  29. package/dist/auditor/index.d.ts.map +0 -1
  30. package/dist/auditor-C3bSmPD_.js +0 -340
  31. package/dist/base-CqKNs2Kd.js +0 -137
  32. package/dist/base.d.ts +0 -23
  33. package/dist/base.d.ts.map +0 -1
  34. package/dist/catalog.d.ts +0 -33
  35. package/dist/catalog.d.ts.map +0 -1
  36. package/dist/cli.d.ts +0 -61
  37. package/dist/cli.d.ts.map +0 -1
  38. package/dist/cli.js +0 -34
  39. package/dist/commands/advise.d.ts +0 -16
  40. package/dist/commands/advise.d.ts.map +0 -1
  41. package/dist/commands/advise.js +0 -234
  42. package/dist/commands/assurance.d.ts +0 -14
  43. package/dist/commands/assurance.d.ts.map +0 -1
  44. package/dist/commands/assurance.js +0 -204
  45. package/dist/commands/catalog/index.d.ts +0 -2
  46. package/dist/commands/catalog/index.d.ts.map +0 -1
  47. package/dist/commands/catalog/index.js +0 -2
  48. package/dist/commands/catalog/list.d.ts +0 -11
  49. package/dist/commands/catalog/list.d.ts.map +0 -1
  50. package/dist/commands/catalog/list.js +0 -22
  51. package/dist/commands/catalog/methods.d.ts +0 -12
  52. package/dist/commands/catalog/methods.d.ts.map +0 -1
  53. package/dist/commands/catalog/methods.js +0 -43
  54. package/dist/commands/catalog/show.d.ts +0 -13
  55. package/dist/commands/catalog/show.d.ts.map +0 -1
  56. package/dist/commands/catalog/show.js +0 -25
  57. package/dist/commands/catalog/validate.d.ts +0 -10
  58. package/dist/commands/catalog/validate.d.ts.map +0 -1
  59. package/dist/commands/catalog/validate.js +0 -27
  60. package/dist/commands/completeness.d.ts +0 -16
  61. package/dist/commands/completeness.d.ts.map +0 -1
  62. package/dist/commands/completeness.js +0 -49
  63. package/dist/commands/config/doctor.d.ts +0 -7
  64. package/dist/commands/config/doctor.d.ts.map +0 -1
  65. package/dist/commands/config/doctor.js +0 -15
  66. package/dist/commands/config/edit.d.ts +0 -7
  67. package/dist/commands/config/edit.d.ts.map +0 -1
  68. package/dist/commands/config/edit.js +0 -13
  69. package/dist/commands/config/get.d.ts +0 -11
  70. package/dist/commands/config/get.d.ts.map +0 -1
  71. package/dist/commands/config/get.js +0 -20
  72. package/dist/commands/config/index.d.ts +0 -2
  73. package/dist/commands/config/index.d.ts.map +0 -1
  74. package/dist/commands/config/index.js +0 -2
  75. package/dist/commands/config/set.d.ts +0 -12
  76. package/dist/commands/config/set.d.ts.map +0 -1
  77. package/dist/commands/config/set.js +0 -26
  78. package/dist/commands/evidence/affirm.d.ts +0 -17
  79. package/dist/commands/evidence/affirm.d.ts.map +0 -1
  80. package/dist/commands/evidence/affirm.js +0 -65
  81. package/dist/commands/evidence/audit.d.ts +0 -34
  82. package/dist/commands/evidence/audit.d.ts.map +0 -1
  83. package/dist/commands/evidence/audit.js +0 -107
  84. package/dist/commands/evidence/baseline.d.ts +0 -14
  85. package/dist/commands/evidence/baseline.d.ts.map +0 -1
  86. package/dist/commands/evidence/baseline.js +0 -89
  87. package/dist/commands/evidence/gc.d.ts +0 -13
  88. package/dist/commands/evidence/gc.d.ts.map +0 -1
  89. package/dist/commands/evidence/gc.js +0 -35
  90. package/dist/commands/evidence/index.d.ts +0 -8
  91. package/dist/commands/evidence/index.d.ts.map +0 -1
  92. package/dist/commands/evidence/index.js +0 -18
  93. package/dist/commands/evidence/inspect-mocks.d.ts +0 -16
  94. package/dist/commands/evidence/inspect-mocks.d.ts.map +0 -1
  95. package/dist/commands/evidence/inspect-mocks.js +0 -49
  96. package/dist/commands/evidence/record.d.ts +0 -22
  97. package/dist/commands/evidence/record.d.ts.map +0 -1
  98. package/dist/commands/evidence/record.js +0 -140
  99. package/dist/commands/matrix.d.ts +0 -14
  100. package/dist/commands/matrix.d.ts.map +0 -1
  101. package/dist/commands/matrix.js +0 -15
  102. package/dist/commands/measurement/index.d.ts +0 -7
  103. package/dist/commands/measurement/index.d.ts.map +0 -1
  104. package/dist/commands/measurement/index.js +0 -11
  105. package/dist/commands/measurement/record.d.ts +0 -10
  106. package/dist/commands/measurement/record.d.ts.map +0 -1
  107. package/dist/commands/measurement/record.js +0 -35
  108. package/dist/commands/module/ensure-defaults.d.ts +0 -8
  109. package/dist/commands/module/ensure-defaults.d.ts.map +0 -1
  110. package/dist/commands/module/ensure-defaults.js +0 -17
  111. package/dist/commands/module/index.d.ts +0 -2
  112. package/dist/commands/module/index.d.ts.map +0 -1
  113. package/dist/commands/module/index.js +0 -2
  114. package/dist/commands/module/install.d.ts +0 -11
  115. package/dist/commands/module/install.d.ts.map +0 -1
  116. package/dist/commands/module/install.js +0 -22
  117. package/dist/commands/module/list.d.ts +0 -8
  118. package/dist/commands/module/list.d.ts.map +0 -1
  119. package/dist/commands/module/list.js +0 -13
  120. package/dist/commands/module/remove.d.ts +0 -10
  121. package/dist/commands/module/remove.d.ts.map +0 -1
  122. package/dist/commands/module/remove.js +0 -16
  123. package/dist/commands/plugin/deprecation.d.ts +0 -10
  124. package/dist/commands/plugin/deprecation.d.ts.map +0 -1
  125. package/dist/commands/plugin/ensure-defaults.d.ts +0 -8
  126. package/dist/commands/plugin/ensure-defaults.d.ts.map +0 -1
  127. package/dist/commands/plugin/ensure-defaults.js +0 -12
  128. package/dist/commands/plugin/index.d.ts +0 -2
  129. package/dist/commands/plugin/index.d.ts.map +0 -1
  130. package/dist/commands/plugin/index.js +0 -2
  131. package/dist/commands/plugin/install.d.ts +0 -8
  132. package/dist/commands/plugin/install.d.ts.map +0 -1
  133. package/dist/commands/plugin/install.js +0 -12
  134. package/dist/commands/plugin/list.d.ts +0 -8
  135. package/dist/commands/plugin/list.d.ts.map +0 -1
  136. package/dist/commands/plugin/list.js +0 -12
  137. package/dist/commands/plugin/remove.d.ts +0 -8
  138. package/dist/commands/plugin/remove.d.ts.map +0 -1
  139. package/dist/commands/plugin/remove.js +0 -12
  140. package/dist/commands/report.d.ts +0 -15
  141. package/dist/commands/report.d.ts.map +0 -1
  142. package/dist/commands/report.js +0 -70
  143. package/dist/commands/review.d.ts +0 -14
  144. package/dist/commands/review.d.ts.map +0 -1
  145. package/dist/commands/review.js +0 -15
  146. package/dist/commands/to-plan.d.ts +0 -14
  147. package/dist/commands/to-plan.d.ts.map +0 -1
  148. package/dist/commands/to-plan.js +0 -15
  149. package/dist/commands/update.d.ts +0 -13
  150. package/dist/commands/update.d.ts.map +0 -1
  151. package/dist/commands/update.js +0 -34
  152. package/dist/commands/validate.d.ts +0 -13
  153. package/dist/commands/validate.d.ts.map +0 -1
  154. package/dist/commands/validate.js +0 -123
  155. package/dist/commands/write.d.ts +0 -16
  156. package/dist/commands/write.d.ts.map +0 -1
  157. package/dist/commands/write.js +0 -33
  158. package/dist/completeness/assess.d.ts +0 -82
  159. package/dist/completeness/assess.d.ts.map +0 -1
  160. package/dist/completeness/bundle.d.ts +0 -52
  161. package/dist/completeness/bundle.d.ts.map +0 -1
  162. package/dist/completeness/declarations.d.ts +0 -46
  163. package/dist/completeness/declarations.d.ts.map +0 -1
  164. package/dist/completeness/index.d.ts +0 -11
  165. package/dist/completeness/index.d.ts.map +0 -1
  166. package/dist/completeness/run.d.ts +0 -35
  167. package/dist/completeness/run.d.ts.map +0 -1
  168. package/dist/completeness-DamWradt.js +0 -228
  169. package/dist/config-schema-Dp-vlxuR.js +0 -13
  170. package/dist/config-schema.d.ts +0 -52
  171. package/dist/config-schema.d.ts.map +0 -1
  172. package/dist/deprecation-fRxUHoxv.js +0 -4
  173. package/dist/evidence/adapters/agent-eval.d.ts +0 -26
  174. package/dist/evidence/adapters/agent-eval.d.ts.map +0 -1
  175. package/dist/evidence/adapters/audit-script.d.ts +0 -25
  176. package/dist/evidence/adapters/audit-script.d.ts.map +0 -1
  177. package/dist/evidence/adapters/cargo-mutants.d.ts +0 -3
  178. package/dist/evidence/adapters/cargo-mutants.d.ts.map +0 -1
  179. package/dist/evidence/adapters/junit.d.ts +0 -17
  180. package/dist/evidence/adapters/junit.d.ts.map +0 -1
  181. package/dist/evidence/adapters/registry.d.ts +0 -63
  182. package/dist/evidence/adapters/registry.d.ts.map +0 -1
  183. package/dist/evidence/adapters/sarif.d.ts +0 -35
  184. package/dist/evidence/adapters/sarif.d.ts.map +0 -1
  185. package/dist/evidence/adapters/sbom.d.ts +0 -35
  186. package/dist/evidence/adapters/sbom.d.ts.map +0 -1
  187. package/dist/evidence/adapters/types.d.ts +0 -55
  188. package/dist/evidence/adapters/types.d.ts.map +0 -1
  189. package/dist/evidence/index.d.ts +0 -24
  190. package/dist/evidence/index.d.ts.map +0 -1
  191. package/dist/evidence/mock-inspection.d.ts +0 -16
  192. package/dist/evidence/mock-inspection.d.ts.map +0 -1
  193. package/dist/evidence/record.d.ts +0 -58
  194. package/dist/evidence/record.d.ts.map +0 -1
  195. package/dist/evidence/store.d.ts +0 -215
  196. package/dist/evidence/store.d.ts.map +0 -1
  197. package/dist/evidence/types.d.ts +0 -281
  198. package/dist/evidence/types.d.ts.map +0 -1
  199. package/dist/evidence-DD0CHzJ0.js +0 -533
  200. package/dist/flow-command-BfFNY0Rv.js +0 -88
  201. package/dist/flow-command.d.ts +0 -25
  202. package/dist/flow-command.d.ts.map +0 -1
  203. package/dist/flows.d.ts +0 -7
  204. package/dist/flows.d.ts.map +0 -1
  205. package/dist/hooks/command-not-found.d.ts +0 -23
  206. package/dist/hooks/command-not-found.d.ts.map +0 -1
  207. package/dist/hooks/command-not-found.js +0 -8
  208. package/dist/index.d.ts +0 -12
  209. package/dist/index.d.ts.map +0 -1
  210. package/dist/index.js +0 -10
  211. package/dist/measurement/compare.d.ts +0 -4
  212. package/dist/measurement/compare.d.ts.map +0 -1
  213. package/dist/measurement/index.d.ts +0 -9
  214. package/dist/measurement/index.d.ts.map +0 -1
  215. package/dist/measurement/plans.d.ts +0 -4
  216. package/dist/measurement/plans.d.ts.map +0 -1
  217. package/dist/measurement/portfolio.d.ts +0 -48
  218. package/dist/measurement/portfolio.d.ts.map +0 -1
  219. package/dist/measurement/profiles.d.ts +0 -9
  220. package/dist/measurement/profiles.d.ts.map +0 -1
  221. package/dist/measurement/report.d.ts +0 -44
  222. package/dist/measurement/report.d.ts.map +0 -1
  223. package/dist/measurement/store.d.ts +0 -7
  224. package/dist/measurement/store.d.ts.map +0 -1
  225. package/dist/measurement/types.d.ts +0 -83
  226. package/dist/measurement/types.d.ts.map +0 -1
  227. package/dist/measurement/validate.d.ts +0 -9
  228. package/dist/measurement/validate.d.ts.map +0 -1
  229. package/dist/measurement-CzB74Q07.js +0 -595
  230. package/dist/modules-ez9httBA.js +0 -23
  231. package/dist/modules.d.ts +0 -10
  232. package/dist/modules.d.ts.map +0 -1
  233. package/dist/org.d.ts +0 -61
  234. package/dist/org.d.ts.map +0 -1
  235. package/dist/plugins-C-ta0llj.js +0 -77
  236. package/dist/plugins.d.ts +0 -13
  237. package/dist/plugins.d.ts.map +0 -1
  238. package/dist/quire/contract.d.ts +0 -87
  239. package/dist/quire/contract.d.ts.map +0 -1
  240. package/dist/quire/exec.d.ts +0 -66
  241. package/dist/quire/exec.d.ts.map +0 -1
  242. package/dist/quire/index.d.ts +0 -12
  243. package/dist/quire/index.d.ts.map +0 -1
  244. package/dist/quire/types.d.ts +0 -415
  245. package/dist/quire/types.d.ts.map +0 -1
  246. package/dist/quire/validate.d.ts +0 -34
  247. package/dist/quire/validate.d.ts.map +0 -1
  248. package/dist/quire-D8tCpgyA.js +0 -4961
  249. package/dist/schemas/coverage-v1.schema.json +0 -1111
  250. package/dist/schemas/properties-v1.schema.json +0 -159
  251. package/dist/store--2sAv12X.js +0 -219
  252. package/dist/validators/gates.d.ts +0 -18
  253. package/dist/validators/gates.d.ts.map +0 -1
  254. package/dist/validators/index.d.ts +0 -2
  255. package/dist/validators/index.d.ts.map +0 -1
  256. package/dist/version-Dg0e6CZU.js +0 -17
  257. package/dist/version.d.ts +0 -3
  258. package/dist/version.d.ts.map +0 -1
  259. package/dist/write-DElwS9xc.js +0 -157
  260. package/dist/write.d.ts +0 -28
  261. package/dist/write.d.ts.map +0 -1
  262. package/skills/assurance-status-report/SKILL.md +0 -135
  263. package/skills/assurance-status-report/references/report-contract.md +0 -110
  264. package/skills/gap-analysis/SKILL.md +0 -111
  265. package/skills/gap-analysis/references/step-1-target-selection.md +0 -53
  266. package/skills/gap-analysis/references/step-2-plan-completion.md +0 -49
  267. package/skills/gap-analysis/references/step-3-matrix-verification.md +0 -147
  268. package/skills/gap-analysis/references/step-4-underspecified-code.md +0 -63
  269. package/skills/gap-analysis/references/step-5-semantic-review.md +0 -51
  270. package/skills/gap-analysis/references/step-6-specreview-artifact.md +0 -107
  271. package/skills/spec-app-review/SKILL.md +0 -51
  272. package/skills/spec-app-review/references/checklist.md +0 -197
  273. package/skills/spec-architecture-evaluation/SKILL.md +0 -30
  274. package/skills/spec-correctness/SKILL.md +0 -96
  275. package/skills/spec-correctness/assets/strategy-table.md +0 -101
  276. package/skills/spec-correctness/assets/templates/fast-check.ts.md +0 -169
  277. package/skills/spec-correctness/assets/templates/hypothesis.py.md +0 -156
  278. package/skills/spec-correctness/assets/templates/proptest.rs.md +0 -147
  279. package/skills/spec-correctness/references/step-0-scope-and-harness.md +0 -94
  280. package/skills/spec-correctness/references/step-1-census.md +0 -53
  281. package/skills/spec-correctness/references/step-2-clause-grounding.md +0 -159
  282. package/skills/spec-correctness/references/step-3-strategy-selection.md +0 -85
  283. package/skills/spec-correctness/references/step-4-generate-tests.md +0 -117
  284. package/skills/spec-correctness/references/step-5-second-pass.md +0 -81
  285. package/skills/spec-correctness/references/step-6-review-artifact.md +0 -134
  286. package/skills/spec-correctness/references/step-7-report-and-handoff.md +0 -102
  287. package/skills/spec-dependency-analysis/SKILL.md +0 -90
  288. package/skills/spec-ears-analysis/SKILL.md +0 -102
  289. package/skills/spec-evidence-analysis/SKILL.md +0 -156
  290. package/skills/spec-failure-domain-analysis/SKILL.md +0 -59
  291. package/skills/spec-fuzz/SKILL.md +0 -132
  292. package/skills/spec-fuzz/assets/templates/atheris.py.md +0 -74
  293. package/skills/spec-fuzz/assets/templates/cargo-fuzz.rs.md +0 -83
  294. package/skills/spec-fuzz/assets/templates/fast-check.ts.md +0 -76
  295. package/skills/spec-fuzz/references/step-0-scope-and-harness.md +0 -51
  296. package/skills/spec-fuzz/references/step-1-select-obligations.md +0 -47
  297. package/skills/spec-fuzz/references/step-2-ground-entry-point.md +0 -55
  298. package/skills/spec-fuzz/references/step-3-emit-targets.md +0 -65
  299. package/skills/spec-fuzz/references/step-4-report.md +0 -56
  300. package/skills/spec-ideation/SKILL.md +0 -46
  301. package/skills/spec-integrity-analysis/SKILL.md +0 -62
  302. package/skills/spec-matrix/SKILL.md +0 -186
  303. package/skills/spec-matrix/assets/test-cases/TC-001.md +0 -35
  304. package/skills/spec-matrix/assets/test-cases/TC-002.md +0 -37
  305. package/skills/spec-matrix/assets/test-cases/TC-006.md +0 -50
  306. package/skills/spec-matrix/assets/test-matrix-example.md +0 -104
  307. package/skills/spec-matrix/assets/test-matrix-template.md +0 -123
  308. package/skills/spec-matrix/workflow-assets/dist/index.d.ts +0 -146
  309. package/skills/spec-matrix/workflow-assets/dist/index.d.ts.map +0 -1
  310. package/skills/spec-matrix/workflow-assets/dist/index.js +0 -7525
  311. package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts +0 -6
  312. package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts.map +0 -1
  313. package/skills/spec-matrix/workflow-assets/skills/matrix/SKILL.md +0 -35
  314. package/skills/spec-matrix/workflow-assets/skills/matrix/scripts/invariants.js +0 -1
  315. package/skills/spec-matrix/workflow-assets/skills/matrix/templates/report/default.md +0 -30
  316. package/skills/spec-matrix/workflow-assets/skills/matrix/workflows/matrix/def.yaml +0 -82
  317. package/skills/spec-object-review/SKILL.md +0 -125
  318. package/skills/spec-object-review/references/object-type-guide.md +0 -118
  319. package/skills/spec-review/SKILL.md +0 -92
  320. package/skills/spec-review/references/checklist.md +0 -50
  321. package/skills/spec-review/workflow-assets/dist/index.d.ts +0 -146
  322. package/skills/spec-review/workflow-assets/dist/index.d.ts.map +0 -1
  323. package/skills/spec-review/workflow-assets/dist/index.js +0 -7525
  324. package/skills/spec-review/workflow-assets/dist/invariants.d.ts +0 -6
  325. package/skills/spec-review/workflow-assets/dist/invariants.d.ts.map +0 -1
  326. package/skills/spec-review/workflow-assets/skills/review/SKILL.md +0 -96
  327. package/skills/spec-review/workflow-assets/skills/review/scripts/invariants.js +0 -61
  328. package/skills/spec-review/workflow-assets/skills/review/workflows/review/def.yaml +0 -68
  329. package/skills/spec-risk-complexity-analysis/SKILL.md +0 -92
  330. package/skills/spec-scope-boundary-analysis/SKILL.md +0 -101
  331. package/skills/spec-security-analysis/SKILL.md +0 -84
  332. package/skills/spec-security-analysis/assets/security-analysis-example.md +0 -89
  333. package/skills/spec-security-analysis/assets/security-analysis-template.md +0 -73
  334. package/skills/spec-security-analysis/references/component-type-mapping.md +0 -161
  335. package/skills/spec-security-analysis/references/gdpr/ChII-Principles.md +0 -58
  336. package/skills/spec-security-analysis/references/gdpr/ChIII-DataSubjectRights.md +0 -84
  337. package/skills/spec-security-analysis/references/gdpr/ChIV-ControllerProcessor.md +0 -83
  338. package/skills/spec-security-analysis/references/gdpr/ChV-DataTransfers.md +0 -62
  339. package/skills/spec-security-analysis/references/gdpr/index.md +0 -54
  340. package/skills/spec-security-analysis/references/iso27001/A5-OrganizationalControls.md +0 -64
  341. package/skills/spec-security-analysis/references/iso27001/A6-PeopleControls.md +0 -30
  342. package/skills/spec-security-analysis/references/iso27001/A7-PhysicalControls.md +0 -35
  343. package/skills/spec-security-analysis/references/iso27001/A8-TechnologicalControls.md +0 -66
  344. package/skills/spec-security-analysis/references/iso27001/index.md +0 -43
  345. package/skills/spec-security-analysis/references/nist-800-53/AC-AccessControl.md +0 -57
  346. package/skills/spec-security-analysis/references/nist-800-53/AU-AuditAccountability.md +0 -49
  347. package/skills/spec-security-analysis/references/nist-800-53/CM-ConfigurationManagement.md +0 -36
  348. package/skills/spec-security-analysis/references/nist-800-53/IA-IdentificationAuthentication.md +0 -44
  349. package/skills/spec-security-analysis/references/nist-800-53/SA-SystemServicesAcquisition.md +0 -50
  350. package/skills/spec-security-analysis/references/nist-800-53/SC-SystemCommunications.md +0 -53
  351. package/skills/spec-security-analysis/references/nist-800-53/SI-SystemInformationIntegrity.md +0 -52
  352. package/skills/spec-security-analysis/references/nist-800-53/index.md +0 -58
  353. package/skills/spec-security-analysis/references/owasp-asvs/V1-Architecture.md +0 -33
  354. package/skills/spec-security-analysis/references/owasp-asvs/V10-MaliciousCode.md +0 -33
  355. package/skills/spec-security-analysis/references/owasp-asvs/V11-BusinessLogic.md +0 -32
  356. package/skills/spec-security-analysis/references/owasp-asvs/V12-Files.md +0 -34
  357. package/skills/spec-security-analysis/references/owasp-asvs/V13-API.md +0 -34
  358. package/skills/spec-security-analysis/references/owasp-asvs/V14-Configuration.md +0 -35
  359. package/skills/spec-security-analysis/references/owasp-asvs/V2-Authentication.md +0 -36
  360. package/skills/spec-security-analysis/references/owasp-asvs/V3-SessionManagement.md +0 -35
  361. package/skills/spec-security-analysis/references/owasp-asvs/V4-AccessControl.md +0 -39
  362. package/skills/spec-security-analysis/references/owasp-asvs/V5-Validation.md +0 -37
  363. package/skills/spec-security-analysis/references/owasp-asvs/V6-Cryptography.md +0 -34
  364. package/skills/spec-security-analysis/references/owasp-asvs/V7-ErrorLogging.md +0 -37
  365. package/skills/spec-security-analysis/references/owasp-asvs/V8-DataProtection.md +0 -34
  366. package/skills/spec-security-analysis/references/owasp-asvs/V9-Communication.md +0 -32
  367. package/skills/spec-security-analysis/references/owasp-asvs/index.md +0 -59
  368. package/skills/spec-security-analysis/references/soc2/CC1-ControlEnvironment.md +0 -31
  369. package/skills/spec-security-analysis/references/soc2/CC2-CommunicationInformation.md +0 -27
  370. package/skills/spec-security-analysis/references/soc2/CC3-RiskAssessment.md +0 -29
  371. package/skills/spec-security-analysis/references/soc2/CC4-MonitoringActivities.md +0 -27
  372. package/skills/spec-security-analysis/references/soc2/CC5-ControlActivities.md +0 -28
  373. package/skills/spec-security-analysis/references/soc2/CC6-LogicalPhysicalAccess.md +0 -45
  374. package/skills/spec-security-analysis/references/soc2/CC7-SystemOperations.md +0 -42
  375. package/skills/spec-security-analysis/references/soc2/CC8-ChangeManagement.md +0 -32
  376. package/skills/spec-security-analysis/references/soc2/CC9-RiskMitigation.md +0 -34
  377. package/skills/spec-security-analysis/references/soc2/index.md +0 -46
  378. package/skills/spec-security-analysis/references/standards-index.md +0 -46
  379. package/skills/spec-to-plan/SKILL.md +0 -88
  380. package/skills/spec-to-plan/references/step-0-plan-selection.md +0 -121
  381. package/skills/spec-to-plan/references/step-1-analysis.md +0 -88
  382. package/skills/spec-to-plan/references/step-2-test-plan.md +0 -43
  383. package/skills/spec-to-plan/references/step-3-execution-plan.md +0 -218
  384. package/skills/spec-to-plan/workflow-assets/dist/index.d.ts +0 -146
  385. package/skills/spec-to-plan/workflow-assets/dist/index.d.ts.map +0 -1
  386. package/skills/spec-to-plan/workflow-assets/dist/index.js +0 -7525
  387. package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts +0 -6
  388. package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts.map +0 -1
  389. package/skills/spec-to-plan/workflow-assets/skills/to-plan/SKILL.md +0 -35
  390. package/skills/spec-to-plan/workflow-assets/skills/to-plan/scripts/invariants.js +0 -1
  391. package/skills/spec-to-plan/workflow-assets/skills/to-plan/templates/implementation-plan/default.md +0 -44
  392. package/skills/spec-to-plan/workflow-assets/skills/to-plan/workflows/to-plan/def.yaml +0 -85
  393. package/skills/specify/SKILL.md +0 -154
  394. package/skills/specify/assets/app-spec-template.md +0 -143
  395. package/skills/specify/assets/spec-template.md +0 -299
  396. package/skills/specify/references/integration-tests.md +0 -72
  397. package/skills/specify/references/us-to-fr.md +0 -40
  398. package/skills/specify/references/writing-good-requirements.md +0 -61
@@ -1,58 +0,0 @@
1
- import { CoverageReport, Obligation } from '../quire/index.js';
2
- import { RunEntry } from './types.js';
3
- /** What a caller supplies to record one run. */
4
- export interface RecordRequest {
5
- repo: string;
6
- suite: string;
7
- commit: string;
8
- tool: string;
9
- /**
10
- * The kind of evidence this run produced, from the declared `test_type`
11
- * vocabulary. Optional; method conformance compares kind to kind and stays
12
- * silent when a run declares none, rather than inferring one.
13
- */
14
- evidenceKind?: string;
15
- /** ISO-8601. Passed in rather than read from the clock, so a record is reproducible. */
16
- timestamp: string;
17
- entries: RunEntry[];
18
- /**
19
- * The obligations as quire derives them **today**.
20
- *
21
- * Read live rather than stored: an obligation is always re-derivable from
22
- * spec + code at HEAD, so a stored copy could only ever disagree with the
23
- * requirement it describes.
24
- */
25
- obligations: Obligation[];
26
- }
27
- /** What recording a run changed. */
28
- export interface RecordOutcome {
29
- runPath: string;
30
- /** Obligations bound for the first time by this run. */
31
- bound: string[];
32
- /**
33
- * Obligations already bound whose statement has changed since — the suspect
34
- * set. Reported, never auto-cleared: re-running a test does not re-affirm a
35
- * reworded requirement.
36
- */
37
- suspect: string[];
38
- /** Trace ids in the run that match no derived obligation. */
39
- unmatched: string[];
40
- }
41
- /**
42
- * Record one suite run and update the binding graph.
43
- *
44
- * The join is: run entry → trace ids it carries → obligation of the same id.
45
- * A trace id matching no obligation is reported rather than dropped, because
46
- * that is the quire-rs#72 class arriving from the other direction — a test
47
- * claiming to verify something the spec does not state.
48
- */
49
- export declare function recordRun(request: RecordRequest): RecordOutcome;
50
- /**
51
- * The obligations carried by a validated coverage payload.
52
- *
53
- * A payload from a model declaring no obligation sources carries none, which is
54
- * an empty list rather than an error: a repository that has not adopted
55
- * obligations can still record runs, it just binds nothing.
56
- */
57
- export declare function obligationsFrom(report: CoverageReport): Obligation[];
58
- //# sourceMappingURL=record.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/evidence/record.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAsC,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE/E,gDAAgD;AAChD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wFAAwF;IACxF,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB;;;;;;OAMG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,oCAAoC;AACpC,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,6DAA6D;IAC7D,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,CAiG/D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,cAAc,GAAG,UAAU,EAAE,CAEpE"}
@@ -1,215 +0,0 @@
1
- import { BaselineFile, Binding, BindingsFile, FindingRecord, MockInspectionRecord, RunRecord } from './types.js';
2
- /**
3
- * The store root for a repository.
4
- *
5
- * Under `spec/`, not at the repository root. quire-rs CR-045 bounds the
6
- * document walk to `<scope>/spec`, so the authored half of the store —
7
- * `suites.md` and `inspections.md` — is only a validated corpus document if it
8
- * lives there. The machine-written half sits beside it so the whole store is
9
- * one directory rather than two halves in different places.
10
- *
11
- * agent-ix/quoin#79's original layout put `evidence/` at the repository root on
12
- * the premise that quire "validates them wherever they live". Measured: it does
13
- * not — a typed registry at the root minted nothing and was reported nowhere.
14
- */
15
- export declare function storeRoot(repo: string): string;
16
- export declare function suitesPath(repo: string): string;
17
- export declare function inspectionsPath(repo: string): string;
18
- export declare function bindingsPath(repo: string): string;
19
- export declare function baselinePath(repo: string): string;
20
- /** `runs/<SUITE-N>/<commit12>.json` — one file is one run of one suite. */
21
- export declare function runPath(repo: string, suite: string, commit: string): string;
22
- /** `scans/<SUITE-N>/<commit12>.json` — one file is one scan of one suite. */
23
- export declare function scanPath(repo: string, suite: string, commit: string): string;
24
- /** `mock-inspections/<SUITE-N>/<commit12>.json`. */
25
- export declare function mockInspectionPath(repo: string, suite: string, commit: string): string;
26
- /** The 12-character commit prefix the run filenames use. */
27
- export declare function short(commit: string): string;
28
- /**
29
- * Canonical JSON: keys sorted at every level, two-space indent, trailing
30
- * newline. Deterministic by construction, so two runs over identical inputs
31
- * produce identical bytes.
32
- */
33
- export declare function canonicalJson(value: unknown): string;
34
- /**
35
- * A store file that exists and cannot be read as JSON.
36
- *
37
- * `bindings.json` and `baseline.json` are **checked into git**, so a merge
38
- * conflict leaves `<<<<<<< HEAD` in one of them. Before this, every store read
39
- * threw a bare `SyntaxError: Unexpected token '<'` naming no file
40
- * (agent-ix/quoin#106).
41
- */
42
- export declare class StoreReadError extends Error {
43
- readonly path: string;
44
- readonly cause: unknown;
45
- constructor(path: string, cause: unknown);
46
- }
47
- /** Write one run record. Last-write-wins at the same (suite, commit). */
48
- export declare function writeRun(repo: string, record: RunRecord): string;
49
- /**
50
- * Write one finding-shaped scan. Last-write-wins at the same (suite, commit).
51
- *
52
- * Writing the record IS the assertion that the scan executed, so this is only
53
- * ever called with an envelope an adapter actually read (FR-034).
54
- */
55
- export declare function writeScan(repo: string, record: FindingRecord): string;
56
- /** Write one completed mock inspection, including a legitimately empty one. */
57
- export declare function writeMockInspection(repo: string, record: MockInspectionRecord): string;
58
- export declare function readMockInspection(repo: string, suite: string, commit: string): MockInspectionRecord | null;
59
- export declare function listMockInspections(repo: string, suite: string): string[];
60
- export declare function readMockInspections(repo: string, suite: string, skipped?: string[]): MockInspectionRecord[];
61
- export declare function latestMockInspection(repo: string, suite: string, skipped?: string[]): MockInspectionRecord | null;
62
- /** Read one scan record, or `null` when that (suite, commit) has none. */
63
- export declare function readScan(repo: string, suite: string, commit: string): FindingRecord | null;
64
- /** Every scan file recorded for a suite, in filename order (not time order). */
65
- export declare function listScans(repo: string, suite: string): string[];
66
- /**
67
- * Every scan recorded for a suite, oldest first by `timestamp`.
68
- *
69
- * Ordered exactly as `readRuns` is, and for the same reason: a filename is a
70
- * commit prefix, which is uniformly random hex, so lexical order is not time
71
- * order. agent-ix/quoin#104 fixed that once for runs; reintroducing it here
72
- * would rebuild the same defect beside the fix.
73
- */
74
- export declare function readScans(repo: string, suite: string, skipped?: string[]): FindingRecord[];
75
- /** The newest scan of a suite by timestamp, or `null` when it has none. */
76
- export declare function latestScan(repo: string, suite: string, skipped?: string[]): FindingRecord | null;
77
- /**
78
- * Whether a scan proves nothing — the finding-shaped meaning of vacuity.
79
- *
80
- * **Not "found nothing".** A scan that ran every rule and reported no finding
81
- * is a clean result and is exactly the evidence this record type exists to
82
- * preserve. What proves nothing is a scan that **evaluated no rules**: it also
83
- * reports zero findings, and from the findings list alone the two are
84
- * identical.
85
- *
86
- * Returns `null` when the tool did not say how many rules it evaluated. The
87
- * question cannot be asked, so the auditor says nothing rather than something
88
- * wrong — the same posture `evidenceKind` takes for method conformance
89
- * (agent-ix/quoin#105).
90
- */
91
- export declare function scanIsVacuous(record: FindingRecord): boolean | null;
92
- /** Read one run record, or `null` when that (suite, commit) has none. */
93
- export declare function readRun(repo: string, suite: string, commit: string): RunRecord | null;
94
- /**
95
- * Every run file recorded for a suite, in filename order.
96
- *
97
- * Filename order is **not** time order — a filename is a commit prefix, which
98
- * is uniformly random hex. Use [`latestRun`] when you mean the newest run;
99
- * this exists for enumeration.
100
- */
101
- export declare function listRuns(repo: string, suite: string): string[];
102
- /**
103
- * Every run recorded for a suite, oldest first by `timestamp`.
104
- *
105
- * An unreadable run file is skipped and its path pushed onto `skipped` when the
106
- * caller passes one — one corrupt record must not hide every finding in the
107
- * report (agent-ix/quoin#106).
108
- */
109
- export declare function readRuns(repo: string, suite: string, skipped?: string[]): RunRecord[];
110
- /**
111
- * The newest run of a suite, by **timestamp** — or `null` when it has none.
112
- *
113
- * Not `listRuns().at(-1)`. A run filename is `<commit12>.json` and a commit
114
- * prefix is uniformly random hex, so the lexicographically last file is the
115
- * newest run with probability 1/n. That arbitrary choice drove the auditor's
116
- * freshness and vacuity checks and `gc`'s retention: record a fresh run at HEAD
117
- * and, if an older run's prefix happened to sort higher, `stale-evidence` was
118
- * reported against evidence that was current — and re-recording could not fix
119
- * it, because the ordering is a property of the hashes and not of what you do
120
- * (agent-ix/quoin#104).
121
- *
122
- * `RunRecord.timestamp` was there the whole time. The commit is the tiebreak,
123
- * so two runs stamped identically still order deterministically.
124
- */
125
- export declare function latestRun(repo: string, suite: string, skipped?: string[]): RunRecord | null;
126
- /**
127
- * The newest recorded run of every suite that has one.
128
- *
129
- * Lives here rather than in a command because more than one caller needs it.
130
- * It was private to `evidence audit`, and the matching `latestScans` being
131
- * private *and uncalled* is exactly what SR-005 FND-002 was: the record type,
132
- * the vacuity check and the tests all existed while `audit()` ran with no scans
133
- * at all. A reader every consumer needs belongs beside the store it reads.
134
- */
135
- export declare function latestRuns(repo: string): RunRecord[];
136
- /** The newest scan of every recorded suite. Mirrors {@link latestRuns}. */
137
- export declare function latestScans(repo: string): FindingRecord[];
138
- /** The newest mock inspection of every recorded suite. */
139
- export declare function latestMockInspections(repo: string): MockInspectionRecord[];
140
- /** Every suite that has at least one recorded run. */
141
- export declare function listRecordedSuites(repo: string): string[];
142
- /** The binding graph. An absent file reads as an empty graph, not an error. */
143
- export declare function readBindings(repo: string): BindingsFile;
144
- /**
145
- * Write the binding graph, ordered by `(obligation, suite)` so diffs stay
146
- * minimal.
147
- *
148
- * Compared with plain `<`, not `localeCompare`: this file is checked in and its
149
- * diff is meant to *be* the per-PR delta, and `localeCompare` without an
150
- * explicit locale depends on the runtime's ICU data — so two machines could
151
- * serialize the same binding set in different orders and produce a diff nobody
152
- * made.
153
- */
154
- /**
155
- * `Pick<…, "bindings">` and not `BindingsFile`: the version written is always
156
- * `STORE_SCHEMA_VERSION`, and `file.schemaVersion` was never read. Demanding it
157
- * made callers supply a value the function discards — which one command did not,
158
- * and the resulting type error stayed latent until an unrelated entry widened
159
- * the build graph enough for `tsc` to reach the call site.
160
- */
161
- export declare function writeBindings(repo: string, file: Pick<BindingsFile, "bindings">): void;
162
- /** The ratchet baseline, or `null` when none has been accepted. */
163
- export declare function readBaseline(repo: string): BaselineFile | null;
164
- export declare function writeBaseline(repo: string, file: BaselineFile): void;
165
- /**
166
- * Retain the latest run per suite plus anything a binding references; delete
167
- * the rest. Returns the deleted paths.
168
- *
169
- * Dir-per-suite is what makes this local: a policy change for one expensive
170
- * suite touches one directory, and a `.gitignore` decision can be made per
171
- * suite rather than for the whole store.
172
- */
173
- export declare function gc(repo: string, dryRun?: boolean): string[];
174
- /**
175
- * Bind an obligation to the run that discharged it, stamping the statement hash
176
- * as it stands now.
177
- *
178
- * **Keyed on `(obligation, suite)`, not on the obligation alone.** The binding
179
- * graph is cross-suite by design — one obligation discharged by a unit suite
180
- * and a mutation suite is the case `bindings.json` exists to hold in one file —
181
- * and keying on the obligation made the second suite *overwrite* the first.
182
- * Two consequences, both silent: the cross-suite relationship was destroyed on
183
- * write, and `insufficient-multiplicity` counted distinct suites per obligation
184
- * across a set that could never hold more than one, so the finding could not be
185
- * cleared by any amount of evidence (agent-ix/quoin#102).
186
- *
187
- * **Auto-bind, explicit affirmation.** First discharge binds without asking:
188
- * requiring a human to confirm a binding the evidence already proves would put
189
- * a gate in front of the common case and teach people to click through it. What
190
- * stays explicit is *re-affirmation* after a statement changes — that is the
191
- * judgement call, and it is the one worth a signature.
192
- *
193
- * Returns the binding, whether it was newly created, and (when this
194
- * `(obligation, suite)` already existed) whether it is now suspect.
195
- */
196
- export declare function bind(existing: Binding[], next: Omit<Binding, "affirmations">): {
197
- bindings: Binding[];
198
- created: boolean;
199
- suspect: boolean;
200
- };
201
- /**
202
- * Record a re-affirmation, clearing suspicion.
203
- *
204
- * Affirms **every** binding for the obligation, not the first one found. The
205
- * judgement being recorded is "I have read the new statement and the evidence
206
- * still discharges it", and that is a judgement about the requirement rather
207
- * than about one suite — affirming only the first would leave a sibling suite
208
- * suspect for a reason nobody could act on. `suite` narrows it when the
209
- * reviewer means only one.
210
- */
211
- export declare function affirm(existing: Binding[], obligation: string, currentHash: string, who: string, commit: string, note?: string, suite?: string): {
212
- bindings: Binding[];
213
- found: boolean;
214
- };
215
- //# sourceMappingURL=store.d.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;;;;;;GASG;AACH;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,GACnC,IAAI,CAMN;AAED,mEAAmE;AACnE,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAE9D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,IAAI,CAMpE;AAED;;;;;;;GAOG;AACH,wBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,MAAM,EAAE,CAwCzD;AAUD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,IAAI,CAClB,QAAQ,EAAE,OAAO,EAAE,EACnB,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,GAClC;IAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAwB7D;AAED;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CACpB,QAAQ,EAAE,OAAO,EAAE,EACnB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,GACb;IAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAkBzC"}
@@ -1,281 +0,0 @@
1
- /**
2
- * The evidence store's machine-written records (FR-030).
3
- *
4
- * ## Governing principle
5
- *
6
- * **Store only what cannot be recomputed from spec + code at HEAD.**
7
- *
8
- * Run outcomes, hash-at-binding, affirmations and the ratchet baseline are
9
- * facts about the past — nothing can re-derive them tomorrow. Obligations are
10
- * not: they are re-derived live from quire (quire-rs FR-053) on every read, so
11
- * they cannot drift out of agreement with the spec. A stored copy of an
12
- * obligation would be one more thing to keep in sync, and the thing it would
13
- * most likely disagree with is the requirement itself.
14
- *
15
- * ## Format rule
16
- *
17
- * Authored → markdown, validated as a corpus document (the `SuiteRegistry` and
18
- * `Inspections` archetypes, spec-artifacts-process FR-006).
19
- * Machine-transcribed → JSON, typeless and corpus-invisible, described here.
20
- *
21
- * No SQLite anywhere. quoin writes files; parsing, loading and indexing for an
22
- * application is `filament-ide-rs` daemon territory, and a derived index inside
23
- * the store would be a second source of truth for facts the files already hold.
24
- */
25
- /** Where a suite's run records live, relative to the store root. */
26
- export declare const RUNS_DIR = "runs";
27
- /**
28
- * Where a suite's finding-shaped scan records live, relative to the store root.
29
- *
30
- * Separate from `runs/` because the two answer different questions and a reader
31
- * must not have to open a file to learn which kind it is.
32
- */
33
- export declare const SCANS_DIR = "scans";
34
- /** Where source-level mock inspection records live, relative to the store. */
35
- export declare const MOCK_INSPECTIONS_DIR = "mock-inspections";
36
- /** Schema version carried by every machine-written file in the store. */
37
- export declare const STORE_SCHEMA_VERSION = 1;
38
- /**
39
- * One test symbol's outcome within a run.
40
- *
41
- * `symbol` is the FR-051 stable symbol identity — the join between what a tool
42
- * reports and what the matrix declares. A tool's own test name is not that
43
- * identity and must be mapped to it by the adapter (agent-ix/quoin#91) before a
44
- * record is written.
45
- */
46
- /**
47
- * The `metric` value naming a mutation score — killed mutants over viable
48
- * ones, in `[0, 1]`.
49
- *
50
- * One constant, imported by the adapter that writes it and the auditor that
51
- * filters on it, so the two cannot drift into different spellings.
52
- */
53
- export declare const MUTATION_SCORE_METRIC = "mutation-score";
54
- export interface RunEntry {
55
- /** FR-051 stable symbol identity. */
56
- symbol: string;
57
- outcome: "pass" | "fail" | "skip" | "error";
58
- /**
59
- * A numeric result where the method produces one — a mutation score, a
60
- * coverage percentage, a measured latency. Absent for a plain pass/fail.
61
- */
62
- score?: number;
63
- /**
64
- * What `score` measures — `"mutation-score"`, `"coverage"`, `"latency-ms"`,
65
- * or another adapter-declared name. Open vocabulary: well-known values are
66
- * documented, not enforced, the same posture as `evidenceKind`.
67
- *
68
- * The adapter knows — `cargo-mutants` produces a mutation score and nothing
69
- * else — so the discriminator costs the adapter one field and removes the
70
- * guessing entirely (agent-ix/quoin#138). Before it existed the auditor
71
- * scoped mutation scores by tool name against the catalog's
72
- * `mutation-testing.tooling`, which named a method id in the engine, was a
73
- * tool allowlist by another name, and did not generalize to the next
74
- * numeric threshold. An entry without a `metric` is not a mutation score
75
- * for the purposes of a mutation floor.
76
- */
77
- metric?: string;
78
- /** Trace ids this symbol carries, as the adapter read them. */
79
- traceIds?: string[];
80
- /**
81
- * The configuration this entry was executed under — dimension name to value.
82
- *
83
- * Present only for a run over a declared configuration space (quire-rs
84
- * FR-061). It is what lets the auditor say WHICH t-way combinations a run
85
- * reached, rather than only how many entries it contained.
86
- */
87
- config?: Record<string, string>;
88
- }
89
- /**
90
- * One run of ONE suite at ONE commit.
91
- *
92
- * The suite is the atomic unit of evidence: aggregation is a view, and a
93
- * partial run must never be able to masquerade as a full one. The `make ci` /
94
- * `make ci-python` split already caused exactly that rot (quire-rs TC-715),
95
- * where a green "CI" meant one of two suites.
96
- *
97
- * Re-runs at the same commit are **last-write-wins, latest only**. Flake
98
- * history is analytics, not the record of record — keeping every attempt here
99
- * would make the store grow without bound to answer a question a different
100
- * tool should answer.
101
- */
102
- export interface RunRecord {
103
- schemaVersion: number;
104
- suite: string;
105
- /** Full commit sha the run was performed at. */
106
- commit: string;
107
- /** Tool and version, as the adapter reported them. */
108
- tool: string;
109
- /**
110
- * The kind of evidence this run produced, from the declared `test_type`
111
- * vocabulary (`Unit`, `Property`, `Static`, `Manual`, …) — the same
112
- * vocabulary the suite registry's `Evidence Kind` column and the catalog's
113
- * `evidence_kind` use.
114
- *
115
- * Optional, and its absence is **not** an invitation to guess. Method
116
- * conformance used to infer "this was a test run" from `entries.length > 0`,
117
- * which is true of a transcribed inspection too — so every `Inspection` or
118
- * `Analysis` obligation recorded through `quoin evidence record` was flagged
119
- * (agent-ix/quoin#105). With no kind declared the question cannot be asked,
120
- * and the check says nothing rather than something wrong.
121
- */
122
- evidenceKind?: string;
123
- /** ISO-8601, supplied by the caller — never read from the clock here. */
124
- timestamp: string;
125
- entries: RunEntry[];
126
- }
127
- /**
128
- * One finding a scanner reported.
129
- *
130
- * `ruleId` is the join, and it is the reason this record type is worth
131
- * building: a scanner rule id ⇄ obligation id is a **verification method**
132
- * discharging a specific obligation, not a generic scan whose output someone
133
- * reads. The catalog already carries the method (spec-artifacts-process
134
- * FR-007); this is what discharges it.
135
- */
136
- export interface Finding {
137
- /** The scanner's rule identifier — `RUSTSEC-2026-0190`, a semgrep rule id. */
138
- ruleId: string;
139
- /**
140
- * The scanner's own severity string, verbatim.
141
- *
142
- * NOT normalized to a quoin vocabulary. Scanners disagree about what
143
- * "high" means and quoin judges nothing (FR-034-CON-2); translating here
144
- * would invent a comparison the tools never made.
145
- */
146
- severity?: string;
147
- message?: string;
148
- /** Repo-relative path the finding is about, when the tool names one. */
149
- path?: string;
150
- line?: number;
151
- /** Obligation ids this rule discharges, as the adapter read them. */
152
- traceIds?: string[];
153
- }
154
- /**
155
- * One finding-shaped scan of ONE suite at ONE commit.
156
- *
157
- * **Why this is not a `RunRecord`.** Five of the eight formats quoin means to
158
- * read emit *findings*, not run outcomes: no symbol, no pass/fail. Forced into
159
- * `RunEntry`, a clean semgrep run and a semgrep run that never executed are
160
- * indistinguishable — both have zero failing entries. An evidence store whose
161
- * whole purpose is telling "verified" from "looks verified" cannot carry that
162
- * ambiguity; it would be the green-matrix-over-dead-links defect reproduced
163
- * inside the store built to prevent it.
164
- *
165
- * **The distinction lives on the record, not in the findings.** The record's
166
- * existence IS the proof the scan executed — written only when an adapter read
167
- * a real report envelope. `findings: []` on a present record means *ran and
168
- * found nothing*, which is evidence. No record at all means *did not run*,
169
- * which is not. Real tool output already works this way: `cargo audit --json`
170
- * emits `vulnerabilities.found: false` beside the `database` and `lockfile` it
171
- * consulted, and a SARIF `run` with an empty `results` array is still a run.
172
- */
173
- export interface FindingRecord {
174
- schemaVersion: number;
175
- suite: string;
176
- /** Full commit sha the scan was performed at. */
177
- commit: string;
178
- /** Tool and version, as the adapter reported them. */
179
- tool: string;
180
- evidenceKind?: string;
181
- /** ISO-8601, supplied by the caller — never read from the clock here. */
182
- timestamp: string;
183
- /**
184
- * What the scan covered, as the tool reported it: a ruleset name, a policy
185
- * file, an advisory-database revision.
186
- *
187
- * Load-bearing for vacuity. A scan that ran with **no rules enabled** also
188
- * reports zero findings, and is as empty as one that never ran — but it
189
- * cannot be told apart by the findings list alone.
190
- */
191
- ruleset?: string;
192
- /** Number of rules the scan actually evaluated, when the tool reports it. */
193
- rulesEvaluated?: number;
194
- findings: Finding[];
195
- }
196
- /** One test symbol observed substituting a stand-in for real behaviour. */
197
- export interface MockInjection {
198
- /** Suite whose source was inspected. */
199
- suite: string;
200
- /** Test symbol containing the substitution. */
201
- symbol: string;
202
- /** Identifiers substituted for real behaviour, for example `Confirmation::allow`. */
203
- injects: string[];
204
- /** Repo-relative source location, when the inspection can name it. */
205
- path?: string;
206
- line?: number;
207
- }
208
- /**
209
- * One completed source inspection for mock substitutions.
210
- *
211
- * The record may contain no injections. Its existence is still material: an
212
- * empty completed inspection means "looked and found none"; no record means
213
- * "nobody looked" (agent-ix/quoin#204).
214
- */
215
- export interface MockInspectionRecord {
216
- schemaVersion: number;
217
- suite: string;
218
- /** Full commit sha whose source was inspected. */
219
- commit: string;
220
- tool: string;
221
- /** ISO-8601, supplied by the caller. */
222
- timestamp: string;
223
- injections: MockInjection[];
224
- }
225
- /** Someone re-affirming a binding after the statement it was made against changed. */
226
- export interface Affirmation {
227
- who: string;
228
- commit: string;
229
- note?: string;
230
- }
231
- /**
232
- * One obligation bound to the evidence that discharges it.
233
- *
234
- * `statementHashAtBinding` is the entire mechanism: suspect detection is
235
- * `currentHash !== statementHashAtBinding`, computed by comparing this against
236
- * the obligation quire re-derives today. quire computes the hash; quoin only
237
- * ever compares.
238
- */
239
- export interface Binding {
240
- /** Obligation id — the same id the coverage rollup and trace tags key on. */
241
- obligation: string;
242
- /** The statement hash as it stood when the binding was first made. */
243
- statementHashAtBinding: string;
244
- /** Suite that discharged it. */
245
- suite: string;
246
- /** Commit of the run that first discharged it. */
247
- commit: string;
248
- /** Symbols within that suite that carry the obligation's trace id. */
249
- symbols: string[];
250
- /** Re-affirmations recorded after a statement changed. */
251
- affirmations?: Affirmation[];
252
- }
253
- /**
254
- * The unified binding graph.
255
- *
256
- * Unified rather than per-suite because the graph IS cross-suite: one
257
- * obligation can be discharged by a unit test and a benchmark, and splitting
258
- * the file per suite would make that relationship something to reassemble.
259
- */
260
- export interface BindingsFile {
261
- schemaVersion: number;
262
- bindings: Binding[];
263
- }
264
- /**
265
- * The accepted violation set a ratchet compares against.
266
- *
267
- * `accepted` holds `<kind>:<obligation>` keys — **every** finding kind, not two
268
- * named buckets. The original shape carried `undischarged` and `suspect` only,
269
- * so `stale-evidence`, `vacuous-evidence`, `method-conformance`,
270
- * `unknown-method` and `insufficient-multiplicity` could never appear in a
271
- * baseline and `--ratchet` reported the entire existing backlog for all five —
272
- * the outcome ratchet mode exists to prevent (agent-ix/quoin#105).
273
- */
274
- export interface BaselineFile {
275
- schemaVersion: number;
276
- /** Commit the baseline was accepted at. */
277
- commit: string;
278
- /** Accepted findings as `<kind>:<obligation>`, sorted. */
279
- accepted: string[];
280
- }
281
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/evidence/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,oEAAoE;AACpE,eAAO,MAAM,QAAQ,SAAS,CAAC;AAE/B;;;;;GAKG;AACH,eAAO,MAAM,SAAS,UAAU,CAAC;AAEjC,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AAEvD,yEAAyE;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