ContractSutra AIv0.2.1GitHub

Test report and proof

Recorded 2026-11-22 on Node v24.15.0, win32 x64. Regenerate with npm run proof. Raw files are in docs/proof and the samples folder.

Summary

MeasureResult
Automated tests123 / 123 passed, 0 failed, 0 skipped
Gold corpus20 / 20 scenarios agree (precision and recall 1.00 on this corpus)
Fuzz2000 mutated spec pairs: 0 crashes, non-determinism, render failures or unexpected self-diff findings
Independent audit of the demo report12 / 12 checks PASS
CI matrixUbuntu, Windows, macOS on Node 22 and 24 (see Actions tab)

Test groups

AreaWhat is proven
Parsing and validationVersion gate, missing paths, bad operations, $ref resolution, cycles, external refs, BOM
RulesEach direction-aware rule in both directions; constraint tightening and relaxing; stable IDs; no change gives zero findings
ConsumersManifest limits, declared mapping, UNKNOWN stays unknown
ReportsEscaping of hostile text, every finding in MD and HTML, SARIF mapping, six-plus-one file set
AuditPass on clean output; FAIL on edited report, forged counts, forged IDs, over-claimed verification, tampered chain, missing files, empty directory
CLIExit codes 0/2/3/4, strict flags, verify seal
Server / MCP / IDEAuth, rate limit, read-only, traversal refusal, 9 IDE packs, protocol refusal

Gold corpus

Author-labelled synthetic scenarios (operation removed, field required, type changed, composition introduced, ...). The full table with expected and observed output is in samples. Caveat: the corpus measures agreement with the author's own rules. It is not an accuracy measurement on real-world APIs; publish your own spec pairs as issues to grow it.

Benchmark

Synthetic specs on one machine, wall-clock of the comparison step only. See benchmark.json. These numbers describe this host, not a guarantee.

Reproduce

git clone https://github.com/shahvatsalofficial/contractsutra-ai && cd contractsutra-ai
npm test && npm run demo && npm run proof

Known gaps