You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lockfile version is lowered when a registry dependency is removed #4232
OpenAPM req-lk-002 says a written lockfile version MUST NOT be lowered, even when the entry that required it is removed. Today the lockfile drops from version 2 back to version 1 when the last registry-sourced dependency is removed, and a unit test asserts that behavior. Found during 0.37 spec-conformance linking (Part of #4092).
Decision: approve
Area: project
Scope: The lockfile write-authority owner writes max(required version, version read from the existing lockfile), so a lockfile version is never lowered when the entry that required it is removed (req-lk-002); the test asserting the old demotion is inverted.
Done when: The inverted unit test and an installed-CLI test (install a registry or git-semver dependency, remove it, reinstall) fail before and pass after; the git-semver trigger is covered; versions 3 and 4 follow their own requirements; a bug-ledger row is added; the CI lint chain is green.
Out of scope: Lockfile format changes; extending monotonicity rules beyond what the specification states.
Review contact: Daniel Meppiel (@danielmeppiel)
Activity
danielmeppiel commentedon Nov 20, 2026
Decision: approve
Area: project
Scope: The lockfile write-authority owner writes max(required version, version read from the existing lockfile), so a lockfile version is never lowered when the entry that required it is removed (req-lk-002); the test asserting the old demotion is inverted.
Done when: The inverted unit test and an installed-CLI test (install a registry or git-semver dependency, remove it, reinstall) fail before and pass after; the git-semver trigger is covered; versions 3 and 4 follow their own requirements; a bug-ledger row is added; the CI lint chain is green.
Out of scope: Lockfile format changes; extending monotonicity rules beyond what the specification states.
Review contact: Daniel Meppiel (@danielmeppiel)
test(ledger): lockfile.version_monotonic property and the #4232 row
Merge origin/main into #4232
Merge origin/main into #4232