Files
leleka/docs/build-validation.md
T

4.4 KiB

Build validation

2026-10-02 — source-only build

  • Strata upstream commit: d9ab8435f654c368c586340d490915f6addf56a3.
  • Host: macOS arm64; AppleClang 21.0.0; CMake 3.31.10; Ninja 1.13.2.
  • Command: PATH="$PWD/artifacts/tool-venv/bin:$PATH" scripts/build-cpu.sh.
  • CMake flags: CUDA off, HIP off, upstream broad test suite off, conversation tests on.
  • Built: strata-gguf, strata-dequant, strata-plan, and five CPU test executables.
  • Result: 5/5 CTest tests passed.
  • Scope: source compilation and CPU tests only. No CUDA build, model inference, or performance measurement was performed.

The test toolchain was installed into ignored artifacts/tool-venv/ for this run; it is not a production dependency.

2026-10-02 — Rust control-plane smoke test

  • cargo fmt --check and cargo check --locked passed with Rust 1.95.0.
  • With no worker configured: /health returned 200 and /ready returned 503.
  • With an ignored local fake engine that emitted READY 262144 stop: /ready returned 200 with max_context: 262144; Ctrl-C shut down both processes.
  • With a fake engine that exited after READY: /ready returned 503 with worker: failed.
  • /v1/responses is not implemented and returned 404. No model inference was tested.

2026-10-02 — local worker contract checks

  • Added JSON file configuration with environment overrides and a bounded startup timeout.
  • Four local tests pass against a fake engine process: valid READY handshake, graceful QUIT, worker exit, and startup timeout.
  • The tests require neither the RTX 5090 nor model files.

2026-10-02 — Responses contract and Rust 1.99

  • Pinned Rust 1.99.0 with rust-toolchain.toml and rust-version = "1.99".
  • scripts/check-local.sh passed: rustfmt, Clippy with warnings denied, 12 Rust tests, synthetic Responses SSE replay, and 5 CPU CTest tests.
  • The replay checks the local response builder and Strata pipe parser only. /v1/responses still returns an explicit 501 when the worker is ready because the inference adapter is not connected.
  • No CUDA build, model inference, real Codex replay, or performance measurement was performed.

2026-10-02 — internal worker generation exchange

  • A fake resident worker accepted a GEN command and returned PP, T, and DONE through the Rust supervisor.
  • Context admission rejected a request exceeding the worker's READY 262144 limit without failing the worker.
  • Rust 1.99 Clippy with warnings denied and all 13 Rust tests passed. This is a pipe test only; the HTTP inference adapter is still absent.

2026-10-02 — model CLI and Linux delivery preparation

  • Added an embedded, commit-pinned IQ3_S manifest, resumable model fetch, full-size/SHA-256 model verify, and bounded GGUF v3 model inspect.
  • scripts/check-local.sh passed on macOS arm64 with pinned Rust 1.99.0: rustfmt, Clippy with warnings denied, 18 Rust tests, synthetic Responses SSE replay, and 5 CPU CTest tests.
  • The interrupted-transfer test resumes a local HTTP fixture and rejects a corrupted final file. The GGUF test parses a synthetic v3 header and rejects truncation.
  • The real 83.6 GB model was not downloaded or inspected. The Hub-provided LFS ETags are recorded as expected SHA-256 values but have not been measured locally.
  • The Linux/arm64 Docker musl CLI image built and its --version command ran inside a scratch container. The current source was also cross-compiled locally for aarch64-unknown-linux-musl; file reported a statically linked ELF, and readelf found no interpreter or dynamic section.
  • Mounted the current binary into that scratch image. It fetched Rust 1.99.0's pinned README over HTTPS (3,304 bytes), verified the manifest SHA-256 (b3f6ef2fef88b98cb9ec013a5c86213095e53e40eb228679574e4d06517f33c8), and matched the host reference byte for byte. This verifies embedded TLS roots and the small-file acquisition path, not the 83.6 GB model transfer.
  • The GitHub Actions workflow has not run because this checkout has no project remote. No GPU node was used.

2026-10-02 — worker cancellation contract

  • A dropped generation receiver now causes STOP, drains the worker's terminal DONE, and leaves the resident worker ready for a second request.
  • Shutdown during an active generation sends STOP before QUIT and closes the pending result receiver.
  • The two focused fake-worker tests pass, along with Rust 1.99 Clippy with warnings denied. No GPU inference was used.