Skip to content

LBA REQ 021

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

LBA-REQ-021: Test-to-requirement correspondence gate

Status

Proven

Area

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

Statement

The system shall reject any governed test file that does not correspond to at least one requirement in the traceability register.

Rationale

A test that maps to no requirement is either an untraceable capability or dead weight. Enforcing the test-to-requirement correspondence as a fail-closed gate keeps the 29119 test suite tied to the 29148 requirements, and seeds the 42010 correspondence graph (ADR-0013) whose later rules extend the same engine to the decisions and views.

Acceptance Criteria

  • verify-correspondences.mjs enumerates the governed test set from the working tree — test/*.mjs, experiments/**/verify-*.mjs, *.selftest.mjs, *.playwright.{mjs,cjs}, playwright/*.mjs, and tools/**/verify-* — and exits 1 listing any file absent from every RTM CodeRef (rule TR-1).
  • The engine additionally enforces the ADR-to-requirement (AD-1) and requirement-to-view (VW-1) correspondence rules fail-closed: every ADR traces to a requirement and is registered in the overview.md decision register, and every requirement is described by an architecture view (the ADR-0013 reconciliation).
  • Gated in verify-local-gates; deterministic, offline, dependency-free.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

A new governed test must be added to an RTM CodeRef (or the test and its implementation removed) to pass TR-1; a new ADR must trace to a requirement and be registered in overview.md, and a new requirement must be described by a view, to keep AD-1 / VW-1 green (ADR-0013). Authored under the repo-standards-review singular-requirement directive (one shall).

TestID

T-021

CodeRef

experiments/reqs-coverage/verify-correspondences.mjs; docs/architecture/adr/ADR-0013-enforced-42010-correspondence-graph.md; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally