Skip to content

TypeScript family validity: doc oracle reads property and parameter docs, decorators skip template placeholders (Part of #8863) - #9347

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8863-20261126T0040Z
Nov 26, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8863-20261126T0040Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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.

cell before (recall/precision) after cause class fix
doc 1.00 / 0.76 (729 fire, 557 oracle) 0.99 / 0.90 (728 fire, 661 oracle) oracle misses a form family_oracle_ts._documented now 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.
decorators 0.50 / 0.50 (2 fns) 0.50 / 1.00 (2 oracle fns) rule counts another construct (precision) the rule matched }@${ 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:

  • decorators recall: @memoize on 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.
  • A constructor directly under a class doc still counts as documented by the engine (anchor window) while the oracle says no; no ruling made.
  • Python io in 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: 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.
  • CPU, 3 alternating runs on <crucible>/data/typescript, mean user seconds: base 39.83, branch 39.79.
  • keyword-rosetta 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.
  • Goldens re-blessed with golden-lock.sh crucible_check.py --update --yes: 7 differences per fixture, all in typescript_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

  • The doc column is is_documented (a positional anchor pass in the detector), not the doc regex; a per-function dump needs the is_documented and struct_decorators column names.
  • family_oracle_sweep.py --write also 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

@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 00:58
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 00:59
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@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 Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 3048f71 into main Nov 26, 2026
130 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8863-20261126T0040Z branch November 26, 2026 01:10
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