Skip to content

feat(serve): artifact detail renders a Test Result Trace panel (REQ-238, #547)#654

Merged
avrabe merged 1 commit into
mainfrom
feat/req-238-trace-results-view
Jul 2, 2026
Merged

feat(serve): artifact detail renders a Test Result Trace panel (REQ-238, #547)#654
avrabe merged 1 commit into
mainfrom
feat/req-238-trace-results-view

Conversation

@avrabe

@avrabe avrabe commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Completes REQ-238 (#547): the dashboard now has a graphical way to trace a requirement to its test results. The forward-trace mechanism (rivet-core result_trace + rivet trace-results) shipped in #645; this adds the dashboard counterpart the issue asked for.

The artifact detail view walks forward from the artifact to the verifications/tests that trace back to it, rolls the reached test results into a one-line verdict badge (passing / failing / no test evidence), and lists each reached node with its hop distance, link type, and latest result. Reached-node ids link to their own detail view for drill-down.

Behavior

  • Renders only when something traces back — leaf artifacts stay clean.
  • Depth 4 mirrors the CLI default (the ASPICE V depth).
  • Verdict rollup: passing (all recorded results passed, ≥1 recorded), failing (any fail/error), no test evidence (no reached result recorded).

Verification

  • New serve_integration test artifact_detail_renders_test_result_trace asserts the panel, verdict badge, and Hops/Via table render for REQ-001.
  • Live server: /artifacts/REQ-001 shows a passing verdict and the reached-node table; leaf artifacts omit the panel.
  • Full serve_integration suite 48/48; cargo clippy --all-targets -- -D warnings exit 0; cargo fmt --check clean; rivet validate PASS.

Traceability

  • Implements / Verifies: REQ-238 (status → verified)
  • Refs: FEAT-001

🤖 Generated with Claude Code

…38, #547)

Completes the graphical half of REQ-238. The forward-trace mechanism
(rivet-core result_trace + `rivet trace-results`) shipped in #645; this
adds the dashboard counterpart the issue asked for. The artifact detail
view now walks forward from the artifact to the verifications/tests that
trace back to it, rolls the reached test results into a one-line verdict
badge (passing / failing / no test evidence), and lists each reached node
with its hop distance, link type, and latest result.

The panel renders only when something traces back, so leaf artifacts stay
clean. Depth 4 mirrors the CLI default (the ASPICE V depth). Reached-node
ids link to their own detail view for drill-down.

Confirmed with a live server: /artifacts/REQ-001 renders the panel with a
"passing" verdict and the reached-node table; leaf artifacts omit it. Full
serve_integration suite (48/48), cargo clippy --all-targets -- -D warnings,
and cargo fmt --check all green.

Implements: REQ-238
Verifies: REQ-238
Refs: FEAT-001
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

📐 Rivet artifact delta

Change Count
Added 0
Removed 0
Modified 1
Downstream impacted (depth ≤ 5) 0

Graph

graph LR
  REQ_238["REQ-238"]:::modified
  classDef added fill:#d4edda,stroke:#28a745,color:#155724
  classDef removed fill:#f8d7da,stroke:#dc3545,color:#721c24
  classDef modified fill:#fff3cd,stroke:#ffc107,color:#856404
  classDef overflow fill:#e2e3e5,stroke:#6c757d,color:#495057,stroke-dasharray: 3 3
Loading
Modified
ID Changes
REQ-238

📎 Full HTML dashboard attached as workflow artifact rivet-delta-pr-654download from the workflow run.

Posted by rivet-delta workflow. The graph shows only changed artifacts; open the HTML dashboard (above) for full context.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rivet Criterion Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: a780189 Previous: ce754d3 Ratio
link_graph_build/10000 57920371 ns/iter (± 5136365) 25040374 ns/iter (± 2068891) 2.31
diff/10000 10676934 ns/iter (± 1027650) 7866729 ns/iter (± 368338) 1.36

This comment was automatically generated by workflow using github-action-benchmark.

@avrabe avrabe merged commit 84ff120 into main Jul 2, 2026
26 of 27 checks passed
@avrabe avrabe deleted the feat/req-238-trace-results-view branch July 2, 2026 06:27
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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