Skip to content

test: Check B must assert the unpinned sub-3.12 install is refused - #155

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/sub-312-install-tombstone
Aug 19, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/sub-312-install-tombstone

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

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:

An unpinned 3.11 install is not evidence because pip may select an older compatible release.

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 autolens on 3.9/3.10/3.11 backtracked to 2026.7.29.1 and 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 unpinned pip install autolens on 3.11 must fail, and fail for the right reason. A successful install is now a FAIL reading the sub-floor backtrack is back, because that is precisely what it would mean.

verify_install_unpinned_refusal accepts the two shapes that mean refused:

  • the 2026.7.29.1.post1 tombstone 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);
  • pip running out of candidates, if the sub-floor catalogue is ever withdrawn instead.

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:

  • real 3.11 refusal against live PyPI → classified as a refusal (exit 0);
  • real 3.12 successful resolution → not classified as a refusal (exit 1).

Full suite: 500 passed.

One pre-existing test asserted the old --help wording 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

Jammy2211 and others added 2 commits August 19, 2026 18:51
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>
@Jammy2211 Jammy2211 changed the title test: Check B must assert the unpinned sub-3.12 install is refused docs: correct the install page — wrong failure mode, wrong cut release, wrong support range Aug 19, 2026
@Jammy2211 Jammy2211 changed the title docs: correct the install page — wrong failure mode, wrong cut release, wrong support range test: Check B must assert the unpinned sub-3.12 install is refused Aug 19, 2026
@Jammy2211
Jammy2211 merged commit 7557182 into main Aug 19, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/sub-312-install-tombstone branch August 19, 2026 23:04
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.

1 participant