Tool Contract Migration Checker
Help tool authors evolve a callable interface while existing agents still hold old argument shapes. Compare a documented subset of before-and-after schemas, generate counterexamples for required fields and narrowed values, and replay saved calls through both validators. Export a compatibility report and reviewable migration fixtures for CI.
A schema compatibility CLI, breaking-call fixtures and a CI compatibility report.
- Run in CI when modifying agent tool schemas to ensure existing deployed agents or saved interaction traces are not broken by contract changes.
- Python 3.10+
- JSON Schema basics (properties, required, types, enums)
- json-schema-output-guard
- Python Standard-library dictionaries, JSON validation, and set operations make contract diffing and fixture generation completely transparent without framework magic.
Tool Contract Migration Checker in 4 stages
Find the saved tool calls that a proposed schema change would break.
Load versioned tool contracts and saved calls
Validate basic schema structure, parse recorded argument payloads, and verify that saved calls conform to the original contract.
starter · ~2 hours · Python
schema parsingpayload validationClassify supported schema changes
Compare before and after schemas to categorize changes into compatible, breaking, and unresolved keywords.
builder · ~2 hours · Python
schema diffingcompatibility rulesGenerate and replay breaking-call counterexamples
Synthesize minimal argument payloads that satisfy the old contract but fail the new contract, and replay saved calls through both validators.
engineer · ~2 hours · Python
counterexample synthesistrace replayExport migration fixtures and a compatibility gate
Produce a machine-readable compatibility report, export standalone test fixtures for migration tests, and implement a CI gate CLI.
engineer · ~2 hours · Python
CI gatesmigration fixturesaudit reports