# Command → Model Consistency Check

## Context

Module: {{MODULE_NAME}}
Command docs: {{COMMAND_DOCS}}
Model docs: {{MODEL_DOCS}}

## Instructions

1. Read ALL command docs at the paths above
2. Read ALL model docs at the paths above
3. For each command, identify its target model and state transitions
4. Run every parity check below
5. Return results as JSON per the Output Format section

## Parity Checks

For each command doc:

| Check ID                   | Question                                                       |
| -------------------------- | -------------------------------------------------------------- |
| target_model               | Does a model doc exist for the model that command operates on? |
| state_transition_alignment | Do state changes by command match model state transitions?     |

## Common Gap Patterns

- **Missing target model**: Command operates on a model with no model doc
- **State transition mismatch**: Command changes status to a state not in model's state diagram
- **Validation gaps**: Command enforces constraints not reflected in model doc

## Output Format

Return a JSON object:

```json
{
  "check_type": "command-model-consistency",
  "module": "{{MODULE_NAME}}",
  "gaps": [...],
  "inconsistencies": [...],
  "summary": { "total_checks": N, "passed": N, "failed": N, "skipped": N }
}
```

See [parity-report-format.md](parity-report-format.md) for field definitions.
