Skip to content

fix: --write-baseline refuses a dev-source stack#5

Merged
Jammy2211 merged 1 commit into
mainfrom
fix/write-baseline-dev-stack-guard
Jul 10, 2026
Merged

fix: --write-baseline refuses a dev-source stack#5
Jammy2211 merged 1 commit into
mainfrom
fix/write-baseline-dev-stack-guard

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Closes the recurrence path of the PR #3 CI catch: nightly releases are wheels/tags-only, so dev-source stacks permanently report the last-committed version (2026.7.6.649 today) while PyPI moves on. --write-baseline now refuses such a stack (override: --allow-dev-stack), with the clean-venv procedure in the error message and the skill doc. Regression test added (suite 53/53); verified live in both directions — the release-wheel venv writes a byte-identical baseline.

The permanent automation half is the already-filed PyAutoBuild wiring prompt (baseline regenerated from the release wheel at each release, as autolens_assistant gets today).

🤖 Generated with Claude Code

…stack

Nightly releases are wheels/tags-only: source main never gets a version-bump
commit, so a source-checkout/PYTHONPATH/editable stack reports the
last-committed version string (currently 2026.7.6.649) while PyPI moves on.
A baseline snapshotted from one silently pins a version the release train
has passed — the exact incident the wiki-currency CI caught on PR #3.

write_baseline() now inspects the install kind and refuses dev stacks with
a message naming the clean-venv procedure (env -u PYTHONPATH matters: an
ambient PYTHONPATH aliases even a fresh venv back to local source);
--allow-dev-stack overrides deliberately. Regression test added; the skill
documents the guard. Verified live: dev stack refused, release-wheel venv
writes a byte-identical baseline.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit b784882 into main Jul 10, 2026
1 check passed
@Jammy2211
Jammy2211 deleted the fix/write-baseline-dev-stack-guard branch July 10, 2026 16:35
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