18 KiB
18 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 --checkandcargo check --lockedpassed with Rust 1.95.0.- With no worker configured:
/healthreturned 200 and/readyreturned 503. - With an ignored local fake engine that emitted
READY 262144 stop:/readyreturned 200 withmax_context: 262144; Ctrl-C shut down both processes. - With a fake engine that exited after
READY:/readyreturned 503 withworker: failed. /v1/responsesis 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
READYhandshake, gracefulQUIT, 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.tomlandrust-version = "1.99". scripts/check-local.shpassed: 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/responsesstill 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
GENcommand and returnedPP,T, andDONEthrough the Rust supervisor. - Context admission rejected a request exceeding the worker's
READY 262144limit 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-256model verify, and bounded GGUF v3model inspect. scripts/check-local.shpassed 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
--versioncommand ran inside ascratchcontainer. The current source was also cross-compiled locally foraarch64-unknown-linux-musl;filereported a statically linked ELF, andreadelffound no interpreter or dynamic section. - Mounted the current binary into that
scratchimage. It fetched Rust 1.99.0's pinned README over HTTPS (3,304bytes), 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 terminalDONE, and leaves the resident worker ready for a second request. - Shutdown during an active generation sends
STOPbeforeQUITand 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.
2026-10-02 — native tokenizer asset extraction
- Added
model extract-tokenizerfor validated GGUF v3gpt2/qwen35metadata. It writes five tokenizer files into a staging directory and publishes the directory on completion. - A synthetic GGUF with vocabulary, merges, token types, special ID, and chat template produced the same parsed JSON and exact text files as the pinned upstream
tools/strata_tokenizer.py(5/5 files). The upstream comparison used Pythonregexonly as an offline test dependency under ignoredartifacts/tool-venv/. - Rust 1.99 formatting, Clippy with warnings denied, and 21 Rust tests passed at this stage. The real model tokenizer and packed weights were not validated.
2026-10-02 — native BPE parity
- Added qwen35 byte-level BPE encoding and decoding in Rust, including rank-ordered merges, a heap path for long pieces, control and user-defined literal handling, and a CLI path for text on standard input.
- Compared 20 corpus strings in both special-token modes against the pinned upstream Python tokenizer with a synthetic complete byte vocabulary: 40/40 token-ID sequences and decoded strings matched. Cases included multilingual text, emoji, combining marks, C0 bytes, long repeated text, and near-miss literals.
- Added fixed oracle ID cases to Rust tests. The real IQ3_S tokenizer and end-to-end generation remain untested.
scripts/check-local.shpassed after this change: rustfmt, Clippy with warnings denied, 24 Rust tests, synthetic SSE replay, and 5 CPU CTest tests.- Rebuilt the current source as a statically linked Linux/arm64 musl CLI. Mounted it into the
scratchimage and confirmedmodel tokenizereturned the oracle IDs forHello, world!. The actual model weights and GPU were not used.
2026-10-02 — text inference preview and KAR-2 verification
- Qwen text-only prompt assembly matches eight pinned upstream golden cases byte for byte. A synthetic in-process worker receives the expected native token IDs through the HTTP Responses route and returns a completed non-streaming text response. Live streaming, reasoning output, tools, and real-model inference remain unverified.
- Added bounded KAR-2 metadata inspection, streaming CRC-32 verification of every tensor section, and optional source-manifest verification. The latter checks each shard's size and SHA-256, then hashes the shards in ascending byte-wise filename order against the archive's source digest and byte count.
- Independently generated a 1,280-byte two-tensor RAW/NESTED archive with koference
r08/code/kar_container.pyat commit806d2398ae1daaceb2917242911e5680cbfb3608. Its Python reader and the Rustmodel verify-karboth accepted the archive and both tensor CRCs. A two-file synthetic source manifest passed the Rust source-identity check. The temporary archive and source bytes were kept out of Git. - Rust 1.99 formatting, Clippy with warnings denied, and 31 Rust tests pass after adding a disk-space preflight that rejects an impossible model transfer before networking. The full
scripts/check-local.shcannot reach CPU engine tests on this machine because CMake ≥3.24 is absent; Linux CI installs CMake, but the hosted workflow has not run on this repository. - Rebuilt the current CLI as a Linux/arm64 musl executable in a
scratchimage.--version, KAR-2 payload verification, and the optional two-shard source-identity check all ran successfully inside the image against the synthetic koference archive. This proves the current static CLI starts without a user-space loader, not that a GPU engine or real model runs. No model weights or GPU node were used. - Ported the koference KAR-2 container writer for already encoded RAW/NESTED tensor slices to Rust. A native two-tensor archive has the same SHA-256,
013d3daa3f8ee70feb7045eee29390cb51e16d2a8558444cc8d6cbb91918f4f2, as the independently generated reference archive at koference commit806d2398ae1daaceb2917242911e5680cbfb3608. The writer's temporary output passes native payload verification before publication. This fixture is synthetic and does not establish model quality or a bounded-memory full-model conversion. - Rust 1.99 formatting, Clippy with warnings denied, and all 32 Rust tests pass with the native writer.
- Added a GGUF tensor index that checks exact source block lengths and can hash one tensor with a fixed 1 MiB buffer. A synthetic mixed F32/IQ3_S fixture verifies offsets, lengths, and rejection of overlapping sections, a misaligned quantized row, and an unsupported type. All 33 Rust tests and Clippy with warnings denied pass; this is a source-layout check, not a KAR encoder or model conversion.
- The
model index /tmp/strata-next-index-smoke.gguf --hashCLI emitted the expected two JSON records: F32 at absolute offset 128 with 16 bytes, and IQ3_S at 160 with 110 bytes; both SHA-256 values matched the synthetic zero payloads.cargo check --locked --target aarch64-unknown-linux-muslpassed with this source. - The KAR writer's file-backed RAW path generated the same complete archive bytes as its in-memory path, rejected a changed source digest without publishing a destination, and passed a separate 1,048,580-byte input crossing the 1 MiB copy boundary. Rust 1.99 formatting, Clippy with warnings denied, all 34 tests, and Linux/arm64 musl cross-check pass. NESTED encoded data is still in-memory, so full-model conversion is not bounded yet.
- Added a file-backed NESTED path for already coded KAR sections. A synthetic file-backed section produces the same complete archive bytes as the in-memory writer; corrupted scale, nonzero padding, and wrong section digest each fail before publication. The path streams through 1 MiB and retains no full encoded tensor in RAM. All 35 Rust tests, Clippy with warnings denied, and Linux/arm64 musl cross-check pass. The source-to-NESTED encoder is still missing, so this does not complete model conversion.
- Added an experimental native f32-to-KAR bit-plane encoder with supplied thresholds. A synthetic four-cell pattern produced the koference word layout (
0xcccccccc,0xaaaaaaaa), then passed through the KAR writer and verifier. IEEE f16 scale conversion tests include the smallest subnormal and ties-to-even. All 37 Rust tests, Clippy with warnings denied, and Linux/arm64 musl cross-check pass. Calibration fitting, IQ3_S decoding, bounded source conversion, and full-model quality remain open. - Added bounded CPU prefix decoding for the synthetic tensor: a five-value slice reconstructed at levels 1 and 2 exactly as the supplied f16 books specify, and an out-of-range slice was rejected. This oracle has not yet been compared with the koference GPU decoder on hardware.
- Ported top-down nested boundary and book fitting for a supplied normalized sample. Two pinned koference Python fixtures match the Rust f32 boundary bits and f16 book values; a degenerate sample is rejected. The f64-to-f16 path avoids double rounding of fitted means. All 38 Rust tests, Clippy with warnings denied, and Linux/arm64 musl cross-check pass. This only establishes synthetic calibration parity, not representative model sampling or a quality result.
- Connected a small synthetic F32 GGUF to
model prepare-f32-preview: it produced a verified KAR-2 archive with source SHA-256f2bff437d5a53e8ddf7f43ee41acf3baebb7fb5f27eefb079f5bc1634def6f2cand archive SHA-256fe049ca40305d5380caaa278f34a9149ae2d5761ea9544b58a0eb73775cd6810. The separatemodel verify-karcommand passed. A valid synthetic IQ3_S GGUF was rejected by the F32 preview, without creating an archive. All 40 Rust tests, Clippy with warnings denied, and Linux/arm64 musl cross-check pass. This is a bounded experimental integration path, not full-model preparation. - Refactored the F32 preview to write each tensor's canonical NESTED section to a private staging directory, then assemble the KAR archive from file-backed sections. The native section bytes match the in-memory writer. A two-tensor fixture succeeds and leaves no staging directory; corrupting the second tensor to NaN fails after the first section and also cleans staging without publishing an archive. The preview source-size and per-tensor limits remain; IQ3_S source decoding and full-model quality remain open.
- Added a native IQ3_S CPU block decoder with the pinned ggml grid table (SHA-256
bd1af4945a1717c65610b0284e4628b9a1ba3b306fae3a06f6e5f597356e349f). A deterministic mixed 110-byte block produced 256 F32 values whose byte digestcfee2753d1b389fe4ee30994ff3387d4400745b8432aeb32cb4d7fced39949ecmatches an independent Python calculation from the upstream layout; constant, sign, multi-block, and malformed-scale cases also pass. All 41 Rust tests, Clippy with warnings denied, and Linux/arm64 musl cross-check pass. This has not been compared with a real tensor or GPU. The ggml MIT license is copied into the control binary and shown by--ggml-license. - Added
model derive-iq3-identityfor a single all-IQ3_S GGUF. It hashes the original GGUF and a virtual contiguous little-endian F32 stream, with per-tensor original/derived digests and offsets, using a 256-block input buffer; no expanded file is written. A two-tensor fixture with reversed physical and directory order matched an independently assembled F32 stream digest. All 42 Rust tests, Clippy with warnings denied, and Linux/arm64 musl cross-check pass. Mixed tensor types, shard sets, real-model parity, and KAR publication remain unverified. - Added
model prepare-iq3-previewfor a small all-IQ3_S GGUF. A synthetic one-tensor input produced a KAR-2 archive with the virtual F32 source digest and a provenance sidecar binding the original GGUF, derived stream, and archive SHA-256 values. The archive passed payload verification. A preexisting sidecar blocked publication and the newly written archive was removed. All 43 Rust tests, Clippy with warnings denied, and Linux/arm64 musl cross-check pass. The source decoder and compressed output have not passed a real-model quality gate or GPU test. - Added
model verify-iq3-previewto recompute the original and virtual F32 identities, check KAR per-tensor source records and payload CRCs, and compare the provenance sidecar with the archive hash. The synthetic IQ3 preview verified; changing the sidecar's archive digest caused rejection, and restoring it passed again. A separatecargo build --lockedCLI smoke generated and verified a temporary one-tensor archive: virtual F32 SHA-2569d1f76b4ef22e4b0e1f7e8d13cd3ff91516c884e9b8aa8107c8932bfd64fed85, archive SHA-256c4d4e843165aa2599206458f0550c24eaafe95c3dacffec5e736950e16d1769c. All 43 Rust tests, Clippy with warnings denied, and Linux/arm64 musl cross-check passed. This is identity/integrity verification, not an assessment of model quality or GPU behavior. - Added
model derive-mixed-identityfor one GGUF containing IQ3_S and F32/F16/BF16 tensors. A four-tensor fixture with directory order different from physical order matched the independently assembled F32 byte-stream SHA-256, including half and bfloat conversions, and the all-IQ3-only derivation rejected it. The command uses a fixed 28,160-byte source buffer and writes no expanded file. All 44 Rust tests, Clippy with warnings denied, and Linux/arm64 musl cross-check pass. Mixed KAR preparation, real-model parity, and GPU quality remain open. - Added
model prepare-mixed-previewandmodel verify-mixed-preview, with a separate versioned sidecar carrying each original tensor kind and digest. A four-type synthetic GGUF passed preparation and verification in Rust tests. A separate two-type CLI smoke produced a KAR archive whose virtual F32 SHA-256 wasc407838a4718093d8f2699209c7cac8b998a47b937e5afe59e4c5a0af09033a7; the verifier matched the source, sidecar, KAR source records, and payload CRCs. All 45 Rust tests, Clippy with warnings denied, and Linux/arm64 musl cross-check pass. The preview remains capped at 64 MiB input and is not approved for serving. - Added
model derive-sharded-identityfor manifest-pinned GGUF shards. A two-file fixture deliberately listed IQ3_S before F32 in its manifest; native derivation sorted filenames, checked both size/SHA-256 values, and assigned global F32 offsets 0 and 128. Replacing a manifest SHA-256 with the wrong value was rejected. A separate CLI smoke emitted the expected derived stream SHA-256e529f5e2f7aac1aa5509fabe728d84ab876c64754635963825e265cd70cb8b05. All 46 Rust tests, Clippy with warnings denied, and Linux/arm64 musl cross-check pass. No sharded KAR archive or real-model conversion was attempted. - Extracted the shared one-tensor preview encoder and reconstruction check for future sharded preparation. Existing F32, IQ3_S, and mixed preview tests passed. Rebuilt the CLI and reran the pinned two-type mixed fixture: the derived F32 SHA-256 remained
c407838a4718093d8f2699209c7cac8b998a47b937e5afe59e4c5a0af09033a7and the full KAR archive SHA-256 remained4053e787d46b2cf2bca3d67e38d06e1ee96a157e80e3155c8dbdbf36835df88cbyte for byte. This is a non-lossy refactor of the preview implementation, not a quality result for the lossy format. - Added a CI-only synthetic mixed GGUF/KAR smoke script for the Linux musl release binary. The workflow now rejects an ELF interpreter or
NEEDEDdynamic library, runs the CLI through derivation, preparation, and source/provenance/archive verification, and checks the pinned derived/archive SHA-256 values before uploading. The script passed locally against the current macOS debug CLI; the hosted Linux workflow has not run because this checkout has no project remote. Python is used only to create the CI fixture, not by production serving.