Repository navigation
fix(diagnostics): separate external references from dangling edges - #3590
DevChiniwala wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Graphify reviewed this change.
Worth a look — the grounded gate found no coupling regressions or blocking issues, but 1 advisory finding(s) below merit a look before merge.
Formal verification. No changes could be formally verified in this run.
Graphify review — findings
Splits edge diagnostics so that a ref_-prefixed target with a valid internal source counts as external_reference_edges (expected out-of-corpus dependencies) rather than as an actionable dangling_endpoint_edges. diagnose_extraction now emits the new count, and format_diagnostic_report renders it, defaulting to 0 for summaries that predate the field.
Worth a look
- Changed public dangling_endpoint_edges semantics for ref_ targets —
graphify/diagnostics.py:203· Escalate · medium- agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 224 functions depend on the 47 functions this change touches.
Health — this change adds coupling hotspots:
- new:
dispatch_command()— 2 callers, 125 callees - new:
diagnose_extraction()— 15 callers, 10 callees - new:
test_poisoned_manifest_is_healed()— 0 callers, 6 callees
Verification — 224 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 141 function(s) in the blast radius were not formally verified this run
Test selection
Test selection
4 of 283 test file(s) selected (1%) via static blast radius.
tests/test_corrupt_graph_json.py— impacttests/test_duplicate_annotation_edges.py— impacttests/test_evidence_binding.py— impacttests/test_multigraph_diagnostics.py— impact, changed-test
Selection is safe under the controlled-regression assumption; always-run tests + a periodic full run are the backstops. Advisory — it never changes the check verdict.
Formal verification
Could not verify: Could not verify diagnose\_extraction.
The verifier did not have enough to check diagnose\_extraction, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: no capturable inputs from the test suite; property tier: not verifiable: all 6 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly NameError — names the real obstacle, not a sampling gap)
Could not verify: Could not verify format\_diagnostic\_report.
The verifier did not have enough to check format\_diagnostic\_report, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: no capturable inputs from the test suite; property tier: not verifiable: all 6 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly KeyError — names the real obstacle, not a sampling gap)
· 3 more finding(s) on lines outside this diff (see the check run).
…e distinct (#3590 follow-up) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Shipped in v0.9.64 (on PyPI). Cherry-picked with authorship preserved so it shows under your GitHub contributions. Thanks @DevChiniwala! |
Summary
ref_*dependency targets separately from internal dangling endpointsFixes #2191
Validation
python -m pytest tests/test_multigraph_diagnostics.py tests/test_duplicate_annotation_edges.py tests/test_evidence_binding.py -q --tb=short— 48 passedpython -m ruff check graphify/diagnostics.py tests/test_multigraph_diagnostics.py— passedgraphify update .— completed on currentv8; expected optional-parser warnings onlyCompatibility
This adds
external_reference_edgesand narrowsdangling_endpoint_edgesto actionable missing endpoints. Existing malformed and internal missing targets remain classified as dangling.