Skip to content

LBA REQ 022

github-actions[bot] edited this page Nov 19, 2026 · 2 revisions

LBA-REQ-022: Generated traceability matrix

Status

Proven

Area

Assurance / traceability (ISO/IEC/IEEE 42010 correspondence graph, Stage 3; ADR-0013)

Statement

The system shall generate the requirement traceability matrix from the governed requirement, test, and decision sources.

Rationale

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.

Acceptance Criteria

  • generate-traceability.mjs reads requirement ids + titles from docs/requirements/srs.md, status / TestID / CodeRef count from docs/requirements/rtm.csv, the addressing architecture view from docs/architecture/overview.md (the ### N.M ... addresses headings), and the decisions from the ADR index README.md "Traces to" column, then writes docs/requirements/traceability-matrix.md (one row per requirement).
  • The generator is deterministic: --check re-derives the matrix and exits non-zero when the committed file drifts from the sources.
  • Gated: traceability-matrix-current runs --check in verify-local-gates, so the derived view cannot rot.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

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).

TestID

T-022

CodeRef

experiments/reqs-coverage/generate-traceability.mjs; docs/requirements/traceability-matrix.md; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally