Repository navigation
JavaScript doc oracle reads a doc above export, declaration, property, field and assignment wrappers (Part of #8863, #8868) - #9365
Merged
Conversation
…, 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]>
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist: partial [c:813118c2] -- left: Go
decoratorsengine rule, Rust io/thread_sleeps/branch (#9340),bitwise_ops, TS decoratorsPart of #8863, #8868.
What changed
The JavaScript
doccell scored 0.60 precision (180 functions fire, 108 in the oracle). The cause was the oracle, not the engine rule:_documented()intests/tools/family_oracle_ts.pywalked past wrapper nodes (export, declaration, property, field) for TypeScript only (#9347), so a JS function documented aboveexport default function f,const f = () =>,key: function () {}, a class field ora.b = function () {}/this.f = function () {}read as undocumented. JS now gets the same walk with its own grammar node names (field_definition,expression_statement, andassignment_expressiononly 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_documenteddo not walk wrappers; no red cell today. (3) JSbitwise_opsis 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 JSdoc).Gates
pr_gates.py --fast9/9;audit_check.pyall clear;family_validity_chart.py --checkcurrent; 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