From c1069379f059e2b70b2d229678595258f0697bf5 Mon Sep 17 00:00:00 2001 From: Joe Esquibel Date: Fri, 21 Aug 2026 08:04:18 -0400 Subject: [PATCH] Close the last python Cython func_start recall gap (get_slice_from_memview) Follow-up to the tri-comparison-ledger-sweep fix in #1999: one function was still missing after that fix -- get_slice_from_memview's return type is a Cython Tempita codegen placeholder (cdef {{memviewslice_name}} *get_slice_ from_memview(...)), which the plain-identifier return-type token couldn't match. Closing it took two fixes, not one: - Widened func_start's return-type token to also accept a bounded {{identifier}} placeholder form. - That alone wasn't enough: it surfaced a second, independent bug in the shared _extract_name name-normalizer (detector.py, used by every language). Its generic split("{") truncation mistook the placeholder's own {{/}} for a C-style body-opening brace, truncating the match down to the bogus name "cdef" instead of the real name -- invisible from the isolated regex alone, only visible once checked against the real scan pipeline's actual DB output. GitGalaxy now finds all 84 real functions in cython/MemoryView.pyx (100% recall vs. ctags, up from 83/84) -- the python/function/existence/agree[ctags]_vs[gitgalaxy,tree_sitter] ledger shape no longer reproduces at all. Verified: new test cases in test_python.py (func_start regex + ReDoS sweep) and test_detector.py (_extract_name, since that fix is shared infrastructure); crucible_check.py against the full ~80-repo corpus (diffs scoped only to python/cython, both golden masters re-blessed again); ruff/mypy clean; ledger/ chart/report regenerated and diffed to confirm only python's real data moved. Co-Authored-By: Claude Sonnet 5 --- docs/language_status/python.md | 29 +- docs/self_scan/tri_comparison_chart.svg | 10 +- docs/self_scan/tri_comparison_ledger.json | 308 +++++++++--------- .../tri_comparison_points_of_interest.md | 265 ++++++++------- gitgalaxy/core/detector.py | 9 + gitgalaxy/standards/language_standards.py | 10 +- tests/core_engine/test_detector.py | 10 + tests/extraction/languages/test_python.py | 14 + tests/golden_master_audit.json | 28 +- tests/golden_master_zero_dep_audit.json | 28 +- 10 files changed, 387 insertions(+), 324 deletions(-) diff --git a/docs/language_status/python.md b/docs/language_status/python.md index ae2b1afc8..8b9cab484 100644 --- a/docs/language_status/python.md +++ b/docs/language_status/python.md @@ -312,10 +312,10 @@ Section 9 above measures GitGalaxy against one privileged ground truth (`ast`). different: it's a 3-way comparison where *no* tool is privileged (`tests/tools/ tri_comparison_gatherer.py`/`tri_comparison_reconcile.py`), logged per-discrepancy-shape in `docs/self_scan/tri_comparison_ledger.json` and worked through via the -`tri-comparison-ledger-sweep` skill. As of 2026-08-20, **every currently-reproducing python shape -is `status: "validated"`** (4 shapes, all investigated directly rather than dispatched — the -corpus evidence was conclusive enough on first read that a Gemini dispatch wasn't needed for any -of them). +`tri-comparison-ledger-sweep` skill. As of 2026-08-21, **every currently-reproducing python shape +is `status: "validated"`, and GitGalaxy has zero remaining function-recall gaps on this corpus** +(4 shapes, all investigated directly rather than dispatched — the corpus evidence was conclusive +enough on first read that a Gemini dispatch wasn't needed for any of them). **Summary:** 4 shapes investigated, covering ~172 raw occurrences at time of investigation. Two confirmed real, fixed engine/tooling defects; two confirmed non-defects (one GitGalaxy correct/ @@ -332,10 +332,25 @@ routed under the `python` extension set) and `numpy/crackfortran.py`. `cython/MemoryView.pyx` (52) and `.pxd` (16) were a complete recall gap, ctags-corroborated, 0 found by GitGalaxy. Fixed with a second `func_start` alternative matching `cdef`/`cpdef` signatures (excluding `cdef class`/`struct`/`enum`/`union`/`extern`/`packed`/`fused`, which are - declarations, not functions). One narrow residual gap remains, documented not fixed: - `get_slice_from_memview`'s return type uses a Cython/Tempita code-generation template + declarations, not functions). + + **Follow-up (2026-08-21) — the one function this first fix still missed is now closed too.** + `get_slice_from_memview`'s return type uses a Cython Tempita code-generation template placeholder (`cdef {{memviewslice_name}} *get_slice_from_memview(...)`), not standard Cython - syntax — 1 occurrence, a codegen-template artifact rather than real end-user Cython source. + syntax. Closing it took *two* fixes, not one — the first alone wasn't enough: + 1. Widened `func_start`'s return-type token to also accept a bounded `{{identifier}}` + placeholder form. + 2. That surfaced a **second, independent bug** in the shared `_extract_name` name-normalizer + (`detector.py`, used by every language, not just python): its generic `split("{")` + truncation (meant to cut a C-style body-opening brace off the raw match) mistook the + placeholder's own `{{`/`}}` for that brace, truncating the match down to the bogus name + `"cdef"` instead of the real name. This was invisible from the isolated regex alone — it only + showed up when checked against the real scan pipeline's actual DB output (the DB was recording + a phantom function literally named `cdef` at that line), the same "fix one layer, re-verify + against real output before trusting it" discipline this skill's own abap pass established. + + GitGalaxy now finds all 84 real functions in this file — **100% recall vs. ctags, no residual + gap.** `python/function/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]` no longer reproduces. **Where the comparison tooling itself had a bug (not GitGalaxy, not ctags):** - **[#2000](https://github.com/squid-protocol/gitgalaxy/issues/2000) — `tri_comparison_gatherer.py`'s diff --git a/docs/self_scan/tri_comparison_chart.svg b/docs/self_scan/tri_comparison_chart.svg index 52e287df0..1778511da 100644 --- a/docs/self_scan/tri_comparison_chart.svg +++ b/docs/self_scan/tri_comparison_chart.svg @@ -766,20 +766,18 @@ python -3724 +3725 3625 3725 -3724/3724 +3725/3725 3625/3625 3725/3725 - -C 473 @@ -1096,8 +1094,8 @@ tree-sitter best: 1 (3%) C -ctags best: 1 (3%) +ctags best: 0 (0%) -Ties: 17 (57%) +Ties: 18 (60%) Ranked-panel labels are matched/total; found-count panels are a single raw count, no denominator. Regenerate: tri_comparison_chart.py --all --write \ No newline at end of file diff --git a/docs/self_scan/tri_comparison_ledger.json b/docs/self_scan/tri_comparison_ledger.json index 4fb30b0a5..4ab4f455b 100644 --- a/docs/self_scan/tri_comparison_ledger.json +++ b/docs/self_scan/tri_comparison_ledger.json @@ -13,7 +13,7 @@ "investigated_at": "2026-08-20T00:00:00Z", "investigated_by": "Claude (Sonnet 5), direct investigation via tri-comparison-ledger-sweep", "language": "agc_assembly", - "last_reconciled_at": "2026-08-21T03:35:31Z", + "last_reconciled_at": "2026-08-21T11:59:36Z", "last_seen_count": 215, "last_seen_examples": [ { @@ -118,7 +118,7 @@ "investigated_at": "2026-08-20T00:00:00Z", "investigated_by": "Claude (Sonnet 5), direct investigation via tri-comparison-ledger-sweep", "language": "agc_assembly", - "last_reconciled_at": "2026-08-21T03:35:31Z", + "last_reconciled_at": "2026-08-21T11:59:36Z", "last_seen_count": 37, "last_seen_examples": [ { @@ -221,7 +221,7 @@ "investigated_at": "2026-08-20T22:17:39Z", "investigated_by": "Claude Sonnet 5, dispatched via tri-comparison-ledger-sweep (direct investigation, no Gemini dispatch needed -- root cause was immediately clear from source)", "language": "apex", - "last_reconciled_at": "2026-08-21T03:35:32Z", + "last_reconciled_at": "2026-08-21T11:59:37Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -260,7 +260,7 @@ "investigated_at": "2026-08-20T00:00:00Z", "investigated_by": "Claude (Sonnet 5), direct investigation via tri-comparison-ledger-sweep", "language": "assembly", - "last_reconciled_at": "2026-08-21T03:35:34Z", + "last_reconciled_at": "2026-08-21T11:59:39Z", "last_seen_count": 26, "last_seen_examples": [ { @@ -363,7 +363,7 @@ "investigated_at": "2026-08-20T00:00:00Z", "investigated_by": "Claude (Sonnet 5), direct investigation via tri-comparison-ledger-sweep", "language": "assembly", - "last_reconciled_at": "2026-08-21T03:35:34Z", + "last_reconciled_at": "2026-08-21T11:59:39Z", "last_seen_count": 7, "last_seen_examples": [ { @@ -443,7 +443,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (resolved + fixed directly, no dispatch needed)", "language": "c", - "last_reconciled_at": "2026-08-21T03:35:39Z", + "last_reconciled_at": "2026-08-21T11:59:44Z", "last_seen_count": 23, "last_seen_examples": [ { @@ -557,7 +557,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Gemini (dispatched via tri-comparison-ledger-sweep), confirmed by Claude Sonnet 5", "language": "c", - "last_reconciled_at": "2026-08-21T03:35:39Z", + "last_reconciled_at": "2026-08-21T11:59:44Z", "last_seen_count": 9, "last_seen_examples": [ { @@ -662,7 +662,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Gemini (dispatched via tri-comparison-ledger-sweep), confirmed by Claude Sonnet 5", "language": "c", - "last_reconciled_at": "2026-08-21T03:35:39Z", + "last_reconciled_at": "2026-08-21T11:59:44Z", "last_seen_count": 525, "last_seen_examples": [ { @@ -776,7 +776,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (resolved directly, no dispatch needed) -- corrected after cross-referencing #1837", "language": "c", - "last_reconciled_at": "2026-08-21T03:35:39Z", + "last_reconciled_at": "2026-08-21T11:59:44Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -809,7 +809,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (resolved + fixed directly, no dispatch needed)", "language": "c", - "last_reconciled_at": "2026-08-21T03:35:39Z", + "last_reconciled_at": "2026-08-21T11:59:44Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -842,7 +842,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Gemini (dispatched via tri-comparison-ledger-sweep), confirmed by Claude Sonnet 5", "language": "c", - "last_reconciled_at": "2026-08-21T03:35:39Z", + "last_reconciled_at": "2026-08-21T11:59:44Z", "last_seen_count": 13, "last_seen_examples": [ { @@ -959,7 +959,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (resolved directly, no dispatch needed)", "language": "c", - "last_reconciled_at": "2026-08-21T03:35:39Z", + "last_reconciled_at": "2026-08-21T11:59:44Z", "last_seen_count": 3, "last_seen_examples": [ { @@ -1010,7 +1010,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (resolved + fixed directly, no dispatch needed)", "language": "c", - "last_reconciled_at": "2026-08-21T03:35:39Z", + "last_reconciled_at": "2026-08-21T11:59:44Z", "last_seen_count": 7, "last_seen_examples": [ { @@ -1097,7 +1097,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Gemini (dispatched via tri-comparison-ledger-sweep), confirmed by Claude Sonnet 5", "language": "c", - "last_reconciled_at": "2026-08-21T03:35:39Z", + "last_reconciled_at": "2026-08-21T11:59:44Z", "last_seen_count": 3, "last_seen_examples": [ { @@ -1150,7 +1150,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (resolved directly, no dispatch needed)", "language": "c", - "last_reconciled_at": "2026-08-21T03:35:39Z", + "last_reconciled_at": "2026-08-21T11:59:44Z", "last_seen_count": 4, "last_seen_examples": [ { @@ -1210,7 +1210,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Gemini (dispatched via tri-comparison-ledger-sweep), confirmed by Claude Sonnet 5", "language": "c", - "last_reconciled_at": "2026-08-21T03:35:39Z", + "last_reconciled_at": "2026-08-21T11:59:44Z", "last_seen_count": 74, "last_seen_examples": [ { @@ -1325,7 +1325,7 @@ "investigated_at": "2026-08-19", "investigated_by": "gemini-3.1-pro-high (agy), dispatched via tri-comparison-ledger-sweep, self-corrected and reviewed by claude-sonnet-5", "language": "cobol", - "last_reconciled_at": "2026-08-21T03:35:44Z", + "last_reconciled_at": "2026-08-21T11:59:49Z", "last_seen_count": 19, "last_seen_examples": [ { @@ -1428,7 +1428,7 @@ "investigated_at": "2026-08-19", "investigated_by": "gemini-3.1-pro-high (agy), dispatched via tri-comparison-ledger-sweep, reviewed by claude-sonnet-5", "language": "cobol", - "last_reconciled_at": "2026-08-21T03:35:44Z", + "last_reconciled_at": "2026-08-21T11:59:49Z", "last_seen_count": 136, "last_seen_examples": [ { @@ -1531,7 +1531,7 @@ "investigated_at": "2026-08-19", "investigated_by": "gemini-3.1-pro-high (agy), dispatched via tri-comparison-ledger-sweep, reviewed by claude-sonnet-5", "language": "cobol", - "last_reconciled_at": "2026-08-21T03:35:44Z", + "last_reconciled_at": "2026-08-21T11:59:49Z", "last_seen_count": 43, "last_seen_examples": [ { @@ -1635,7 +1635,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -1677,7 +1677,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 95, "last_seen_examples": [ { @@ -1791,7 +1791,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 22, "last_seen_examples": [ { @@ -1905,7 +1905,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 13, "last_seen_examples": [ { @@ -2019,7 +2019,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 15, "last_seen_examples": [ { @@ -2133,7 +2133,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -2165,7 +2165,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -2198,7 +2198,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 8, "last_seen_examples": [ { @@ -2294,7 +2294,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -2327,7 +2327,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 1074, "last_seen_examples": [ { @@ -2441,7 +2441,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 1097, "last_seen_examples": [ { @@ -2555,7 +2555,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 62, "last_seen_examples": [ { @@ -2669,7 +2669,7 @@ "investigated_at": null, "investigated_by": null, "language": "cpp", - "last_reconciled_at": "2026-08-21T03:35:49Z", + "last_reconciled_at": "2026-08-21T11:59:54Z", "last_seen_count": 98, "last_seen_examples": [ { @@ -2783,7 +2783,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 3, "last_seen_examples": [ { @@ -2834,7 +2834,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 5, "last_seen_examples": [ { @@ -2903,7 +2903,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 6, "last_seen_examples": [ { @@ -2981,7 +2981,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -3014,7 +3014,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 7, "last_seen_examples": [ { @@ -3101,7 +3101,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 4, "last_seen_examples": [ { @@ -3160,7 +3160,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -3193,7 +3193,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 271, "last_seen_examples": [ { @@ -3307,7 +3307,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 4, "last_seen_examples": [ { @@ -3367,7 +3367,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -3400,7 +3400,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 107, "last_seen_examples": [ { @@ -3514,7 +3514,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 48, "last_seen_examples": [ { @@ -3628,7 +3628,7 @@ "investigated_at": null, "investigated_by": null, "language": "csharp", - "last_reconciled_at": "2026-08-21T03:35:55Z", + "last_reconciled_at": "2026-08-21T12:00:00Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -3661,7 +3661,7 @@ "investigated_at": null, "investigated_by": null, "language": "css", - "last_reconciled_at": "2026-08-21T03:35:56Z", + "last_reconciled_at": "2026-08-21T12:00:02Z", "last_seen_count": 3, "last_seen_examples": [ { @@ -3710,7 +3710,7 @@ "investigated_at": null, "investigated_by": null, "language": "dart", - "last_reconciled_at": "2026-08-21T03:36:01Z", + "last_reconciled_at": "2026-08-21T12:00:06Z", "last_seen_count": 216, "last_seen_examples": [ { @@ -3813,7 +3813,7 @@ "investigated_at": null, "investigated_by": null, "language": "dart", - "last_reconciled_at": "2026-08-21T03:36:01Z", + "last_reconciled_at": "2026-08-21T12:00:06Z", "last_seen_count": 37, "last_seen_examples": [ { @@ -3916,7 +3916,7 @@ "investigated_at": null, "investigated_by": null, "language": "dart", - "last_reconciled_at": "2026-08-21T03:36:01Z", + "last_reconciled_at": "2026-08-21T12:00:06Z", "last_seen_count": 18, "last_seen_examples": [ { @@ -4020,7 +4020,7 @@ "investigated_at": null, "investigated_by": null, "language": "fortran", - "last_reconciled_at": "2026-08-21T03:36:06Z", + "last_reconciled_at": "2026-08-21T12:00:13Z", "last_seen_count": 8, "last_seen_examples": [ { @@ -4115,7 +4115,7 @@ "investigated_at": "2026-08-21T00:00:00Z", "investigated_by": "Claude Sonnet 5, direct investigation (surfaced while re-blessing the tri-comparison chart after #1973/#1985)", "language": "fortran", - "last_reconciled_at": "2026-08-21T03:36:06Z", + "last_reconciled_at": "2026-08-21T12:00:13Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -4147,7 +4147,7 @@ "investigated_at": null, "investigated_by": null, "language": "fortran", - "last_reconciled_at": "2026-08-21T03:36:06Z", + "last_reconciled_at": "2026-08-21T12:00:13Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -4180,7 +4180,7 @@ "investigated_at": null, "investigated_by": null, "language": "fortran", - "last_reconciled_at": "2026-08-21T03:36:06Z", + "last_reconciled_at": "2026-08-21T12:00:13Z", "last_seen_count": 14, "last_seen_examples": [ { @@ -4294,7 +4294,7 @@ "investigated_at": null, "investigated_by": null, "language": "fortran", - "last_reconciled_at": "2026-08-21T03:36:06Z", + "last_reconciled_at": "2026-08-21T12:00:13Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -4336,7 +4336,7 @@ "investigated_at": null, "investigated_by": null, "language": "fortran", - "last_reconciled_at": "2026-08-21T03:36:06Z", + "last_reconciled_at": "2026-08-21T12:00:13Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -4378,7 +4378,7 @@ "investigated_at": null, "investigated_by": null, "language": "go", - "last_reconciled_at": "2026-08-21T03:36:09Z", + "last_reconciled_at": "2026-08-21T12:00:15Z", "last_seen_count": 75, "last_seen_examples": [ { @@ -4492,7 +4492,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (session investigation)", "language": "haskell", - "last_reconciled_at": "2026-08-21T03:36:12Z", + "last_reconciled_at": "2026-08-21T12:00:18Z", "last_seen_count": 16, "last_seen_examples": [ { @@ -4604,7 +4604,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (session investigation)", "language": "haskell", - "last_reconciled_at": "2026-08-21T03:36:12Z", + "last_reconciled_at": "2026-08-21T12:00:18Z", "last_seen_count": 9, "last_seen_examples": [ { @@ -4709,7 +4709,7 @@ "investigated_at": null, "investigated_by": null, "language": "haskell", - "last_reconciled_at": "2026-08-21T03:36:12Z", + "last_reconciled_at": "2026-08-21T12:00:18Z", "last_seen_count": 38, "last_seen_examples": [ { @@ -4823,7 +4823,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (dispatched agent investigation)", "language": "haskell", - "last_reconciled_at": "2026-08-21T03:36:12Z", + "last_reconciled_at": "2026-08-21T12:00:18Z", "last_seen_count": 103, "last_seen_examples": [ { @@ -4937,7 +4937,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (dispatched agent investigation)", "language": "haskell", - "last_reconciled_at": "2026-08-21T03:36:12Z", + "last_reconciled_at": "2026-08-21T12:00:18Z", "last_seen_count": 69, "last_seen_examples": [ { @@ -5051,7 +5051,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (session investigation)", "language": "haskell", - "last_reconciled_at": "2026-08-21T03:36:12Z", + "last_reconciled_at": "2026-08-21T12:00:18Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -5092,7 +5092,7 @@ "investigated_at": null, "investigated_by": null, "language": "haskell", - "last_reconciled_at": "2026-08-21T03:36:12Z", + "last_reconciled_at": "2026-08-21T12:00:18Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -5132,7 +5132,7 @@ "investigated_at": null, "investigated_by": null, "language": "haskell", - "last_reconciled_at": "2026-08-21T03:36:12Z", + "last_reconciled_at": "2026-08-21T12:00:18Z", "last_seen_count": 91, "last_seen_examples": [ { @@ -5246,7 +5246,7 @@ "investigated_at": null, "investigated_by": null, "language": "java", - "last_reconciled_at": "2026-08-21T03:36:15Z", + "last_reconciled_at": "2026-08-21T12:00:21Z", "last_seen_count": 28, "last_seen_examples": [ { @@ -5360,7 +5360,7 @@ "investigated_at": null, "investigated_by": null, "language": "java", - "last_reconciled_at": "2026-08-21T03:36:15Z", + "last_reconciled_at": "2026-08-21T12:00:21Z", "last_seen_count": 12, "last_seen_examples": [ { @@ -5474,7 +5474,7 @@ "investigated_at": null, "investigated_by": null, "language": "java", - "last_reconciled_at": "2026-08-21T03:36:15Z", + "last_reconciled_at": "2026-08-21T12:00:21Z", "last_seen_count": 28, "last_seen_examples": [ { @@ -5587,7 +5587,7 @@ "investigated_at": null, "investigated_by": null, "language": "java", - "last_reconciled_at": "2026-08-21T03:36:15Z", + "last_reconciled_at": "2026-08-21T12:00:21Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -5620,7 +5620,7 @@ "investigated_at": null, "investigated_by": null, "language": "java", - "last_reconciled_at": "2026-08-21T03:36:15Z", + "last_reconciled_at": "2026-08-21T12:00:21Z", "last_seen_count": 3, "last_seen_examples": [ { @@ -5671,7 +5671,7 @@ "investigated_at": null, "investigated_by": null, "language": "java", - "last_reconciled_at": "2026-08-21T03:36:15Z", + "last_reconciled_at": "2026-08-21T12:00:21Z", "last_seen_count": 315, "last_seen_examples": [ { @@ -5785,7 +5785,7 @@ "investigated_at": null, "investigated_by": null, "language": "java", - "last_reconciled_at": "2026-08-21T03:36:15Z", + "last_reconciled_at": "2026-08-21T12:00:21Z", "last_seen_count": 3, "last_seen_examples": [ { @@ -5836,7 +5836,7 @@ "investigated_at": null, "investigated_by": null, "language": "javascript", - "last_reconciled_at": "2026-08-21T03:36:17Z", + "last_reconciled_at": "2026-08-21T12:00:24Z", "last_seen_count": 96, "last_seen_examples": [ { @@ -5950,7 +5950,7 @@ "investigated_at": null, "investigated_by": null, "language": "javascript", - "last_reconciled_at": "2026-08-21T03:36:17Z", + "last_reconciled_at": "2026-08-21T12:00:24Z", "last_seen_count": 7, "last_seen_examples": [ { @@ -6037,7 +6037,7 @@ "investigated_at": null, "investigated_by": null, "language": "javascript", - "last_reconciled_at": "2026-08-21T03:36:17Z", + "last_reconciled_at": "2026-08-21T12:00:24Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -6079,7 +6079,7 @@ "investigated_at": null, "investigated_by": null, "language": "javascript", - "last_reconciled_at": "2026-08-21T03:36:17Z", + "last_reconciled_at": "2026-08-21T12:00:24Z", "last_seen_count": 11, "last_seen_examples": [ { @@ -6193,7 +6193,7 @@ "investigated_at": null, "investigated_by": null, "language": "javascript", - "last_reconciled_at": "2026-08-21T03:36:17Z", + "last_reconciled_at": "2026-08-21T12:00:24Z", "last_seen_count": 150, "last_seen_examples": [ { @@ -6307,7 +6307,7 @@ "investigated_at": null, "investigated_by": null, "language": "javascript", - "last_reconciled_at": "2026-08-21T03:36:17Z", + "last_reconciled_at": "2026-08-21T12:00:24Z", "last_seen_count": 266, "last_seen_examples": [ { @@ -6421,7 +6421,7 @@ "investigated_at": null, "investigated_by": null, "language": "javascript", - "last_reconciled_at": "2026-08-21T03:36:17Z", + "last_reconciled_at": "2026-08-21T12:00:24Z", "last_seen_count": 182, "last_seen_examples": [ { @@ -6535,7 +6535,7 @@ "investigated_at": null, "investigated_by": null, "language": "javascript", - "last_reconciled_at": "2026-08-21T03:36:17Z", + "last_reconciled_at": "2026-08-21T12:00:24Z", "last_seen_count": 104, "last_seen_examples": [ { @@ -6649,7 +6649,7 @@ "investigated_at": null, "investigated_by": null, "language": "kotlin", - "last_reconciled_at": "2026-08-21T03:36:20Z", + "last_reconciled_at": "2026-08-21T12:00:27Z", "last_seen_count": 3, "last_seen_examples": [ { @@ -6700,7 +6700,7 @@ "investigated_at": null, "investigated_by": null, "language": "kotlin", - "last_reconciled_at": "2026-08-21T03:36:20Z", + "last_reconciled_at": "2026-08-21T12:00:27Z", "last_seen_count": 15, "last_seen_examples": [ { @@ -6814,7 +6814,7 @@ "investigated_at": null, "investigated_by": null, "language": "kotlin", - "last_reconciled_at": "2026-08-21T03:36:20Z", + "last_reconciled_at": "2026-08-21T12:00:27Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -6846,7 +6846,7 @@ "investigated_at": "2026-08-20", "investigated_by": "claude-sonnet-5 (direct source read, no dispatch needed)", "language": "m4", - "last_reconciled_at": "2026-08-21T03:36:26Z", + "last_reconciled_at": "2026-08-21T12:00:35Z", "last_seen_count": 4, "last_seen_examples": [ { @@ -6901,7 +6901,7 @@ "investigated_at": "2026-08-20", "investigated_by": "gemini-3.1-pro-high (agy), dispatched via tri-comparison-ledger-sweep, reviewed by claude-sonnet-5", "language": "m4", - "last_reconciled_at": "2026-08-21T03:36:26Z", + "last_reconciled_at": "2026-08-21T12:00:35Z", "last_seen_count": 76, "last_seen_examples": [ { @@ -7004,7 +7004,7 @@ "investigated_at": "2026-08-20", "investigated_by": "claude-sonnet-5 (direct source read, no dispatch needed)", "language": "m4", - "last_reconciled_at": "2026-08-21T03:36:26Z", + "last_reconciled_at": "2026-08-21T12:00:35Z", "last_seen_count": 36, "last_seen_examples": [ { @@ -7108,7 +7108,7 @@ "investigated_at": null, "investigated_by": null, "language": "makefile", - "last_reconciled_at": "2026-08-21T03:36:27Z", + "last_reconciled_at": "2026-08-21T12:00:36Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -7139,7 +7139,7 @@ "investigated_at": null, "investigated_by": null, "language": "matlab", - "last_reconciled_at": "2026-08-21T03:36:29Z", + "last_reconciled_at": "2026-08-21T12:00:38Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -7172,7 +7172,7 @@ "investigated_at": null, "investigated_by": null, "language": "objective-c", - "last_reconciled_at": "2026-08-21T03:36:31Z", + "last_reconciled_at": "2026-08-21T12:00:40Z", "last_seen_count": 91, "last_seen_examples": [ { @@ -7286,7 +7286,7 @@ "investigated_at": null, "investigated_by": null, "language": "objective-c", - "last_reconciled_at": "2026-08-21T03:36:31Z", + "last_reconciled_at": "2026-08-21T12:00:40Z", "last_seen_count": 104, "last_seen_examples": [ { @@ -7400,7 +7400,7 @@ "investigated_at": null, "investigated_by": null, "language": "objective-c", - "last_reconciled_at": "2026-08-21T03:36:31Z", + "last_reconciled_at": "2026-08-21T12:00:40Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -7433,7 +7433,7 @@ "investigated_at": null, "investigated_by": null, "language": "objective-c", - "last_reconciled_at": "2026-08-21T03:36:31Z", + "last_reconciled_at": "2026-08-21T12:00:40Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -7475,7 +7475,7 @@ "investigated_at": null, "investigated_by": null, "language": "perl", - "last_reconciled_at": "2026-08-21T03:36:37Z", + "last_reconciled_at": "2026-08-21T12:00:46Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -7508,7 +7508,7 @@ "investigated_at": null, "investigated_by": null, "language": "perl", - "last_reconciled_at": "2026-08-21T03:36:37Z", + "last_reconciled_at": "2026-08-21T12:00:46Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -7539,7 +7539,7 @@ "investigated_at": null, "investigated_by": null, "language": "perl", - "last_reconciled_at": "2026-08-21T03:36:37Z", + "last_reconciled_at": "2026-08-21T12:00:46Z", "last_seen_count": 64, "last_seen_examples": [ { @@ -7653,7 +7653,7 @@ "investigated_at": null, "investigated_by": null, "language": "perl", - "last_reconciled_at": "2026-08-21T03:36:37Z", + "last_reconciled_at": "2026-08-21T12:00:46Z", "last_seen_count": 7, "last_seen_examples": [ { @@ -7740,7 +7740,7 @@ "investigated_at": null, "investigated_by": null, "language": "perl", - "last_reconciled_at": "2026-08-21T03:36:37Z", + "last_reconciled_at": "2026-08-21T12:00:46Z", "last_seen_count": 7, "last_seen_examples": [ { @@ -7827,7 +7827,7 @@ "investigated_at": null, "investigated_by": null, "language": "perl", - "last_reconciled_at": "2026-08-21T03:36:37Z", + "last_reconciled_at": "2026-08-21T12:00:46Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -7860,7 +7860,7 @@ "investigated_at": null, "investigated_by": null, "language": "perl", - "last_reconciled_at": "2026-08-21T03:36:37Z", + "last_reconciled_at": "2026-08-21T12:00:46Z", "last_seen_count": 122, "last_seen_examples": [ { @@ -7974,7 +7974,7 @@ "investigated_at": null, "investigated_by": null, "language": "php", - "last_reconciled_at": "2026-08-21T03:36:41Z", + "last_reconciled_at": "2026-08-21T12:00:53Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -8007,7 +8007,7 @@ "investigated_at": null, "investigated_by": null, "language": "php", - "last_reconciled_at": "2026-08-21T03:36:41Z", + "last_reconciled_at": "2026-08-21T12:00:53Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -8040,7 +8040,7 @@ "investigated_at": null, "investigated_by": null, "language": "php", - "last_reconciled_at": "2026-08-21T03:36:41Z", + "last_reconciled_at": "2026-08-21T12:00:53Z", "last_seen_count": 68, "last_seen_examples": [ { @@ -8154,7 +8154,7 @@ "investigated_at": null, "investigated_by": null, "language": "powershell", - "last_reconciled_at": "2026-08-21T03:36:44Z", + "last_reconciled_at": "2026-08-21T12:00:57Z", "last_seen_count": 7, "last_seen_examples": [ { @@ -8239,7 +8239,7 @@ "investigated_at": null, "investigated_by": null, "language": "powershell", - "last_reconciled_at": "2026-08-21T03:36:44Z", + "last_reconciled_at": "2026-08-21T12:00:57Z", "last_seen_count": 5, "last_seen_examples": [ { @@ -8308,7 +8308,7 @@ "investigated_at": null, "investigated_by": null, "language": "powershell", - "last_reconciled_at": "2026-08-21T03:36:44Z", + "last_reconciled_at": "2026-08-21T12:00:57Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -8341,7 +8341,7 @@ "investigated_at": null, "investigated_by": null, "language": "powershell", - "last_reconciled_at": "2026-08-21T03:36:44Z", + "last_reconciled_at": "2026-08-21T12:00:57Z", "last_seen_count": 16, "last_seen_examples": [ { @@ -8455,7 +8455,7 @@ "investigated_at": "2026-08-21T03:23:52Z", "investigated_by": "claude sonnet 5, tri-comparison-ledger-sweep (direct investigation, no dispatch needed)", "language": "python", - "last_reconciled_at": "2026-08-21T03:36:53Z", + "last_reconciled_at": "2026-08-21T12:01:08Z", "last_seen_count": 4, "last_seen_examples": [ { @@ -8515,7 +8515,7 @@ "investigated_at": "2026-08-21T03:23:52Z", "investigated_by": "claude sonnet 5, tri-comparison-ledger-sweep (direct investigation, no dispatch needed)", "language": "python", - "last_reconciled_at": "2026-08-21T03:36:53Z", + "last_reconciled_at": "2026-08-21T12:01:08Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -8545,11 +8545,11 @@ "tree_sitter" ], "first_seen_at": "2026-08-18T22:44:45Z", - "investigated_at": "2026-08-21T03:23:52Z", + "investigated_at": "2026-08-21T12:03:03Z", "investigated_by": "claude sonnet 5, tri-comparison-ledger-sweep (direct investigation, no dispatch needed)", "language": "python", - "last_reconciled_at": "2026-08-21T03:36:53Z", - "last_seen_count": 99, + "last_reconciled_at": "2026-08-21T12:01:08Z", + "last_seen_count": 100, "last_seen_examples": [ { "file_path": "cython/MemoryView.pxd", @@ -8646,7 +8646,7 @@ "status": "validated", "still_reproduces": true, "symbol_type": "function", - "verdict": "Already documented as Claim 2 in docs/why_gitgalaxy_beats_ast_here.md: tree-sitter-python has no concept of Cython's cdef class/cdef/cpdef syntax at all and loses track of scope at each cdef class boundary, so it finds 0 functions in cython/MemoryView.pyx and cython/MemoryView.pxd (0/0 vs GitGalaxy+ctags' 71/16). This shape's count grew from 32 to 99 within this same PR: it originally covered only the 32 'def'-based methods inside cdef class blocks (__cinit__, __dealloc__, __getbuffer__, etc.); fixing the sibling agree[ctags]_vs[gitgalaxy,tree_sitter] shape's func_start gap (issue #1999 -- GitGalaxy now also finds cdef/cpdef module-level functions) moved those newly-recognized occurrences into THIS shape too, since they still disagree with tree-sitter for the identical underlying reason. Confirmed via direct gather_language() check: (gg_funcs & ctags_funcs) - ts_funcs covers 16/16 real names in MemoryView.pxd and 71/72 in MemoryView.pyx (the one remaining name, get_slice_from_memview, is the documented Tempita-template residual gap tracked on the sibling shape). No GitGalaxy fix needed for tree-sitter's own recall here -- grammar limitation, not an engine defect." + "verdict": "Already documented as Claim 2 in docs/why_gitgalaxy_beats_ast_here.md: tree-sitter-python has no concept of Cython's cdef class/cdef/cpdef syntax at all and loses track of scope at each cdef class boundary, so it finds 0 functions in cython/MemoryView.pyx and cython/MemoryView.pxd (0/0 vs GitGalaxy+ctags' 72/16, full agreement as of the 2026-08-21 get_slice_from_memview follow-up fix -- see the sibling agree[ctags]_vs[gitgalaxy,tree_sitter] shape's verdict for that fix's details). This shape's count grew from 32 to 99 to 100 across this PR's two fixes: it originally covered only the 32 'def'-based methods inside cdef class blocks; each cdef/cpdef func_start fix moved newly-recognized occurrences into THIS shape too, since they still disagree with tree-sitter for the identical underlying reason. GitGalaxy now has zero recall gaps on this corpus for Cython functions -- the only remaining disagreement with tree-sitter is tree-sitter's own structural blindness to the Cython dialect, not a GitGalaxy defect. No GitGalaxy fix needed for tree-sitter's own recall here -- grammar limitation, not an engine defect." }, "python/function/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]": { "agreeing_tools": [ @@ -8661,10 +8661,10 @@ "tree_sitter" ], "first_seen_at": "2026-08-18T22:44:45Z", - "investigated_at": "2026-08-21T03:23:52Z", + "investigated_at": "2026-08-21T12:03:03Z", "investigated_by": "claude sonnet 5, tri-comparison-ledger-sweep (direct investigation, no dispatch needed)", "language": "python", - "last_reconciled_at": "2026-08-21T03:36:53Z", + "last_reconciled_at": "2026-08-21T12:01:08Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -8679,9 +8679,9 @@ ], "metric": "existence", "status": "validated", - "still_reproduces": true, + "still_reproduces": false, "symbol_type": "function", - "verdict": "Confirmed real GitGalaxy engine defect, fixed in the same pass (issue #1999). ctags alone correctly found real Cython cdef/cpdef module-level function definitions in cython/MemoryView.pyx (52) and cython/MemoryView.pxd (16) -- 68/68 occurrences, confirmed via a direct gather_language() name-diff across the whole corpus, not just the ledger's capped 10-example sample. GitGalaxy's func_start regex only recognized the literal 'def' keyword, so every cdef/cpdef-prefixed function (no 'def' at all) was invisible. tree-sitter-python structurally can't recognize cdef-prefixed functions either (no grammar concept of Cython dialect syntax -- same mechanism as Claim 2 in docs/why_gitgalaxy_beats_ast_here.md). FIXED: language_standards.py's python func_start regex gained a second alternative matching cdef/cpdef signatures (excluding cdef class/struct/enum/union/extern/packed/fused, which are declarations not functions). Verified: new extraction-gauntlet cases in test_python.py (valid/invalid/pathological + ReDoS sweep), crucible_check.py against the full ~80-repo corpus (31 diffs, all scoped to python/cython, both golden masters re-blessed), ruff/mypy audits clean. One residual gap, documented not fixed: get_slice_from_memview's return type is a Cython/Tempita '{{template}}' codegen placeholder, not standard Cython syntax (1 occurrence, narrow scope)." + "verdict": "Confirmed real GitGalaxy engine defect, fixed in the same pass (issue #1999). ctags alone correctly found real Cython cdef/cpdef module-level function definitions in cython/MemoryView.pyx (52) and cython/MemoryView.pxd (16) -- 68/68 occurrences, confirmed via a direct gather_language() name-diff across the whole corpus, not just the ledger's capped 10-example sample. GitGalaxy's func_start regex only recognized the literal 'def' keyword, so every cdef/cpdef-prefixed function (no 'def' at all) was invisible. tree-sitter-python structurally can't recognize cdef-prefixed functions either (no grammar concept of Cython dialect syntax -- same mechanism as Claim 2 in docs/why_gitgalaxy_beats_ast_here.md). FIXED: language_standards.py's python func_start regex gained a second alternative matching cdef/cpdef signatures (excluding cdef class/struct/enum/union/extern/packed/fused, which are declarations not functions). FOLLOW-UP FIX (2026-08-21): the initial fix left one function, get_slice_from_memview, still missing --its return type is a Cython Tempita codegen placeholder (`{{memviewslice_name}}`). Closed in two steps: (1) widened func_start's return-type token to also accept a bounded `{{identifier}}` placeholder form; (2) discovered and fixed a SECOND, separate bug this exposed in the shared `_extract_name` name-normalizer (`detector.py`) -- its generic split('{') truncation step mistook the placeholder's own `{{`/`}}` for a C-style body-opening brace, cutting the match down to the bogus name 'cdef' instead of the real 'get_slice_from_memview'. Both fixes verified against the real scan pipeline (not just the isolated regex) and the full ~80-repo crucible corpus (both golden masters re-blessed twice, diffs each time scoped only to python/cython). GitGalaxy now finds all 84 real functions in this file (100% recall vs. ctags) -- this shape no longer reproduces." }, "ruby/class/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]": { "agreeing_tools": [ @@ -8697,7 +8697,7 @@ "investigated_at": null, "investigated_by": null, "language": "ruby", - "last_reconciled_at": "2026-08-21T03:36:55Z", + "last_reconciled_at": "2026-08-21T12:01:10Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -8739,7 +8739,7 @@ "investigated_at": null, "investigated_by": null, "language": "ruby", - "last_reconciled_at": "2026-08-21T03:36:55Z", + "last_reconciled_at": "2026-08-21T12:01:10Z", "last_seen_count": 6, "last_seen_examples": [ { @@ -8817,7 +8817,7 @@ "investigated_at": null, "investigated_by": null, "language": "ruby", - "last_reconciled_at": "2026-08-21T03:36:55Z", + "last_reconciled_at": "2026-08-21T12:01:10Z", "last_seen_count": 3, "last_seen_examples": [ { @@ -8868,7 +8868,7 @@ "investigated_at": null, "investigated_by": null, "language": "ruby", - "last_reconciled_at": "2026-08-21T03:36:55Z", + "last_reconciled_at": "2026-08-21T12:01:10Z", "last_seen_count": 6, "last_seen_examples": [ { @@ -8945,7 +8945,7 @@ "investigated_at": null, "investigated_by": null, "language": "rust", - "last_reconciled_at": "2026-08-21T03:36:59Z", + "last_reconciled_at": "2026-08-21T12:01:14Z", "last_seen_count": 14, "last_seen_examples": [ { @@ -9059,7 +9059,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (resolved directly via live ctags run, no dispatch)", "language": "rust", - "last_reconciled_at": "2026-08-21T03:36:59Z", + "last_reconciled_at": "2026-08-21T12:01:14Z", "last_seen_count": 3, "last_seen_examples": [ { @@ -9112,7 +9112,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Gemini (dispatched via tri-comparison-ledger-sweep), confirmed by Claude Sonnet 5", "language": "rust", - "last_reconciled_at": "2026-08-21T03:36:59Z", + "last_reconciled_at": "2026-08-21T12:01:14Z", "last_seen_count": 25, "last_seen_examples": [ { @@ -9225,7 +9225,7 @@ "investigated_at": null, "investigated_by": null, "language": "rust", - "last_reconciled_at": "2026-08-21T03:36:59Z", + "last_reconciled_at": "2026-08-21T12:01:14Z", "last_seen_count": 3, "last_seen_examples": [ { @@ -9276,7 +9276,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Gemini (dispatched via tri-comparison-ledger-sweep, 2 rounds with self-correction), confirmed by Claude Sonnet 5", "language": "rust", - "last_reconciled_at": "2026-08-21T03:36:59Z", + "last_reconciled_at": "2026-08-21T12:01:14Z", "last_seen_count": 21, "last_seen_examples": [ { @@ -9388,7 +9388,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Gemini (dispatched via tri-comparison-ledger-sweep), confirmed by Claude Sonnet 5", "language": "rust", - "last_reconciled_at": "2026-08-21T03:36:59Z", + "last_reconciled_at": "2026-08-21T12:01:14Z", "last_seen_count": 21, "last_seen_examples": [ { @@ -9501,7 +9501,7 @@ "investigated_at": null, "investigated_by": null, "language": "rust", - "last_reconciled_at": "2026-08-21T03:36:59Z", + "last_reconciled_at": "2026-08-21T12:01:14Z", "last_seen_count": 83, "last_seen_examples": [ { @@ -9614,7 +9614,7 @@ "investigated_at": null, "investigated_by": null, "language": "rust", - "last_reconciled_at": "2026-08-21T03:36:59Z", + "last_reconciled_at": "2026-08-21T12:01:14Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -9647,7 +9647,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (resolved directly via live ctags run, no dispatch)", "language": "rust", - "last_reconciled_at": "2026-08-21T03:36:59Z", + "last_reconciled_at": "2026-08-21T12:01:14Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -9682,7 +9682,7 @@ "investigated_at": "2026-08-19T00:00:00Z", "investigated_by": "Claude Sonnet 5 (resolved from existing Claim 6 documentation, no dispatch)", "language": "rust", - "last_reconciled_at": "2026-08-21T03:36:59Z", + "last_reconciled_at": "2026-08-21T12:01:14Z", "last_seen_count": 152, "last_seen_examples": [ { @@ -9794,7 +9794,7 @@ "investigated_at": null, "investigated_by": null, "language": "scala", - "last_reconciled_at": "2026-08-21T03:37:01Z", + "last_reconciled_at": "2026-08-21T12:01:17Z", "last_seen_count": 16, "last_seen_examples": [ { @@ -9897,7 +9897,7 @@ "investigated_at": "2026-08-20", "investigated_by": "gemini-3.1-pro-high (agy), dispatched via tri-comparison-ledger-sweep, reviewed and fixed by claude-sonnet-5", "language": "scheme", - "last_reconciled_at": "2026-08-21T03:37:05Z", + "last_reconciled_at": "2026-08-21T12:01:21Z", "last_seen_count": 84, "last_seen_examples": [ { @@ -9999,7 +9999,7 @@ "investigated_at": null, "investigated_by": null, "language": "scheme", - "last_reconciled_at": "2026-08-21T03:37:05Z", + "last_reconciled_at": "2026-08-21T12:01:21Z", "last_seen_count": 50, "last_seen_examples": [ { @@ -10103,7 +10103,7 @@ "investigated_at": null, "investigated_by": null, "language": "shell", - "last_reconciled_at": "2026-08-21T03:37:07Z", + "last_reconciled_at": "2026-08-21T12:01:23Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -10135,7 +10135,7 @@ "investigated_at": null, "investigated_by": null, "language": "solidity", - "last_reconciled_at": "2026-08-21T03:37:08Z", + "last_reconciled_at": "2026-08-21T12:01:24Z", "last_seen_count": 6, "last_seen_examples": [ { @@ -10205,7 +10205,7 @@ "investigated_at": null, "investigated_by": null, "language": "swift", - "last_reconciled_at": "2026-08-21T03:37:10Z", + "last_reconciled_at": "2026-08-21T12:01:26Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -10236,7 +10236,7 @@ "investigated_at": null, "investigated_by": null, "language": "swift", - "last_reconciled_at": "2026-08-21T03:37:10Z", + "last_reconciled_at": "2026-08-21T12:01:26Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -10267,7 +10267,7 @@ "investigated_at": null, "investigated_by": null, "language": "swift", - "last_reconciled_at": "2026-08-21T03:37:10Z", + "last_reconciled_at": "2026-08-21T12:01:26Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -10299,7 +10299,7 @@ "investigated_at": null, "investigated_by": null, "language": "tcl", - "last_reconciled_at": "2026-08-21T03:37:11Z", + "last_reconciled_at": "2026-08-21T12:01:28Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -10332,7 +10332,7 @@ "investigated_at": null, "investigated_by": null, "language": "tcl", - "last_reconciled_at": "2026-08-21T03:37:11Z", + "last_reconciled_at": "2026-08-21T12:01:28Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -10374,7 +10374,7 @@ "investigated_at": null, "investigated_by": null, "language": "tcl", - "last_reconciled_at": "2026-08-21T03:37:11Z", + "last_reconciled_at": "2026-08-21T12:01:28Z", "last_seen_count": 4, "last_seen_examples": [ { @@ -10434,7 +10434,7 @@ "investigated_at": null, "investigated_by": null, "language": "tcl", - "last_reconciled_at": "2026-08-21T03:37:11Z", + "last_reconciled_at": "2026-08-21T12:01:28Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -10466,7 +10466,7 @@ "investigated_at": null, "investigated_by": null, "language": "tcl", - "last_reconciled_at": "2026-08-21T03:37:11Z", + "last_reconciled_at": "2026-08-21T12:01:28Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -10508,7 +10508,7 @@ "investigated_at": null, "investigated_by": null, "language": "typescript", - "last_reconciled_at": "2026-08-21T03:37:32Z", + "last_reconciled_at": "2026-08-21T12:01:49Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -10550,7 +10550,7 @@ "investigated_at": null, "investigated_by": null, "language": "typescript", - "last_reconciled_at": "2026-08-21T03:37:32Z", + "last_reconciled_at": "2026-08-21T12:01:49Z", "last_seen_count": 501, "last_seen_examples": [ { @@ -10662,7 +10662,7 @@ "investigated_at": null, "investigated_by": null, "language": "typescript", - "last_reconciled_at": "2026-08-21T03:37:32Z", + "last_reconciled_at": "2026-08-21T12:01:49Z", "last_seen_count": 4, "last_seen_examples": [ { @@ -10721,7 +10721,7 @@ "investigated_at": null, "investigated_by": null, "language": "typescript", - "last_reconciled_at": "2026-08-21T03:37:32Z", + "last_reconciled_at": "2026-08-21T12:01:49Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -10754,7 +10754,7 @@ "investigated_at": null, "investigated_by": null, "language": "typescript", - "last_reconciled_at": "2026-08-21T03:37:32Z", + "last_reconciled_at": "2026-08-21T12:01:49Z", "last_seen_count": 9, "last_seen_examples": [ { @@ -10859,7 +10859,7 @@ "investigated_at": null, "investigated_by": null, "language": "typescript", - "last_reconciled_at": "2026-08-21T03:37:32Z", + "last_reconciled_at": "2026-08-21T12:01:49Z", "last_seen_count": 61, "last_seen_examples": [ { @@ -10973,7 +10973,7 @@ "investigated_at": null, "investigated_by": null, "language": "typescript", - "last_reconciled_at": "2026-08-21T03:37:32Z", + "last_reconciled_at": "2026-08-21T12:01:49Z", "last_seen_count": 1907, "last_seen_examples": [ { @@ -11087,7 +11087,7 @@ "investigated_at": null, "investigated_by": null, "language": "typescript", - "last_reconciled_at": "2026-08-21T03:37:32Z", + "last_reconciled_at": "2026-08-21T12:01:49Z", "last_seen_count": 2, "last_seen_examples": [ { @@ -11129,7 +11129,7 @@ "investigated_at": null, "investigated_by": null, "language": "typescript", - "last_reconciled_at": "2026-08-21T03:37:32Z", + "last_reconciled_at": "2026-08-21T12:01:49Z", "last_seen_count": 174, "last_seen_examples": [ { @@ -11242,7 +11242,7 @@ "investigated_at": null, "investigated_by": null, "language": "zig", - "last_reconciled_at": "2026-08-21T03:37:40Z", + "last_reconciled_at": "2026-08-21T12:01:58Z", "last_seen_count": 1, "last_seen_examples": [ { @@ -11273,7 +11273,7 @@ "investigated_at": null, "investigated_by": null, "language": "zig", - "last_reconciled_at": "2026-08-21T03:37:40Z", + "last_reconciled_at": "2026-08-21T12:01:58Z", "last_seen_count": 10, "last_seen_examples": [ { @@ -11376,7 +11376,7 @@ "investigated_at": null, "investigated_by": null, "language": "zig", - "last_reconciled_at": "2026-08-21T03:37:40Z", + "last_reconciled_at": "2026-08-21T12:01:58Z", "last_seen_count": 1, "last_seen_examples": [ { diff --git a/docs/self_scan/tri_comparison_points_of_interest.md b/docs/self_scan/tri_comparison_points_of_interest.md index 6d0773c83..1cd143c7f 100644 --- a/docs/self_scan/tri_comparison_points_of_interest.md +++ b/docs/self_scan/tri_comparison_points_of_interest.md @@ -8,7 +8,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `agc_assembly` function existence: ctags agree, GitGalaxy differ -*2-vs-1 -- 215 occurrences as of 2026-08-21T03:35:31Z* +*2-vs-1 -- 215 occurrences as of 2026-08-21T11:59:36Z* **Verdict** (by Claude (Sonnet 5), direct investigation via tri-comparison-ledger-sweep, 2026-08-20T00:00:00Z): > Mixed-cause shape, fully accounted for via a corpus-wide cross-reference of ctags' actual output against GitGalaxy's raw func_start regex matches and its real pipeline/DB output (215 + 50 = 265, no unexplained residual). (1) 215/265 (81%): ctags' Asm "l" kind tags EVERY line-start label unconditionally, including pure data/constant-definition labels (e.g. ERASCON1 OCTAL 00061, S10BITS, LSTBNKCH -- AGC_BLOCK_TWO_SELF-CHECK.agc:133 and nearby) that are never followed by an executable instruction. GitGalaxy's func_start regex deliberately requires the label be followed by a real instruction mnemonic from a fixed whitelist, so it does not count these as functions -- a genuine, intentional precision distinction (code label vs. data label), not a GitGalaxy defect; ctags' generic Asm parser has no way to make this distinction at all. (2) 50/265 (19%): a real, confirmed GitGalaxy engine defect in detector.py's _slice_by_labels (Mode A), independently root-caused to two separate bugs: (a) `RELINT` is incorrectly included in `self.assembly_returns`'s early-termination keyword list (detector.py:572-575) -- in real AGC assembly RELINT means "release interrupt inhibit" and commonly opens a long interrupt-handler routine rather than closing one, so it truncates the real body to one line (confirmed: ELOOPFIN, AGC_BLOCK_TWO_SELF-CHECK.agc:303, a 20+-line real routine collapsed to just its own label line); (b) the `len(block.splitlines()) < 2` guard (detector.py:1973) unconditionally discards legitimate single-instruction assembly subroutines when the next func_start match sits on the very next line (confirmed: SOPTION1-SOPTION5+, AGC_BLOCK_TWO_SELF-CHECK.agc:210-214, each a real one-instruction label). Filed as #1949 -- a follow-up read-only Gemini/agy dispatch confirmed both root causes generalize beyond agc_assembly to the shared Mode A mechanism (assembly, cobol, fortran, abap all independently exhibit bug 1; assembly and cobol also exhibit bug 2), plus two further bug-1 variants not visible from agc_assembly alone: the terminator regex also false-matches inside comments (assembly) and inside hyphenated identifier names (cobol), not just legitimate-but-misclassified instructions. See #1949 for the full cross-language evidence and fix scope. No credit/debit -- the 215 portion is an honest scope difference (not two tools independently wrong about the same fact), and the 50 portion is GitGalaxy's own unresolved bug, not something ctags corroborates or contradicts. @@ -28,7 +28,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `agc_assembly` function existence: GitGalaxy agree, ctags differ -*2-vs-1 -- 37 occurrences as of 2026-08-21T03:35:31Z* +*2-vs-1 -- 37 occurrences as of 2026-08-21T11:59:36Z* **Verdict** (by Claude (Sonnet 5), direct investigation via tri-comparison-ledger-sweep, 2026-08-20T00:00:00Z): > Confirmed: all 35 occurrences are real AGC labels that GitGalaxy correctly extracts and Universal Ctags' generic Asm parser structurally cannot tag, due to AGC assembly's non-standard label-naming conventions. Two sub-patterns, both confirmed corpus-wide (14/35 + 21/35 = 35/35, not just the sample): (1) labels with an embedded hyphen -- AGC's own convention of naming a point relative to an event, e.g. TIG-35/TIG-30/CALLT-35 in BURN_BABY_BURN--MASTER_IGNITION_ROUTINE.agc:250/292/222 ("35/30 seconds before Time of Ignition"); (2) labels starting with a digit or a leading minus sign, e.g. 1CHK/2EBANK/-1CHK in AGC_BLOCK_TWO_SELF-CHECK.agc:184 (real label text is "-1CHK"). Directly verified via `ctags --language-force=Asm --kinds-Asm=l` against the real corpus files: ctags emits zero tags for any of these names (confirmed by grepping its actual output for the exact names and their surrounding CHK-suffixed siblings, which ARE tagged when they don't start with a hyphen/digit) -- ctags' Asm parser requires a tag name to start with a letter and contain no hyphen, neither of which is a real constraint in AGC assembly's own label syntax. GitGalaxy's func_start regex ([A-Z0-9_-]+ at line start) has no such restriction. This is a confirmed, structural ctags/Asm-parser limitation, not corroboration of anything wrong on GitGalaxy's side -- logged to docs/why_gitgalaxy_beats_ast_here.md. @@ -50,7 +50,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `assembly` function existence: ctags agree, GitGalaxy differ -*2-vs-1 -- 26 occurrences as of 2026-08-21T03:35:34Z* +*2-vs-1 -- 26 occurrences as of 2026-08-21T11:59:39Z* **Verdict** (by Claude (Sonnet 5), direct investigation via tri-comparison-ledger-sweep, 2026-08-20T00:00:00Z): > Mixed shape, no clean credit/debit call. (1) A real, confirmed GitGalaxy defect: the same detector.py `_slice_by_labels` bug filed for agc_assembly as #1949 (RELINT-style early truncation and single-line/blank-collapsed body discard) independently confirmed live for generic assembly too -- `del_command:` (bootos/os.asm:269) sits immediately before the next label `os22:` with nothing between, collapsing to a one-line block and getting discarded; `C:`/`prtstr:` (hellosilicon/matrixmultneon.s:90,92) are each followed only by a data directive (`.fill`, `.asciz`) then a blank line before the next label, same one-line-after-strip() collapse. All three are real regex matches (confirmed via direct func_start.finditer against the raw text) that never reach the final function list -- tracked under #1949, not a new issue. (2) A correct-by-design GitGalaxy exclusion: `.Lenv0:`/`.Largv0:` (cosmopolitan/ape.S:1784-1785) start with the `.L` prefix func_start's own negative lookahead deliberately excludes (GCC's own convention for compiler-generated local/temporary labels) -- both are genuinely data labels (`.asciz` string constants) here, not real subroutines; ctags' generic Asm parser has no such convention-awareness and tags them anyway. (3) ctags itself over-tags some non-callable constructs GitGalaxy correctly excludes -- C-preprocessor `#define` macro constants (`GRUB_MAGIC`/`GRUB_EAX`/`GRUB_AOUT`/`GRUB_CHECKSUM`/`USE_SYMBOL_HACK`, cosmopolitan/ape.S:49,1679-1682) are not real assembly labels at all (no trailing `:`), but ctags' Asm parser tags them regardless. No credit/debit -- the shape mixes a real unresolved GitGalaxy recall gap (#1949) with cases where ctags is the one over-tagging, not a clean corroboration story either direction. @@ -70,7 +70,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `assembly` function existence: GitGalaxy agree, ctags differ -*2-vs-1 -- 7 occurrences as of 2026-08-21T03:35:34Z* +*2-vs-1 -- 7 occurrences as of 2026-08-21T11:59:39Z* **Verdict** (by Claude (Sonnet 5), direct investigation via tri-comparison-ledger-sweep, 2026-08-20T00:00:00Z): > Mixed shape, three distinct confirmed mechanisms, no clean credit/debit call (real wins and real gaps in both directions within the same shape). (1) A dot-prefix naming-convention split -- NASM/GAS local labels scoped to the preceding global label are written with a leading `.` (e.g. `.load_vec:`, `.loop:` in bootos/os.asm:197,306), which GitGalaxy's func_start regex captures verbatim but ctags' Asm parser strips before emitting the tag (confirmed: ctags reports the SAME real label as `load_vec`/`loop`, no dot -- both tools genuinely found the same real construct, they just serialize the name differently). This is a name-string artifact of exact-string ledger grouping, not a detection difference on either side. (2) A genuine ctags gap: purely numeric local labels (`.1:`, `.2:` in bootos/counter.asm:52,67) are not tagged by ctags' Asm parser under ANY name (confirmed: neither `1`/`2` nor `.1`/`.2` appear in its output at all) -- GitGalaxy correctly finds these. (3) A genuine GitGalaxy precision gap, the mirror image of agc_assembly's own win: unlike agc_assembly's func_start (which requires a label be followed by a real instruction opcode), generic assembly's func_start has no such requirement -- ANY `identifier:` at line start matches, so it also matches pure data/constant declaration labels ctags' comparatively more conservative reading skips: `max_entries: equ sector_size/entry_size` (bootos/os.asm:166, a compile-time constant, not a subroutine), and several string/metadata labels in cosmopolitan/ape.S followed only by `.asciz`/data directives (`ape.ident`, `freebsd.ident`, `netbsd.ident`, `openbsd.ident`, `str.error`, `str.crlf`, `str.e820`, `str.oldcpu`). Not filed as a bug -- generic assembly's func_start is intentionally permissive because it has to span wildly different, informally-specified dialects (x86/ARM/legacy real-mode) where a fixed per-opcode whitelist like agc_assembly's isn't practical; worth a future harden-language-extraction look at whether a narrower heuristic (e.g. excluding labels followed only by known data-directive pseudo-ops like .asciz/.long/.byte/equ) could recover some of this precision without losing real dialect coverage, but that's a design tradeoff, not a clear regression to fix urgently. @@ -89,7 +89,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `c` function existence: tree-sitter agree, GitGalaxy, ctags differ -*2-vs-1 -- 74 occurrences as of 2026-08-21T03:35:39Z* +*2-vs-1 -- 74 occurrences as of 2026-08-21T11:59:44Z* **Verdict** (by Gemini (dispatched via tri-comparison-ledger-sweep), confirmed by Claude Sonnet 5, 2026-08-19T00:00:00Z): > Confirmed, independently verified all 6 sampled names against real source -- GitGalaxy and ctags both correct, tree-sitter over-recalling from two related but distinct preprocessor-driven mechanisms, both already covered by existing infrastructure: (1) keyword/macro misparse -- 'if' (dictobject.c:522-527, an `#if SIZEOF_VOID_P > 4` / `else if` sequence desyncs the parse) and 'DICT___REVERSED___METHODDEF' (dictobject.c:5102, a PyMethodDef array-initializer macro, not a definition) are both ALREADY in tree_sitter_accuracy_audit.py's `_C_KNOWN_MACRO_HALLUCINATIONS` exclusion set (confirmed by reading it directly) -- this tri-comparison tool's raw walk deliberately doesn't apply that list (it's a curated, ground-truth-shaped judgment call, appropriately left to reconciliation per this module's own stated design, not baked into the walk). (2) dead #if 0 code -- '_PyObject_ManagedDictValidityCheck' (dictobject.c:7396) and 'tos_char'/'print_stack'/'print_stacks' (frameobject.c:1264-1313) are genuinely well-formed function definitions sitting entirely inside `#if 0 ... #endif` guards; tree-sitter has no preprocessor model and parses the dead branch as live code. Both mechanisms are already the exact shape docs/why_gitgalaxy_beats_ast_here.md's Claim 8 names generically ('a dead #if 0 block... macro definitions... that merely look structural') -- added these 4 new concrete citations to Claim 8's evidence section rather than treating this as a new finding. No GitHub issue -- both tools already behave as intended; this is expected, already-documented tree-sitter preprocessor-blindness surfacing under the new tri-comparison reconciliation, not a fresh defect. @@ -109,7 +109,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `c` function existence: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 13 occurrences as of 2026-08-21T03:35:39Z* +*2-vs-1 -- 13 occurrences as of 2026-08-21T11:59:44Z* **Verdict** (by Gemini (dispatched via tri-comparison-ledger-sweep), confirmed by Claude Sonnet 5, 2026-08-19T00:00:00Z): > 3 distinct causes, all genuine tree-sitter-c grammar limitations (GitGalaxy and ctags both correct in all 10 sampled cases) -- confirmed via dispatched investigation (which ran tree-sitter's C grammar directly and found ERROR nodes in every case) plus independent source-level spot-checks of all 3 trigger shapes. This is a C-scale instance of Claim 7 (CPP-directive-driven recall loss) -- added to that claim's evidence section. (1) 4 samples: an #if/#else pair splitting a single `if` condition inside a function body (ceval.c:33, _Py_ReachedRecursionLimitWithMargin). (2) 5 samples: bare, un-semicoloned macro invocations the grammar can't cleanly recover from, losing the next real function (object.c:1269-1271's _Py_COMP_DIAG_PUSH/IGNORE_DEPR_DECLS/POP before _PyObject_SetAttributeErrorContext; similar shape for the typeobject.c slot-getattr cluster). (3) 1 sample: #if/#endif wrapping only the `static` storage-class specifier, separated from the rest of the signature (micropython/compile.c:3473-3476, mp_compile_to_raw_code). Unlike Fortran's existing Claim 7 evidence (entire trailing sections lost), C's version is local -- one function lost per trigger, not a cascading region. No GitHub issue -- documented as new Claim 7 evidence, not a fixable tooling bug (this repo doesn't control tree-sitter-c's grammar). @@ -129,7 +129,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `c` function existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 7 occurrences as of 2026-08-21T03:35:39Z* +*2-vs-1 -- 7 occurrences as of 2026-08-21T11:59:44Z* **Verdict** (by Claude Sonnet 5 (resolved + fixed directly, no dispatch needed), 2026-08-19T00:00:00Z): > Confirmed real ctags limitation, not a GitGalaxy or tree-sitter defect -- resolved directly (no dispatch needed), source read confirms all 7 sampled names. RICHCMP_WRAPPER/SLOT0/SLOT1/SLOT1BINFULL are all-caps macro names; every occurrence is a MACRO INVOCATION (a call to a previously-#define'd boilerplate-generating macro), not a function definition -- confirmed at cpython/typeobject.c:10099 (`RICHCMP_WRAPPER(lt, Py_LT)`) and :10544 (`SLOT1(slot_mp_subscript, __getitem__, PyObject *)`), same shape as the multiple SLOT0/SLOT1 hits at different lines (each is a separate invocation of the same macro generating a different wrapper function). ctags' regex-based C parser tags the macro-invocation site itself as a function; GitGalaxy and tree-sitter both correctly don't. Deliberately NOT fixed with a curated name-exclusion list in the gatherer (unlike the sibling __anon* class shape, this would require hand-curating specific macro names -- the same ground-truth-judgment category tri_comparison_gatherer.py's own docstring reasons belongs in reconciliation, not the raw reader) -- documented in ctags_reader.py instead, alongside its existing per-language notes. @@ -146,7 +146,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `c` function existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 4 occurrences as of 2026-08-21T03:35:39Z* +*2-vs-1 -- 4 occurrences as of 2026-08-21T11:59:44Z* **Verdict** (by Claude Sonnet 5 (resolved directly, no dispatch needed), 2026-08-19T00:00:00Z): > Confirmed GitGalaxy correct, real finding -- a new, narrower instance of Claim 3 (parse-error cascade), added to docs/why_gitgalaxy_beats_ast_here.md. All 4 sampled names (slot_mp_ass_subscript:10544, slot_nb_inplace_power:10697, slot_tp_repr:10714, slot_tp_hash:10730, all cpython/typeobject.c) are ordinary, unremarkable function definitions -- nothing unusual individually -- but each sits directly after a bare SLOT0/SLOT1 macro-invocation LINE (`SLOT1(slot_mp_subscript, __getitem__, PyObject *)`, `SLOT0(slot_tp_str, __str__)`, etc.) that isn't valid freestanding C without macro expansion. GitGalaxy's regex has no adjacency sensitivity and finds all 4 correctly; both ctags and tree-sitter locally lose the SINGLE function immediately following each such line (recovers after just one function, not a full cascade to EOF -- confirmed by resolving all 4 as isolated single-function misses, not a growing region). Resolved directly, no dispatch needed -- same pattern verified at all 4 sample points before writing up. @@ -160,7 +160,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `c` function existence: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 3 occurrences as of 2026-08-21T03:35:39Z* +*2-vs-1 -- 3 occurrences as of 2026-08-21T11:59:44Z* **Verdict** (by Claude Sonnet 5 (resolved directly, no dispatch needed), 2026-08-19T00:00:00Z): > Not a new finding -- both sampled names are ALREADY in tree_sitter_accuracy_audit.py's _C_KNOWN_MACRO_HALLUCINATIONS exclusion set (confirmed by grep: 'EXPORT_FUN' and 'MICROPY_WRAP_MP_EXECUTE_BYTECODE' both present). This shape is the same already-documented macro-hallucination mechanism (Claim 8) as the earlier tree-sitter-alone shape, just with ctags ALSO independently hallucinating the same 2 names the same way (both tools' regex/grammar parsers get fooled by the same macro-definition text). GitGalaxy correctly excludes both. Resolved directly, no dispatch needed. @@ -173,7 +173,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `c` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 3 occurrences as of 2026-08-21T03:35:39Z* +*2-vs-1 -- 3 occurrences as of 2026-08-21T11:59:44Z* **Verdict** (by Gemini (dispatched via tri-comparison-ledger-sweep), confirmed by Claude Sonnet 5, 2026-08-19T00:00:00Z): > Two distinct causes, both confirmed by independent verification, not one -- resolved via dispatched investigation plus direct fixes. (1) 5 of 8 (I_AllocLow, I_ZoneBase, I_BaseTiccmd, R_CheckBBox, R_AddLine, all doom): a real bug in THIS tool's OWN ctags_reader.py, not a ctags limitation. Old Doom source uses literal TAB characters for column alignment (e.g. `byte*\tI_AllocLow(int length)`); ctags faithfully echoes that tab into its tag-file's address/pattern field, and read_ctags_symbols' naive line.split('\t') then misreads a fragment of the SOURCE LINE as the kind field, fails the kind-membership check, and silently drops the symbol. Confirmed by running ctags with the exact flags this code uses and inspecting the raw tab-delimited output directly -- reproduced the exact column-shift byte for byte. Fixed: parse now finds the tag-file format's guaranteed `;"` address-terminator marker instead of blind-splitting the whole line, only tab-splitting the safe trailer after it. Verified: all 5 names now correctly found. (2) 3 of 8 (slot_nb_power, slot_nb_bool, wrap_next, all cpython typeobject.c): extension of the already-documented SLOT-macro ctags limitation -- each follows a SLOT1BINFULL/SLOT0/RICHCMP_WRAPPER macro invocation ctags misreads as a function (confirmed at typeobject.c:10574/10577/10630), which also swallows the real function immediately after it. Not code-fixed (same ground-truth-judgment reasoning as the sibling 7-occurrence shape) -- already covered by ctags_reader.py's existing note on this mechanism. @@ -186,7 +186,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `c` function args: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:35:39Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T11:59:44Z* **Verdict** (by Claude Sonnet 5 (resolved + fixed directly, no dispatch needed), 2026-08-19T00:00:00Z): > Not a GitGalaxy or ctags defect -- a bug in this tool's OWN _count_ctags_signature_params (tri_comparison_gatherer.py), now fixed. Confirmed directly: ran ctags against cpython/ceval.c, PyEval_GetLocals(void)'s raw signature field is literally the text '(void)'. GitGalaxy and tree-sitter both already special-case C's explicit empty-parameter-list idiom (0 real args, matching detector.py's own _count_top_level_args docstring) -- _count_ctags_signature_params did not, splitting '(void)' into one non-empty segment and counting it as 1 real parameter (the same class of bug its own docstring already describes fixing twice for Python's trailing-comma and bare * / marker cases). Added 'void' to the segment-exclusion set alongside the existing '*'/'/'/'**' -- verified fix: _count_ctags_signature_params('(void)') now returns 0. This corpus (cpython) uses the (void) idiom extremely heavily, plausibly explaining most/all of the 104 occurrences; not independently re-verified beyond the sample, but the mechanism is unconditional (any '(void)' signature was miscounted the same way, corpus-wide) so high confidence it generalizes. No GitHub issue needed -- fixed directly in this same commit, not a repo-code defect. @@ -199,7 +199,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `cobol` function existence: ctags agree, GitGalaxy differ -*2-vs-1 -- 136 occurrences as of 2026-08-21T03:35:44Z* +*2-vs-1 -- 136 occurrences as of 2026-08-21T11:59:49Z* **Verdict** (by gemini-3.1-pro-high (agy), dispatched via tri-comparison-ledger-sweep, reviewed by claude-sonnet-5, 2026-08-19): > Mixed-cause shape, majority ctags-side false positives plus a smaller hidden GitGalaxy defect. (1) Majority (all 10 capped examples, all named END-IF): Universal Ctags' COBOL parser tags ANY period-terminated word as a 'paragraph' (kind p), including scope terminators like END-IF./END-PERFORM. that are not paragraph definitions -- confirmed by a live ctags run on cics-banking-sample-application-cbsa/BANKDATA.cbl showing dozens of plain 'END-IF.' lines (e.g. lines 455, 600) tagged as paragraphs. GitGalaxy correctly excludes these via its END-[A-Za-z0-9_-]+ reserved-word shield. This is a permanent, structural ctags limitation (documented in tests/tools/ctags_reader.py), not a GitGalaxy defect. (2) A smaller (~20 of 133), genuine GitGalaxy false-negative hiding underneath: cics-genapp/lgdpol01.cbl:139 'DELETE-POLICY-DB2-INFO.' and lgapol01.cbl:137 'WRITE-ERROR-MESSAGE.' are real, called (PERFORM'd) paragraph definitions that GitGalaxy's own func_start regex wrongly excludes -- its reserved-word negative lookahead ends in a bare \b, and since '-' is a non-word character in Python re, any real paragraph name that happens to start with a banned keyword followed by a hyphen (a common COBOL verb-prefixed naming convention: WRITE-*, READ-*, SET-*, DELETE-*, ...) is wrongly rejected. Verified directly against the compiled regex (both return no match) and confirmed ~20 such real paragraphs exist corpus-wide via grep. Filed as GitHub issue #1892. Investigated via gemini-3.1-pro-high (agy), file:line citations and regex behavior independently re-verified by Claude before applying. @@ -219,7 +219,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `cobol` function existence: GitGalaxy agree, ctags differ -*2-vs-1 -- 43 occurrences as of 2026-08-21T03:35:44Z* +*2-vs-1 -- 43 occurrences as of 2026-08-21T11:59:49Z* **Verdict** (by gemini-3.1-pro-high (agy), dispatched via tri-comparison-ledger-sweep, reviewed by claude-sonnet-5, 2026-08-19): > Mixed-cause shape, two independent confirmed defects, neither in GitGalaxy's core function detection being right or wrong as a whole. (1) MAINLINE/TIMESTAMP and most of the 18 cases: these are real COBOL SECTION headers in the PROCEDURE DIVISION (e.g. cics-genapp/lgacdb01.cbl:128 "MAINLINE SECTION.", cics-banking-sample-application-cbsa/BANKDATA.cbl:1441 "TIMESTAMP SECTION." followed by executable CALL statements) that GitGalaxy correctly captures per its own documented func_start scope ("Paragraphs and Sections") -- and ctags ALSO correctly tags them, as kind 'section' (verified via live ), not as the 'paragraph' kind. The disagreement is manufactured by tests/tools/ctags_reader.py's CTAGS_FUNC_KINDS["cobol"] = {"p"}, which drops section-kind tags before comparison -- a test-harness bug, not a real ctags-vs-GitGalaxy disagreement. Filed as GitHub issue #1891. (2) LOCAL-STORAGE (cics-banking-sample-application-cbsa/XFRFUN.cbl:107 "LOCAL-STORAGE SECTION." immediately followed by 01-level data item declarations, no executable logic): this is a genuine GitGalaxy false positive -- the func_start regex's reserved-word negative lookahead bans WORKING-STORAGE and LINKAGE as Data Division section names but omits LOCAL-STORAGE, so it slips through and gets miscounted as a paragraph. ctags correctly reports nothing here. Filed as GitHub issue #1890. Investigated via gemini-3.1-pro-high (agy), file:line citations independently re-verified by Claude against language_standards.py and a live ctags run before applying. @@ -241,7 +241,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `cpp` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 1097 occurrences as of 2026-08-21T03:35:49Z* +*2-vs-1 -- 1097 occurrences as of 2026-08-21T11:59:54Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`cpp/function/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -260,7 +260,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `cpp` function existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 1074 occurrences as of 2026-08-21T03:35:49Z* +*2-vs-1 -- 1074 occurrences as of 2026-08-21T11:59:54Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`cpp/function/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -279,7 +279,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `cpp` function existence: tree-sitter agree, GitGalaxy, ctags differ -*2-vs-1 -- 98 occurrences as of 2026-08-21T03:35:49Z* +*2-vs-1 -- 98 occurrences as of 2026-08-21T11:59:54Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`cpp/function/existence/agree[tree_sitter]_vs[ctags,gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -298,7 +298,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `cpp` class existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 95 occurrences as of 2026-08-21T03:35:49Z* +*2-vs-1 -- 95 occurrences as of 2026-08-21T11:59:54Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`cpp/class/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -317,7 +317,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `cpp` function existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 62 occurrences as of 2026-08-21T03:35:49Z* +*2-vs-1 -- 62 occurrences as of 2026-08-21T11:59:54Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`cpp/function/existence/agree[gitgalaxy]_vs[ctags,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -336,7 +336,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `cpp` class existence: tree-sitter agree, GitGalaxy, ctags differ -*2-vs-1 -- 22 occurrences as of 2026-08-21T03:35:49Z* +*2-vs-1 -- 22 occurrences as of 2026-08-21T11:59:54Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`cpp/class/existence/agree[tree_sitter]_vs[ctags,gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -355,7 +355,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `cpp` function args: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 15 occurrences as of 2026-08-21T03:35:49Z* +*2-vs-1 -- 15 occurrences as of 2026-08-21T11:59:54Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`cpp/function/args/agree[ctags,tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -374,7 +374,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `cpp` function args: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 13 occurrences as of 2026-08-21T03:35:49Z* +*2-vs-1 -- 13 occurrences as of 2026-08-21T11:59:54Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`cpp/function/args/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -393,7 +393,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `cpp` function existence: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 8 occurrences as of 2026-08-21T03:35:49Z* +*2-vs-1 -- 8 occurrences as of 2026-08-21T11:59:54Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`cpp/function/existence/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -410,7 +410,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `cpp` class existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 2 occurrences as of 2026-08-21T03:35:49Z* +*2-vs-1 -- 2 occurrences as of 2026-08-21T11:59:54Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`cpp/class/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -421,7 +421,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `cpp` function existence: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:35:49Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T11:59:54Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`cpp/function/existence/agree[ctags,tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -431,7 +431,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `cpp` function args: none agree, GitGalaxy, tree-sitter, ctags differ -*3-way split -- 1 occurrence as of 2026-08-21T03:35:49Z* +*3-way split -- 1 occurrence as of 2026-08-21T11:59:54Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`cpp/function/args/agree[none]_vs[ctags,gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -443,7 +443,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` function existence: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 271 occurrences as of 2026-08-21T03:35:55Z* +*2-vs-1 -- 271 occurrences as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/function/existence/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -462,7 +462,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 107 occurrences as of 2026-08-21T03:35:55Z* +*2-vs-1 -- 107 occurrences as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/function/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -481,7 +481,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` function existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 48 occurrences as of 2026-08-21T03:35:55Z* +*2-vs-1 -- 48 occurrences as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/function/existence/agree[gitgalaxy]_vs[ctags,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -500,7 +500,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` function args: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 7 occurrences as of 2026-08-21T03:35:55Z* +*2-vs-1 -- 7 occurrences as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/function/args/agree[ctags,tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -516,7 +516,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` class existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 6 occurrences as of 2026-08-21T03:35:55Z* +*2-vs-1 -- 6 occurrences as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/class/existence/agree[gitgalaxy]_vs[ctags,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -531,7 +531,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` class existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 5 occurrences as of 2026-08-21T03:35:55Z* +*2-vs-1 -- 5 occurrences as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/class/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -545,7 +545,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` function args: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 4 occurrences as of 2026-08-21T03:35:55Z* +*2-vs-1 -- 4 occurrences as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/function/args/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -558,7 +558,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` function existence: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 4 occurrences as of 2026-08-21T03:35:55Z* +*2-vs-1 -- 4 occurrences as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/function/existence/agree[ctags,tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -571,7 +571,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` class existence: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 3 occurrences as of 2026-08-21T03:35:55Z* +*2-vs-1 -- 3 occurrences as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/class/existence/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -583,7 +583,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` function args: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:35:55Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/function/args/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -593,7 +593,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` function existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:35:55Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/function/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -603,7 +603,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` function existence: tree-sitter agree, GitGalaxy, ctags differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:35:55Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/function/existence/agree[tree_sitter]_vs[ctags,gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -613,7 +613,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `csharp` function args: none agree, GitGalaxy, tree-sitter, ctags differ -*3-way split -- 1 occurrence as of 2026-08-21T03:35:55Z* +*3-way split -- 1 occurrence as of 2026-08-21T12:00:00Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`csharp/function/args/agree[none]_vs[ctags,gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -625,7 +625,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `css` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 3 occurrences as of 2026-08-21T03:35:56Z* +*2-vs-1 -- 3 occurrences as of 2026-08-21T12:00:02Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`css/function/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -639,7 +639,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `dart` function existence: GitGalaxy agree, tree-sitter differ -*2-vs-1 -- 37 occurrences as of 2026-08-21T03:36:01Z* +*2-vs-1 -- 37 occurrences as of 2026-08-21T12:00:06Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`dart/function/existence/agree[gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -658,7 +658,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `dart` function existence: tree-sitter agree, GitGalaxy differ -*2-vs-1 -- 18 occurrences as of 2026-08-21T03:36:01Z* +*2-vs-1 -- 18 occurrences as of 2026-08-21T12:00:06Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`dart/function/existence/agree[tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -677,7 +677,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `dart` function args: none agree, GitGalaxy, tree-sitter differ -*3-way split -- 216 occurrences as of 2026-08-21T03:36:01Z* +*3-way split -- 216 occurrences as of 2026-08-21T12:00:06Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`dart/function/args/agree[none]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -698,7 +698,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `fortran` function existence: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 14 occurrences as of 2026-08-21T03:36:06Z* +*2-vs-1 -- 14 occurrences as of 2026-08-21T12:00:13Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`fortran/function/existence/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -717,7 +717,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `fortran` class existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 8 occurrences as of 2026-08-21T03:36:06Z* +*2-vs-1 -- 8 occurrences as of 2026-08-21T12:00:13Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`fortran/class/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -734,7 +734,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `fortran` function existence: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 2 occurrences as of 2026-08-21T03:36:06Z* +*2-vs-1 -- 2 occurrences as of 2026-08-21T12:00:13Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`fortran/function/existence/agree[ctags,tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -745,7 +745,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `fortran` function existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 2 occurrences as of 2026-08-21T03:36:06Z* +*2-vs-1 -- 2 occurrences as of 2026-08-21T12:00:13Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`fortran/function/existence/agree[gitgalaxy]_vs[ctags,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -756,7 +756,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `fortran` function args: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:36:06Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:00:13Z* **Verdict** (by Claude Sonnet 5, direct investigation (surfaced while re-blessing the tri-comparison chart after #1973/#1985), 2026-08-21T00:00:00Z): > Confirmed GitGalaxy engine defect, ctags and tree-sitter both correct. init_domain (module_initialize_real.F:41, `SUBROUTINE init_domain ( grid )`) genuinely takes 1 parameter. GitGalaxy's own args regex correctly matches '( grid )' when tested in isolation against the real declaration line -- the bug is upstream of the args regex entirely: fortran's func_start regex's optional return-TYPE-prefix group (`(?:INTEGER|REAL|...)[A-Za-z0-9_ \t\n&*,()=:]{0,40}?`) allows up to 40 characters including newlines between the TYPE keyword and the following FUNCTION/SUBROUTINE/etc keyword, with no requirement that they belong to the same statement. In this file, an unrelated, already-terminated `INTEGER :: internal_time_loop` declaration sits ~30 characters (4 blank lines) before `SUBROUTINE init_domain`, so the regex's own match.start() lands on that earlier, unrelated line instead of the real declaration -- corrupting every downstream computation anchored to it (start_line, body span, and -- since #1973's fix correctly bounds the args search to the label's OWN statement span -- the args search window too, which can no longer reach the real '( grid )' text several lines later). Filed as #1982 (not yet fixed). No credit/debit -- ctags and tree-sitter aren't corroborating each other by coincidence here, they're both just correctly parsing real Fortran grammar that GitGalaxy's func_start regex currently mis-anchors. @@ -767,7 +767,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `fortran` function args: none agree, GitGalaxy, tree-sitter, ctags differ -*3-way split -- 1 occurrence as of 2026-08-21T03:36:06Z* +*3-way split -- 1 occurrence as of 2026-08-21T12:00:13Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`fortran/function/args/agree[none]_vs[ctags,gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -779,7 +779,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `go` function args: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 75 occurrences as of 2026-08-21T03:36:09Z* +*2-vs-1 -- 75 occurrences as of 2026-08-21T12:00:15Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`go/function/args/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -800,7 +800,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `haskell` function existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 103 occurrences as of 2026-08-21T03:36:12Z* +*2-vs-1 -- 103 occurrences as of 2026-08-21T12:00:18Z* **Verdict** (by Claude Sonnet 5 (dispatched agent investigation), 2026-08-19T00:00:00Z): > All 10 sampled cases are ctags-side artifacts, not real GitGalaxy/tree-sitter misses -- confirmed via direct `ctags -x` output against the corpus. Three distinct ctags Haskell-parser weaknesses cover the sample: (1) multi-clause double/triple-tagging -- ctags tags every pattern-matched equation line as its own occurrence of the name (writerFn/writeFnBinary/expandFilterPath: confirmed 2-3 raw ctags tags per function, one per clause; a file-wide count found 45 such extra same-name tags across the 7-file corpus, e.g. blockToInlines alone has 14). GitGalaxy/tree-sitter both correctly anchor to the FIRST clause only, leaving ctags' later-clause tags as the ones unpaired. (2) keyword-as-identifier misparsing -- `class`/`where`/`pattern` (from PatternSynonyms) get tagged as function names when ctags fails to parse past the keyword; confirmed at Options.hs:62 (`class HasSyntaxExtensions`), Parsing.hs:184 (module-header `where`), and 3 PatternSynonyms declarations in Options.hs. (3) CAF/value-vs-function kind collapse -- defaultAbbrevs/defaultKaTeXURL/defaultMathJaxURL/defaultWebTeXURL are zero-arg top-level VALUES (non-arrow type signatures), not functions; ctags has no value/variable kind at all (`ctags --list-kinds-full=Haskell` shows only constructor/function/module/type) so it lumps every `name = expr` binding into "function". GitGalaxy (language_standards.py haskell rules, #1312) and tree-sitter's own audit tooling (_find_haskell_signature_for_bind, #1566) both independently make the same value-vs-function distinction correctly -- real cross-tool corroboration, not coincidence. (4) TH-splice call sites misread as definitions -- deriveJSON at Options.hs:454/458 is a Template Haskell splice INVOKING an imported function, not defining one; ctags misparses the call as a definition. No GitGalaxy/tree-sitter defect anywhere in this shape; purely a ctags parser limitation, same category as the already-documented empty CTAGS_CLASS_KINDS['haskell']. @@ -820,7 +820,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `haskell` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 69 occurrences as of 2026-08-21T03:36:12Z* +*2-vs-1 -- 69 occurrences as of 2026-08-21T12:00:18Z* **Verdict** (by Claude Sonnet 5 (dispatched agent investigation), 2026-08-19T00:00:00Z): > Confirmed: all 10 sampled misses (and, by cross-check against additional non-sampled instances in Options.hs/Shared.hs, plausibly all 69) are locally-scoped function definitions -- `instance ... where` methods, `where`-clause helpers, or `let`-bound names inside `do` blocks -- never top-level module definitions. ctags' Haskell parser has no layout-rule/scope awareness and only tags equations anchored at column 1; it correctly handles multi-clause TOP-LEVEL definitions (verified via expandFilterPath, writeFnBinary, writerFn -- all tag fine, clauses and all), so this is a pure scope blind spot, not a clause-counting bug (distinct from the tree-sitter clause-splitting bug fixed earlier in this same effort, which shares 2 of the 10 sample names by coincidence of subject matter, not root cause). GitGalaxy and tree-sitter are both correct; ctags is not wrong so much as structurally incapable of seeing these. Known, expected limitation of ctags' Haskell parser, now documented alongside its existing Haskell notes in tests/tools/ctags_reader.py -- not a GitHub issue, nothing in this repo to fix. @@ -840,7 +840,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `haskell` class existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 16 occurrences as of 2026-08-21T03:36:12Z* +*2-vs-1 -- 16 occurrences as of 2026-08-21T12:00:18Z* **Verdict** (by Claude Sonnet 5 (session investigation), 2026-08-19T00:00:00Z): > Not a real discrepancy -- structural tooling gap, already documented in the codebase. tests/tools/ctags_reader.py:39-40,228 sets CTAGS_CLASS_KINDS['haskell'] = set() on purpose: "ctags' Haskell parser has no class-shaped kind at all (constructor/function/module/type only)". Every example in this shape (data/newtype/class declarations -- ReaderOptions, CiteMethod, HasSyntaxExtensions, etc.) is real; ctags structurally cannot report any of them for this language, not a sample-specific miss. No action needed beyond this note. @@ -860,7 +860,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `haskell` function existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 2 occurrences as of 2026-08-21T03:36:12Z* +*2-vs-1 -- 2 occurrences as of 2026-08-21T12:00:18Z* **Verdict** (by Claude Sonnet 5 (session investigation), 2026-08-19T00:00:00Z): > Mixed shape, resolved by reading both of the 2 occurrences directly (no larger sample needed). (1) Options.hs:438 getExtensions -- real function, `instance HasSyntaxExtensions WriterOptions where getExtensions opts = writerExtensions opts`. A sibling instance for ReaderOptions at Options.hs:80 has the identical shape. Tree-sitter's Haskell grammar doesn't expose typeclass-instance-method clause bodies the way it does top-level bindings, and ctags' Haskell parser has no instance-method kind either -- GitGalaxy is correct, both other tools have a real recall gap on typeclass instance methods. (2) Shared.hs:475 extensionEnabled -- NOT a real function. Imported from Text.Pandoc.Extensions (Shared.hs:114), only ever appears as a guard-clause call (`| extensionEnabled Ext_gfm_auto_identifiers exts = ...`). GitGalaxy's regex misreads a guard-clause invocation as a definition -- genuine GitGalaxy false positive, worth its own engine bug against language_standards.py's haskell func_start rule. @@ -872,7 +872,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `haskell` function args: none agree, GitGalaxy, tree-sitter differ -*3-way split -- 9 occurrences as of 2026-08-21T03:36:12Z* +*3-way split -- 9 occurrences as of 2026-08-21T12:00:18Z* **Verdict** (by Claude Sonnet 5 (session investigation), 2026-08-19T00:00:00Z): > One systematic cause, confirmed by reading source for 3 of the 9 (getMetadataFromFiles App.hs:395-397, splitTextByIndices Shared.hs:142-143, tabFilter Shared.hs:256-259) and consistent with the shape of the remaining 6. Every case is a point-free/eta-reduced Haskell equation: the type signature declares N params, but the specific clause GitGalaxy and tree-sitter both align to only explicitly binds N-1 of them, handling the trailing argument via composition (`.`) or `\case`. GitGalaxy counts arity from the full type signature (the true logical arity); tree-sitter's declaration-only reading counts only the clause's explicitly-bound patterns (correct for that one equation, but undercounts true arity). Neither reader is wrong about what it's measuring -- same shape as Claim 1 in docs/why_gitgalaxy_beats_ast_here.md. GitGalaxy's answer is arguably the more useful coupling signal; recommend documenting as a candidate Claim rather than treating as an engine defect to fix toward matching tree-sitter. @@ -893,7 +893,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `java` function args: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 28 occurrences as of 2026-08-21T03:36:15Z* +*2-vs-1 -- 28 occurrences as of 2026-08-21T12:00:21Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`java/function/args/agree[ctags,tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -912,7 +912,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `java` function args: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 12 occurrences as of 2026-08-21T03:36:15Z* +*2-vs-1 -- 12 occurrences as of 2026-08-21T12:00:21Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`java/function/args/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -931,7 +931,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `java` function existence: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 3 occurrences as of 2026-08-21T03:36:15Z* +*2-vs-1 -- 3 occurrences as of 2026-08-21T12:00:21Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`java/function/existence/agree[ctags,tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -943,7 +943,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `java` function args: none agree, GitGalaxy, tree-sitter, ctags differ -*3-way split -- 1 occurrence as of 2026-08-21T03:36:15Z* +*3-way split -- 1 occurrence as of 2026-08-21T12:00:21Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`java/function/args/agree[none]_vs[ctags,gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -955,7 +955,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `javascript` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 266 occurrences as of 2026-08-21T03:36:17Z* +*2-vs-1 -- 266 occurrences as of 2026-08-21T12:00:24Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`javascript/function/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -974,7 +974,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `javascript` function existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 182 occurrences as of 2026-08-21T03:36:17Z* +*2-vs-1 -- 182 occurrences as of 2026-08-21T12:00:24Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`javascript/function/existence/agree[gitgalaxy]_vs[ctags,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -993,7 +993,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `javascript` function existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 150 occurrences as of 2026-08-21T03:36:17Z* +*2-vs-1 -- 150 occurrences as of 2026-08-21T12:00:24Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`javascript/function/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1012,7 +1012,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `javascript` function existence: tree-sitter agree, GitGalaxy, ctags differ -*2-vs-1 -- 104 occurrences as of 2026-08-21T03:36:17Z* +*2-vs-1 -- 104 occurrences as of 2026-08-21T12:00:24Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`javascript/function/existence/agree[tree_sitter]_vs[ctags,gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -1031,7 +1031,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `javascript` class existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 96 occurrences as of 2026-08-21T03:36:17Z* +*2-vs-1 -- 96 occurrences as of 2026-08-21T12:00:24Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`javascript/class/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1050,7 +1050,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `javascript` function existence: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 11 occurrences as of 2026-08-21T03:36:17Z* +*2-vs-1 -- 11 occurrences as of 2026-08-21T12:00:24Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`javascript/function/existence/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1069,7 +1069,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `javascript` function args: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 7 occurrences as of 2026-08-21T03:36:17Z* +*2-vs-1 -- 7 occurrences as of 2026-08-21T12:00:24Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`javascript/function/args/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1085,7 +1085,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `javascript` function args: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 2 occurrences as of 2026-08-21T03:36:17Z* +*2-vs-1 -- 2 occurrences as of 2026-08-21T12:00:24Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`javascript/function/args/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -1098,7 +1098,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `kotlin` function existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 15 occurrences as of 2026-08-21T03:36:20Z* +*2-vs-1 -- 15 occurrences as of 2026-08-21T12:00:27Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`kotlin/function/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1117,7 +1117,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `kotlin` class existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 3 occurrences as of 2026-08-21T03:36:20Z* +*2-vs-1 -- 3 occurrences as of 2026-08-21T12:00:27Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`kotlin/class/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -1129,7 +1129,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `kotlin` function existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:36:20Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:00:27Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`kotlin/function/existence/agree[gitgalaxy]_vs[ctags,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1141,7 +1141,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `m4` function existence: ctags agree, GitGalaxy differ -*2-vs-1 -- 76 occurrences as of 2026-08-21T03:36:26Z* +*2-vs-1 -- 76 occurrences as of 2026-08-21T12:00:35Z* **Verdict** (by gemini-3.1-pro-high (agy), dispatched via tri-comparison-ledger-sweep, reviewed by claude-sonnet-5, 2026-08-20): > Clean, single-cause shape (all 10 sampled cases), not a GitGalaxy defect. Every sampled occurrence (curl/configure.ac lines 967-4994) is a real AC_DEFINE or AC_DEFINE_UNQUOTED call (e.g. line 2112: AC_DEFINE_UNQUOTED([CURL_DEFAULT_SSL_BACKEND], [...], [...])) -- an autoconf helper that emits a C preprocessor #define into the generated config.h at build time, NOT a new callable M4 macro definition. GitGalaxy's own func_start regex for m4 deliberately excludes AC_DEFINE/AC_DEFINE_UNQUOTED from its keyword set (m4_define|define|AC_DEFUN|AC_DEFUN_ONCE|AU_DEFUN|m4_defun only), so its silence here is correct. ctags' M4 parser heuristically tags any AC_DEFINE*-family call with a bracketed/plain first argument as a macro definition -- same macro-invocation-vs-definition confusion already documented for C's RICHCMP_WRAPPER pattern, now also documented in tests/tools/ctags_reader.py's m4 note. No GitHub issue against GitGalaxy -- this is a real, confirmed ctags-side limitation. (Separately, unrelated to this shape: a deeper live-pipeline recall gap causing GitGalaxy to extract only 1 m4 function total across the whole corpus, despite its func_start regex matching dozens of genuine AC_DEFUN/m4_define calls when run standalone, was found and fixed in part -- see PR #1927 for the func_start capture-group fix; the remaining pipeline-level gap is tracked separately, not part of this shape's verdict.) Investigated via gemini-3.1-pro-high (agy), all 10 sampled file:line citations independently verified. @@ -1161,7 +1161,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `m4` function existence: GitGalaxy agree, ctags differ -*2-vs-1 -- 36 occurrences as of 2026-08-21T03:36:26Z* +*2-vs-1 -- 36 occurrences as of 2026-08-21T12:00:35Z* **Verdict** (by claude-sonnet-5 (direct source read, no dispatch needed), 2026-08-20): > Confirmed real GitGalaxy false positive, now fixed. The old func_start regex had no capture group over the macro-name argument, so it matched the AC_DEFUN keyword itself as the 'function name' -- structurally identical to matching 'def' as a Python function's name instead of what follows it. gnucobol/configure.ac:658 'AC_DEFUN([AC_PROG_F77], [])' was reported as a function literally named 'AC_DEFUN'; ctags correctly reports nothing here since this call defines an empty macro body (a no-op placeholder, common autoconf idiom for stubbing out a check). Fixed in PR #1927: func_start now captures the real macro-name argument (AC_PROG_F77), handling m4's three real quoting conventions (backtick/apostrophe, bracket, double-bracket). Verified directly: the pipeline now reports 'AC_PROG_F77' at line 658, not 'AC_DEFUN'. @@ -1181,7 +1181,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `m4` class existence: GitGalaxy agree, ctags differ -*2-vs-1 -- 4 occurrences as of 2026-08-21T03:36:26Z* +*2-vs-1 -- 4 occurrences as of 2026-08-21T12:00:35Z* **Verdict** (by claude-sonnet-5 (direct source read, no dispatch needed), 2026-08-20): > Confirmed real GitGalaxy false positive, not yet fixed (tracked separately). m4's own class_start rule is explicitly None (m4 has no class/OOP concept) -- but detector.py's class extraction branch only checks _CLASS_START_NAMED_EXTRACTION_LANGS allowlist membership, not whether the language's own class_start is None, so m4 (and 18 other class_start=None languages) falls through to the generic 'class|struct|interface|trait|enum NAME' fallback regex regardless. That fallback has no awareness of m4 document structure, so it matches raw C struct declarations embedded as literal text inside autoconf feature-test macro arguments (e.g. curl/configure.ac:1358's 'struct SocketIFace *ISocket = NULL;' inside an AC_LANG_PROGRAM([[ ... ]]) block) as if they were real m4 classes. Verified directly against the live gatherer: gg_classes for curl/configure.ac returns ['SocketIFace', 'Library', 'sockaddr_in6'], none of which are real m4 constructs; ctags correctly reports none (no class-shaped kind for m4 at all). Filed as GitHub issue #1925 (broader architectural gap, confirmed for m4, 18 other class_start=None languages not yet checked) -- not fixed in this sweep. @@ -1197,7 +1197,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `makefile` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:36:27Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:00:36Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`makefile/function/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -1209,7 +1209,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `matlab` function args: none agree, GitGalaxy, tree-sitter differ -*3-way split -- 1 occurrence as of 2026-08-21T03:36:29Z* +*3-way split -- 1 occurrence as of 2026-08-21T12:00:38Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`matlab/function/args/agree[none]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1221,7 +1221,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `objective-c` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 104 occurrences as of 2026-08-21T03:36:31Z* +*2-vs-1 -- 104 occurrences as of 2026-08-21T12:00:40Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`objective-c/function/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -1240,7 +1240,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `objective-c` function existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 91 occurrences as of 2026-08-21T03:36:31Z* +*2-vs-1 -- 91 occurrences as of 2026-08-21T12:00:40Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`objective-c/function/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1259,7 +1259,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `objective-c` function existence: tree-sitter agree, GitGalaxy, ctags differ -*2-vs-1 -- 2 occurrences as of 2026-08-21T03:36:31Z* +*2-vs-1 -- 2 occurrences as of 2026-08-21T12:00:40Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`objective-c/function/existence/agree[tree_sitter]_vs[ctags,gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -1270,7 +1270,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `objective-c` function existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:36:31Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:00:40Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`objective-c/function/existence/agree[gitgalaxy]_vs[ctags,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1282,7 +1282,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `perl` function existence: tree-sitter agree, GitGalaxy, ctags differ -*2-vs-1 -- 122 occurrences as of 2026-08-21T03:36:37Z* +*2-vs-1 -- 122 occurrences as of 2026-08-21T12:00:46Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`perl/function/existence/agree[tree_sitter]_vs[ctags,gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -1301,7 +1301,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `perl` function existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 7 occurrences as of 2026-08-21T03:36:37Z* +*2-vs-1 -- 7 occurrences as of 2026-08-21T12:00:46Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`perl/function/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1317,7 +1317,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `perl` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 7 occurrences as of 2026-08-21T03:36:37Z* +*2-vs-1 -- 7 occurrences as of 2026-08-21T12:00:46Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`perl/function/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -1333,7 +1333,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `perl` class existence: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:36:37Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:00:46Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`perl/class/existence/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1343,7 +1343,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `perl` function existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:36:37Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:00:46Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`perl/function/existence/agree[gitgalaxy]_vs[ctags,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1353,7 +1353,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `perl` function args: none agree, GitGalaxy, tree-sitter differ -*3-way split -- 64 occurrences as of 2026-08-21T03:36:37Z* +*3-way split -- 64 occurrences as of 2026-08-21T12:00:46Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`perl/function/args/agree[none]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1374,7 +1374,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `php` class existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:36:41Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:00:53Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`php/class/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1384,7 +1384,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `php` function existence: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:36:41Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:00:53Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`php/function/existence/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1396,7 +1396,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `powershell` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 16 occurrences as of 2026-08-21T03:36:44Z* +*2-vs-1 -- 16 occurrences as of 2026-08-21T12:00:57Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`powershell/function/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -1415,7 +1415,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `powershell` class existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 7 occurrences as of 2026-08-21T03:36:44Z* +*2-vs-1 -- 7 occurrences as of 2026-08-21T12:00:57Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`powershell/class/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -1431,7 +1431,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `powershell` function existence: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:36:44Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:00:57Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`powershell/function/existence/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1441,7 +1441,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `powershell` function args: none agree, GitGalaxy, tree-sitter differ -*3-way split -- 5 occurrences as of 2026-08-21T03:36:44Z* +*3-way split -- 5 occurrences as of 2026-08-21T12:00:57Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`powershell/function/args/agree[none]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1457,10 +1457,10 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `python` function existence: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 99 occurrences as of 2026-08-21T03:36:53Z* +*2-vs-1 -- 100 occurrences as of 2026-08-21T12:01:08Z* -**Verdict** (by claude sonnet 5, tri-comparison-ledger-sweep (direct investigation, no dispatch needed), 2026-08-21T03:23:52Z): -> Already documented as Claim 2 in docs/why_gitgalaxy_beats_ast_here.md: tree-sitter-python has no concept of Cython's cdef class/cdef/cpdef syntax at all and loses track of scope at each cdef class boundary, so it finds 0 functions in cython/MemoryView.pyx and cython/MemoryView.pxd (0/0 vs GitGalaxy+ctags' 71/16). This shape's count grew from 32 to 99 within this same PR: it originally covered only the 32 'def'-based methods inside cdef class blocks (__cinit__, __dealloc__, __getbuffer__, etc.); fixing the sibling agree[ctags]_vs[gitgalaxy,tree_sitter] shape's func_start gap (issue #1999 -- GitGalaxy now also finds cdef/cpdef module-level functions) moved those newly-recognized occurrences into THIS shape too, since they still disagree with tree-sitter for the identical underlying reason. Confirmed via direct gather_language() check: (gg_funcs & ctags_funcs) - ts_funcs covers 16/16 real names in MemoryView.pxd and 71/72 in MemoryView.pyx (the one remaining name, get_slice_from_memview, is the documented Tempita-template residual gap tracked on the sibling shape). No GitGalaxy fix needed for tree-sitter's own recall here -- grammar limitation, not an engine defect. +**Verdict** (by claude sonnet 5, tri-comparison-ledger-sweep (direct investigation, no dispatch needed), 2026-08-21T12:03:03Z): +> Already documented as Claim 2 in docs/why_gitgalaxy_beats_ast_here.md: tree-sitter-python has no concept of Cython's cdef class/cdef/cpdef syntax at all and loses track of scope at each cdef class boundary, so it finds 0 functions in cython/MemoryView.pyx and cython/MemoryView.pxd (0/0 vs GitGalaxy+ctags' 72/16, full agreement as of the 2026-08-21 get_slice_from_memview follow-up fix -- see the sibling agree[ctags]_vs[gitgalaxy,tree_sitter] shape's verdict for that fix's details). This shape's count grew from 32 to 99 to 100 across this PR's two fixes: it originally covered only the 32 'def'-based methods inside cdef class blocks; each cdef/cpdef func_start fix moved newly-recognized occurrences into THIS shape too, since they still disagree with tree-sitter for the identical underlying reason. GitGalaxy now has zero recall gaps on this corpus for Cython functions -- the only remaining disagreement with tree-sitter is tree-sitter's own structural blindness to the Cython dialect, not a GitGalaxy defect. No GitGalaxy fix needed for tree-sitter's own recall here -- grammar limitation, not an engine defect. | file | name | GitGalaxy | tree-sitter | ctags | |---|---|---|---|---| @@ -1477,7 +1477,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `python` class existence: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 4 occurrences as of 2026-08-21T03:36:53Z* +*2-vs-1 -- 4 occurrences as of 2026-08-21T12:01:08Z* **Verdict** (by claude sonnet 5, tri-comparison-ledger-sweep (direct investigation, no dispatch needed), 2026-08-21T03:23:52Z): > Extends Claim 2 (docs/why_gitgalaxy_beats_ast_here.md) one syntactic level up: tree-sitter-python doesn't just lose track of scope inside a cdef class block, it fails to recognize the 'cdef class' declaration itself as a class at all -- 0 class nodes reported for cython/MemoryView.pyx, missing all 4 real classes (array, Enum, memoryview, _memoryviewslice). GitGalaxy's class_start regex and ctags both correctly identify all 4 by name, confirmed via direct gather_language() check. Note: GitGalaxy's own class_data schema has no start_line column (documented in tri_comparison_gatherer.py's own module docstring), so the ledger's stored example shows a None 'reading' for GitGalaxy on this shape -- that's the (structurally absent) line number field, not an indication GitGalaxy missed the class; by NAME it matches ctags exactly. No GitGalaxy fix needed -- tree-sitter-python grammar limitation. docs/why_gitgalaxy_beats_ast_here.md's Claim 2 updated with this class-level evidence in the same PR. @@ -1489,22 +1489,11 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest | cython/MemoryView.pyx | `memoryview` | *(n/a)* | *(n/a)* | 348 | | cython/MemoryView.pyx | `_memoryviewslice` | *(n/a)* | *(n/a)* | 936 | -### ✅ `python` function existence: ctags agree, GitGalaxy, tree-sitter differ - -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:36:53Z* - -**Verdict** (by claude sonnet 5, tri-comparison-ledger-sweep (direct investigation, no dispatch needed), 2026-08-21T03:23:52Z): -> Confirmed real GitGalaxy engine defect, fixed in the same pass (issue #1999). ctags alone correctly found real Cython cdef/cpdef module-level function definitions in cython/MemoryView.pyx (52) and cython/MemoryView.pxd (16) -- 68/68 occurrences, confirmed via a direct gather_language() name-diff across the whole corpus, not just the ledger's capped 10-example sample. GitGalaxy's func_start regex only recognized the literal 'def' keyword, so every cdef/cpdef-prefixed function (no 'def' at all) was invisible. tree-sitter-python structurally can't recognize cdef-prefixed functions either (no grammar concept of Cython dialect syntax -- same mechanism as Claim 2 in docs/why_gitgalaxy_beats_ast_here.md). FIXED: language_standards.py's python func_start regex gained a second alternative matching cdef/cpdef signatures (excluding cdef class/struct/enum/union/extern/packed/fused, which are declarations not functions). Verified: new extraction-gauntlet cases in test_python.py (valid/invalid/pathological + ReDoS sweep), crucible_check.py against the full ~80-repo corpus (31 diffs, all scoped to python/cython, both golden masters re-blessed), ruff/mypy audits clean. One residual gap, documented not fixed: get_slice_from_memview's return type is a Cython/Tempita '{{template}}' codegen placeholder, not standard Cython syntax (1 occurrence, narrow scope). - -| file | name | GitGalaxy | tree-sitter | ctags | -|---|---|---|---|---| -| cython/MemoryView.pyx | `get_slice_from_memview` | *(n/a)* | *(n/a)* | 1037 | - ## ruby ### ❓ `ruby` class existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 6 occurrences as of 2026-08-21T03:36:55Z* +*2-vs-1 -- 6 occurrences as of 2026-08-21T12:01:10Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`ruby/class/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -1519,7 +1508,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `ruby` function args: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 6 occurrences as of 2026-08-21T03:36:55Z* +*2-vs-1 -- 6 occurrences as of 2026-08-21T12:01:10Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`ruby/function/args/agree[ctags,tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -1534,7 +1523,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `ruby` function args: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 3 occurrences as of 2026-08-21T03:36:55Z* +*2-vs-1 -- 3 occurrences as of 2026-08-21T12:01:10Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`ruby/function/args/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1546,7 +1535,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `ruby` class existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 2 occurrences as of 2026-08-21T03:36:55Z* +*2-vs-1 -- 2 occurrences as of 2026-08-21T12:01:10Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`ruby/class/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1559,7 +1548,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `rust` function existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 152 occurrences as of 2026-08-21T03:36:59Z* +*2-vs-1 -- 152 occurrences as of 2026-08-21T12:01:14Z* **Verdict** (by Claude Sonnet 5 (resolved from existing Claim 6 documentation, no dispatch), 2026-08-19T00:00:00Z): > Not a new question -- already-documented, evidence-backed rust behavior (Claim 6, docs/why_gitgalaxy_beats_ast_here.md: 'structure recall inside opaque macro bodies'). Confirmed directly: all 5 sampled names (get_param, init_access, get_components, from_components, apply) are in bevy/bevy_ecs_macros.rs, inside a `quote! { ... }` proc-macro body (confirmed at source lines 444-460 -- `#path`/`#fields_alias` interpolation syntax is the classic quote! token-generation pattern). These are real Rust function definitions being code-generated by a proc macro; GitGalaxy's regex correctly parses real function syntax wherever it textually appears, including inside macro bodies. tree-sitter-rust and ctags' Rust parser both treat macro_rules!/macro-invocation bodies as opaque token trees and structurally cannot emit function nodes for anything inside one -- not a bug in either, a real grammar limitation. This is exactly why rust is one of the 3 languages (with csharp/fortran) already promoted into ground truth via blind-spot-region detection in the OLD bi-comparison tool (tree_sitter_accuracy_audit.py's _find_blind_spot_ranges) -- this tri-comparison ledger entry is that same, already-understood gap surfacing again under the new 3-tool reconciliation. GitGalaxy is correct; no engine defect, no issue needed. Resolved directly from existing documentation, no fresh dispatch required (tri-comparison-ledger-sweep skill step 1.3). @@ -1579,7 +1568,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `rust` class existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 25 occurrences as of 2026-08-21T03:36:59Z* +*2-vs-1 -- 25 occurrences as of 2026-08-21T12:01:14Z* **Verdict** (by Gemini (dispatched via tri-comparison-ledger-sweep), confirmed by Claude Sonnet 5, 2026-08-19T00:00:00Z): > Same mechanism as the already-resolved rust/function/existence/agree[gitgalaxy]_vs[ctags,tree_sitter] shape (Claim 6, docs/why_gitgalaxy_beats_ast_here.md) -- extended from `fn` definitions inside `quote!{}` invocation bodies to `struct` definitions inside `macro_rules!` DEFINITION bodies. All 6 sampled names confirmed, independently re-verified against source (not just the dispatched agent's own read): NonZeroVisitor (line 90), SaturatingVisitor (112), PrimitiveVisitor (136) inside serde/serde_core_de_impls.rs's `impl_deserialize_num!` macro (def starts line 81); SeqVisitor (998), SeqInPlaceVisitor (1036) inside `seq_impl!` (def starts 978); TupleVisitor (1403) inside `tuple_impl_body!` (nested in `tuple_impls!`, def starts 1396). All 6 are real, complete `struct` declarations, each immediately followed by a genuine `impl<'de,...> Visitor<'de> for ` block -- generated once per macro invocation, not fragments or hallucinated matches. tree-sitter and ctags both treat a macro_rules! arm's body as an opaque, unexpanded token tree and structurally cannot emit struct nodes from inside one, for the identical reason they can't see function definitions inside quote!{} bodies. GitGalaxy is correct in all 6 sampled cases; judged (not independently re-confirmed beyond the sample) to generalize to the full 25, all same-shaped serde-crate occurrences. No new tool defect -- Claim 6's doc text already covered this generically (`struct_item` was already named) but had no concrete cited example for this specific shape; added one (docs/why_gitgalaxy_beats_ast_here.md) rather than filing an issue. @@ -1599,7 +1588,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `rust` function args: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 21 occurrences as of 2026-08-21T03:36:59Z* +*2-vs-1 -- 21 occurrences as of 2026-08-21T12:01:14Z* **Verdict** (by Gemini (dispatched via tri-comparison-ledger-sweep, 2 rounds with self-correction), confirmed by Claude Sonnet 5, 2026-08-19T00:00:00Z): > Confirmed GitGalaxy engine defect, same root cause as the sibling shape rust/function/args/agree[none]_vs[gitgalaxy,tree_sitter] (#1872): a Rust lifetime tick (`'_`, `'a`, `'static`) never gets recognized as non-string during bracket/quote scanning. This shape surfaces the SECOND manifestation, in a different function than the first: `_matching_paren_end` (gitgalaxy/core/detector.py:3675-3703) has NO lifetime guard at all (unlike _count_top_level_args's broken-but-present one). A lifetime tick makes its self-containment check falsely fail, falling through to the comma/whitespace-split fallback meant for Lisp/Scheme/Shell (~line 4296) -- for single-parameter signatures with a lifetime and no comma this OVER-counts (opposite direction from the sibling shape's under-count), for multi-param signatures it under-counts via the same swallowed-closing-paren mechanism. Extends the how_to_investigate_a_discrepancy.md worked example (bevy_ecs_table.rs::initialize, 5 real params, GitGalaxy reports 3) across the full 8-item sample, independently hand-traced and confirmed exact-match against real source for all 8: bevy_ecs_table.rs:171,194, bevy_ecs_world.rs:2969,3005, serde_internals_ast.rs:62 (under-count, multi-param); bevy_reflect_path.rs:43, serde_core_de_impls.rs:3147, serde_internals_ast.rs:119 (over-count, single-param via the whitespace-split fallback). Dispatched investigation initially produced a fabricated mechanism on its first pass; caught by the dispatching agent's own manual code trace, corrected on a second pass, then independently re-verified byte-for-byte against all 8 real signatures before being accepted here -- treat this as a genuinely double-checked finding, not a single-pass claim. ctags and tree-sitter are both correct in every case. Judged to plausibly explain most/all of the remaining 21 (any rust signature with a lifetime annotation is susceptible) and possibly under-reported beyond this specific ledger shape too, since lifetimes are extremely common idiomatic rust. Added as a follow-up comment on #1872 rather than a duplicate issue, since both bugs should be fixed together. @@ -1619,7 +1608,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `rust` class existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 3 occurrences as of 2026-08-21T03:36:59Z* +*2-vs-1 -- 3 occurrences as of 2026-08-21T12:01:14Z* **Verdict** (by Claude Sonnet 5 (resolved directly via live ctags run, no dispatch), 2026-08-19T00:00:00Z): > Confirmed structural ctags limitation, not a bug -- resolved directly (no dispatch needed). All 3 sampled names (XRegUnion, FRegUnion, VRegUnion) are real Rust `union { }` declarations (confirmed at wasmtime/wasmtime_pulley_interp.rs:404,529,604), distinct from `struct` -- Rust's less-common C-style unsafe union construct. Ran `ctags --list-kinds-full=Rust` directly: its Rust parser's kind list is macro/method/implementation/enumerator/function/enum/interface/field/module/struct/typedef/variable -- there is NO union kind at all. Confirmed via direct ctags run against this exact file: it correctly finds the wrapping `struct FRegVal(FRegUnion)`-shaped types right next to each missed union, so this isn't a general miss, specifically a missing Rust-union kind. Same category as the already-documented ctags Haskell class-kind gap (tests/tools/ctags_reader.py) -- worth a similar doc note there, not a GitHub issue (nothing to fix, ctags upstream has no union support for this language). @@ -1632,7 +1621,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `rust` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:36:59Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:01:14Z* **Verdict** (by Claude Sonnet 5 (resolved directly via live ctags run, no dispatch), 2026-08-19T00:00:00Z): > Confirmed via direct ctags run and sibling comparison, resolved directly (no dispatch needed). `done_decode` (wasmtime/wasmtime_pulley_interp.rs:964) has a destructuring-pattern parameter -- `Done { _priv }: Done`, not a simple `name: Type` binding. Ran ctags directly against the file: its IMMEDIATE SIBLING in the same impl block, `debug_assert_done_reason_none` (line 960, same visibility/receiver shape, ordinary `&mut self`-only signature), IS correctly found as a ctags 'method'. done_decode alone is missing from ctags' output. Isolates the cause precisely to the destructuring-pattern parameter -- ctags' regex-based Rust parser appears to fail/skip the whole function when a parameter is a struct pattern rather than a plain identifier binding. GitGalaxy and tree-sitter both handle this fine (both agree on line 964). N=1 in this corpus, plausibly a real, narrow ctags parser gap (not GitGalaxy's) -- not chasing further given the tiny sample, noting rather than filing an issue since there's nothing in this repo to fix. @@ -1643,7 +1632,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `rust` function args: none agree, GitGalaxy, tree-sitter differ -*3-way split -- 21 occurrences as of 2026-08-21T03:36:59Z* +*3-way split -- 21 occurrences as of 2026-08-21T12:01:14Z* **Verdict** (by Gemini (dispatched via tri-comparison-ledger-sweep), confirmed by Claude Sonnet 5, 2026-08-19T00:00:00Z): > Confirmed GitGalaxy engine defect, not a modeling disagreement -- tree-sitter is correct in all 8 sampled cases (and this generalizes to the full 21: every sampled name is a deserialize_*/spawn_*_caller-shaped signature carrying a rust lifetime annotation, the exact trigger). Root cause, independently confirmed via two methods (dispatched agent read the code path; a second grep pass confirmed the attribute is dead): `gitgalaxy/core/detector.py::StructuralExtractor._count_top_level_args` has a guard meant to exempt rust/scala lifetime marks (`'_`, `'static`) from its string-literal scanner -- `getattr(self, 'language', '') in ('rust', 'scala')` around line 3766 -- but the class stores the language as `self.primary_lang_id` (set at line 497), never `self.language`. `self.language` is referenced NOWHERE ELSE in the file, confirmed by grep. The getattr always silently falls back to `''`, so the exemption guard never fires for any language, ever -- every lifetime `'` gets treated as an unterminated string-literal opener, swallowing all subsequent top-level commas until a real closing quote or end-of-string, fusing 2+ parameters into 1. A signature with 3 lifetime marks (odd count) never exits string mode at all and undercounts every remaining parameter. Real signatures confirmed at source: bevy/bevy_ecs_world.rs:1106,1121,1270 (`MovingPtr<'_, B>` swallows the next comma, 3 vs real 4, or 2 vs real 3); serde/serde_core_de_mod.rs:1105,1115 (`&'static str` swallows the next comma, 2 vs real 3); serde_core_de_mod.rs:1136 (two lifetimes, both trailing commas swallowed, 2 vs real 4); serde_core_de_mod.rs:1152,1163 (three lifetime marks, odd count means string mode never exits, 2 vs real 4). ctags has null coverage for these specific occurrences because they're bodyless trait-method declarations (ending in `;` inside a `trait` block) -- unrelated to the args bug, ctags appears to skip signature-only declarations generally. Filed as its own GitHub issue (attribute-name mismatch, one-line fix: `self.language` -> `self.primary_lang_id`, or equivalent), separate from this ledger record. @@ -1665,7 +1654,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `scala` function args: none agree, GitGalaxy, tree-sitter differ -*3-way split -- 16 occurrences as of 2026-08-21T03:37:01Z* +*3-way split -- 16 occurrences as of 2026-08-21T12:01:17Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`scala/function/args/agree[none]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1686,7 +1675,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `scheme` function existence: GitGalaxy agree, ctags differ -*2-vs-1 -- 50 occurrences as of 2026-08-21T03:37:05Z* +*2-vs-1 -- 50 occurrences as of 2026-08-21T12:01:21Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`scheme/function/existence/agree[gitgalaxy]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -1705,7 +1694,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ✅ `scheme` function existence: ctags agree, GitGalaxy differ -*2-vs-1 -- 84 occurrences as of 2026-08-21T03:37:05Z* +*2-vs-1 -- 84 occurrences as of 2026-08-21T12:01:21Z* **Verdict** (by gemini-3.1-pro-high (agy), dispatched via tri-comparison-ledger-sweep, reviewed and fixed by claude-sonnet-5, 2026-08-20): > Confirmed real, catastrophic GitGalaxy engine defect, generalizes to the full 92 occurrences (and beyond -- this was a 100% recall drop for the whole language, not specific to the sampled cases). Root cause isolated to detector.py's StructuralExtractor._slice_by_braces (Integration Mode B): its scope-delimiter selection checked `lang_id == "lisp"` to choose parenthesis delimiters over the curly-brace default -- but "lisp" has never been a real key in LANGUAGE_DEFINITIONS (only "scheme" is), so that branch was unreachable dead code in production. Every real scheme file fell through to the curly-brace default; since scheme is entirely parenthesis-delimited, the downstream scope-body search never found an opener and silently discarded every func_start match. GitGalaxy's own func_start regex was never the problem -- confirmed matching correctly standalone (31/31 hits on one file) and prism.py's comment stripping confirmed clean (raw (define count unchanged pre/post-prism). Fixed: delimiter choice now keys off lexical_family ("recursive_block_lisp") instead of the dead lang_id string, verified directly against the gatherer (0 -> 58 real functions found; ctags finds 92, so a smaller residual recall gap remains for a future pass, tracked as a follow-on, not blocking this fix). Filed as GitHub issue #1928. A pre-existing unit test (test_detector_mode_b_lisp_family) had been passing for the wrong reason (its mock language was literally named "lisp", matching the dead string check by construction) -- corrected to use scheme's real lexical_family value so it now validates the actual production mechanism. Investigated via gemini-3.1-pro-high (agy): live-pipeline isolation with a monkey-patch before/after proof (0 -> 14 functions when lang_id coerced to match the old check), independently re-verified by Claude against the exact cited source lines before applying. @@ -1727,7 +1716,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `shell` function existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:37:07Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:01:23Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`shell/function/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1739,7 +1728,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `solidity` function existence: GitGalaxy agree, tree-sitter differ -*2-vs-1 -- 6 occurrences as of 2026-08-21T03:37:08Z* +*2-vs-1 -- 6 occurrences as of 2026-08-21T12:01:24Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`solidity/function/existence/agree[gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1756,7 +1745,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `swift` function existence: GitGalaxy agree, tree-sitter differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:37:10Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:01:26Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`swift/function/existence/agree[gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1766,7 +1755,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `swift` function existence: tree-sitter agree, GitGalaxy differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:37:10Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:01:26Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`swift/function/existence/agree[tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -1776,7 +1765,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `swift` function args: none agree, GitGalaxy, tree-sitter differ -*3-way split -- 1 occurrence as of 2026-08-21T03:37:10Z* +*3-way split -- 1 occurrence as of 2026-08-21T12:01:26Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`swift/function/args/agree[none]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1788,7 +1777,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `tcl` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 4 occurrences as of 2026-08-21T03:37:11Z* +*2-vs-1 -- 4 occurrences as of 2026-08-21T12:01:28Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`tcl/function/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -1801,7 +1790,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `tcl` function existence: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 2 occurrences as of 2026-08-21T03:37:11Z* +*2-vs-1 -- 2 occurrences as of 2026-08-21T12:01:28Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`tcl/function/existence/agree[ctags,tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -1812,7 +1801,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `tcl` function existence: GitGalaxy, ctags agree, tree-sitter differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:37:11Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:01:28Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`tcl/function/existence/agree[ctags,gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1822,7 +1811,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `tcl` function existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:37:11Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:01:28Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`tcl/function/existence/agree[gitgalaxy]_vs[ctags,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1834,7 +1823,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `typescript` function existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 1907 occurrences as of 2026-08-21T03:37:32Z* +*2-vs-1 -- 1907 occurrences as of 2026-08-21T12:01:49Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`typescript/function/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -1853,7 +1842,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `typescript` class existence: GitGalaxy, tree-sitter agree, ctags differ -*2-vs-1 -- 501 occurrences as of 2026-08-21T03:37:32Z* +*2-vs-1 -- 501 occurrences as of 2026-08-21T12:01:49Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`typescript/class/existence/agree[gitgalaxy,tree_sitter]_vs[ctags]`) in `tri_comparison_ledger.json`. @@ -1872,7 +1861,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `typescript` function existence: tree-sitter agree, GitGalaxy, ctags differ -*2-vs-1 -- 174 occurrences as of 2026-08-21T03:37:32Z* +*2-vs-1 -- 174 occurrences as of 2026-08-21T12:01:49Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`typescript/function/existence/agree[tree_sitter]_vs[ctags,gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -1891,7 +1880,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `typescript` function existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 61 occurrences as of 2026-08-21T03:37:32Z* +*2-vs-1 -- 61 occurrences as of 2026-08-21T12:01:49Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`typescript/function/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1910,7 +1899,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `typescript` function existence: tree-sitter, ctags agree, GitGalaxy differ -*2-vs-1 -- 9 occurrences as of 2026-08-21T03:37:32Z* +*2-vs-1 -- 9 occurrences as of 2026-08-21T12:01:49Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`typescript/function/existence/agree[ctags,tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -1928,7 +1917,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `typescript` class existence: ctags agree, GitGalaxy, tree-sitter differ -*2-vs-1 -- 2 occurrences as of 2026-08-21T03:37:32Z* +*2-vs-1 -- 2 occurrences as of 2026-08-21T12:01:49Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`typescript/class/existence/agree[ctags]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1939,7 +1928,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `typescript` function existence: GitGalaxy agree, tree-sitter, ctags differ -*2-vs-1 -- 2 occurrences as of 2026-08-21T03:37:32Z* +*2-vs-1 -- 2 occurrences as of 2026-08-21T12:01:49Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`typescript/function/existence/agree[gitgalaxy]_vs[ctags,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1950,7 +1939,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `typescript` function args: none agree, GitGalaxy, tree-sitter differ -*3-way split -- 4 occurrences as of 2026-08-21T03:37:32Z* +*3-way split -- 4 occurrences as of 2026-08-21T12:01:49Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`typescript/function/args/agree[none]_vs[gitgalaxy,tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1965,7 +1954,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `zig` class existence: tree-sitter agree, GitGalaxy differ -*2-vs-1 -- 10 occurrences as of 2026-08-21T03:37:40Z* +*2-vs-1 -- 10 occurrences as of 2026-08-21T12:01:58Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`zig/class/existence/agree[tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. @@ -1984,7 +1973,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `zig` class existence: GitGalaxy agree, tree-sitter differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:37:40Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:01:58Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`zig/class/existence/agree[gitgalaxy]_vs[tree_sitter]`) in `tri_comparison_ledger.json`. @@ -1994,7 +1983,7 @@ Sorted 2-vs-1 splits before 3-way splits, unvalidated before validated, biggest ### ❓ `zig` function existence: tree-sitter agree, GitGalaxy differ -*2-vs-1 -- 1 occurrence as of 2026-08-21T03:37:40Z* +*2-vs-1 -- 1 occurrence as of 2026-08-21T12:01:58Z* **Not yet investigated.** See `docs/self_scan/how_to_investigate_a_discrepancy.md` for the process -- read the source at a few examples below, then hand-edit this entry (`zig/function/existence/agree[tree_sitter]_vs[gitgalaxy]`) in `tri_comparison_ledger.json`. diff --git a/gitgalaxy/core/detector.py b/gitgalaxy/core/detector.py index 3fb8131b2..523809b3b 100644 --- a/gitgalaxy/core/detector.py +++ b/gitgalaxy/core/detector.py @@ -5125,6 +5125,15 @@ def _extract_name(self, raw_match: str) -> str: # a high-speed O(N) string replacement to temporarily mask the namespace operator. clean = clean.replace("::", "__NAMESPACE_SCOPE__") + # BUG FIX (2026-08-21, tri-comparison-ledger-sweep follow-up): a Cython Tempita + # codegen placeholder in a cdef return type (`cdef {{memviewslice_name}} + # *get_slice_from_memview(...)`, cython/MemoryView.pyx) isn't a real body-opening + # brace, but the split("{") truncation below can't tell the difference -- it cut + # the match down to just "cdef ", discarding the real name entirely (recorded as + # the bogus function "cdef"). Strip the placeholder first so its own `{{`/`}}` + # never reaches the brace-truncation step. + clean = re.sub(r"\{\{[ \t]*[A-Za-z_]\w*[ \t]*\}\}", "", clean) + # Truncate at parameter lists, body openings, or return type hints clean = clean.split("(")[0].split("{")[0].split(":")[0].strip() diff --git a/gitgalaxy/standards/language_standards.py b/gitgalaxy/standards/language_standards.py index a507fb104..8fd867f11 100644 --- a/gitgalaxy/standards/language_standards.py +++ b/gitgalaxy/standards/language_standards.py @@ -413,12 +413,20 @@ class PrismConfigSchema(TypedDict): # unbounded quantifier. A bare `cdef`-prefixed variable/attribute declaration (no # trailing `(` on the same line, e.g. `cdef bint broadcasting`) never matches either # branch since both require the literal `(` to close the match. + # tri-comparison-ledger-sweep follow-up (2026-08-21): a return-type token can also be + # a Cython Tempita codegen placeholder (`cdef {{memviewslice_name}} *get_slice_from_ + # memview(...)`, cython/MemoryView.pyx -- Cython's own source templates specialized + # copies of this file per element type). The plain-identifier alternative can't start + # with `{`, so this was the one remaining real function this rule missed on the + # crucible corpus. Added as a second, bounded alternative in the same repeated + # return-type group (`\{\{...\}\}`, one identifier only -- no nested unbounded + # quantifier, same ReDoS discipline as everything else in this rule). "func_start": re.compile( r"^[ \t]*(?:@[\w.]+(?:\([^)]*\))?[ \t]+){0,5}(?:async[ \t]+)?def[ \t]+\w+(?:\[(?:[^\[\]]|\[[^\[\]]*\])*\])?[ \t]*\(" r"|" r"^[ \t]*cp?def[ \t]+(?!(?:class|struct|enum|union|extern|packed|fused)\b)" r"(?:(?:inline|public|readonly|api)[ \t]+){0,3}" - r"(?:[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*[ \t]+){0,2}" + r"(?:(?:[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*|\{\{[ \t]*[A-Za-z_]\w*[ \t]*\}\})[ \t]+){0,2}" r"\*{0,2}[ \t]*\w+[ \t]*\(", re.M, ), diff --git a/tests/core_engine/test_detector.py b/tests/core_engine/test_detector.py index 34375cf3f..a7d8a5525 100644 --- a/tests/core_engine/test_detector.py +++ b/tests/core_engine/test_detector.py @@ -805,6 +805,16 @@ def test_detector_cpp_objc_name_extraction(): assert hs_detector._extract_name("convertWithOpts'") == "convertWithOpts'" assert hs_detector._extract_name(" isWarning") == "isWarning" + # BUG FIX (2026-08-21, tri-comparison-ledger-sweep follow-up): a Cython Tempita + # codegen placeholder in a cdef return type (`cdef {{memviewslice_name}} + # *get_slice_from_memview(...)`, cython/MemoryView.pyx) isn't a real body-opening + # brace, but the split("{") truncation this function uses couldn't tell the + # difference -- it cut the match down to just "cdef ", recording the bogus + # function name "cdef" instead of the real "get_slice_from_memview". + py_detector = StructuralExtractor("python", MOCK_LANG_DEFS) + assert py_detector._extract_name("cdef {{memviewslice_name}} *get_slice_from_memview(") == "get_slice_from_memview" + assert py_detector._extract_name("cdef {{el_type}} TargetFunc(") == "TargetFunc" + # ============================================================================== # TEST 11: ADVANCED APPSEC SENSORS (PHASE 4) diff --git a/tests/extraction/languages/test_python.py b/tests/extraction/languages/test_python.py index 37733d9f7..8b36469fb 100644 --- a/tests/extraction/languages/test_python.py +++ b/tests/extraction/languages/test_python.py @@ -76,6 +76,12 @@ ("cdef inline bint TargetFunc(int x):", "TargetFunc"), # cdef w/ inline modifier + return type ("cdef char *TargetFunc(Py_buffer *view):", "TargetFunc"), # pointer return type (" cdef TargetFunc(self):", "TargetFunc"), # indented, inside a cdef class body + # tri-comparison-ledger-sweep follow-up (2026-08-21): Cython Tempita codegen + # placeholder as the return type (cython/MemoryView.pyx's own + # get_slice_from_memview -- Cython's source templates specialized copies of + # this file per element type). Was the one remaining real function this rule + # missed on the crucible corpus once the plain cdef/cpdef branch above shipped. + ("cdef {{memviewslice_name}} *TargetFunc(memoryview memview):", "TargetFunc"), ], "invalid": [ "class TargetFunc:", # class decl lookalike @@ -153,6 +159,14 @@ def test_python_func_start_cdef_redos_immunity(): assert func_start.search("cdef int TargetFunc(array self) except -1:") +def test_python_func_start_cdef_tempita_placeholder_redos_immunity(): + """ReDoS sweep for the Tempita-placeholder return-type alternative (2026-08-21 follow-up).""" + func_start = PYTHON_RULES["func_start"] + assert_redos_immune(func_start, "cdef {{" + "a" * 100000, timeout_sec=3.0) + assert_redos_immune(func_start, "cdef {{name}} " * 5000 + "foo(", timeout_sec=3.0) + assert func_start.search("cdef {{memviewslice_name}} *TargetFunc(memoryview memview):") + + def test_python_func_start_known_limitation_no_whitespace_tolerance_between_name_and_generic_bracket(): """ Documents a known, NOT-fixed, PRE-EXISTING gap (unrelated to the diff --git a/tests/golden_master_audit.json b/tests/golden_master_audit.json index 37762315d..8061eff47 100644 --- a/tests/golden_master_audit.json +++ b/tests/golden_master_audit.json @@ -12,8 +12,8 @@ }, "Target Root Name": "data", "Absolute Project Path": "/home/joe/nyx_projects/language-crucible/data", - "Analysis ISO Timestamp": "2026-08-21T03:15:59.614955+00:00", - "Total Scan Duration": "45.55 seconds" + "Analysis ISO Timestamp": "2026-08-21T11:56:27.688790+00:00", + "Total Scan Duration": "45.37 seconds" }, "Source Control Footprint (Immutable Anchor)": { "Active Branch": "HEAD", @@ -285,7 +285,7 @@ "python": { "files": 268, "loc": 72431, - "impact": 41115.86000000001 + "impact": 41119.36000000001 }, "powershell": { "files": 8, @@ -1990,7 +1990,7 @@ }, "python/cython": { "file_count": 4, - "total_mass": 9024.68, + "total_mass": 9028.18, "avg_exposures": { "cognitive_load": 20.99, "safety_score": 60.49, @@ -137566,7 +137566,7 @@ } }, "python/cython": { - "Directory Group Magnitude": 9024.68, + "Directory Group Magnitude": 9028.18, "File Count": 4, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" @@ -138111,9 +138111,9 @@ "Identity Proof": "Single Indicator (Ext: .pyx)" }, "2. Topological Coordinates": { - "X": 4928.56, + "X": 4928.51, "Y": 23.79, - "Z": -2892.88 + "Z": -2892.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -138125,7 +138125,7 @@ "Total LOC": 1492, "Coding LOC": 1059, "Documentation LOC": 140, - "Structural Magnitude": 609.08, + "Structural Magnitude": 612.58, "Control Flow Ratio": "61.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -138509,6 +138509,16 @@ "Start Line": 1342, "End Line": 1356 }, + { + "Function Name": "get_slice_from_memview", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 1037, + "End Line": 1045 + }, { "Function Name": "_err_extents", "Structural Impact": 3.4, @@ -138985,7 +138995,7 @@ "Control Flow Branches": 241, "Sequential Logic Declarations": 151, "Function Parameters": 51, - "Function/Method Declarations": 83, + "Function/Method Declarations": 84, "Class/Entity Declarations": 4, "Defensive Programming Constructs": 51, "Type/Safety Bypasses": 11, diff --git a/tests/golden_master_zero_dep_audit.json b/tests/golden_master_zero_dep_audit.json index 3ba48c70e..5df59d45c 100644 --- a/tests/golden_master_zero_dep_audit.json +++ b/tests/golden_master_zero_dep_audit.json @@ -12,8 +12,8 @@ }, "Target Root Name": "data", "Absolute Project Path": "/home/joe/nyx_projects/language-crucible/data", - "Analysis ISO Timestamp": "2026-08-21T03:16:52.080339+00:00", - "Total Scan Duration": "43.39 seconds" + "Analysis ISO Timestamp": "2026-08-21T11:57:19.532382+00:00", + "Total Scan Duration": "43.38 seconds" }, "Source Control Footprint (Immutable Anchor)": { "Active Branch": "HEAD", @@ -285,7 +285,7 @@ "python": { "files": 268, "loc": 72431, - "impact": 41115.86000000001 + "impact": 41119.36000000001 }, "powershell": { "files": 8, @@ -1990,7 +1990,7 @@ }, "python/cython": { "file_count": 4, - "total_mass": 9024.68, + "total_mass": 9028.18, "avg_exposures": { "cognitive_load": 20.99, "safety_score": 60.49, @@ -137566,7 +137566,7 @@ } }, "python/cython": { - "Directory Group Magnitude": 9024.68, + "Directory Group Magnitude": 9028.18, "File Count": 4, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" @@ -138111,9 +138111,9 @@ "Identity Proof": "Single Indicator (Ext: .pyx)" }, "2. Topological Coordinates": { - "X": 4928.56, + "X": 4928.51, "Y": 23.79, - "Z": -2892.88 + "Z": -2892.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -138125,7 +138125,7 @@ "Total LOC": 1492, "Coding LOC": 1059, "Documentation LOC": 140, - "Structural Magnitude": 609.08, + "Structural Magnitude": 612.58, "Control Flow Ratio": "61.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -138509,6 +138509,16 @@ "Start Line": 1342, "End Line": 1356 }, + { + "Function Name": "get_slice_from_memview", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 1037, + "End Line": 1045 + }, { "Function Name": "_err_extents", "Structural Impact": 3.4, @@ -138985,7 +138995,7 @@ "Control Flow Branches": 241, "Sequential Logic Declarations": 151, "Function Parameters": 51, - "Function/Method Declarations": 83, + "Function/Method Declarations": 84, "Class/Entity Declarations": 4, "Defensive Programming Constructs": 51, "Type/Safety Bypasses": 11,