Files
NIVESH KUMAR MEENAandRohit Ghumare b539632e87 feat(projects): add tool-contract-migration-checker (#769)
* feat(projects): add tool-contract-migration-checker

Add the planned Tool Contract Migration Checker project (Level 3 Engineer)
to help developers evaluate JSON schema changes on agent tools.

- Implement 4 incremental stages with pure Python stdlib runners:
  1. Load versioned tool contracts and saved calls
  2. Classify supported schema changes (breaking vs compatible)
  3. Generate breaking-call counterexamples and replay historical calls
  4. Export migration fixtures and a CI compatibility gate
- Provide registered interactive mechanisms in site/figures/projects/
- Include comprehensive unit test suites for all stages and solution demo
- Update projects/README.md catalog

* fix(projects): address bot review comments for tool-contract-migration-checker

- Remove project from projects/roadmap.json and projects/ROADMAP.md
- Add tests to stages 3 and 4 to exceed 5-test minimum (8 and 6 tests)
- Generate counterexamples for minimums, string bounds, and introduced enums
- Treat removed properties as compatible when additionalProperties is permitted
- Enforce array minItems and maxItems in validate_call
- Require len(unresolved) == 0 for compatibility in build_report
- Canonicalize JSON enum elements to prevent unhashable type errors
- Raise FileNotFoundError when missing calls file passed to cli.py
- Flag nested restrictions outside flat schema subset as unresolved

* fix(projects): address review comments for schema types, enums, and interactive lab

- Support string and array of strings for type in schema definitions
- Normalize numbers in enum serialization so 1 and 1.0 are equivalent
- Validate that all property schemas in properties are dictionaries
- Connect figure lab to evaluate concrete sample calls with actual rules
- Update --strict help text, exit code docs, and array bounds documentation

* fix(projects): align catalog counts, deterministic ordering, and stage docs

- Recount ready and planned projects in README and ROADMAP (104 total: 79 ready, 25 planned)
- Sort set iterations in classify_changes for deterministic output
- Distinguish disabled CI gate state from passed gate in interactive figure lab
- Remove claims of nonexistent migration adapters in stage 4 documentation
- Clarify supported counterexample generation categories in stage 3 documentation

* fix(projects): add docstrings across functions and tests for coverage

Add PEP 257 docstrings to all functions, entrypoints, and test suites across tool-contract-migration-checker to satisfy the 80% docstring coverage check.

* fix(projects): address maintainer review blockers and bugs for tool-contract-migration-checker

- Re-record genuine media files and JSON receipts with scripts/record_demo.py
- Validate unhandled keywords against SUPPORTED_KEYWORDS across top-level and property scopes
- Reject NaN, Infinity, and malformed numeric bounds during contract and calls loading
- Enforce deterministic sorted iteration order for unresolved keywords
- Accept 3.0 as a valid integer per JSON Schema specifications
- Handle null values properly in enum constraints
- Treat type addition to untyped properties as narrowing and integer to number/null as widening
- Avoid flagging unchanged nested items schemas as unresolved
- Synthesize robust counterexamples for narrowed types and closed removed properties
- Align interactive lab controls and sample calls with samples directory and api_key
- Restore missing ready projects in projects/README.md table for exact 79 ready count

* fix(projects): close remaining gate gaps in tool-contract-migration-checker

- Changes inside a nested object or array schema (required,
  additionalProperties, properties, items) are now reported as
  unresolved, so the strict gate no longer approves them.
- Unsupported keywords are reported only when their value changes, and
  annotations such as default and examples are ignored. An unchanged
  schema that uses format or default now passes.
- Removing null from a property's types, or typing an untyped property
  without null, now produces a null counterexample. A required
  null-only field gets a null baseline value.
- The figure shows each saved call with its outcome and reason, counts
  the already-invalid call, and reports the gate as disabled when
  strict mode is off.
- README, API and stage 2 docs describe the unresolved rules and the
  exit code accurately. Catalog hours for Binary Inspector and Mini
  Decompiler match their manifests.
- Recordings were regenerated with scripts/record_demo.py, and their
  paths are normalized.
- Regression tests cover each case above.

* fix(projects): build removed-property counterexamples from the old schema

A removed property with an enum or a bound got no counterexample,
because every fixed candidate failed the old contract. The first
candidate is now a value synthesized from the old property schema.
The stage 3 doc says a change is left without a counterexample when no
candidate passes the old contract and fails the new one. Recordings are
regenerated for the new test count.

* fix(projects): normalize nested defaults and shape type counterexamples

- Nested required and additionalProperties are compared with their
  defaults filled in, so spelling out required: [] or
  additionalProperties: true is no longer an unresolved change.
- Type-narrowing candidates are built from the old property schema
  first, so a removed string type honors the old minLength and still
  gets a counterexample.
- Tests cover both cases. Recordings are regenerated for the new test
  counts.

* fix(projects): report malformed nested required instead of raising

A nested required list with non-string items raised TypeError while
its defaults were normalized. Only a list of strings is normalized now,
and any other value is compared as is, so the change is reported as a
nested restriction. A test covers it. Recordings are regenerated for
the new test count.

---------

Co-authored-by: Rohit Ghumare <ghumare64@gmail.com>
2026-11-11 12:28:05 +05:30
..

Projects

Build useful AI engineering tools from scratch, one tested stage at a time. The catalog covers 104 projects across Python, Rust, TypeScript, and Go: 79 ready to build and 25 on the roadmap.

Each ready project includes a working reference implementation, a learner starter, cumulative stage tests, mechanism diagrams, explanations, and recorded run/output GIFs. Core tests use local fixtures and require no model credentials. Optional framework comparisons use real SDKs with deterministic fake models. Planned projects have proposed outcomes and learning milestones; their implementations and completion tests are still to come.

Start

python3 scripts/project_test.py semantic-notes-search --list
python3 scripts/project_test.py semantic-notes-search --init my-semantic-notes-search
python3 scripts/project_test.py semantic-notes-search --stage 1 --path my-semantic-notes-search

Use Python 3.12+, Node 22.18+ for TypeScript, rustc with edition 2021, and Go 1.23+. Install only the toolchains the project's language badges require. The reference solution is an instructor artifact:

python3 scripts/project_test.py research-report-agent --all --solution --strict
python3 scripts/project_test.py --all --solution --strict --report project-results.json

The site is built with node site/build-projects.js --strict. It bundles project lessons and recordings for static hosting, so preview branches do not depend on unpublished GitHub main files.

Learn with an agent

In Claude Code, use /build-project <id>. In Codex or another compatible host, ask it to use the build-project skill for the selected project. The tutor teaches one stage at a time: predict, build, test, reflect. It keeps learning notes in your own PROJECTS-LEARNING.md.

Completion evidence

python3 scripts/project_test.py semantic-notes-search --all --strict --path my-semantic-notes-search --report completion.json

Import completion.json on the project page and enter your name to download a printable HTML certificate. Every stage must pass with nonzero tests and no skips. Reference solutions, partial runs, and outdated manifests cannot qualify. The certificate is a local, self-attested community course record, not a proctored or vendor credential. Optional SDK verification is separate from core completion.

Ready catalog

Project Level Languages Stages Estimate
Bookmark Path Organizer 1 TypeScript 4 ~8h
CSV Repair Workbench 1 Python 4 ~8h
Dataset Split Auditor 1 Python 4 ~8h
Download Folder Sort Desk 1 Python 4 ~8h
Glossary Hovercard Publisher 1 TypeScript 4 ~8h
JSON Schema Output Guard 1 TypeScript 4 ~8h
Prompt Regression Tester 1 Python 4 ~8h
Semantic Notes Search 1 Python 4 ~8h
SKILL.md Validator and Loader 1 Rust 4 ~8h
Tiny Coding Agent 1 Python 4 ~8h
Token Counter and Cost Meter 1 Rust 4 ~8h
Vocabulary Autocomplete Pad 1 TypeScript 4 ~8h
API Tutorial Runner 2 TypeScript 4 ~8h
Calendar Focus Planner 2 TypeScript 4 ~8h
Catalog Record Linker 2 Python 4 ~8h
Changelog Writer From Git 2 Go 4 ~8h
Chart Storyboard Builder 2 Python 4 ~8h
Configuration Drift Explainer 2 Go 4 ~8h
CSV Question Workbench 2 Python 4 ~8h
Dataset Contract Gate 2 Python 4 ~8h
Diagram Reading Companion 2 TypeScript 4 ~8h
Document Extraction Review Desk 2 Python 4 ~8h
Document QA With Citations and LangChain 2 Python 4 ~8h
Feedback Theme Board 2 TypeScript 4 ~8h
Field Notes Map Builder 2 TypeScript 4 ~8h
Inbox Triage Desk 2 Python 4 ~8h
Incident Postmortem Writer 2 Go 4 ~8h
Infrastructure Plan Explainer 2 Python 4 ~8h
Local Model Evaluation Harness 2 Python 4 ~8h
Log Volume Reduction Lab 2 Rust, Python 4 ~8h
Meeting Notes to Actions 2 Python 4 ~8h
Plain Language Rewrite Desk 2 TypeScript 4 ~8h
PR Review Reporter 2 Python, TypeScript 4 ~8h
Research Report Agent 2 Rust, Python, TypeScript 7 ~20h
Retrieval Evaluation Lab 2 Python 4 ~8h
Sensitive Text Redaction Gate 2 Python 4 ~8h
Service Ownership Navigator 2 TypeScript 4 ~8h
Skill Router 2 TypeScript 4 ~8h
Source-Grounded Study Coach 2 TypeScript 4 ~8h
Subtitle Localization Desk 2 Python 4 ~8h
UI String Localization Workbench 2 TypeScript 4 ~8h
Workshop Materials Planner 2 Python 4 ~8h
Agent Budget Planner 3 Python 4 ~8h
Agent Trace Debugger 3 TypeScript 4 ~8h
Binary Inspector 3 Python 6 ~10h
Community Learning Path Finder 3 Python 4 ~8h
Cross-Agent Skill Installer 3 TypeScript 4 ~8h
Database Migration Rehearsal 3 Python 4 ~8h
Decision Tradeoff Explorer 3 TypeScript 4 ~8h
Harness Bench 3 Go 4 ~8h
Kubernetes Event Storyboard 3 Go, TypeScript 4 ~8h
LLM Gateway With Fallbacks 3 Go 4 ~8h
Multi-Agent Code Review Panel 3 TypeScript 4 ~8h
Persistent Memory Server 3 TypeScript, Rust 4 ~8h
RAG Freshness Pipeline 3 Python 4 ~8h
Report Judge 3 Python 4 ~8h
Retry Storm Lab 3 Go, TypeScript 4 ~8h
Self-Correcting Workflow Hooks 3 TypeScript 4 ~8h
Skill Supply-Chain Scanner 3 Rust 4 ~8h
Streaming Answer Recovery 3 TypeScript, Go 4 ~8h
Support Agent With Google ADK 3 Python 4 ~8h
Typed Workflow Agent with Mastra 3 TypeScript 4 ~8h
Tool Contract Migration Checker 3 Python 4 ~8h
Visual Evidence Library 3 Python 4 ~8h
Voice Note Transcriber Pipeline 3 Python 4 ~8h
Web Change Brief 3 Go 4 ~8h
Cloud Agent With AWS Strands 4 Python 4 ~8h
Desktop Control Backend 4 Rust 4 ~8h
Durable Agent Jobs 4 Go 4 ~8h
Hedged Request Lab 4 Go 4 ~8h
MCP Tool Discovery Workbench 4 Python, TypeScript 5 ~10h
Sandbox Policy Planner 4 Rust 4 ~8h
Signed Webhook Inbox 4 Go 4 ~8h
Streaming Agent Shell in Rust 4 Rust 4 ~8h
Tool Call Firewall 4 Rust 4 ~8h
Browser Agent 5 TypeScript, Python 4 ~8h
Distributed Eval Farm Coordinator 5 Go 4 ~8h
Mini Decompiler 5 Python 8 ~18h
Self-Improving Skill Loop 5 Python 4 ~8h

Roadmap

The 25 planned projects extend all five levels with practical applications, data and multimodal workflows, developer tooling, DevOps, and agent systems. Each brief names its deliverable, prerequisites, first demo and four proposed milestones. The website marks these cards as planned; they do not count toward completed stages or certificates.

Build an application you can use

The application track includes CSV Question Workbench, Document Extraction Review Desk, Calendar Focus Planner, Feedback Theme Board, Inbox Triage Desk, Source-Grounded Study Coach, Visual Evidence Library and Web Change Brief. Each accepts your own input and exports a reviewable artifact such as HTML, JSON, iCalendar or unsent email drafts.

Start with the stated prerequisites, run a fixture, change one input and predict the result. Then implement the stages in your own workspace. Editable mechanism figures show intermediate values; passing tests and explicit limits make the artifact easier for another developer to integrate. Popularity is an outcome to measure after release, not a guarantee attached to a lesson.

Framework comparisons

Document QA uses LangChain for splitters and model interfaces. Support routing uses Google ADK for real specialist handoffs. The cloud inspection project uses AWS Strands with a local model and keeps cloud calls opt-in. Typed workflows compare the hand-built executor with Mastra. Framework use is limited to those concrete jobs; standard-library implementations remain visible.

All four framework projects document their dependency setup and use --optional --strict. Missing modules produce a skip with an install hint; strict mode fails. Tests using fake models verify SDK integration, not live provider behavior.

Scope and evidence

The local validation report records the 26 roadmap implementations, two additional projects, manual scenarios and verification boundaries.

Published fixtures are reviewable, not secret. Evaluation scores describe those fixtures and do not establish production performance. The sandbox project plans policies; it does not provide OS isolation. Desktop control verifies its fixture backend and keeps native access explicit. The browser project includes a real browser adapter in addition to deterministic fixtures. Voice processing includes real PCM segmentation and a multipart HTTP recognition adapter; the offline spoken fixture uses an explicitly supplied reference transcript.

Contribute

Read AUTHORING.md and SUBMITTING.md. Copy _template/, write an original useful artifact, and add stages that test learner code.