Skip to content

Trace links to baseline requirements are not broken - #3

Merged
msetkowski merged 1 commit into
mainfrom
feature/baseline-trace-links
Nov 9, 2026
Merged

msetkowski merged 1 commit into
mainfrom
feature/baseline-trace-links

Conversation

@msetkowski

Copy link
Copy Markdown
Owner

Summary

  • Existing BL- keys count as valid link targets. This applies to the overview's Broken references count and to the MCP get_traceability gaps. Once the baseline item is removed, the link shows as broken again.
  • The requirement page links BL- targets to /baseline/BL-… instead of showing "BL-03 (missing)".
  • `BL-03` in Markdown resolves to the baseline item. On approved-version pages it is an in-page anchor to the baseline section.
  • MCP get_traceability adds the baseline items a project links to as graph nodes.
  • Fix: the view gets baseline keys as a HashSet. SpEL can't call methods on Kotlin's internal EmptySet, so the requirement page failed while the baseline was empty.

Test plan

  • src/main/dev/scripts/test.sh verify: 154 tests pass.
    • ProjectDocumentTest: a baseline link counts as broken only when the key is unknown.
    • BaselinePagesIT: valid while the baseline item exists, "missing" after it is deleted; the Markdown reference resolves.
    • McpServerIT: the edge and the baseline node are in the traceability graph, and brokenLinks is empty.

🤖 Generated with Claude Code

Existing BL- keys count as valid link targets in the overview's broken
references and in the MCP traceability graph, where linked baseline items now
appear as nodes; a removed one makes the link broken again. The requirement page
links them to the baseline instead of showing "(missing)", and `BL-03` in
Markdown resolves to the baseline item (an in-page anchor on version pages).

The view gets baseline keys as a HashSet: SpEL cannot call methods on Kotlin's
internal EmptySet, which made the requirement page fail while the baseline was empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@msetkowski
msetkowski merged commit 1713753 into main Nov 9, 2026
5 checks passed
@msetkowski
msetkowski deleted the feature/baseline-trace-links branch November 9, 2026 22:22
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