Skip to content

fix(core): extend class_start named extraction to go and objective-c (#1295) - #1344

Merged
squid-protocol merged 2 commits into
mainfrom
fix/class-start-go-objc-1295
Aug 12, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
fix/class-start-go-objc-1295

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Verification

  • python tests/tools/tree_sitter_accuracy_audit.py --lang go --regenerate / --lang objective-c --regenerate
  • python tests/tools/tree_sitter_accuracy_audit.py --summary-table
  • python tests/tools/crucible_check.py -- both modes PASS, zero golden-master diff
  • python -m pytest tests/core_engine/ tests/extraction/ -- 6573 passed
  • python tests/tools/audit_check.py --regenerate -- 5 pure line-shift ruff findings from the new frozenset entries, baseline regenerated; mypy/dead-key/ast-accuracy clean

Test plan

  • crucible_check.py both modes pass
  • tree_sitter_accuracy_audit.py --ci clean for both languages post-regenerate
  • Full core_engine/extraction pytest suite passes
  • audit_check.py clean

🤖 Generated with Claude Code

squid-protocol and others added 2 commits August 12, 2026 11:09
…1295)

Both regressed when tried against their own class_start rule in #1295's
scaffolding pass, but the actual root cause was a ground-truth measurement
gap in tree_sitter_accuracy_audit.py's _get_node_name, not a regex bug:
go's type_declaration has no "name" field (it lives on the child
type_spec), and objective-c's class_interface/class_implementation/
class_declaration have no "name" field either (the identifier is a
plainly-typed child, with superclass as a second sibling for
class_interface). Both measured real_classes=0 pre-fix regardless of how
good the regex was.

With ground truth fixed, both languages measure cleanly at the allowlist
flip: go found_classes 0->69, extra_classes 0->0 (the 15 "missing" are all
plain type aliases like `type WaitStatus uint32` that go's class_start
intentionally excludes, requiring struct/interface -- a ground-truth scope
mismatch, not a recall bug, same shape as csharp's enum precedent in
#1264). objective-c found_classes 0->5, extra_classes 0->0, a perfect
match.

crucible_check.py (both modes) shows zero golden-master diff.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…in/zig status

go and objective-c are now flipped into the allowlist (this PR). Also
corrects kotlin and zig, which the doc listed as needing the same
ground-truth _get_node_name fix -- both were actually already fixed as a
side effect of #1313's function-extraction work, so real_classes reads
plausible for them today. Neither is flipped into the allowlist yet:
kotlin needs a class_start capture-group fix (regex workflow, same as C/
Swift), zig needs a real per-file diff to explain extra_classes=10/
missing_classes=23 before concluding anything.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@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 666e768 into main Aug 12, 2026
30 checks passed
@squid-protocol
squid-protocol deleted the fix/class-start-go-objc-1295 branch August 12, 2026 15:14
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.

1 participant