Commit Graph
483 Commits
Author SHA1 Message Date
Pavlo Ratushnyi 412d9a48af STRA-338: merge the STRA-367 limits gate (claude/hexagonal-integ-lints) into the integration; check-local.sh keeps both the engine-crate package names and the limits steps 2026-11-06 11:39:49 +01:00
Pavlo Ratushnyi a4ceeab69c STRA-338 S22: the Qwen3.5 CUDA engine moves to the adapter crate leleka-engine-qwen35-cuda (L3, edges to cuda-driver, model-format, native-cpu-expert declared); leleka-runtime is a one-line facade over it; scripts, CI and the baseline follow the path. Test fixes found on the way: the digest pin test reads backend/config.rs, the bring-up print gate understands rustfmt-split cfg attributes and the settings snapshot guards 2026-11-06 11:34:15 +01:00
Pavlo Ratushnyi 48b2ce9f4c STRA-367: docs/architecture/limits-gate.md (rules, measures, allowlist, census, decision) and the legacy sites of tech-debt.md linked to allowlist entries 2026-11-06 11:26:53 +01:00
Pavlo Ratushnyi fc591f4e96 STRA-338: integrate the gateway G track (S21 protocol in gateway-domain, S6 rest, S7 serve phases) into the hexagonal integration 2026-11-06 01:46:01 +01:00
Pavlo Ratushnyi e765c06ae3 STRA-338 S7: last_activity at the start and end of a request reads the request's clock
run_backend_worker (twice per request) and the stdio worker's run_session (once per request) stamp last_activity with
ObsHandle::now(). The stamps at attach or READY and the per-engine-line stamp keep Instant::now(). The instant-now ratchet
of strata-control falls from 26 to 23. Docs: gateway-ports.md lists what is and is not behind the Clock.
2026-11-06 01:36:49 +01:00
Pavlo Ratushnyi c0f6888310 STRA-338 S21: the pure part of the Anthropic Messages adapter moves to leleka-gateway-domain
messages/request.rs (the Messages request types and Request::into_responses, CountRequest, text and block helpers) and
messages/reply.rs (message, stop reason, tool_use block, usage, the error type table and envelope as functions of the
status number) are in crates/gateway-domain. strata-control keeps the route layers, the SSE adaptation and the HTTP errors;
error_value(StatusCode, ..) is a wrapper over the domain function. The adapter tests stay where they are and pass on the
moved code (same test ids). The long functions are added to docs/architecture/tech-debt.md, the continuation is recorded in
docs/experiments/stra-338-gateway-track.md (90 golden cases; an earlier commit message says 96, which was a miscount).
2026-11-06 01:29:57 +01:00
Pavlo Ratushnyi 4394ac3337 STRA-338 S21: the Harmony prompt of a gpt-oss request moves to leleka-gateway-domain
harmony_conversation (the Responses input as Harmony messages), harmony_render (developer message, tools, rendering through
leleka-harmony, the date given by the caller) and prompt_date (PromptDate, its parser, civil_date) are in
crates/gateway-domain/src/responses/. strata-control keeps the process-wide prompt date, today() and render(request) in
responses/harmony_prompt.rs with the inline tests, so the byte-exact Harmony prompt tests keep their ids and pass on the
moved code. render_at lost its cfg(test) because the tests live in the other crate. Function texts are unchanged; the long
ones are added to docs/architecture/tech-debt.md.
2026-11-06 01:21:16 +01:00
Pavlo Ratushnyi 339a4c82cc STRA-338 S7: the request record and the worker request stamps read the Clock port
ReqCtx (the per-request record behind the structured request line) holds the Clock from Observe and stamps admitted,
engine_start, first_token and the line itself with it; Record::from_state takes the time as an argument. The backend
worker (serve_one start, conclude end) and the stdio worker (combine_done start) read the request's own clock through
ObsHandle::now(), which falls back to the system clock when the request has no record. These are request-level stamps;
the per-event stamps (last_progress, drain and stop deadlines, activity stamps) keep calling Instant::now() and stay on
the instant-now ratchet, which fell from 31 to 26 for strata-control.

New test: the_record_stamps_come_from_the_injected_clock (a ManualClock gives queue_ms 40 and ttft_ms 100).
Docs: gateway-ports.md says which stamps are behind the port, describes the serve() phases, and records the S10 default
(the offline CLI groups stay in strata-control).
2026-11-06 01:13:30 +01:00
Pavlo Ratushnyi 5d2564f4ff STRA-338 S6: control-plane/src/responses.rs children named by responsibility (intake, create, route, history, resources, errors, tool_recovery, reasoning, render)
responses.rs is 97 lines (311 at the start of this step, after the domain move); the mechanical child names impl_* and
*_fn are gone. Function texts are moved without change; the fields and constants that sibling modules read became
pub(super). Public paths (responses::create, create_route, retrieve, delete, input_items, count_input_tokens,
ResponseHistory, HistoryResponseStore, TracedJson, PromptDate, set_prompt_date, set_tool_call_recovery and the domain
types) are unchanged. Functions that still miss the limits are listed in docs/architecture/tech-debt.md.

Linux test ids of strata-control, strata-desktop-core, leleka-gateway-text and leleka-gateway-domain: 0 changed,
0 missing against the tip before S21 wider (2 new: the golden test and its ignored regenerator).
2026-11-06 01:00:39 +01:00
Pavlo Ratushnyi 3aa96fbf0e STRA-338 S21: the pure Responses protocol moves from strata-control to leleka-gateway-domain
CreateRequest, TextOptions, TextFormat, its validation and tool-choice rules, OutputItem, Usage, ResponseTrace with its
event stream, the prompt rendering (render_request_with), the output parsing and reasoning split (parse_output_items_with,
decode_generation_noted), reasoning_effort and the schema checks now live in crates/gateway-domain/src/responses/.
strata-control re-exports the types under responses::* and keeps thin wrappers with the old signatures for the places that
need a process flag, a stage span or a log line. The text of the moved functions is unchanged; the edits are listed in
docs/architecture/tech-debt.md (S21 wider).

Evidence: the golden fixture committed just before this (control-plane/tests/fixtures/golden/responses_pure.json, recorded
from the old code, 96 cases of render, validate, trace and parse) passes on the new code, and the Linux test ids of
strata-control, strata-desktop-core, leleka-gateway-text and leleka-gateway-domain are unchanged (0 changed, 0 missing).

Gate: --update-baseline --allow-increase was used for two entries. process-global:leleka-gateway-domain 0 -> 3 is the
memo of tool_schema_accepted moving with its function (process-global:strata-control fell 14 -> 11, the sum is unchanged).
render.rs is a new moved file of 405 lines (one 385-line legacy function), listed as debt.
2026-11-06 00:50:30 +01:00
Pavlo Ratushnyi 6164880902 STRA-338 S18: numbers of the S18 check in tech-debt.md 2026-11-06 00:29:44 +01:00
Pavlo Ratushnyi e0b4757683 STRA-338 S18: KarInspection and the sealed archive as WeightSource, WeightRange for the KAR stager, S18 notes in tech-debt.md 2026-11-06 00:29:31 +01:00
Pavlo Ratushnyi c3aa7c2703 STRA-338 S15: ServeDevice seam for the request layer, scripted FakeDevice and lifecycle tests on the real generate and run_request
generate takes any ServeDevice (the stack delegates to its own methods, once per request); FakeStack/FakeDevice implement RequestOwners, ServeDevice, OriginalServePort and PrefixDevice over a ManualClock script. 14 lifecycle tests: completion, length, eos, partial acceptance, cancel, deadline, device errors, refusal, timing, prefix reuse. S15 notes and the S19 design in tech-debt.md.
2026-11-06 00:00:42 +01:00
Pavlo Ratushnyi b19b83dff3 STRA-338 S14: Stopwatch for the prefix cache retention scale, PrefixServe::new keeps its size, S14 notes in tech-debt.md 2026-11-05 23:32:14 +01:00
Pavlo Ratushnyi 348e52bb1e STRA-338 S13: merge claude/hexagonal-integ, tighten the architecture baseline after the Settings port 2026-11-05 22:43:29 +01:00
Pavlo Ratushnyi fe6fc3313a STRA-338 S13: CPU pool settings grouped, golden tests for the strict parsers, S13 notes in tech-debt.md
The CPU pool fields of the memory topic move into MemorySettings::pool (CpuPoolSettings) so each constructor
stays short; no key and no spelling changes.

Golden tests for the parsers that read the captured namespace: the speculative engine (the numeric and the
set-ness reading of LELEKA_SPEC, clamps, the adaptive switch, arm lists, adaptive constants, legacy policy),
the NaN guard, the conversation cache policy (including a value that is not unicode), and the memory
governor keys. Long test tables carry #[rustfmt::skip] so each test stays within 30 lines.

