Skip to content

Commit admission: attribute a commits-API tip observation to the Git destination it admits #5056

Done

Description

Context

Commit admission (#4970) records a verdict that a commit is reachable from a branch or tag of a dependency's origin. The verdict is keyed by the origin and the URL Git actually contacts. When the tip comes from a git ls-remote listing, the verdict is now recorded for the destination that answered.

When the tip comes from the hosting service's commits API, the verdict is keyed to the Git endpoint the consumer predicts it will contact. That endpoint was not contacted, so a later fetch through a different Git destination (for example a configured insteadOf mirror) reuses an observation made against the API host.

Proposal

Record a commits-API observation only for the destination it establishes. Either key it to the API host, or verify once at the Git destination before a later fetch reuses it. Keep the extra cost within the measured budget (see #5013).

Acceptance

  • A cell where a commits-API tip is observed and the later fetch goes through a different Git destination: the commit is verified at that destination before it is admitted.
  • No extra request when the API host and the Git destination are the same origin.

Activity

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

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Approved by the Regent under delegation A. Follow-up to #4970. A commit-admission verdict established from the hosting service's commits API is recorded only for the destination it establishes: either keyed to the API host, or verified once at the Git destination before a later fetch through that destination (for example a configured insteadOf mirror) reuses it. A verdict from a git ls-remote listing stays keyed to the destination that answered, as today. Admission only becomes stricter; any doubt verifies at the Git destination or refuses.
    Done when: Red-first cells: an API-established verdict is not reused for a fetch through an insteadOf mirror without verifying at that destination; a listing-established verdict is unchanged. The extra cost stays within the #5013 budget on the CI bench. W3d review, then QL H8, a CHANGELOG fragment and CI green.
    Out of scope: Proxy routes, which follow the accepted #5021 residual and never fail silently; changes to what admission accepts for a single destination.
    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 23, 2026
  5. moved this from In Progress to Done in APM Roadmapon Nov 23, 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

    status/acceptedtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions