Measure all version labels
check_versionsAudit all git tags to verify each version label names exactly one code state. Returns exit 0, 1, or 2 plus a JSON report; exit 2 means undecided, not a pass.
Instructions
Use to audit the whole tag history: does each version label name exactly one code state? For a single release about to be tagged, use would_tag. With one release only, the answer is not decided (exit 2). Returns exit 0, 1 or 2 and the JSON report. Exit 2 is not a pass: nothing was decided, and output says why (no label found, a file not read, a tag not compared). Read-only: it runs git reads only, on the local repository, with no network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | path to a local git repository with its tags fetched | |
| strict | No | answer clean only if every tag scanned was compared (default false) | |
| published_file | No | a local file with the versions actually released, one per line; tags not on it are not counted as publications |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exit | Yes | 0 clean, 1 drift, 2 not decided (the reason is in output) | |
| output | Yes | the JSON report (docs/REPORT.md), or the refusal as text | |
| meaning | Yes | the exit code in words |