Skip to content

sqldoom functions: bound-arrow and handler count above ctags ruled a counting convention (Part of #5876) - #5966

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5876-20261022T0451Z
Oct 22, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5876-20261022T0451Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5876 (slice 3 of 3: sqldoom functions).

Finding

sqldoom reads 419 functions against ctags' 376 (+11.4%, 6 files). All six differing files are JavaScript (the PostgreSQL CREATE FUNCTION/PROCEDURE/DO files are not in ctags' languages and the 34 Python files agree exactly). I read every differing definition in the source (pinned SHA 95753a2): all 43 extra functions are real named arrow functions, and the ctags-only set is empty. Engine is right, so this is a ruling, not a fix. The engine is unchanged, so no golden re-bless (tests/golden_doom_rosetta/sqldoom is byte-identical; --diagnose sqldoom shows no drift).

Class: named arrow function bound to a name or property

Member sqldoom extras ctags Engine Status
const f = (...) => { (top-level helper or nested closure), incl. expression body const sleep = (ms) => new Promise(...) 33 tags as constant counts ruled convention (extends #5963)
obj.onX = (...) => { handler assigned on an object (pg.onclose, ws.onmessage, pg.onwire) 10 null tag, not counted counts ruled convention (same mechanism as window.f = in #5963)
ctags-only definitions 0 none

Per file (engine / ctags): scripts/bots.mjs 13/4, scripts/egress_probe.mjs 7/3, scripts/web_browser_check.mjs 5/0, scripts/web_smoke.mjs 1/0, web/app.js 35/18, web/pgwire.js 30/23; extras 9+4+5+1+17+7 = 43 = 419 - 376.

Change (4 hand-written files)

  • docs/language_status/javascript.md section 5 item 4: sqldoom added to the ruling.
  • tests/extraction/languages/test_javascript.py: pins expression-body, async and obj.onX = arrow shapes in test_javascript_func_start_bound_arrow_is_a_function.
  • tests/doom_rosetta/manifest.csv: sqldoom keeps expected_fails=functions, with the lineage link to the ruling.
  • tests/tools/doom_rosetta_check.py: docstring no longer says the disagreement is "unresolved".

Verification

pr_gates --fast 7/7; JS and doom_rosetta unit tests pass; tree-wide guards pass. --ratchets not run (no engine, golden or generated-file change).

🤖 Generated with Claude Code

…counting convention (Part of #5876)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 22, 2026 05:23
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 22, 2026
@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 05:26
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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