You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
branch: short-circuit boolean operators are counted in some languages and not others; Zig's rule lists && and || that Zig does not have #8905
bugUnintended behavior or logic failure in the engineclaim:melekcore-engineModifications to the central physics and parsing enginepriority: mediumquestionFurther information or community discussion requested
Short-circuit boolean operators are counted as branch inconsistently across languages, and the contract is silent. The branch contract (docs/branch_rule_contract.md) names if/else/case/default/loops and the ternary and ?? value-selection operators; it says nothing about &&, ||, and or or. The engine's own rules disagree:
contractC { function sol_and(boola, boolb) publicpurereturns (bool) { return a && b; } } // struct_branch == 0
Expected
Decide once whether a short-circuit boolean operator opens a runtime choice ("a keyword or operator that opens a runtime choice between control-flow paths": it arguably does, since the right operand runs only on one path), write it into the branch contract, and make every language's rule agree. If yes: add and/or for Zig (and drop the dead &&/||), and &&/|| for Java and Solidity; if no: remove them from C, C++, Go, JavaScript, Python and PowerShell.
Found by the keyword-family validity tool (#8864): the oracle counts boolean operators because the engine's C, Go and Python rules do, and the disagreement shows up as branch recall of 0.91 (Zig, Solidity) against 0.98-1.00 elsewhere.
Part of #8863. A contract decision first (#8862); then time each rule change.
Another language for the table: Groovy does not count && or || in branch (a && b || c scores 0, verified), so it joins Java, Solidity and Zig on the 'not counted' side while C, Go, Python and PowerShell count them.
Another language for the table: Nim does not count boolean and/or in branch (a and b or a scores 0, verified), joining Java, Solidity, Zig and Groovy on the 'not counted' side.
Decision (owner, 2026-11-21): boolean operators become their own leaf family short_circuit; branch keeps constructs and arms; composite decision_points = branch + short_circuit. Implemented in the draft PR linked below; it supersedes #8937 (Zig). Plan for the other broad families: docs/family_levels.md in that PR.
Claimed by promoter-bot host melek, lease renewed 2026-11-24T12:53Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.
Verify-first check against main at beb46cf (after #8939): every row of the table is now decided.
Contract: docs/branch_rule_contract.md section 0 assigns boolean operators to the short_circuit family.
Each language's short_circuit rule is: C, C++, Go, JavaScript, Java, Solidity and Groovy &&|\|\|; Python, Zig and Nim \b(?:and|or)\b; PowerShell -and|-or|-xor.
The Zig branch rule is if|else|switch|while|for|orelse; the dead &&/|| is gone.
Repros (galaxyscope on the Zig, Solidity and Java snippets): each file scores struct_branch=0 and struct_short_circuit=1. The operator is counted in its own family, not in branch.
No code change is needed; recommend closing as resolved by #8939.
bugUnintended behavior or logic failure in the engineclaim:melekcore-engineModifications to the central physics and parsing enginepriority: mediumquestionFurther information or community discussion requested
Activity
squid-protocol commentedon Nov 21, 2026
Another language for the table: Groovy does not count
&&or||inbranch(a && b || cscores 0, verified), so it joins Java, Solidity and Zig on the 'not counted' side while C, Go, Python and PowerShell count them.squid-protocol commentedon Nov 21, 2026
Another language for the table: Nim does not count boolean
and/orinbranch(a and b or ascores 0, verified), joining Java, Solidity, Zig and Groovy on the 'not counted' side.squid-protocol commentedon Nov 21, 2026
Decision (owner, 2026-11-21): boolean operators become their own leaf family
short_circuit;branchkeeps constructs and arms; compositedecision_points = branch + short_circuit. Implemented in the draft PR linked below; it supersedes #8937 (Zig). Plan for the other broad families: docs/family_levels.md in that PR.squid-protocol commentedon Nov 21, 2026
PR: #8939 (draft).
feat(families): split boolean operators out of branch into short_circ…
squid-protocol commentedon Nov 24, 2026
Claimed by promoter-bot host
melek, lease renewed 2026-11-24T12:53Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove theclaim:meleklabel.squid-protocol commentedon Nov 24, 2026
Verify-first check against main at beb46cf (after #8939): every row of the table is now decided.
docs/branch_rule_contract.mdsection 0 assigns boolean operators to theshort_circuitfamily.short_circuitrule is: C, C++, Go, JavaScript, Java, Solidity and Groovy&&|\|\|; Python, Zig and Nim\b(?:and|or)\b; PowerShell-and|-or|-xor.branchrule isif|else|switch|while|for|orelse; the dead&&/||is gone.struct_branch=0andstruct_short_circuit=1. The operator is counted in its own family, not inbranch.No code change is needed; recommend closing as resolved by #8939.
squid-protocol commentedon Nov 24, 2026
Closing: every row of the table is decided on main by #8939 (short_circuit split); evidence in the worker's comment above.
squid-protocol commentedon Nov 24, 2026
Churn run
8905-20261124T1307Z(host melek) ended without a PR. already resolved by #8939; issue closed, no PR