Skip to content

Family oracle: Python branch excludes boolean operators, short_circuit scored, readings ledger (Part of #8863, #8862) - #9252

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8863-20261124T2218Z
Nov 24, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8863-20261124T2218Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

All 12 draft contracts are already declared (#9197, #9199, #9207), and the contracts answer #8862's five questions. What was left of the item is ratifying the oracles' readings. Comparing each oracle sentence with its contract found one real divergence: the Python oracle's branch counted boolean operators, which #8939 moved to short_circuit (branch contract corollary 0), and no oracle scored short_circuit.

  • tests/tools/family_oracle.py: branch drops BoolOp; new short_circuit family (column struct_short_circuit); the docstring no longer says the sentences are provisional until Keyword families: five definition questions for the owner (json, generators, closures, cleanup, telemetry) #8862 is answered.
  • docs/family_oracle_readings.md (new): one row per oracle family with the contract sentence, the oracle sentence, a verdict (aligned / realigned / added / open question) and the open owner questions.
  • tests/tools/test_family_oracle.py: new branch and short_circuit cases, plus a test that each oracle family has a contract and a row in the ledger.

Self-scan DB, Python (29,706 functions, exploratory): branch 1.00 / 0.80 (over-counts, cause not traced), short_circuit 1.00 / 0.96.

No engine change, so no golden bless. tests/family_validity_baseline.json is deliberately not touched: --update-baseline on the self-scan DB would replace every Python cell with a different corpus.

Class / Sibling gaps

Class: an oracle reading that disagrees with its signal contract (here, boolean operators counted under branch after #8939 split them out). Members: Python oracle (fixed here); tree-sitter oracles for 15+ languages (not fixed, see below). Sibling gaps, in one list:

Remaining slices

  1. Tree-sitter oracles: move &&/||/and/or to short_circuit in family_oracle_ts.py, family_oracle_specs_a.py, family_oracle_specs_b.py, family_oracle_cases.json (+ test), then rebaseline the non-Python branch cells and the chart.
  2. Rulings on the open owner questions in the ledger, once answered.

Checklist: partial [c:a9dfa2bb] -- tree-sitter oracle realignment and owner rulings left

Cross-repo: none.

Lessons for agents

  • family_oracle.py --update-baseline against the self-scan DB replaces every cell of that language with the new corpus; use it only with the corpus the baseline already names.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 24, 2026 17:24
…t scored, readings ledger (Part of #8863, #8862)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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 22:31
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 22:32
@squid-shepherd
squid-shepherd Bot merged commit 1687336 into main Nov 24, 2026
59 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8863-20261124T2218Z branch November 24, 2026 22:48
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