# Dimension: Version Alignment

Checks that the workspace's Tailor-platform pins and installed skills stay aligned with the running erp-kit. The CLI computes the findings deterministically; this dimension just runs it and passes the result through. **Binary** — `ok` or `violations`, no numeric score, no LLM judgment.

## Inputs

- `REPO_ROOT`
- `APPS_ROOT` (optional)
- `MODULES_ROOT` (optional)

## Procedure

### 1. Run `measure versions`

```bash
npx erp-kit internal measure versions --apps-root <APPS_ROOT> --modules-root <MODULES_ROOT>
```

Both flags are optional; when omitted, the default `apps` / `modules` layout is scanned. The CLI returns `{ status, violationCount, findings }`, where `status` is `"ok"` or `"violations"`.

### 2. Output

Pass the CLI JSON through, adding a `dimension` key and folding each finding's `subject` into its `message`:

```json
{
  "dimension": "versions",
  "status": "violations",
  "violationCount": 1,
  "findings": [
    { "severity": "error", "message": ".agents/skills/erp-kit-app-1-requirements/SKILL.md: generated for erp-kit 0.27.0, but installed erp-kit is 0.29.0. Run `erp-kit update skills` to refresh." }
  ]
}
```
