Skip to content

import graph: xunit/xunit as C#'s second repo (18 -> 39 imports) (Part of #3798) - #6627

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/3798-20261025T1001Z
Oct 25, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/3798-20261025T1001Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #3798. Corpus + baseline only; no engine or rule change, so no golden bless.

The brief named Go as the small-n language (11 imports), but Go's second repo landed in #6571 (121 imports, 2 repos). Rust (#6603), Perl (#6586) and Shell (#6617) are also done. C# was the thinnest nonzero language left (18 imports, 1 repo), so this slice pins xunit/xunit @ 41e7bc69 as its second repo.

Why xunit: C#'s rule counts only using static and using Alias = Type (a plain namespace using makes no edge, C7). Serilog gave 3 such imports; xunit gives 21.

csharp before after
repos Newtonsoft.Json Newtonsoft.Json, xunit/xunit
resolvable imports 18 39
precision 9.5% 17.5% (FP 105 -> 118)
recall 61.1% 66.7% (FN 7 -> 13)

The low precision is the known open ruling from slice 2: the engine links a namespace using X.Y; to a file named like it (97% of FPs are the Newtonsoft LinqBridge.cs shape). The FNs are type aliases the engine does not resolve (xunit ConsoleRunner.cs -> DiagnosticMessage.cs etc.). Both are the same two causes as before, now on a second repo; the numbers are a baseline, not a claim (ledger shapes are still unvalidated).

Regenerated the baseline with --fetch --regenerate; I restored the go entry to main's value (it moved 122 -> 121 edges, FP 1 -> 0 on regenerate, unrelated drift I did not attribute). Chart regenerated.

Gates: pr_gates --fast 7/7; the 8 import/graph test files (218) pass. --ratchets not run: no parsing code changed.

Class / Sibling gaps

Class: a language in import_graph_accuracy.py whose pinned corpus is too small (n) or one repo to quote. Members: Go, Rust, Perl, Shell, JavaScript done or above 400 imports; C# handled here (39). Sibling gaps: (1) Swift: 0 imports, 22 engine edges, all FP (rule or extraction, engine fix; no burned program needs it). (2) C# precision: namespace using linked to a same-named file and unresolved aliases (needs the slice-2 owner ruling; no burned program). (3) PowerShell and the other languages with a single repo (scope:sweep). (4) New-language families without extractors (issue comments).

Cross-repo: none.

Checklist: partial -- C# second repo done; Swift (0 imports) and the C# engine defects remain.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 25, 2026 10:10
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 25, 2026 10:14
@squid-shepherd
squid-shepherd Bot merged commit f71dae5 into main Oct 25, 2026
63 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/3798-20261025T1001Z branch October 25, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant