0251. MVS details: floors, bounds, offline lock check
- Status: Accepted (maintainer, 2026-11-16; implements plan defaults)
- Date: 2026-11-16
- Plan: M15.5; RG2.1 Task B1; RG2.3 B3
- Builds on: 0239
- Review: Data, schemas and wire formats
Context
ADR-0239 chose Go-style minimal version selection but left open which requirers count once a selection rises past a release, how an unpublished, yanked or unknown-edition release is handled, and what offline builds check without the index.
Decision
A name's floor is the highest minimum required by any release
the resolver reached, including releases a later floor superseded,
as in Go. Pins and caret bounds are checked only from the selected
graph; a violation is E1080 naming both requirer chains. Names
reached only through superseded releases are not selected and
never downloaded. At the floor, an unyanked release (or a yanked
one the lock pins) is taken; otherwise the oldest unyanked release
above it inside the floor requirement's bound; none is E1076. A
selected release whose index edition this toolchain
lacks is E1081, not skipped. pkg requirements of
path, git and edition packages join the resolver roots; fetch
re-selects and re-walks, reusing downloaded index files and
verified trees.
Requirements stay canonical strings in
Dependency::Index (1.2.3 or
^1.2.3). Offline and read-only builds read no index:
they accept the locked version when every requirement admits it,
else E0935. Plain git dependencies may use version
(exact or caret) instead of tag:
v<x.y.z> tags are their releases, they join
this resolver keyed by URL, the lock keeps the exact-tag entry
shape without pkg, and offline builds accept a locked
tag the requirement admits.
Alternatives considered
- Floors from selected releases only — order-dependent fixpoints; Go counts them.
- Skip unknown-edition releases — would silently pick another version per toolchain.
- Offline re-resolution from cached index files — offline builds must not depend on cache contents; a lowered minimum that the lock still satisfies builds until the next fetch.
Consequences
Selections can only rise when a requirement is raised; new releases never move them. A git or path package that requires a registry package costs one extra selection pass.