Traceability matrices are demanded by every methodology and maintained by almost no one, because hand-building them is clerical torture. This playbook has AI generate the objective-to-requirement-to-test matrix from artifacts you already have, flags orphans and untested requirements automatically — and regenerates the whole thing on every change instead of letting it rot.
Workflow area: Requirements Quality · Tier: Core · Hands-on time: ~35 minutes
A traceability matrix answers two questions that decide whether a project is under control: does every requirement serve a stated objective, and does every requirement have a test that would prove it delivered? The matrix itself is pure derivation — every link already exists implicitly in your BRD, story export and test plan — which is why it is the perfect AI task: no judgment in the generation, all judgment in the exceptions. Orphan requirements (serving no objective) are scope creep wearing a requirement ID; untested requirements are promises nobody will check; tests tracing to nothing are effort spent verifying the void. The model builds the table and surfaces the exceptions; you disposition them. And because generation is now cheap, the matrix stops being a sign-off artifact produced once and abandoned — it regenerates at every change and stays true.
Export the three layers with IDs. Objectives (from the BRD, OBJ-x), requirements (BR-x / stories with keys), and test cases (TC-x from Jira/Xray/ADO, with their claimed requirement links if any). CSV or markdown — structure matters more than format. Include the scope statement so the model knows what "in scope" means.
Run the generation with structured output. Paste into Claude or ChatGPT (or drive an LLM API with a JSON schema for pipeline use):
You are building a requirements traceability matrix.
Layers: objectives, requirements, test cases (below, with IDs).
TASK 1 — MATRIX. Output a table:
Requirement ID | Requirement (short) | Traces up to (objective
IDs) | Traced by tests (TC IDs) | Status
Status is one of: FULL (≥1 objective AND ≥1 test) / NO-TEST /
NO-OBJECTIVE / ISOLATED (neither).
TASK 2 — EXCEPTIONS. List:
- ORPHAN REQUIREMENTS: no objective. Quote the requirement.
- UNTESTED REQUIREMENTS: no test case.
- ORPHAN TESTS: test cases tracing to no requirement.
- SUSPECT LINKS: links you inferred from wording similarity
rather than an explicit reference — mark each INFERRED with
your reasoning in one line.
Rules: use explicit references (IDs mentioned in text) first;
only infer a link when wording clearly matches, and ALWAYS mark
inferred links INFERRED. Never invent an ID. If an artifact's
trace target is ambiguous, put it in SUSPECT LINKS rather than
choosing silently.
Objectives: [PASTE]
Requirements: [PASTE]
Test cases: [PASTE]
Audit the links before trusting the exceptions. Good output looks like this:
BR-017 | Duplicate-invoice detection | OBJ-2 | TC-041, TC-042 | FULL
BR-023 | Vendor portal branding | — | TC-055 | NO-OBJECTIVE
BR-029 | 45-day payment SLA alert | OBJ-1 | — | NO-TEST
ORPHAN TESTS: TC-070 "legacy export regression" — no requirement
references legacy export.
SUSPECT LINKS: BR-017→TC-042 INFERRED (both mention "duplicate
match rules"; TC-042 does not cite BR-017).
Verify every INFERRED link at source — confirm it and make it explicit in the artifact, or sever it. Spot-check a sample of explicit links too; a matrix is only as good as its worst link, and explicit references can be stale.
Disposition every exception with an owner. Orphan requirement: trace it to an objective it genuinely serves, get it deliberately descoped, or escalate it as scope creep — sponsor's call. Untested requirement: a test gets written (feed pb-34) or the risk of shipping unverified is signed for. Orphan test: retired, or it reveals an undocumented requirement that must be surfaced and decided. Every disposition is a log entry, not a mental note.
Make regeneration the habit. Save the prompt (or the API script) beside the artifacts and regenerate after every CR, sprint, or test-plan update. Publish the matrix with its generation date and diff the exception list between runs — a growing orphan count is an early-warning indicator no status report will give you.
Requirement and test exports describe controls, scope and sometimes security mechanisms — process them only in your organization's approved AI workspace, and clear vendor-owned test assets with the counterparty before they enter any tool.
Traceability is a derived artifact — let AI derive it fresh after every change, and spend your analyst hours where the matrix points: the orphans, the untested promises, and the tests verifying nothing.