Repository navigation
Family oracle: tree-sitter oracles count boolean operators under short_circuit, not branch (Part of #8863, #8862) - #9256
Merged
Conversation
…t_circuit, not branch (Part of #8863, #8862) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Open
21 of 34 tasks
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 (#8862 contract readings). Checklist: partial [c:a9dfa2bb] -- tree-sitter oracles realigned; readings page rows, real-repo baseline rescans and owner readings remain.
What
The non-Python oracles (
family_oracle_ts.pycommon path,family_oracle_specs_a.pyC#/Kotlin/Swift/Scala,family_oracle_specs_b.pyRuby/PHP/Lua/shell) counted&&,||,and,or(and shell&&/||chaining, Ruby||=/&&=, Kotlin/Swift conjunction/disjunction nodes) underbranch. Branch contract corollary 0 (#8939) gives them toshort_circuit. They now count under a newstruct_short_circuitfamily, as the Python oracle does since #9252. PHP/C#??and??=stay underbranch(the short_circuit contract does not name them: owner reading, unchanged).Tests
family_oracle_cases.json: 7 branch counts lowered, 13short_circuitcases added over the nine languages;test_family_oracle.py: Go branch 2 -> 1 plus a Go short_circuit case. 362 pass.Gates
pr_gates --fast9/9,--ratchets9 pass.Facts checked
draftcontracts are alreadydeclared(Contracts: safety_bypasses, doc, planned_debt, fragile_debt, telemetry go draft -> declared with measured incidence (Part of #8863) #9207 and earlier);CONTRACTShas 0 drafts.assertan abort forpanics_and_aborts(Keyword families in Go, Rust, JavaScript, TypeScript, Java, C: per-language differences that need a definition decision #8868, C precision 0.48)? Which doc form counts fordocwithout/** */? Docomprehensionsinclude generator expressions? Is??a short_circuit operator?Class / Sibling gaps
Class: non-Python keyword-family oracles reading boolean operators as
branchinstead ofshort_circuit(branch contract corollary 0). Members handled: the common tree-sitter path (Go, Java, JS, TS, Rust, C and the like), C#, Kotlin, Swift, Scala, Ruby, PHP, Lua, shell, C++. Sibling gaps (one list):docs/family_oracle_readings.md: non-Python rows and the "Not yet realigned" section are now stale (not edited: 5-file cap).tests/family_validity_baseline.json: non-Pythonbranchcells were measured on the old reading and there is noshort_circuitcell; needs per-corpus rescans (redis, jellyfin, okhttp, kafka, vapor, wordpress, brew, language-crucible), not run here.Remaining slices
docs/family_oracle_readings.md(rows + remove "Not yet realigned").family_oracle.py --lang X --corpus NAME --update-baseline(never on the self-scan DB for Python).🤖 Generated with Claude Code