From 83bdd85bb48226a41bcec6034d87e1ea6528b570 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Thu, 12 Nov 2026 16:23:40 +0100 Subject: [PATCH] deploy.md section 4 and ledger H4: tier layout default (owner 2026-11-12) Co-Authored-By: Claude Sonnet 5.5 --- docs/deploy.md | 2 ++ docs/experiments/step-ledger.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/deploy.md b/docs/deploy.md index c9045574..84ba84df 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -109,6 +109,8 @@ The files live in [`deploy/rust-runtime/profiles/`](../deploy/rust-runtime/profi | `rtx5090-32g-file` (experimental, never auto-selected: `--profile rtx5090-32g-file`) | none (explicit name only) | as `rtx5090-32g` | 262,144 | read-only file (`kar_source: file`; no memfd, no holder; start reads about 1 MB of it when its verification stamp is current) | `resident` | 64 GiB / 62 GB (the 55 GB archive is page cache, not a charge) | as `rtx5090-32g` except an explicit `prefix_cache_mib` 6144; [`kar-file-source.md`](kar-file-source.md): what the file form reads, its integrity guarantees, the A/B (`scripts/e2e/decode/kar-file-ab.sh`, not run) | | `rtx5090-32g-gguf-ple` (experimental A/B arm, never auto-selected: `--profile rtx5090-32g-gguf-ple`) | none (explicit name only) | as `rtx5090-32g` | 262,144 | **no KAR archive** (`kar_source: none`): not required, checked, sealed or passed; the engine loads `qwen4exp-native-mtp-v1` and reads the PLE rows from GGUF shard 1 (page cache, `LELEKA_PLE_DIRECT=0`) | `resident` | 64 GiB / 62 GB (the 28.8 GB PLE table is page cache) | as `rtx5090-32g` except an explicit `prefix_cache_mib` 6144, no memfd lock/heal; `--kar-fd` is refused; [`experiments/kar-off-ab-5090.md`](experiments/kar-off-ab-5090.md): the paired speed and quality A/B against `rtx5090-32g` (no claim before that page says so) | +**Expert tier layout (owner decision 2026-11-12).** The three 5090 profiles (`rtx5090-32g`, `-file`, `-gguf-ple`) set `LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=no` (the VRAM tier is filled in global rank order, not with the same quota per layer) and `LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.65` (share of the misses that go over PCIe) as `engine_env` keys; both appear in the `engine environment` line of `leleka up` and in `leleka-serve meta: config` (`expert_per_layer=0`, `pcie_frac=0.65`). Paired 5-pair group A/B on release 02c784249a7e at the 256k configuration: decode +8.2 % (95% CI +6.5..+9.9), ms/round -7.2 %, minimum free VRAM 478 MiB, 0 OOM; it is a placement-class change (the CPU and the GPU round an expert differently), see `docs/experiments/step-ledger.md` H4. The laptop profile `rtx3080-16g` is unchanged. To get the previous layout set `LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=yes` and `LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.45` in a copy of the profile (`--profile FILE.json`). + Both profiles also carry a `memory` section (prefix cache `auto`, soft/hard floors 4096/2048 MiB, reserve, lock and heal of the sealed memfd): the engine sizes its caches from the memory left after the fixed footprint, sheds and refuses under pressure, and refuses to start with numbers when the footprint does not fit ([`memory-safety.md`](memory-safety.md)). The unit sets `LimitMEMLOCK=infinity`, which is what lets the lock keep the 55 GB memfd out of swap. Both profiles run `--backend-mode original` and the level-2 archive; the routed-expert bank must be admitted before the Original stack opens, which `leleka-inference` now does from `--expert-source resident|mapped` (see section 10, finding 1). They select documented switches only (budget, context, archive form, the diff --git a/docs/experiments/step-ledger.md b/docs/experiments/step-ledger.md index 25a11d24..c7a15236 100644 --- a/docs/experiments/step-ledger.md +++ b/docs/experiments/step-ledger.md @@ -193,7 +193,7 @@ The tier adapts every 4 rounds and survives across requests. | H1 | VRAM hit share in the replay | 90.8 % | 92.8 % | -2.0 points; 28 % more misses | LOG | device | open (2026-11-11 `docs/experiments/vram-hit-share-gap.md`: the -2.0 does not reproduce, the two surviving VANL replays give 91.8 unweighted / 93.4 token-weighted; gap on the 30-request replay is -0.7..-1.3 points token-weighted, -1.0..-1.6 unweighted) | | H2 | VRAM hit share weighted by decode time in real sessions | nestng-crm 91.38 %, ttt 92.68 % | 92.41 %, 93.38 % | -1.03 and -0.70 points; at most 0.57 ms per round per point, so up to 0.59 and 0.40 ms per round | LOG | device | open | | H3 | short requests (< 600 tokens) hit share | 86.9 % | 89.9 % | -3.0 points (up to 7 in single requests) | LOG | device | open | -| H4 | expert slots | 12,192 | 12,575 (+3 %) | -383 slots; variant H (reserves 130 / 500 MiB, about +190 slots): VRAM share +0.44 points, ms/round -0.44 (-2.19 %, CI -3.55..-0.83), tokens per round -1.69 %, decode +0.51 % (CI -0.19..+1.20), end-to-end +1.06 % (CI -0.38..+2.50) | A/B `ab-l3v2` | device | fixing (CORRECTION 2026-11-11 `docs/experiments/vram-hit-share-gap.md`: the earlier reading that variant H 'gained nothing' was an env leak; the clean paired A/B `ab-l3v2` (10 pairs, H 12,384 slots against A 12,192) is a real gain: hit share +0.44 points token-weighted (CI +0.24..+0.64), ms/round -2.10 % (CI -3.61..-0.59), decode tok/s +0.67 % (CI +0.02..+1.31); about 0.23 points per 100 slots, 383 missing slots are worth about 0.9 of the 1.3-point gap. Not enabled: the free VRAM at decode drops to about 355 MiB (vanilla 315), and the project rule is that real work is 256k: before any profile change a run on the 245k corpus (docs/quality-gate.md q245, `leleka/decode/`, sha in the manifest) with the memory profile, the minimum free VRAM along the run, no OOM or refusal and the memory governor without incident is required, and the memory owner (hex-finish, 2026-11-11) names the threshold: no stricter rule exists, vanilla's own minimum free VRAM of 315 MiB (`vram-footprint-5090.md`: 389 at request start, 315 after the windows are captured; `decode_headroom_mib()` = 700+130-514 = 316) is the proof of safety, so 355 MiB is inside it. Pass criteria: (1) minimum free VRAM by 100 ms sampling (`mon.csv`) over the WHOLE 245k corpus session >= 315 MiB, (2) 0 request failures / CudaExecution / OOM, (3) 3 repeats (the adaptive tier is not bitwise reproducible), (4) the cost confirmed: 12,384 slots. The VRAM floor is set by decode_reserve + usable_room (`original_cache_startup.rs`), not by the memory governor (host RAM). No current 256k stub with a memory profile exists in jobs/: nearest are `987-decode-vram` (dc-g2, `run_corpus` of dec-common.sh, prints the minimum free VRAM, old binary) and `q245-*`; the plan is `run_corpus` with the current binary and the two variables. Group A/B `decode-slots-and-adapt-every-group-ab-pg-vs-ps-pw` (PS = alias + reserve 130) queued; the per-layer-quota arm (EXPERT_PER_LAYER=no) is measured by hex-finish (`host-tier-global-rank-fill-vs-uniform-layer-quota-profile`)) UPDATE 2026-11-12: 256k session check `memory-256k-codex-session-alias-reserve130-vram-floor` (release 02c784249, alias + reserve 130, 12,432 slots, Codex fixbug-ledger x3 at 178-228k input tokens, 100 ms sampler): 0 OOM/CudaExecution, 3 accepted, but the minimum free VRAM is 212 MiB (about 400 at the start, 312 -> 212 at the longest contexts; 478 of 12,792 samples below 315): NOT PASSED. Reserve 130 is too small; about +100 MiB of reserve (about -55 slots) would be needed for the 315 floor. The group A/B (PG against PS/PW) is rerun (`decode-slots-and-adapt-every-group-ab-pg-vs-ps-pw-rerun`, the first run was refused by the faulty guard). The hex-finish candidate (quota=no + PCIE_FRAC 0.65, +62 slots, reserve unchanged) is checked separately by `memory-256k-codex-session-quota-no-pcie065-vram-floor`. 2026-11-11 `host-tier-global-rank-fill-vs-uniform-layer-quota-profile` (pkg-s19, 30 requests, profiled, FP GLP GLP FP, key proven different: log `expert cache 12192 slots (per layer)` against `12254 slots (global)`): global rank fill instead of the 254-slot uniform quota (`LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=no`, set through a profile override because the built-in profile overrides the shell env): VRAM share 89.76/90.38 -> 91.21/91.12 (+1.1 points), non-resident experts per layer-window 2.96/2.67 -> 2.40/2.47 (-13.5 %), layer 0 non-resident 7.0 -> 2.35 (layers 0-15 3.9 -> 3.1), ms/round (`round.run_window`) 16.33/15.55 -> 15.03/15.19 (mean 15.94 -> 15.11, -5.2 %), decode 186.0/182.8 -> 186.4/187.8 tok/s (+1.5 %, 2 reps, A/A floor +-1 %). Slots differ by 62 (12,254 against 12,192), about 0.1 point of the gain. Placement-class: needs the quality gate against the control placement and the VRAM/OOM floor before it may become a default. Cross-layer potential of the swap rule (`tier.cross.*`, uncapped): global minus within-layer swap gain is 0.02-0.03 % of the usage mass in both layouts (within 517 / global 524 against usage mass 27,443; miss mass 6.1 % uniform, 5.3 % global), so moving slots between layers at adaptation time adds nothing; the gain of the global fill is the initial layout, which the capped swaps (96 per 4 rounds) repair slowly (H3/H7). The layer-weight policy is therefore not needed. 2026-11-12 PLACEMENT GATE (`host-tier-quota-no-and-pcie-share-065-placement-gate`, teacher-forced night5-long-256k, 5 requests to 243k, 240 forced tokens, adaptive tier, rt-pf21 = 02c784249a7e, A/A floor 0 in all three processes): P2 = EXPERT_PER_LAYER=no + PCIE_FRAC 0.65 against the shipped placement: 1,720 common rows, argmax flips 33 (1.92 %), d_top1 p99 0.210, max 0.653; P3 = share 0.65 only: 1,741 rows, flips 39 (2.24 %), p99 0.198, max 0.763. Against the Original envelope (p99 <= 0.22, max <= 0.43, flips <= 2.8 %): p99 and flip rate inside, the single-row max outside for both (the quota change adds nothing worse than the share change alone); the draft trace differs from the first row on by construction (placement-class). Verdict: NOT a clean PASS (max); the control `host-pcie-share-control-placement-gate-035-and-055` (shares 0.35 and 0.55 against 0.45, same reference) decides whether the max is the size of any ordinary placement change. VRAM/OOM floor: the speed session's 256k Codex run of its own variant (alias + DECODE_RESERVE 130, 12,432 slots) measured a minimum free VRAM of 212 MiB (rule >= 315) with 0 OOM: FAIL for that variant; the candidate (quota=no + share, default reserve) has not been run at 256k. Default stays unchanged; the candidate is an option only. 2026-11-12 CONTROL (`host-pcie-share-control-placement-gate-035-and-055`, same binary, same reference idP1 = shipped 0.45, A/A floor 0 in both processes): an ordinary placement change of the same kind, the PCIe share alone: 0.35 (vanilla's share) 1,746 common rows, flips 39 (2.23 %), d_top1 p99 0.224, max 0.746; 0.55: 1,760 rows, flips 45 (2.56 %), p99 0.215, max 0.665. Candidate rows for reading side by side: quota=no + 0.65: flips 1.92 %, p99 0.210, max 0.653; share 0.65 only: flips 2.24 %, p99 0.198, max 0.763. The single-row max of 0.65..0.76 is therefore the size of ANY placement change (0.665 and 0.746 for a share step of 0.10 and 0.10), not a property of the candidate; the p99 and flip rate of the candidate are at or below the controls (p99 0.210 vs 0.215/0.224; flips 1.92 % vs 2.23/2.56 %). The Original envelope max <= 0.43 was measured on ~100-token prompts and is not applicable to the placement class at 243k context (every placement step overshoots it); the applicable rule is the control-relative one of `q_tail_gate.py --control` (p99, max and flip rate each <= 1.25 x the control's): the candidate passes it against the worst control (p99 0.210 <= 0.28, max 0.653 <= 0.93, flips 1.92 % <= 3.2 %). Quality gate of the candidate: PASS under the control-relative rule (n = 1 replay of 5 requests, 240 tokens, one workload; the second evidence is the e2e acceptance of the candidate run, not yet made). Still open for the candidate: the 256k VRAM/OOM floor (speed session's stub), then e2e (CRM x3 + ttt x3). Default unchanged. 2026-11-12 STAGE 7 e2e, DEFAULT profile (release 02c784249a7e, `e2e-codex-ttt-and-crm-default-profile`, nestng-crm x3 + ttt x3, saved VAN/VANL cells): CRM accepted 0/3 (54/56, 54/56, 55/56) against VAN and VANL 3/3 56/56; ttt 3/3 14/14 in every arm. The failing checks are two STATIC source-pattern checks of `accept.py` section 5 ("frontend src: a board with one column per stage" needs one file with all five stage names AND a loop - LEL keeps the names in models.ts and loops over `stages` in the html; "calls /api/companies, contacts, deals" needs the literal `/api/` or `/api/${` - LEL writes `${this.base}/companies`); all behavioural checks (REST, e2e suites, 54 of 56) pass, rounds failed 0, no tool-call error: coding style of the greedy session, not tool-call integrity. History of the same two checks over all LEL CRM cells since 2026-11-09: LEL-A 5/6 and LEL-L 6/6 (no tracing flags) vs profile/trace variants LEL-LP 0/3, LEL-AP 1/2, LEL-LS 1/8, LEL-AS 0/6 (LELEKA_SERVE_PROFILE + BRINGUP_TRACE + PROFILE_SYNC: timing changes the greedy trajectory), VANL 4/5 (one 55/56 on the same board check, 2026-11-10), VAN 3/3; the default profile now 0/3, so the style difference is systematic enough to matter but n is small and package and date are confounded. Decode (CRM): LEL 163.1 +- 2.2 tok/s against VANL 202.1 and VAN 221.4 (-39.0 +- 4.4 and -58.4 +- 7.0 paired); ttt: LEL 157 against VANL 202 and VAN 226. Wall s (CRM): LEL 465.8 +- 21.4, VAN 434.0 +- 98.9, VANL 461.8 +- 106.2 (paired LEL-VANL +4.0 +- 123.6, LEL-VAN +31.8 +- 117.0: inside the session noise; LEL runs 45 rounds against 62-71 but 9.3 s/request against 5.2-6.3); ttt wall: LEL 172 s, VAN 99 s, VANL 137 s. Plan target "accept 56/56" NOT met. Bisect step 1 queued (`e2e-codex-crm-stage-set-off-lel-r1..r3`, CRM x3, profile with LOAN_TIERS, DRAFT_CHECK_MERGE, PREFIX_PARK_FAST, DECODE_GRAPH_REUSE, STREAM_MIN dropped); if it passes >= 2/3 the five keys are bisected one by one, if it fails the regression is not the stage set (candidate: the Leleka-vs-Strata trajectory itself). BLOCKER for the plan target until the bisect is read. 2026-11-12 VRAM FLOOR of the candidate (speed session, `memory-256k-codex-session-quota-no-pcie065-vram-floor`, quota=no + PCIE_FRAC 0.65 as a shell variable, default reserve): minimum free VRAM 338 MiB over 10,356 samples (rule >= 315), below 315: 0, OOM / CudaExecution / refused: 0, 3 of 3 Codex sessions accepted, 12,254 slots (global fill, 23.26 GiB): PASS. Placement gate (control-relative rule) and floor both passed: e2e of the candidate (CRM x3 + ttt x3, `e2e-codex-ttt-and-crm-quota-no-pcie065-experimental-*`, profile keys set in the arm profile so they show in the engine environment line) queued behind the CRM bisect. Default unchanged. 2026-11-12 CORRECTION (supersedes the stage 7 and bisect paragraphs above as to the RELEASE): `cmp_codex_job.sh` unpacks the tarball into the shared `codex-compare/ours-pkg` only when it is missing and reuses it afterwards, so the runs `e2e-codex-ttt-and-crm-default-profile` and `e2e-codex-crm-stage-set-off` (and the first candidate e2e, stopped at r3) ran the STALE release 17e372944279 (2026-11-03), not 02c784249a7e: `version.txt` of the cells says 17e372944279, and the engine environment lines of the default run and of the "stage-set-off" run are byte-identical (the profile of that release has only four engine_env keys, so dropping the five stage-set keys changed nothing). The bisect verdict ("the stage set is not to blame", 55/56 x3) and the stage 7 numbers (CRM 0/3, decode 163 / 159 tok/s) therefore describe the OLD release and are VOID for the current default; the static-check statistics below stay valid as history. Fix: `cmp_codex_job_profile.sh` now requires `CMP_OURS_TAG` and uses its own `ours-pkg-`, `ours-state-`, `ours-prefix-` and refuses a package whose `version` commit differs from the tag. Re-queued on 02c784249a7e: default CRM+ttt x3, stage-set-off CRM x3, candidate CRM+ttt x3 (`scripts/e2e/codex/prefill/e2e-release/`). STATIC CHECKS over all 49 CRM cells with an acceptance log (board = one file with all five stages and a loop; api = literal /api/): LEL 41 cells, board failed 23 (56 %), api failed 6 (15 %), clean 16; of them without tracing flags 22 cells: board 7 (32 %), api 3, clean 14; with SERVE_PROFILE/BRINGUP_TRACE/PROFILE_SYNC 19 cells: board 16 (84 %), api 3, clean 2; VAN 3 cells: 0 and 0; VANL 5 cells: board 1, api 0. Fisher (two-sided) LEL board 23/41 against vanilla 1/8: p = 0.049; without tracing 7/22 against 1/8: p = 0.39; api 6/41 against 0/8: p = 0.57. Reading: with the tracing variants excluded there is no significant difference to vanilla (the checks are brittle style patterns); the tracing flags (timing) change the greedy trajectory toward the failing style; a systematic Leleka-Strata difference is not shown and not excluded (vanilla n = 8). The first release-pinned series ended at once (the check compared `leleka version`, which prints "commit unknown" for this build; fixed: `prov_commit.py` reads git_commit from the package PROVENANCE.json, the old shared package is rejected by it); fake .done markers and empty run dirs moved to garbage/g-1112-e2ecpm. UPDATE 2026-11-12 (retry with reserve 240, `memory-256k-codex-session-alias-reserve240-vram-floor`, release 02c784249a7e, alias + `DECODE_RESERVE_MIB=240`, Codex fixbug-ledger x3 at 178-224 k input tokens, 100 ms sampler, 15,268 samples): NOT PASSED by 9 MiB. Minimum free VRAM 306 MiB (target 315); 90 samples below 315; 0 OOM/CudaExecution/refused; 3 of 3 accepted (42/30/37 requests); 12,384 slots (per layer) against 12,192. Reserve 130 -> 212 MiB and 12,432 slots, reserve 240 -> 306 MiB and 12,384 slots: 110 MiB of reserve bought 94 MiB of floor and cost 48 slots, so the floor follows the reserve almost one to one. Reserve about 250 MiB would reach 315 (about -4 slots, about 12,380); not run, and PS stays a placement-class change with the quality gate pending (see the slots/adapt verdict). UPDATE 2026-11-12 (floor of the hex-finish candidate, release package of the q245 job, EXPERT_PER_LAYER=no through a per-arm profile, `LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.65` through the shell env, reserve unchanged): PASSED. Minimum free VRAM 338 MiB over 10,356 samples (100 ms), 0 samples below 315 MiB, 0 OOM/CudaExecution/refused in the engine log, 3 of 3 Codex fixbug-ledger sessions accepted (34/18/39 requests, first input 177,726, last 201-227 k tokens), 12,254 slots (global fill, 23.26 GiB) against 12,192. The 338 MiB floor is 23 MiB above vanilla's 315. Caveat: the engine-environment line of the effective profile does not list PCIE_FRAC (it is not a profile key; the shell variable was exported), so the PCIe share actually used is not proven by this run; it does not allocate VRAM, so the floor holds for any share, but the e2e of the candidate must record the share the engine reports. Evidence: `/data/leleka-e2e/quality-245k/runs/memory-256k-codex-session-quota-no-pcie065-vram-floor/` (`vram-floor.txt`, `vram-free.csv`). | 2026-11-12 E2E ON THE PINNED RELEASE 02c784249a7e (PROVENANCE git_commit, tarball sha256 254ea79f...; engine environment and arm profile verified in the first cell of each series; the earlier void series are not used): (1) ACCEPTANCE VERSION MISMATCH, found while closing the CRM 0/3: the VAN/VANL cells (and the 2026-11-05 LEL cells) were re-accepted on 2026-11-05 with `codex-compare/reaccept-1/tasks/nestng-crm/accept.py` (sha256 b2e6c690...; board check = all five stage names anywhere in the frontend sources plus a loop in a file that mentions `stage`); the tool `tasks/nestng-crm/accept.py` (sha256 db1b7095..., used by every new LEL cell) still has the strict original (all five stages AND a loop inside ONE file), which the 2026-11-05 `acceptance.log.prev` of VAN r1 fails with the same message. The saved VAN workspaces fail the strict check too. So the board failure of the LEL cells is a measurement artefact, not a Leleka effect. Re-computing the relaxed board check on the 27 saved workspaces of the three new series (LEL, VAN, VANL x 3 x 3): 27/27 pass. LEL on the baseline acceptance: default 2 of 3 fully accepted (r1 54/56: besides the board check one of the 21 backend e2e tests of the agent's own app failed, rc=1 passed=20 failed=1; r2 and r3 55/56 + relaxed board = 56/56), stage-set-off 3/3, candidate 3/3 (each 55/56 + relaxed board). One backend-test failure in 9 LEL cells; the VAN/VANL cells have none; not enough to call it a trend. The earlier statistics of the board failures per variant (56 %, 32 % without tracing flags) used the strict check on the LEL side only and are void as a quality signal; the cells since 2026-11-10 are all strict-failed because they ran after the baseline was frozen on the relaxed check. Rule for the next e2e reports: run `cmp_reaccept.py` with the relaxed accept.py on every new LEL cell, or report both versions. (2) STAGE SET (LOAN_TIERS, DRAFT_CHECK_MERGE, PREFIX_PARK_FAST, DECODE_GRAPH_REUSE, STREAM_MIN) is NOT responsible for the CRM result: default and stage-set-off give the same single static finding in all six cells. Speed: CRM decode default 169.4 (167.8/170.3/170.0) vs stage-set-off 163.0 +-2.1 tok/s (about +4 % for the set); wall 527 vs 525.1 +-43.7 s; ttt (default series) decode 171.4/168.4/177.6 tok/s, wall 194.5/227.6/92.5 s. (3) CANDIDATE quota=no + PCIE_FRAC 0.65 (experimental, profile keys, engine.log meta line: expert_per_layer=0 pcie_frac=0.65, 12,254 global slots, prompt loan 2,471): CRM decode 179.4 +-0.4 tok/s (default 169.4, +5.9 %; VANL 202.1, VAN 221.4), wall 504.9 +-19.1 s (default 527, VANL 461.8 +-106.2, VAN 434.0 +-98.9; spread of VANL/VAN is larger than every Leleka difference), 55/56 + relaxed board = 56/56 in 3/3; ttt 3/3 accepted, decode 180.0 +-2.3 tok/s (default about 172, VANL 202.0, VAN 225.7), wall 156.2 +-31.3 s (default about 172, VANL 136.7 +-10.0, VAN 99.3 +-5.8). Paired LEL - VANL: decode -22.7 +-4.1 tok/s, wall +43.1 +-118.1 s (noise). Together with the placement gate and the 256k VRAM floor PASS (338 MiB free, 0 OOM) the candidate stays an experimental profile; the default is unchanged until the owner decides after the 5-pair measurement. (4) ttt WALL vs VAN (156 s against 99 s at decode 180 against 226 tok/s): the decode rate alone predicts +26 % wall (226/180), the observed gap is +57 %; the rest follows the number of rounds and calls (LEL 21 rounds / 22 calls against VAN 12.7 / 13.7, +65 %), and the trajectories differ (greedy decode differs), so on this task the wall gap is a mix of decode rate and trajectory length; s/request is 7.3 (LEL, VANL) against 8.0 (VAN), i.e. no per-request engine penalty beyond decode. Open: a paired teacher-forced replay of one trajectory would separate them; not started. 2026-11-12 group A/B (release 02c784249a7e, "256k" engine configuration, replay VANL/nestng-crm-r2 30 requests, first 3 dropped, 5 pairs, A/A twin AT x3): candidate QN (EXPERT_PER_LAYER=no + PCIE_FRAC=0.65) against default A: decode 203.46 vs 188.04 tok/s = +8.20 % (95% CI +6.52..+9.88 %), end-to-end +7.47 % (CI +4.95..+9.98 %), ms/round 17.66 vs 19.02 = -7.15 % (CI -10.77..-3.53 %), tokens/round 3.59 vs 3.58 (+0.47 %, CI -2.37..+3.31 %, i.e. acceptance unchanged), VRAM share of routed 90.85 vs 90.34 %. A/A noise floor (A vs AT, 3 pairs): decode +0.22 % (CI -1.99..+2.44 %), ms/round -3.02 % (CI -17.68..+11.64 %); the candidate effect lies outside it. Wall of the 30-request replay (sum wall_s): A 331.4 s, QN 307.9 s, AT 327.8 s; paired QN-A -23.5 +- 58 s (n=5, not significant, wall is noisy). VRAM floor (minimum free during the run, 1 s sampling): A 502 MiB, QN 478 MiB, AT 502 MiB, all above the 315 MiB gate, 0 OOM. Arm guard: engine log "meta: config" checked by hand for all 13 blocks (A, AT: expert_per_layer=1 pcie_frac=0.45; QN: expert_per_layer=0 pcie_frac=0.65); the INVALID markers of this run are false (old guard read the cache line). Greedy identity is not applicable on replay: even A vs AT is byte-identical in only 5 of 90 requests, so out_sha differs between any two runs (QN vs A 9 of 150). Verdict: the candidate is faster by decode and per-round time on the paired measurement, outside the A/A floor; it stays experimental, the default is unchanged until the owner decides; the CRM acceptance under both versions is reported in the e2e rows above. +| H4 | expert slots | 12,192 | 12,575 (+3 %) | -383 slots; variant H (reserves 130 / 500 MiB, about +190 slots): VRAM share +0.44 points, ms/round -0.44 (-2.19 %, CI -3.55..-0.83), tokens per round -1.69 %, decode +0.51 % (CI -0.19..+1.20), end-to-end +1.06 % (CI -0.38..+2.50) | A/B `ab-l3v2` | device | fixing (CORRECTION 2026-11-11 `docs/experiments/vram-hit-share-gap.md`: the earlier reading that variant H 'gained nothing' was an env leak; the clean paired A/B `ab-l3v2` (10 pairs, H 12,384 slots against A 12,192) is a real gain: hit share +0.44 points token-weighted (CI +0.24..+0.64), ms/round -2.10 % (CI -3.61..-0.59), decode tok/s +0.67 % (CI +0.02..+1.31); about 0.23 points per 100 slots, 383 missing slots are worth about 0.9 of the 1.3-point gap. Not enabled: the free VRAM at decode drops to about 355 MiB (vanilla 315), and the project rule is that real work is 256k: before any profile change a run on the 245k corpus (docs/quality-gate.md q245, `leleka/decode/`, sha in the manifest) with the memory profile, the minimum free VRAM along the run, no OOM or refusal and the memory governor without incident is required, and the memory owner (hex-finish, 2026-11-11) names the threshold: no stricter rule exists, vanilla's own minimum free VRAM of 315 MiB (`vram-footprint-5090.md`: 389 at request start, 315 after the windows are captured; `decode_headroom_mib()` = 700+130-514 = 316) is the proof of safety, so 355 MiB is inside it. Pass criteria: (1) minimum free VRAM by 100 ms sampling (`mon.csv`) over the WHOLE 245k corpus session >= 315 MiB, (2) 0 request failures / CudaExecution / OOM, (3) 3 repeats (the adaptive tier is not bitwise reproducible), (4) the cost confirmed: 12,384 slots. The VRAM floor is set by decode_reserve + usable_room (`original_cache_startup.rs`), not by the memory governor (host RAM). No current 256k stub with a memory profile exists in jobs/: nearest are `987-decode-vram` (dc-g2, `run_corpus` of dec-common.sh, prints the minimum free VRAM, old binary) and `q245-*`; the plan is `run_corpus` with the current binary and the two variables. Group A/B `decode-slots-and-adapt-every-group-ab-pg-vs-ps-pw` (PS = alias + reserve 130) queued; the per-layer-quota arm (EXPERT_PER_LAYER=no) is measured by hex-finish (`host-tier-global-rank-fill-vs-uniform-layer-quota-profile`)) UPDATE 2026-11-12: 256k session check `memory-256k-codex-session-alias-reserve130-vram-floor` (release 02c784249, alias + reserve 130, 12,432 slots, Codex fixbug-ledger x3 at 178-228k input tokens, 100 ms sampler): 0 OOM/CudaExecution, 3 accepted, but the minimum free VRAM is 212 MiB (about 400 at the start, 312 -> 212 at the longest contexts; 478 of 12,792 samples below 315): NOT PASSED. Reserve 130 is too small; about +100 MiB of reserve (about -55 slots) would be needed for the 315 floor. The group A/B (PG against PS/PW) is rerun (`decode-slots-and-adapt-every-group-ab-pg-vs-ps-pw-rerun`, the first run was refused by the faulty guard). The hex-finish candidate (quota=no + PCIE_FRAC 0.65, +62 slots, reserve unchanged) is checked separately by `memory-256k-codex-session-quota-no-pcie065-vram-floor`. 2026-11-11 `host-tier-global-rank-fill-vs-uniform-layer-quota-profile` (pkg-s19, 30 requests, profiled, FP GLP GLP FP, key proven different: log `expert cache 12192 slots (per layer)` against `12254 slots (global)`): global rank fill instead of the 254-slot uniform quota (`LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=no`, set through a profile override because the built-in profile overrides the shell env): VRAM share 89.76/90.38 -> 91.21/91.12 (+1.1 points), non-resident experts per layer-window 2.96/2.67 -> 2.40/2.47 (-13.5 %), layer 0 non-resident 7.0 -> 2.35 (layers 0-15 3.9 -> 3.1), ms/round (`round.run_window`) 16.33/15.55 -> 15.03/15.19 (mean 15.94 -> 15.11, -5.2 %), decode 186.0/182.8 -> 186.4/187.8 tok/s (+1.5 %, 2 reps, A/A floor +-1 %). Slots differ by 62 (12,254 against 12,192), about 0.1 point of the gain. Placement-class: needs the quality gate against the control placement and the VRAM/OOM floor before it may become a default. Cross-layer potential of the swap rule (`tier.cross.*`, uncapped): global minus within-layer swap gain is 0.02-0.03 % of the usage mass in both layouts (within 517 / global 524 against usage mass 27,443; miss mass 6.1 % uniform, 5.3 % global), so moving slots between layers at adaptation time adds nothing; the gain of the global fill is the initial layout, which the capped swaps (96 per 4 rounds) repair slowly (H3/H7). The layer-weight policy is therefore not needed. 2026-11-12 PLACEMENT GATE (`host-tier-quota-no-and-pcie-share-065-placement-gate`, teacher-forced night5-long-256k, 5 requests to 243k, 240 forced tokens, adaptive tier, rt-pf21 = 02c784249a7e, A/A floor 0 in all three processes): P2 = EXPERT_PER_LAYER=no + PCIE_FRAC 0.65 against the shipped placement: 1,720 common rows, argmax flips 33 (1.92 %), d_top1 p99 0.210, max 0.653; P3 = share 0.65 only: 1,741 rows, flips 39 (2.24 %), p99 0.198, max 0.763. Against the Original envelope (p99 <= 0.22, max <= 0.43, flips <= 2.8 %): p99 and flip rate inside, the single-row max outside for both (the quota change adds nothing worse than the share change alone); the draft trace differs from the first row on by construction (placement-class). Verdict: NOT a clean PASS (max); the control `host-pcie-share-control-placement-gate-035-and-055` (shares 0.35 and 0.55 against 0.45, same reference) decides whether the max is the size of any ordinary placement change. VRAM/OOM floor: the speed session's 256k Codex run of its own variant (alias + DECODE_RESERVE 130, 12,432 slots) measured a minimum free VRAM of 212 MiB (rule >= 315) with 0 OOM: FAIL for that variant; the candidate (quota=no + share, default reserve) has not been run at 256k. Default stays unchanged; the candidate is an option only. 2026-11-12 CONTROL (`host-pcie-share-control-placement-gate-035-and-055`, same binary, same reference idP1 = shipped 0.45, A/A floor 0 in both processes): an ordinary placement change of the same kind, the PCIe share alone: 0.35 (vanilla's share) 1,746 common rows, flips 39 (2.23 %), d_top1 p99 0.224, max 0.746; 0.55: 1,760 rows, flips 45 (2.56 %), p99 0.215, max 0.665. Candidate rows for reading side by side: quota=no + 0.65: flips 1.92 %, p99 0.210, max 0.653; share 0.65 only: flips 2.24 %, p99 0.198, max 0.763. The single-row max of 0.65..0.76 is therefore the size of ANY placement change (0.665 and 0.746 for a share step of 0.10 and 0.10), not a property of the candidate; the p99 and flip rate of the candidate are at or below the controls (p99 0.210 vs 0.215/0.224; flips 1.92 % vs 2.23/2.56 %). The Original envelope max <= 0.43 was measured on ~100-token prompts and is not applicable to the placement class at 243k context (every placement step overshoots it); the applicable rule is the control-relative one of `q_tail_gate.py --control` (p99, max and flip rate each <= 1.25 x the control's): the candidate passes it against the worst control (p99 0.210 <= 0.28, max 0.653 <= 0.93, flips 1.92 % <= 3.2 %). Quality gate of the candidate: PASS under the control-relative rule (n = 1 replay of 5 requests, 240 tokens, one workload; the second evidence is the e2e acceptance of the candidate run, not yet made). Still open for the candidate: the 256k VRAM/OOM floor (speed session's stub), then e2e (CRM x3 + ttt x3). Default unchanged. 2026-11-12 STAGE 7 e2e, DEFAULT profile (release 02c784249a7e, `e2e-codex-ttt-and-crm-default-profile`, nestng-crm x3 + ttt x3, saved VAN/VANL cells): CRM accepted 0/3 (54/56, 54/56, 55/56) against VAN and VANL 3/3 56/56; ttt 3/3 14/14 in every arm. The failing checks are two STATIC source-pattern checks of `accept.py` section 5 ("frontend src: a board with one column per stage" needs one file with all five stage names AND a loop - LEL keeps the names in models.ts and loops over `stages` in the html; "calls /api/companies, contacts, deals" needs the literal `/api/` or `/api/${` - LEL writes `${this.base}/companies`); all behavioural checks (REST, e2e suites, 54 of 56) pass, rounds failed 0, no tool-call error: coding style of the greedy session, not tool-call integrity. History of the same two checks over all LEL CRM cells since 2026-11-09: LEL-A 5/6 and LEL-L 6/6 (no tracing flags) vs profile/trace variants LEL-LP 0/3, LEL-AP 1/2, LEL-LS 1/8, LEL-AS 0/6 (LELEKA_SERVE_PROFILE + BRINGUP_TRACE + PROFILE_SYNC: timing changes the greedy trajectory), VANL 4/5 (one 55/56 on the same board check, 2026-11-10), VAN 3/3; the default profile now 0/3, so the style difference is systematic enough to matter but n is small and package and date are confounded. Decode (CRM): LEL 163.1 +- 2.2 tok/s against VANL 202.1 and VAN 221.4 (-39.0 +- 4.4 and -58.4 +- 7.0 paired); ttt: LEL 157 against VANL 202 and VAN 226. Wall s (CRM): LEL 465.8 +- 21.4, VAN 434.0 +- 98.9, VANL 461.8 +- 106.2 (paired LEL-VANL +4.0 +- 123.6, LEL-VAN +31.8 +- 117.0: inside the session noise; LEL runs 45 rounds against 62-71 but 9.3 s/request against 5.2-6.3); ttt wall: LEL 172 s, VAN 99 s, VANL 137 s. Plan target "accept 56/56" NOT met. Bisect step 1 queued (`e2e-codex-crm-stage-set-off-lel-r1..r3`, CRM x3, profile with LOAN_TIERS, DRAFT_CHECK_MERGE, PREFIX_PARK_FAST, DECODE_GRAPH_REUSE, STREAM_MIN dropped); if it passes >= 2/3 the five keys are bisected one by one, if it fails the regression is not the stage set (candidate: the Leleka-vs-Strata trajectory itself). BLOCKER for the plan target until the bisect is read. 2026-11-12 VRAM FLOOR of the candidate (speed session, `memory-256k-codex-session-quota-no-pcie065-vram-floor`, quota=no + PCIE_FRAC 0.65 as a shell variable, default reserve): minimum free VRAM 338 MiB over 10,356 samples (rule >= 315), below 315: 0, OOM / CudaExecution / refused: 0, 3 of 3 Codex sessions accepted, 12,254 slots (global fill, 23.26 GiB): PASS. Placement gate (control-relative rule) and floor both passed: e2e of the candidate (CRM x3 + ttt x3, `e2e-codex-ttt-and-crm-quota-no-pcie065-experimental-*`, profile keys set in the arm profile so they show in the engine environment line) queued behind the CRM bisect. Default unchanged. 2026-11-12 CORRECTION (supersedes the stage 7 and bisect paragraphs above as to the RELEASE): `cmp_codex_job.sh` unpacks the tarball into the shared `codex-compare/ours-pkg` only when it is missing and reuses it afterwards, so the runs `e2e-codex-ttt-and-crm-default-profile` and `e2e-codex-crm-stage-set-off` (and the first candidate e2e, stopped at r3) ran the STALE release 17e372944279 (2026-11-03), not 02c784249a7e: `version.txt` of the cells says 17e372944279, and the engine environment lines of the default run and of the "stage-set-off" run are byte-identical (the profile of that release has only four engine_env keys, so dropping the five stage-set keys changed nothing). The bisect verdict ("the stage set is not to blame", 55/56 x3) and the stage 7 numbers (CRM 0/3, decode 163 / 159 tok/s) therefore describe the OLD release and are VOID for the current default; the static-check statistics below stay valid as history. Fix: `cmp_codex_job_profile.sh` now requires `CMP_OURS_TAG` and uses its own `ours-pkg-`, `ours-state-`, `ours-prefix-` and refuses a package whose `version` commit differs from the tag. Re-queued on 02c784249a7e: default CRM+ttt x3, stage-set-off CRM x3, candidate CRM+ttt x3 (`scripts/e2e/codex/prefill/e2e-release/`). STATIC CHECKS over all 49 CRM cells with an acceptance log (board = one file with all five stages and a loop; api = literal /api/): LEL 41 cells, board failed 23 (56 %), api failed 6 (15 %), clean 16; of them without tracing flags 22 cells: board 7 (32 %), api 3, clean 14; with SERVE_PROFILE/BRINGUP_TRACE/PROFILE_SYNC 19 cells: board 16 (84 %), api 3, clean 2; VAN 3 cells: 0 and 0; VANL 5 cells: board 1, api 0. Fisher (two-sided) LEL board 23/41 against vanilla 1/8: p = 0.049; without tracing 7/22 against 1/8: p = 0.39; api 6/41 against 0/8: p = 0.57. Reading: with the tracing variants excluded there is no significant difference to vanilla (the checks are brittle style patterns); the tracing flags (timing) change the greedy trajectory toward the failing style; a systematic Leleka-Strata difference is not shown and not excluded (vanilla n = 8). The first release-pinned series ended at once (the check compared `leleka version`, which prints "commit unknown" for this build; fixed: `prov_commit.py` reads git_commit from the package PROVENANCE.json, the old shared package is rejected by it); fake .done markers and empty run dirs moved to garbage/g-1112-e2ecpm. UPDATE 2026-11-12 (retry with reserve 240, `memory-256k-codex-session-alias-reserve240-vram-floor`, release 02c784249a7e, alias + `DECODE_RESERVE_MIB=240`, Codex fixbug-ledger x3 at 178-224 k input tokens, 100 ms sampler, 15,268 samples): NOT PASSED by 9 MiB. Minimum free VRAM 306 MiB (target 315); 90 samples below 315; 0 OOM/CudaExecution/refused; 3 of 3 accepted (42/30/37 requests); 12,384 slots (per layer) against 12,192. Reserve 130 -> 212 MiB and 12,432 slots, reserve 240 -> 306 MiB and 12,384 slots: 110 MiB of reserve bought 94 MiB of floor and cost 48 slots, so the floor follows the reserve almost one to one. Reserve about 250 MiB would reach 315 (about -4 slots, about 12,380); not run, and PS stays a placement-class change with the quality gate pending (see the slots/adapt verdict). UPDATE 2026-11-12 (floor of the hex-finish candidate, release package of the q245 job, EXPERT_PER_LAYER=no through a per-arm profile, `LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.65` through the shell env, reserve unchanged): PASSED. Minimum free VRAM 338 MiB over 10,356 samples (100 ms), 0 samples below 315 MiB, 0 OOM/CudaExecution/refused in the engine log, 3 of 3 Codex fixbug-ledger sessions accepted (34/18/39 requests, first input 177,726, last 201-227 k tokens), 12,254 slots (global fill, 23.26 GiB) against 12,192. The 338 MiB floor is 23 MiB above vanilla's 315. Caveat: the engine-environment line of the effective profile does not list PCIE_FRAC (it is not a profile key; the shell variable was exported), so the PCIe share actually used is not proven by this run; it does not allocate VRAM, so the floor holds for any share, but the e2e of the candidate must record the share the engine reports. Evidence: `/data/leleka-e2e/quality-245k/runs/memory-256k-codex-session-quota-no-pcie065-vram-floor/` (`vram-floor.txt`, `vram-free.csv`). | 2026-11-12 E2E ON THE PINNED RELEASE 02c784249a7e (PROVENANCE git_commit, tarball sha256 254ea79f...; engine environment and arm profile verified in the first cell of each series; the earlier void series are not used): (1) ACCEPTANCE VERSION MISMATCH, found while closing the CRM 0/3: the VAN/VANL cells (and the 2026-11-05 LEL cells) were re-accepted on 2026-11-05 with `codex-compare/reaccept-1/tasks/nestng-crm/accept.py` (sha256 b2e6c690...; board check = all five stage names anywhere in the frontend sources plus a loop in a file that mentions `stage`); the tool `tasks/nestng-crm/accept.py` (sha256 db1b7095..., used by every new LEL cell) still has the strict original (all five stages AND a loop inside ONE file), which the 2026-11-05 `acceptance.log.prev` of VAN r1 fails with the same message. The saved VAN workspaces fail the strict check too. So the board failure of the LEL cells is a measurement artefact, not a Leleka effect. Re-computing the relaxed board check on the 27 saved workspaces of the three new series (LEL, VAN, VANL x 3 x 3): 27/27 pass. LEL on the baseline acceptance: default 2 of 3 fully accepted (r1 54/56: besides the board check one of the 21 backend e2e tests of the agent's own app failed, rc=1 passed=20 failed=1; r2 and r3 55/56 + relaxed board = 56/56), stage-set-off 3/3, candidate 3/3 (each 55/56 + relaxed board). One backend-test failure in 9 LEL cells; the VAN/VANL cells have none; not enough to call it a trend. The earlier statistics of the board failures per variant (56 %, 32 % without tracing flags) used the strict check on the LEL side only and are void as a quality signal; the cells since 2026-11-10 are all strict-failed because they ran after the baseline was frozen on the relaxed check. Rule for the next e2e reports: run `cmp_reaccept.py` with the relaxed accept.py on every new LEL cell, or report both versions. (2) STAGE SET (LOAN_TIERS, DRAFT_CHECK_MERGE, PREFIX_PARK_FAST, DECODE_GRAPH_REUSE, STREAM_MIN) is NOT responsible for the CRM result: default and stage-set-off give the same single static finding in all six cells. Speed: CRM decode default 169.4 (167.8/170.3/170.0) vs stage-set-off 163.0 +-2.1 tok/s (about +4 % for the set); wall 527 vs 525.1 +-43.7 s; ttt (default series) decode 171.4/168.4/177.6 tok/s, wall 194.5/227.6/92.5 s. (3) CANDIDATE quota=no + PCIE_FRAC 0.65 (experimental, profile keys, engine.log meta line: expert_per_layer=0 pcie_frac=0.65, 12,254 global slots, prompt loan 2,471): CRM decode 179.4 +-0.4 tok/s (default 169.4, +5.9 %; VANL 202.1, VAN 221.4), wall 504.9 +-19.1 s (default 527, VANL 461.8 +-106.2, VAN 434.0 +-98.9; spread of VANL/VAN is larger than every Leleka difference), 55/56 + relaxed board = 56/56 in 3/3; ttt 3/3 accepted, decode 180.0 +-2.3 tok/s (default about 172, VANL 202.0, VAN 225.7), wall 156.2 +-31.3 s (default about 172, VANL 136.7 +-10.0, VAN 99.3 +-5.8). Paired LEL - VANL: decode -22.7 +-4.1 tok/s, wall +43.1 +-118.1 s (noise). Together with the placement gate and the 256k VRAM floor PASS (338 MiB free, 0 OOM) the candidate stays an experimental profile; the default is unchanged until the owner decides after the 5-pair measurement. (4) ttt WALL vs VAN (156 s against 99 s at decode 180 against 226 tok/s): the decode rate alone predicts +26 % wall (226/180), the observed gap is +57 %; the rest follows the number of rounds and calls (LEL 21 rounds / 22 calls against VAN 12.7 / 13.7, +65 %), and the trajectories differ (greedy decode differs), so on this task the wall gap is a mix of decode rate and trajectory length; s/request is 7.3 (LEL, VANL) against 8.0 (VAN), i.e. no per-request engine penalty beyond decode. Open: a paired teacher-forced replay of one trajectory would separate them; not started. 2026-11-12 group A/B (release 02c784249a7e, "256k" engine configuration, replay VANL/nestng-crm-r2 30 requests, first 3 dropped, 5 pairs, A/A twin AT x3): candidate QN (EXPERT_PER_LAYER=no + PCIE_FRAC=0.65) against default A: decode 203.46 vs 188.04 tok/s = +8.20 % (95% CI +6.52..+9.88 %), end-to-end +7.47 % (CI +4.95..+9.98 %), ms/round 17.66 vs 19.02 = -7.15 % (CI -10.77..-3.53 %), tokens/round 3.59 vs 3.58 (+0.47 %, CI -2.37..+3.31 %, i.e. acceptance unchanged), VRAM share of routed 90.85 vs 90.34 %. A/A noise floor (A vs AT, 3 pairs): decode +0.22 % (CI -1.99..+2.44 %), ms/round -3.02 % (CI -17.68..+11.64 %); the candidate effect lies outside it. Wall of the 30-request replay (sum wall_s): A 331.4 s, QN 307.9 s, AT 327.8 s; paired QN-A -23.5 +- 58 s (n=5, not significant, wall is noisy). VRAM floor (minimum free during the run, 1 s sampling): A 502 MiB, QN 478 MiB, AT 502 MiB, all above the 315 MiB gate, 0 OOM. Arm guard: engine log "meta: config" checked by hand for all 13 blocks (A, AT: expert_per_layer=1 pcie_frac=0.45; QN: expert_per_layer=0 pcie_frac=0.65); the INVALID markers of this run are false (old guard read the cache line). Greedy identity is not applicable on replay: even A vs AT is byte-identical in only 5 of 90 requests, so out_sha differs between any two runs (QN vs A 9 of 150). Verdict: the candidate is faster by decode and per-round time on the paired measurement, outside the A/A floor; it stays experimental, the default is unchanged until the owner decides; the CRM acceptance under both versions is reported in the e2e rows above. DEFAULT ON BY OWNER 2026-11-12 (relayed by the orchestrator session): `LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=no` and `LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.65` are now `engine_env` keys of `rtx5090-32g`, `rtx5090-32g-file` and `rtx5090-32g-gguf-ple` (laptop/3080 profile untouched); profile test `only_the_5090_profiles_default_to_global_rank_fill_and_pcie_share_065`; docs/deploy.md section 4; confirmation e2e (CRM + ttt x3, new release package) queued against the candidate (CRM 179.4 tok/s, ttt about 180). | H5 | adaptive tie order (equal-gain swaps share the cap across layers, `LELEKA_ADAPT_TIE_SPREAD`, `9d130fd38`) | low layer first | | run `memory-tier-tie-spread-ab-first-half/xb` queued | gap doc | device | fixing | | H6 | tier knobs: adapt every 2, 192 swaps, decay 0.85, margin 1.0 (`spd-w1..w5`) | 4, 96, 0.7, 1.5 | same policy | runs queued | gap doc | device | fixing (W1 adapt every 2: earlier n=5 +0.56 points hit, +1.31 % tok/s (CI +0.77..+1.85); in the group A/B above as PW against PG, then 10 pairs if it holds) | | H7 | first rounds of a request see an unadapted tier | | | not isolated | gap doc | device | open (isolated for ours 2026-11-11 `docs/experiments/vram-hit-share-gap.md`: hit share 79 % in the first 4 windows of a request, 85 % at windows 16-31, 90 % at 32-63, 93 % from 128; the first 64 windows carry 20 % of the misses, a ceiling of 0.71 points; vanilla has no per-window log; a request-start warm-up needs code in `original_serve_residency/source_spans.rs`, hex-finish) |