Repository navigation
LBA REQ 022
Proven
Assurance / traceability (ISO/IEC/IEEE 42010 correspondence graph, Stage 3; ADR-0013)
The system shall generate the requirement traceability matrix from the governed requirement, test, and decision sources.
Hand-maintaining the requirement -> view -> decision -> test -> code cross-references invites drift. Deriving a single matrix from the canonical sources (the SRS, the RTM, the architecture description, and the ADR register) keeps the traceability view honest and current by construction, and makes the correspondence graph (ADR-0013) presentable, not only enforceable.
-
generate-traceability.mjsreads requirement ids + titles fromdocs/requirements/srs.md, status / TestID / CodeRef count fromdocs/requirements/rtm.csv, the addressing architecture view fromdocs/architecture/overview.md(the### N.M ... addressesheadings), and the decisions from the ADR indexREADME.md"Traces to" column, then writesdocs/requirements/traceability-matrix.md(one row per requirement). - The generator is deterministic:
--checkre-derives the matrix and exits non-zero when the committed file drifts from the sources. - Gated:
traceability-matrix-currentruns--checkinverify-local-gates, so the derived view cannot rot.
Never hand-edit traceability-matrix.md -- re-run the
generator and commit. When a source changes (a requirement, a test mapping, a
view, or an ADR trace), regenerate. Decision recorded in ADR-0013. Authored
under the repo-standards-review singular-requirement directive (one shall).
experiments/reqs-coverage/generate-traceability.mjs; docs/requirements/traceability-matrix.md; experiments/verify-local-gates.mjs
Proven