Skip to content

TypeScript tri-comparison sweep: root-cause 4 real func_start recall gaps, file issues - #2280

Merged
squid-protocol merged 1 commit into
mainfrom
ts-tri-comparison-sweep-20260826
Aug 26, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
ts-tri-comparison-sweep-20260826

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Ran the tri-comparison-ledger-sweep skill against typescript's ledger backlog, prompted by "what functions does GitGalaxy miss in TypeScript compared to tree-sitter/ctags". Found the ledger was stale/thin in two places and did a full-corpus, name+line-accurate diff (a naive name-set diff undercounts same-name duplicates by ~40x here) to get the real, current picture, then root-caused every gap by direct source reading, isolated regex testing, and galaxyscope --db-only raw-signal-vs-named-list DB queries.

Issues filed

None fixed inline — all need real design work or the full Differential Scan chain, filed per this skill's own scope discipline.

Changes

  • docs/self_scan/tri_comparison_ledger.json — two verdicts corrected with the full evidence trail + issue links (one was describing an already-fixed [bug] TypeScript: func_start regex misses generic functions #2219 bug, the other's terse verdict undersold a 124-occurrence shape with no filed issue)
  • docs/self_scan/tri_comparison_chart.svg / tri_comparison_points_of_interest.md — regenerated --all --write per this repo's standing rule

Test plan

  • ctags --version confirmed real Universal Ctags before regen
  • tri_comparison_chart.py --all --write (full 45-language regen, not partial)
  • tri_comparison_report.py --write
  • tests/ruff_audit.py --ci — no new findings
  • tests/mypy_audit.py --ci — no new findings
  • Diff scoped to exactly the 3 expected tri-comparison artifacts, no unrelated changes

…call gaps

Full-corpus tri-comparison sweep (typescript) via tri-comparison-ledger-sweep
skill: two ledger shapes were stale/thin (one described an already-fixed bug
via #2219, the other's "misses arrow functions" verdict undersold a 124-
occurrence shape with no filed issue). Re-diffed name+line across the whole
23-file corpus (a naive name-set diff misses same-name duplicates), root-caused
by direct source reading, isolated regex testing, and galaxyscope --db-only
struct_func_start-vs-function_count queries.

Four confirmed, independently-verified defects, filed as:
- #2276: reserved-keyword shield excludes legitimate `catch`/`return` method
  names (Promise-like thenables, AsyncIterator protocol methods).
- #2277: arrow/method-shorthand definitions not at true line start (comma-
  sibling object-literal properties, one-line nested call/return arguments)
  are never recognized.
- #2278: same-name TypeScript overload signatures collapse to just the body-
  bearing implementation (detector.py-level, not a regex miss -- raw signal
  count includes all overloads, the named list doesn't).
- #2279 (dominant, 113 of 124 occurrences in one real-world .d.ts file):
  func_start's bodyless-declaration branch requires a return-type annotation
  before the `;` that TS constructors structurally never have.

None fixed inline (all need real design work or the full Differential Scan
chain per CLAUDE.md) -- filed only, per this skill's own scope discipline.
Ledger verdicts updated with the full evidence trail and issue links; chart
and points-of-interest regenerated --all --write per this repo's standing
rule.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@squid-protocol
squid-protocol merged commit 43a5885 into main Aug 26, 2026
@squid-protocol
squid-protocol deleted the ts-tri-comparison-sweep-20260826 branch August 26, 2026 16:03
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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.

[bug] TypeScript: func_start regex misses generic functions

1 participant