Skip to content

fix(efficacy): score every build on the spec's Python 3.12 - #101

Merged
braboj merged 3 commits into
mainfrom
fix/score-on-spec-python
Nov 1, 2026
Merged

braboj merged 3 commits into
mainfrom
fix/score-on-spec-python

Conversation

@braboj

@braboj braboj commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

The scorer now builds every trial's environment on Python 3.12, the spec's version, instead of its own interpreter.
Round 5c was scored on 3.14.8, which refused three builds capped below 3.13.

Where Change
score.py create_venv uses spec_interpreter(): the scorer's own Python if 3.12, else py -3.12, else python3.12
score.py No 3.12 found → the scorer refuses to score
score.py Every build and change score records "python", the version it installed on
ch. 2, ch. 7 The Python 3.12 rows say it is enforced
round-5d.md 13d.5 lists the fix as done before the first trial

Before → after, a build with requires-python = ">=3.12,<3.13":

before: ERROR: Package 'tariff' requires a different Python: 3.14.8 not in '<3.13,>=3.12'
after:  installs on 3.12.x

New self-test checks, the first two failing without the fix:

  • a scoring environment runs the spec's Python
  • a build capped below Python 3.13 installs (a hand-built wheel, no network)
  • no Python at the spec's version refuses to score

Self-tests: score.py 66/66, security.py 29/29, judge.py 35/35, progress.py 23/23, pyflakes clean.

Not in this PR: re-scoring round 5c's hybrid-3, inline-5 and skills-4 as a post-hoc reading.

Closes #100

🤖 Generated with Claude Code

https://claude.ai/code/session_01DpT5xQeiWaKvHqQNHTU1uJ

braboj and others added 2 commits November 1, 2026 12:12
The scorer made each trial's environment from its own interpreter, which was
Python 3.14.8 for round 5c. Three builds that capped `requires-python` below
3.13, as the spec's "Python 3.12" invites, were refused at install and scored
zero on every row after it.

Every environment is now made on Python 3.12, found as the scorer itself, as
`py -3.12` or as `python3.12`; without one the scorer refuses to score. Each
score records the version it installed on.

Closes #100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xQeiWaKvHqQNHTU1uJ
… Windows

A root holding scores installed on another Python, or on an unrecorded one,
is refused by the scorer, and a round whose scores span two Pythons by the
report. Round 5c's `none` is re-scored on 3.12 before round 5d reads it.

The fallback `python3.12` is resolved on the path before it is launched:
Windows reads `.12` as an extension and adds no `.exe`.

Refs #100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xQeiWaKvHqQNHTU1uJ
@braboj

braboj commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Codex review, round 1 (gpt-6-astra, effort high): 2 findings, both fixed in f64a485.

# Severity Finding What became of it
1 P1 Cached or reused scores from Python 3.14 could sit beside new 3.12 ones Fixed: the scorer refuses a root holding scores on another or unrecorded Python; the report refuses a round whose scores span two. Round 5c's none is re-scored on 3.12 before 5d reads it (registered in 13d.5)
2 P2 python3.12 fails to launch on Windows: .12 reads as an extension Fixed: the name is resolved with shutil.which first

New checks, each failing without its fix:

  • a dotted interpreter name on the path is found (fails without shutil.which)
  • scorer: a score on another Python, or unrecorded, refuses the root
  • report: scores on two Pythons, or recorded beside unrecorded, are refused

Self-tests: score.py 70/70, report.py 166/166, pyflakes clean.

The scorer read only the scores of the task it was about to score, so a
change task could be scored beside build scores on another Python, which the
report then refuses. It now reads both before it scores either.

Refs #100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xQeiWaKvHqQNHTU1uJ
@braboj

braboj commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Codex review, round 2: 1 finding, fixed in 6f52222.

# Severity Finding What became of it
1 P2 The scorer checked only the task it was scoring, so a change task could be scored beside build scores on another Python, which the report then refuses Fixed: it reads both scores and scores-change before scoring
  • new check: a change task's score on another Python refuses the root (fails without the fix)

Self-tests: score.py 71/71, pyflakes clean.

@braboj

braboj commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Codex review, round 3: no findings. The loop ends here; ready for the owner's approval.

@braboj
braboj merged commit 3728b80 into main Nov 1, 2026
2 checks passed
@braboj
braboj deleted the fix/score-on-spec-python branch November 1, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Score builds on the spec's Python 3.12, not the scorer's 3.14

1 participant