docs/architecture/tech-debt.md: what S13 left outside the port and why (settings::process(), the other crates'
readers), the keys whose spellings differ on purpose, the reads that became snapshots, the functions this step
touched that were already over the limits.
2026-11-05 22:41:13 +01:00
Pavlo Ratushnyi eecbfce60d STRA-338: integrate the engine track (kar-off-ab base, S5a, S5b, S13 ratchets) into the hexagonal base; the baseline is recomputed on the merged tree (growth only in the seven kar-off-ab files) 2026-11-05 21:51:28 +01:00
Pavlo Ratushnyi 7699138a6e STRA-338 S5b: decompose serve_load into ordered phase functions
serve_load (about 1000 lines, 1170 after rustfmt) becomes load.rs (a 20-line order of
the phases) plus: load_admit (every refusal that needs no model byte, the memory
governor start), load_sources + load_bind (verify, bind, identity digest chain, expert
bank), load_identity, load_cuda (driver, context, probes, hand-over to the Original
serve stack), load_weights + load_moe + load_moe_gates (output head, KAR PLE, dense and
MoE caches; the adaptive and learned-main witness gates), serve_loop + serve_generate +
serve_run + serve_report (the command loop and one Generate), serve_close (teardown).
owner() is split the same way. Each phase takes a small context (LoadEnv, Bound,
Identity, Weights, Serving, Exchange) and returns a typed result.

Order and side effects are kept: the admission checks, the env reads
(LELEKA_ORIGINAL_SERVE_GGUF_PLE is still read in gguf_ple_load and in the refusal
detail line), the log texts (including the load-gate detail line and the
KAR_MTP_PROFILE / NATIVE_MTP_PROFILE logic of the kar-off-ab branch), the cancellation
checks, the lap marks, and the drop order of the CUDA objects (Weights drops dense, MoE,
KAR PLE, output head; the context is closed after the weights and outlives the binding).
The three conditions of the former execution gates are one match, the policy flags one
PolicyFlags::of. No GPU or numerical path was touched.

New tests (backend/load_tests.rs): PolicyFlags against the former expressions, the
execution gates against the former three sequential checks for all 6 executions x 8
boolean combinations, and the weight-cache log line against its exact text and the
saturating subtraction. Test ids: 689 before the S5 work, 694 now (the five added), the
same 2 environment-dependent failures and 58 ignored; cargo check --all-targets for
leleka-runtime and leleka-deploy gives the same warning counts, clippy reports nothing
in backend/. All new and changed functions are within 30 lines, complexity 10, nesting 4,
except one 127-column line that is a 119-character MoeWeightCache constructor name
(docs/architecture/tech-debt.md, which also lists what S5a moved verbatim and still misses
the limits). moe_weight_cache.rs gains three pub(crate) use lines for the witness types.
The architecture baseline loses the transient backend/load.rs entry.
2026-11-05 21:39:26 +01:00
Pavlo Ratushnyi 705125f858 STRA-338 S21: Clock in three more handlers, gateway-track report and ports doc
server_api::{ensure_loaded, model_busy, load_post} stamp last_activity from state.services.clock instead of
tokio::time::Instant::now() (instant-now:strata-control 34 -> 31; SystemClock returns the same value). The baseline is
tightened. docs/experiments/stra-338-gateway-track.md records the commands, the per-step test-outcome comparison (Linux:
597 ok before, 615 ok after, 0 changed, 0 missing), the gate movement and what was not done;
docs/architecture/gateway-ports.md shows the AppState groups and the domain crate.
2026-11-05 20:49:47 +01:00
Pavlo Ratushnyi 35bf3a03d3 STRA-338 S16: gateway ports (EngineClient, ResponseStore, Clock, ToolHub, VisionEncoder) with adapters and fakes
AppState now holds ports instead of concrete types: `engine: Option<SharedEngine>` replaces the
mpsc::Sender<GenerationCommand>, `responses: SharedResponseStore` replaces Arc<RwLock<ResponseHistory>>,
`clock: SharedClock` serves queue deadlines, uptime and response timestamps, `mcp` is a ToolHub and `vision` a
VisionEncoder. The channel (adapters::ChannelEngine), the history with its disk snapshot
(responses::HistoryResponseStore), the system clock, mcp::Hub and vision::Vision are the adapters; main.rs serve()
composes them. No behaviour change: the HTTP handlers make the same calls in the same order, the queue claim race is
unchanged, only the deadline now reads the injected clock.

Ports are called per request, never per token or stream event (docs/architecture/gateway-ports.md).
ports/fakes has an in-memory adapter per port; control-plane/tests/ports_fakes.rs (12 tests), queue.rs and
adapters/channel_engine.rs add tests that drive the real handlers through them.

