Repository navigation
Rust keyword families: bitwise counts binary & and |, io skips error/address types, oracle reads macro-argument calls (Part of #8863) - #9372
Merged
Conversation
…address types, oracle reads calls inside macro arguments (Part of #8863, #9340) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
1 task done
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 soPoll<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 skipsstd::io::{Error,ErrorKind,Result,IoSlice,IoSliceMut}and thestd::netaddress types, which name a value that crosses no boundary; addsUnixDatagram::. Oracle (family_oracle_ts.py) now readsfs::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_opsmissing construct (rule);iorule 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.pyall clear;pr_gates --fast9/9; ruff format clean on changed files; 386 targeted tests pass. Baseline regenerated withfamily_oracle_sweep.py --writeplus 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
>>guard must require whitespace before it:)>>is a generic closer (Poll<Result<()>>), not a shift.assert_ok!(...)is invisible to the oracle unless the token text is scanned.Sibling gaps
None found in other Rust cells; other languages'
bitwise_opswere not examined.Remaining slices
None for the Rust red cells.
Facts checked:
family_red_cells.py --lang rustreports 0; baseline cells read fromtests/family_validity_baseline.jsonafter regeneration.🤖 Generated with Claude Code