Skip to content

feat(cargo): a committed Cargo cooldown is a floor on the release age - #299

Merged
sweepies merged 1 commit into
mainfrom
feat/cargo-cooldown-floor
Nov 13, 2026
Merged

sweepies merged 1 commit into
mainfrom
feat/cargo-cooldown-floor

Conversation

@sweepies

@sweepies sweepies commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

A crates.io update inside a cooldown committed in .cargo/config.toml or
.cargo/config is now held at lookup instead of proposed: the strictest
registry.global-min-publish-age, registry.min-publish-age and
registries.*.min-publish-age the manifest reaches becomes a floor under
waitHours, ahead of dashboard create-it-now overrides. Security fixes
bypass the floor and are marked so the lockfile run can later allow the
too-new release in Cargo. Cargo itself is not told yet: the floor only
decides what is proposed and held until a following change passes the
cooldown to the lockfile run.

PR 2 of 3 for Cargo cooldowns (#297 was PR 1). PR 3 passes the cooldown and waitHours to Cargo, runs security fixes with Cargo's override, and stops a parent directory's cooldown from applying.

Behaviour

  • Reader (crates/manager/src/cargo.rs): the maximum of registry.global-min-publish-age, registry.min-publish-age and registries.*.min-publish-age in any .cargo/config.toml or .cargo/config the manifest reaches inside the repository. The grammar is Cargo 1.100's exactly, pinned both ways by unit tests. A month is 2,629,746 s (731 h, rounded up), measured against real Cargo. An include, unparseable TOML or out-of-grammar value fails the manifest's lookups with the file and key named. A committed resolver.incompatible-publish-age = "allow" is ignored.
  • Floor: wait_hours = max(waitHours, floor) in Evaluator::effective() for crates.io dependencies, ahead of dashboard overrides. The lookup gate, the recorded policy.waitHours, the merge-time age check and the sweep's wake-up all read that one value.
  • Dashboard: a release held by the floor is a plain line naming the file and the eligible time, with no "create it now" box. The box returns once the release is past the floor but still inside waitHours.
  • Security fixes bypass the floor. A proposed fix inside the cooldown carries cooldown in the report, and Job.publish_age_allow marks the job for PR 3.
  • Report schema 7 → 8: HeldBack.cooldown and Update.cooldown ({ hours, file }).
  • State versions bumped per the guard: extract 4, files 4, config 3, config-files 3, catalog 3, catalog-controls 3.

Proof

Docs: guide/lookup-policy.md, guide/lockfiles.md, guide/dashboard.md, reference/report.md, renovate/compatibility.md.

View guided diff Turn on auto-fix

A crates.io update inside a cooldown committed in .cargo/config.toml or
.cargo/config is now held at lookup instead of proposed: the strictest
registry.global-min-publish-age, registry.min-publish-age and
registries.*.min-publish-age the manifest reaches becomes a floor under
waitHours, ahead of dashboard create-it-now overrides. Security fixes
bypass the floor and are marked so the lockfile run can later allow the
too-new release in Cargo. Cargo itself is not told yet: the floor only
decides what is proposed and held until a following change passes the
cooldown to the lockfile run.
@sweepies
sweepies merged commit 90df19a into main Nov 13, 2026
13 checks passed
@sweepies
sweepies deleted the feat/cargo-cooldown-floor branch November 13, 2026 18:27
@sweepies-ops sweepies-ops Bot mentioned this pull request Nov 13, 2026
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