validate_coverage
Check that all modules have up-to-date context JSON files, identifying missing or stale entries to ensure complete and current code documentation.
Instructions
Validate that every module has a generated context JSON, and detect stale ones.
Args: project_dir: Path to the project root. ctx_dir: Path to the ctx/ output directory. check_stale: If True, detect modules whose source has changed (default True).
Returns: Dict with: total_modules, generated, coverage_pct, missing_ids[], stale_ids[], unknown_fields_summary{}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | Yes | ||
| ctx_dir | Yes | ||
| check_stale | No |