Repository navigation
TypeScript keyword families: io, closures, bitwise_ops, thread_sleeps read their contracts (Part of #8863) - #9318
squid-protocol wants to merge 12 commits into
Conversation
… bitwise_ops read their contracts (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…lessed) (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…be re-blessed (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…rt of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #9318 @ e03404f: 1 failed check(s) == rosetta-audit (failure) -- real |
… (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (4d48146) is not the one a maintainer labelled |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Waiting on an owner decision (asked privately, 2026-11-25). Nothing is needed from contributors; work resumes once it is answered. |
…ersedes #9313 #9318 #9323) (#9325) * fold #9313, #9318, #9323: hand-written changes (Go, TypeScript, Crystal); goldens follow in the bless commit Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * rebless: one bless for the folded Go, TypeScript and Crystal changes Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
|
Superseded by merged #9325 (one rebless for Go/TypeScript/Crystal). |
Part of #8863
Checklist: partial [c:typescript] (five red cells fixed;
docstill reads 0.764 precision, see below)What changed
TypeScript keyword families re-read against their contracts, scored on the pinned language-crucible (v1.9.0, re-swept after the pin bump #9307):
io: operative forms only (fetch(,fs.,axios,XMLHttpRequest, web storage,child_process,http.get/request/...,require('fs'|'net'|...), barereadFile/writeFile/createRead|WriteStream);path.*and the bare wordfsno longer count.closures: anonymous callables only; type-position arrows are excluded and the unit's own leading arrow is skipped via(?!\A).decorators: a decorator in operative position (line start, or after( , ; { }), so@inside strings, emails and template literals no longer counts.thread_sleeps:get delay()/set delay()/function delaydeclarations excluded;Atomics.waitadded.bitwise_ops:&and|count between value operands, not in type position (A | B,string | number).tests/tools/family_oracle_ts.py): reads a doc aboveexport function/export const f = ..., and counts parameter decorators. Both were oracle misses, not engine faults.Plan correction:
time_date_logicwas already green, and the oracle needed two fixes the plan did not list.Evidence
tests/test_typescript_family_validity_8863.py.family_oracle_sweep.py --write, restricted to the typescript cells; SVGs regenerated. No other language's cell moved.golden-lock.sh crucible_check.py --update --yes, after merging main (Swift keyword families: closures, decorators and thread_sleeps read their contracts (Part of #8863) #9312 swift). The drift is TypeScript only: bitwise, closures, decorators, io and sleeps signal parts, plus the function-archetype distribution and repository fingerprint parts that read them.language-crucible/data/typescript, three alternating runs, one worker: base 30.86 / 31.69 / 31.57 s, branch 31.36 / 31.54 / 31.49 s. No slowdown.audit_check.pyclean;pr_gates.py --fast9/9.Cross-repo
Companion: keyword-rosetta. Its TypeScript plant
data/typescript/main.tsprobeIouses the bare identifiersfetch,axios,fs(expects io 3); the branch reads 1 (axios).verify_language.py typescriptshows that mismatch on this branch and not on main. Merge this PR first, then change the plant to operative forms (fetch(url),fs.readFileSync(p)); labelrosetta:rebless-owed. The twocalls_out_tomismatches it also prints (probeSafety,probeTest) are on main too.Class / Sibling gaps
docprecision is 0.764: the engine's doc anchor window is 5 lines above the unit, so a docblock over a field, a parameter or an enclosingexport constis attributed to the next function. That is an engine constant shared by every language, not a TypeScript rule.decoratorshas two oracle functions in the crucible; the cell is not measurable until a corpus with decorated TypeScript is pinned.type X = (a) => T) still counts as a closure; a multi-line bitwise expression with a trailing|at line end is not caught; a decorator above a getter lies outside the function slice; the oracle's bitwise list lacks>>>.closures,io,thread_sleeps) and was not touched.Not in this PR
The
docwindow fix, the keyword-rosetta plant change, JavaScript.Lessons for agents
--dbtakes a scan of<crucible>/data, not a subtree: a scan of one language's folder scores 0 matched.family_oracle_sweep.py --writerewrites every language's cells, including ones that moved on main since the baseline was written; keep only your language's cells and re-dump withindent=1, sort_keys=True.🤖 Generated with Claude Code