Architecture gate: dyn-trait:strata-control fell 35 -> 21 (a BoxError alias replaces 20 `Box<dyn Error>` spellings,
which pays for the 6 new port aliases); main.rs 1156 -> 1155 lines. Also adds scripts/dev/test-outcomes.py (per-test
outcome comparison of two cargo test logs) and scripts/dev/wsl-cargo.sh.
2026-11-05 20:06:28 +01:00
Pavlo Ratushnyi 5aec7c2c5f STRA-338: integrate the kar-off-ab branch (GGUF-PLE profile, replay smoke) into the hexagonal base so backend.rs can be split on top of it 2026-11-05 18:24:17 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5cc2257ea7 kar-off-ab: results page, codex/browser evidence, cmp_report knows LELK/LELG
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 16:30:18 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 740d841137 kar-off-ab: speed A/B evidence (3 interleaved passes of each arm, 59 recorded requests) and quality (a) analysis
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 13:59:51 +01:00
Pavlo Ratushnyi 7b1922d116 gateway-text: prompt, response_tools and tool_output become one crate; desktop-core no longer compiles them twice (STRA-338 S8)
control-plane/src/{prompt,response_tools,tool_output}.rs (pure text logic: pinned chat template renderer, tool catalog, tool-call
parser) move by git mv to the new leaf crate crates/gateway-text. strata-control re-exports them under the same module paths
(crate::prompt, crate::tool_output keep working for tests and callers); strata-desktop-core replaces its three #[path] includes with
imports. The leleka-runtime GPU proof modules that hash prompt.rs follow the new location. The only text change in the moved files is
the relative include_str path to engine/strata. serde_json features (preserve_order + float_roundtrip) equal what both hosts already
got through unification.

Verified: cargo test strata-control + strata-desktop-core + gateway-text on the host: 504 tests, 0 failed; the 30 tests that vanish
are exactly the duplicate runtime_prompt/runtime_tool_catalog/runtime_tool_parser copies of the same 30 tests (11+2+17), which now run
once. WSL x86_64-linux cargo check --tests leleka-runtime: 62 warnings, unchanged. fmt clean on the new crate.
2026-11-05 13:32:35 +01:00
Pavlo Ratushnyi 0aab895444 native-cpu-expert: drop the production edge to cuda-driver; CPU-vs-CUDA parity bench moves to leleka-native-parity-bench (STRA-338 S11)
rust_bench_cuda.rs and the native_expert_parity bin (the only users of leleka-cuda-driver in the CPU expert adapter) become the new
tool crate crates/native-parity-bench (L4, cargo-checked in the product gate). leleka-native-cpu-expert no longer depends on
leleka-cuda-driver; the architecture baseline drops that violation. Code moved byte-for-byte except the use paths.

Verified (WSL x86_64-linux): cargo check --all-targets for the new crate, native-cpu-expert and leleka-runtime; cargo test -p
leleka-native-cpu-expert all ok (22+2+4+... tests, 0 failed); check-architecture and check-ci-coverage pass.
2026-11-05 13:20:39 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8cc8fd6b60 engine: Original serve accepts the native-PLE MTP load without a KAR source under LELEKA_ORIGINAL_SERVE_GGUF_PLE=1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 11:29:12 +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 0a30049913 codex-compare: results page (18 cells, three arms), browser check outcomes, gap-clustering probe
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 08:22:15 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 42dcceff20 codex-compare: results tables of the 18 cells (3 arms x 2 tasks x 3 repetitions), acceptance re-run with the corrected board check
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 07:31:26 +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 362da67488 release 5090 v0.1: checklist 7.3, confirmation run on the final package (tag leleka-5090-v0.1 is on the commit before this one)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:48:12 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 17e3729442 release 5090 v0.1: acceptance numbers (candidate package on the 5090: up, verify, cold start, Codex smoke), checklist closed, doc debt statuses
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:29:19 +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 77e0554a2a docs: window-policy-5090 (cause, replay screening, identity, paired A/B, fused-commit decision); adaptive-spec knobs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 05:56:26 +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 8e6071e150 docs: ci-audit section 3.4 (Docker- and tool-dependent steps run in containers), findings 14 to 18; linux-static-cli apt list gets docker-buildx and systemd
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 03:03:28 +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 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 373137bcdb docs: ci-audit results after the rebase onto main (observability merge) and commit references by subject
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 00:31:19 +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 Ratushnyi 1d1ddc5eec design doc: 2026-11-02 update (census, B0 built, on-the-fly candidate not built) 2026-11-02 23:37:06 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 70f1fd5aff docs: ci-audit (what the CI proves, step-by-step results, findings, what it cannot prove); desktop.yml Lints --no-deps
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 23:32:29 +01:00