Commit Graph
2766 Commits
Author SHA1 Message Date
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 51b10c9f1b Merge claude/debt-final-inject: MemoryServices and VerifyPolicy replace the process-global governor, inventory and stamp registry (STRA-338)
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-linux-tests (push) Failing after 3m12s
Rust port / port-typecheck (push) Successful in 1m19s
Desktop foundation / core (ubuntu-latest) (push) Successful in 4m2s
Rust port / port-fast (push) Successful in 5m2s
Linux / verify (push) Failing after 9m2s
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
Rust port / port-oracles (push) Successful in 13m50s
Product / product (push) Failing after 17m35s
2026-11-23 15:05:25 +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 d4aba09cab leleka-inference: tests of the verification flags (the policy belongs to its command line, not to the process) 2026-11-23 12:19:39 +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 48220f1b6c Point the limits-gate and README references at the spec node instead of docs/; paper text follow-up 2026-11-23 09:34:56 +01:00
Pavlo Ratushnyi 65bbabaa0b Project hooks: CRR-3 guard, adoption-pin and section resolvers, precompact permit, stop advisory 2026-11-23 09:34:34 +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 3f22c4ae29 Drop stale docs/ references from scripts, tools and deploy files; add rope-regeneration.json 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 deae0aa6ba Move the notes and evidence out of docs/ (MCP is the store; STRA-338 follow-up) 2026-11-23 09:34:21 +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 f246cb9951 Merge branch 'claude/debt-hot-control' into HEAD
# Conflicts:
#	architecture-baseline.json
#	docs/architecture/tech-debt.md
2026-11-23 01:27:52 +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 Ratushnyi 5819a26f75 Pin Leleka manuscript references 2026-11-20 01:20:30 +01:00
Pavlo Ratushnyi 6553337e46 Add Leleka arXiv manuscript and evidence map 2026-11-19 23:16:06 +01:00
Pavlo Ratushnyi 5db2a5da3d Merge claude/debt-rename: stage 9, strata-next -> leleka-api, strata-control -> leleka-control-plane, strata-desktop-core -> leleka-engine-host (STRA-338)
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-fast (push) Failing after 24s
Desktop foundation / core (ubuntu-latest) (push) Failing after 27s
Rust port / port-linux-tests (push) Failing after 26s
Rust port / port-oracles (push) Failing after 27s
Linux / verify (push) Failing after 37s
Linux / keyless-cuda (push) Skipped
Linux / static-cuda-package (push) Skipped
Product / product (push) Failing after 12m41s
Linux / hosted-cuda-package (push) Skipped
Linux / linux-static-cli (push) Skipped
Linux / linux-cli-container (push) Skipped
Linux / release-cli (push) Skipped
Rust port / port-typecheck (push) Successful in 47s
2026-11-14 22:42:40 +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 f331975685 Merge claude/debt-engine: engine crates stage 10 (explicit imports, no #[path], 50 renamed modules, 449 real headers, dyn generics, named exceptions; tech-debt.md c3)
Linux / keyless-cuda-gate (push) Skipped
Linux / verify (push) Failing after 49s
Linux / keyless-cuda (push) Skipped
Rust port / port-fast (push) Failing after 33s
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
Rust port / port-linux-tests (push) Failing after 31s
Rust port / port-oracles (push) Failing after 43s
Rust port / port-typecheck (push) Successful in 1m20s
Product / product (push) Failing after 14m51s
2026-11-14 22:14:48 +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 463c272adc Merge claude/debt-low-docs: tech-debt.md c3 table
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-fast (push) Failing after 30s
Linux / verify (push) Failing after 1m1s
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
Rust port / port-oracles (push) Failing after 47s
Rust port / port-linux-tests (push) Failing after 44s
Rust port / port-typecheck (push) Successful in 1m20s
Product / product (push) Failing after 29m27s
2026-11-14 21:43:31 +01:00
Pavlo Ratushnyi 36ed771335 tech-debt.md: first c3 table without placeholders 2026-11-14 21:43:31 +01:00
Pavlo Ratushnyi b84985ab6d tech-debt.md: stage 10 low-level crates, final numbers, what is left 2026-11-14 21:43:21 +01:00
Pavlo Ratushnyi 4d7ad096dd Merge main into claude/debt-hot-low 2026-11-14 21:42:40 +01:00
Pavlo Ratushnyi 4cf61eef91 Merge claude/debt-low-docs: 52 modules named by responsibility instead of two things joined by _and_
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-fast (push) Failing after 34s
Linux / verify (push) Failing after 1m0s
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
Rust port / port-oracles (push) Failing after 44s
Rust port / port-typecheck (push) Successful in 1m1s
Rust port / port-linux-tests (push) Failing after 47s
Product / product (push) Failing after 29m26s
2026-11-14 21:41:14 +01:00
Pavlo Ratushnyi a62fed956c Merge branch 'main' into claude/debt-low-docs 2026-11-14 21:40:20 +01:00
Pavlo Ratushnyi d19ef823d6 architecture.json: exception paths follow the renamed hot-path modules 2026-11-14 21:40:19 +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
Pavlo Ratushnyi 891736f061 Merge branch 'claude/debt-low-docs' into claude/debt-hot-low 2026-11-14 21:33:08 +01:00
Pavlo Ratushnyi ec39380e48 Merge claude/debt-engine: engine crates without use super::*, without #[allow(unused_imports)], without #[path] modules (except two shared/foreign files), 438 real doc headers; STRA-338 stage 10
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-linux-tests (push) Failing after 20s
Desktop foundation / core (ubuntu-latest) (push) Failing after 23s
Rust port / port-fast (push) Failing after 24s
Rust port / port-oracles (push) Failing after 27s
Linux / verify (push) Failing after 32s
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
Rust port / port-typecheck (push) Successful in 47s
Product / product (push) Failing after 21m6s
2026-11-14 21:31:57 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 fbca47bd75 engine-qwen35-cuda tests: bringup_prints_gated finds test-only children in parent/name.rs (modules no longer use #[path])
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 21:31:39 +01:00
Pavlo Ratushnyi 9254bb3129 Merge main into claude/debt-engine 2026-11-14 21:23:57 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f62f1762e2 engine crates: open_cache_steps split off open_phase_steps, rustfmt, engine-core without #[allow(unused_imports)], baselines lowered (glob 70 -> 0, allow 166 -> 0 in the engine, 18 -> 0 in engine-core)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 21:23:09 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d027790278 cuda-driver and CPU expert pool (hot path, awaiting the identity gate): head_dispatch compiled once (shared module, no glob, no #[path]), copy_ring_layer split in two with explicit imports, measurement-timer comments, exceptions for the dyn, Instant::now and process-global sites that stay
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 21:20:07 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ed3a497233 Plan row 9: the rename is done on claude/debt-rename, merged after the engine branch
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 21:11:00 +01:00