Skip to content

tree-sitter accuracy: re-baseline rust and shell for files the aperture now keeps (Part of #5503) - #5509

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5503-tree-sitter-rebaseline
Oct 18, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5503-tree-sitter-rebaseline

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5503 (does not close it: typescript is still red, see below).

What happened

Run 39146104369 (main at f3e72d1) failed on zig only; #5504 re-baselined it. A re-run on main at e40fe0c (run 39149196144) failed on rust, shell, typescript. All three moved because #5493 (aperture payload guards keep files with function definitions beside a data table) moved crucible files out of the excluded queue, so the pinned corpus (v1.7.0, unchanged) now scans more files.

This PR

Regenerated against language-crucible v1.7.0 on current main (tree_sitter_accuracy_audit.py --lang X --regenerate):

  • rust: files 48 -> 49 (tokio_udp.rs), functions 2055 -> 2127, classes 286 -> 287; no regression.
  • shell: files 252 -> 254 (ed_test.sh, generate_ids_from_drivers.sh), real functions 785 -> 970. Recall 99.1% -> 84.2% (summary table in language_standards/__init__.py regenerated by the tool): GitGalaxy finds none of the ~150 *_head() / *_body() functions in freebsd-src/ed_test.sh (33 KB, many heredocs). A separate engine gap, recorded here, not hidden.

Not fixed: typescript

The tool refuses to bless it: extra_functions 1 -> 106 (recall is fine, 7377/7391). Triage of the extras on the newly admitted checker.ts / emitter.ts / parser.ts:

  • Many are real functions tree-sitter has no record of (addTypesToUnion, doInAwaitContext, getNodePos, a method named catch): reference gaps on 54k-line files.
  • Some are engine false positives from the IDENT: <type> ... => branch of func_start (typescript.py), whose {0,200} type span crosses commas and newlines: multi-line parameter lists ending in a () => string parameter (inputFileName in emitter.ts:548), import-list names (combinePaths, emitter.ts:35) and ternary call sites (resolvePath(, emitter.ts:355/495).
    A fix is a func_start change plus a golden re-bless, a separate PR.

Sibling gaps

  • typescript func_start false positives (above); no burned-estate program needs it.
  • shell ed_test.sh recall; no burned-estate program needs it.

Lessons for agents

  • A local run on a worktree that is behind main hides drift: fast-forward to origin/main before --regenerate, or the numbers match the stale baseline.

🤖 Generated with Claude Code

…re now keeps (Part of #5503)

#5493 (aperture payload guards) moved tokio_udp.rs, ed_test.sh and
generate_ids_from_drivers.sh out of the excluded queue, so the pinned
corpus scan counts them: rust 48->49 files, shell 252->254 files.
Shell recall drops 99.1% -> 84.2% because ed_test.sh defines ~150 functions
GitGalaxy does not find (separate engine gap). Typescript is not included:
extra_functions 1 -> 106, which the tool refuses to bless.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 18, 2026 17:28
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 17:40
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5509 @ aaf42d4: 1 failed check(s)

== tree-sitter-accuracy-audit (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39149782952/job/117740873265
repro: python tests/tools/pr_gates.py --fast
errors:
MISSING CLASSES IN threejs_app_ui/editor_main.css: {'#toolbar', '.Text', '.inactive', '.Dialog-background', '.Dialog-buttons', '#animation-resizer', '#tabs', '.Scene', '.Dialog', '.Object3D', '.Tab', '.Mesh', '.TextArea', '#script', '.right
##[error]Process completed with exit code 1.
log tail:
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== rust ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== scala ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== shell ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== solidity ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== swift ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== tcl ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== typescript ===
tree_sitter_accuracy_audit: ground-truth metric(s) drifted from the pinned corpus's expected values:
files_scanned: baseline=31 current=35
real_functions: baseline=2998 current=7391
real_classes: baseline=845 current=894
This means the corpus changed. Investigate before regenerating.
=== zig ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
tree_sitter_accuracy_audit --all: 30 language(s) checked.
tree_sitter_accuracy_audit --all: 1 FAILED: typescript
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/a68c5cc6-179c-430b-a87d-909e5b680479' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 18, 2026
@squid-protocol
squid-protocol merged commit 144f7f7 into main Oct 18, 2026
82 of 83 checks passed
@squid-protocol
squid-protocol deleted the churn/5503-tree-sitter-rebaseline branch October 18, 2026 17:45
squid-protocol added a commit that referenced this pull request Oct 19, 2026
…e now keeps (Closes #5581) (#5583)

#5493 (aperture payload guards) changed which pinned-corpus files the scan
keeps, so typescript went 35->36 files, real_functions 7391->8484 and
real_classes 894->1488. #5509 re-baselined rust and shell but skipped
typescript while extra_functions was 106; #5516 brought it back to 1, so the
tool now blesses it with no regressions. The language-crucible pin (v1.7.0)
is unchanged.

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant