1735 Commits
Author SHA1 Message Date
Pavlo Ratushnyi 75e28ca110 deploy: drop the HIDDEN flag of the supervisor, a process cell that was written by --hidden and never read (STRA-338)
The console is hidden by winsys::hide_console right where the flag was stored; nothing in the workspace loads supervisor::HIDDEN, so the cell and its exception entry go. cargo check -p leleka-deploy --all-targets passes.
2026-11-24 08:51:58 +01:00
Pavlo Ratushnyi d9c0c87dcf Narrow the dead glob re-exports of the module splits: pub use x::* becomes use x::* or pub(crate) use x::* (STRA-338)
Where the split left pub use x::* over items that no outside module can name, the compiler said the glob re-exports nothing pub. The glob now has the visibility its items really have: plain use where they are pub(self), pub(crate) where siblings reach them (model.rs file_download, libc-shim launch_interposers). One glob of backend-api scripted.rs was dead and is deleted. 7 globs of control-plane stay with their allow: the compiler calls them unused in the lib build and the lib test build of control-plane cannot be built on Windows, so a test use cannot be ruled out.

cargo check --all-targets on backend-api, control-plane, gateway-domain, gateway-text and libc-shim: no new warning, no new error (the one control-plane lib test error is the pre-existing std::os::unix use).
2026-11-24 08:51:58 +01:00
Pavlo Ratushnyi e79179a255 cuda-driver: the copy ring asks its arena for the stage slot count by static dispatch, not through a dyn view (STRA-338)
admitted_slots coerced the read lease to &dyn RingArena only to call stage_slots on it. RingArena::stage_slots(read) is the same method of the same impl without the vtable; the Ring keeps its own dyn field, which has its exception entry.
2026-11-24 08:51:57 +01:00
Pavlo Ratushnyi c1734bc7c4 cuda-driver: the expert tier probe names what it takes from its parent instead of use super::* (STRA-338)
The probe module is compiled under cfg(any(test, feature = "expert-tier-probe")), so it is production code of that feature and the glob import counts for the gate. The 16 names it uses are listed; cargo check --all-targets with features cuda-driver,expert-tier-probe and with cuda-driver alone gives no new warning.
2026-11-24 08:51:57 +01:00
Pavlo Ratushnyi 651ed44e90 Drop 49 allow(unused_imports) that no compiler warning needs (STRA-338)
The re-exports left by the mechanical module splits carried a blanket allow(unused_imports). 49 of them cover nothing: cargo check --all-targets on backend-api, control-plane, gateway-domain, gateway-text and libc-shim gives no new unused-import or glob-import warning without them. 39 others in those crates still silence a real warning and stay; the 8 in desktop-core (engine-host) could not be checked because that crate needs the engine, which does not build on Windows (STRA-390), and stay too.
2026-11-24 08:51:57 +01:00
Pavlo Ratushnyi 4ef84275b1 cuda-driver: the VRAM allocation ledger belongs to the Context, not a process cell (STRA-338)
The per-call-site ledger of LELEKA_VRAM_LEDGER is now part of what a Context retains: Context::allocate and the DeviceBuffer free note into the ledger of their own context, and the engine reports through Context::report_vram_ledger, so the OnceLock singleton of vram_ledger.rs and its architecture.json exception are gone. The operator switch stays an EnvSwitch and the default is unchanged (off: one cached bool read per allocation); with the switch on, each context now accounts for its own allocations instead of every context of the process sharing one table.
2026-11-24 03:53:15 +01:00
Pavlo Ratushnyi 47d831ec62 engine: the adaptive-tier tuning is a field of the tier configuration, not a process cell (STRA-338)
ExpertTierConfig now carries AdaptTuning (minimum routed count, margin, decay) parsed once with the tier switches; the residency pool, the cross-layer estimate and the seed ranking take it as a value, so the OnceLock of split_group_pcie.rs and its architecture.json exception are gone. The production default is unchanged (the values still come from LELEKA_ADAPT_MIN_COUNT, _MARGIN and _DECAY with the same fallbacks), and the line for an invalid LELEKA_ADAPT_DECAY is now printed when the tier configuration is read instead of at the first adaptation.

