Skip to content

Family oracle: tree-sitter oracles count boolean operators under short_circuit, not branch (Part of #8863, #8862) - #9256

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8863-20261124T2250Z
Nov 24, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8863-20261124T2250Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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.py common path, family_oracle_specs_a.py C#/Kotlin/Swift/Scala, family_oracle_specs_b.py Ruby/PHP/Lua/shell) counted &&, ||, and, or (and shell &&/|| chaining, Ruby ||=/&&=, Kotlin/Swift conjunction/disjunction nodes) under branch. Branch contract corollary 0 (#8939) gives them to short_circuit. They now count under a new struct_short_circuit family, as the Python oracle does since #9252. PHP/C# ?? and ??= stay under branch (the short_circuit contract does not name them: owner reading, unchanged).

Tests

family_oracle_cases.json: 7 branch counts lowered, 13 short_circuit cases added over the nine languages; test_family_oracle.py: Go branch 2 -> 1 plus a Go short_circuit case. 362 pass.

Gates

pr_gates --fast 9/9, --ratchets 9 pass.

Facts checked

Class / Sibling gaps

Class: non-Python keyword-family oracles reading boolean operators as branch instead of short_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):

Remaining slices

  1. Update docs/family_oracle_readings.md (rows + remove "Not yet realigned").
  2. Rescan each corpus with family_oracle.py --lang X --corpus NAME --update-baseline (never on the self-scan DB for Python).

🤖 Generated with Claude Code

…t_circuit, not branch (Part of #8863, #8862)

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 24, 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 24, 2026 23:01
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 23:01
@squid-shepherd
squid-shepherd Bot merged commit 69feb46 into main Nov 24, 2026
59 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8863-20261124T2250Z branch November 24, 2026 23:25
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