ContractSutra AIv0.2.1GitHub

Functional specification

Capabilities (acceptance view)

IDCapabilityStatusEvidence
F01Parse and validate JSON OpenAPI 3.0-3.2 with exact JSON-pointer locationsImplemented (subset)validation tests in tests/core.test.mjs
F02Semantic, direction-aware diffImplemented (subset)gold corpus 20/20, unit tests
F03Consumer mappingPartial: self-declared onlyconsumer tests; Pact not integrated
F04Test-case generationPartial: templates, all NOT_RUNaudit check AUD-11
F05CI gateImplementedexit-code tests, CI workflow
F06Migration / release-note draftImplemented (draft; owner must approve)release-note-draft.md
F07Independent audit report (MD / HTML / JSON)Implementedtests/assure.test.mjs
F08SARIF 2.1.0 exportImplementedSARIF test

Inputs

Outputs

compare --out dir writes contract-diff.json, contract-diff.sarif.json, compatibility.md, compatibility.html, release-note-draft.md, generated-cases.json, affected-consumers.json and audit.jsonl.

audit --out dir writes audit-report.json, audit-report.md and audit-report.html.

Severity vocabulary

Exit codes

0 success, 2 gate failed, 3 invalid input, 4 internal error or failed audit.

Non-functional requirements

Offline. Deterministic (same inputs give byte-identical findings). Bounded input size and nesting. Atomic file writes. No network.

Out of scope today

YAML, GraphQL SDL, AsyncAPI, protobuf, live endpoint probing, real Pact verification, executing generated cases, multi-tenant server, signed attestations.