Skip to content

bitwise_ops: a >> closing a generic list is not a shift (Java, Rust, TypeScript, C#) - #8901

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8866-bitwise-generics
Nov 21, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8866-bitwise-generics

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #8866

What changed

The bitwise_ops shift pattern in Java, Rust, TypeScript and C# counted the >> that closes a nested generic list (Map<String, List<String>>) as a right shift. The >> / >>> alternative now counts only after whitespace, ) or ] (a >> 2), or between two word characters (a>>2). >>= keeps counting. A >> after a word character and followed by a space, (, ,, ; or { is a generic close and no longer counts.

New test: tests/extraction/languages/test_bitwise_generics_8866.py (nested generics score 0, real shifts score as before, in all four languages; Java >>>).

Class / Sibling gaps

Class: a bitwise_ops rule whose shift alternative cannot tell a closing generic >> from a shift. Handled here: Java, Rust, TypeScript, C#. C++ has no bare >> alternative (only >>=), Kotlin and Python have no such alternative, and Go has no nested generic >>: none of them is affected.

Sibling gaps (no burned-estate program needs any; all are core engine, not frontier):

Golden / rosetta

Golden masters re-blessed through golden-lock.sh crucible_check.py --update --yes. Every mismatch listed is in the Java, Rust or TypeScript corpus, and the groovy corpus's .java files (scanned with the Java rule). Bitwise Operations counts drop, for example the groovy corpus's DefaultProject.java goes 5 -> 0. A control run was not needed: drift is limited to the signal changed.

rosetta:rebless-owed: keyword-rosetta bitwise_ops counts will move for these four languages. CPU timing was not measured separately; the change adds two lookarounds to an alternation of single characters, with no unbounded quantifier.

Gates: pr_gates --fast 9/9, --ratchets 9 pass / 0 fail, strict suites for the four languages green (464 tests).

🤖 Generated with Claude Code

…TypeScript, C#) (Closes #8866)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 21, 2026 14:35
@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 21, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 21, 2026 14:58
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 37237fc into main Nov 21, 2026
75 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8866-bitwise-generics branch November 21, 2026 16:59
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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.

bitwise_ops: counts closing generics as a shift and ignores & and | that its contract names; string text counts by design (#2535) against the contract

1 participant