LEVEL 3 · ENGINEER

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.

4 stages~8 hoursPython@iitking
Load versioned tool contracts and saved callsClassify supported schema changesGenerate and replay breaking-call counterexamplesExport migration fixtures and a compatibility gate
YOU END UP WITH

A schema compatibility CLI, breaking-call fixtures and a CI compatibility report.

USEFUL FOR
  • Run in CI when modifying agent tool schemas to ensure existing deployed agents or saved interaction traces are not broken by contract changes.
LEARN FIRST
  • Python 3.10+
  • JSON Schema basics (properties, required, types, enums)
  • json-schema-output-guard
WHY THESE LANGUAGES
  • Python Standard-library dictionaries, JSON validation, and set operations make contract diffing and fixture generation completely transparent without framework magic.
PROJECT OUTLINE

Tool Contract Migration Checker in 4 stages

Find the saved tool calls that a proposed schema change would break.

  1. 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 validation
  2. Classify supported schema changes

    Compare before and after schemas to categorize changes into compatible, breaking, and unresolved keywords.

    builder · ~2 hours · Python

    schema diffingcompatibility rules
  3. Generate 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 replay
  4. Export 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

All projects · Course catalog · Source on GitHub