Skip to content

Audit: the F# node map counts each and binding of a let rec chain (Part of #9200) - #9284

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/9200-20261125T0949Z
Nov 25, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/9200-20261125T0949Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #9200.

What

The tree-sitter accuracy audit's F# node map read one function per function_or_value_defn, but let rec a x = .. and b y = .. is one node holding two bindings. _fsharp_and_bindings now registers each and function binding after the first (value bindings are skipped). fsharp baseline regenerated: real_functions 262 -> 265, recall 69.1% -> 68.3%.

Class

Reference undercount in the audit's node map for chained bindings (F#). Sibling: OCaml and chains were not checked.

Facts checked

All repros in #9200 (Erlang spec with record, Nim one-liner and operator, F# one-liner, Julia short form) already extract correctly on main (#9212, #9243, #9254); verified with galaxyscope --db-only --debug.
The 3 newly counted references are in ModelParser.fs; the engine finds none of them as new. Two (getValueForComplexType, getValueForArrayOfGenericType) have the parameter list starting on the next line, which the engine's func_start lookahead does not accept. That is a real engine gap, now visible instead of hidden.
The earlier-reported extra (extra_functions 6 -> 7) is not an and binding: the sampled extras are case variants (validatePreconditions vs ValidatePreconditions), so this PR does not remove it.

Sibling gaps

  • F# func_start: a binding whose parameter list begins on the following line is missed (needs the [ \t]+ lookahead to allow a newline plus indent). Burned estate: none.
  • Issue item 4: named class extraction for crystal/erlang/nim/julia/r/fsharp. Burned estate: none.

Gates

pytest tests/tools/test_tree_sitter_accuracy_nodemaps.py (11 passed); audit_check.py all clear; fsharp baseline regenerated in the selfscan venv.

🤖 Generated with Claude Code

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 25, 2026 09:55
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 25, 2026 09:55
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit ee5fd6b into main Nov 25, 2026
125 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/9200-20261125T0949Z branch November 25, 2026 10:23
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