What :latest promises its consumers#
This page is the contract side of the runtime image: the properties another
repository’s CI lane may build on, written down so they are a promise rather
than an accident of the last build. Everything here is asserted per arch by
check_consumer_contract in linux/scripts/06-packaging/runtime-consumer-contract.sh,
loaded by smoke-runtime-image.sh, against the shipped bytes as the image’s user.
It exists because on 2026-09-04 four properties a consuming lane depended on were
all broken at once in :latest-cross, every runtime gate stayed green, and the
lane in the other repo is where they were found. A property nobody wrote down is
a property nothing can keep.
The contract#
Run as the image’s own user (kataglyphis, uid 1001), with no privileged flags
and no extra -e:
# |
Promise |
Consumer symptom when it breaks |
|---|---|---|
1 |
|
the cache is written into the consumer’s bind-mounted checkout, pollutes their working tree, can be swept into CI artifacts, and on a non-ext4 host mount |
2 |
|
“could not create temp file …: Permission denied (os error 13)” — Corrosion, cargokit and |
3 |
|
|
4 |
|
Gradle stops the Android lane with “JAVA_HOME is not set and no ‘java’ command could be found in your PATH”, and |
5 |
|
it is an AppImage and reads |
6 |
Every path under |
|
7 |
|
|
8 |
On amd64, |
an Android lane has no device: |
9 |
|
OxidANT’s GTK GUI stops in a gtk4-rs build script: “The system library |
Row 6 is the one a consumer cannot repair at runtime. The directory sits in a
read-only overlay layer, so a non-owner can neither empty nor rename it — both
were attempted and refused — and the only workaround is mounting a tmpfs with
mode=1777 over it. Rows 1–5 are merely expensive to work around, and the point
of writing them down is that nobody should have to.
/workspace is the WORKDIR and the consumer’s checkout. Nothing the image
generates by itself may land there; that is what makes row 1 a location
assertion and not only a permission one.
The compiler-cache defaults the shared library already declares
(linux/scripts/01-core/compiler-cache.sh) are /var/cache/ccache and
/var/cache/sccache, and the image ships both as drwxrwxrwt. An image ENV
that contradicts our own library is the failure shape row 1 guards.
Neither cache directory is a VOLUME. The image declares exactly one,
/workspace (VOLUME ["${WORKDIR}"] in Dockerfile.torch, confirmed in
Config.Volumes of all three shipped children), so a container’s compiler cache lives in its writable layer
and dies with it. A lane that wants the cache to survive has to mount something
there itself — and that is the reason row 1 is a LOCATION assertion: a cache
pointed back into the bind-mounted checkout would persist, by polluting the
consumer’s working tree.
The Android lane needs a JDK#
02-toolchain/android-sdk.sh installs the full openjdk-21-jdk in the stage
that BUILDS the SDK, but Dockerfile.package copies only /opt/android-sdk —
apt had put the JDK in /usr/lib/jvm, which is not part of that COPY. The
runtime image therefore carried a complete Android SDK and no Java at all, and
the failure surfaces in Gradle rather than in Flutter, one layer below where a
reader looks.
The runtime image installs JDK_PACKAGE (01-core/versions.env,
openjdk-21-jdk-headless, ~286 MB with its JRE) by name rather than through
append_available_packages, which SKIPS what apt does not have: a silently
skipped JDK would ship the same broken image the gate exists to catch. Headless
is deliberate — a container build needs javac, not AWT.
JAVA_HOME cannot be written literally, because Ubuntu’s path carries both the
version and the architecture (java-21-openjdk-riscv64). anchor_java_home
resolves it once from the installed javac and parks the symlink
/usr/lib/jvm/default-java, which the image ENV names. A JDK bump then needs no
Dockerfile edit, and a JDK that installed no compiler fails the stage instead of
shipping a JRE that Gradle cannot use.
Executable is not usable#
ensure_appimagetool (02-toolchain/packaging-deps.sh) downloads into a
mktemp file, which is 0600, and made it executable with chmod +x — which
adds the x bits and leaves r for the owner only, i.e. 0711. mv carries that
mode to /usr/local/bin/appimagetool, so the tool was executable by everyone
and readable by root alone.
That is fatal for this particular tool and invisible for most others:
appimagetool is itself an AppImage, so it opens /proc/self/exe to find where
its squashfs payload starts. As uid 1001 that open is refused and the run dies
with Failed to get fs offset for /proc/self/exe, having produced nothing.
The install site now sets 0755 explicitly rather than relying on +x over
whatever mode the download landed with, and the contract gate asserts
readability rather than presence — command -v finding it says nothing about
whether the image’s own user can run it.
How the gate proves it#
One nerdctl run, not one per assertion. _consumer_contract_probe emits facts
only — WHO, ENV, WRITE, DIR, FACT lines and a CCPROBE_DONE sentinel —
and _consumer_contract_verdicts reaches every verdict on the host, so each
failure path is provable from a recorded probe capture rather than from a
doctored 30 GB image. linux/scripts/tests/test-runtime-image-gates.sh drives it
with the capture measured in the broken 2026-09-04 image and with the fixed one.
Three details are load-bearing:
Writability is a real create + delete of a file in the directory, not
[ -w ].access(2)answers yes for uid 0 and says nothing about a read-only layer.The probe must have run as the image’s own
Config.User. As root every directory answers writable, so a probe that reports any other identity fails the gate outright instead of reporting every row green.No row may report nothing. A missing fact is
NOFACTand fails, an empty row table fails as asserted NOTHING, and a verdict verb no arm handles fails. A gate arm that can only ever skip is how all four defects shipped.
Each red row quotes the symptom from the consuming repository’s log, not our path, because that is the sentence someone will paste into a search.
Per-arch exemptions#
_consumer_contract_exempt is a <arch>:<row> table, same contract as
_parity_exempt: listed means reviewed, and an arm that stops applying fails
so the table cannot rot in place. Each arm is re-checked by its own probe
fact, named by _consumer_exempt_fact; yes is STALE and names the arm for
deletion, a missing fact is NOFACT and never a grant.
Eight arms. The first two were measured on the image shipped 2026-09-05 rather than argued from the build graph, the next three on the CON50 proof images of 2026-10-01:
arm |
rot fact |
what the image reports |
|---|---|---|
|
|
|
|
|
no |
|
|
no refs: Flathub builds the freedesktop runtimes for x86_64 and aarch64 only, and the installer skips every other arch |
|
|
no runtime: it is carved out of |
|
|
|
|
|
no |
|
|
as on arm64 |
|
|
none of the three tools: none publishes a riscv64 binary, and the riscv64 lanes cross-build on amd64 (below) |
Open gap (2026-09-25): the flatpak-runtimes and appimage-runtime arms are re-checked by flutter-sdk,
another row’s fact, because _consumer_exempt_fact maps every row but
appimagetool to it. A riscv64 image that gained Flatpak runtimes or an AppImage
runtime would still read EXEMPT, which is the rot the next paragraph describes.
flutter-owner was an arm too and is gone. The same probe measures
find /opt/flutter ! -uid 1001 as 0 on riscv64, which is the row passing,
not a row to skip: an empty tree owned by the runtime uid satisfies the promise.
Exempting it also hid the defect the row exists for — a root-written SDK would
have read as a documented exception on that arch. Until 2026-09-05 the
appimagetool arm was re-checked with FACT flutter-sdk, i.e. by another row’s
fact, so a riscv64 appimagetool could never have been noticed; that is what
_consumer_exempt_fact fixes.
The Android SDK is not exempt anywhere. The parity table asserts the
android-sdk prefix on every arch. The row is skipped, not exempted, only when the
image says it ships no SDK, in /opt/android/.android-payload-off. Two writers put it
there:
android-sdk.sh, when the android stage runs on a non-amd64 host. Upstream ships the NDK forlinux-x86_64only, so there is nothing to install.prune-host-payload.sh, for every arch whoseHOST_PAYLOADis off. That is arm64 and riscv64 by default since 2026-10-13 (why). Until then/opt/android-sdk/platform-toolswas in all three shipped arches, as measured on 2026-09-04, though only amd64 can run it.
A payload-off image leaves ANDROID_HOME and ANDROID_SDK_ROOT empty. The row fails one
that still sets either, because a consumer would find an empty SDK behind the variable.
A missing fact is still NOFACT.
The Flatpak runtimes ship with the image#
flatpak list --runtime in the shipped image returned zero refs. Every consumer
run therefore re-downloaded the whole runtime set — roughly 1.9 GB across seven refs,
the single largest download in their build.
Two of the seven (Platform and Sdk) were already installed here; the other five
were left to each consumer run. All seven are installed now:
ref |
pinned by |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GL.default appears twice on purpose: the base branch and its extra sibling are
two separate refs, and a build that resolves one still fetches the other.
The runtime is 26.08 since 2026-10-07. freedesktop-sdk 25.08 changed two names,
both read from flathub’s own listing and Platform//26.08’s metadata that day:
the extra branches are spelled <ver>-extra (24.08 said 24.08extra), and the
openh264 extension is gone. Platform//26.08 declares codecs-extra//<ver>-extra
instead, which ships FFmpeg, x264 (with its GStreamer plugin), x265 and libde265 and
no openh264, so FLATPAK_OPENH264_VERSION went with it. A consumer flatpak that
loaded the runtime’s openh264 must bring its own H.264 codec or use x264.
flatpak install Platform//26.08 pulls GL.default (both branches), Locale and
codecs-extra as related refs; the seven-ref list names them so that a failure
says which one.
INSTALL_FLATPAK_RUNTIMES defaults to true since 2026-09-05. Flathub builds
these for x86_64 and aarch64 only, so on any other architecture the install is a
guaranteed 404 rather than a transient failure — the installer skips those arches
outright instead of retrying, and riscv64 images ship without Flatpak runtimes by
construction.
The web lane toolchain#
Measured in a consumer run, the Flutter web lane rebuilt its own tools on every
invocation: flutter_rust_bridge_codegen build-web shells out to wasm-pack, and
both were a from-source cargo install — 258 crates for wasm-pack, 174 for
flutter_rust_bridge_codegen — followed by a nightly rustup auto-install through
a path rustup itself calls deprecated.
The image now installs all three ahead of time:
what |
pin |
why it must be here |
|---|---|---|
|
|
|
|
|
258 crates per consumer run |
|
|
174 crates per consumer run |
Both crate versions live in 01-core/versions.env. Where upstream publishes a
release binary for the arch, the image takes that instead of compiling: the same
two cargo installs cost 87 s / 113 s on amd64 but 768 s / ~1170 s on arm64
and 1813 s / 3500 s on riscv64, which is the shape of QEMU user-mode
emulation rather than a defect. install_web_lane_prebuilt downloads the
x86_64- or aarch64-unknown-linux-musl asset and verifies it against a
per-arch *_SHA256 pin in versions.env, the way sccache and binaryen are
already fetched. Anything else — riscv64, which upstream publishes no asset for,
a missing pin, a failed or mismatching download, a tarball without the binary in
it — falls back to the from-source leg
(below), so a consumer still gets the
pinned --locked build rather than whatever the index resolves to that day, and
nothing unverified is ever installed. The four hashes bump with the two
versions.
That leaves one open question rather than an assumption: whether a riscv64 web lane exists at all. The tools are installed uniformly because an arch-conditional image is harder to reason about than a slower one, and because “we assumed nobody uses it” is how the Android layer ended up built for the wrong ABI.
install_web_lane_toolchain is non-fatal for availability — a missing nightly
pin, an unpinned version and a failed cargo install each WARN and continue. The
trade is deliberate: a consumer that has to build its own tools is slow, a consumer
that cannot build the image at all is worse. What it does fail on — a bad knob, or
a binary that claims to be good and is not — is in the next section.
Building the web-lane tools from source#
riscv64 has no upstream binary, so its package stage used to compile both tools under QEMU on every chain: 960 s + 1,665 s of a 3,384 s RUN (riscv64 layer file times, 2026-09-22). That compile now has two replacements, and the old build stays one switch away, verbatim. Owner decision 2026-09-23: both options, cross the default.
Path |
Where it compiles |
When |
|---|---|---|
cross |
|
the target is in |
native |
the package stage, with rv64gc Rust: |
|
cache |
the package stage’s cachemount |
a native build whose exact key was built before |
legacy |
the package stage, exactly as before 2026-09-23: |
|
native is not the old build. It compiles where the old build did, with the same
rv64gc Rust, but four things differ: it forces vendored static bzip2, xz and zstd
(the old build linked whatever pkg-config found in the stage); it installs a bare
binary copied out of a scratch --root, so CARGO_HOME has no .crates.toml /
.crates2.json entry for it; a binary that fails the gate stops the build (the old
build installed anything cargo produced); and it reads the cache first, so it may
not compile at all (WEB_LANE_TOOLS_CACHE=refresh or off forces a compile).
legacy is the old build, verbatim: cargo installs into CARGO_HOME itself (and
records it there), in the stage’s own environment, with no gate, no cache, no
provenance line, and a failed cargo install only WARNs. It ignores
WEB_LANE_TOOLS_CACHE and never reads the cross artifact.
riscv64’s web-lane tools have two build paths; keep both. By default android cross-builds
wasm-pack and flutter_rust_bridge_codegen, and the package stage installs them after a
fail-loud gate. WEB_LANE_TOOLS_SOURCE=native (plus WEB_LANE_TOOLS_CACHE=refresh for a fresh
compile) is the gated in-stage native build, and legacy is the old build verbatim. Never remove
either, never let legacy drift from the old command, and never soften the gate on a binary that
claims to be good.
amd64 and arm64 are untouched: they install upstream’s sha-pinned musl binary first and reach this code only if that download fails.
Picking a path. Export WEB_LANE_TOOLS_SOURCE before build-cross-chain.sh or
the runtime helpers:
auto(default) takes the cross artifact when its manifest saysstatus=ok, it was built for this exact key, and it passes the gate. Anything else builds natively, with aWARNthat endsthe cross fast path was not taken.crossrequires the artifact: absent,failedor another key is an ERROR. Askippedmanifest is not, because the producer was never asked to build that arch; the package builds natively.nativenever reads the artifact. It still reads the cache, so addWEB_LANE_TOOLS_CACHE=refreshfor a guaranteed fresh compile.legacyis the build the package stage ran before 2026-09-23, unchanged (above). Use it to rule the new paths out, or when a consumer needs cargo’s install record.
WEB_LANE_TOOLS_CACHE is on (default), refresh (never read an entry, store the
new build) or off (neither). RUNTIME_NO_CACHE=1 does not empty a cachemount;
refresh is its equivalent here. WEB_LANE_TOOLS_CROSS_ARCHES (default riscv64,
a comma list, or none) is the arches android cross-builds for. A build host whose
own arch is the target — the riscv64 X100, an arm64 Jetson on
CROSS_BUILD_PLATFORM=linux/arm64 — always gets skipped: native-build-platform,
so auto builds natively there with nothing set.
All three are Dockerfile ARGs that lib-orchestrator.sh forwards only when they are
set, so leaving them unset moves no cache key. They are deliberately not in
versions.env: a line there re-keys the whole chain from base.
The key. Eight fields: schema, tool, version, target triple, rustc release,
RUSTFLAGS, the C environment and --locked. Who built it (built_by=cross:amd64,
native:riscv64) is recorded, never keyed. The cross key carries cross-env.sh’s
RVV flags (-C target-feature=+v,+zvl128b; a test pins the copy); the native key
carries none, as the old build never set any. Both force vendored static bzip2,
xz and zstd, because under PKG_CONFIG_ALLOW_CROSS those -sys crates link the
build host’s library
(failure-modes.md).
legacy has no key: it caches nothing.
The gate (wlt_assert_binary) reads the staged bytes before anything is
installed: ELF64, the arch’s machine, lp64d on riscv64, glibc’s own loader as
PT_INTERP, NEEDED only from libc’s family, no GLIBC_ version above the
image’s glibc, and --version printing exactly <tool> <pin>. No readelf is a
refusal, not a skip. Artifact and cache entries must also match their recorded
sha256.
Fatal or not. Availability still only WARNs: a failed cargo install, a
producer that could not build (it records status=failed and android stays
green), an unusable artifact under auto, no rustc -V release under auto or
native. These fail the package stage: a bad knob value, checked before anything
else, so a typo stops amd64 and arm64 too; a binary that claims to be good and is
not — a status=ok artifact failing its sha or its gate, in auto and cross
alike, or a native build cargo reported as a success that fails the gate; an image
whose glibc getconf cannot report, or an install into CARGO_HOME/bin that
fails; and cross with no usable artifact, including no rustc -V release to key
an expected one by. A cache entry that fails its checks is deleted with a WARN
and rebuilt. legacy fails on nothing but a bad knob.
Provenance. Each cross, cache or native install appends tool= version= source=cross|cache|native sha256= key= to /usr/local/share/web-lane-tools/provenance.
All three install a bare binary with no .crates.toml, which is what amd64 and arm64
already ship from upstream: a consumer’s own cargo install <tool> then stops on
binary already exists unless it passes --force. legacy writes no provenance
line, and cargo records its install, as before.
Not covered. Behaviour beyond --version: no automated riscv64 build-web
consumer exists. A binary and manifest forged consistently by someone who can write
the build host’s cachemounts, the same trust boundary as the cargo, uv and apt
mounts. The Jetson → riscv64 cross leg is untested; it records failed and falls
back. The cross build ran in a probe (about 73 s at 32 vCPU, 2026-09-22), never yet
in a chain.
The AppImage runtime ships with the tool#
Every AppImage begins with a small ELF runtime that appimagetool prepends to
the payload. When that runtime is not already on disk, appimagetool fetches it
from GitHub on each run — so a consumer’s packaging step depends on GitHub being up
at build time, and fails offline.
The runtime is staged at image-build time instead, and it is not downloaded.
Upstream publishes it only under the moving continuous tag, which is the exact
mutable-asset trap that already broke appimagetool itself once (a continuous
re-upload changed the bytes under a pinned SHA256, and download_verified_file
reported a tamper-shaped “checksum mismatch” that was only upstream drift). Since
every AppImage starts with the runtime, and appimagetool is itself an AppImage
pinned to an immutable versioned tag with a recorded SHA256, the runtime is taken
out of the tool’s own bytes, up to where its squashfs payload starts. It is
therefore pinned transitively and arch-correct by construction — no second
download, no second pin to keep in step.
The offset is found by reading the file for the squashfs superblock, never by
running the tool: QEMU user-mode cannot self-mount a foreign-arch AppImage, and
appimagetool --appimage-offset gave Exec format error on aarch64 (2026-09-06).
It is written to two places, as runtime-<uname -m>:
path |
why |
|---|---|
|
the runtime user is created later, and inherits |
|
the build user that runs the packaging step now |
ensure_appimagetool_runtime is a no-op, not a failure, when appimagetool is
absent (riscv64 has no upstream build) or when no squashfs superblock is found in it:
a missing runtime costs a consumer one download, and is never worth failing a
toolchain stage over.
Staged is not used: appimagetool 1.9 must be told (measured 2026-10-18). The old
AppImageKit read ~/.local/share/appimagekit/; 1.9.1 never does, and without --runtime-file
it downloads continuous on every build, staged copy or not. Under --network none the image’s
own tool failed (Failed to download runtime file) with the runtime present in both places. So
every packager names it:
packager |
how |
|---|---|
the Flutter AppImage ( |
|
CPack’s AppImage generator ( |
|
Proven offline the same day: OrchestrANT’s AppImage through python-app-package.sh and
AccelerANTgine’s through cpack -G AppImage both built under --network none, and the CPack one
failed again with the variable emptied. A consumer that calls appimagetool itself passes
--runtime-file "$(app_packaging_appimage_runtime_file)" when that prints a path.
What changes with the next :latest#
These are in source and not yet in a published image. Drop the workaround once your
lane runs on the next :latest.
What |
Before |
After |
|---|---|---|
A window on arm64/riscv64 Vulkan (CON41) |
the loader lists no |
all three arches list them; the image smoke fails an arch that does not (why) |
clang-tidy on a compile database naming |
selects the distro GCC 16; BeschleunigerBallett passes |
|
An atheris source build (CON38) |
|
the fuzzer, asan and ubsan archives are linked under that name as well; riscv64 still needs |
lavapipe on arm64/riscv64 (CON44) |
4-lane subgroups: a draw that builds an acceleration structure SEGVs; BeschleunigerBallett exports |
the image sets |
A C host that loads GStreamer or libcamera first |
|
both build without libunwind (why) |
|
lists |
lists nothing; the SSIM plugin still works under |
A browser for |
none; |
Chrome for Testing and its chromedriver on amd64 and arm64, |
An Android device on amd64 (CON50) |
none; Android tests ran on the x64 VM only |
the emulator and an x86_64 system image with ARM translation, booted by |
The Android SDK on arm64 and riscv64 (CON96) |
|
both trees empty, with |
|
|
|
amd64 needs an x86-64-v3 CPU#
From the first image built after the CON264 switch, the amd64 image and every package built in
it need a CPU with AVX2, FMA and BMI2: Intel Haswell (2013), AMD Excavator (2015), or newer. The
entrypoint refuses an older CPU with the cause; a run that replaces the entrypoint dies with
Illegal instruction. clang and Rust keep their generic defaults, so a consumer that wants the
level from them passes it: amd64-x86-64-v3-baseline.md.
The Android SDK roots are advertised#
Dockerfile.android advertises where each Android payload lives; Dockerfile.package
COPYs the payload those names point at but, until 2026-09-05, never re-declared the
names. A consumer that found /opt/android in the runtime image therefore still had
no way to be told where anything inside it was, and every Android lane hardcoded the
paths or re-downloaded the SDKs. The runtime image now re-declares all six. They are
empty on arm64 and riscv64, which ship no Android payload
(why):
variable |
value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Two shapes here are deliberate and a tidy-up would break both. Each name gets its
own ENV instruction, because the env-knob owner scan reads only the first name
of an instruction — collapsing them into one backslash-continued ENV, the way
Dockerfile.android writes them, would leave five of the six with no recorded owner.
And the OpenCV key is OPENCV_ROOT_ANDROID, never a bare OpenCV_DIR: that is the
name find_package(OpenCV) reads, so pointing it at the Android SDK would hijack
every Linux OpenCV consumer in the same image.
These are paths, not versions, so they are outside the advertised-version-key gate
(verify_advertised_keys.py); what holds them is the runtime smoke’s path checks.
Two things worth knowing before you configure a lane#
:latestis a proper multi-arch index (it was called:latest-crossuntil 2026-09-22; that name is retired). An arm64 runner gets arm64 binaries; there is no longer any reason to pin-amd64and norustc: 1: ELF: not foundto work around.The image ships Flutter at
/opt/flutter, the default of the hub’sflutter_lane_prepare_env(05-frameworks/flutter/lane-prologue.sh), which installs nothing: a lane that points it at/workspace/flutterstops withno Flutter SDK at /workspace/flutter, and a lane with its own installer re-downloads the SDK every run for nothing.sccacheandappimagetoolare onPATHas well.
What changes with the image after CON11#
In source since 2026-09-26; shipped in :latest on 2026-09-29 (index sha256:696642b2…, BACKLOG CON37). Each item
retires a workaround a consumer carries today; drop it once your lane runs on that image.
What |
Before |
After |
|---|---|---|
A bare |
selects the distro GCC 16, so linking a library the image’s GCC built fails ( |
|
|
LLVM 21, which cannot read what LLVM 23 wrote |
clang’s own, linked into |
|
no libFuzzer runtime |
built with compiler-rt (without a private libc++) |
|
point at the root-owned |
empty in the ENV and unset by the entrypoint; |
A Vulkan device |
none ( |
lavapipe, a CPU device ( |
|
absent |
installed ( |
A caller’s |
the entrypoint put |
the image’s libcamera goes after it and |
The distro GStreamer 1.28 runtime |
installed beside |
dropped on amd64; kept on arm64/riscv64, where |
Android API 37 |
missing although pinned (a stale SDK cache) |
|
TVM on amd64 |
|
linked against |
The Android SDK roots are advertised#
Dockerfile.android sets GSTREAMER_ROOT_ANDROID, ONNXRUNTIME_ROOT_ANDROID,
LITERT_ROOT_ANDROID, OPENCV_ROOT_ANDROID and IREE_ROOT_ANDROID, but that is
the build stage. Dockerfile.package COPYs the payload those names point at and
used to stop there, so a consumer of the shipped image found /opt/android
populated and no name telling it what was where. The reported symptom:
CMake Error at CMakeLists.txt:18 (message):
GSTREAMER_ROOT_ANDROID must be set
All five are re-declared in the runtime image, with OPENCV_ANDROID_JNI_DIR
beside them, one ENV instruction each — the env-knob owner scan reads the first
name of an instruction only, so a single multi-name ENV would leave five of the
six unowned.
There is deliberately no bare OpenCV_DIR. That is the name
find_package(OpenCV) resolves, and pointing it at the Android SDK would hijack
every Linux OpenCV consumer in the same image. OPENCV_ANDROID_JNI_DIR names
the Android tree instead, to be passed explicitly:
cmake -DOpenCV_DIR="${OPENCV_ANDROID_JNI_DIR}" ...
Every LLVM tool is the pinned release#
Owner decision 2026-10-06 (BACKLOG CON71): every LLVM tool a lane can name is the pinned LLVM,
LLVM_RELEASE on Linux and LLVM_WINDOWS_VERSION on Windows (23.1.5 today). That includes
clang-format and llvm-config, which stayed LLVM 21 on Linux until then (CON15).
Linux. Ubuntu’s packages put about a hundred unversioned LLVM names in /usr/bin, all LLVM 21.
The package stage’s wire_pinned_llvm_tools diverts each of them with dpkg-divert:
a name the pinned LLVM has points into
/usr/local/llvm-target/bin;a name it lacks leaves
PATH. The originals sit in/usr/lib/distro-llvm-names.bugpointis the only permanent gap: LLVM 23 removed it.The
-NNnames (clang-tidy-21,scan-build-21, …) still reach LLVM 21. They ask for it by name. The distro rustc’srust-*links are left alone too.
An apt-get install of a distro LLVM package later does not undo the diversion. The pinned
build carries lldb (without Python, Lua, libedit or curses scripting) and the LLVM utilities
(FileCheck, not, yaml2obj, llvm-tblgen), so no name falls back to 21.
validate-compilers.sh smoke checks two things and fails the image on either:
26 tools report
LLVM_RELEASE, lldb andFileCheckincluded;no unversioned
/usr/binname resolves into a distro LLVM.
Windows. C:\llvm-patched\bin is first on PATH once the entrypoint has run, ahead of
VsDevCmd’s MSVC directory (its llvm-symbolizer is a 23.0.0git fork) and C:\runtime\iree\bin
(IREE’s own clang, llvm-link and FileCheck, 23.0.0git). The patched LLVM installs the utilities,
so FileCheck is the pinned one too. clangd and lldb come from scoop’s official 23.1.5 release.
Test-Toolchain.ps1 checks the base stage’s tools against LLVM_WINDOWS_VERSION, and
Test-Container.ps1 checks 21 tools in the finished image against clang-cl’s release.
What it changes for a consumer:
A Linux format gate now grades with clang-format 23, as Windows always did. Files formatted with 21 can come back changed. Re-run the formatter once and commit the result.
llvm-confignames an LLVM built for the image’s own arch only (CON35). A build that wants another backend from it needs its own LLVM.scan-build-21is still LLVM 21’s analyzer. Callscan-buildfor the pinned one.
What the image stages so a run does not#
These contract rows are not about permissions at all. They ask whether a thing is present. Without it, every consumer run fetches or rebuilds it, or cannot get it at all as uid 1001. Each row names what a consumer’s build hit before its fix:
Row |
Absent means |
|---|---|
|
|
|
|
|
|
|
|
|
every |
|
|
|
the riscv64 Python lane’s |
|
|
The first three share one verdict function; cargo-qa-tools and free-threaded-python
have their own, because they compare versions (and free-threaded-python also where the
interpreter came from). The cost of each is written down once, in
_consumer_contract_symptom, which is also what the failure message prints.
Consumer builds need the network#
Offline consumer builds are not part of this contract (owner, 2026-11-03). A consumer’s own locked packages, crates and Flutter artifacts come from the network, so a dependency that is missing only with networking disabled is not an image gap. Image-owned caches stay, such as the riscv64 uv cache seed: they save build time and the image proves them.
The Flatpak runtimes ship with the image#
install_flatpak_runtime had existed for months behind
INSTALL_FLATPAK_RUNTIMES, which defaulted to false — so the capability was
there and switched off, and it covered two of the seven refs. It now defaults to
true and installs all seven, Platform.GL.default twice because the base branch
and its extra sibling are separate refs.
Flathub builds these for x86_64 and aarch64 only. On any other arch the install is a guaranteed 404 rather than a flake, so the function returns early and the row is exempt on riscv64.
The install passes --no-related (2026-10-28). Without it flatpak adds the extensions
that match the build host’s GPU, so the image’s content depended on who built it:
the published cross-sdk-amd64 carries org.freedesktop.Platform.VAAPI.nvidia, and a
build on an AMD host pulled org.freedesktop.Platform.amd.amf, whose libamfrt64.so
embeds its own ONNX Runtime and failed the ORT census (UNREGISTERED) in the
:latest-rocm runtime smoke. The seven refs above are the whole set now.
The AppImage runtime ships with the tool#
appimagetool embeds a type-2 runtime into every AppImage it builds, and fetches
it at build time if it is not on disk. Upstream publishes that runtime only
under the moving continuous tag — the exact mutable-asset trap that made
appimagetool itself move to a pinned version tag (TS1, 2026-08-15), so it cannot
be SHA-pinned.
It is not downloaded. Every AppImage begins with that runtime, and
appimagetool is already SHA-pinned, so ensure_appimagetool_runtime finds the
squashfs superblock in the tool’s file and copies the bytes before it out. Pinned
transitively, correct by construction for whatever arch the tool is. It lands in
/etc/skel as well as root’s home, so the runtime user created later inherits it.
Staged is not enough: appimagetool 1.9 uses it only when named with --runtime-file
(how every packager does).
The web-lane toolchain#
flutter_rust_bridge_codegen build-web shells out to wasm-pack ... -Z build-std,
which resolves the nightly channel unless FRB’s --wasm-pack-rustup-toolchain
names the pin, so rustup auto-installed one per run through a path it calls
deprecated. The package stage installs the dated pin RUST_NIGHTLY_TOOLCHAIN, not
the channel (why), with rust-src and
wasm32-unknown-unknown, plus both binaries at pinned versions, on a cargo
registry cachemount.
WASM_PACK_VERSION and FLUTTER_RUST_BRIDGE_VERSION are advertised as image ENV
and compared against what the binaries report, which is also the proof that they
are installed. A slow consumer beats an image that cannot be built, so only a
defect fails the stage; riscv64’s from-source leg is
above.
The cargo QA tools#
The package stage installs cargo-audit, cargo-deny and cargo-tarpaulin at
CARGO_AUDIT_VERSION, CARGO_DENY_VERSION and CARGO_TARPAULIN_VERSION on amd64 and
arm64 (CON65). Each is its upstream release binary, verified against a
CARGO_*_LINUX_{X86_64,AARCH64}_SHA256 pin; cargo-audit’s aarch64 build is a glibc
one, the rest are musl. A missing pin or a failed download stops the stage: there is
no source fallback, which would cost hundreds of crates per tool under QEMU.
The pins are read from
versions.envinside the stage, not forwarded as build-args, so they are not advertised ENV. Thecargo-qa-toolscontract row compares what each binary reports with the pins instead, askingcargo <tool> --version:cargo-mutantsrejects a direct--version.cargo-mutants on amd64 only (CON238). The package stage adds
cargo-mutantsatCARGO_MUTANTS_VERSION, upstream’s x86_64 glibc binary verified againstCARGO_MUTANTS_LINUX_X86_64_SHA256; upstream publishes no aarch64 Linux build, so arm64 ships none and its row must reportcargo-mutants=empty. OxidANT’s weeklyrust-mutants.ymlruns it on amd64.riscv64 ships none of them. None publishes a riscv64 binary, and no riscv64 lane runs them: those lanes cross-build on the amd64 image. The row is exempt there and fails as
STALEif one ever appears.cargo_security_checks.shandcargo_coverage.shcallcargo_install_pinned(_cargo_wrapper.sh). It uses the binary already onPATHwhen it reports the pin, andcargo installs it otherwise. A plaincargo installwould fail on these:binary already exists, since cargo did not install them. So a consumer’s hub pin must include this before it builds on an image that ships them.
The app venv runs OrchestrANT’s Flet UIs#
/opt/venv is synced with OrchestrANT’s frontend extra beside ml-ai and docs (CON106,
owner decision 2026-10-26), so the image runs the YOLO viewer (--ui flet), the camera stream
page and the benchmark viewer: flet, flet-desktop, flet-web, FastAPI (held below 0.145 for
flet-web 1.0.4) and uvicorn, all wheels on cp315 amd64 and arm64. The Windows torch stage syncs
the same extra; its markers leave flet-web and FastAPI off Windows. riscv64 has none of it:
every frontend requirement is marked off riscv64, since Flet publishes no riscv64 client, so
APP-PARITY records the absences and VENV-SET leaves the extra out of riscv64’s contract.
The Python side is complete; the desktop client is not. flet_desktop downloads Flet’s stock
Linux client on first start, and that client stops at libsecret-1.so.0: cannot open shared object file, which the image does not carry (CON105). The web view (flet-web) has no such
dependency. A client built in the image on FLUTTER_VERSION is CON102.
The dartdoc guide renderer’s parser#
/opt/venv holds markdown-it-py at the version dartdoc-guides.requirements.txt pins. A docs
build that renders its guides with dartdoc-build.sh therefore downloads nothing. The runtime
smoke’s DARTDOC-PARSER row checks the version:
shared-script-libraries.md § The parser in the image.
PowerShell#
The package stage puts pwsh at PWSH_VERSION on PATH (/usr/local/bin/pwsh, the tree in
/opt/microsoft/powershell/7) on amd64 and arm64, with PSScriptAnalyzer at
PSSCRIPTANALYZER_VERSION and Pester at PESTER_VERSION in its $PSHOME/Modules, which every
user’s module path reads (CON131, CON273). pwsh and PSScriptAnalyzer come from their GitHub
releases, Pester from the PowerShell Gallery, each through download_verified_file against
PWSH_LINUX_{X64,ARM64}_SHA256, PSSCRIPTANALYZER_NUPKG_SHA256 and PESTER_NUPKG_SHA256;
install_pwsh fails the stage when pwsh does not report its pin or does not list a module at
its pin. Pester is the floor windows-x64.yml ensures, so a Pester-style suite, which
Invoke-Tests.ps1 skips without it, also runs in the image (run-in-ci-image.sh). The consumer is
OrchestrANT’s benchmark lab: 41 of its tests drive pwsh, and outside a container only the bare
runner had one. riscv64 has neither: PowerShell publishes no riscv64 build, and those tests
skip there (image-decisions.md).
shellcheck and hadolint#
The torch stage puts them on PATH in /usr/local/bin (CON83): shellcheck on every arch,
hadolint on amd64 and arm64, at the
SHELLCHECK_VERSION and HADOLINT_VERSION pins in tool-pins.env, the same pins the
hub’s lint gates bootstrap. install-lint-tools.sh takes each release binary through
download_verified_install against its per-arch SHA256, and fails the stage when a tool
does not report its pin.
shellcheck publishes a riscv64 build, pinned as
SHELLCHECK_LINUX_RISCV64_SHA256.lint-shell.shbootstraps the same asset on a riscv64 host.hadolint publishes none for riscv64, and the riscv64 image ships without it. A source build under QEMU took about two hours of every riscv64 wrapper, and CI lints Dockerfiles on amd64 anyway.
install-lint-tools.shprintsNOTE: hadolint publishes no riscv64 binary; none is installedthere.gitleaks (owner decision 2026-11-20, CON222): the secret scan’s
GITLEAKS_VERSIONon amd64 and arm64, solint-secrets.shfinds it onPATHand the gate runs without network. The install fails unless the binary reports the pin and finds a GitHub-shaped token it plants at run time. gitleaks publishes no riscv64 build, so the riscv64 image ships none and its secret scan still bootstraps online.The pins live in
tool-pins.env, notversions.env: only the torch stage reads them, so a lint-tool bump rebuilds the torch stage, never the compiler.
The lint-tools contract row compares what the three binaries report with the pins, on
every arch; on riscv64 it requires that neither hadolint nor gitleaks reports at all.
GNU time measures peak RSS#
To measure how much memory a build step needs, run it under GNU time and read one line:
/usr/bin/time -v -o build.time cmake --build build -j2
grep 'Maximum resident set size' build.time
Without -o the report goes to stderr, mixed into the command’s own. Bash’s time keyword
prints only wall and CPU times, which is why the path matters. The package stage installs
Ubuntu’s time package by name on every arch, so apt fails the stage when the package is
missing: uid 1001 cannot install it later.
The gnu-time contract row runs /usr/bin/time -v true as the image user. It holds only for a
nonzero peak, because a zero is no measurement. Without the binary the row fails with the shell’s
own error, so a missing tool never reads as a missing fact. No arch is exempt.
The riscv64 uv cache seed#
PyPI has no cp314 riscv64 wheel for numpy, matplotlib, contourpy, pillow, line-profiler,
psutil or pyyaml, and no cp314t one either. OrchestrANT’s riscv64 lane therefore built all of them under QEMU in
every run’s uv sync --extra test: 108 min of a 6 h job, numpy alone 107 min
(2026-10-07). The image ships the result instead (CON83), for the GIL and the
free-threaded leg (CON110).
The rule: riscv64’s Python lane gets a uv cache seed, not a wheel store. A locked uv sync takes a
built sdist from the cache only, so never turn it into a --find-links store, and never prove it
with --no-build, which refuses every sdist, cached or not. The torch stage also installs
shellcheck at its tool-pins.env pin on every arch, and hadolint on amd64 and arm64 only; riscv64
ships no hadolint.
The contract is a uv cache, not a wheel store.
PYTHON_UV_CACHE_SEED(/opt/uv-cache-seed) is a uv cache directory holding only the wheels uv built from source for the app lock’stestextra. A--find-linksstore does not work here:uv sync --lockedinstalls what the lock names, by URL and hash, and a local wheel is neither. uv looks a built sdist up in its cache by that same source, so a cache entry is what a locked sync can use.uv sync --no-buildcannot use one either: it refuses every sdist, cached or not (measured 2026-10-09).Consumers copy it, they do not point at it. uv writes its cache, and the seed is root-owned.
ci_tests.shandci-wheel-smoke.shcalluv_cache_seed_restore(02-toolchain/python/ci-common.sh), which copies the seed intouv cache dirwhen its record saysseeded yesfor this arch; anything else is a log line, never an error. Another consumer runs the same copy:cp -R "$PYTHON_UV_CACHE_SEED/." "$(uv cache dir)/".How it is built.
06-packaging/uv-cache-seed.sh build, in the torch stage’s last layers, fetches the app atAPP_REF(the shipped tree has no.git, and its riscv64pyproject.tomlis edited), and runs ci_tests’ own sync,uv sync --locked --dev --extra test, without the project, twice through one cache: onX.Y+giland on the free-threadedX.Yt(CON110), each on the image’s interpreter withUV_PYTHON_DOWNLOADS=never; a venv that comes back as the other build fails the stage. Theuv-seed-<arch>cache mount keeps the builds between chains. The seed is a copy of that cache afteruv cache prune --ci, which drops every download and unpacked sdist and keeps the built wheels, and after removing every version neither sync installed.How it is proved. At build, a fresh copy syncs the same lock into a fresh venv per interpreter, and the stage fails when uv prints a
Builtline or adds a wheel undersdists-v*/.seed-record.txtnames the arch, the app commit, the extras, uv, both Pythons, every built wheel by its ABI tag (built numpy 2.5.1 cp314t), and one proof per Python.uv-cache-seed.sh verifychecks that record, both passes and their proofs, and that every listed wheel is in the cache under its own ABI tag (cp314andcp314tshare the python tag); theuv-cache-seedcontract row runs it. On riscv64 it wantsseeded for riscv64, elsewhere anot seededrecord.What it costs. Measured 2026-10-09 in
:latest’s riscv64 child under QEMU on the 32-core build host, for OrchestrANT 5785f696: 3172 s cold, building 8 wheels (the 7 above and the pure-Python sdistantlr4-python3-runtime), and 89 s warm, sync, copy and proof included. The seed is 21 MB; the work cache 671 MB. A chain pays the cold build once, then only for a package whose locked version moved. TheX.Ytpass, measured 2026-10-20 in the same child for OrchestrANT de144d10, with the GIL pass warm: 1271 s, building the 7 compiled wheels again ascp314t(the pureantlr4wheel serves both). The seed is then 40 MB and 15 wheels.What it does not cover. Only the
testextra of the app the image builds (OrchestrANT). Another consumer’s lock hits the seed only where it resolves the same versions from PyPI. A uv bump re-keys the cache layout, and the next chain rebuilds the seed with it; a consumer on an older image keeps a seed its newer uv may not read.
The GIL Python travels into app bundles#
/usr/local’s CPython is the runtime of every Linux app bundle: python-app-bundle.sh stages
it as a movable tree instead of downloading python-build-standalone. Keep it
--enable-shared, with _sysconfigdata importable, and do not add files to its
site-packages that a bundle should not carry (the stage drops them). The runtime smoke’s
RELOCATABLE-PY row proves a moved copy on every arch:
python-app-bundles.md § The relocated image CPython.
The free-threaded Python#
The image ships the free-threaded twin of PYTHON_VERSION (3.14.8t today) on every
arch, riscv64 included (CON66), so a 3.14t leg downloads no interpreter. Since 2026-10-11 the hub’s
Python legs refuse to: a missing one fails the leg (python-ci.md § Free-threaded and GIL legs).
It is built from source in the toolchain stage, from the same SHA256-pinned tarball as the GIL build (owner decision 2026-10-07). Until then the package stage installed uv’s python-build-standalone download.
build_python.shbuilds each of itsPYTHON_VARIANTS(gil,freethreaded) in turn. The second one is--disable-gil, with PGO and LTO on the build arch and LTO alone for each cross arch, where PGO would have to run the foreign interpreter. The cost lands in the toolchain stage, and every stage after it rebuilds when the pass changes. Measured on a 32-core host on 2026-10-07: 6.5 minutes natively, 4.7 of them the PGO profile run, and under 2 minutes per cross arch. The shipped trees are 138 MB (amd64), 120 MB (arm64) and 233 MB (riscv64).It lives in
/opt/python-freethreaded, with/usr/local/bin/python3.14tlinked to it, so it never shadows the GIL/usr/local:python3,pip3andpython3.pcstay the GIL build’s. A3.14trequest finds it onPATH. A plain3.14request never takes it (python-ci.md§ Free-threaded and GIL legs). The binary findslibpython3.14t.sothrough its own RUNPATH, set withLDFLAGS_NODISTso that it stays out of sysconfig: acp3XYtwheel built against it inherits none.Every artifact stages one tree per arch, at
/opt/python-cross-ft/<arch>/opt/python-freethreaded, the build arch’s included and in either build mode, soDockerfile.packagetakes the target arch’s with one COPY.A cross arch’s tree is a real
make altinstall, with its bytecode,python3.14t-configand config dir. The GIL cross trees are copies of the build tree.It keeps
_ctypes, which the GIL cross trees build without (ac_cv_header_ffi_h=no), because it ships as the runtime interpreter.No tree carries the static
libpython3.14t.a(--without-static-libpython): its fat LTO objects were 155 MB on amd64 and 435 MB on riscv64, and nothing links them.No staged tree carries the test suite. The cross trees are built
--disable-test-modules, and the build arch’s stage dropslib/python3.14t/testto match.pipis in the build arch’s tree only; the cross builds run--without-ensurepip.
The build stages keep it too, for the
cp3XYtwheel builds: toolchain, media and android carry the build arch’s interpreter at/opt/python-freethreadedand/usr/local/bin/python3.14t, and eachCROSS_TARGETSarch’s tree under/opt/python-cross-ft/. The media stage builds its twins with it (§ The free-threaded wheels).Each stage checks it.
build_python.shfails a cross tree without_ssl,_hashlib,_sqlite3,zlib,_bz2,_lzmaor_ctypes.smoke-toolchain.shruns the twin and checks every staged arch’s tree.The package stage stops when the COPY’d interpreter is missing, does not report
PYTHON_VERSIONwith the GIL off, or cannot import ssl, sqlite3, ctypes, zlib, lzma and bz2.The
free-threaded-pythoncontract row checks the same on the shipped image, and thatsysconfig’s prefix is/opt/python-freethreaded, which tells the source build from a python-build-standalone one.
Its sysconfig names only tools the image runs. A cross arch’s tree (arm64, riscv64) records the toolchain stage’s
/opt/gcc-<ver>/bin/<triplet>-ar, and the target image’s GCC prefix has noar: on riscv64, pillow’scp314tbuild died with exit 127 (measured 2026-10-20 in:latest; arm64’saarch64-linux-gnu-aris missing the same way). The torch stage runs06-packaging/free-threaded-sysconfig-tools.py fix, which points every compiler tool (CC,CXX,AR, the link commands) that does not exist at the same name onPATH(riscv64-linux-gnu-ar, from binutils), in the sysconfig data, its JSON twin and the configMakefile, then fails the build if any tool still does not run. Test:test-free-threaded-sysconfig-tools.sh.
The free-threaded wheels#
Every wheel the media stage builds for a package whose own code declares free-threading
support also ships as a proved free-threaded (cp3XYt) twin, in a store of its own: /opt/wheels-free-threaded
(owner request 2026-10-07; no version in the name since 2026-10-12, so a Python upgrade renames nothing). That holds for the cross-built arches too, arm64 and riscv64, since
2026-10-09 in source (CON75, CON79 1b). The GIL wheels are built exactly as before.
The rules for the twins:
03-media/free-threaded-twins.txtdecides, row by row against aversions.envpin, so a bump re-reads the evidence. It is the one table both lanes read (ft_wheel_table, Windows’Get-FreeThreadedTwinTable), so never copy a row into either reader.A wheel the table does not classify fails a native media build.
Never install a twin into a GIL venv, and keep the library and its table mounted per file, outside
01-coreandruntime/.Which packages. One table decides,
linux/scripts/03-media/free-threaded-twins.txt, and both lanes read that file:ft_wheel_tablehere,Get-FreeThreadedTwinTableon Windows, so their verdicts cannot differ. Each row names theversions.envpin its evidence was read at, andtest-free-threaded-wheels.shfails when that pin moves, so a bump re-reads the evidence. The media RUNs that build or store a twin mount it besidefree-threaded-wheels.sh, and a missing table stops them rather than reading every package as unclassified.Package
Verdict
Evidence, at the pinned tag
onnxruntime(every flavour)twin
PYBIND11_MODULE(..., py::mod_gil_not_used()), pybind11 v3.0.2av(PyAV)twin
setup.py:"freethreading_compatible": Trueapache-tvm-ffitwin
core.pyx:# cython: freethreading_compatible = Trueiree-base-runtimetwin
nanobind_add_module(... FREE_THREADED ...)iree-base-compilertwin
MLIR’s
nanobind_add_module(... FREE_THREADED ...)torchtwin while
FT_TORCH_TWIN=1torch/csrc/Module.cpp:PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED); the chain builds torch on riscv64 onlynumpytwin while
FT_TORCH_TWIN=1multiarraymodule.c:{Py_mod_gil, Py_MOD_GIL_NOT_USED}; no chain build ships a numpy wheel, so the row only classifies oneapache-tvmnone needed
wheel.py-api = "py3": its onepy3wheel installs on3.14ttorchvisionnone needed
no CPython extension module of its own
onnxruntime-genai,ai-edge-litert,hailortGIL only
no free-threading marker
libcamera’s pycamera, OpenCV’s
cv2GIL only
no marker, and they ship in the tree, not as wheels
A knob row.
twin:<KNOB>names aversions.envswitch: the row is a twin only while that key is1.FT_TORCH_TWIN=1is the default, andDockerfile.mediatakes it in the app-wheelhouse RUN, which builds the twin, and in the final RUN, whose store check expects it. Windows reads such a row as no twin.How a twin is built. Each build runs a second pass on a
3.14tvenv whose build executors are pinned to the GIL build venv’s own versions, in the GIL pass’s tree, so only what sees Python rebuilds. Measured in:lateston 32 cores (2026-10-07):Package
Twin pass, cold compiler cache
Warm
What the twin pass rebuilds
ONNX Runtime CPU (GIL pass: 760 s at
-j11)97 s
11-40 s
539 of 3206 objects, every target whose compile line carries the Python and NumPy include dirs; of the wheel’s four libraries only
onnxruntime_pybind11_state.sodiffersONNX Runtime CUDA,
:latest-nvidia(GIL RUN: 12 672 s, 578 CUDA objects)192 s
32 s
no CUDA object; the C++ targets that see Python, from the compiler cache
ONNX Runtime MIGraphX,
:latest-rocm(GIL RUN: 1311 s, 590 HIP objects)57 s
no HIP object; 106 C++ objects
PyAV
28 s
14 s
all 50 extensions, re-Cythonized because the fresh venv’s Cython includes are newer: all of PyAV sees Python
apache-tvm-ffi
29 s
all 34 steps: scikit-build-core’s reconfigure rebuilds the small C++ core too
IREE compiler and runtime (GIL pass: 55 s configure, 2334 s build at
-j16)25 s
58 of 5452 objects, the bindings alone (below)
The GPU rows are chain runs, not the 32-core measurement: nvidia 20261010-125556 (first) and 20261010-202726 (warm), rocm 20261009-152508. Each GPU build hands the pass its own
BUILD_ARGSand build dir, and the pass appends onlyPython_EXECUTABLE, as the last define. No GPU script passes a Python include dir, so FindPython re-resolves the3.14theaders, NumPy include and SOABI in the warm cache (CMake 4.4.4, checked on a scratch project). A carried GILPython_INCLUDE_DIRwould survive that reconfigure, which is the riscv64 torch twin’s bug below.test-free-threaded-wheels.shholds both GPU flavours to that. The IREE row is from a cold compiler cache, the full in-tree LLVM, and a settled GIL tree. The runtime-only tree, before the settle, took 130 s at-j4and recompiled 464 of its 723 objects.Why the GIL tree configures twice. IREE’s first configure leaves
IREE_HAVE_LIBBACKTRACEunset and a second one sets it (linux-cross-builds.md § IREE). On an unsettled compiler tree the twin’s reconfigure would change 1272 compile lines, 757 of them compiler sources, and relink the 339 MBlibIREECompiler.so. The GIL pass therefore configures twice (17 s more), and the twin’s reconfigure (11 s) then changes only what sees Python.What the twin pass rebuilds. 27 IREE compiler binding objects, 20 runtime binding objects and 11 MLIR Python objects. It then relinks nanobind’s free-threaded libraries,
libMLIRPythonSupport-mlir.soand the 15 modules.What differs from the GIL wheels. The extension modules,
libMLIRPythonSupport-mlir.so, and nanobind’s library (libnanobind-mlir.soin the GIL wheel,libnanobind-ft-mlir.soin the twin), plusWHEELandRECORD. Everything else is byte-identical, includinglibIREECompiler.soand the ten runtime tools.
How a cross twin is built. The amd64 build host’s own
3.14t(/opt/python-freethreaded) runs the build tooling, andft_target_resolvereads the target’s tree, which the toolchain stages at/opt/python-cross-ft/<arch>(CON66). That gives the target’s headers, itslibpython3.14t.so, itsEXT_SUFFIX(.cpython-314t-riscv64-linux-gnu.so, read from the tree’s_sysconfigdata_t_*.pywithout running it) and the wheel platform (linux_riscv64).ft_target_envthen points the build’s sysconfig at a private copy of that file, the way the GIL cross pass points it at the target’s GIL one:PyAV compiles against the target headers with that suffix.
tvm-ffi’s scikit-build-core reruns in the cross pass’s build dir.
IREE reconfigures its runtime tree with the target
3.14tinclude dir and library.ORT passes
Python_INCLUDE_DIRtobuild.sh.The riscv64 torch reruns its warm scikit-build tree with the target
3.14ton the command line, where the toolchain file’s cache entries cannot reach. ItsCMAKE_ARGSare built afresh rather than appended to the GIL pass’s: that pass’s-DPYTHON_INCLUDE_DIRheadstorch_python’s include path, so a twin that kept it compiled against the GILpyconfig.h. That twin’slibtorch_python.sowas byte-identical to the GIL wheel’s, and it segfaulted indlopenunder the target3.14t(2026-10-10). The fixed pass takes about 240 s warm, and itslibtorch_python.soimports_Py_DecRefSharedandPyUnstable_Module_SetGIL.
A cross build that is missing the target tree fails its twin, rather than skipping it.
How a twin is proved. Before it is stored,
ft_soabi_gatewants acp3XY-cp3XYtname whose platform tag names the suffix’s machine, and the free-threaded SOABI on every version-tagged module. A cross build gates against the target’s suffix. Natively, a fresh3.14tvenv takes the wheel alone, wherefree-threaded-wheel.py proveloads every compiled module and fails when the GIL comes back on. A cross twin is unpacked instead and proved by the target’s own3.14tunder qemu-user (ft_prove_wheel_on_target):-Lnames the root holding the target’s loader, and the target tree’slibleadsLD_LIBRARY_PATH. A bare.socounts as a module only when it exportsPyInit_<name>, so ORT’s bundledlibonnxruntime_providers_shared.sois not loaded as one. Before a module loads, its enclosing package is imported. A package whose body cannot run in a--no-depsvenv is registered unrun instead, as an import in progress leaves it:torch._C’s init importstorch, whose body needstyping_extensions. numpy’s test modules need the realnumpy, which is why the import is tried first. A proof never fails with an empty reason.faulthandlerprints a segfault’s stack, the verdict names the exit status or signal, andFT_PROVE_TRACEnames the module that was loading. A twin that fails any of it fails its RUN; inside TVM’s best-effort build that withdraws TVM, as any failure there does.How the stores stay apart.
collect-artifacts.shmoves the twins intoFT_WHEELS_DIRonly, and the ORT twin gets its own manifest,ort-provenance-free-threaded.sha256.verify-wheels.shis ABI-exact on both stores: acp3XYtwheel or module in/opt/wheelsfails it, and so does anything butcp3XY-cp3XYtin the twin store. The final RUN then repairs and verifies the twins with--free-threaded, andfree-threaded-store.shproves them again on the repaired bytes. A cross build proves them under qemu-user again. A build, native or cross, fails there when the store is not exactly one twin per GIL wheel the table expects a twin of, or when a GIL wheel has no row. It writesfree-threaded-store.txt: the build mode, each twin, onewant <family>line per family it expects, and one line per package without one, with its reason.What ships.
Dockerfile.torchcopies/opt/wheels-free-threadedinto:latest, late, so a new twin re-keys no venv layer, and the export delivery seals it with/opt/wheels. Nothing installs a twin: an X.Yt venv takes them withuv pip install /opt/wheels-free-threaded/<wheel>. The image names the store inPYTHON_WHEELS_FREE_THREADED, as Windows’ does since CON91 (its older images setPYTHON_WHEELS_CP314T, which every reader still takes), anduv_reconcile_chain_ortgives an X.Yt venv’s ONNX Runtime from it (python-ci.md§ Trap 3).How the shipped image proves it. The runtime smoke’s
FT-STOREgate (06-packaging/check-free-threaded-wheels.sh) wants the store, its record and that variable on every arch. On every arch, native or cross-built, the store holds exactly the twin families of/opt/venvthat the record wants, the installed ORT flavour’s own twin included. Each twin loads every compiled module on/usr/local/bin/python3.14twith the GIL off, under QEMU on a foreign arch. A/opt/venvpackage whose family the record does not want gets anOKline naming it: PyPI’s torch on amd64 and arm64, and PyPI’s IREE compiler on a cross arch, whose chain builds the IREE runtime only. The GPU images pass it with both ORT twins::latest-nvidia(2026-10-11, index sha256:810f36b3) provesonnxruntime_gpuandonnxruntime_dnnl,:latest-rocm(2026-10-09, index sha256:a5d68fbe)onnxruntime_migraphxandonnxruntime_dnnl, and the ORT census grades each twin’s members against the flavour’sort-provenance-free-threaded.sha256.Not covered yet. The cross twins are in source since 2026-10-09 and unproved until a chain publishes them. Proved so far without a chain: PyAV 19.0.1’s twin, cross-built against the published riscv64 image’s FFmpeg and
3.14ttree. All 50 modules loaded with the GIL off on riscv64 under QEMU, throughFT-STORE’s own probe and verdict. A minimal C module went throughft_store_twinthe same way, and itsPy_mod_gil-less control was refused. Windows builds no twin of a knob row. The IREE compiler twin was proved locally in:latestamd64 on 2026-10-07, but not yet in a chain:proveloaded its 14 compiled modules with the GIL off.A 3.14t venv parsed MLIR in-process, compiled an
addfunction to a VMFB and ran it onlocal-taskfrom 8 threads.iree-compileandiree-run-moduleran from the twins.
Offline free-threaded probe dependencies#
The normal ORT factory import initializes NumPy. Its generic compiled-module declaration probe
does not execute that full import. The prepared runtime layer therefore stages NumPy separately
in /opt/ft-probe-deps; it does not change /opt/wheels-free-threaded or its exact family set.
build-free-threaded-probe-deps.sh reads PY_NUMPY_VERSION and the Python pin. Its companion
free-threaded-probe-deps.py requires the matching free-threaded-probe-deps.json lock and a
running target FT interpreter with the GIL off. Copy all three files together.
AMD64 and ARM64 retain their exact official wheels. RISC-V retains the verified original sdist and builds its wheel on the target interpreter, including under QEMU. uv leaves its sdist tree in its output directory. So it builds beside the pool, and only the wheel moves in. The dedicated per-arch BuildKit cache retains the wheel and receipt; every reuse rechecks input/output hashes and runs a normal NumPy import in a fresh offline venv with the GIL checked before and after. Source builds use the shared compiler-cache launcher, report its statistics to stderr and drain the shared S3 layer. No cache-size or GC policy changes are part of this layer.
The receipt binds the upstream URL/hash, NumPy version, Python FT tag, architecture and exact wheel hash. Validation also checks wheel metadata, the original license, ELF class/byte order and machine, and refuses extra files or symlinks. ELF headers do not prove a complete loader closure, and the receipt trusts the image builder for the source-to-wheel relation. The wheel retains its complete bundled notices; the curated NumPy entry does not enumerate its transitive native library licenses.
FT-STORE installs only that checked wheel into its disposable venv with --offline --no-index --no-deps, before the existing module and full ORT factory controls. A failed dependency install
emits FTS NOINSTALL and fails the verdict. Source-level fixtures prove refusal and dispatch;
they do not establish RISC-V execution, the final image matrix, GPU availability or inference.
The Windows image ships lavapipe#
The Windows amd64 image and the arm64 bundle carry Mesa’s lavapipe — a CPU Vulkan
device, the only software one that also runs the ray-tracing goldens — with the
target arch’s Khronos loader and vulkaninfo.exe, all SHA256-pinned, in
C:\runtime\lavapipe (CON50). Since lavapipe 26.3.0 neither the image nor the
host installer sets LP_NATIVE_VECTOR_WIDTH: Mesa 26.3 deleted the BVH sort that
needed 8-lane subgroups (ebcfbe60), so each arch runs its native width, 128 bits
on arm64, and the smoke gate fails an image that sets it. The amd64 image registers the ICD in HKLM at build time — a container
process is elevated, and the loader ignores VK_DRIVER_FILES there. The arm64
bundle cannot register it while it is packed, so the device needs the one-time
HKLM registration the bundle README names; Test-Arm64Bundle.ps1 runs
vulkaninfo --summary and fails a device without the llvmpipe device.
:winamd64 carries the device since the 2026-10-04 republish (the smoke lists
llvmpipe); the :winarm64 bundle is published and its device gate lists llvmpipe (12/12 on the Snapdragon X).
Native DLL provenance#
Windows images carry manifests that tie shipped DLLs to their source and original license texts:
Manifest |
Root |
Covers |
|---|---|---|
|
|
Every DLL meson installed for GStreamer, OpenSSL, and the gst-plugins-rs contract plugins |
|
|
|
|
|
|
|
|
The flattened CUDA and cuDNN DLLs, on nvidia images |
|
|
FFmpeg’s DLLs and tools, with the GPL texts and the source offer below |
Each entry has file, sha256, source (name, version, url, and a hash or revision when known) and notices
(path, sha256). Paths are relative to the root. Check one with Assert-NativeProvenanceManifest from
WindowsNativeProvenance.Common.psm1, and a package’s import closure with Get-NativeClosureGap.
A manifest records where bytes came from and proves they are unchanged. It does not cover code a Rust plugin links statically, decide whether a license suits your distribution, or prove GPU inference. The NVIDIA display driver is a host dependency and is not listed.
The CUDA runtime ships only names on Attachment A of the CUDA EULA or in cuDNN’s terms. nvfatbin_130_0.dll is not on
that list, so it left the image; Copy-CudaRuntime.ps1 fails on any new unlisted DLL.
ONNX Runtime’s provider DLLs now sit in %ONNX_ROOT%\bin beside onnxruntime.dll, where the core loads them from.
Nothing under %ONNX_ROOT%\lib is a provider DLL any more. Import libraries stay there.
GStreamer inference pipelines use onnxinference, tfliteinference and the tensor decoders. NNStreamer’s tensor_filter,
tensor_transform and tensor_decoder are not in these images, and GStreamer has no onnxruntime element.
onnxinference refuses a model without a <model>.modelinfo file beside it (Failed to load modelinfo). Each section names one
tensor, with type, dims and dir matching the model. GStreamer’s modelinfo-helper in gst-devtools writes one.
Windows images before this fix failed every session with a garbled path, whatever the model.
The FFmpeg source offer#
The Windows FFmpeg is GPLv3: it is configured with --enable-gpl --enable-version3 and links x264 and x265 (and the
BSD dav1d) statically. Its build ships what a package needs to carry it (owner decision):
%FFMPEG_ROOT%\licenses\{ffmpeg,x264,x265,dav1d}\: the licence texts from the top of each exact source tree.%FFMPEG_ROOT%\share\sources\ffmpeg\: the exact archive each was built from,build\with the two build scripts and the FFmpeg patches,sources.json(name, version, revision, URL, file, SHA-256) andSOURCE-OFFER.txt, the same list for a reader.ffmpeg.json: everybinDLL and tool, with all of the above as its notices.
x264 is a clone, so its archive is git archive of the pinned commit. Publish-NativeSourceOffer
(WindowsSourceOffer.Build.psm1) writes it; Get-NativeSourceOfferFinding checks it, and the smoke gate runs that
check. The prebuilt BtbN fallback (FFMPEG_ALLOW_PREBUILT=1) writes no offer, so the gate refuses that image.
FFmpeg’s archive is pinned on both lanes. Each hashes the tag’s GitHub archive by its decompressed stream against
FFMPEG_SHA256, because GitHub may re-gzip the same tar. Linux’s git fallback must land on FFMPEG_TAG_COMMIT.
Renovate moves the tag and spec_ffmpeg_tag_commit the other two
(what one call moves).
Whether GPL parts may sit beside the MSVC runtime is still open.
A package that carries the DLLs carries the texts and the offer, and its release the archives.
Copy-NativeSourceOffer (WindowsSourceOffer.Common.psm1) copies, for each owner DLL a bundle holds, every notice of
its manifest entry. Licence texts keep licenses\<component>\; the two offer files go to licenses\<owner>-source\.
Assert-PackageSourceOffer then compares each one in the finished ZIP, MSIX or MSI with the image’s bytes. An image
that predates the offer has no manifest: both print a warning and pass, so a consumer is not red before the rebuild.
The smoke gate makes every newer image carry the manifest, so the warning cannot hide a lost offer.
Export-NativeSourceArchive then copies the archives, build scripts and patches to the package folder’s
source-offer/, each checked against its SHA-256. The release attaches them
(collecting the release files).
The CUDA plugin EP#
:latest-nvidia’s CUDA EP is ORT 1.31’s plugin build of the same code
(linux-accelerator-images.md): the module keeps its
name, /usr/local/lib/onnxruntime-gpu/lib/libonnxruntime_providers_cuda.so, and the
onnxruntime-gpu wheel in /opt/venv registers it on import, so Python’s
providers=["CUDAExecutionProvider"] is unchanged. A C++ or Rust consumer registers that path under
the name CUDAExecutionProvider once per process before it creates a session
(Ort::Env::RegisterExecutionProviderLibrary; in Rust Environment::register_ep_library, ort 2.0.0-rc.15);
the legacy OrtSessionOptionsAppendExecutionProvider_CUDA bridge is gone with GetProvider.
NVIDIA’s plugin TensorRT EP#
:latest-nvidia ships NVIDIA’s standalone TensorRT plugin EP
(linux-accelerator-images.md) and names it:
Variable |
Linux ( |
|---|---|
|
|
The library is ${ORT_TENSORRT_EP_ROOT}/lib/libonnxruntime_ep_tensorrt.so. Register it under the
name TensorRTPluginExecutionProvider, select the device it reports, and pass plain provider
options; the calls are the ones under AMD’s plugin MIGraphX EP with this
name and root. The in-tree TensorrtExecutionProvider left the GPU prefix and the wheel on
2026-11-08; under TensorRT ≥ 11.4 the FP16/INT8/BF16 options are ignored. The Python app bundles
do not carry it: it is an image-root module a consumer registers by path.
ONNX Runtime loader evidence#
shared/python/verify_ort_loader_trace.py checks glibc LD_DEBUG=libs output from
the actual package launch. Its profile mode preserves the profile bytes in a private
temporary file, requires the canonical verify_ort_profile.py provider verdict and
two complete sequential runs by default, then selects exactly TRACE_PREFIX.PID.
Every selected ORT or plugin init record in that trace must carry the profile’s
process ID and belong to the caller’s expected package directory, including duplicates.
An internal HIP probe can fork before loading its runtime and write unrelated library
records under its child PID into that same trace. Those records do not supply required
ORT/plugin evidence. A selected core or plugin under a foreign or malformed PID still
fails, even when a correct parent record also exists.
python3 -I shared/python/verify_ort_loader_trace.py \
--trace-prefix evidence/loader --runtime-root /absolute/bundle/lib \
--profile evidence/migraphx-profile.json --device migraphx-plugin \
--plugin libmigraphx-ep.so
For AppImages, supply the extraction parent as --runtime-root and the relative
payload directory, such as --appimage-subdir usr/lib/oxidant/lib. The extraction
directory must be appimage_extracted_ followed by exactly 32 lowercase hex digits.
Canonical CLI roots, malformed trace paths, missing libraries and linked trace files fail.
Parent segments in a traced path, such as /usr/bin/../lib/accelerantgine/libonnxruntime.so.1,
require explicit --resolve-root /usr/lib/accelerantgine while those files still exist.
The normalized lexical parent must match the expected package directory, and the original
path must resolve strictly to a file inside that real root. A symlink before .. can change
the actual destination, so lexical normalization alone is insufficient. Without live resolution,
parent segments remain refused. Repeated separators, dot components and backslashes stay invalid;
receipts retain each original trace path rather than replacing the evidence with a normalized copy.
Copy verify_ort_profile.py beside the new CLI when using profile mode. The Python
API verify_loader_traces also accepts a caller-owned directory regex for archived
evidence layouts. Calls without a profile aggregate traces and make no inference
claim. Even a profile-bound success proves paths and process association: it does
not authenticate the traces, compare library bytes, establish a single ORT session,
prove a clean host or close the source/licence inventory. Preserve finished-package
byte proofs and the original profile/trace evidence separately.
AMD’s plugin MIGraphX EP#
:latest-rocm ships AMD’s plugin MIGraphX execution provider, its only MIGraphX EP since 2026-11-08, and names it:
Variable |
Linux ( |
|---|---|
|
|
The library is ${ORT_AMDGPU_EP_ROOT}/lib/libmigraphx-ep.so. Register it once per process, then select the
device it reports; the EP’s name is the registration name you choose:
Python (
onnxruntime1.31):ort.register_execution_provider_library("MIGraphX", path), thenso.add_provider_for_devices([d for d in ort.get_ep_devices() if d.ep_name == "MIGraphX"], {}).C++:
Ort::Env::RegisterExecutionProviderLibrary("MIGraphX", path), thenSessionOptions::AppendExecutionProvider_V2with the matchingOrtEpDevice.Rust (
ort2.0.0-rc.15): the oneEnvironmentthatort::init_from(dylib)?.build()?returns, kept alive by the consumer (ortholds only a weak reference) and passed to everySession::builder(&env):env.register_ep_library("MIGraphX", path), then the device fromEnvironment::devices()whoseep()is"MIGraphX", appended withSessionBuilder::with_devices(its option keys need theMIGraphX.prefix; a key without it is dropped) or the rawSessionOptionsAppendExecutionProvider_V2. The crate has noregister_execution_provider_library.
Read in the plugin’s source at ORT_AMDGPU_EP_COMMIT, not run on a card: it takes exactly one device, the card is
chosen by the option device_id, and an option it does not list (migraphx_mem_limit among them) fails the
session. A profile of such a session names its nodes MIGraphX, which verify_ort_profile.py --device migraphx
requires.
MIGraphXExecutionProvider no longer exists in the image: the built-in provider was unmaintained
upstream and bound a strided partition output onto ORT’s dense buffer on MIGraphX ≤ 2.18
(failure-modes); the plugin
refuses that case loudly and supports every op MIGraphX parses. The rocm image’s ORT is the CPU build
(onnxruntime, not onnxruntime-migraphx). Do not use get_available_providers() to discover an
unregistered plugin; register its module and select a matching device. The reported available list
may also include a plugin after registration, so it is not a proof of session activation. A Python app bundle built from the image carries the module
beside the chain ORT as onnxruntime/capi/libmigraphx-ep.so, and its self-test reports it under
registered_plugin_eps (python-app-bundles.md). A native package that
carries the module beside the chain core leaves it unpatched and states its launcher’s library path to the bundle
census (Prove your bundle ships the image’s ONNX Runtime).
Either package resolves the module in the order under Which module a package loads,
and carries the root’s licence texts and provenance beside it (stage_plugin_ep_notices,
third-party-licenses.md).
Why and how it is built:
linux-accelerator-images.md; the move per consumer is
BACKLOG CON231 step 2.
The shared Python owner is shared/python/ort_plugin_eps.py, declared as the exact
ort-plugin-registration-python asset. Give its consumer-manifest row a path inside
the installed application package, then import that copy. The runtime-binding protocol
keeps its library argument positional-only and marks the unused declaration with an
underscore prefix, so strict dead-code checks can grade the shared copy without an exception.
register_plugin_library uses the supplied ORT binding, not an implicit import; only a successful native call
enters its locked per-binding cache. A missing advertised root or module is fatal,
while an absent advertisement and absent bundled module leave CPU use untouched.
registered_plugin_names reports those successful calls. select_plugin_device
registers first and selects the requested matching device from fresh get_ep_devices()
results; pass that device to SessionOptions.add_provider_for_devices. Both take reuse_existing=True, as
the native helper does. A device another library already listed is then used without
registering again. It is never reported as this helper’s registration. Omit the
providers argument of InferenceSession (or pass None): a nonempty constructor
provider list overrides providers already attached through session options. The
Python session implementation
warns about this precedence. MIGraphX registration itself queries HIP devices, so a
GPU-less CPU path must not claim successful registration merely from module presence.
The native owner is shared/native/ort_plugin_eps.hpp, the exact
ort-plugin-registration-native asset. Include the owning runtime’s C API header and
instantiate PluginRegistry<OrtApi> with that API table and its OrtEnv. Every caller
of the same environment shares one registry; retain both API and environment for its
whole lifetime. Keep session ownership alive until before that environment is released.
It returns failure text and consumes failed statuses instead of entering aborting
ORT_NO_EXCEPTIONS C++ wrappers. Without an advertised root it resolves the loaded
core from an address in that supplied API, then finds a bundled module beside it;
callers may supply an explicit absolute bundle directory. An advertised image root
still wins. Missing optional modules and dangling bundle links remain distinct; fallback
compares the queried file-status enum, allowing exact mirrors under conservative consumer
filesystem guards. Registration and V2 attachment
are separate from session creation and real operator placement. The compiled fake API
suite proves policy, and a real-header object checks signatures; neither proves a new
runtime image, packaged inference or Windows loading.
An append that must coexist with another library’s registration can pass true as
the final reuse_existing argument to append_provider. The default append and
explicit register_library still require native registration. The opt-in validates
the module and any registry-owned name/path binding first, then attaches the selected
matching device already offered by the same environment without registering twice.
Enumeration and append failures remain fatal. Such devices do not enter
registered_libraries(): reuse neither authenticates the external factory’s module
nor proves inference, and it does not coordinate external unregistration.
test-ort-plugin-native-mutation-controls.sh compiles and links every external-device
mutation before requiring a policy assertion or a lower independent check count.
Compiler warnings, link failures, crashes and malformed reports cannot satisfy that
control. Its own negative controls reject those outcomes and an unchanged passing
fixture. The ordinary native suite stays separate so a failing compiler cannot mask
a registration-policy test; both suites share the fixture compiler and result parser.
Object compilation and linking are separate, allowing the supplied compiler cache
to store compilation results. These fake API fixtures do not prove ORT ABI or GPU use.
The Rust policy owner is shared/rust/ort_plugin_eps.rs, the exact
ort-plugin-registration-rust asset. Its adapter receives the owning environment, returns
explicit enumeration failures and attaches the selected matching device with plain options.
The pinned crate’s Environment::devices() discards GetEpDevices errors, so an adapter must
use its typed C API when preserving that error. register_ep_library returns a weak handle;
dropping that handle does not unregister the library. Keep one locked registration cache per
environment and never replace a successfully registered name with another canonical path.
append_provider_reusing_external attaches a device another library of the process already
registered, as the native helper’s reuse_existing does. It never records that registration as
its own and keeps an enumeration failure an error; ordinary append_provider always registers.
The prepared OxidANT adapter holds a weak environment reference and resolves its bundled module
beside the actual loaded C API owner. Its fake-adapter tests prove policy/concurrency only;
actual crate compilation, runtime teardown and finished-package inference remain separate checks.
shared/rust/loaded_module.rs resolves a symbol’s owning loaded file on Linux and Windows. Linux preserves filename bytes and spaces, prefers the kernel mapping link and refuses ambiguous escaped newlines in its text fallback. This locates a path; it neither authenticates mapped bytes nor retains a module lifetime. The Dart fixture loads the library relatively, changes cwd, and independently rejects an expected path naming a different existing module.
The exact shared asset rows cover this lookup, Rust worker binding and test companion, C source/header and HIP executable source/header. Consumers declare their own destinations; package transport still needs the corresponding target-native built worker.
The prepared Linux worker transport is shared/rust/isolated_helper.rs with
shared/native/isolated_helper.c and .h. The control-only supervisor owns the fresh
executable’s waitpid; the parent validates its complete private packet and EOF before
accepting a status collected by another runtime. Keep descriptor closure, parent-death
guards, raw exec failures and timeout kill/reap. The worker runs application work only after
execve and exits normally, including runtime teardown. The actual Dart VM fixture covers
external reaping and12 isolated-worker cases. Nine native executable/fake-HIP checks now
preserve cleanup/error exits and a17-byte LSan failure through the actual worker wait; the
controls run before Dart child cleanup. The required real report rejects a compiled early
exit86 without sanitizer teardown; matching status alone cannot pass. The actual probe also
passes under the local engine default seccomp profile. These shared fixture results do not establish Cargo wiring, a real HIP driver,
installed-bridge, package or hardware acceptance. Details and the original negative control:
child ownership.
Repeated registration never silently changes the path behind a name. The helper coordinates its own calls only; it does not coordinate external unregistration. Fake-binding and shared-copy tests prove these policies, not native ABI compatibility, a working driver, operator placement or packaged inference. The consumer integrations and hardware profile criteria above remain required.
Which module a package loads#
The three shared helpers look for the module in one order. A native package that registers the plugin with code of its own keeps the same order:
ORT_AMDGPU_EP_ROOTset and not empty:${ORT_AMDGPU_EP_ROOT}/lib/libmigraphx-ep.soand nothing else. A relative root, a root that is no directory and a missing module are errors. None of them falls back to the packaged copy.Unset or empty:
libmigraphx-ep.sobeside the ORT core the process uses. For a native package that is the directory of the library behind itsOrtApi(the native helper reads it from an address in that table). For a Python bundle it isonnxruntime/capiof the imported binding.Neither: no module. The Python resolver returns
None; the C++ registry returnsfalseand the Rust one anErr, both with “MIGraphX plugin is unavailable”. Running on the CPU then is the caller’s choice. A dangling link in step 2 is an error, not an absent module.
:latest-rocm sets the variable, and every other variant sets it empty. So a package started inside
the rocm image loads the image’s module, not its own. This is the trap ORT_DYLIB_PATH sets for the
core, and the fix is the same: start a package check in that image with ORT_AMDGPU_EP_ROOT= (empty
reads as unset). The hub’s Python bundle self-test does so for every call. A resolver that takes the packaged copy when the root holds no module turns a broken
root into a silent switch of module; use the order above instead.
Historical OxidANT workspace replay#
The preserved 11 November 2026 canonical prepared-workspace run passes 912 tests in 64 summaries without failed, ignored or filtered cases. It includes required CPU models, GenAI, GTK, GStreamer, software Vulkan and post-test ORT/tract/XNNPACK photograph parity, with the normal image entrypoint. Its raw log SHA256, cleanup and independent container-absence receipts are rechecked.
The newer 955-file prepared package snapshot matches the recorded 953-file inventory’s declared Rust, Cargo, native and shader hashes; 17 documentation, script and test paths differ. Seven files in the historic source root no longer match that inventory. Preserve the evidence and do not treat the historic root as an unchanged current checkout. Recorded Hub-pin integration, fresh-image execution and actual finished GPU packages still require their own receipts.
Qualcomm’s plugin QNN EP#
:latest on arm64 ships Qualcomm’s plugin QNN execution provider, built from its pinned ORT fork
(qnn-linux.md); the ORT CPU library carries no in-tree QNN EP since
2026-11-08.
Variable |
Linux ( |
|---|---|
|
|
The library is ${ORT_QNN_EP_ROOT}/lib/libonnxruntime_providers_qnn.so, with the QAIRT backends
(libQnnHtp.so, libQnnGpu.so, the HTP skels) beside it. Register it under the name
QNNExecutionProvider, select the device it reports, and pass plain provider options
(backend_type: htp, gpu; backend_path for an explicit backend); run options carry the qnn.
prefix (qnn.perf_mode). The Python, C++ and Rust calls are the ones under
AMD’s plugin MIGraphX EP, with this name and root. Windows arm64 ships
the same plugin as onnxruntime_providers_qnn.dll under its own ORT_QNN_EP_ROOT. The move per
consumer is BACKLOG CON232; nothing in the fleet has run QNN on a Linux device yet.
The ort crate links the chain ONNX Runtime#
Both published images set the environment of the Rust ort / ort-sys crates,
so a Rust build inside them links the chain ONNX Runtime and can never fetch
pyke’s prebuilt one (G3 of the
ONNX Runtime single-source rule).
Variable |
Windows ( |
Linux ( |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Why these four, read from ort-sys 2.0.0-rc.15 (the checksum OxidANT’s
Cargo.lock pins since 2026-11-20; rc.13 read the same) and ort 2.0.0-rc.15:
build/main.rs:47-67readsORT_LIB_PATH, thenORT_LIB_LOCATION, before the download branch (an enabledpkg-configfeature is tried before both; no consumer enables it). WithORT_PREFER_DYNAMIC_LINKset to1ortruethe build script emitsrustc-link-lib=onnxruntimefrom that directory; without it, ort-sys tries a static link the chain does not ship.The first SET one of
CARGO_NET_OFFLINE,ORT_SKIP_DOWNLOADandORT_OFFLINEdecides, and only exactly1ortrueskips the download. An empty value is set, so an emptyCARGO_NET_OFFLINEre-arms the download, and an emptyORT_LIB_PATHstill outranksORT_LIB_LOCATION.ort’s load-dynamic opensORT_DYLIB_PATH, otherwise a bare file name, which on Windows reachesSystem32\onnxruntime.dll(Windows ML 1.17) before PATH.ort’s default features includedownload-binaries(and, in rc.15,copy-dylibsandapi-31).
What it means for a consumer.
An
ort-sysbuild in the image links the chain import library, so a shipped bundle must carry the chain DLL or.sobeside the app.Keep
ORT_LIB_PATHunset and never export a falsyCARGO_NET_OFFLINE.On the Linux GPU variants the variables name the CPU chain build, which is what
ld.soresolves. An NVIDIA consumer points both atonnxruntime-gpu/lib, which is chain-built too; rocm has no such tree, its MIGraphX EP is the plugin underORT_AMDGPU_EP_ROOTover the CPU core. On:winarm64they name the aarch64 chain ORT.ORT_DYLIB_PATHis baked in, so inside the image a program that honours it loads the image’s copy, not one staged beside its exe. A bundle smoke run inside the image should unset it to exercise the staged copy.
How it is proven on the shipped image. Windows: Test-Container section 19,
Get-OrtCrateEnvFinding, on every lane. Linux: the contract row ort-crate-env.
Its probe reports ORT_LIB_PATH and CARGO_NET_OFFLINE as <unset> when they
are not set, and the row passes only with ORT_LIB_PATH unset and
CARGO_NET_OFFLINE unset, 1 or true; a missing line reads as set-but-empty and
fails. Both compare values untrimmed, as ort-sys does. The static half is
verify-critical-fixes.sh fix11. Not covered: Rust builds outside the images, and
the live in-image cargo build -vv of a scratch ort-sys crate, which is still to
run at the next image build.
The chain ONNX Runtime wheels#
Linux:
/opt/onnxruntime-wheels, advertised asORT_CHAIN_WHEEL_DIR, holds exactly the ORT and GenAI wheels/opt/venvwas installed from.setup-torch-venv.sh stage_chain_ort_wheelsproves the venv against it at build time. The census that proof runs ships at/opt/scripts/03-media/final/ort-venv-census.py; its command line and output lines are a contract thatpython_uv.shandsetup-torch-venv.shread. The free-threaded twins of those flavours sit in/opt/wheels-free-threaded(PYTHON_WHEELS_FREE_THREADED).Windows: the same wheels sit in
C:\runtime\wheels(PYTHON_WHEELS). The census ships atC:\temp\scripts\ort-venv-census.py, beside the module copy whoseSync-UvChainOnnxRuntimeruns it;Build-TorchApp.ps1reads that staged sibling and feeds its source to the app venv’s interpreter.Who gets them: a consumer on the hub’s Python CI has its venvs reconciled onto them inside our images (
python-ci.md§ Trap 3). Anyone else callsuv_reconcile_chain_ort <venv>orSync-UvChainOnnxRuntime -VenvPath <venv>.
Prove your bundle ships the image’s ONNX Runtime#
Run the ORT census (G6) inside the image you built in, after staging the runtime
DLLs or .so files. The reference is that image’s chain ORT.
Windows:
Import-Module C:\temp\scripts\modules\WindowsOrtProvenance.Common.psm1, thenif (-not (Test-OrtProvenanceTree -Root <bundle>)) { exit 1 }.-PassThrureturns the census object.Linux:
bash third_party/ANTfrastructure/linux/scripts/06-packaging/check-ort-provenance.sh <bundle>.
Tree mode models a client loader. A DLL’s imports resolve from the directory of
the exe that loads it, then System32 (assumed to hold Windows ML’s
onnxruntime.dll), then PATH, never from the DLL’s own directory; a .pyd also
searches its own directory first. So ship onnxruntime.dll beside the exe, not
beside a plugin. A bundle fails as STALE with an older chain DLL, FOREIGN with a
NuGet, PyPI or pyke ORT (statically linked ones included), and UNRESOLVED when an
importer has no app-local chain copy or a Linux .so has neither an $ORIGIN
RUNPATH to one nor a stated launcher library path that holds one.
A Linux module you must not patch. A package that carries AMD’s plugin keeps
libmigraphx-ep.so byte for byte the image’s (ort_assert_plugin_module), so its closure
--protects the module, the module gets no $ORIGIN RUNPATH (its own names image paths only), and
the census alone calls its libonnxruntime.so.1 import UNRESOLVED. Never patch the module and never exempt the finding.
Where the package’s launcher puts the chain core’s directory on the loader’s library path
(LD_LIBRARY_PATH, or the bundled loader’s --library-path), state that path, relative to the
bundle and in the launcher’s order, after the step that writes the launcher:
bash third_party/ANTfrastructure/linux/scripts/06-packaging/check-ort-provenance.sh --library-path lib/glibc:lib <bundle>
What the import then lands on must still be the chain ORT. The census trusts the path and does
not read the launcher, so the directory that holds the core has to reach the loader on every way
the launcher starts the program. bundle-loader.sh hands the loader <lib>/glibc:<lib> only
when it starts the program through the bundled loader; on a host whose glibc is new enough it
starts the program with no library path, unless --external-library-path or the consumer’s own
launcher line exports LD_LIBRARY_PATH with <lib> first. Without one, the module loads there
only because the process already holds libonnxruntime.so.1 (ld.so matches a loaded SONAME),
which the census does not model and only a load of the module on such a host shows.
bundle-loader.sh --library-path DIR[:DIR...] writes stated directories into both paths, and the
closure walker takes the same option. A Python app bundle’s builder uses all three for its capi,
where the chain core sits beside the module
(python-app-bundles.md). What the option refuses and how
the probe resolves it: cross-build-verification.md § E.
GenAI’s library and headers#
The text bindings of language-ai.md compile against the chain GenAI, never a
download. On Linux it is /usr/local/lib/onnxruntime-genai: lib/libonnxruntime-genai.so,
lib/libllguidance.so, include/ort_genai.h (C++) and include/ort_genai_c.h (C, the Rust
binding’s input). On Windows it is ONNX_GENAI_ROOT.
How it is proven. Since 2026-10-30 the media stage’s onnxruntime-genai artifact check fails
without the library or either header, and the producer stops when a header is missing
(test-genai-artifact-gate.sh). Before, a wheel alone passed and the C header was copied with
|| true. Not covered: the stages after media copy the tree without re-checking it, and the
Windows smoke gate only looks for ort_genai*.h.
GTK 4 for gtk4-rs#
OxidANT’s GTK GUI (gui_unix, gtk4-rs 0.11 with v4_10) is mandatory since 2026-10-20, so
every Linux image builds and runs it (CON129). Each arch builds against the GTK 4 it already
runs:
Arch |
|
The package stage adds |
|---|---|---|
amd64 |
4.14.5, |
|
arm64 |
4.22.4, Ubuntu’s |
|
riscv64 |
4.22.4, Ubuntu’s |
|
gtk4_dev_packages (06-packaging/package-image-wiring.sh) picks the row by whether the
GStreamer prefix ships libgtk-4.so.1, so a variant follows its own prefix. amd64 takes no
libgtk-4-dev: it would pull back libgtk-4-1 and the distro GStreamer 1.28 runtime that
drop_redundant_distro_gtk4 drops (CON21), and PKG_CONFIG_PATH and 000-gstreamer.conf
would still pick the prefix’s GTK 4.
riscv64’s GLib. GStreamer’s riscv64 cross build falls back to its own GLib 2.86.3, and the loader took it before Ubuntu’s 2.88.0. Ubuntu’s GTK 4 then died at start (
undefined symbol: g_get_monotonic_time_ns, andg_markup_parse_context_get_offset), and PyGObject could not import (“Typelib file for namespace ‘GObject’, version ‘2.0’ not found”, in the:latestof 2026-10-11 too).yield_older_prefix_glibdeletes the prefix’s GLib libraries and.pcfiles when the distro’s GLib is newer, so riscv64 runs GStreamer on Ubuntu’s GLib, as amd64 and arm64 do: 290 plugins, none blacklisted, before and after. A prefix GLib as new as the distro’s stays; our build wins its soname./usr/include/vulkanexists now (Ubuntu’s 1.4.341, fromlibvulkan-dev, every arch). The SDK’s headers stay$VULKAN_SDK/include; CMake’sFindVulkantakes those first.The gate.
verify_gtk4_dev_surfacefails the package stage unlessgtk4>= 4.10 resolves with everyRequiresandldd -rresolves its library. Row 9 runs the same function as uid 1001 in the shipped image.riscv64 cross lanes need nothing new. The sysroot’s allowlist already carries
usr/include,usr/lib/riscv64-linux-gnuandusr/share/pkgconfig. The old “breaks cross builds” reason was the media stage’s:riscv64installs into the amd64 build container, whosepython3-minimalpostinst cannot run there; the package stage installs on the target platform.
Measured on 2026-10-20 in throwaway containers of :latest (b52f8c34) with these functions
applied, as uid 1001:
Arch |
Build |
Run |
|---|---|---|
amd64 |
|
|
arm64 (QEMU) |
|
a gtk4-rs window on GTK 4.22.4 |
riscv64 |
|
|
Browser tests run in Chrome for Testing#
flutter test --platform chrome needs a browser, and Ubuntu 26.04 ships Chromium as a
snap only. The image ships Google’s Chrome for Testing instead (CON50), the build
Playwright also downloads, from Google’s own bucket:
what |
where |
pin in |
|---|---|---|
Chrome for Testing (Stable) |
|
|
chromedriver of the same version |
|
|
CHROME_EXECUTABLE=/usr/local/bin/chrome on amd64 and arm64. It is empty on
riscv64, where Google publishes no build, so a lane runs the browser leg only when
the variable is set:
if [ -n "${CHROME_EXECUTABLE:-}" ]; then
flutter test --platform chrome
else
echo "no browser in this image on $(uname -m); browser tests skipped"
fi
A lane that runs the hub’s Dart gate gets this by passing --test-platform chrome to
05-frameworks/flutter/flutter_checks.sh (since 2026-10-05). Where the variable is empty it
runs the tests on the VM instead, so the gate never passes on zero tests.
A test file that reads the checkout with dart:io cannot run in a browser. Mark it
@TestOn('vm') (or one test testOn: 'vm'), and the browser leg skips it while the VM
leg still runs it. Measured on OmniAccelerANT (2026-10-01, the proof image below): 37
tests pass in Chrome, including all four of the native plugin’s.
pinned_artefacts_test.dart and settings_asset_paths_test.dart fail there only for
dart:io (“Unsupported operation: Platform._script”, “_Namespace”), and one
webrtc_settings_test.dart case asserts the off-web behaviour.
06-packaging/install-chrome-for-testing.sh is the package stage’s last RUN, after the
emulator, so a Chrome bump re-runs one layer of about 0.45 GB (+0.2 GB compressed per
arch). It installs the zip’s deb.deps under their Ubuntu 26.04 names (only
fonts-liberation was new), checks every ELF with ldd, compares both binaries with
the pin, and renders a JavaScript page headless. The runtime smoke’s chrome row
repeats the last two as uid 1001.
The image’s Chrome starts through /usr/local/bin/chrome; its emulator is amd64-only.
CHROME_EXECUTABLE names that wrapper, which adds --no-sandbox --no-zygote: never point it at
the binary, and never ship a setuid sandbox helper. Keep the emulator’s system image at an API
whose ARM translator runs arm64 apps (35; 30 SIGILLs).
Why the wrapper passes --no-sandbox and --no-zygote#
/usr/local/bin/chrome is
exec /opt/chrome-for-testing/chrome/chrome --no-sandbox --no-zygote --disable-dev-shm-usage "$@".
Point CHROME_EXECUTABLE at it, never at the binary.
Sandbox. Chrome sandboxes its renderers with user namespaces, or with a setuid-root helper. The image ships no setuid helper. Whether a container may create user namespaces is the host’s call: Docker’s default seccomp profile, the AppArmor restriction of Ubuntu 23.10+ hosts and qemu-user can each refuse them. Measured 2026-10-01 as uid 1001: the bare binary started on amd64 under Rancher Desktop, and on arm64 under qemu-user it died with “No usable sandbox! If you are running on Ubuntu 23.10+ …”. The container is the isolation boundary and a test browser loads only the consumer’s own pages, so the wrapper turns the sandbox off everywhere. Flutter passes
--no-sandboxitself only when headless; the wrapper also coversflutter run -d chromeunder Xvfb and chromedriver.Zygote. Under qemu-user the zygote’s children die with “qemu: uncaught target signal 5 (Trace/breakpoint trap)”, and
--dump-domprints nothing. The package stage builds arm64 under QEMU, so its own headless check failed until the wrapper passed--no-zygote(a page then took 21 s). Without a sandbox the zygote buys nothing on native hardware either./dev/shm. A container’s defaults to 64 MB, which a renderer can exhaust;--disable-dev-shm-usagemoves that to/tmp.
The Android emulator runs on amd64 with KVM#
The amd64 image ships the Android emulator and one x86_64 system image with ARM translation, so an arm64-v8a APK installs and runs (CON50). Both come from Google’s zips, each SHA256-pinned, and their SHA-1 equals Google’s repository XML:
what |
where |
pin in |
|---|---|---|
emulator |
|
|
|
|
|
|
|
— |
amd64 only. Google publishes the Linux emulator for x86_64 hosts only, and GitHub’s arm64 runners have no KVM. arm64 and riscv64 record that in
/opt/android/.android-emulator-off. It adds 4.66 GB to the amd64 image (+2.1 GB compressed); the system image is 3.5 GB of it.API 35, not 30. API 30’s translator (
ndk_translation0.2.2) stops OmniAccelerANT’s release APK right after the Flutter engine starts: “ndk_translation: Undefined instruction 0x7ee1b800” (scalarFCVTZU), then SIGILL. API 35’s translator runs the same APK.test-chrome-and-emulator.shrefuses an older pin.
A lane needs an x86_64 host with KVM, and the device passed in:
docker run --device /dev/kvm --group-add "$(stat -c %g /dev/kvm)" \
ghcr.io/kataglyphis/kataglyphis_beschleuniger:latest bash -lc '
android-avd.sh start # creates the AVD once, boots headless, waits for sys.boot_completed
adb install --abi arm64-v8a build/app/outputs/flutter-apk/app-release.apk
android-avd.sh stop'
The KVM device. uid 1001 is not in the device’s group, hence
--group-add; without itandroid-avd.sh startstops with “/dev/kvm is not usable by uid 1001”. On a GitHub-hosted x64 runner, make the device usable first:echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules, thensudo udevadm control --reload-rules && sudo udevadm trigger --name-match=kvm.The AVD. It lives in
$ANDROID_AVD_HOME(default~/.android/avd), because$ANDROID_HOMEis root-owned.android-avd.shwrites the two ini files itself:avdmanagerdoes not recognise an emulator installed from its zip (“”emulator” package must be installed!”).AVD_PORT,AVD_BOOT_TIMEOUT,AVD_RAM_MB,AVD_CORESandAVD_DATA_SIZEtune it.--abi arm64-v8a. An APK that also carries anx86_64slice is otherwise installed as x86_64, and a library built for arm64 only is then missing.Measured 2026-10-01 under Rancher Desktop with KVM, in the proof image: boot in 25 s,
ro.product.cpu.abilist=x86_64,arm64-v8a, and OmniAccelerANT’s release APK installed withprimaryCpuAbi=arm64-v8aand stayed up.What the image cannot prove. The build host has no KVM, so the runtime smoke never boots it. Its
android-emulatorrow checks the parts as uid 1001: the emulator runs, both versions equal the pins, andandroid-avd.shis onPATH.
Flet builds Android APKs offline#
The amd64 image builds a Flet app’s APK for arm64-v8a and x86_64 with its own Flutter, JDK 21 and
SDK, and downloads nothing for the toolchain (CON321). 06-packaging/install-flet-build.sh sets
it up in the package stage:
what |
where |
pin |
|---|---|---|
|
|
|
the patched build template, Flet’s CPython and dart-bridge per ABI |
|
|
flet’s Android wheels |
|
|
warm Gradle and pub caches |
|
one stub |
|
|
the CPython tarballs above |
flet-build build apk --yes --arch arm64-v8a x86_64
# A PyO3 module for each ABI, linked against the APK's libpython:
PYO3_CONFIG_FILE=/opt/android/python/arm64-v8a/pyo3-config.txt \
CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="$(ls -d "$ANDROID_HOME"/ndk/*)/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang" \
cargo build --release --target aarch64-linux-android
Flet’s own checks name another toolchain, so flet-build runs flet-cli through
flet-build-shim.py, which changes four things:
Flutter: Flet wants the Flutter minor it was released with (1.1.x wants 3.47) and otherwise installs that SDK. The shim gives it the image’s version.
JDK: Flet accepts JDK 17 only and otherwise downloads Temurin 17. The shim gives it the major of
$JAVA_HOME.SDK packages: Flet runs
sdkmanagerfor API 35 and build-tools 34, which the read-only SDK refuses. The shim namesANDROID_COMPILE_SDKandANDROID_BUILD_TOOLS.Offline:
dart run serious_python:mainresolves packages online even when the pub cache is warm. The shim runsflutter pub get --offlinefirst, and gives pip/opt/flet/wheelsthroughPIP_FIND_LINKS.
The template is patched once, at image build, in the cache, since flet-cli never revalidates a cached template:
AGP, KGP and Gradle come from
/opt/flutter’sgradle_utils.dart, the versionsflutter createwrites. Flet 1.1.4 ships AGP 8.13.2, and Flutter 3.50’s Gradle plugin needs AGP 9.1.1 or newer. Skipping the check is no fix: the plugin then fails on an AGP 9 API.Every subproject gets the image’s compileSdk, build-tools, NDK and CMake, as OmniAccelerANT’s root build does. Plugins ask for
flutter.ndkVersion, an NDK the image lacks, and AGP then tries to install it.serious_python’s downloads are skipped when their file exists. Otherwise their ETag check needs the network even with the seeded tarball there. Its Gradle unpacks every ABI in Flet’s manifest, so
armeabi-v7ais seeded too, although the APK leaves it out.
The app’s own Python dependencies still come from PyPI and pypi.flet.dev unless a lane
provides them. The wheelhouse only covers flet itself. Gradle and pub caches are writable by
uid 1001. A build that needs a new Maven or pub package fetches it.
DeepStream in :latest-nvidia#
:latest-nvidia (amd64) carries NVIDIA DeepStream 9.1 (CON42). What a consumer can rely on was
measured on the published index sha256:810f36b3… on 2026-10-12, on an RTX 2080. How the tree
is built and gated, and every pipeline that ran:
linux-accelerator-images.md § DeepStream.
What |
Where, or what to do |
|---|---|
DeepStream root |
|
GStreamer plugins |
the link |
|
|
TensorRT |
DeepStream’s TensorRT 10.16.1, on the loader path through |
Helper libraries |
|
Sample data |
not in the image. NVIDIA’s |
A GPU host. Every pipeline ran with the GPU handed in as a CDI device, on
nvidia-container-toolkit 1.20.1 and driver 595.58.03, the minimum NVIDIA names for DeepStream
9.1; --gpus all exposed the GPU as well. The host setup, rootless included, is linked from
§ What needs a GPU host. The toolkit may
load the image’s CUDA 13.4 compat driver in place of the host’s, which is why nvidia-smi
inside reports CUDA 13.4. DeepStream ran on either.
How it is proven. The runtime smoke’s check_deepstream registers the elements with
CUDA’s driver stubs on every nvidia image. Everything else needs a GPU, which no lane has, so it
was measured by hand.
Three traps:
No GPU, no DeepStream. Without the driver’s
libcuda.so.1the plugins cannot load, and the GStreamer registry blacklists them. Reused once a GPU is there, that registry still hides them: 30 files stayed blacklisted. The image ships no registry; never carry~/.cache/gstreamer-1.0from a GPU-less run into a GPU one.A root-owned tree. The runtime user (uid 1001) ran the decode, inference, tracker and demux pipelines and built its own engine, but
nvinfercannot store an engine next to a model in the root-owned DeepStream tree. It logsfailed to serialize cude engineand builds the engine again on every start. Givemodel-engine-filea writable path.Two elements do not work here: the legacy
nvstreammuxandnvblender. Both are NVIDIA’s prebuilt code, and both read a buffer’s mapping after releasing it, which GStreamer 1.28 and newer turn into a NULL pointer.nvblenderalso stalls with two inputs, on GStreamer 1.24 too.