Repository navigation
Rust oracle reads the ? operator as a branch: last #8868 decision, precision 0.76 -> 0.99 (Part of #8863, #8868) - #9369
Merged
Conversation
…, branch precision 0.76 -> 0.99 (Part of #8863, #8868) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
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, #8868.
Checklist: done [c:813118c2]
What
The one #8868 row still listed as an open question was Rust
?as abranch(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-sittertry_expressionto the oracle's Rustbranch_typestakes 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 amatch), so it is a runtime choice between paths. Corollary 3 excludes only unconditional transfers. The engine rule is unchanged (?Sizedand?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
tests/tools/family_oracle_ts.py(Rust entry only):try_expressionas a branchtests/extraction/languages/test_rust_strict.py,tests/tools/test_family_oracle_readings.py: pins both directionsdocs/branch_rule_contract.md,docs/agents/family-validity-checklist.md: ruling recorded; no Keyword families in Go, Rust, JavaScript, TypeScript, Java, C: per-language differences that need a definition decision #8868 question left openFacts checked
Re-score before/after on the crucible as above;
audit_check.pyall 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.replaceonfamily_oracle_ts.SPECS[lang]) before editing anything.🤖 Generated with Claude Code