ShtukbaseStandard
package page→ /quality/coverage.md

pages/quality/coverage.md

37 lines, 1.9 KB. As a page.

  1. ---
  2. type: Page
  3. title: "Coverage"
  4. icon: "🎯"
  5. 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."
  6. ---
  7. 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.
  8. ## The chain
  9. - **Risk ← test.** A [quality test](/quality/tests.md) refers to the risks it catches (`risks`).
  10. - **Risk ← indicator.** An [indicator](/quality/indicators.md) refers to the risks it notices (`detects`).
  11. - **Indicator ← measurement.** A [measurement](/quality/measurements.md) refers to an indicator (`indicator`) and to a run (`run`).
  12. - **Test → indicator.** A test can measure an indicator (`indicators`): then its run gives a measurement.
  13. The fields sit in the lower record and point toward the "why"; a risk has no coverage fields of its own.
  14. ## When a risk is covered
  15. A serious risk (severity 4-5 or probability × severity ≥ 12) in "Open" or "Mitigated" is covered if at least one of two things holds:
  16. - a test in "Awaits the product" or "Active" refers to the risk; a planned test does not cover it yet;
  17. - there is a decision about the risk (`decision`): it was consciously decided that a test is not needed or not possible.
  18. 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.
  19. ## The report
  20. The package's sensor prints for every live risk: the severity, the tests, the indicators and the last measurement of each indicator.
  21. ```sh
  22. shtuk run testing coverage # all live risks
  23. shtuk run testing coverage --serious # only serious ones
  24. ```
  25. 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.