Skip to content

test(tree-sitter-audit): add embedded_python + sqlite (classes) to the accuracy audit - #9292

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
audit-coverage-sqlite-embpy
Nov 26, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
audit-coverage-sqlite-embpy

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What this does

Adds two languages to the tree-sitter accuracy audit (the check that compares GitGalaxy's function/class detection with a tree-sitter parse of the pinned language-crucible corpus), and records why the other uncovered languages stay out.

Language Result vs tree-sitter (crucible v1.8.0)
embedded_python 135/135 functions, 18/18 classes, 0 extras (reuses the python node map)
sqlite (classes only) 181/181 CREATE TABLE matched; 4 engine-only tables tree-sitter-sql cannot parse
  • sqlite functions stay empty on purpose: under the raw_state_unreferenced: the undefined family — six markup/config languages record 0 on a census with no population to count #2866 contract its func_start units are statements, not named things. Mapping index/view names showed tree-sitter naming 223 units the engine never carries by design.
  • Not added, now documented in the audit's decision comment: assembly (tree-sitter-asm tags every label, no code-vs-data distinction); abap, agc_assembly, jcl, livecode, m4, yacc (no grammar in tree-sitter-language-pack 1.24.0).
  • Baselines were generated in the CI-matched env (pack 1.24.0, pinned crucible). --ci passes for both; 251 related tests pass; the workflows pick baselines up by glob.
  • The summary table in language_standards/__init__.py was updated by the tool.

🤖 Generated with Claude Code

…the accuracy audit

embedded_python reuses the python node map: 135/135 functions, 18/18 classes, 0 extras on the
pinned crucible (v1.8.0). sqlite is mapped for CLASSES only (CREATE TABLE): 181/181 tables
matched, 4 engine-only tables tree-sitter-sql cannot parse. sqlite functions stay empty by the
#2866 contract (its func_start units are statements, not named things).

Records why the other candidates stay unmapped: assembly (every label is a label node; no
code-vs-data distinction), and abap/agc_assembly/jcl/livecode/m4/yacc (no grammar in
tree-sitter-language-pack 1.24.0). Baselines generated in the CI-matched env (pack 1.24.0).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol
squid-protocol marked this pull request as ready for review November 25, 2026 13:52
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit bf85721 into main Nov 26, 2026
81 of 82 checks passed
@squid-shepherd
squid-shepherd Bot deleted the audit-coverage-sqlite-embpy branch November 26, 2026 21:01
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant