Skip to content

Spec proposal: frozen install fails when the lockfile has undeclared direct dependencies (npm ci parity) #3702

Open

Description

Proposal

Make frozen installs fail before any write when the lockfile records a direct dependency that apm.yml no longer declares, matching npm ci, which errors when package.json and the lockfile disagree.

Context

#3662 (0.36.0) made --frozen tolerate such entries without touching them. Requiring a failure instead would change documented behavior (reference/cli/install.md) and needs an OpenAPM req-lk-006 amendment, with the Section 9.3 review and comment window.

Done when

  • req-lk-006 is amended through the Section 9.3 process.
  • Frozen fails with a diagnostic that names each undeclared direct dependency and how to fix it.
  • Docs and conformance tests are updated.

Activity

  1. added
    area/lockfile
    type/feature
    status/needs-design
    pillar/ecosystem
    on Nov 12, 2026
  2. danielmeppiel commented on Nov 21, 2026

    @danielmeppiel
    CollaboratorAuthor

    Moved from 0.38.0 to 0.39.0 in the 0.38 release cut (2026-11-21). Scope and acceptance are unchanged.

  3. danielmeppiel commented on Nov 25, 2026

    @danielmeppiel
    CollaboratorAuthor

    Moved to 0.40.0 at the v0.39.0 scope freeze: v0.39.0 now takes only bug fixes. This item is a feature, design, research or tracking item, or still needs design.

  4. github-actions commented on Nov 28, 2026

    @github-actions

    Thanks for the proposal. The npm ci parity argument is a good one, and the issue already notes the key constraint: failing instead of tolerating undeclared direct entries changes documented --frozen behavior (#3662) and needs an req-lk-006 amendment through the Section 9.3 process.

    Suggested next step: complete the spec amendment and comment window first, and agree on the diagnostic wording (naming each undeclared direct dependency plus the fix). Implementation, docs and conformance tests follow from that.

    This is a recommendation only. Scope and release targeting remain a maintainer decision.

    Generated by Triage Panel · copilot · auto · 27.8 AIC · ⌖ 0.728 AIC · ⊞ 12.5K · ◷

  5. added
    triage/recommended
    on Nov 28, 2026
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

    area/lockfilepillar/ecosystemstatus/needs-designtriage/recommendedtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions