Repository navigation
test: Check B must assert the unpinned sub-3.12 install is refused - #155
Merged
Merged
Conversation
Check B already knew about this gap and wrote it down — "An unpinned 3.11 install is not evidence because pip may select an older compatible release" — then tested only the pinned rejection. The unpinned path was the one users actually took, and until 2026-08-19 it silently installed the stale 2026.7.29.1 stack with no JAX and no warning. Adds check_b_unpinned_refused: an unpinned `pip install autolens` on 3.11 must fail, and fail for the right reason. A successful install is now a FAIL that says the sub-floor backtrack is back. verify_install_unpinned_refusal accepts the two shapes that mean refused — the tombstone raising during metadata preparation (the live path), and pip running out of candidates if the sub-floor catalogue is ever withdrawn. Anything else (network, resolver, dependency failure) is not floor evidence. Classifier verified against real captured pip output in both directions: a real 3.11 refusal classifies as a refusal, a real 3.12 success does not. Issue: PyAutoLabs/PyAutoHands#238 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The page repeated the old caveat — "An unpinned install is not sufficient evidence because pip may select an older compatible release" — which was written when the unpinned path was untested. It now has its own required leg. Restates it as two distinct guarantees: a pinned rejection proves this release holds the floor, and the unpinned install must be refused as well. The second was not met until 2026-08-19, when pip on 3.11 backtracked to 2026.7.29.1 and installed a stale JAX-less stack silently. Issue: PyAutoLabs/PyAutoHands#238 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Phase 2 of PyAutoLabs/PyAutoHands#238.
The gap Check B documented and then did not test
Check B already knew about this. Its own description said:
True — and then it tested only the pinned rejection. The unpinned path is the one users actually take, and until 2026-08-19 it did not fail at all:
pip install autolenson 3.9/3.10/3.11 backtracked to2026.7.29.1and installed a months-old, JAX-less stack with no warning. Heart's install verification was green throughout, because it never asked.What this adds
check_b_unpinned_refused— an unpinnedpip install autolenson 3.11 must fail, and fail for the right reason. A successful install is now a FAIL readingthe sub-floor backtrack is back, because that is precisely what it would mean.verify_install_unpinned_refusalaccepts the two shapes that mean refused:2026.7.29.1.post1tombstone raising during metadata preparation (the live path — its text comes from the build subprocess, not a pip resolver diagnostic, so it needs its own classifier);Anything else — network, resolver, dependency failure — is not floor evidence and stays a FAIL, matching the existing pinned classifier's discipline.
Verification
The classifier was checked against real captured pip output, not hand-written strings, in both directions:
Full suite: 500 passed.
One pre-existing test asserted the old
--helpwording and correctly failed; it is updated to assert the unpinned leg is advertised too, so the help cannot understate what Check B guarantees.API Changes
None. Check harness and its documentation only.
🤖 Generated with Claude Code