Skip to content

JavaScript doc oracle reads a doc above export, declaration, property, field and assignment wrappers (Part of #8863, #8868) - #9365

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8863-20261126T0408Z
Nov 26, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8863-20261126T0408Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Checklist: partial [c:813118c2] -- left: Go decorators engine rule, Rust io/thread_sleeps/branch (#9340), bitwise_ops, TS decorators

Part of #8863, #8868.

What changed

The JavaScript doc cell scored 0.60 precision (180 functions fire, 108 in the oracle). The cause was the oracle, not the engine rule: _documented() in tests/tools/family_oracle_ts.py walked past wrapper nodes (export, declaration, property, field) for TypeScript only (#9347), so a JS function documented above export default function f, const f = () =>, key: function () {}, a class field or a.b = function () {} / this.f = function () {} read as undocumented. JS now gets the same walk with its own grammar node names (field_definition, expression_statement, and assignment_expression only for its right side). The engine rule is unchanged, so there is no golden movement.

Pinned crucible (language-crucible v1.9.0), JS doc: oracle functions 108 -> 155, precision 0.60 -> 0.861, recall 1.00, status ok. Misses of the family vs oracle 72 -> 25.

Class / Sibling gaps

Class: the oracle's doc lookup unwrapped the function's container for TypeScript only, so a documented function under a wrapper read as undocumented in the other languages. Fixed here for JavaScript, the only language with a red cell from it, and tested both directions (14 cases). Sibling gaps, none needed by a burned estate: (1) 25 JS functions still disagree: a class doc read as its constructor's (engine counts it, oracle does not; a reading for the owner), a doc on the outer object property above get:/set: pairs, and a Flow-annotated React file the grammar cannot parse (an oracle limit). (2) Java and C oracle _documented do not walk wrappers; no red cell today. (3) JS bitwise_ops is still red (0.11 / 0.50), a different mechanism.

Facts checked: traced all 72 over-counting functions on a pinned-crucible scan before editing; re-ran the sweep after (TS unchanged); the sweep also moved Python io (0.84 -> 0.797), which this PR does not touch, so I left that cell out of the baseline diff (baseline reflects only JS doc).

Gates

pr_gates.py --fast 9/9; audit_check.py all clear; family_validity_chart.py --check current; oracle and TS/JS tests pass (470). Not run: ratchets and golden bless (engine untouched). The chart/baseline overlap with #9360 and #9362: expect a rebase on the generated files.

🤖 Generated with Claude Code

…, field and assignment wrappers (Part of #8863, #8868)

The JS doc cell scored 0.60 precision because only TypeScript walked past wrapper nodes; JS is now 0.86 on the pinned crucible. Engine rule unchanged.

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 Nov 26, 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 26, 2026 04:23
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 04:23
@squid-shepherd
squid-shepherd Bot merged commit f241e44 into main Nov 26, 2026
64 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8863-20261126T0408Z branch November 26, 2026 04:33
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