IntentGuard

Requirement-to-Test Traceability

Authoritative specificationtraceabilityml

Source of truth

Part of docs/specification/ — the repository declares this tree the sole authoritative design source. The README and backlog do not override it.

Functional traceability#

RequirementAcceptance criteriaPlanned validation
FR-001 Dataset preparationAC-001test_data_contract.py, make data
FR-002 BaselineAC-002, AC-004test_baseline.py, make baseline, make evaluate
FR-003 TransformerAC-003, AC-004test_training_smoke.py, make train, make evaluate
FR-004 AbstentionAC-005–AC-007test_threshold.py, API integration tests
FR-005 EvaluationAC-004, AC-011, AC-012test_metrics.py, test_eval_regression.py
FR-006 Inference APIAC-006–AC-008test_api.py
FR-007 Health checkAC-009test_health.py
FR-008 Artifact persistenceAC-003, AC-009, AC-010test_artifacts.py, save/load parity
FR-009 Unsupported fixtureAC-012test_unsupported_report.py, make evaluate
FR-010 CommandsAC-013, AC-014CI plus clean-environment manual validation

Non-functional traceability#

RequirementAcceptance criteria/evidencePlanned validation
NFR-001 Local compatibilityEngineering success, final validationResource observation in environment.json
NFR-002 CPU supportAC-009, AC-013CPU CI and forced-CPU API smoke
NFR-003 ReproducibilityAC-001–AC-005, AC-010–AC-011metadata assertions, lockfile, repeated fixture run
NFR-004 Input safetyAC-008API boundary tests
NFR-005 Logging privacyAC-014captured-log test
NFR-006 Performance reportingAC-004latency.json schema and evaluation command
NFR-007 MaintainabilityAC-014Ruff, mypy, review of module boundaries
NFR-008 Dependency controlAC-014lockfile installation in CI
NFR-009 TestabilityAC-010–AC-014unit/contract/integration suite
NFR-010 Honest reportingAC-004, AC-012, AC-014report/README validation checklist

User-story traceability#

User storyRequirements
US-001 Validated dataFR-001, FR-010, NFR-003
US-002 Baseline comparisonFR-002, FR-003, FR-005
US-003 Safe abstentionFR-004, FR-006, FR-009
US-004 Typed local inferenceFR-006–FR-008
US-005 Verifiable claimsFR-005, FR-010, NFR-010

Traceability maintenance rule#

When behavior changes:

  1. update the requirement or add an approved requirement;
  2. update acceptance criteria;
  3. update the nearest test;
  4. update this matrix;
  5. update the relevant ADR if a decision changed.

Agents must not add orphan behavior that has no requirement and no validation.

Related in repository

Open in full graph →
LINKS_TOLINKS_TO — source: docs/specification/README.mdCURRENTdocument: Requirement-to-Test TraceabilityIntentGuard Weekend MVP …document: IntentGuard Weekend MVP — Development Specification
Hover an edge for its provenance · click a node to open it2 nodes · 1 edges