Repository navigation
TypeScript family validity: doc oracle reads property and parameter docs, decorators skip template placeholders (Part of #8863) - #9347
Merged
Conversation
…ocs, decorators skip template placeholders (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
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.
Part of #8863 (typescript only).
Checklist: partial [c:typescript] -- doc is green; decorators stays 0.50/1.00 on 2 oracle functions (under the 10-function bar): the one miss is a decorator on a getter, outside the unit's slice (see Sibling gaps).
What changed
Re-measured on current main with the pinned crucible (v1.9.0). Five of the seven listed cells were already green (#9267, #9325): io 1.00/1.00, bitwise_ops 0.91/0.94, time_date_logic 1.00/1.00, closures 0.98/0.83, thread_sleeps: no change.
family_oracle_ts._documentednow reads a doc above the property or class field that holds the function (/** d */ key: (x) => ...) and a/**on a constructor parameter. The engine's count is unchanged.}@${inside a template literal (__@${a}@${b}in checker.ts); now@not followed by${.Doc: 76 functions still fire with no oracle doc (nested functions whose doc sits within the 5-line anchor window) and 9 the other way; left as is, both bars are met.
Class / Sibling gaps
Class: a TypeScript keyword-family cell red because the oracle reads the contract narrower than the engine's anchor window (doc), or because a rule matches
@outside a decorator position (decorators). Members handled here: doc (oracle forms: property- or field-held function, documented parameter) and decorators (template placeholder). Sibling gaps:@memoizeon a getter (vscode/ipc.ts:762) sits on the line before the unit's start_line, so it is in no unit's slice. That is a unit-boundary matter, not a rule, with only 2 oracle functions; no burned-estate program needs it. A question for Epic: keyword-family validity -- do the per-function signals measure what their names say? #8863 rather than a rule change.ioin the baseline moved (0.84 to 0.797) because main is red: rosetta-audit #9311 landed after the last sweep; I kept it out of this PR's baseline diff (not TypeScript).Evidence
tests/test_typescript_family_validity_8863.py(a decorator negative for the template placeholder; oracle tests for property, field and parameter docs and the undocumented-parameter negative). 266 TypeScript and oracle tests pass, plus 297 oracle-tool tests.<crucible>/data/typescript, mean user seconds: base 39.83, branch 39.79.verify_language.py typescript: FAIL with the same 3 mismatches on main and on the branch (main.ts io 3 vs 1, probeSafety and probeTest calls_out_to), none in doc or decorators.golden-lock.sh crucible_check.py --update --yes: 7 differences per fixture, all intypescript_compiler/checker.ts(its one decorator hit, the template literal, goes 1 to 0, plus knock-on cluster-distance nudges and digests).pr_gates.py --fast: 9/9 pass.audit_check.py: all clear. Baseline and grid regenerated (family_oracle_sweep.py --write,family_validity_chart.py --write).Facts checked: red cells re-measured on a scan of the pinned crucible's
data/typescript; the doc over-count list read function by function.Lessons for agents
doccolumn isis_documented(a positional anchor pass in the detector), not thedocregex; a per-function dump needs theis_documentedandstruct_decoratorscolumn names.family_oracle_sweep.py --writealso rewrites other languages' cells when main moved since the last sweep; keep the baseline diff to your own language.Doc-refs fixes: none.
🤖 Generated with Claude Code