@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,137 +0,0 @@
1
- import { t as e } from "./version-Dg0e6CZU.js";
2
- import { BaseCommand as t, maybeOfferUpdate as n } from "@agent-ix/ix-cli-core";
3
- import { existsSync as r, readFileSync as i, readdirSync as a, statSync as o } from "node:fs";
4
- import { basename as s, join as c, resolve as l } from "node:path";
5
- import { homedir as u } from "node:os";
6
- import { parse as d } from "yaml";
7
- //#region src/catalog.ts
8
- function f() {
9
- return process.env.IX_HOME && process.env.IX_HOME.length > 0 ? process.env.IX_HOME : c(u(), ".ix");
10
- }
11
- function p(e = f()) {
12
- return c(e, "filament", "modules");
13
- }
14
- function m(e = f()) {
15
- let t = [], n = process.env.QUOIN_MODULE_PATHS;
16
- n && t.push(...n.split(":").filter(Boolean));
17
- let i = p(e);
18
- if (r(i)) for (let e of a(i)) t.push(c(i, e));
19
- return t;
20
- }
21
- function h(e = m()) {
22
- let t = [], n = [], r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
23
- for (let o of e) {
24
- let e = v(o);
25
- if (!e || r.has(e)) continue;
26
- r.add(e);
27
- let l = c(e, "manifest.yaml"), u = d(i(l, "utf8")), f = x(u.name) ?? s(e);
28
- if (a.has(f)) continue;
29
- a.add(f);
30
- let p = b(u.artifact_types), m = b(u.object_types);
31
- t.push({
32
- name: f,
33
- version: x(u.version),
34
- root: e,
35
- artifactTypes: p.map((e) => String(e.name)),
36
- objectTypes: m.map((e) => String(e.name))
37
- });
38
- for (let t of p) {
39
- let r = String(t.name), i = x(t.frontmatter_schema_ref);
40
- n.push({
41
- name: r,
42
- kind: "artifact",
43
- moduleName: f,
44
- moduleRoot: e,
45
- schemaRef: i,
46
- schemaPath: i ? c(e, i) : void 0,
47
- skeletonPath: y(e, r)
48
- });
49
- }
50
- for (let t of m) {
51
- let r = String(t.name);
52
- n.push({
53
- name: r,
54
- kind: "object",
55
- moduleName: f,
56
- moduleRoot: e,
57
- skeletonPath: y(e, r)
58
- });
59
- }
60
- }
61
- return {
62
- modules: t,
63
- entries: n,
64
- duplicates: S(n)
65
- };
66
- }
67
- function g(e, t) {
68
- let n = _(t);
69
- return e.entries.find((e) => _(e.name) === n);
70
- }
71
- function _(e) {
72
- return e.toLowerCase();
73
- }
74
- function v(e) {
75
- let t = l(e);
76
- if (r(t)) {
77
- if (r(c(t, "manifest.yaml"))) return t;
78
- if (o(t).isDirectory()) for (let e of a(t)) {
79
- let n = c(t, e);
80
- if (r(c(n, "manifest.yaml"))) return n;
81
- }
82
- }
83
- }
84
- function y(e, t) {
85
- let n = c(e, "skeletons"), r;
86
- try {
87
- r = a(n);
88
- } catch {
89
- return;
90
- }
91
- let i = [`${t}.md`, `${t.toLowerCase()}.md`].find((e) => r.includes(e));
92
- return i ? c(n, i) : void 0;
93
- }
94
- function b(e) {
95
- return Array.isArray(e) ? e.filter((e) => !!e && typeof e == "object" && "name" in e) : [];
96
- }
97
- function x(e) {
98
- return typeof e == "string" ? e : void 0;
99
- }
100
- function S(e) {
101
- let t = /* @__PURE__ */ new Map();
102
- for (let n of e) {
103
- let e = `${n.kind}:${n.name}`, r = t.get(e) ?? /* @__PURE__ */ new Set();
104
- r.add(n.moduleName), t.set(e, r);
105
- }
106
- return [...t.entries()].filter(([, e]) => e.size > 1).map(([e, t]) => {
107
- let [n, r] = e.split(":");
108
- return {
109
- kind: n,
110
- name: r,
111
- modules: [...t].sort()
112
- };
113
- });
114
- }
115
- //#endregion
116
- //#region src/base.ts
117
- var C = class extends t {
118
- skipUpdateNudge = !1;
119
- home = "";
120
- async init() {
121
- await super.init();
122
- let t = w(this.argv) ?? process.env.IX_CONFIG_ROOT;
123
- this.home = typeof t == "string" && t.length > 0 ? t : f(), process.env.IX_HOME = this.home, !this.skipUpdateNudge && !this.argv.includes("--json") && await n({
124
- packageName: "@agent-ix/quoin",
125
- currentVersion: e()
126
- });
127
- }
128
- };
129
- function w(e) {
130
- for (let t = 0; t < e.length; t++) {
131
- let n = e[t];
132
- if (n === "--config-root") return e[t + 1];
133
- if (n.startsWith("--config-root=")) return n.slice(14);
134
- }
135
- }
136
- //#endregion
137
- export { f as a, g as i, m as n, h as o, p as r, v as s, C as t };
package/dist/base.d.ts DELETED
@@ -1,23 +0,0 @@
1
- import { BaseCommand } from '@agent-ix/ix-cli-core';
2
- /**
3
- * Shared base for every quoin command.
4
- *
5
- * Extends ix-cli-core's {@link BaseCommand} (which owns the `--config-root` /
6
- * `--no-project-config` global flags and the capability lifecycle) and adds the
7
- * two cross-cutting concerns the legacy hand-rolled dispatcher used to apply to
8
- * every invocation:
9
- *
10
- * 1. Resolve the quoin home (`--config-root` flag, else `IX_HOME`) and export
11
- * it as `process.env.IX_HOME` so the catalog / module modules — which read
12
- * `ixHome()` — observe the per-invocation override exactly as before.
13
- * 2. Nudge toward a newer published quoin (throttled, interactive-only, silent
14
- * in CI / under `--json` / for `update` itself). Never blocks or throws.
15
- */
16
- export declare abstract class QuoinCommand extends BaseCommand {
17
- /** Commands that must not trigger the update nudge (e.g. `update`). */
18
- protected skipUpdateNudge: boolean;
19
- /** Resolved quoin home for this invocation. */
20
- protected home: string;
21
- init(): Promise<void>;
22
- }
23
- //# sourceMappingURL=base.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoB,MAAM,uBAAuB,CAAC;AAKtE;;;;;;;;;;;;;GAaG;AACH,8BAAsB,YAAa,SAAQ,WAAW;IACpD,uEAAuE;IACvE,SAAS,CAAC,eAAe,UAAS;IAElC,+CAA+C;IAC/C,SAAS,CAAC,IAAI,SAAM;IAEE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAkB5C"}
package/dist/catalog.d.ts DELETED
@@ -1,33 +0,0 @@
1
- export interface SpecCatalogEntry {
2
- name: string;
3
- kind: "artifact" | "object";
4
- moduleName: string;
5
- moduleRoot: string;
6
- schemaRef?: string;
7
- schemaPath?: string;
8
- skeletonPath?: string;
9
- }
10
- export interface SpecModule {
11
- name: string;
12
- version?: string;
13
- root: string;
14
- artifactTypes: string[];
15
- objectTypes: string[];
16
- }
17
- export interface SpecCatalog {
18
- modules: SpecModule[];
19
- entries: SpecCatalogEntry[];
20
- duplicates: Array<{
21
- kind: "artifact" | "object";
22
- name: string;
23
- modules: string[];
24
- }>;
25
- }
26
- export declare function ixHome(): string;
27
- /** The single directory that holds installed Filament modules; also read by quire-rs. */
28
- export declare function filamentModulesDir(home?: string): string;
29
- export declare function defaultModuleRoots(home?: string): string[];
30
- export declare function loadCatalog(moduleRoots?: string[]): SpecCatalog;
31
- export declare function findCatalogEntry(catalog: SpecCatalog, name: string): SpecCatalogEntry | undefined;
32
- export declare function locateModuleRoot(candidate: string): string | undefined;
33
- //# sourceMappingURL=catalog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,GAAG,QAAQ,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,UAAU,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,UAAU,GAAG,QAAQ,CAAC;QAC5B,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC,CAAC;CACJ;AAED,wBAAgB,MAAM,IAAI,MAAM,CAI/B;AAED,yFAAyF;AACzF,wBAAgB,kBAAkB,CAAC,IAAI,SAAW,GAAG,MAAM,CAE1D;AAED,wBAAgB,kBAAkB,CAAC,IAAI,SAAW,GAAG,MAAM,EAAE,CAW5D;AAED,wBAAgB,WAAW,CAAC,WAAW,WAAuB,GAAG,WAAW,CAyD3E;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,MAAM,GACX,gBAAgB,GAAG,SAAS,CAK9B;AAMD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAUtE"}
package/dist/cli.d.ts DELETED
@@ -1,61 +0,0 @@
1
- import { Config } from '@oclif/core';
2
- import { RunnerLoadOptions } from '@agent-ix/ix-cli-core';
3
- export { packageVersion, resolveVersion } from './version.js';
4
- /**
5
- * Root usage: the bin name plus the top-level command ids oclif discovered.
6
- *
7
- * Built from the resolved config rather than a hand-maintained string, so a
8
- * command added to `dist/commands` (or contributed by a core plugin) appears
9
- * here without a second edit — the failure mode FR-003's delegation to oclif
10
- * exists to avoid.
11
- */
12
- export declare function rootUsage(config: {
13
- bin: string;
14
- commands: ReadonlyArray<{
15
- id: string;
16
- hidden?: boolean;
17
- }>;
18
- }): string;
19
- export declare function isVersionRequest(argv: readonly string[]): boolean;
20
- /**
21
- * quoin entry point.
22
- *
23
- * Replaces the legacy hand-rolled argv dispatcher: every command now runs as a
24
- * `BaseCommand` subclass discovered and dispatched by the ix-cli-core oclif
25
- * runner (FR-016). The only pre-dispatch concern retained here is the bare
26
- * version print (above).
27
- *
28
- * @param argv argument vector (without the node/bin prefix)
29
- * @param options oclif config source — a file URL (`import.meta.url`), a
30
- * directory, or a pre-loaded `Config` (used by tests). Defaults to oclif's
31
- * own resolution.
32
- */
33
- export declare function main(argv: string[], options?: RunnerLoadOptions): Promise<void>;
34
- /**
35
- * The oclif {@link Config} with its `version` corrected to the build-time one
36
- * (#196).
37
- *
38
- * oclif reads `version` from `package.json`, which carries `0.9.0` — the
39
- * placeholder the CI tag rewrite replaces on release. `--version` prints the
40
- * baked `git describe` string. So a locally built binary reported two
41
- * different versions depending on which flag you asked:
42
- *
43
- * ```
44
- * $ quoin --version
45
- * 0.21.2-27-g07aa699
46
- * $ quoin --help
47
- * VERSION
48
- * @agent-ix/quoin/0.9.0 wsl-x64 node-v22.15.0
49
- * ```
50
- *
51
- * Version provenance is load-bearing here: every SpecReview records the tool
52
- * version it measured with, and three reviews in `agent-ix/filament-ide-rs`
53
- * cite numbers from a binary whose self-reported version was wrong. Same class
54
- * as `agent-ix/quire-cli#52`, where five tags shipped binaries all reporting
55
- * the version before them.
56
- *
57
- * The flag stays the source of truth — it is the one that knows about drift —
58
- * and the help block is made to agree with it.
59
- */
60
- export declare function versionedConfig(options?: RunnerLoadOptions): Promise<Config>;
61
- //# sourceMappingURL=cli.d.ts.map
package/dist/cli.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAIhF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9D;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAC3D,GAAG,MAAM,CAST;AASD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAEjE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,IAAI,CACxB,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAMf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,eAAe,CACnC,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC,MAAM,CAAC,CAEjB"}
package/dist/cli.js DELETED
@@ -1,34 +0,0 @@
1
- import { n as e, t } from "./version-Dg0e6CZU.js";
2
- import { fileURLToPath as n } from "node:url";
3
- import { loadConfig as r, run as i } from "@agent-ix/ix-cli-core";
4
- //#region src/cli.ts
5
- function a(e) {
6
- let t = [...new Set(e.commands.filter((e) => !e.hidden).map((e) => e.id.split(":")[0]))].sort();
7
- return `Usage: ${e.bin} <command> [options]\n\nCommands: ${t.join(", ")}\n\nRun \`${e.bin} <command> --help\` for details.`;
8
- }
9
- var o = /* @__PURE__ */ new Set([
10
- "--version",
11
- "-v",
12
- "version"
13
- ]);
14
- function s(e) {
15
- return e.length > 0 && o.has(e[0]);
16
- }
17
- async function c(e, n) {
18
- if (s(e)) {
19
- console.log(t());
20
- return;
21
- }
22
- await i(e, await l(n));
23
- }
24
- async function l(e) {
25
- return r(u(e));
26
- }
27
- function u(e) {
28
- return typeof e == "string" ? {
29
- root: e.startsWith("file://") ? n(e) : e,
30
- version: t()
31
- } : e;
32
- }
33
- //#endregion
34
- export { s as isVersionRequest, c as main, t as packageVersion, e as resolveVersion, a as rootUsage, l as versionedConfig };
@@ -1,16 +0,0 @@
1
- import { QuoinCommand } from '../base.js';
2
- export default class Advise extends QuoinCommand {
3
- static summary: string;
4
- static description: string;
5
- static examples: string[];
6
- static flags: {
7
- repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
- module: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
9
- "mismatch-only": import('@oclif/core/interfaces').BooleanFlag<boolean>;
10
- "inconclusive-only": import('@oclif/core/interfaces').BooleanFlag<boolean>;
11
- json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
12
- };
13
- run(): Promise<void>;
14
- private render;
15
- }
16
- //# sourceMappingURL=advise.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"advise.d.ts","sourceRoot":"","sources":["../../src/commands/advise.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAyB1C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;IAC9C,MAAM,CAAC,OAAO,SAC6D;IAC3E,MAAM,CAAC,WAAW,SAY4D;IAE9E,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;;;;MAkBV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAkG1B,OAAO,CAAC,MAAM;CA0Bf"}
@@ -1,234 +0,0 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../quire-D8tCpgyA.js";
2
- import { t as o } from "../base-CqKNs2Kd.js";
3
- import { f as s, s as c } from "../store--2sAv12X.js";
4
- import { t as l } from "../advisor-BkgwDKvQ.js";
5
- import { a as u, i as d } from "../auditor-C3bSmPD_.js";
6
- import "../evidence-DD0CHzJ0.js";
7
- import { Flags as f } from "@oclif/core";
8
- //#region src/advisor/advise.ts
9
- var p = [
10
- ["temporal", /\b(always|never|eventually|while|until|continuously)\b/i],
11
- ["liveness", /\b(eventually|makes progress|terminates)\b/i],
12
- ["invariance", /\b(invariant|holds for every|at all times)\b/i],
13
- ["concurrent", /\b(concurrent|parallel|race|thread([- ]safe(ty)?)?|simultaneous)\b/i],
14
- ["reliability", /\b(tolerat|degrad|retry|failover|resilien|recover)/i],
15
- ["latency", /\b(latency|response time|within\s+\d|\d\s*ms\b|p9\d)/i],
16
- ["throughput", /\b(throughput|per second|requests\/s|rps)\b/i],
17
- ["quantified-threshold", /[<>≤≥]\s*\d|\b\d+\s*(ms|s|%|MB|GB)\b/i],
18
- ["security", /\b(authenticat|authoriz|permission|credential|secret|token|attack|exploit)/i],
19
- ["untrusted-input", /\b(untrusted|user-supplied|external input|malformed)\b/i],
20
- ["input-validation", /\b(reject|validate|malformed|invalid input)\b/i],
21
- ["parser", /\b(pars|deserializ|decode|lex)/i],
22
- ["configuration-matrix", /\b(configuration|feature flag|combination of|matrix of)\b/i],
23
- ["third-party-dependency", /\b(dependenc|third-party|vendored|licence|license)\b/i],
24
- ["layering", /\b(depend(s|ing)? (back )?(on|upon)|layering|layered architecture|acyclic|dependency (cycle|check)s?|(zero|no) dependenc(y|ies) on|(must|does|do|shall) not (import|depend))\b/i],
25
- ["module-boundary", /\b((module|crate) boundar(y|ies)|top-level (module|crate)s?|(remains?|stays?) absent from|public (api|interface|surface)|encapsulat|internal(s)? (of|to)|exported? (from|by))\b/i],
26
- ["user-visible", /\b(user|operator|the UI|displays|screen)\b/i],
27
- ["stable-output", /\b(byte-identical|identical output|serializ|snapshot)\b/i],
28
- ["agent-behaviour", /\b(agent|transcript|prompt)\b/i],
29
- ["no-executable-oracle", /\b(review|judgement|readable|documented)\b/i],
30
- ["complexity", /\b(complexity|cyclomatic|nesting depth|deeply nested)\b/i],
31
- ["consistency", /\b(consistent|consistency|contradict|mutually exclusive)/i],
32
- ["cross-component", /\b(cross-component|between (two |the )?(components|services|processes)|across (the|a|its) [a-z-]* ?boundary|two or more components|end-to-end)\b/i],
33
- ["degradation", /\b(degrad|graceful(ly)?\s+(fail|fall)|fall back)/i],
34
- ["deserializer", /\b(deserializ|unmarshal|decoder|from_json|from_yaml)/i],
35
- ["distributed", /\b(distributed|cluster|replica|consensus|quorum|multi-node|across nodes)\b/i],
36
- ["fault-tolerance", /\b(fault[- ]toleran|tolerates? (a |an )?fail|survives? [a-z ]*fail|crash recovery)/i],
37
- ["feature-flags", /\b(feature flag|feature toggle|cargo feature|--features?\b|opt-in flag)\b/i],
38
- ["injection-risk", /\b(injection|\bXSS\b|\bSQL\b|shell escape|escap(e|ing) [a-z]* ?input)\b/i],
39
- ["io-boundary", /\b(filesystem|file system|socket|database|to disk|from disk|over the network|subprocess|stdin|stdout)\b/i],
40
- ["licence", /\b(licence|license|SPDX|copyleft|allow-?list of licen)/i],
41
- ["maintainability", /\b(maintainab|technical debt|code smell|dead code|duplicat(e|ion) of)/i],
42
- ["memory-safety", /\b(memory[- ]safe(ty)?|use[- ]after[- ]free|buffer overflow|double free|dangling pointer|unsafe\b)/i],
43
- ["network-exposed", /\b(endpoint|publicly (reachable|exposed|accessible)|listens? on|inbound request|remote client|HTTP request)\b/i],
44
- ["non-deterministic-subject", /\b(non-?deterministic|stochastic|temperature|sampled output|model output|\bLLM\b)\b/i],
45
- ["precondition-bearing", /\b(precondition|postcondition|requires that|provided that|assumes that|only when)\b/i],
46
- ["protocol", /\b(protocol|handshake|wire format|message (format|sequence|order))\b/i],
47
- ["published-interface", /\b(published interface|public (api|surface)|exported (api|surface)|semver|breaking change|backward[- ]compatib)/i],
48
- ["requirement-set", /\b(set of requirements|across (all )?requirements|no two requirements|every requirement)\b/i],
49
- ["safety", /\b(hazard|harm to|injur|fail-safe|mitigat(e|ion) of risk)/i],
50
- ["serialization", /\b(serializ|round-?trip|encode[sd]? (to|as)|to_json)/i],
51
- ["single-component", /\b(single (function|component|module|unit)|in isolation|pure function)\b/i],
52
- ["stakeholder-acceptance", /\b(sign-?off|accepted by|acceptance by|demonstrat(e|ed|ion) to)\b/i],
53
- ["stakeholder-facing", /\b(stakeholder|end user|customer|operator-facing)\b/i],
54
- ["state-machine", /\b(state machine|state transition|transitions? (from|to|into)|finite state)\b/i],
55
- ["structured-input", /\b(grammar|structured input|well-formed|schema-valid|malformed (document|input|payload))\b/i],
56
- ["supply-chain", /\b(supply chain|\bSBOM\b|vendored|transitive dependenc|provenance)\b/i],
57
- ["undefined-behaviour", /\b(undefined behaviou?r|\bUB\b|data race|uninitializ|out[- ]of[- ]bounds)/i],
58
- ["universally-quantified", /\b(for (every|all) [a-z]|every input|any input|universally|holds for)\b/i],
59
- ["workflow", /\b(workflow|user journey|step \d|then the (user|operator))\b/i],
60
- ["magic-value-comparison", /\b(checksum|CRC(-?\d+)?|magic (number|byte|value)|HMAC|digest match|version header|(digital |cryptographic )signature)\b/i],
61
- ["secret-dependent-branch", /\b(constant[- ]time|secret[- ]dependent|timing (side[- ]channel|attack)|branch on (a )?secret)\b/i],
62
- ["reference-equivalence", /\b(reference implementation|previous implementation|behaviou?rally identical|semantically equivalent|equivalent to the (old|existing|legacy))\b/i]
63
- ];
64
- function m(e) {
65
- return e.replace(/\]\([^)]*\)/g, "]");
66
- }
67
- function h(e, t) {
68
- let n = e.flags.includes("g") ? e.flags : e.flags + "g";
69
- for (let r of t.matchAll(new RegExp(e.source, n))) {
70
- let e = r.index ?? 0, n = e + r[0].length, i = t[e - 1] === "-" && /\w/.test(t[e - 2] ?? ""), a = t[n] === "-" && /\w/.test(t[n + 1] ?? "");
71
- if (!i && !a) return !0;
72
- }
73
- return !1;
74
- }
75
- function g(e, t, n, r) {
76
- let i = m(e), a = p.filter(([, e]) => h(e, i)).map(([e]) => e);
77
- return u(e) !== null && a.push("configuration-matrix"), r && ("target" in r || "threshold" in r) && a.push("quantified-threshold"), t && /^(p0|high|critical)$/i.test(t.trim()) && a.push("high-criticality"), n?.bound && (n.faultDetectionScores.length === 0 ? a.push("fault-detection-unmeasured") : Math.min(...n.faultDetectionScores) < 1 && a.push("fault-detection-failed")), [...new Set(a)].sort();
78
- }
79
- function _(e, t) {
80
- let n = new Set(g(t.statement, t.criticality, t.evidence, t.parameters)), r = new Set(t.propertyShape ? [t.propertyShape] : []), i = new Set(t.objectTypes ?? []), a = new Set(t.archetype ? [t.archetype] : []), o = [];
81
- for (let t of e.methods) {
82
- let e = y(t, {
83
- characteristics: n,
84
- property_shapes: r,
85
- object_types: i,
86
- archetypes: a
87
- });
88
- e.length !== 0 && o.push({
89
- method: t.id,
90
- class: t.class,
91
- evidenceKind: t.evidenceKind,
92
- reasons: e
93
- });
94
- }
95
- o.sort((e, t) => t.reasons.length - e.reasons.length || x(e.method, t.method));
96
- let s = b(t.authoredMethod), c = o.length === 0, l = s !== null && t.uncataloguedMethod === !0, u = !c && !l && s !== null && !o.some((e) => e.method.toLowerCase() === s.toLowerCase() || e.class.toLowerCase() === s.toLowerCase());
97
- return {
98
- obligation: t.id,
99
- recommended: o,
100
- authored: s,
101
- mismatch: u,
102
- uncatalogued: l,
103
- inconclusive: c
104
- };
105
- }
106
- function v(e) {
107
- let t = /* @__PURE__ */ new Set(), n = !1;
108
- for (let r of e ?? []) r.reason === "uncatalogued-verification-method" && (r.value === void 0 ? n = !0 : t.add(r.value));
109
- return {
110
- values: t,
111
- degraded: n
112
- };
113
- }
114
- function y(e, t) {
115
- let n = [];
116
- for (let [r, i] of Object.entries(e.applicability)) {
117
- let e = t[r];
118
- if (e) for (let t of i) e.has(t) && n.push({
119
- rule: r,
120
- value: t
121
- });
122
- }
123
- return n.sort((e, t) => x(e.rule, t.rule) || x(e.value, t.value));
124
- }
125
- function b(e) {
126
- if (!e) return null;
127
- let t = (e.includes("(") ? e.slice(0, e.indexOf("(")) : e).trim();
128
- return t.length > 0 ? t : null;
129
- }
130
- function x(e, t) {
131
- return e === t ? 0 : e < t ? -1 : 1;
132
- }
133
- //#endregion
134
- //#region src/commands/advise.ts
135
- var S = class e extends o {
136
- static summary = "Recommend a verification method for each obligation, from the catalog.";
137
- static description = "The deterministic half of the test-plan advisor (FR-031). Rules match or they do\nnot; where they are inconclusive it says so and stops, rather than guessing.\n\nBefore this, the method table was skill-local prose and `Verification` columns\ndefaulted to Test by habit — nothing ever advised DAST for an attack surface,\nmonitors for a temporal property, or fault injection for a reliability NFR.\n\nObligations come from quire (coverage --json), and each criterion's FR-052\nproperty shape from quire (properties --json), so the advice is over what the\nspec actually states rather than over a document somebody pasted in.\n\nRead the output as a recommendation, never a verdict. An LLM may judge the\nresidue afterwards — labelled as judgement (the FR-042 / ADR-0010 discipline).";
138
- static examples = [
139
- "quoin advise",
140
- "quoin advise --mismatch-only",
141
- "quoin advise --json"
142
- ];
143
- static flags = {
144
- repo: f.string({
145
- description: "Repository root.",
146
- default: "."
147
- }),
148
- module: f.string({ description: "Module directory supplying the traceability model." }),
149
- "mismatch-only": f.boolean({ description: "Only genuine disagreements: the authored method is a declared method or class and is not among the recommendations. Uncatalogued values are not mismatches. Combines with --inconclusive-only as a union." }),
150
- "inconclusive-only": f.boolean({ description: "Only obligations no rule matched. Combines with --mismatch-only as a union." }),
151
- json: f.boolean({ description: "Emit the advice as JSON." })
152
- };
153
- async run() {
154
- let { flags: i } = await this.parse(e), o = r(a());
155
- o && this.error(o.message, { exit: 2 });
156
- let u = t(n(((e) => {
157
- let t = [
158
- e,
159
- "--scope",
160
- i.repo,
161
- "--json"
162
- ];
163
- return i.module && t.push("--module", i.module), t;
164
- })("coverage")));
165
- u.ok || this.error(u.error.message, { exit: 2 });
166
- let d = l(i.module ? [i.module] : void 0);
167
- d.methods.length === 0 && this.error("no active module declares a `verification_catalog`, so there is nothing to advise from. Install one (e.g. spec-artifacts-process) or pass --module.", { exit: 2 });
168
- for (let e of d.unreadable) this.warn(`skipped ${e.moduleRoot}: ${e.reason}`);
169
- let f = C(i.repo), p = u.value.obligations ?? [];
170
- p.length > 0 && f.size === 0 && this.warn("no property shapes were read, so recommendations rest on statement text alone. `quire properties` resolves archetypes from the whole installed module set; check that the modules declaring FR/NFR/StR are installed (quoin module list).");
171
- let m = s(i.repo).bindings, h = c(i.repo), g = v(u.value.diagnostics);
172
- g.degraded && this.warn("engine predates vocabulary classification: this quire's `uncatalogued-verification-method` diagnostics carry no `value`, so an authored method the catalog never declared cannot be told from a genuine disagreement. Every disagreement is reported as a mismatch, as before. Update quire-cli to restore the three-state split (quire-rs CR-091).");
173
- let y = p.map((e) => _(d, T(e, f.get(e.id), w(e.id, m, h), g))), b = [];
174
- i["mismatch-only"] && b.push((e) => e.mismatch), i["inconclusive-only"] && b.push((e) => e.inconclusive);
175
- let x = b.length === 0 ? y : y.filter((e) => b.some((t) => t(e)));
176
- if (i.json) {
177
- this.log(JSON.stringify({ advice: x }, null, 2));
178
- return;
179
- }
180
- this.render(x, y);
181
- }
182
- render(e, t) {
183
- for (let t of e) {
184
- let e = t.recommended.slice(0, 3).map((e) => `${e.method} (${e.reasons.map((e) => e.value).join(", ")})`).join("; ");
185
- this.log(`${t.obligation} authored=${t.authored ?? "—"} ` + (t.inconclusive ? "inconclusive" : `recommend: ${e}`) + (t.mismatch ? " ⚠ mismatch" : "") + (t.uncatalogued ? " ⚠ uncatalogued" : ""));
186
- }
187
- this.log("");
188
- let n = (e) => t.filter(e).length;
189
- this.log(`${e.length} of ${t.length} obligation(s) shown. Of all ${t.length}: ${n((e) => e.mismatch)} mismatch, ${n((e) => e.uncatalogued)} uncatalogued, ${n((e) => e.inconclusive)} inconclusive. Recommendations, not verdicts: confirm the method in spec review.`);
190
- }
191
- };
192
- function C(t) {
193
- let n = [
194
- "properties",
195
- "spec/**/*.md",
196
- "--scope",
197
- t,
198
- "--json"
199
- ], r = /* @__PURE__ */ new Map(), a = i(n);
200
- if (!a.stdout.trim()) return r;
201
- let o = e(a.stdout);
202
- if (!o.ok) return r;
203
- for (let e of o.value.documents) for (let t of e.criteria) t.row_id && r.set(t.row_id, {
204
- property: t.property,
205
- archetype: e.archetype
206
- });
207
- return r;
208
- }
209
- function w(e, t, n) {
210
- let r = t.filter((t) => t.obligation === e);
211
- return {
212
- bound: r.length > 0,
213
- faultDetectionScores: d(r, n)
214
- };
215
- }
216
- function T(e, t, n, r) {
217
- return {
218
- id: e.id,
219
- statement: e.statement,
220
- authoredMethod: e.method ?? null,
221
- uncataloguedMethod: e.method != null && r.values.has(e.method),
222
- propertyShape: t?.property ?? null,
223
- archetype: t?.archetype ?? E(e.id),
224
- criticality: e.criticality ?? null,
225
- parameters: e.parameters,
226
- evidence: n
227
- };
228
- }
229
- function E(e) {
230
- let t = e.split("-")[0];
231
- return t.length > 0 ? t : null;
232
- }
233
- //#endregion
234
- export { S as default };
@@ -1,14 +0,0 @@
1
- import { QuoinCommand } from '../base.js';
2
- export default class Assurance extends QuoinCommand {
3
- static summary: string;
4
- static description: string;
5
- static examples: string[];
6
- static flags: {
7
- repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
- module: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
9
- "claim-type": import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
10
- json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
11
- };
12
- run(): Promise<void>;
13
- }
14
- //# sourceMappingURL=assurance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assurance.d.ts","sourceRoot":"","sources":["../../src/commands/assurance.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAoB1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY;IACjD,MAAM,CAAC,OAAO,SAC8D;IAC5E,MAAM,CAAC,WAAW,SAU0D;IAE5E,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;;;MAcV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAyC3B"}