Repository navigation
fix(011): only direct local-inference edges skip own-graph confirmation - #444
Conversation
AI review (no-findings)The diff makes a targeted change to Old behavior:
New behavior:
The key behavioral changes:
Indexing safety: Test coverage: The three new tests cover the three distinct cases introduced: dev deps don't generate violations, direct local-inference non-dev deps produce unconfirmed violations ( Match arm ordering: The new first arm for No concrete defects found. {"head": "c66cae4d6d5893a55d9ea56c6611c8c0bb37a8d7", "verdict": "no-findings", "findings": []}Subject: a49e40f...c66cae4, diff digest 0c51a2e9a37c9a34b0a5cd3dfcf53cc4ae0e3e74734d29db01275a7080e7df8c, 1 call(s). An AI comment is not an approval. |
c66cae4 to
2ffe699
Compare
AI review (no-findings)Reviewing the two changed files:
Old logic:
New logic:
The behavioral change: a direct non-inference path (e.g. The Tests Three new tests cover the three behavioral cases cleanly:
All three assertions match the new code logic. Spec update The added prose is confined to the No defects found. {"head": "2ffe699b0695f56e5ec85484d7166412c7814276", "verdict": "no-findings", "findings": []}Subject: a49e40f...2ffe699, diff digest 42158b0a448160d56863838667b5aa80d40329cfad64840a5af8096e12e39a25, 1 call(s). An AI comment is not an approval. |
2ffe699 to
b4112ae
Compare
AI review (no-findings)Looking at the two changed files:
Old: New:
Checking the three new tests against the logic:
The comment's claim that "feature unification cannot have introduced" a direct dep is sound for pure crates: any optional dep of a pure crate on local-inference is itself a violation regardless of which feature activates it, so confirming against the crate's own graph adds nothing. One observation: the first arm matches ANY krate with a direct local-inference dep, not just No concrete defects found. {"head": "b4112aed4a9f09acf4fc4c97225bbee50e6458d6", "verdict": "no-findings", "findings": []}Subject: 50ca9ad...b4112ae, diff digest 2a57583191b397735d11bf6aeaabc82e131b9fb83a90c29ed5518e36934d6f9c, 1 call(s). An AI comment is not an approval. |
Follow-up to #442's review finding on
own_graph_of(spec 011, increment 2).own_graph_ofskipped own-graph confirmation for every length-2ForbiddenTransitivepath. It now skips it only for a direct edge from a pure crate to a local-inference package; every other direct family path (for examplerustev-coretotokio) goes back to needing confirmation from the crate's own graph.The review's dev-dependency scenario does not arise: the dependency loop filters dev edges, and the resolved graph
forbidden_pathwalks contains no dev edges either. A test pins that a direct dev dependency onortfromrustev-contractorrustev-coreproduces no violation.Tests added:
a_direct_dev_local_inference_dependency_of_a_pure_crate_is_alloweda_resolved_direct_local_inference_edge_stands_unconfirmeda_direct_path_to_another_family_still_needs_confirmationSpec: a dated "Increment 2 follow-up" paragraph in 011's implementation record (required by spec coupling; approved spec text, so it ratifies on merge).
Checks:
cargo test -p rustev-boundaries(50 passed), clippy-D warnings, fmt,make boundaries,make gate.