docs(diagnostics): note ref_ external refs and external=True stubs are distinct (#3590 follow-up)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
safishamsiandClaude Opus 4.8 committed 2026-09-17 11:10:31 +01:00
1 parent 4e811363a6
commit 41c0407504
1 file changed
+5
+5
View File
@@ -203,6 +203,11 @@ def diagnose_extraction(
missing_endpoint_edges += 1
continue
if source not in node_ids or target not in node_ids:
# Two intentionally-distinct populations of "external": a `ref_`
# target here is a JSON/config out-of-corpus reference ($ref /
# extends / references), whereas import-family externals are minted
# as declared `external=True` stub nodes at build time (#2873) and
# therefore never reach this branch. Don't try to unify them.
if source in node_ids and target.startswith("ref_"):
external_reference_edges += 1
else: