Skip to content

deps: fetch a default-branch dependency by its admitted commit, not by name #5199

Done

Description

Found in the review of #5195.

Problem

After #5195, every named dependency ref is fetched by the commit it was admitted at. A dependency that names no ref (the default branch) is still cloned by name and verified afterwards, so if the default branch moves between admission and the download, the fetched commit can differ from the admitted one and the install fails on verification instead of installing the admitted commit.

Done when

Out of scope

Changing how the default branch is admitted.

Activity

  1. added
    bug
    type/bug
    on Nov 23, 2026
  2. danielmeppiel commented on Nov 23, 2026

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Stricter only (follow-up to #5195; the #5138 rule extended to default-branch dependencies). A dependency that names no ref is fetched by the commit admitted for its default branch, through the same by-commit paths #5195 uses for named refs, so the fetched commit always equals the admitted one, and the lockfile records it. If the admitted commit cannot be fetched, the install fails closed with a named message and never falls back to fetching by name. How the default branch is admitted is unchanged.
    Done when: A red-first cell moves the default branch after admission and asserts that the lockfile and the deployed content match the admitted commit. A cell where the admitted commit is no longer reachable fails with the named message. Fetch cost stays within the #5013 budget. W3d, then QL H8. A CHANGELOG fragment and CI green.
    Out of scope: Changing how the default branch is admitted. Sequenced after #5195.
    Review contact: Daniel Meppiel (@danielmeppiel)

  3. added
    status/accepted
    and removed on Nov 23, 2026
  4. moved this from Todo to In Progress in APM Roadmapon Nov 24, 2026
  5. moved this from In Progress to Todo in APM Roadmapon Nov 24, 2026
  6. moved this from Todo to In Progress in APM Roadmapon Nov 24, 2026
  7. moved this from In Progress to Done in APM Roadmapon Nov 24, 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

    bugstatus/acceptedtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions