submit: Contract Guard - deterministic API breaking-change detector for AI agents - #54
kestarsheng wants to merge 7 commits into
Conversation
Submission received — #54Thank you for submitting to the current X-Agent MCP Hackathon. We have received your pull request. This is a receipt only. It does not confirm eligibility, completeness, technical approval, a judging result, or an award. Passing automated checks or merging code for archival purposes does not, by itself, mean the entry has passed review or won a prize. Please include the complete source for the submitted capability in this repository under The automated checks report technical checks separately. A workflow failure is not a judging decision. Keep updates in this PR while submissions remain open, and keep the documented source version and deployment evidence consistent. See the submission instructions. Final review results and awards will be announced separately through the official event channels. |
…l READMEs with enhanced detection rules - Update reviewCommit from ffef870 to e45354dc626edcc04657d951b55ea4442058c3bb - Sync source/README.md and source/README_ZH.md with enhanced detection tables (OpenAPI content-type/deprecated, GraphQL directive/@deprecated, JSON Schema 2020-12 keywords) - Update MCP tools count (3 -> 6) and tests count (33 -> 46) in both READMEs - Update all commit references in SUBMISSION.md and verification/README.md
…sh -> full 40-char hash)
- Replace demo page with 7-tab interactive workbench (breaking/chain/semver/migration/sarif/changelog/mcp-tools) - Add full i18n (EN default + Chinese toggle) - Add SARIF download, JSON copy, hero stats - Update reviewCommit from e45354dc to d9f757ed25e213e7b4273ba1e4402965194690d3 (full 40-char hash) - Update SUBMISSION.md and verification/README.md with new review commit - Sync source/web/index.html to latest deployed version
…reviewCommit to ad59479 - Update SUBMISSION.md: 8 MCP tools, 8 REST endpoints, 8-tab demo, consumer-aware impact scan, transitive propagation, regression benchmark - Sync source/web/index.html to latest (8-tab workbench + inline SVG icons) - Update reviewCommit from d9f757e to ad59479231feefe6d9aa9afc1f7578c49bfbf871 - Update verification/README.md with new review commit
Contract Guard
Deterministic API breaking-change detector for AI agents.
Contract Guard gives any AI agent the ability to judge whether an API change is safe or breaking — without guessing. It compares two versions of an OpenAPI, GraphQL, or JSON Schema contract and returns structured, reproducible findings in milliseconds. The core diff engine is 100% deterministic and works offline; an optional LLM advisory layer can append consumer-impact context when a key is configured.
Why not just ask the LLM?
LLMs hallucinate schema diffs, miss nested constraint tightenings, and can't guarantee the same answer twice. Contract Guard's rule engine is built for the exact job: every input pair produces the same finding set, every time.
Beyond the diff: consumer-aware impact + verifiable engines
Plain contract diffing is a mature space (oasdiff, GraphQL Inspector, Redocly). Contract Guard goes beyond it with three capabilities classic diff tools do not have:
POST /v1/consumer-scan+ MCPscan_consumer_impact): pass aconsumer_profiledescribing which paths/schemas/fields your agent actually uses, and it separates findings that hit your subset from ignorable ones. Answers "is this breaking FOR ME" instead of "is it breaking for everyone".affected_operations. A type change onPet.idreports['GET /pets', 'GET /pets/{id}'], not just the diff location.GET /v1/benchmark+ MCPrun_benchmark): 16-sample labelled corpus replayed through the engines, reporting accuracy/precision/recall/F1 (currently 1.0/1.0/1.0/1.0). Deterministic and reproducible — judges can run it themselves.Key features
Live endpoints
Source
Tech stack
FastAPI + FastMCP 4.0.3 + graphql-core 3.2 + PyYAML + Vercel (Python 3.12)