Skip to content

Rust oracle reads the ? operator as a branch: last #8868 decision, precision 0.76 -> 0.99 (Part of #8863, #8868) - #9369

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

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8863-20261126T0507Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8863, #8868.

Checklist: done [c:813118c2]

What

The one #8868 row still listed as an open question was Rust ? as a branch (recall 1.00 / precision 0.76, 702 hits vs 530 from the parser). Measured on the pinned crucible (v1.9.0, data/rust): adding tree-sitter try_expression to the oracle's Rust branch_types takes precision to 0.99 (694 oracle vs 702 engine) and nothing else moves. So the whole gap was ?.

Ruling, from the contract: ? is a conditional early return (Ok continues, Err leaves; it desugars to a match), so it is a runtime choice between paths. Corollary 3 excludes only unconditional transfers. The engine rule is unchanged (?Sized and ? in literals already excluded, pinned); the oracle was the side that was wrong. No engine change, so no golden bless and no rosetta/CPU impact.

Files

Facts checked

Re-score before/after on the crucible as above; audit_check.py all clear; Rust strict, oracle readings, oracle langs, chart tests pass (402).

Sibling gaps (own per-language issues, no burned estate needs them)

C bitwise/panics/io/debug_prints/time (#9334); Rust io and thread_sleeps (#9340); Java closures/debug_prints/time (#9336).

Cross-repo

None.

Lessons for agents

A "which side is wrong" red cell can be settled by re-scoring with a patched oracle spec in a scratch script (dataclasses.replace on family_oracle_ts.SPECS[lang]) before editing anything.

🤖 Generated with Claude Code

…, branch precision 0.76 -> 0.99 (Part of #8863, #8868)

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 05:14
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 05:14
@squid-shepherd
squid-shepherd Bot merged commit 4d9eb1f into main Nov 26, 2026
65 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8863-20261126T0507Z branch November 26, 2026 05:33
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.

1 participant