Repository navigation
Family oracle: Python branch excludes boolean operators, short_circuit scored, readings ledger (Part of #8863, #8862) - #9252
Merged
Conversation
…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]>
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.
Summary
All 12
draftcontracts are alreadydeclared(#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'sbranchcounted boolean operators, which #8939 moved toshort_circuit(branch contract corollary 0), and no oracle scoredshort_circuit.tests/tools/family_oracle.py:branchdropsBoolOp; newshort_circuitfamily (columnstruct_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):
branch1.00 / 0.80 (over-counts, cause not traced),short_circuit1.00 / 0.96.No engine change, so no golden bless.
tests/family_validity_baseline.jsonis deliberately not touched:--update-baselineon 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
branchafter #8939 split them out). Members: Python oracle (fixed here); tree-sitter oracles for 15+ languages (not fixed, see below). Sibling gaps, in one list:family_oracle_ts.py(_COMMON_FAMILIES, operator handling at the&&/||branch),family_oracle_specs_a.py(branch_ops),family_oracle_specs_b.py(&&/||/??/||=),family_oracle_cases.jsonexpectations: still count boolean operators underbranch; needs a different mechanism (per-language ops) and more than 5 files.branchcells in the baseline are measured against the pre-feat(families): split boolean operators out of branch into short_circuit (leaf families, computed composites) #8939 reading until then.assertas an abort (Keyword families in Go, Rust, JavaScript, TypeScript, Java, C: per-language differences that need a definition decision #8868),docform without/** */, generator expressions undercomprehensions,llm_apiabsence entries.Remaining slices
&&/||/and/ortoshort_circuitinfamily_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.Checklist: partial [c:a9dfa2bb] -- tree-sitter oracle realignment and owner rulings left
Cross-repo: none.
Lessons for agents
family_oracle.py --update-baselineagainst 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