Commit Graph
389 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 bf07bd9131 engine: log which condition of the Original load gate refused (booleans only)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 11:46:12 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 56a6fe0ecb engine: the expert-bank admission accepts a binding without KAR under LELEKA_ORIGINAL_SERVE_GGUF_PLE=1; quality job sets it for the GGUF arm
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 11:02:19 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 48025b7ba4 kar-off-ab: install script keeps an installed engine when none is passed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 10:48:54 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 dc988dc53b engine: opt-in Original serve without a KAR archive (LELEKA_ORIGINAL_SERVE_GGUF_PLE=1, set by rtx5090-32g-gguf-ple); install script takes the engine binary
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 10:48:41 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 02c578e24d kar-off-ab: quality job, queue stubs, deploy.md row for rtx5090-32g-gguf-ple
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 10:35:01 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 67f4466642 kar-off-ab: replay smoke can bind GGUF PLE (LELEKA_REPLAY_GGUF_PLE=1); standalone window jobs, install and analysis scripts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 10:30:40 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 de6634cfd5 codex-compare: nestng-crm board check looks across files (identical false failure in every arm); cmp_reaccept.py
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 06:21:18 +01:00
Pavlo Ratushnyi 35302c6115 codex-compare: install gen_stubs.sh 2026-11-05 05:18:52 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 53c304de3a codex-compare: sandbox proof copies the seed with copy_tree; gen_stubs.sh writes the queue stubs of a pass
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 05:18:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6dd720ed25 codex-compare: the restarted holder no longer inherits CMP_* (cmp-van-r2/r3 ran as VANL), sandbox check links node_modules with link_tree
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 04:19:22 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9e7d019af3 codex-compare: install-node.sh puts node on PATH before npm --version
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 03:19:00 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 01e0504942 codex-compare: VANL (vanilla, lossy defaults off) is the reference arm; paired differences against it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 02:32:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ba26e685bf codex-compare: nestng-crm task (NestJS + Angular), frozen manifest, shared node_modules installer with Codex sandbox proof, optional-task guard
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 02:01:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9e9895fc9e codex-compare: vanilla Strata vs Leleka on Codex with two tasks: job, window, report, installer, design page; cell.py --link-tree
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 01:45:40 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1a36367f71 quality-245k: S3 builder, TTFT and Codex report scripts, analyzer verdict ratios, orig driver for the reference build
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 16:42:48 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d62603a956 quality-245k: teacher-forced equivalence tooling (Original driver, port replay job, analysis, Codex long-context job)
Scripts only, nothing runs in serving: q245_prep/orig/orig_job/window/freeze/port/analyze/pad/codex_job; cell.py gains --agents-md / --config-extra.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 11:45:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1b795f8dd4 release 5090: two stale deploy e2e tests (sparse memfd is no longer EXPERIMENTAL and its digest is pinned), acceptance job: hard-linked overlay dirs, standalone mode, product seal timing
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:19:05 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 98f725f9c5 release 5090: deploy.md back to LF, acceptance job copies the provenance file, notes: no self-referential TBD markers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:00:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7ba9ab2f18 release 5090 phase B: checklist and audit refresh, acceptance job script
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 22:35:43 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ff1ad3aea1 release 5090 v0.1 phase B: README, short release notes, profile/deploy text fixes, packager for the merged state
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 22:31:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4cbbd2729c Merge claude/window-policy: draft-floor ceiling default 0.60 (LELEKA_SPEC_POLICY=legacy restores 0.9), replay-arm policy tooling, spec-trace bar/slope, run-e2e ATTN_DAILY_MTP default
Paired A/B 245k (8 blocks): +1.09% tok/s, se 1.86 (not resolved); replay screening +0.35..+1.72 tok/s; argmax flips 1.9-2.0% vs A/A 1.3-1.55% (<2.8% bound). Not claimed as a speedup.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 05:57:14 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 97c33d8b2c Offline differentials: port the Strata 0.1.50 chat-template empty-turn filter, GGUF types 143-146, native PLE key types; fix two stale smokes
chat template (prompt bytes): ChatTemplate.render (#843) drops completed empty assistant turns
(no text after strip, no picture, no tool calls; the final message is kept; STRATA_KEEP_EMPTY_TURNS=1
keeps them) before the template runs. prompt.rs now does the same in Renderer::render and in the typed
render_with_images path. diff_chat_template: 136/3000 -> 0 (also 2 x 12000). chat_template_oracle.json
regenerated from the Original; one responses.rs test asserted the old behaviour.

gguf: block_geometry knows the APR trellis types 143-146 (PTQ1_0, TQ2_T, TQK6, TQK7); gguf_headers.json
regenerated. diff_gguf_header: 188/400 -> 0.

native pack: NATIVE_PLE_KEY gained IQ3_XXS/IQ4_XS (#381); NVFP4 expert tails and prism.hadamard experts
are refused (not ported, the runtime reads neither). diff_native_pack f16_nan uses a quiet NaN (numpy's
widening of a signaling NaN differs between builds). The live differential still needs one run on Linux.

smoke-mtp-pack.py reads the Q8_0 names from required[]/wq(); Dockerfile.systemd-smoke drops its apt
version pins. docs/ci-audit.md findings 14, 15, 16, 18 updated in place.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 03:39:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 af387583f9 Merge claude/ci-audit2: CI fixes verified in containers (musl MADV_COLLAPSE, PTX pins, mock gates, buildx), ci-audit.md section 3.4
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 03:05:40 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4cecb3b205 ci: repairs found by running the Docker- and tool-dependent steps in containers
* scripts/test-cuda-fixed-ptx.sh asserted the CUDA 13.0 toolkit pins; deploy/cuda-toolkit.lock.json moved to 13.2.2 on 2026-10-14. Pins updated
  to nvcc/ptxas 13.2.86 and nvdisasm 13.2.86 (sha256 and sizes from the official manifest, verified against the lock's manifest_sha256);
  the SASS dataflow assertions hold for the new ptxas.
* crates/model-format/src/huge_pages.rs: libc 0.2.190 has no MADV_COLLAPSE for musl targets, so the static CLI (linux-static-cli,
  release-cli, Dockerfile.static-cli) did not compile since the hugepages work (2026-11-01). The constant (25, the same value glibc's libc
  exports) is spelled out locally; nothing else changes.
* deploy/Dockerfile.static-cli: `rustup target add` ran before rust-toolchain.toml was copied; the floating rust:1.99 tag is 1.99.1 while the
  pin is 1.99.0, so the musl std was installed for the wrong toolchain ("can't find crate for core"). The target is added after the COPY.
* crates/cuda-driver/tests/mock_cuda.c: load-only cuStreamSynchronize (Driver::load resolves it eagerly); the fake-libcuda mock gates pass again.
  port.yml runs them (`run.sh --mocks`) after the harness.
* scripts/cuda-stubs: glibc/libstdc++ already declare the libm names the stub redefines (clash on every file), so those stubs are skipped under
  __GLIBC__; check-cu.py finds s26_tsum.cuh in the Original kernels; check-local.sh runs the C++-only pass (--plain) off macOS (101/104 files).
* check-local.sh --full: test-cuda-driver-bootstrap.sh reported as debt (stale: it builds a synthetic workspace of the crate alone, which no
  longer resolves its path dependencies).

No engine numerics or kernels are changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 02:59:50 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8b7bd2e811 Merge claude/experimental-resync: re-port kv_q4/kv_q8/kv_stream/qsa_attn to the 41cf05a0 Original, literal_port 8/8; the four programs refuse to open until their PTX is resealed on the server
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 02:28:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4df5f3dcf0 docs, check-local: experimental ports re-synced to Strata 41cf05a0; literal_port is a hard gate again
* docs/experiments/2026-10-14-experimental-modes-port.md: "Re-sync" section (what drifted per program, what was done, verification,
  the stale-PTX gate, the server-side reseal list and steps, open items found on the way: remote experts host code, K8V4 streaming,
  multi-token append entries).
* scripts/check-local.sh: --fast no longer skips `_bodies_are_literal` and no longer carries literal_port as debt.
* docs/ci-audit.md (findings 4, 5 and the "what changed" note) and docs/windows.md: literal_port closed, minimal edits.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 02:27:51 +01:00
Pavlo Ratushnyi 0111c3dc62 Merge claude/single-copy: sparse memfd (PLE extents only) is the rtx5090-32g default; O_DIRECT loading, page-cache release; file source kept as experimental
Identity PASS (2057/2057 rows, 1036/1036 draft traces); 245k A/B +0.58% (n.s., 5/6 blocks); MemAvailable +36.6 GiB; seal 79-97 s -> 28 s.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

# Conflicts:
#	desktop-core/src/bin/leleka-inference.rs
2026-11-03 02:15:19 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1d007da7da window-policy: replay summary from the per-request lines (0.1 ms resolution), CAPDIR, no nice
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 02:14:15 +01:00
Pavlo Ratushnyi 1bf011da03 routing-lead: TOP_K is 10 2026-11-03 02:12:02 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f5a9b3bcf3 experimental ports: re-sync kv_q4, kv_q8, kv_stream and qsa_attn to Strata 41cf05a0, literal_port guard with named exclusions, stale-PTX gate
The 2026-10-25 upstream sync moved the Original kernels and the four experimental CUDA ports were not re-synced
(literal_port failed 4 of 6: 1, 5, 20 and 197 Original kernel-body lines missing).

* kv_stream: guarded shared atomicAdd; kv_q4: step_stride / planes; kv_q8: template <bool MULTI>; qsa_attn: attn_chunk_body with
  reduce12_gfx906 / reduce12_head_of_lane. Bodies are copied verbatim; the entries keep their ABI and instantiate the Original's
  single-token launch, so the sealed entry tables and the Rust facade are unchanged. The thread-emulation harness gives bitwise
  identical results on the previous and the re-synced sources (fwht, q4, q8, route, cvec, attention m2/m3/m4).
* tests/literal_port.rs: per-function bodies; a device function of the Original that the port does not carry (SM60-only gather,
  pre75 / merge_v2 / v3 / slot / row variants of the same arithmetic) is listed with its reason; the list is checked both ways, an
  unlisted new function or a stale entry fails; self-test of the guard.
* experimental.rs: the PTX is not rebuilt (no nvcc on this host), so PINS[..].source_sha256 of the four programs still names the
  previous source. admit() gains a source-seal gate (source_is_sealed) and PENDING_RESEAL lists the four programs: they refuse to
  open until the server reseals them, and a unit test keeps the list exact. The sealed PTX and their PTX digests are untouched.
* docs/cuda-seal-plan-additions-experimental.json: new cu_pin of the four sources. reseal_own.py: --plan, refreshes seal_sha256 /
  seal_length when the plan entry has them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 01:55:58 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9b08355660 scripts: restore the executable bit lost in the 2026-10-14 import (every workflow job died at "Permission denied")
7f896a8bb changed 100755 to 100644 on 16 scripts that the workflows or check-local.sh execute by path, among them
scripts/install-pinned-rustup.sh (the first step of every job), scripts/test-cuda-fixed-ptx.sh, scripts/test-cuda-driver-bootstrap.sh,
scripts/build-cpu.sh and the GPU gate scripts. A Linux checkout keeps git's mode, so `scripts/install-pinned-rustup.sh ...` failed with
"Permission denied" before any build. Found by running the steps from a `git archive` in a Linux container; the Windows and WSL-on-/mnt/c
runs of the first audit show every file as executable and could not see it. Only modes change; engine/strata is not touched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 01:42:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 55562fff7b Merge claude/ci-audit: product CI job + coverage gate, repairs of red checks, docs/ci-audit.md
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 00:31:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 cb7bcc36ed ci: cover leleka-obs (the coverage gate caught it on the rebase onto the observability merge)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 00:30:27 +01:00
Pavlo Ratushnyi a11dec1cf1 A/B scripts: binary directories overridable 2026-11-03 00:30:26 +01:00
Pavlo Ratushnyi 766f844870 A/B sampler: pgrep -x on the 15-character comm of leleka-inference; summary keys on MemAvailable 2026-11-03 00:19:07 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e45bb83808 ops: owner-wifi-stability.sh, Wi-Fi watchdog for rnr5090 (gateway ping, escalating recovery, failure snapshots in /run)
show | install | remove | status, --dry-run; optional --disable-powersave (+ --install-iw), --disable-aspm, --reboot-after-min.
Tested read-only on the server (show, install/remove --dry-run, run --dry-run --simulate-fail); install was not run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 00:02:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e57562740e window-policy: draft-floor ceiling default 0.60 (was 0.9), LELEKA_SPEC_POLICY=legacy restores it; spec-trace prints the bar and the row slope
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 23:50:45 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 24f1ba4a25 window and holder: 8 read threads by default (server hung during heavy O_DIRECT load on 2026-11-02)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 23:47:37 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4ca30c9e1c ci: build and test what ships (check-local --product, Product workflow, coverage gate) and repair the red checks
The existing workflows never built the `leleka` binary (crates/deploy) or ran the tests of leleka-deploy, leleka-memory,
leleka-runtime-client, leleka-runtime or leleka-cuda-driver (docs/ci-audit.md). New: scripts/check-local.sh --product and
.github/workflows/product.yml (default-member build, release build of the six shipped binaries, cargo check of the CUDA-feature
crates, tests, rustfmt/Clippy), scripts/check-ci-coverage.py + scripts/ci-coverage.json (fail when a workspace member has no CI
coverage entry), scripts/ci/nvidia-smi (hermetic stand-in for the deploy end-to-end tests).

Repairs found by running every step: check-local --fast failed on rustfmt in leleka-backend-api/leleka-context and on Clippy
type_complexity in leleka-tokenizer (formatting and a local type alias only); `cargo test -p leleka-cuda-driver` does not compile without
its cuda-driver feature (script now passes it); the desktop.yml hardware smoke step had no --bin (six binaries, no default-run);
the stale 8192 context assertion in crates/deploy/tests/e2e.rs (the laptop profile is 262144 since 621d35276); five trivial Clippy
lints in leleka-memory and leleka-deploy; the literal_port drift guard (red since the 2026-10-25 upstream sync) is reported as debt;
control-plane Clippy no longer lints its path dependencies; the sampler host-shim script works under Git Bash; worktree.sh creates
worktrees with core.autocrlf=false and .gitattributes marks the sealed PTX -text (a CRLF checkout makes the binary refuse to start).
No kernel, engine numeric or runtime behaviour is changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 23:32:24 +01:00
Pavlo Ratushnyi f8acb4898d routing-lead: static tier hit rates for N slots 2026-11-02 22:26:12 +01:00
Pavlo Ratushnyi 9f174c13e3 window: chmod 0400 for the file arm 2026-11-02 22:25:08 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 478f0c4812 Merge claude/unattended: O_DIRECT bulk model load, supervision/hang detector/log rotation, leleka status/verify --quick, service unit + installer scripts (owner-run), soak harness
Identity gate (legacy vs new bank read, 256k replay): 2057/2057 rows, 1036/1036 draft traces identical. Soak not yet run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 22:21:46 +01:00
Pavlo Ratushnyi a75238f3fa routing-lead.py prefetch probe; probe phase 2026-11-02 22:18:52 +01:00
Pavlo Ratushnyi e5eab64eaa single-copy A/B: harness copy, STOP file, window script 2026-11-02 22:17:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5f1822d5eb Merge main (embedded expert profile) into single-copy
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 22:17:46 +01:00
Pavlo Ratushnyi 2b68288f02 holder v3 (seal-exec based, no page cache), inventory script fixed 2026-11-02 22:14:55 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a53311d2e1 sealed: an empty extent list is a valid empty sparse copy; file profile env follows rtx5090-32g; A/B script, inventory
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 22:13:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 2a23976c55 Pin PLE_EXTENTS_SHA256 (measured on the real archive); exact sparse memfd size; ram-inventory script; KAR decode cost probe
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 22:06:02 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 48a3811c89 Merge claude/unattended into single-copy (O_DIRECT bulk reads for the sealed copy, extents sealed through the same reader)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:53:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 eddb78e6e0 deploy: embed the upstream expert profile in leleka; first start installs it offline
The owner asked to ship the 196,632-byte table instead of depending on a download.

* crates/deploy/data/expert-profile.bin: Strata data/expert-profile.bin unchanged (MIT, sha256 8f59b4aa...388975baf), the one
  *.bin exception in .gitignore (every other *.bin stays ignored); .gitattributes pins it `-text binary` so no platform can
  alter the bytes. crates/deploy/data/expert-profile.NOTICE carries the Strata MIT notice and provenance.
* expert_profile.rs: `include_bytes!` of the table; provisioning order is --expert-profile-file, the embedded bytes, then the
  https download as fallback. The embedded bytes are digest-checked before the atomic install like any other source, and only
  offered to a profile that pins the same digest. The plan shows "install the ... table embedded in this binary (no network
  needed)" even with --no-fetch and without curl/wget.
* digest verification, status/verify/summary ON/OFF reporting and --no-expert-tier are unchanged.
* attribution: docs/release licence audit (Strata row), docs/deploy.md, docs/windows.md, docs/upstream.md, and the 5090
  packager ships the NOTICE as licenses/strata-expert-profile-NOTICE.txt.
* tests: embedded == pinned file, offline install before any download, explicit file wins, a corrupted embedded copy falls
  back to the download, plan states, e2e first start with no network tool.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:52:58 +01:00