package page→ /quality/coverage.md
pages/quality/coverage.md
37 lines, 1.9 KB. As a page.
- ---
- type: Page
- title: "Coverage"
- icon: "🎯"
- description: "How to read the chain risk → test → indicator → measurement: what \"a risk is covered\" means, where the holes are and how to get a coverage report."
- ---
- Coverage answers the question: how will we know that a risk is coming true or that quality has dropped. Coverage is not stored; it is computed from links.
- ## The chain
- - **Risk ← test.** A [quality test](/quality/tests.md) refers to the risks it catches (`risks`).
- - **Risk ← indicator.** An [indicator](/quality/indicators.md) refers to the risks it notices (`detects`).
- - **Indicator ← measurement.** A [measurement](/quality/measurements.md) refers to an indicator (`indicator`) and to a run (`run`).
- - **Test → indicator.** A test can measure an indicator (`indicators`): then its run gives a measurement.
- The fields sit in the lower record and point toward the "why"; a risk has no coverage fields of its own.
- ## When a risk is covered
- A serious risk (severity 4-5 or probability × severity ≥ 12) in "Open" or "Mitigated" is covered if at least one of two things holds:
- - a test in "Awaits the product" or "Active" refers to the risk; a planned test does not cover it yet;
- - there is a decision about the risk (`decision`): it was consciously decided that a test is not needed or not possible.
- This is norm QTS-R01, held by the `risk-covered` check. An indicator that notices the risk is good, but it does not replace a test: an indicator sees the risk after the fact, a test catches it before.
- ## The report
- The package's sensor prints for every live risk: the severity, the tests, the indicators and the last measurement of each indicator.
- ```sh
- shtuk run testing coverage # all live risks
- shtuk run testing coverage --serious # only serious ones
- ```
- A line with no tests and no indicators is a hole. An indicator with no measurement means there is nothing to notice the risk with, even though the word "indicator" stands there.