@agent-ix/quoin 0.23.1 → 0.26.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.
- package/README.md +8 -258
- package/bin/launcher.js +138 -0
- package/package.json +22 -123
- package/.agents/plugins/marketplace.json +0 -14
- package/.claude-plugin/marketplace.json +0 -16
- package/.claude-plugin/plugin.json +0 -8
- package/.codex-plugin/plugin.json +0 -27
- package/.github/plugin/marketplace.json +0 -16
- package/bin/quoin.js +0 -21
- package/default-modules.yaml +0 -107
- package/dist/advisor/advise.d.ts +0 -199
- package/dist/advisor/advise.d.ts.map +0 -1
- package/dist/advisor/index.d.ts +0 -10
- package/dist/advisor/index.d.ts.map +0 -1
- package/dist/advisor/methods.d.ts +0 -60
- package/dist/advisor/methods.d.ts.map +0 -1
- package/dist/advisor-B0rESCx1.js +0 -63
- package/dist/assurance/graph.d.ts +0 -87
- package/dist/assurance/graph.d.ts.map +0 -1
- package/dist/assurance/index.d.ts +0 -9
- package/dist/assurance/index.d.ts.map +0 -1
- package/dist/assurance/render.d.ts +0 -3
- package/dist/assurance/render.d.ts.map +0 -1
- package/dist/auditor/audit.d.ts +0 -146
- package/dist/auditor/audit.d.ts.map +0 -1
- package/dist/auditor/combinatorial.d.ts +0 -53
- package/dist/auditor/combinatorial.d.ts.map +0 -1
- package/dist/auditor/index.d.ts +0 -9
- package/dist/auditor/index.d.ts.map +0 -1
- package/dist/auditor-Dd3i9Aqx.js +0 -340
- package/dist/base-gAClyCNd.js +0 -137
- package/dist/base.d.ts +0 -23
- package/dist/base.d.ts.map +0 -1
- package/dist/catalog.d.ts +0 -33
- package/dist/catalog.d.ts.map +0 -1
- package/dist/change-assurance/attestations.d.ts +0 -7
- package/dist/change-assurance/attestations.d.ts.map +0 -1
- package/dist/change-assurance/index.d.ts +0 -14
- package/dist/change-assurance/index.d.ts.map +0 -1
- package/dist/change-assurance/integrity.d.ts +0 -11
- package/dist/change-assurance/integrity.d.ts.map +0 -1
- package/dist/change-assurance/records.d.ts +0 -22
- package/dist/change-assurance/records.d.ts.map +0 -1
- package/dist/change-assurance/schema-assets.d.ts +0 -8
- package/dist/change-assurance/schema-assets.d.ts.map +0 -1
- package/dist/change-assurance/store.d.ts +0 -18
- package/dist/change-assurance/store.d.ts.map +0 -1
- package/dist/change-assurance/types.d.ts +0 -180
- package/dist/change-assurance/types.d.ts.map +0 -1
- package/dist/change-assurance/verify.d.ts +0 -4
- package/dist/change-assurance/verify.d.ts.map +0 -1
- package/dist/change-assurance-CyKLPeKa.js +0 -1236
- package/dist/cli.d.ts +0 -61
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -34
- package/dist/commands/advise.d.ts +0 -16
- package/dist/commands/advise.d.ts.map +0 -1
- package/dist/commands/advise.js +0 -234
- package/dist/commands/assurance.d.ts +0 -14
- package/dist/commands/assurance.d.ts.map +0 -1
- package/dist/commands/assurance.js +0 -204
- package/dist/commands/catalog/index.d.ts +0 -2
- package/dist/commands/catalog/index.d.ts.map +0 -1
- package/dist/commands/catalog/index.js +0 -2
- package/dist/commands/catalog/list.d.ts +0 -11
- package/dist/commands/catalog/list.d.ts.map +0 -1
- package/dist/commands/catalog/list.js +0 -22
- package/dist/commands/catalog/methods.d.ts +0 -12
- package/dist/commands/catalog/methods.d.ts.map +0 -1
- package/dist/commands/catalog/methods.js +0 -43
- package/dist/commands/catalog/show.d.ts +0 -13
- package/dist/commands/catalog/show.d.ts.map +0 -1
- package/dist/commands/catalog/show.js +0 -25
- package/dist/commands/catalog/validate.d.ts +0 -10
- package/dist/commands/catalog/validate.d.ts.map +0 -1
- package/dist/commands/catalog/validate.js +0 -27
- package/dist/commands/change-assurance/common.d.ts +0 -37
- package/dist/commands/change-assurance/common.d.ts.map +0 -1
- package/dist/commands/change-assurance/index.d.ts +0 -8
- package/dist/commands/change-assurance/index.d.ts.map +0 -1
- package/dist/commands/change-assurance/index.js +0 -12
- package/dist/commands/change-assurance/intake.d.ts +0 -15
- package/dist/commands/change-assurance/intake.d.ts.map +0 -1
- package/dist/commands/change-assurance/intake.js +0 -53
- package/dist/commands/change-assurance/receipt.d.ts +0 -21
- package/dist/commands/change-assurance/receipt.d.ts.map +0 -1
- package/dist/commands/change-assurance/receipt.js +0 -99
- package/dist/commands/change-assurance/recover.d.ts +0 -13
- package/dist/commands/change-assurance/recover.d.ts.map +0 -1
- package/dist/commands/change-assurance/recover.js +0 -29
- package/dist/commands/change-assurance/schema.d.ts +0 -13
- package/dist/commands/change-assurance/schema.d.ts.map +0 -1
- package/dist/commands/change-assurance/schema.js +0 -40
- package/dist/commands/change-assurance/seal-attestation.d.ts +0 -15
- package/dist/commands/change-assurance/seal-attestation.d.ts.map +0 -1
- package/dist/commands/change-assurance/seal-attestation.js +0 -58
- package/dist/commands/change-assurance/seal-record.d.ts +0 -14
- package/dist/commands/change-assurance/seal-record.d.ts.map +0 -1
- package/dist/commands/change-assurance/seal-record.js +0 -53
- package/dist/commands/change-assurance/verify-receipt.d.ts +0 -13
- package/dist/commands/change-assurance/verify-receipt.d.ts.map +0 -1
- package/dist/commands/change-assurance/verify-receipt.js +0 -41
- package/dist/commands/completeness.d.ts +0 -16
- package/dist/commands/completeness.d.ts.map +0 -1
- package/dist/commands/completeness.js +0 -49
- package/dist/commands/config/doctor.d.ts +0 -7
- package/dist/commands/config/doctor.d.ts.map +0 -1
- package/dist/commands/config/doctor.js +0 -15
- package/dist/commands/config/edit.d.ts +0 -7
- package/dist/commands/config/edit.d.ts.map +0 -1
- package/dist/commands/config/edit.js +0 -13
- package/dist/commands/config/get.d.ts +0 -11
- package/dist/commands/config/get.d.ts.map +0 -1
- package/dist/commands/config/get.js +0 -20
- package/dist/commands/config/index.d.ts +0 -2
- package/dist/commands/config/index.d.ts.map +0 -1
- package/dist/commands/config/index.js +0 -2
- package/dist/commands/config/set.d.ts +0 -12
- package/dist/commands/config/set.d.ts.map +0 -1
- package/dist/commands/config/set.js +0 -26
- package/dist/commands/evidence/affirm.d.ts +0 -17
- package/dist/commands/evidence/affirm.d.ts.map +0 -1
- package/dist/commands/evidence/affirm.js +0 -65
- package/dist/commands/evidence/audit.d.ts +0 -34
- package/dist/commands/evidence/audit.d.ts.map +0 -1
- package/dist/commands/evidence/audit.js +0 -107
- package/dist/commands/evidence/baseline.d.ts +0 -14
- package/dist/commands/evidence/baseline.d.ts.map +0 -1
- package/dist/commands/evidence/baseline.js +0 -89
- package/dist/commands/evidence/gc.d.ts +0 -13
- package/dist/commands/evidence/gc.d.ts.map +0 -1
- package/dist/commands/evidence/gc.js +0 -35
- package/dist/commands/evidence/index.d.ts +0 -8
- package/dist/commands/evidence/index.d.ts.map +0 -1
- package/dist/commands/evidence/index.js +0 -18
- package/dist/commands/evidence/inspect-mocks.d.ts +0 -16
- package/dist/commands/evidence/inspect-mocks.d.ts.map +0 -1
- package/dist/commands/evidence/inspect-mocks.js +0 -49
- package/dist/commands/evidence/record.d.ts +0 -22
- package/dist/commands/evidence/record.d.ts.map +0 -1
- package/dist/commands/evidence/record.js +0 -144
- package/dist/commands/graph/change-impact.d.ts +0 -16
- package/dist/commands/graph/change-impact.d.ts.map +0 -1
- package/dist/commands/graph/change-impact.js +0 -29
- package/dist/commands/graph/churn.d.ts +0 -14
- package/dist/commands/graph/churn.d.ts.map +0 -1
- package/dist/commands/graph/churn.js +0 -15
- package/dist/commands/graph/common.d.ts +0 -16
- package/dist/commands/graph/common.d.ts.map +0 -1
- package/dist/commands/graph/fan-out.d.ts +0 -14
- package/dist/commands/graph/fan-out.d.ts.map +0 -1
- package/dist/commands/graph/fan-out.js +0 -15
- package/dist/commands/graph/index.d.ts +0 -8
- package/dist/commands/graph/index.d.ts.map +0 -1
- package/dist/commands/graph/index.js +0 -12
- package/dist/commands/matrix.d.ts +0 -14
- package/dist/commands/matrix.d.ts.map +0 -1
- package/dist/commands/matrix.js +0 -15
- package/dist/commands/measurement/index.d.ts +0 -7
- package/dist/commands/measurement/index.d.ts.map +0 -1
- package/dist/commands/measurement/index.js +0 -11
- package/dist/commands/measurement/intervention.d.ts +0 -11
- package/dist/commands/measurement/intervention.d.ts.map +0 -1
- package/dist/commands/measurement/intervention.js +0 -31
- package/dist/commands/measurement/operational-release.d.ts +0 -11
- package/dist/commands/measurement/operational-release.d.ts.map +0 -1
- package/dist/commands/measurement/operational-release.js +0 -31
- package/dist/commands/measurement/record.d.ts +0 -10
- package/dist/commands/measurement/record.d.ts.map +0 -1
- package/dist/commands/measurement/record.js +0 -36
- package/dist/commands/module/ensure-defaults.d.ts +0 -8
- package/dist/commands/module/ensure-defaults.d.ts.map +0 -1
- package/dist/commands/module/ensure-defaults.js +0 -17
- package/dist/commands/module/index.d.ts +0 -2
- package/dist/commands/module/index.d.ts.map +0 -1
- package/dist/commands/module/index.js +0 -2
- package/dist/commands/module/install.d.ts +0 -11
- package/dist/commands/module/install.d.ts.map +0 -1
- package/dist/commands/module/install.js +0 -22
- package/dist/commands/module/list.d.ts +0 -8
- package/dist/commands/module/list.d.ts.map +0 -1
- package/dist/commands/module/list.js +0 -13
- package/dist/commands/module/remove.d.ts +0 -10
- package/dist/commands/module/remove.d.ts.map +0 -1
- package/dist/commands/module/remove.js +0 -16
- package/dist/commands/plugin/deprecation.d.ts +0 -10
- package/dist/commands/plugin/deprecation.d.ts.map +0 -1
- package/dist/commands/plugin/ensure-defaults.d.ts +0 -8
- package/dist/commands/plugin/ensure-defaults.d.ts.map +0 -1
- package/dist/commands/plugin/ensure-defaults.js +0 -12
- package/dist/commands/plugin/index.d.ts +0 -2
- package/dist/commands/plugin/index.d.ts.map +0 -1
- package/dist/commands/plugin/index.js +0 -2
- package/dist/commands/plugin/install.d.ts +0 -8
- package/dist/commands/plugin/install.d.ts.map +0 -1
- package/dist/commands/plugin/install.js +0 -12
- package/dist/commands/plugin/list.d.ts +0 -8
- package/dist/commands/plugin/list.d.ts.map +0 -1
- package/dist/commands/plugin/list.js +0 -12
- package/dist/commands/plugin/remove.d.ts +0 -8
- package/dist/commands/plugin/remove.d.ts.map +0 -1
- package/dist/commands/plugin/remove.js +0 -12
- package/dist/commands/report.d.ts +0 -19
- package/dist/commands/report.d.ts.map +0 -1
- package/dist/commands/report.js +0 -96
- package/dist/commands/review.d.ts +0 -14
- package/dist/commands/review.d.ts.map +0 -1
- package/dist/commands/review.js +0 -15
- package/dist/commands/to-plan.d.ts +0 -14
- package/dist/commands/to-plan.d.ts.map +0 -1
- package/dist/commands/to-plan.js +0 -15
- package/dist/commands/update.d.ts +0 -13
- package/dist/commands/update.d.ts.map +0 -1
- package/dist/commands/update.js +0 -34
- package/dist/commands/validate.d.ts +0 -13
- package/dist/commands/validate.d.ts.map +0 -1
- package/dist/commands/validate.js +0 -123
- package/dist/commands/write.d.ts +0 -16
- package/dist/commands/write.d.ts.map +0 -1
- package/dist/commands/write.js +0 -33
- package/dist/common-B1ZJ8CSO.js +0 -36
- package/dist/common-DTrmnvL-.js +0 -35
- package/dist/completeness/assess.d.ts +0 -82
- package/dist/completeness/assess.d.ts.map +0 -1
- package/dist/completeness/bundle.d.ts +0 -52
- package/dist/completeness/bundle.d.ts.map +0 -1
- package/dist/completeness/declarations.d.ts +0 -46
- package/dist/completeness/declarations.d.ts.map +0 -1
- package/dist/completeness/index.d.ts +0 -11
- package/dist/completeness/index.d.ts.map +0 -1
- package/dist/completeness/run.d.ts +0 -35
- package/dist/completeness/run.d.ts.map +0 -1
- package/dist/completeness-BzBuNq6w.js +0 -228
- package/dist/config-schema-Dp-vlxuR.js +0 -13
- package/dist/config-schema.d.ts +0 -52
- package/dist/config-schema.d.ts.map +0 -1
- package/dist/deprecation-fRxUHoxv.js +0 -4
- package/dist/evidence/adapters/agent-eval.d.ts +0 -26
- package/dist/evidence/adapters/agent-eval.d.ts.map +0 -1
- package/dist/evidence/adapters/audit-script.d.ts +0 -25
- package/dist/evidence/adapters/audit-script.d.ts.map +0 -1
- package/dist/evidence/adapters/cargo-mutants.d.ts +0 -3
- package/dist/evidence/adapters/cargo-mutants.d.ts.map +0 -1
- package/dist/evidence/adapters/contract-conformance.d.ts +0 -16
- package/dist/evidence/adapters/contract-conformance.d.ts.map +0 -1
- package/dist/evidence/adapters/differential-report.d.ts +0 -18
- package/dist/evidence/adapters/differential-report.d.ts.map +0 -1
- package/dist/evidence/adapters/junit.d.ts +0 -17
- package/dist/evidence/adapters/junit.d.ts.map +0 -1
- package/dist/evidence/adapters/registry.d.ts +0 -63
- package/dist/evidence/adapters/registry.d.ts.map +0 -1
- package/dist/evidence/adapters/sarif.d.ts +0 -35
- package/dist/evidence/adapters/sarif.d.ts.map +0 -1
- package/dist/evidence/adapters/sbom.d.ts +0 -35
- package/dist/evidence/adapters/sbom.d.ts.map +0 -1
- package/dist/evidence/adapters/types.d.ts +0 -86
- package/dist/evidence/adapters/types.d.ts.map +0 -1
- package/dist/evidence/index.d.ts +0 -27
- package/dist/evidence/index.d.ts.map +0 -1
- package/dist/evidence/mock-inspection.d.ts +0 -16
- package/dist/evidence/mock-inspection.d.ts.map +0 -1
- package/dist/evidence/record.d.ts +0 -58
- package/dist/evidence/record.d.ts.map +0 -1
- package/dist/evidence/store.d.ts +0 -215
- package/dist/evidence/store.d.ts.map +0 -1
- package/dist/evidence/types.d.ts +0 -281
- package/dist/evidence/types.d.ts.map +0 -1
- package/dist/evidence-OyqpqHLS.js +0 -614
- package/dist/flow-command-CCRTE5Oe.js +0 -88
- package/dist/flow-command.d.ts +0 -25
- package/dist/flow-command.d.ts.map +0 -1
- package/dist/flows.d.ts +0 -7
- package/dist/flows.d.ts.map +0 -1
- package/dist/graph-analysis/analysis.d.ts +0 -106
- package/dist/graph-analysis/analysis.d.ts.map +0 -1
- package/dist/graph-analysis/index.d.ts +0 -6
- package/dist/graph-analysis/index.d.ts.map +0 -1
- package/dist/graph-analysis/input.d.ts +0 -33
- package/dist/graph-analysis/input.d.ts.map +0 -1
- package/dist/graph-analysis/load.d.ts +0 -21
- package/dist/graph-analysis/load.d.ts.map +0 -1
- package/dist/graph-analysis/render.d.ts +0 -4
- package/dist/graph-analysis/render.d.ts.map +0 -1
- package/dist/graph-analysis-IWaoJJSN.js +0 -657
- package/dist/hooks/command-not-found.d.ts +0 -23
- package/dist/hooks/command-not-found.d.ts.map +0 -1
- package/dist/hooks/command-not-found.js +0 -8
- package/dist/index.d.ts +0 -13
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -12
- package/dist/measurement/agent-eval-intervention.d.ts +0 -6
- package/dist/measurement/agent-eval-intervention.d.ts.map +0 -1
- package/dist/measurement/atomic-file.d.ts +0 -5
- package/dist/measurement/atomic-file.d.ts.map +0 -1
- package/dist/measurement/compare.d.ts +0 -4
- package/dist/measurement/compare.d.ts.map +0 -1
- package/dist/measurement/date-time.d.ts +0 -3
- package/dist/measurement/date-time.d.ts.map +0 -1
- package/dist/measurement/github-release-operational.d.ts +0 -7
- package/dist/measurement/github-release-operational.d.ts.map +0 -1
- package/dist/measurement/graph-adapters.d.ts +0 -304
- package/dist/measurement/graph-adapters.d.ts.map +0 -1
- package/dist/measurement/graph-portfolio-load.d.ts +0 -3
- package/dist/measurement/graph-portfolio-load.d.ts.map +0 -1
- package/dist/measurement/graph-portfolio.d.ts +0 -158
- package/dist/measurement/graph-portfolio.d.ts.map +0 -1
- package/dist/measurement/index.d.ts +0 -22
- package/dist/measurement/index.d.ts.map +0 -1
- package/dist/measurement/intervention-report.d.ts +0 -24
- package/dist/measurement/intervention-report.d.ts.map +0 -1
- package/dist/measurement/intervention-schema.d.ts +0 -144
- package/dist/measurement/intervention-schema.d.ts.map +0 -1
- package/dist/measurement/intervention-types.d.ts +0 -105
- package/dist/measurement/intervention-types.d.ts.map +0 -1
- package/dist/measurement/intervention.d.ts +0 -16
- package/dist/measurement/intervention.d.ts.map +0 -1
- package/dist/measurement/operational-report.d.ts +0 -17
- package/dist/measurement/operational-report.d.ts.map +0 -1
- package/dist/measurement/operational-schema.d.ts +0 -461
- package/dist/measurement/operational-schema.d.ts.map +0 -1
- package/dist/measurement/operational-types.d.ts +0 -121
- package/dist/measurement/operational-types.d.ts.map +0 -1
- package/dist/measurement/operational.d.ts +0 -13
- package/dist/measurement/operational.d.ts.map +0 -1
- package/dist/measurement/plans.d.ts +0 -6
- package/dist/measurement/plans.d.ts.map +0 -1
- package/dist/measurement/portfolio.d.ts +0 -54
- package/dist/measurement/portfolio.d.ts.map +0 -1
- package/dist/measurement/profiles.d.ts +0 -9
- package/dist/measurement/profiles.d.ts.map +0 -1
- package/dist/measurement/report.d.ts +0 -48
- package/dist/measurement/report.d.ts.map +0 -1
- package/dist/measurement/schemas/operational-evidence-v1.schema.json.d.ts +0 -384
- package/dist/measurement/store.d.ts +0 -14
- package/dist/measurement/store.d.ts.map +0 -1
- package/dist/measurement/types.d.ts +0 -85
- package/dist/measurement/types.d.ts.map +0 -1
- package/dist/measurement/validate.d.ts +0 -9
- package/dist/measurement/validate.d.ts.map +0 -1
- package/dist/measurement-j8sDSqx5.js +0 -2980
- package/dist/modules-DDQkKC4l.js +0 -23
- package/dist/modules.d.ts +0 -10
- package/dist/modules.d.ts.map +0 -1
- package/dist/org.d.ts +0 -61
- package/dist/org.d.ts.map +0 -1
- package/dist/plugins-CHpYhpEI.js +0 -77
- package/dist/plugins.d.ts +0 -13
- package/dist/plugins.d.ts.map +0 -1
- package/dist/quire/assurance.d.ts +0 -109
- package/dist/quire/assurance.d.ts.map +0 -1
- package/dist/quire/contract.d.ts +0 -88
- package/dist/quire/contract.d.ts.map +0 -1
- package/dist/quire/exec.d.ts +0 -66
- package/dist/quire/exec.d.ts.map +0 -1
- package/dist/quire/index.d.ts +0 -13
- package/dist/quire/index.d.ts.map +0 -1
- package/dist/quire/types.d.ts +0 -415
- package/dist/quire/types.d.ts.map +0 -1
- package/dist/quire/validate.d.ts +0 -39
- package/dist/quire/validate.d.ts.map +0 -1
- package/dist/quire-BsVj1xIR.js +0 -4968
- package/dist/schema-assets-HZWo_iFN.js +0 -233
- package/dist/schemas/assurance-v1.schema.json +0 -225
- package/dist/schemas/change-assurance-record-v1.schema.json +0 -234
- package/dist/schemas/coverage-v1.schema.json +0 -1111
- package/dist/schemas/operational-evidence-v1.schema.json +0 -381
- package/dist/schemas/proof-attestation-v1.schema.json +0 -96
- package/dist/schemas/properties-v1.schema.json +0 -159
- package/dist/schemas/verification-receipt-v1.schema.json +0 -208
- package/dist/validators/gates.d.ts +0 -18
- package/dist/validators/gates.d.ts.map +0 -1
- package/dist/validators/index.d.ts +0 -2
- package/dist/validators/index.d.ts.map +0 -1
- package/dist/version-CMxMIh5g.js +0 -17
- package/dist/version.d.ts +0 -3
- package/dist/version.d.ts.map +0 -1
- package/dist/write-CGTI0dRO.js +0 -157
- package/dist/write.d.ts +0 -28
- package/dist/write.d.ts.map +0 -1
- package/skills/assurance-status-report/SKILL.md +0 -135
- package/skills/assurance-status-report/references/report-contract.md +0 -110
- package/skills/gap-analysis/SKILL.md +0 -111
- package/skills/gap-analysis/references/step-1-target-selection.md +0 -53
- package/skills/gap-analysis/references/step-2-plan-completion.md +0 -49
- package/skills/gap-analysis/references/step-3-matrix-verification.md +0 -147
- package/skills/gap-analysis/references/step-4-underspecified-code.md +0 -92
- package/skills/gap-analysis/references/step-5-semantic-review.md +0 -51
- package/skills/gap-analysis/references/step-6-specreview-artifact.md +0 -108
- package/skills/spec-app-review/SKILL.md +0 -51
- package/skills/spec-app-review/references/checklist.md +0 -197
- package/skills/spec-architecture-evaluation/SKILL.md +0 -30
- package/skills/spec-correctness/SKILL.md +0 -96
- package/skills/spec-correctness/assets/strategy-table.md +0 -101
- package/skills/spec-correctness/assets/templates/fast-check.ts.md +0 -169
- package/skills/spec-correctness/assets/templates/hypothesis.py.md +0 -156
- package/skills/spec-correctness/assets/templates/proptest.rs.md +0 -147
- package/skills/spec-correctness/references/step-0-scope-and-harness.md +0 -94
- package/skills/spec-correctness/references/step-1-census.md +0 -53
- package/skills/spec-correctness/references/step-2-clause-grounding.md +0 -159
- package/skills/spec-correctness/references/step-3-strategy-selection.md +0 -85
- package/skills/spec-correctness/references/step-4-generate-tests.md +0 -117
- package/skills/spec-correctness/references/step-5-second-pass.md +0 -81
- package/skills/spec-correctness/references/step-6-review-artifact.md +0 -134
- package/skills/spec-correctness/references/step-7-report-and-handoff.md +0 -102
- package/skills/spec-dependency-analysis/SKILL.md +0 -90
- package/skills/spec-ears-analysis/SKILL.md +0 -102
- package/skills/spec-evidence-analysis/SKILL.md +0 -156
- package/skills/spec-failure-domain-analysis/SKILL.md +0 -59
- package/skills/spec-fuzz/SKILL.md +0 -133
- package/skills/spec-fuzz/assets/templates/atheris.py.md +0 -74
- package/skills/spec-fuzz/assets/templates/cargo-fuzz.rs.md +0 -83
- package/skills/spec-fuzz/assets/templates/fast-check.ts.md +0 -76
- package/skills/spec-fuzz/references/step-0-scope-and-harness.md +0 -51
- package/skills/spec-fuzz/references/step-1-select-obligations.md +0 -47
- package/skills/spec-fuzz/references/step-2-ground-entry-point.md +0 -55
- package/skills/spec-fuzz/references/step-3-emit-targets.md +0 -65
- package/skills/spec-fuzz/references/step-4-report.md +0 -56
- package/skills/spec-ideation/SKILL.md +0 -46
- package/skills/spec-integrity-analysis/SKILL.md +0 -62
- package/skills/spec-matrix/SKILL.md +0 -186
- package/skills/spec-matrix/assets/test-cases/TC-001.md +0 -35
- package/skills/spec-matrix/assets/test-cases/TC-002.md +0 -37
- package/skills/spec-matrix/assets/test-cases/TC-006.md +0 -50
- package/skills/spec-matrix/assets/test-matrix-example.md +0 -104
- package/skills/spec-matrix/assets/test-matrix-template.md +0 -123
- package/skills/spec-matrix/workflow-assets/dist/index.d.ts +0 -146
- package/skills/spec-matrix/workflow-assets/dist/index.d.ts.map +0 -1
- package/skills/spec-matrix/workflow-assets/dist/index.js +0 -7525
- package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts +0 -6
- package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts.map +0 -1
- package/skills/spec-matrix/workflow-assets/skills/matrix/SKILL.md +0 -35
- package/skills/spec-matrix/workflow-assets/skills/matrix/scripts/invariants.js +0 -1
- package/skills/spec-matrix/workflow-assets/skills/matrix/templates/report/default.md +0 -30
- package/skills/spec-matrix/workflow-assets/skills/matrix/workflows/matrix/def.yaml +0 -82
- package/skills/spec-object-review/SKILL.md +0 -125
- package/skills/spec-object-review/references/object-type-guide.md +0 -118
- package/skills/spec-review/SKILL.md +0 -92
- package/skills/spec-review/references/checklist.md +0 -50
- package/skills/spec-review/workflow-assets/dist/index.d.ts +0 -146
- package/skills/spec-review/workflow-assets/dist/index.d.ts.map +0 -1
- package/skills/spec-review/workflow-assets/dist/index.js +0 -7525
- package/skills/spec-review/workflow-assets/dist/invariants.d.ts +0 -6
- package/skills/spec-review/workflow-assets/dist/invariants.d.ts.map +0 -1
- package/skills/spec-review/workflow-assets/skills/review/SKILL.md +0 -96
- package/skills/spec-review/workflow-assets/skills/review/scripts/invariants.js +0 -61
- package/skills/spec-review/workflow-assets/skills/review/workflows/review/def.yaml +0 -68
- package/skills/spec-risk-complexity-analysis/SKILL.md +0 -92
- package/skills/spec-scope-boundary-analysis/SKILL.md +0 -101
- package/skills/spec-security-analysis/SKILL.md +0 -84
- package/skills/spec-security-analysis/assets/security-analysis-example.md +0 -89
- package/skills/spec-security-analysis/assets/security-analysis-template.md +0 -73
- package/skills/spec-security-analysis/references/component-type-mapping.md +0 -161
- package/skills/spec-security-analysis/references/gdpr/ChII-Principles.md +0 -58
- package/skills/spec-security-analysis/references/gdpr/ChIII-DataSubjectRights.md +0 -84
- package/skills/spec-security-analysis/references/gdpr/ChIV-ControllerProcessor.md +0 -83
- package/skills/spec-security-analysis/references/gdpr/ChV-DataTransfers.md +0 -62
- package/skills/spec-security-analysis/references/gdpr/index.md +0 -54
- package/skills/spec-security-analysis/references/iso27001/A5-OrganizationalControls.md +0 -64
- package/skills/spec-security-analysis/references/iso27001/A6-PeopleControls.md +0 -30
- package/skills/spec-security-analysis/references/iso27001/A7-PhysicalControls.md +0 -35
- package/skills/spec-security-analysis/references/iso27001/A8-TechnologicalControls.md +0 -66
- package/skills/spec-security-analysis/references/iso27001/index.md +0 -43
- package/skills/spec-security-analysis/references/nist-800-53/AC-AccessControl.md +0 -57
- package/skills/spec-security-analysis/references/nist-800-53/AU-AuditAccountability.md +0 -49
- package/skills/spec-security-analysis/references/nist-800-53/CM-ConfigurationManagement.md +0 -36
- package/skills/spec-security-analysis/references/nist-800-53/IA-IdentificationAuthentication.md +0 -44
- package/skills/spec-security-analysis/references/nist-800-53/SA-SystemServicesAcquisition.md +0 -50
- package/skills/spec-security-analysis/references/nist-800-53/SC-SystemCommunications.md +0 -53
- package/skills/spec-security-analysis/references/nist-800-53/SI-SystemInformationIntegrity.md +0 -52
- package/skills/spec-security-analysis/references/nist-800-53/index.md +0 -58
- package/skills/spec-security-analysis/references/owasp-asvs/V1-Architecture.md +0 -33
- package/skills/spec-security-analysis/references/owasp-asvs/V10-MaliciousCode.md +0 -33
- package/skills/spec-security-analysis/references/owasp-asvs/V11-BusinessLogic.md +0 -32
- package/skills/spec-security-analysis/references/owasp-asvs/V12-Files.md +0 -34
- package/skills/spec-security-analysis/references/owasp-asvs/V13-API.md +0 -34
- package/skills/spec-security-analysis/references/owasp-asvs/V14-Configuration.md +0 -35
- package/skills/spec-security-analysis/references/owasp-asvs/V2-Authentication.md +0 -36
- package/skills/spec-security-analysis/references/owasp-asvs/V3-SessionManagement.md +0 -35
- package/skills/spec-security-analysis/references/owasp-asvs/V4-AccessControl.md +0 -39
- package/skills/spec-security-analysis/references/owasp-asvs/V5-Validation.md +0 -37
- package/skills/spec-security-analysis/references/owasp-asvs/V6-Cryptography.md +0 -34
- package/skills/spec-security-analysis/references/owasp-asvs/V7-ErrorLogging.md +0 -37
- package/skills/spec-security-analysis/references/owasp-asvs/V8-DataProtection.md +0 -34
- package/skills/spec-security-analysis/references/owasp-asvs/V9-Communication.md +0 -32
- package/skills/spec-security-analysis/references/owasp-asvs/index.md +0 -59
- package/skills/spec-security-analysis/references/soc2/CC1-ControlEnvironment.md +0 -31
- package/skills/spec-security-analysis/references/soc2/CC2-CommunicationInformation.md +0 -27
- package/skills/spec-security-analysis/references/soc2/CC3-RiskAssessment.md +0 -29
- package/skills/spec-security-analysis/references/soc2/CC4-MonitoringActivities.md +0 -27
- package/skills/spec-security-analysis/references/soc2/CC5-ControlActivities.md +0 -28
- package/skills/spec-security-analysis/references/soc2/CC6-LogicalPhysicalAccess.md +0 -45
- package/skills/spec-security-analysis/references/soc2/CC7-SystemOperations.md +0 -42
- package/skills/spec-security-analysis/references/soc2/CC8-ChangeManagement.md +0 -32
- package/skills/spec-security-analysis/references/soc2/CC9-RiskMitigation.md +0 -34
- package/skills/spec-security-analysis/references/soc2/index.md +0 -46
- package/skills/spec-security-analysis/references/standards-index.md +0 -46
- package/skills/spec-to-plan/SKILL.md +0 -88
- package/skills/spec-to-plan/references/step-0-plan-selection.md +0 -121
- package/skills/spec-to-plan/references/step-1-analysis.md +0 -88
- package/skills/spec-to-plan/references/step-2-test-plan.md +0 -43
- package/skills/spec-to-plan/references/step-3-execution-plan.md +0 -218
- package/skills/spec-to-plan/workflow-assets/dist/index.d.ts +0 -146
- package/skills/spec-to-plan/workflow-assets/dist/index.d.ts.map +0 -1
- package/skills/spec-to-plan/workflow-assets/dist/index.js +0 -7525
- package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts +0 -6
- package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts.map +0 -1
- package/skills/spec-to-plan/workflow-assets/skills/to-plan/SKILL.md +0 -35
- package/skills/spec-to-plan/workflow-assets/skills/to-plan/scripts/invariants.js +0 -1
- package/skills/spec-to-plan/workflow-assets/skills/to-plan/templates/implementation-plan/default.md +0 -44
- package/skills/spec-to-plan/workflow-assets/skills/to-plan/workflows/to-plan/def.yaml +0 -85
- package/skills/specify/SKILL.md +0 -154
- package/skills/specify/assets/app-spec-template.md +0 -143
- package/skills/specify/assets/spec-template.md +0 -299
- package/skills/specify/references/integration-tests.md +0 -72
- package/skills/specify/references/us-to-fr.md +0 -40
- package/skills/specify/references/writing-good-requirements.md +0 -61
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-CMxMIh5g.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"}
|
package/dist/commands/advise.js
DELETED
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
import { a as e, l as t, n, o as r, r as i, t as a } from "../quire-BsVj1xIR.js";
|
|
2
|
-
import { t as o } from "../base-gAClyCNd.js";
|
|
3
|
-
import { d as s, g as c } from "../schema-assets-HZWo_iFN.js";
|
|
4
|
-
import "../evidence-OyqpqHLS.js";
|
|
5
|
-
import { t as l } from "../advisor-B0rESCx1.js";
|
|
6
|
-
import { a as u, i as d } from "../auditor-Dd3i9Aqx.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 r 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(r), o = t(a());
|
|
155
|
-
o && this.error(o.message, { exit: 2 });
|
|
156
|
-
let u = e(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 = c(i.repo).bindings, h = s(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(e) {
|
|
193
|
-
let t = [
|
|
194
|
-
"properties",
|
|
195
|
-
"spec/**/*.md",
|
|
196
|
-
"--scope",
|
|
197
|
-
e,
|
|
198
|
-
"--json"
|
|
199
|
-
], n = /* @__PURE__ */ new Map(), a = i(t);
|
|
200
|
-
if (!a.stdout.trim()) return n;
|
|
201
|
-
let o = r(a.stdout);
|
|
202
|
-
if (!o.ok) return n;
|
|
203
|
-
for (let e of o.value.documents) for (let t of e.criteria) t.row_id && n.set(t.row_id, {
|
|
204
|
-
property: t.property,
|
|
205
|
-
archetype: e.archetype
|
|
206
|
-
});
|
|
207
|
-
return n;
|
|
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"}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { a as e, l as t, n, t as r } from "../quire-BsVj1xIR.js";
|
|
2
|
-
import { t as i } from "../base-gAClyCNd.js";
|
|
3
|
-
import { f as a, g as o, m as s, u as c } from "../schema-assets-HZWo_iFN.js";
|
|
4
|
-
import { n as l } from "../evidence-OyqpqHLS.js";
|
|
5
|
-
import { t as u } from "../advisor-B0rESCx1.js";
|
|
6
|
-
import { t as d } from "../auditor-Dd3i9Aqx.js";
|
|
7
|
-
import { n as f } from "../completeness-BzBuNq6w.js";
|
|
8
|
-
import { execFileSync as p } from "node:child_process";
|
|
9
|
-
import { Flags as m } from "@oclif/core";
|
|
10
|
-
//#region src/assurance/graph.ts
|
|
11
|
-
var h = /* @__PURE__ */ new Set([
|
|
12
|
-
"traces_to",
|
|
13
|
-
"refines",
|
|
14
|
-
"implements",
|
|
15
|
-
"derives_from",
|
|
16
|
-
"mitigates",
|
|
17
|
-
"satisfies"
|
|
18
|
-
]);
|
|
19
|
-
function g(e) {
|
|
20
|
-
let t = e.claimTypes ?? ["StR"], n = new Set(t.map((e) => e.toLowerCase())), r = /* @__PURE__ */ new Map();
|
|
21
|
-
for (let t of e.documents) {
|
|
22
|
-
let e = y(t);
|
|
23
|
-
e && r.set(e, t);
|
|
24
|
-
}
|
|
25
|
-
let i = /* @__PURE__ */ new Map();
|
|
26
|
-
for (let t of e.documents) {
|
|
27
|
-
let e = y(t);
|
|
28
|
-
if (e) for (let n of b(t)) r.has(n) && i.set(n, [...i.get(n) ?? [], e]);
|
|
29
|
-
}
|
|
30
|
-
let a = /* @__PURE__ */ new Map();
|
|
31
|
-
for (let t of e.findings) a.has(t.obligation) || a.set(t.obligation, t);
|
|
32
|
-
let o = /* @__PURE__ */ new Map();
|
|
33
|
-
for (let t of e.obligations) {
|
|
34
|
-
let e = x(t.id);
|
|
35
|
-
o.set(e, [...o.get(e) ?? [], t]);
|
|
36
|
-
}
|
|
37
|
-
let s = [], c = /* @__PURE__ */ new Set();
|
|
38
|
-
for (let [e, t] of r) n.has(String(t.frontmatter.type ?? "").toLowerCase()) && s.push(_(e, r, i, o, a, c, /* @__PURE__ */ new Set()));
|
|
39
|
-
s.sort((e, t) => e.id.localeCompare(t.id));
|
|
40
|
-
let l = {
|
|
41
|
-
claims: s,
|
|
42
|
-
unreachable: [...r.keys()].filter((e) => !c.has(e) && o.has(e)).sort(),
|
|
43
|
-
unreadable: e.unreadable ?? []
|
|
44
|
-
};
|
|
45
|
-
return s.length === 0 && (l.reason = `no document declares itself a top-level claim (searched claim types: ${t.join(", ")}); declare one or pass --claim-type`), l;
|
|
46
|
-
}
|
|
47
|
-
function _(e, t, n, r, i, a, o) {
|
|
48
|
-
a.add(e), o.add(e);
|
|
49
|
-
let s = t.get(e), c = String(s?.frontmatter.title ?? e), l = (n.get(e) ?? []).filter((e) => !o.has(e)).sort().map((e) => _(e, t, n, r, i, a, new Set(o))), u = (r.get(e) ?? []).slice().sort((e, t) => e.id.localeCompare(t.id)).map((e) => v(e, i)), d = [...l, ...u], f = {
|
|
50
|
-
id: e,
|
|
51
|
-
kind: "goal",
|
|
52
|
-
statement: c,
|
|
53
|
-
status: d.length === 0 || d.some((e) => e.status === "open") ? "open" : "supported",
|
|
54
|
-
children: d
|
|
55
|
-
};
|
|
56
|
-
return d.length === 0 && (f.because = "no sub-claim and no obligation traces to this claim"), f;
|
|
57
|
-
}
|
|
58
|
-
function v(e, t) {
|
|
59
|
-
let n = t.get(e.id);
|
|
60
|
-
return {
|
|
61
|
-
id: e.id,
|
|
62
|
-
kind: "solution",
|
|
63
|
-
statement: e.statement,
|
|
64
|
-
status: n ? "open" : "supported",
|
|
65
|
-
...n ? { because: `${n.kind}: ${n.summary}` } : {},
|
|
66
|
-
children: []
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function y(e) {
|
|
70
|
-
let t = e.frontmatter.id;
|
|
71
|
-
return typeof t == "string" && t.length > 0 ? t : null;
|
|
72
|
-
}
|
|
73
|
-
function b(e) {
|
|
74
|
-
let t = e.frontmatter.relationships;
|
|
75
|
-
if (!Array.isArray(t)) return [];
|
|
76
|
-
let n = [];
|
|
77
|
-
for (let e of t) {
|
|
78
|
-
if (!e || typeof e != "object" || !h.has(String(e.type ?? ""))) continue;
|
|
79
|
-
let t = String(e.target ?? "").split("/").pop();
|
|
80
|
-
t && n.push(t);
|
|
81
|
-
}
|
|
82
|
-
return n;
|
|
83
|
-
}
|
|
84
|
-
function x(e) {
|
|
85
|
-
let t = /^([A-Za-z]+-\d+)/.exec(e);
|
|
86
|
-
return t ? t[1] : e;
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
|
-
//#region src/assurance/render.ts
|
|
90
|
-
var S = {
|
|
91
|
-
supported: "✅",
|
|
92
|
-
open: "◇"
|
|
93
|
-
};
|
|
94
|
-
function C(e) {
|
|
95
|
-
let t = ["# Assurance case", ""];
|
|
96
|
-
e.claims.length === 0 && t.push("No document declares itself a top-level claim, so there is no case to", "argue. Declare an `StR` (or pass `--claim-type`) and re-run.", "");
|
|
97
|
-
let n = e.claims.filter((e) => e.status === "open").length;
|
|
98
|
-
e.claims.length > 0 && t.push(`${e.claims.length} claim(s), ${n} with an open branch.`, "");
|
|
99
|
-
for (let n of e.claims) t.push(`## ${S[n.status]} ${n.id} — ${n.statement}`, ""), t.push(...w(n, 0)), t.push(""), t.push("```mermaid", ...T(n), "```", "");
|
|
100
|
-
return e.unreachable.length > 0 && t.push("## Reachable from no claim", "", "These carry obligations and no claim argues over them. A case rendered", "only over the reachable half would read as complete.", "", ...e.unreachable.map((e) => `- ${e}`), ""), e.unreadable.length > 0 && t.push("## Unreadable", "", ...e.unreadable.map((e) => `- ${e.path}: ${e.reason}`), ""), t.join("\n");
|
|
101
|
-
}
|
|
102
|
-
function w(e, t) {
|
|
103
|
-
let n = " ".repeat(t), r = e.kind === "solution" ? `${n}- ${S[e.status]} **${e.id}** — ${e.statement}` : `${n}- ${S[e.status]} ${e.id} — ${e.statement}`, i = t === 0 ? [] : [r];
|
|
104
|
-
e.because && i.push(`${n} - ↳ ${e.because}`);
|
|
105
|
-
for (let n of e.children) i.push(...w(n, t + 1));
|
|
106
|
-
return i;
|
|
107
|
-
}
|
|
108
|
-
function T(e) {
|
|
109
|
-
let t = ["flowchart TD"], n = /* @__PURE__ */ new Set(), r = (e) => {
|
|
110
|
-
let i = E(e.id);
|
|
111
|
-
if (!n.has(i)) {
|
|
112
|
-
n.add(i);
|
|
113
|
-
let r = e.kind === "solution" ? ["([", "])"] : ["[", "]"];
|
|
114
|
-
t.push(` ${i}${r[0]}"${D(e)}"${r[1]}`);
|
|
115
|
-
}
|
|
116
|
-
for (let n of e.children) r(n), t.push(` ${i} --> ${E(n.id)}`);
|
|
117
|
-
};
|
|
118
|
-
return r(e), t;
|
|
119
|
-
}
|
|
120
|
-
function E(e) {
|
|
121
|
-
return e.replace(/[^A-Za-z0-9]/g, "_");
|
|
122
|
-
}
|
|
123
|
-
function D(e) {
|
|
124
|
-
return `${e.id}: ${e.statement}`.replace(/["`]/g, "'").replace(/;/g, ",").slice(0, 80).concat(e.status === "open" ? " ◇" : "");
|
|
125
|
-
}
|
|
126
|
-
//#endregion
|
|
127
|
-
//#region src/commands/assurance.ts
|
|
128
|
-
var O = class a extends i {
|
|
129
|
-
static summary = "Render the assurance case: claim → argument → evidence, from the store.";
|
|
130
|
-
static description = "A pile of green evidence is not an argument (FR-040). ISO 15026-2 / GSN turns\nthe trace graph into something reviewable: this claim holds BECAUSE these\nsub-claims hold, EACH verified by a stated method, WITH evidence that is fresh.\n\nStrictly a view. It runs nothing, collects nothing and writes nothing to the\nstore — where the case cannot be built, the missing data is a finding against\nthe spec, not something this fabricates.\n\nGaps render as OPEN nodes (◇), not as omissions. An undischarged obligation, a\nsuspect binding or a claim nothing traces to stays in the tree, because a case\nthat quietly narrows to what it can prove reads exactly like a complete one.";
|
|
131
|
-
static examples = [
|
|
132
|
-
"quoin assurance",
|
|
133
|
-
"quoin assurance --claim-type StR --claim-type hazard",
|
|
134
|
-
"quoin assurance > docs/assurance.md"
|
|
135
|
-
];
|
|
136
|
-
static flags = {
|
|
137
|
-
repo: m.string({
|
|
138
|
-
description: "Repository root.",
|
|
139
|
-
default: "."
|
|
140
|
-
}),
|
|
141
|
-
module: m.string({ description: "Module directory supplying the traceability model." }),
|
|
142
|
-
"claim-type": m.string({
|
|
143
|
-
description: "Artifact type that is a top-level claim. Repeatable; matched case-insensitively. REPLACES the StR default rather than adding to it — pass --claim-type StR as well if StRs should stay claims. A safety or security bundle argues from a declared hazard or threat.",
|
|
144
|
-
multiple: !0
|
|
145
|
-
}),
|
|
146
|
-
json: m.boolean({ description: "Emit the case as JSON." })
|
|
147
|
-
};
|
|
148
|
-
async run() {
|
|
149
|
-
let { flags: i } = await this.parse(a), s = t(r());
|
|
150
|
-
s && this.error(s.message, { exit: 2 });
|
|
151
|
-
let c = [
|
|
152
|
-
"coverage",
|
|
153
|
-
"--scope",
|
|
154
|
-
i.repo,
|
|
155
|
-
"--json"
|
|
156
|
-
];
|
|
157
|
-
i.module && c.push("--module", i.module);
|
|
158
|
-
let p = e(n(c));
|
|
159
|
-
p.ok || this.error(p.error.message, { exit: 2 });
|
|
160
|
-
let m = p.value.obligations ?? [], h = k(i.repo), _ = l(i.repo, h), v = d({
|
|
161
|
-
obligations: m,
|
|
162
|
-
bindings: o(i.repo).bindings,
|
|
163
|
-
runs: j(i.repo),
|
|
164
|
-
scans: A(i.repo),
|
|
165
|
-
injections: _.injections,
|
|
166
|
-
mockInspectionSuites: _.suites,
|
|
167
|
-
catalog: u(i.module ? [i.module] : void 0)
|
|
168
|
-
}), y = f(`${i.repo}/spec`), b = g({
|
|
169
|
-
documents: y.documents,
|
|
170
|
-
obligations: m,
|
|
171
|
-
findings: v.findings,
|
|
172
|
-
claimTypes: i["claim-type"],
|
|
173
|
-
unreadable: y.unreadable
|
|
174
|
-
});
|
|
175
|
-
this.log(i.json ? JSON.stringify(b, null, 2) : C(b));
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
function k(e) {
|
|
179
|
-
try {
|
|
180
|
-
return p("git", [
|
|
181
|
-
"-C",
|
|
182
|
-
e,
|
|
183
|
-
"rev-parse",
|
|
184
|
-
"HEAD"
|
|
185
|
-
], {
|
|
186
|
-
encoding: "utf8",
|
|
187
|
-
stdio: [
|
|
188
|
-
"ignore",
|
|
189
|
-
"pipe",
|
|
190
|
-
"ignore"
|
|
191
|
-
]
|
|
192
|
-
}).trim();
|
|
193
|
-
} catch {
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
function A(e) {
|
|
198
|
-
return s(e).map((t) => a(e, t)).filter((e) => e !== null);
|
|
199
|
-
}
|
|
200
|
-
function j(e) {
|
|
201
|
-
return s(e).map((t) => c(e, t)).filter((e) => e !== null);
|
|
202
|
-
}
|
|
203
|
-
//#endregion
|
|
204
|
-
export { O as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/catalog/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { QuoinCommand } from '../../base.js';
|
|
2
|
-
export default class CatalogList extends QuoinCommand {
|
|
3
|
-
static summary: string;
|
|
4
|
-
static description: string;
|
|
5
|
-
static examples: string[];
|
|
6
|
-
static flags: {
|
|
7
|
-
json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
|
|
8
|
-
};
|
|
9
|
-
run(): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/catalog/list.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;IACnD,MAAM,CAAC,OAAO,SAAsD;IACpE,MAAM,CAAC,WAAW,SAK4D;IAE9E,MAAM,CAAC,QAAQ,WAAuD;IAEtE,MAAM,CAAC,KAAK;;MAEV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAY3B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { o as e, t } from "../../base-gAClyCNd.js";
|
|
2
|
-
import { n } from "../../modules-DDQkKC4l.js";
|
|
3
|
-
import { Flags as r } from "@oclif/core";
|
|
4
|
-
//#region src/commands/catalog/list.ts
|
|
5
|
-
var i = class i extends t {
|
|
6
|
-
static summary = "List the active artifact/object catalog modules.";
|
|
7
|
-
static description = "The catalog is assembled from, in order:\n 1. QUOIN_MODULE_PATHS\n 2. modules installed under ~/.ix/filament/modules\n\nThe default module set is installed there automatically on first catalog access,\nand updated by \"quoin module install\". The same directory is read by quire-rs.";
|
|
8
|
-
static examples = ["quoin catalog list", "quoin catalog list --json"];
|
|
9
|
-
static flags = { json: r.boolean({ description: "Emit the full catalog as JSON." }) };
|
|
10
|
-
async run() {
|
|
11
|
-
let { flags: t } = await this.parse(i);
|
|
12
|
-
n();
|
|
13
|
-
let r = e();
|
|
14
|
-
if (t.json) {
|
|
15
|
-
this.log(JSON.stringify(r, null, 2));
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
for (let e of r.modules) this.log(`${e.name}@${e.version ?? "unknown"} ${e.root}`);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { i as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { QuoinCommand } from '../../base.js';
|
|
2
|
-
export default class CatalogMethods extends QuoinCommand {
|
|
3
|
-
static summary: string;
|
|
4
|
-
static description: string;
|
|
5
|
-
static examples: string[];
|
|
6
|
-
static flags: {
|
|
7
|
-
json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
|
|
8
|
-
class: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
|
|
9
|
-
};
|
|
10
|
-
run(): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=methods.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../src/commands/catalog/methods.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,YAAY;IACtD,MAAM,CAAC,OAAO,SAAkD;IAChE,MAAM,CAAC,WAAW,SAOuC;IAEzD,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;MAKV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA2C3B"}
|