Skip to content

Candidate dispositions and conflict

Every candidate the resolver considered is recorded on the binding with a disposition and a reason code. One is selected; the rest say why they were not.

Disposition Reason code The candidate
selected compatible_foundation_preferred Won, and it was a foundation component
selected highest_precedence_compatible_candidate Won on source preference and version
conflicting transitive_dependency_conflict Its transitive dependencies clash with the solved graph
incompatible The compatibility reason observed Fails platform, ABI or native compatibility
version_mismatch declared_specifier_mismatch Its version is outside the declared specifiers
lower_precedence compatible_candidate_not_selected Would have worked, and ranked below the winner

The accounting is complete: every candidate examined appears, including the ones that would have worked. A reader can therefore tell a requirement that had one option from one that had five, and see which rule decided among them.

Reading a binding's accounting

{
  "considered_candidates": [
    {
      "candidate_id": "foundation:torch:2.4.1",
      "source": "foundation",
      "version": "2.4.1",
      "component_digest": "sha256:1f4c...",
      "bundle_component_digests": ["sha256:1f4c...", "sha256:9a02..."],
      "disposition": "selected",
      "reason_code": "compatible_foundation_preferred"
    },
    {
      "candidate_id": "pypi:torch:2.6.0",
      "source": "closure_local",
      "version": "2.6.0",
      "component_digest": "sha256:77be...",
      "bundle_component_digests": ["sha256:77be..."],
      "disposition": "version_mismatch",
      "reason_code": "declared_specifier_mismatch"
    }
  ]
}

The block declared torch>=2.4,<3. The foundation held 2.4.1 and won on foundation preference; the index offered 2.6.0, which the declared upper bound excludes.

Every candidate's own bundle_component_digests contains its component_digest, and a candidate identity, its id and digest together, appears once.

Conflict

conflicting is the disposition for a candidate whose transitive dependencies clash with the graph being solved. A candidate can satisfy the direct requirement and still be refused because something it pulls in cannot coexist with another selection.

An ambiguous result is refused rather than broken by a tiebreak:

multiple equally preferred candidates resolve <name>

Two candidates that rank identically mean the inputs do not determine an answer, and picking one would make the build non-deterministic: the same inputs could resolve differently on a later run, and the closure digest would move with no declared change behind it.

Why losing candidates are kept

A binding that recorded only its winner would answer what ran and nothing about what else was available. With the full accounting an operator can see, without re-running the solve, that a version they expected was present and rejected for a stated reason rather than never considered.

It is also what the exclusion set is derived from. Foundation candidates that were considered and not selected have their bundle components recorded as excluded, so the closure names the reachable bytes and the unreachable ones. See Resolved dependency binding.

When resolution refuses outright

Refusal is reserved for substantive failure: no matching version, an unreachable or forbidden source, an unsatisfiable platform, ABI or native closure, an ambiguous or conflicting result, a failed fetch or build, or failed inventory and provenance verification.

A requirement absent from the foundation is none of those, and resolves from the approved sources. See Approved dependency sources.