feat(list): --orphans — list artifacts disconnected from the graph (REQ-128)#373
Merged
Conversation
…lity graph (REQ-128) The orphan/"asserted-but-unanchored" detector (#358-adjacent; the epistemic companion to the incoming-links view already shipped in #364). `rivet list --orphans` keeps only artifacts with no inbound AND no outbound links — a requirement no test verifies, a decision no hazard drives. Built on the existing `LinkGraph::orphans`; composes with `--type` and `--format json`. Verified on rivet's own repo (surfaces 5 genuinely-disconnected artifacts); regression test asserts orphans are a subset of the full list. clippy --all-targets clean. REQ-128 (the inbound-link-count ranking report remains; kept draft). Implements: REQ-128 Verifies: REQ-128 Refs: REQ-007 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
📐 Rivet artifact deltaNo artifact changes in this PR. Code-only changes (renderer, CLI wiring, tests) don't touch the artifact graph. |
There was a problem hiding this comment.
⚠️ 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: 71af562 | Previous: ef54557 | Ratio |
|---|---|---|---|
traceability_matrix/1000 |
62527 ns/iter (± 1339) |
43199 ns/iter (± 149) |
1.45 |
This comment was automatically generated by workflow using github-action-benchmark.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The orphan detector — mechanical enforcement of 'no asserted-but-unanchored claim' (a requirement no test verifies, a decision no hazard drives).
rivet list --orphanskeeps only artifacts with no inbound AND no outbound links, built on the existingLinkGraph::orphans; composes with--type+--format json. Verified on rivet's repo (5 disconnected artifacts) + regression test; clippy --all-targets clean. Completes the orphan half of REQ-128 (the inbound-count ranking report remains, so REQ-128 stays draft).