#3818·headroom

[BUG] headroom-ai[proxy]/[all] unresolvable on Intel macOS with Python ≥3.11 (onnxruntime>=1.24.0 has no x86_64 macOS wheels)

Author: kieransCreated Sep 27, 2026Updated Sep 27, 2026

Description

headroom-ai[proxy] (and [all]) has been unresolvable on Intel macOS (x86_64-apple-darwin) since 0.36.0, because the onnxruntime version floor for the proxy extra is gated on Python version rather than platform, and only the <3.11 branch got the safe constraint:

onnxruntime>=1.24.0; python_full_version >= "3.11" and extra == "proxy"
onnxruntime<1.24.0,>=1.16.0; python_full_version < "3.11" and extra == "proxy"

onnxruntime stopped shipping wheels for Intel macOS at 1.24.1 (only macosx_14_0_arm64 going forward). So on any Intel Mac running Python ≥3.11, the >=1.24.0 floor has no installable wheel at all, and the extra is permanently unresolvable — regardless of which headroom-ai version is requested (confirmed on 0.36.0 through 0.39.1).

A second, compounding issue: uv tool upgrade (and therefore headroom update, which shells out to it) does not surface this resolution failure. It appears to silently fall back to reinstalling the highest version whose entire dependency set is still resolvable — which is the last version before this constraint was introduced — while still printing success (Modified headroom-ai environment) and headroom update reporting "Headroom upgraded to X.Y.Z" even though nothing changed. uv tool list confirms the version never actually moved. This makes the underlying onnxruntime conflict essentially invisible from the normal upgrade path.

To Reproduce

  1. On an Intel Mac (x86_64-apple-darwin), with headroom-ai==0.35.0[all] already installed via uv tool install.
  2. Run headroom update (or uv tool upgrade headroom-ai).
  3. Observe it reports success and a new version, but uv tool list still shows the old version.
  4. Force the real resolution to see the actual failure:
    uv tool install "headroom-ai[proxy]==0.39.1" --reinstall

Expected Behavior

  • Either headroom-ai[proxy]/[all] installs successfully on Intel macOS with a current Python, or the upgrade command fails loudly and explains why, instead of silently keeping the old version.

Actual Behavior

  • The extra is unresolvable on Intel macOS + Python ≥3.11 for every version from 0.36.0 onward.
  • uv tool upgrade / headroom update report success while leaving the old version installed.

Code Sample

Not applicable — this is a packaging/dependency-resolution issue, not a runtime API bug. The reproduction is a shell command (see To Reproduce / Error Output).

Error Output

$ uv tool install "headroom-ai[proxy]==0.39.1" --reinstall
  × No solution found when resolving dependencies:
  ╰─▶ Because only the following versions of onnxruntime are available:
          onnxruntime<1.24.0
          onnxruntime==1.24.1
          onnxruntime==1.24.2
          ...
          onnxruntime==1.30.0
      and onnxruntime>=1.24.1 has no wheels with a matching platform tag
      (e.g., `macosx_14_0_x86_64`), we can conclude that onnxruntime>=1.24.1
      cannot be used.
      And because headroom-ai[proxy]==0.39.1 depends on onnxruntime>=1.24.0
      and you require headroom-ai[proxy]==0.39.1, we can conclude that your
      requirements are unsatisfiable.

hint: Wheels are available for `onnxruntime` (v1.30.0) on the following platforms:
`manylinux_2_28_aarch64`, `manylinux_2_28_x86_64`, `macosx_14_0_arm64`, `win_amd64`, `win_arm64`

Environment

  • Headroom version: 0.35.0 (stuck; 0.39.1 is unresolvable as shown above)
  • Python version: 3.13.13 (also reproduced targeting 3.11+ generally; the <3.11 branch is unaffected)
  • OS: macOS, Intel (x86_64-apple-darwin)
  • Installed via: uv tool install headroom-ai[all]

Additional Context

Workaround: installing under Python 3.10 (uv tool install --python 3.10 "headroom-ai[proxy]") hits the python_full_version < "3.11" branch, which resolves to onnxruntime==1.23.2 — this has Intel macOS wheels, so the install succeeds. However onnxruntime 1.23.x exposes an older C API than Headroom's Rust core wants for the kompress ONNX path, so kompress reports "status": "degraded" in /health on this workaround (it's already marked "optional": true, and the rest of the proxy is fully healthy). This is a viable stopgap but Python 3.10 reaches end-of-life on 2026-10-31, so it isn't a durable fix.

Suggested fixes (any of these would resolve it):

  • Drop the Python-version marker split entirely and just constrain onnxruntime<1.24.0,>=1.16.0 for sys_platform == "darwin" and platform_machine == "x86_64", independent of Python version.
  • Or relax the floor to onnxruntime>=1.16.0 generally and let the resolver pick the newest wheel available per-platform.
  • Separately: it'd help if headroom update verified the post-upgrade version actually changed and warned explicitly if uv tool upgrade left it unchanged, rather than reporting success unconditionally.

Source: headroomlabs-ai/headroom