Files
leleka/docs/experiments/2026-10-04-large-embedded-package.md
T
Pavlo Ratushnyi 4013e0c9bd
Desktop foundation / core (ubuntu-latest) (push) Failing after 28s
Desktop foundation / core (macos-latest) (push) Canceled after 0s
Desktop foundation / core (windows-latest) (push) Canceled after 0s
Linux / verify (push) Canceled after 0s
Linux / keyless-cuda (push) Canceled after 0s
Linux / static-cuda-package (push) Canceled after 0s
Linux / hosted-cuda-package (push) Canceled after 0s
Linux / linux-static-cli (push) Canceled after 0s
Linux / linux-cli-container (push) Canceled after 0s
Linux / release-cli (push) Canceled after 0s
Import tracked Strata Next source snapshot
2026-10-05 18:15:08 +02:00

3.8 KiB

Large embedded static-CUDA package — STRA-24

Date: 2026-10-04. Scope: packaging and CPU supervision checks. No inference, model-quality or speed claim. The user's active native endpoint and tunnel were preserved throughout; no trial restart or profile switch occurred.

Implemented

Build-time payload verification and copying now use a 64 KiB buffer with a 1 GiB hard limit, rather than loading the complete engine into a Vec. Validation covers the exact copied SHA-256, ELF64 little-endian target architecture, executable type and declared 40-character source revision. Errors fail the build. The revision is provenance supplied by the builder, not a reproducibility proof. Rust compilation/linking and runtime memfd storage still require resources proportional to payload size.

engine-help explicitly materializes the embedded engine and executes --help with CUDA_VISIBLE_DEVICES empty, retaining the memfd through child exit. It does not load a model. Ordinary builds remain without an embedded engine.

Private artifacts

Artifact Bytes SHA-256
Static-CUDA engine 593,942,184 389b518c3c8afaccd20bab78f538e008ff996d11dacb08abe73e315a853c6b11
Combined musl control plane and engine 611,277,088 4e3893ddf90fd35acf39b73a12858da072cea271bf0c6129a5559fca7306bba6

Engine source: a36e45ac780cd137aceaa33bed663edd932c73d9; upstream pin remains d9ab8435f654c368c586340d490915f6addf56a3. The combined executable is retained privately under ~/.local/share/strata-next/bin/strata-next-linux-x86_64-musl-static-cuda-preview on the laptop, with adjacent provenance JSON. It is not the installed trial runtime. Weights and tokenizer are external. No artifacts were published.

Verification

  • Rust 1.99.0: 134 macOS library tests passed; all-target Clippy with warnings denied and formatting passed. Streaming tests cover exact bytes, size boundary, overflow, architecture/digest/revision rejection, truncated input, interrupted reads and write failures.
  • A normal build reports no payload and rejects engine-help explicitly.
  • Cross-built Linux musl CPU fixture passed embedded identity, sealed memfd, GPU-hidden help, readiness, HTTP generation, forced worker restart, and worker and memfd cleanup. Output was exactly A for both embedded and external copies of the same fixture (zero tolerance). This is synthetic protocol evidence.
  • The actual 593,942,184-byte engine was embedded successfully. On rnr5090, engine-info matched the expected payload size, digest and source revision.
  • env -u LD_LIBRARY_PATH <combined-preview> engine-help, bounded externally by a 20-second timeout, exited zero and printed Strata help. No GPU was visible to the child. The outer executable had no ELF INTERP or NEEDED entries.
  • The inner engine's earlier ELF audit found only host libm, libc and loader dependencies, no RPATH/RUNPATH, and a glibc 2.43 minimum. It was built with CUDA 13.2.86/GCC 15 for SM 120. The host has RTX 5090 and driver 595.91.07; this check did not exercise GPU kernels.
  • Trial worker PID/start identity remained unchanged and status stayed ready. Readiness alone does not indicate whether user requests are active.

Remaining gates

The inner executable is not fully static: the host still needs compatible glibc and an NVIDIA driver. Runtime-selected dlopen dependencies, a clean-node run, older glibc baseline, real-model numerical parity, agent completion and stability remain unverified for this package. The shared_libraries_bundled: false metadata means there are no separately bundled shared objects; static toolkit code is inside the engine. No hosted GitHub Actions run has occurred.

The source-copy directory, remote smoke directory and release build intermediates are removed after verification; final private binaries and provenance remain.