Check spec/code drift
check_driftCompare TypeScript source against YAML spec to detect missing fields, extra fields, and type mismatches. Run to prevent silent drift before commits.
Instructions
Compare the spec against the actual TypeScript source and report every drift: fields missing in code, extra fields absent from the spec, and type mismatches. Run this before committing, or right after editing a spec-controlled type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | project root the spec 'source' paths are relative to | |
| entity | No | limit the check to one entity | |
| specDir | No |