Provenance of two comments that left ExpertTierConfig::off() so that the function stays within the 30-line limit. decode_reserve_mib 300: measured (jobs 989/990/988), the per-request verifier needs about 450 MiB, so 1024 left about 550 MiB idle (180k smoke included); 300 gives the auto-sized cache about 330 more slots. On the 5090, 5 x 245k session (speedtrain-ab), with 300 the card never had less than 563 MiB free (vanilla runs down to 315), so 130 would be safe on the card (+87 slots), but the first slots-footprint A/B showed the Context budget is a second ceiling the planner respects (usable_room); 130 stays an opt-in (LELEKA_ORIGINAL_SERVE_DECODE_RESERVE_MIB=130) until its own arm measures it. pcie_frac 0.45: the PCIe share that equalises the legs when the CPU pool and the DMA share the host's memory ceiling (P/(P+C) = 0.45, job 987-b/909; 0.45 against 0.55 gave +0.5 % / +4.7 % at the auto-sized cache and was equal at 2048 slots).
2026-11-24 03:50:37 +01:00
Pavlo Ratushnyi e9107fe43c comments: the serving context is no longer called process-wide (STRA-338) 2026-11-24 02:01:08 +01:00
Pavlo Ratushnyi 5951540336 native-cpu-expert: drop the process expert layout and the GPU-wait hook nobody installs (STRA-338)
install_layout/expert_layout (a process RwLock cell) and install_release_gpu_waits (a process
OnceLock hook read on a pool stall) have no caller anywhere in the workspace, so the cells were
never written and the hook never ran. They are deleted instead of injected; the origin of the
pool's diagnostic millisecond clock is now a field of the pool's shared state (Shared::origin)
instead of a process OnceLock. Three process-global exceptions deleted.
2026-11-24 01:00:07 +01:00
Pavlo Ratushnyi 79765ac804 engine: the serving context is a value from the composition root, not a process cell (STRA-338)
ServingContext::new(cells, rope) replaces configure_serving_context and the process cell of
cuda-model; serving_context() is gone. The backend spawn makes the value once (serving::
admit_context_tokens) and hands it down: OwnerThread -> LoadEnv -> ServedArtifact (the
model binding captures it, ModelBinding::serving()) and Device::create_context_serving
(every Context of the Load). Device::create_context stays the trained default for tools and
tests. contract::serving_cells, the QSA index context()/device_peak() reads, the
native-resources size read, the memory governor, the stack config and the RoPE constants
read the binding or the Context instead; the stack open refuses a binding and a Context
made for different serving contexts. The two laptop tools build their own value.

