Skip to content

JavaScript keyword families: bitwise_ops counts & and | in operator position, skips regex-literal characters (Part of #8863, #9342) - #9375

Merged
squid-shepherd[bot] merged 6 commits into
mainfrom
churn/9342-20261126T0621Z
Nov 26, 2026
Merged

squid-shepherd[bot] merged 6 commits into
mainfrom
churn/9342-20261126T0621Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Part of #8863. Closes #9342 (JavaScript keyword-family red cells).

What

JavaScript bitwise_ops was 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

  • one language, one PR (JavaScript)
  • cells re-measured on current main first
  • cause class, per the checklist's cause table: "rule counts a different construct" (regex-literal ^, [^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 reads binary_expression and compound assignment operators, which matches the contract, so no oracle change.
  • oracle before and after, pinned crucible (language-crucible v1.9.0, 71 oracle functions): recall 0.11 -> 0.97, precision 0.50 -> 0.94 (16 -> 73 functions fire).
  • regression tests with positives and false-positive forms: tests/extraction/languages/test_javascript_strict.py (&, |, x|0, |=, &= ~, ^=, >>= count; &&, ||, =>, regex anchors, negated classes, [<<], a|b alternation do not).
  • CPU, three alternating runs on data/javascript, mean user seconds: base 7.44, branch 7.50 (+0.8%, inside run noise: 7.33-7.62).
  • keyword-rosetta: rebless.py --dry-run refuses (expected_signals.json does not round-trip under indent=2), so verify_language.py javascript --engine <worktree> was used: PASS, 93 assertions. I did not run it against main; the engine change only adds counts.
  • golden masters blessed through 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; closures and doc were already green. Sibling gaps: TypeScript shares the regex-literal exposure for ^ / [^ in its own bitwise_ops rule; 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_execution in tests/family_validity_baseline.json on 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 --write rewrites 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

squid-protocol and others added 3 commits November 26, 2026 01:46
…position, skip regex-literal anchors and classes (Part of #8863, #9342)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e JavaScript bitwise_ops rule (#9342)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@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 07:09
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 07:14
@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 disabled auto-merge November 26, 2026 07:25
@squid-shepherd

Copy link
Copy Markdown
Contributor

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.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (ee43c3b) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 26, 2026 08:13
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 26, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@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 08:16
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 08:17
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 08:26
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9375 @ ee43c3b: 5 failed check(s)

== db2 ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45781355657/job/139777579366
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45781355673/job/139777580872
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== publish-history (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45781355621/job/139777735472
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45781355657/job/139777579089
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== store the suite's durations (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45781355673/job/139777580205
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)
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.

@squid-protocol squid-protocol removed the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@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 08:59
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 09:01
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 09:17
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9375 @ 0343709: 2 failed check(s)

== full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45786900595/job/139798201375
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== store the suite's durations (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45786900595/job/139798202953
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)
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.

@squid-shepherd squid-shepherd Bot added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 26, 2026
#9342)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (57a0450) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 26, 2026 09:56
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 26, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels 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 09:59
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 09:59
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot merged commit 0e4c6cb into main Nov 26, 2026
148 of 183 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/9342-20261126T0621Z branch November 26, 2026 10:23
squid-protocol added a commit that referenced this pull request Nov 26, 2026
…rt of #9335)

Main's PHP/JS/C family PRs (#9370, #9375, #9373) conflicted in generated files;
took main's side and regenerated each with its tool. Drift vs main: C++ only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

Keyword families (JavaScript): 3 red cells on the pinned crucible (Part of #8863)

1 participant