Repository navigation
JavaScript keyword families: bitwise_ops counts & and | in operator position, skips regex-literal characters (Part of #8863, #9342) - #9375
Conversation
|
No description provided. |
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
CI shepherd: the head of this PR (ee43c3b) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #9375 @ ee43c3b: 5 failed check(s) == db2 ${{ matrix.shard }} (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == publish-history (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == store the suite's durations (cancelled) -- infra |
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #9375 @ 0343709: 2 failed check(s) == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == store the suite's durations (cancelled) -- infra |
#9342) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
CI shepherd: the head of this PR (57a0450) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
No description provided. |
Part of #8863. Closes #9342 (JavaScript keyword-family red cells).
What
JavaScript
bitwise_opswas the only red cell left on the pinned crucible. The rule<<|>>>?|\^|~had no binary&or|and no&=/|=, and it counted a regex literal's^anchor,[^x]class and[<<]as bitwise. It now counts a bitwise operator in operator position only (an operand is a word,$,)or]), including the compound assignments;|needs a space after it or a digit (x|0), so/a|b/is not counted.Family-validity checklist
closures(recall 0.96, precision 0.31 in the issue): no change, already green (the baseline on main and a fresh sweep read it as ok).doc: no change, already green (JavaScript doc oracle reads a doc above export, declaration, property, field and assignment wrappers (Part of #8863, #8868) #9365).bitwise_ops: changed.^,[^x],[<<]) plus "a real missing keyword" (&,|,&=,|=, found in the oracle's missed list|:50, &:43, |=:29). The oracle was checked against the contract first: it readsbinary_expressionand compound assignment operators, which matches the contract, so no oracle change.language-crucible v1.9.0, 71 oracle functions): recall 0.11 -> 0.97, precision 0.50 -> 0.94 (16 -> 73 functions fire).tests/extraction/languages/test_javascript_strict.py(&,|,x|0,|=,&= ~,^=,>>=count;&&,||,=>, regex anchors, negated classes,[<<],a|balternation do not).data/javascript, mean user seconds: base 7.44, branch 7.50 (+0.8%, inside run noise: 7.33-7.62).rebless.py --dry-runrefuses (expected_signals.jsondoes not round-trip under indent=2), soverify_language.py javascript --engine <worktree>was used: PASS, 93 assertions. I did not run it against main; the engine change only adds counts.golden-lock.sh crucible_check.py --update --yes, then main merged and regenerated (never hand-merged).Golden diff attribution
Both fixtures:
bitwise_operations.json(the signal), plus knock-ons from it:function_archetype*,composition_fit_z_score,repository_drift_centroid_distance,repository_fingerprint,gpu_json,graph_sqlite. All 9 files per fixture; no other signal file moved.Class / Sibling gaps
Class: a keyword-family rule that reads a different construct than its contract states, so the cell is red on the pinned crucible (here JavaScript
bitwise_ops: missing binary&/|and compound forms, over-counting regex-literal characters). Same-mechanism members in JavaScript: the compound assignments (&= |= ^= <<= >>= >>>=), covered and tested here;closuresanddocwere already green. Sibling gaps: TypeScript shares the regex-literal exposure for^/[^in its ownbitwise_opsrule; its cell is not in this issue and its status was not re-measured here, so it is left to the TypeScript family-validity issue (no burned-estate program needs it).Note for the baseline:
rust/regex_executionintests/family_validity_baseline.jsonon main is a stale non-pinned cell (tokio, 6826 functions); a fresh sweep rewrites it as pinned. I left it out of this PR to keep the diff to JavaScript.Gates
pr_gates.py --fast: 9/9 pass.--ratchets: 9 pass, 0 fail, 0 skipped.family_red_cells.py --lang javascript: 0 red cells. Baseline, chart and red-cell tests: 131 pass.Checklist: partial [c:5a9cbef7] -- any JavaScript red cell not at 0.8 on the pinned crucible is listed above with its contract question
Cross-repo
None: no companion PR; keyword-rosetta checked as above, nothing owed.
Lessons for agents
family_oracle_sweep.py --writerewrites every cell it re-measures, including unrelated stale ones (a rust cell here); copy only your language's cells into the baseline when attributing a diff to one language.🤖 Generated with Claude Code