gz adr covers-check¶
Verify @covers(...) traceability between an ADR package and tests.
Usage¶
Runtime Behavior¶
- Resolves ADR ID through ledger rename chains.
- Collects linked OBPI IDs for the ADR from ledger/file state.
- Scans
tests/**/*.pyfor annotations matching: @covers("ADR-...")@covers("OBPI-...")@covers("REQ-<semver>-<obpi_item>-<criterion_index>")- Parses each linked OBPI
## Acceptance Criteriacheckbox and extracts requiredREQ-*IDs. - Fails if an acceptance criterion checkbox has no
REQ-*ID. - Fails if the ADR ID, linked OBPI ID, or extracted REQ ID is missing from
@coverstargets. - Reports unmatched
@coverstargets that are not linked to the ADR.
This command is a "tests for spec" primitive:
- spec target = ADR/OBPI/REQ identifier
- test proof = @covers("<target>")