Skip to content

Add convention-based traceability fallback (#135)#151

Merged
Dimwiddle merged 1 commit intofeature/discovery-layerfrom
codex/feature/discovery-layer/135-convention-traceability
Mar 9, 2026
Merged

Add convention-based traceability fallback (#135)#151
Dimwiddle merged 1 commit intofeature/discovery-layerfrom
codex/feature/discovery-layer/135-convention-traceability

Conversation

@Dimwiddle
Copy link
Contributor

Description

Implement convention-based traceability inference for discovery/status flows.

What changed

  • Added src/specleft/discovery/traceability.py with TraceabilityLink and infer_traceability(discovered, specs).
  • Integrated convention fallback into specleft status when decorator indexing has no match.
  • Added match_kind metadata to status entries and rendered ✓ (convention) in table output.
  • Extended generate_draft_specs(...) to optionally emit linked_tests frontmatter blocks for matched scenarios.
  • Added tests in tests/discovery/test_traceability.py, extended tests/commands/test_status.py, and extended tests/discovery/test_spec_writer.py.
  • Updated features/feature-spec-discovery.md with story/acceptance coverage for issue Discovery Phase 2: convention-based test traceability #135.

Type of Change

  • New feature
  • Tests
  • Documentation

Testing

  • make lint-fix && make lint && make test && make pre-commit (pass)

Related Issues

Closes #135

@Dimwiddle Dimwiddle merged commit cd8eb85 into feature/discovery-layer Mar 9, 2026
1 check passed
@Dimwiddle Dimwiddle deleted the codex/feature/discovery-layer/135-convention-traceability branch March 11, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant