Skip to content

java tri-comparison sweep: fix bodyless abstract-method drop + args annotation gap - #2092

Merged
squid-protocol merged 1 commit into
mainfrom
tri-comparison-sweep-java
Aug 22, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
tri-comparison-sweep-java

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Tri-comparison ledger sweep for java (tri-comparison-ledger-sweep skill). Found and fixed 3
real, confirmed defects behind the language's 4 open ledger shapes; the java tri-comparison chart
now shows a clean 100% 3-way tie on both ranked panels with no unvalidated-disagreement
asterisks.

Verification

  • Extraction gauntlet (test_java.py/test_java_strict.py, 161 cases) and the full extraction
    suite (6213 cases) pass clean.
  • python tests/ruff_audit.py --ci / python tests/mypy_audit.py --ci — no new findings.
  • tri_comparison_gatherer.gather_language("java") full corpus name+line diff: zero functions
    tree-sitter finds that GitGalaxy misses, zero args mismatches anywhere.
  • Confirmed no other language's ledger entries moved as a side effect of the audit-tool whitelist
    addition (before/after ledger diff, scoped to java/ only).
  • crucible_check.py against the full ~80-repo differential-scan corpus: both golden-master
    fixtures re-blessed. All drift traces to java/springboot's corrected function-parameter
    counts, .java files living inside groovy/gradle/groovy/spock repos (same java rules
    apply regardless of the repo's dominant-ecosystem label), and the expected topological-
    coordinate ripple from the whole-graph layout recomputing with corrected counts.
  • All 4 ledger shapes (28+12+3+1 occurrences) now status: "validated",
    still_reproduces: false.

Also

Adds docs/language_status/java.md (previously undocumented — sections 1-8 via the
language-status skill's process, §9 tri-comparison section written from this sweep's findings)
and updates its README.md index row.

Test plan

  • pytest tests/extraction/languages/test_java.py tests/extraction/languages/test_java_strict.py
  • pytest tests/extraction/ (full suite, no regressions)
  • tests/ruff_audit.py --ci / tests/mypy_audit.py --ci
  • tests/tools/crucible_check.py (both full_precision and zero_dependency modes pass)
  • Both golden masters re-blessed and reviewed line-by-line

🤖 Generated with Claude Code

…omparison sweep

Tri-comparison ledger sweep for java validated 4 unvalidated shapes and found 3
real, confirmed engine/audit-tool defects (all now fixed and re-verified):

- func_start silently dropped bodyless abstract/interface method declarations
  (`protected abstract long startTime();`) via detector.py's generic Mode-B
  fallback, which only ever searches for a `{` and discards `;`-terminated
  matches. Java never got the dedicated terminator-search handling that
  csharp/rust/go/objective-c/dart/perl already have for this same shape.
  (#2089)
- args' modifier-repeat group never got the interleaved-return-type-annotation
  fix (`private <T> @nullable T foo(...)`) that func_start's sibling group
  already got in #1486/#1489, causing the whole args alternation to fall
  through to the lambda-matching branch and misattribute an unrelated in-body
  lambda's arg count as the function's own. (#2091)
- tree_sitter_accuracy_audit.py's own `_get_param_count` was missing java's
  `spread_parameter` (varargs) node type from its counted_types whitelist --
  the same recurring per-grammar gap already fixed for 11 other languages.
  Not a GitGalaxy defect. (#2090)

All 4 ledger shapes (28+12+3+1 occurrences) now validated, still_reproduces:
false. Java's tri-comparison chart is now a clean 100% 3-way tie (318/318 func
precision, 35/35 class precision) with no unvalidated-disagreement asterisks.
Both golden-master fixtures re-blessed against the full differential-scan
corpus -- all drift traces to java/springboot's corrected function-parameter
counts, java files inside groovy-ecosystem repos, and the expected topological
ripple from the whole-graph layout recomputing.

Also adds docs/language_status/java.md (previously undocumented).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant