Skip to content

Rust keyword families: bitwise counts binary & and |, io skips error/address types, oracle reads macro-argument calls (Part of #8863) - #9372

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/9340-20261126T0612Z
Nov 26, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/9340-20261126T0612Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8863. Refs #9340.

Checklist: done [c:645d8e80]

What changed

Rust cells on the pinned crucible, before -> after (weaker of recall / precision):

  • bitwise_ops: recall 0.957, precision 0.978 (46 engine vs 47 oracle). The rule counted only <<, >>, ^; it now also counts &=, |= and binary & / | in operator position. >> needs preceding whitespace so Poll<Result<()>> no longer fires; a | needs a space before it (closure pipes have none) and no => later on the line (or-patterns).
  • io: recall 1.0, precision 0.971 (34 oracle, 35 engine). Rule skips std::io::{Error,ErrorKind,Result,IoSlice,IoSliceMut} and the std::net address types, which name a value that crosses no boundary; adds UnixDatagram::. Oracle (family_oracle_ts.py) now reads fs::metadata/rename/remove_dir*, File::, OpenOptions::, socket types, and path calls inside a macro token tree (assert_ok!(TcpListener::bind(..))), which the grammar leaves opaque.
  • thread_sleeps: 1.0 / 0.891 on tokio (unpinned). Already fixed by Rust bare exit, sleep and named-type io forms follow their contracts (Part of #8863, #8868) #9231; the baseline was stale.
  • branch: 0.99 / 1.0 (green since Rust oracle reads the ? operator as a branch: last #8868 decision, precision 0.76 -> 0.99 (Part of #8863, #8868) #9369). family_red_cells.py --lang rust: 0 red cells.

Cause classes: bitwise_ops missing construct (rule); io rule counts another construct (type paths) plus oracle misses a form (macro arguments).

Golden bless

Via golden-lock.sh crucible_check.py --update --yes. Only two Rust-attributed section files moved (bitwise_operations, file_network_i_o) plus the derived snapshots/fingerprint. No other language's section changed.

Gates

audit_check.py all clear; pr_gates --fast 9/9; ruff format clean on changed files; 386 targeted tests pass. Baseline regenerated with family_oracle_sweep.py --write plus the tokio --update-baseline; charts regenerated.

Not run

keyword-rosetta rebless/verify for Rust and the CPU A/B timing were not run; the rule change adds alternations to one regex, so a reviewer may want the rosetta check before merge.

Lessons for agents

  • A >> guard must require whitespace before it: )>> is a generic closer (Poll<Result<()>>), not a shift.
  • The tree-sitter Rust grammar leaves macro arguments as a flat token tree: a call inside assert_ok!(...) is invisible to the oracle unless the token text is scanned.

Sibling gaps

None found in other Rust cells; other languages' bitwise_ops were not examined.

Remaining slices

None for the Rust red cells.

Facts checked: family_red_cells.py --lang rust reports 0; baseline cells read from tests/family_validity_baseline.json after regeneration.

🤖 Generated with Claude Code

…address types, oracle reads calls inside macro arguments (Part of #8863, #9340)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@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 06:32
@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 06:47
@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 merged commit b8eb1e3 into main Nov 26, 2026
127 of 128 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/9340-20261126T0612Z branch November 26, 2026 06:47
squid-protocol added a commit that referenced this pull request Nov 26, 2026
…ng main (#9335)

Main's versions of the generated files were taken at the merge (b8eb1e3, #9372), then regenerated:
family_oracle_sweep.py --write, family_validity_chart.py --write, and crucible_check.py --update --yes
under golden-lock.sh. All golden drift is in cpp files (116 changed per-file entries in the signal and
graph parts); the C++ cell numbers are the same as before the merge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant