Skip to content

Upgrade pass counts a move to an older pre-release as a gain #106

Closed

Description

@jonyoder

The root upgrade pass can trade a root's final release for an older pre-release and keep the result as an improvement.

Example (Nov 2026 PyPI snapshot, UpgradeRoots=40): with tensorflow==2.13.* plus 17 other roots, the pass raised numpy to 2.x by moving tensorflow from 2.13.1 to 2.13.0rc1, and kept it.

Expected: a root moving from a final release to an older version, and especially to a pre-release, should count as a loss in the pass's score, so this trade is not kept.

Found while adding the step budget (#105). The pass is off by default in PPM, so no PPM user sees this today.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions