Repository navigation
Tri-comparison sweep: kotlin (4/4 shapes validated, 2 audit-tool defects fixed) - #2102
Merged
Merged
Conversation
…cts fixed)
Investigated all 4 open kotlin discrepancy shapes in tri_comparison_ledger.json against the
okhttp corpus (language-crucible/data/kotlin). Two real, confirmed bugs found and fixed in
this repo's own comparison tooling -- GitGalaxy's engine itself had no confirmed defects:
- ctags_reader.py: kotlin's CLASS_KINDS was missing "o" (objects), silently excluding every
`object Foo { ... }` singleton declaration from the ctags-side class comparison (same shape
as the existing cpp/fortran CLASS_KINDS gaps).
- tree_sitter_accuracy_audit.py: kotlin's func_node_types was missing `secondary_constructor`
(plus, proactively, `anonymous_initializer` for `init { }` blocks -- same underlying gap, no
live occurrence in this corpus), so tree-sitter's own real-function count silently excluded
every Kotlin secondary constructor.
The remaining shape (ctags' Kotlin parser tagging trailing-lambda blocks and for-loop iteration
variables as functions) is a genuine, permanent ctags parser limitation, not fixable via a
kind-map change -- documented in ctags_reader.py and debited in the ledger.
Also adds docs/language_status/kotlin.md (sections 1-8 from primary sources, plus a §9
tri-comparison write-up) and updates the README index.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Contributor
2 tasks done
squid-protocol
added a commit
that referenced
this pull request
Aug 22, 2026
…ary_constructor fix (#2105) PR #2102's func_node_types fix (adding secondary_constructor/anonymous_initializer so tree-sitter correctly counts Kotlin secondary constructors) legitimately changed the pinned ground-truth real_functions count for kotlin from 27 to 28, which correctly failed CI's baseline-gated regression check (the check can't distinguish "corpus changed" from "ground truth measurement improved" -- it just flags any drift for a human to look at, per its own message). Not a corpus change: verified this is the direct, expected effect of the merged fix. Regenerated via `tree_sitter_accuracy_audit.py --lang kotlin --regenerate`, which also updated kotlin's accuracy summary row in language_standards.py from 96.4% to 100.0% func_start recall/precision. Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5 <[email protected]>
2 tasks done
squid-protocol
added a commit
that referenced
this pull request
Aug 22, 2026
…r cleared) (#2108) PR #2102 validated kotlin's 4th ledger shape (agree[gitgalaxy,tree_sitter]_vs[ctags], the constructor shape that only appeared after the func_node_types fix) but never re-ran tri_comparison_chart.py --all --write afterward -- the committed SVG still reflected the prior regeneration, where that shape was still unvalidated. Every kotlin ledger entry has been status=validated (has_open_question() returns False for both function/existence and class/existence) since #2102 merged; the chart just never caught up. Regenerated -- the asterisks are gone from kotlin's Functions Found/Function Precision panels, and the summary legend's ranked-comparison count/percentages update accordingly. No other language's cells changed. Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tri_comparison_ledger.jsonagainst the okhttp corpus (language-crucible/data/kotlin), following thetri-comparison-ledger-sweepskill.ctags_reader.py: kotlin'sCLASS_KINDSwas missing"o"(objects), silently excluding everyobject Foo { ... }singleton declaration from the ctags-side class comparison — same shape as the existing cpp/fortran gaps.tree_sitter_accuracy_audit.py: kotlin'sfunc_node_typeswas missingsecondary_constructor(plus, proactively,anonymous_initializer— same underlying gap, no live corpus occurrence), so tree-sitter's own real-function count silently excluded every Kotlin secondary constructor.docs/language_status/kotlin.md(sections 1-8 from primary sources + a §9 tri-comparison write-up) and updates the language-status README index.Test plan
python tests/ruff_audit.py --ci— cleanpython tests/mypy_audit.py --ci— cleantri_comparison_gatherer.gather_language('kotlin')before/aftertri_comparison_chart.py --all --writeregenerated, diff confirmed scoped to kotlin plus expected timestamp churn elsewherelanguage_standards.py/detector.py/prism.py, socrucible_check.py/golden-master re-blessing isn't required (CLAUDE.md's Differential Scan protocol)🤖 Generated with Claude Code