Skip to content

Add tree-sitter accuracy audit tool for JavaScript - #1229

Merged
squid-protocol merged 1 commit into
mainfrom
build-tree-sitter-accuracy-tool-1228
Aug 10, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
build-tree-sitter-accuracy-tool-1228

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of the tree-sitter accuracy epic (#1227), closes #1228.

Built tests/tools/tree_sitter_accuracy_audit.py generalizing the methodology from ast_accuracy_audit.py to support multiple languages via --lang <name>.
Wired up javascript node-map and created the baseline.

Correctness check numbers for JavaScript against the language-crucible corpus:

  • Function recall: ~55.8% (311 found / 557 real)
  • Function precision: ~72.3% (311 found / 430 reported)
  • Args match: ~93.2% (290 exact / 311 comparable)

These numbers are plausible given the corpus differences from PR #1223.

Decided to keep tree_sitter_accuracy_audit.py as a standalone script rather than factoring out common logic with ast_accuracy_audit.py to maintain readability and avoid awkward abstractions for just two instances.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit e6bbecb into main Aug 10, 2026
29 checks passed
@squid-protocol
squid-protocol deleted the build-tree-sitter-accuracy-tool-1228 branch August 10, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build generalized tests/tools/tree_sitter_accuracy_audit.py + per-language node-map registry

1 participant