feat: version_skew checks compatibility floor vs newest release tag#96
Merged
Conversation
The old version_skew compared a workspace's recorded pin (workspace_version / version.txt) against the library __init__.py __version__ stamp. Both artifacts are now frozen — releases no longer commit either back to main (PyAutoConf#119 / PyAutoBuild#121) — so the check was inert: permanently MATCH on stale values, unfailable by any release. Re-point it at the live invariant (build-chain #155 Phase 4 task 2, fork (b) "mains authoritative"): each workspace's version.minimum_library_version floor vs the newest YYYY.M.D.B git tag on its library. Flag UNSATISFIABLE (RED) when a floor exceeds the newest released version — no installable release can satisfy it (the one invariant nothing guarded before); OK when satisfiable; UNKNOWN (STALE) when the newest release can't be resolved; BAD on unparseable input. Drops the now-obsolete AHEAD/BEHIND/MISMATCH legs. No library import, no network — reads local git tags only, inside the <30s tick budget. Also updates readiness.py (RED/STALE mapping + score key skew_unsatisfiable), dashboard.py rendering, capabilities.yaml gate_role, and the test suites. Yank-awareness (does the floor name a yanked release) is noted as a deeper, non-tick check left for follow-up. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vx4gezFDNdXP39Q8WzqnTA
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.
Why
Under the pre-2026-07 model
version_skewcompared a workspace's recorded pin (workspace_version/version.txt) against the library__init__.py__version__stamp. Both artifacts are now frozen — releases no longer commit either back tomain(PyAutoConf#119 / PyAutoBuild#121, which removed the daily "Update version to X" commits that drove the CI-storm / cron-pause incident). So the check was inert: permanently MATCH on stale values, unfailable by any release.Build-chain #155 Phase 4 task 2, fork (b) "mains authoritative".
What
Re-point the check at the live invariant — each workspace's
version.minimum_library_versionfloor vs the newestYYYY.M.D.Bgit tag on its library:UNSATISFIABLEOKUNKNOWNBADDrops the obsolete AHEAD / BEHIND / MISMATCH legs. Reads local git tags only — no library import, no network — so it stays inside the <30s tick budget.
Also updates
heart/readiness.py(RED/STALE mapping + score keyskew_unsatisfiable),heart/dashboard.pyrendering,health_agent/capabilities.yamlgate_role, and the test suites.Out of scope (noted for follow-up)
workspace_version/version.txtfrom the 7 workspaces (separate task, handled alongside this branch's workspace changes).Testing
Full Heart suite 289 passed. Live smoke against real checkouts: all floors
2026.7.9.1≤ newest release2026.7.19.1→ OK, floor-less workspaces skipped gracefully.🤖 Generated with Claude Code
https://claude.ai/code/session_01Vx4gezFDNdXP39Q8WzqnTA
Generated by Claude Code