Five process-global exceptions deleted (cuda-model serving_context, engine contract,
binding_identity, qsa_index/context, qsa_native_resources).
2026-11-24 00:59:18 +01:00
Pavlo Ratushnyi 1faee20402 Merge claude/debt-final-ctx2: positions, the resident KV window and the serving geometry belong to the model binding and the Context, not to the process (STRA-338) 2026-11-23 23:14:40 +01:00
Pavlo Ratushnyi 6c88bbc65e sm86_table: say that the digest was recomputed (STRA-407) 2026-11-23 22:37:37 +01:00
Pavlo Ratushnyi bb8ff44667 Sealed PTX: scrub engine/strata from four PTX header comments and their sm_86 companions, re-pin (STRA-407)
bf16_f32_mmvf, iq3_s_q8_1, moe_group_iq3_s, moe_group_iq3_s_nc4 (sm_120 in src/, sm_86 in ptx-sm86/) change in // header comments only (proof: identical after comment
stripping, no .file/.loc directive or string carries the path). The sm_86 companions are re-derived with sm86_assets.retarget + ptxas -arch=sm_86 (== the edited files);
MANIFEST.json (sm120/sm86 sha256 and byte counts of the four, the -I flags of the one recompiled companion) and the five-part sm86_table rows (new keys, re-sorted, same 27/27/27/27/23
layout) follow; FORMER_TABLE_DIGEST is recomputed with the algorithm of its test (reproduces the old value on main). Rust pins that cover the changed bytes:
bf16_receipt_types.rs BF16_RECEIPT (.cu source_sha256 and bf16_f32_mmvf.ptx ptx_sha256; a Receipt, not a PtxPin, so patched token by token), the frozen-artifact hash of
iq3_s_q8_1.ptx in context_handle.rs and in scripts/test-cuda-projection-family-driver.sh. Instruction streams, entry names and pinned symbol names are untouched.
2026-11-23 22:37:24 +01:00
Pavlo Ratushnyi 5e963eada5 Sealed sources: scrub engine/strata from .cu/.cuh comments, move the source pins that cover them (STRA-407)
21 .cu/.cuh files change in comments only (proof: identical after comment stripping; where the file compiles without the removed headers, nvcc 13.2.86 gives the same PTX
modulo the content-hashed symbol names, which nvcc derives from the source text and which the committed PTX keeps as sealed). Every pin that covered such a file moves:
cu_pin sha256+bytes in the seal plans of mmq_original_prefill_misc, s_gemv_legacy, experimental_keyless, experimental_cvec (no repo tool writes cu_pin; computed with sha256),
experimental.rs PINS[3] and PINS[5] and closed_kernels.rs PINS[1] .source_sha256 (rustpins.apply_field, then rustfmt as seal_pins.py does). The four experimental sources
that were already pending a reseal stay pending. Seal-plan prose and -I flags follow the same wording as the gpu-bringup data.
2026-11-23 22:37:17 +01:00
Pavlo Ratushnyi da8c974f68 Drop the stale engine/strata paths and retired generator names from comments, doc strings and generated fixtures (STRA-407)
Rust comments that named scripts/offline/*, gen_goldens.py, oracle/gen_*.{sh,cpp,py}, build_oracle.sh and similar retired generators now say where the data
came from (the Original's code, Strata 41cf05a0) or drop the sentence. The path/generator text of seven generated fixtures (sampler_oracle.json, sampling_keys.json,
memory_plan_golden.json, rope_golden.json, cvec_oracle.json, stra161 fixtures.json, commentary-tool-prompt.json) is reworded; no test reads those fields and no pin
covers their bytes. cmd_time/doc.rs: the two path texts in the format string; its lines are re-broken so they stay within 120 columns (the string is unchanged
otherwise). Comment-only except those data/string spots; no behaviour change.
2026-11-23 22:37:17 +01:00
Pavlo Ratushnyi 1a4d4a737b Remove the vendored Strata tree engine/strata and its provenance files (STRA-406)
Owner decision 2026-11-23: the vendored tree is junk. Leleka never builds or runs it (no Cargo.toml or build.rs depends on it), the vanilla benchmark
builds from its own checkout on the server, the comparison measurements are finished and the CUDA ports are frozen. Strata is MIT: its licence text
stays and ships (third_party/strata/LICENSE, `leleka engine license`).

- git rm -r engine: engine/strata (upstream 41cf05a0 plus 25 locally patched files), engine/README.md, engine/upstream.md (its pin record moved to
  third_party/strata/UPSTREAM.md) and engine/upstream/ (the two local-patch diffs against the removed tree). They belong to the same vendored mechanism.
- The files Rust and the product still read were moved to third_party/strata and control-plane/tests/mcp_hub in the first commit of this branch.
- The full tree is in git history before this commit; 87e2633af is the last commit that changed it. Restore with `git archive <this commit>^ engine/strata`.
- Four doc-comment lines that the path rewrite made too wide are re-wrapped (check-limits stays at 0 errors).
2026-11-23 21:24:19 +01:00
Pavlo Ratushnyi 056ab3d689 Retire the oracles, generators and scripts that only worked against the vendored Strata tree (STRA-406)
The vendored Strata tree engine/strata is removed for good (owner decision 2026-11-23): Leleka never builds or runs it, the vanilla
benchmark builds from its own checkout, the comparison measurements are finished and the CUDA ports are frozen. Everything below
compiled or read that tree, so it cannot run without it and is retired (the tree stays in git history, see third_party/strata/UPSTREAM.md).
Checked-in fixtures, golden JSON, sealed PTX, seal plans and MANIFEST hashes are untouched and keep being replayed by the cargo tests.

Drift guard
- crates/experimental-ref/tests/literal_port.rs: include_str! of the Original .cu files compared with the checked-in experimental ports.

Oracle generators and builders (they compile or extract from the Strata C++/Python sources; their outputs are the checked-in goldens)
- crates/experimental-ref/oracle/gen_{cvec,kv,remote,stream}_golden.{cpp,sh}, gen_seal_additions.py and the cuda_runtime stub they used
- crates/sampler-ref/oracle/build_oracle.sh, gen_fixtures.cpp, gen_sampling_keys.py, stub/ (run_port_host_tests.sh and the fixtures stay)
- crates/serving-policy/oracle/ (build_oracle.sh, gen_{host,cvec,vision}_fixtures.cpp)
- crates/context/tests/rope_plan_golden/gen_* (plan, rope, kv pool)
- crates/engine-core/src/conversation/golden/gen*.{sh,cpp} and stub/
- crates/cuda-driver/oracle/gen_prefill_ring_trace.py and drivers/prefill_ring_trace.cpp (extracted prefill.cpp), check_cu_syntax.sh
- crates/engine-qwen35-cuda/tests/stra161_reference/reference.py (fixtures.json and the Rust constants stay)
- control-plane/tests/golden/gen_goldens.py, scripts/offline/ (Python differentials and golden generators against the Strata Python tools)

Source-compiling CUDA oracles and builders
- scripts/build-cuda-{projection-family,q5,q6,qsa}-oracle.sh with scripts/cuda-{projection-family,q5,q6,qsa}-oracle/ (include the Original .cu; sha256 pins of them)
- scripts/build-original-verify-ptx.sh, scripts/q8/rebuild_quantizer_ptx.sh, scripts/decode-sm120/make_iq_prefix.py (needs engine/strata/include)
- scripts/cuda-stubs/ (check-cu.py and literal_diff.py need the strata headers and the Original sources; the stub headers served only them)
- tools/chain-probe/build.sh, tools/kernel-ab/{cpp,aa.sh,smoke.sh,time_smoke.sh} (the C++ comparator is built from the Strata CPU kernels; verify_manifest.py stays)
- scripts/e2e/codex/speed/verify-hc-down-kernel-microbench-vs-upstream/ (compiles the upstream kernel from the tree)

Engine builds and Python smokes that need the tree
- scripts/build-cpu.sh, scripts/build-static-cuda.sh, scripts/check-keyless-gpu.sh, scripts/test-static-cuda-profile.py (CMake of engine/strata)
- scripts/compare-real-tokenizer.py, scripts/smoke-mtp-pack.py (reads src/core/mtp.cpp and a bench manifest), scripts/prepare-keyless-routing.py and its test
- scripts/smoke-native-pack.py became scripts/native-pack-fixture.py: the synthetic GGUF fixtures the four other smokes import stay, the iq_pack.py oracle comparison goes

Gates and CI
- scripts/check-local.sh: no live Python oracle differentials, no literal_port note, no check-cu, no build-cpu, no retired test scripts
- .github/workflows/linux.yml: the keyless-cuda, static-cuda-package and hosted-cuda-package jobs (they built the engine from the tree) and their dispatch
  inputs, and the two oracle smoke steps; .github/workflows/port.yml: the Python oracle environment and the llama.cpp fetch of port-oracles
  (the sampler host shim still runs)
- limits.json and scripts/check_limits_test.py exclude third_party/strata/ instead of engine/strata/

Documentation and comments: README.md names third_party/strata and the pin; deploy/README.md marks the retired build and smoke commands; comments
in Rust, Python and Markdown that named engine/strata/... now name "Strata 41cf05a0, ..."; the gpu-bringup scratch-copy test no longer copies the
removed include directories. Stale engine/strata paths in sealed .cu, .ptx, seal-plan and MANIFEST files are left as they are (hashes may depend on the bytes).
2026-11-23 21:19:11 +01:00
Pavlo Ratushnyi 966c3fc233 cuda-driver: a Context captures the serving context it is created for, and the qsa sites read it from the Context (STRA-338)
Device::create_context_serving fixes the ServingContext (cell count and RoPE constants) of one Context in Retained.serving; create_context takes the process value once, at creation. Context::serving() / serving_geometry() replace the ~55 reads of cuda-model geometry() / serving_context() in qsa_prompt_index, qsa_prompt_kv, qsa_index_ffi (Arguments::for_launch takes the ServingContext), qsa_prompt_host_ffi (MappedAllocation::new takes the geometry), the resolver and qsa_fixed_kernels. cuda-model geometry() is deleted; the KV window file becomes context_serving.rs; ServingContext::resident_pages_for carries the window arithmetic. The engine call site OriginalQsaMappedPrefix::validate_retained(context) takes the Context (this signature change completes the call-site edit that commit 1 already carries, so commit 1 alone does not compile: merge the branch as a whole).

Behaviour notes for review: the ScoreTC reach check against max_blocks moves from launch time to argument-build time (same error value). OriginalQsaMappedSnapshot::logical_payload_eq no longer re-checks end against the serving cells (a diagnostic comparison; the owner validates snapshots on every use). The old process-wide guards only fired for a second load with different values in one process.
2026-11-23 21:16:57 +01:00
Pavlo Ratushnyi 1e5e5e14c6 cuda-driver: the resident KV window belongs to the Context its owners are made from, not to the process (STRA-338)
Context::configure_kv_resident fixes the window of one Context (Retained.kv_resident) and streamed QSA owners size their pool from c.kv_resident_pages(). The process cell KV_RESIDENT and configure_kv_resident / kv_resident_cells / kv_resident_pages leave cuda-model and the driver exports; the serve stack open phase configures the window on its Context (that call site already changed in the previous commit). Behaviour note: the old process-wide guard "resident KV window already configured differently" fired only for a second load with another window in the same process; a fresh Context after Unload now accepts another window.
2026-11-23 21:12:58 +01:00
Pavlo Ratushnyi b4db01728c Keep the Strata files Rust and the product read in third_party/strata (STRA-406)
Owner decision 2026-11-23: the vendored Strata tree engine/strata is removed for good. This first step moves what is still read
at build, test or ship time into one small directory, byte for byte:

- third_party/strata/LICENSE (MIT; `leleka engine license` embeds it, the packagers ship it)
- third_party/strata/ggml/LICENSE, project-maya/LICENSE, project-maya/NOTICE.md (licence texts the release packager ships)
- third_party/strata/serve/chat_template.jinja (one copy, embedded by control-plane server_api.rs and gateway-text prompt.rs)
- third_party/strata/serve/chat_golden.json (gateway-text prompt tests)
- third_party/strata/tests/data/native_experts/*.txt (control-plane native_pack tests)
- control-plane/tests/mcp_hub/mcp_fake_server.py next to its test harness
- third_party/strata/UPSTREAM.md replaces engine/upstream.md: pin 41cf05a0, URL, the 25 locally patched files, where the removed tree is in history

include_str! paths, deploy/build.rs (the `leleka version` Strata pin now reads third_party/strata/UPSTREAM.md), Dockerfile.static-cli,
.dockerignore, .gitattributes, the release packagers (package-5090.sh, package-release.py: the subtree facts of the removed tree are
dropped from PROVENANCE) and the evidence capture scripts follow the move. The tree itself is deleted in a later commit.
2026-11-23 21:11:53 +01:00
Pavlo Ratushnyi e3209650b5 engine: every Position takes its dimension from the model binding it belongs to, not from the process serving context (STRA-338)
BindingIdentity and ModelBinding carry position_dimension(), built from the serving cells the binding captured when the model was bound. contract::position_dimension() (a read of the driver's process serving context) is deleted; the ~50 call sites in production code use the binding they already hold, tests use a cfg(test) trained_dimension() (262144 cells). No behaviour change: production binds the model after the context is admitted, so both values are the same.
2026-11-23 21:10:55 +01:00
Pavlo Ratushnyi 15778f67ee Drop the Rc import the binding seal left unused in the test fixture (STRA-338) 2026-11-23 17:16:49 +01:00
Pavlo Ratushnyi e6a0a56007 Drop the two imports the settings catalogue and the binding seal left unused (STRA-338) 2026-11-23 17:14:00 +01:00
Pavlo Ratushnyi 38fc49e0dc engine: the speculative controller, its draft preparation and the prefill records take the serving cells from the binding
SpecContext (request ceiling and serving cells) replaces the bare max_context of SpecConfig and OriginalServeSettings; DraftPreparation and PrefillRecords keep the serving cells they were made for. The stack open passes the bound of its model binding. Three more process-global exceptions are deleted. STRA-338
2026-11-23 17:09:38 +01:00
Pavlo Ratushnyi c9f152992c engine: the model binding carries the serving context in cells; the validators take the bound from it
InputConstants and BindingIdentity capture the serving cells when the model is bound (the one read of the driver's context, contract::serving_cells). Seventeen validators (MTP frame, dense KV, snapshots, chunk charges, window limits, stack config, prompt plan) now receive the bound from the binding they already hold instead of reading the process-wide context; two redundant checks next to a context_length comparison are dropped. The laptop and prefix smokes fix their geometry before they bind the model. Seventeen process-global exceptions are deleted. STRA-338
2026-11-23 17:01:27 +01:00
Pavlo Ratushnyi 5fe30673c6 native-cpu-expert: the kernel A/B switches, the CPU probes and the dispatch are a Setting catalogue in settings.rs
Eight files kept their own OnceLock next to a settings::var parse (or a CPUID probe); they now ask settings.rs for a named Setting (same variables, same defaults, same parse, computed on first use). Eight process-global exceptions are deleted, one for the Setting cell is added. STRA-338
2026-11-23 16:46:06 +01:00
Pavlo Ratushnyi 44c65e3ce0 cuda-driver: operator settings and marker files live in the settings catalogue, not in ad-hoc OnceLock cells
Eleven call sites cached their own parse of an environment variable in a function-local OnceLock; they now ask settings.rs for a named cell (same variable, same default, same parse, read on first use). The three copies of the 250 ms marker-file poll become one MarkerFiles type. Eleven process-global exceptions are deleted; STRA-338
2026-11-23 16:43:07 +01:00
Pavlo Ratushnyi e7cbaf4a9c cuda-model: EnvSetting<T> and LazySetting<T> beside EnvSwitch (a typed operator setting read once)
EnvSwitch becomes the alias of EnvSetting<bool>; EnvSetting carries any value a rule parses from one variable, LazySetting a value one function parses from several variables or from the host. STRA-338
2026-11-23 16:43:06 +01:00
Pavlo Ratushnyi cb8ee9bf68 Merge claude/debt-final-pool: static dispatch over the expert pool replaces dyn OriginalServePool (STRA-338)
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-typecheck (push) Successful in 1m34s
Rust port / port-linux-tests (push) Failing after 3m29s
Rust port / port-fast (push) Successful in 5m37s
Linux / verify (push) Failing after 8m37s
Linux / keyless-cuda (push) Skipped
Linux / static-cuda-package (push) Skipped
Linux / hosted-cuda-package (push) Skipped
Linux / linux-static-cli (push) Skipped
Linux / linux-cli-container (push) Skipped
Linux / release-cli (push) Skipped
Product / product (push) Failing after 15m23s
Rust port / port-oracles (push) Successful in 11m25s
2026-11-23 16:24:46 +01:00
Pavlo Ratushnyi 3ec2bf192b Drop the glob re-export and the import the singleton removal left unused 2026-11-23 12:32:46 +01:00
Pavlo Ratushnyi 82c306b49e engine: one MemoryServices and one VerifyPolicy per engine, injected from the composition root; no process-global governor, inventory or stamp registry
spawn_backend_configured creates the MemoryServices (the first Load installs the governor into it, at the same moment
as before) and hands it to the owner thread (LoadEnv), the Original runner (Run, ReopenEnv, GenerateEnv), the stack
(StackConfig.memory) and the status proxy. The prefix cache, the conversation device, the expert tier, the inventory
classes and the page-cache release ask it instead of Governor::global. NativeBackendConfig.verification carries the
stamp policy of leleka-inference (--verify-stamps, --verify-rehash, --kar-attested-by-stamp) to the shard and archive
verification. The nine Governor::global exceptions of architecture.json and the three singleton exceptions of
leleka-memory and leleka-model-format are deleted; the smokes and probes make their own services.
2026-11-23 12:16:30 +01:00
Pavlo Ratushnyi 7088fd772f model-format: VerifyPolicy (stamp directory and archive attestation) replaces the process-wide stamp registry
verify_stamp::set_global/global and set_attested_archive/attested_archive are gone. The operator binary builds a
VerifyPolicy from its flags and the loaders receive it: VerifiedGgufFile::open_with and
VerifiedKarPleArtifact::verify_under take it; open, verify and verify_sparse keep their signatures and hash in full
(the default policy vouches for nothing), which is what a process that never set the globals did (STRA-338 S13).
2026-11-23 12:16:22 +01:00
Pavlo Ratushnyi 1be955bb37 leleka-memory: the governor owns its inventory and published report; MemoryServices replaces Governor::global and Inventory::global
The process-wide cells (GLOBAL governor, the global inventory, the published-report static) become state of one
Governor value. MemoryServices is the one handle a composition root creates per engine: it holds the governor once
installed (first install wins), starts its sampler once and answers the status surface. A test builds its own
governor, inventory and services (STRA-338 S13/S14 follow-up).
2026-11-23 12:16:17 +01:00
Pavlo Ratushnyi 1259c38dcf Serve host: static dispatch over the expert pool instead of dyn OriginalServePool
The Original serve host and its decode round no longer call the routed-expert pool through a trait object. OriginalServeHost and HostOwners take the pool as a type parameter, the serve step chooses the pool type once per request (the GPU share over the CPU pool, or the CPU pool alone) and runs one generic body over it, so every window group and every round is a direct call. The decode view is split so the pool can borrow the view's tier while the serve body uses the rest; the order of every call, the ownership of the pool until the teardown and the log lines are unchanged. The dyn-trait ratchet of leleka-engine-qwen35-cuda falls from 3 to 0 and the architecture baseline is regenerated.

- serve_over_pool.rs: ServeJob, ServeParts and the generic serve_over, with the host and env builders moved from decode_steps.rs
- decode_steps.rs: serve picks the pool type and hands over
- serve_request_step.rs, original_serve_host*: generic over the pool
2026-11-23 11:51:56 +01:00
Pavlo Ratushnyi 12cba8095c Merge codex/leleka-arxiv-paper into main: docs/ moved to MCP, 120-column formatting, CI fixes, hooks; conflicts resolved on main's side and re-formatted
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-typecheck (push) Successful in 1m27s
Rust port / port-linux-tests (push) Failing after 4m34s
Rust port / port-fast (push) Successful in 5m56s
Desktop foundation / core (ubuntu-latest) (push) Successful in 5m7s
Linux / verify (push) Failing after 8m49s
Linux / keyless-cuda (push) Skipped
Linux / static-cuda-package (push) Skipped
Linux / hosted-cuda-package (push) Skipped
Linux / linux-static-cli (push) Skipped
Linux / linux-cli-container (push) Skipped
Linux / release-cli (push) Skipped
Product / product (push) Failing after 16m46s
Rust port / port-oracles (push) Successful in 11m11s
2026-11-23 09:42:41 +01:00
Pavlo Ratushnyi 7c000ce93f CI workflows (oracle numpy pin per interpreter, copy-source test harness), ignore rules, root files without docs/ links; AGENTS.md is a local pointer to the MCP (STRA-382) 2026-11-23 09:34:33 +01:00
Pavlo Ratushnyi 8b34c9506e Format the control-plane, engine-host and library crates at 120 columns (rustfmt.toml) and drop stale docs/ references 2026-11-23 09:34:30 +01:00
Pavlo Ratushnyi af48f165a2 Merge branch 'claude/debt-hot-engine' into HEAD
# Conflicts:
#	architecture-baseline.json
2026-11-23 01:28:37 +01:00
Pavlo Ratushnyi decc5ffd18 Merge branch 'claude/debt-hot-low' into HEAD
# Conflicts:
#	architecture-baseline.json
#	architecture.json
#	docs/architecture/tech-debt.md
2026-11-23 01:27:17 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8ea06849e6 leleka-deploy recipe test: the pinned-profile test file moved with the engine's modules
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:42:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 2b75a037d2 hot path (not for main before the identity run): the prefill GEMM loan and the profile drain are generics, not trait objects (engine dyn 9 -> 3)
PrefillLoans<'a, 'ctx, G: GdnGemm> and the GDN and MoE prefill stage functions take the loaned GEMM by type; prefill_profile::span takes the
Context itself (it was the only implementer of Drain). The same calls in the same order; static instead of dynamic dispatch.
Not run on a GPU: needs the laptop two-binary identity gate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:28:15 +01:00
Pavlo Ratushnyi 7df1a4b473 Merge main (engine stage 10) into claude/debt-rename; rename script rerun, old-names marker for the rename table, baseline regenerated 2026-11-14 22:17:24 +01:00
Pavlo Ratushnyi 8eca35e64e Merge branch 'main' into claude/debt-engine 2026-11-14 22:10:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8f8289de7c tech-debt.md: stage 10 pass over the engine crates; rustfmt of the engine crates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:10:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4e0bb1dd98 engine crates: 50 modules renamed for what they hold (the *_methods, *_and_*, *_sdet, *_types and qwen4exp_* names), exceptions and script paths follow
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 21:59:19 +01:00
Pavlo Ratushnyi ed781797ed Merge main into claude/debt-rename; rename script rerun over what the engine and low-level branches added; baseline regenerated 2026-11-14 21:47:45 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5b84cd2cf8 engine crates: dyn closures and sinks become generics (engine-core 18 -> 2, engine 53 -> 9 outside the Box<dyn Backend> process boundary), load laps on the Clock port, named exceptions for what must stay, real headers for the last generated ones
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 21:44:58 +01:00
Pavlo Ratushnyi 4d7ad096dd Merge main into claude/debt-hot-low 2026-11-14 21:42:40 +01:00
Pavlo Ratushnyi a62fed956c Merge branch 'main' into claude/debt-low-docs 2026-11-14 21:40:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1207415a19 Low-level crates: 52 modules named after two things (*_and_*) are named after their responsibility; exception paths, include paths and docs updated
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 21:33:08 +01:00