From 5cc2257ea7499f537acce5d67ff042565b686304 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Thu, 5 Nov 2026 16:30:18 +0100 Subject: [PATCH] kar-off-ab: results page, codex/browser evidence, cmp_report knows LELK/LELG Co-Authored-By: Claude Sonnet 5.5 --- .../e2e-data/kar-off-ab/codex/browser-ttt.txt | 23 ++++ docs/e2e-data/kar-off-ab/codex/compare.csv | 19 +++ docs/e2e-data/kar-off-ab/codex/compare.md | 64 ++++++++++ docs/experiments/kar-off-ab-5090.md | 116 ++++++++++++++++++ scripts/e2e/codex/compare/cmp_report.py | 8 +- 5 files changed, 227 insertions(+), 3 deletions(-) create mode 100644 docs/e2e-data/kar-off-ab/codex/browser-ttt.txt create mode 100644 docs/e2e-data/kar-off-ab/codex/compare.csv create mode 100644 docs/e2e-data/kar-off-ab/codex/compare.md create mode 100644 docs/experiments/kar-off-ab-5090.md diff --git a/docs/e2e-data/kar-off-ab/codex/browser-ttt.txt b/docs/e2e-data/kar-off-ab/codex/browser-ttt.txt new file mode 100644 index 00000000..f71bbf5f --- /dev/null +++ b/docs/e2e-data/kar-off-ab/codex/browser-ttt.txt @@ -0,0 +1,23 @@ +# ttt browser checks (Chromium 1148 via playwright 1.49.1, software GL, laptop; each page one run at a time, 2026-11-05) +# first column: check_ttt.mjs (thirds probe, scripts/e2e/codex/tasks/ttt/hidden), second: check_ttt_v2.mjs (gap-clustering probe, docs/e2e-data/codex-compare) +LELK-r1 check_ttt.mjs rc=0 6 pass, 0 fail, SUMMARY 6/6 +LELK-r1 check_ttt_v2.mjs rc=1 3 pass, 3 fail, SUMMARY 3/6 +LELK-r2 check_ttt.mjs rc=0 6 pass, 0 fail, SUMMARY 6/6 +LELK-r2 check_ttt_v2.mjs rc=1 3 pass, 3 fail, SUMMARY 3/6 +LELK-r3 check_ttt.mjs rc=1 2 pass, 0 fail, +LELK-r3 check_ttt_v2.mjs rc=1 2 pass, 0 fail, +LELG-r1 check_ttt.mjs rc=0 6 pass, 0 fail, SUMMARY 6/6 +LELG-r1 check_ttt_v2.mjs rc=0 6 pass, 0 fail, SUMMARY 6/6 +LELG-r2 check_ttt.mjs rc=0 6 pass, 0 fail, SUMMARY 6/6 +LELG-r2 check_ttt_v2.mjs rc=0 6 pass, 0 fail, SUMMARY 6/6 +LELG-r3 check_ttt.mjs rc=0 6 pass, 0 fail, SUMMARY 6/6 +LELG-r3 check_ttt_v2.mjs rc=0 6 pass, 0 fail, SUMMARY 6/6 +ALLDONE +# repeats of check_ttt_v2.mjs on the two pages that varied +LELK-r1 v2 rep1: SUMMARY 3/6 FAIL 3 row win via real clicks :: X's turn;FAIL 4 moves blocked after the win :: X's turn -> O's turn;FAIL 6 draw via real clicks :: X's turn; +LELK-r2 v2 rep1: SUMMARY 4/6 FAIL 3 row win via real clicks :: X's turn;FAIL 4 moves blocked after the win :: X's turn -> X's turn; +LELK-r1 v2 rep2: SUMMARY 3/6 FAIL 3 row win via real clicks :: X's turn;FAIL 4 moves blocked after the win :: X's turn -> O's turn;FAIL 6 draw via real clicks :: X's turn; +LELK-r2 v2 rep2: SUMMARY 5/6 FAIL 6 draw via real clicks :: X's turn; +ALLDONE +# earlier sequential first run (two copies of the probe were running at once for some of the others: discarded): LELK-r2 v2 6/6, LELK-r1 v2 3/6 +# LELK-r3: both probes stop at check 3, Playwright: ' intercepts pointer events' (the HUD with the Restart button lies under the full-screen canvas), 30 s timeout diff --git a/docs/e2e-data/kar-off-ab/codex/compare.csv b/docs/e2e-data/kar-off-ab/codex/compare.csv new file mode 100644 index 00000000..b19ff357 --- /dev/null +++ b/docs/e2e-data/kar-off-ab/codex/compare.csv @@ -0,0 +1,19 @@ +set,variant,label,task,rep,rounds,rounds_completed,rounds_failed,accepted,termination,codex_rc,wall_s,model_s,in_tokens_total,out_tokens_total,ctx_peak,in_per_round_p50,in_per_round_p90,out_per_round_p50,out_per_round_p90,out_per_round_max,cached_tokens_total,decode_tok_s,tool_calls,skip_entries,skip_experts,skip_source,final_message_tail,cell_dir,session_log,transcript,codex_rollout,start_utc,uptime_s_at_block,acc_pass,acc_total,ttfb_mean_s,s_per_request,browser,cached_share +,LELG,,nestng-crm,1,46,46,0,yes,exited,0,473.1,420.2,2715439,69932,95303,62996,90025,939,3322,8188,2681539,166.6,51,,,," supertest transport shim. That shim caught two real bugs (DELETE returning 200, a wrong pipeline expectation). Please run `npm run test:e2e` and `node dist/main.js` + the `curl` examples in `README.md` on a machine with sockets to confirm.",/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r1,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r1/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r1/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r1/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-18-59-01a1abdc-d917-7323-bb94-5a6631474599.jsonl,2026-11-05T13:18:59Z,,56,56,0.01,9.13,,0.988 +,LELG,,nestng-crm,2,69,69,0,yes,exited,0,447.1,417.3,3577072,67605,93386,49452,87813,456,2755,6728,3554238,162.3,34,,,," forbids). `README.md` documents how to run the API, the tests, `ng serve` with the proxy, and the production build. Worth running `npm run test:e2e` and `npm start` yourself once, since socket binding is the one thing this sandbox blocked.",/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r2,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r2/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r2/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r2/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-30-01-01a1abe6-f35d-7700-ab64-9d1afcf3eedb.jsonl,2026-11-05T13:30:00Z,,56,56,0.01,6.05,,0.994 +,LELG,,nestng-crm,3,86,86,0,yes,exited,0,711.2,586.1,5867168,93228,122973,65778,115563,620,2478,6477,5839260,159.4,51,,,,"E.md` documents both run paths, the endpoint table, and the validation rules. If you run it somewhere with a free port, `cd backend && npm run test:e2e` plus `npm start` in both projects is the last thing to confirm end-to-end in a browser.",/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r3,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r3/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r3/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r3/codex-home/sessions/2026/11/05/rollout-2026-11-05T14-13-58-01a1ac0f-2e22-7ef3-a5a0-1b3704362f55.jsonl,2026-11-05T14:13:58Z,,56,56,0.01,6.82,,0.995 +,LELK,,nestng-crm,1,108,107,1,yes,exited,0,679.7,629.5,7877962,96087,129622,72338,123100,520,2090,12382,7836847,155.8,63,,,,"e shim, which ran the exact `test/*.e2e-spec.ts` files: 67/67 pass. I also loaded `proxy.conf.json` through Angular's own `loadProxyConfiguration` to confirm the proxy file is valid. On a normal machine `npm run test:e2e` should pass as-is.",/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r1,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r1/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r1/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r1/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-03-33-01a1abce-b4a1-7cc3-b285-847fc06e5ccc.jsonl,2026-11-05T13:03:32Z,,56,56,0.01,5.83,,0.995 +,LELK,,nestng-crm,2,59,59,0,yes,exited,0,444.6,415.7,3212731,69145,94684,57966,88133,548,2480,7264,3186105,166.6,58,,,,est shim that only swaps the transport. `ng serve` validated the proxy config and reached the bind step. **Caveat** - `npm run test:e2e` will pass wherever localhost binding is permitted; in this sandbox it fails solely with `listen EPERM`.,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r2,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r2/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r2/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r2/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-41-59-01a1abf1-e6ba-74f1-8b6a-3018a195b72a.jsonl,2026-11-05T13:41:59Z,,56,56,0.01,7.05,,0.992 +,LELK,,nestng-crm,3,87,87,0,yes,exited,0,657.2,606.5,6316412,97449,129163,72762,121859,549,3562,6539,6287515,161.0,94,,,,"tted fields; and `amount: null` / `stage: null` were wrongly accepted on POST. On a normal machine, `cd backend && npm run build && node dist/main.js` plus `cd frontend && npm start` gives the app at http://127.0.0.1:4200 — see `README.md`.",/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r3,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r3/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r3/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r3/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-57-56-01a1ac00-7f6e-7802-88d3-23f7a143faf7.jsonl,2026-11-05T13:57:56Z,,56,56,0.01,6.97,,0.995 +,LELG,,smoke-mini,101,3,3,0,yes,exited,0,11.0,10.5,31699,652,11466,11072,11466,225,287,287,20666,62.4,3,,,,"width 4 gave `['abc', 'efg', 'ij']`). **Changes** - textkit/words.py:41 now joins `words[:limit]` before appending the suffix. - textkit/wrap.py:13 now chunks with `word[i:i + width]`, so pieces fill whole lines. No test files were touched.",/data/leleka-e2e/kar-off-ab/runs/codex/LELG/smoke-mini-r101,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/smoke-mini-r101/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/smoke-mini-r101/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/smoke-mini-r101/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-16-47-01a1abda-d28d-7641-9e71-1c2ec4b4bb21.jsonl,2026-11-05T13:16:47Z,,5,5,0.01,3.5,,0.652 +,LELG,,smoke-mini,102,5,5,0,yes,exited,0,16.0,14.0,56223,932,12266,11707,12266,155,252,252,44640,66.7,4,,,," 1]` instead of `words[:limit]`, dropping one word before appending the suffix (`one two...` instead of `one two three...`). No test files touched; docs in both docstrings already described the correct behaviour, so no changes needed there.",/data/leleka-e2e/kar-off-ab/runs/codex/LELG/smoke-mini-r102,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/smoke-mini-r102/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/smoke-mini-r102/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/smoke-mini-r102/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-29-42-01a1abe6-a8d4-7d40-abb5-ded61f9588b5.jsonl,2026-11-05T13:29:42Z,,5,5,0.01,2.8,,0.794 +,LELG,,smoke-mini,103,3,3,0,yes,exited,0,12.0,11.0,31696,702,11465,11070,11465,273,289,289,20664,64.2,3,,,,"e character per line (e.g. `abcdefghij` at width 4 gave `['abc', 'efg', 'ij']`). **Changes** - textkit/words.py:24 now joins `words[:limit]` before the suffix. - textkit/wrap.py:12 now slices `word[i:i + width]`, so pieces fill whole lines.",/data/leleka-e2e/kar-off-ab/runs/codex/LELG/smoke-mini-r103,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/smoke-mini-r103/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/smoke-mini-r103/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/smoke-mini-r103/codex-home/sessions/2026/11/05/rollout-2026-11-05T14-10-55-01a1ac0c-64f3-75c1-aef6-4e6b5fb79839.jsonl,2026-11-05T14:10:55Z,,5,5,0.01,3.67,,0.652 +,LELK,,smoke-mini,101,9,9,0,yes,exited,0,21.5,19.1,113048,1472,15856,13387,15856,103,490,490,98458,77.2,6,,,,"d before appending the suffix, contradicting its own docstring (""keep the first `limit` words""). Now keeps `words[:limit]`. **Verification** - `python3 -m unittest discover -s tests` → `Ran 18 tests ... OK`; no files under `tests/` touched.",/data/leleka-e2e/kar-off-ab/runs/codex/LELK/smoke-mini-r101,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/smoke-mini-r101/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/smoke-mini-r101/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/smoke-mini-r101/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-00-03-01a1abcb-80bf-7482-9765-efa210294211.jsonl,2026-11-05T13:00:02Z,,5,5,0.01,2.12,,0.871 +,LELK,,smoke-mini,102,7,7,0,yes,exited,0,16.5,15.2,79022,1133,12882,11976,12882,98,407,407,67046,74.6,5,,,," **Changes** - `textkit/words.py:23` now joins `words[:limit]`. - `textkit/wrap.py:12` now slices `word[i:i + width]`, so pieces fill whole lines. No test files touched; `python3 -m unittest discover -s tests` reports `Ran 18 tests ... OK`.",/data/leleka-e2e/kar-off-ab/runs/codex/LELK/smoke-mini-r102,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/smoke-mini-r102/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/smoke-mini-r102/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/smoke-mini-r102/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-41-41-01a1abf1-9f27-7843-843a-ebc5958861f6.jsonl,2026-11-05T13:41:41Z,,5,5,0.0,2.17,,0.848 +,LELK,,smoke-mini,103,9,9,0,yes,exited,0,21.5,20.4,109587,1774,15252,12464,15252,193,411,411,95816,87.0,6,,,,"n range(0, len(word), width)]`. No test files touched. Spot-checked edges: `wrap_text(""abc def"", 1)` → `['a','b','c','d','e','f']`, `truncate_words(""one two"", 3)` → `""one two""` (no suffix), `truncate_words(""one two three"", 1)` → `""one...""`.",/data/leleka-e2e/kar-off-ab/runs/codex/LELK/smoke-mini-r103,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/smoke-mini-r103/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/smoke-mini-r103/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/smoke-mini-r103/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-54-09-01a1abfd-099d-7140-8762-858003ee1ef0.jsonl,2026-11-05T13:54:09Z,,5,5,0.01,2.27,,0.874 +,LELG,,ttt,1,15,15,0,yes,exited,0,119.0,115.6,330727,18509,31174,25162,30559,663,3920,3995,325611,160.2,15,,,,"dored build (r170). Rerun the check anytime with `node /tmp/ttt/test.mjs`. A `window.ticTacToe` debug hook (`board`, `current`, `over`, `reset`) is exposed if you want to script it from a real browser — say the word if you'd rather drop it.",/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r1,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r1/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r1/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r1/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-16-59-01a1abdb-025c-7c93-befa-b606dc02ce28.jsonl,2026-11-05T13:16:59Z,,14,14,0.01,7.71,,0.985 +,LELG,,ttt,2,19,19,0,yes,exited,0,144.5,138.2,481036,22004,40880,24869,40157,616,3100,7439,469778,159.4,20,,,,"ote: `python3 -m http.server` fails in this sandbox (`PermissionError` on socket bind), so I could not curl the page; the Node harness covers the same load path. If you want, I can move `check.mjs` into the repo as a repeatable test script.",/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r2,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r2/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r2/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r2/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-37-36-01a1abed-e198-7401-89e9-f1fa69766f63.jsonl,2026-11-05T13:37:36Z,,14,14,0.01,7.27,,0.977 +,LELG,,ttt,3,29,29,0,yes,exited,0,167.5,162.7,841273,25178,40617,29770,39453,439,2395,8704,831166,154.9,30,,,,"`http://`, not `file://`). - The page exposes `window.ticTacToe` (`play`, `reset`, `pickCell`, `getBoard`, …) purely to make the automated checks possible; say the word if you'd rather drop it, or want the test harness copied into the repo.",/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r3,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r3/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r3/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r3/codex-home/sessions/2026/11/05/rollout-2026-11-05T14-11-09-01a1ac0c-98b1-7c20-96d6-febd6c45a675.jsonl,2026-11-05T14:11:09Z,,14,14,0.01,5.61,,0.988 +,LELK,,ttt,1,19,19,0,yes,exited,0,185.0,181.3,515237,30649,43341,24766,42903,657,5185,5600,510108,169.2,18,,,,open `http://localhost:8000/index.html` (ES modules won't load over `file://`). The page exposes a small `window.__ttt` hook (`index.html:329`) used by the harness for camera/tile projection — harmless to remove if you'd rather not ship it.,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r1,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r1/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r1/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r1/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-00-25-01a1abcb-d934-7b10-87c7-18a7fb184f38.jsonl,2026-11-05T13:00:25Z,,14,14,0.01,9.54,,0.99 +,LELK,,ttt,2,21,21,0,yes,exited,0,183.0,178.4,584656,28358,41255,31091,40485,601,2353,6753,579199,159.1,23,,,,"wser is installed, so GLSL compilation is untested — only stock three.js materials are used, so risk is low. Want me to drop the Node harness into the repo as `verify.mjs` so you can re-run it, or add an AI opponent / score tracking on top?",/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r2,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r2/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r2/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r2/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-49-31-01a1abf8-cdad-7d91-9068-6ca838ace446.jsonl,2026-11-05T13:49:31Z,,14,14,0.01,8.5,,0.991 +,LELK,,ttt,3,22,22,0,yes,exited,0,202.5,198.1,716701,31759,47622,35098,46300,884,2879,10333,707219,160.5,25,,,,"ed. To view it, serve the folder (ES modules need HTTP, not `file://`): `python3 -m http.server 8000` then open `http://localhost:8000/`. Want me to copy the harness into the repo as `verify.mjs` so you can re-run it with `node verify.mjs`?",/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r3,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r3/proxy/rounds.jsonl,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r3/transcript.md,/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r3/codex-home/sessions/2026/11/05/rollout-2026-11-05T13-54-32-01a1abfd-6273-7e83-aeac-d1f56451de2f.jsonl,2026-11-05T13:54:32Z,,14,14,0.01,9.0,,0.987 diff --git a/docs/e2e-data/kar-off-ab/codex/compare.md b/docs/e2e-data/kar-off-ab/codex/compare.md new file mode 100644 index 00000000..99ddffbb --- /dev/null +++ b/docs/e2e-data/kar-off-ab/codex/compare.md @@ -0,0 +1,64 @@ +# Codex comparison: LELK = Leleka, KAR PLE (rtx5090-32g, standalone stack; KAR on / off study), LELG = Leleka, GGUF PLE (rtx5090-32g-gguf-ple, standalone stack; KAR on / off study) + +Temperature 0 is injected for every arm; same Codex CLI, same prompts, same limits; no AGENTS.md pad. Greedy sessions are not reproducible run to run, so read the repetitions, not one cell. + +## nestng-crm + +| variant | rep | accepted | checks | browser | rounds (failed) | tool calls | wall s | decode tok/s | ttfb s | s/request | in tokens (cached) | ctx peak | termination | +|---|---|---|---|---|---|---|---|---|---|---|---|---|---| +| LELG | 1 | yes | 56/56 | - | 46 (0) | 51 | 473.1 | 166.6 | 0.01 | 9.13 | 2715439 (0.988) | 95303 | exited | +| LELG | 2 | yes | 56/56 | - | 69 (0) | 34 | 447.1 | 162.3 | 0.01 | 6.05 | 3577072 (0.994) | 93386 | exited | +| LELG | 3 | yes | 56/56 | - | 86 (0) | 51 | 711.2 | 159.4 | 0.01 | 6.82 | 5867168 (0.995) | 122973 | exited | +| LELK | 1 | yes | 56/56 | - | 108 (1) | 63 | 679.7 | 155.8 | 0.01 | 5.83 | 7877962 (0.995) | 129622 | exited | +| LELK | 2 | yes | 56/56 | - | 59 (0) | 58 | 444.6 | 166.6 | 0.01 | 7.05 | 3212731 (0.992) | 94684 | exited | +| LELK | 3 | yes | 56/56 | - | 87 (0) | 94 | 657.2 | 161.0 | 0.01 | 6.97 | 6316412 (0.995) | 129163 | exited | + +| variant | n | accepted | rounds | tool calls | wall s | decode tok/s | s/request | +|---|---|---|---|---|---|---|---| +| LELK | 3 | 3/3 | 84.7 ± 24.6 | 71.7 ± 19.5 | 593.8 ± 129.7 | 161.1 ± 5.4 | 6.6 ± 0.7 | +| LELG | 3 | 3/3 | 67.0 ± 20.1 | 45.3 ± 9.8 | 543.8 ± 145.6 | 162.8 ± 3.6 | 7.3 ± 1.6 | + +Paired by repetition, LELG - LELK GGUF PLE minus KAR PLE (same runtime, KAR on / off study) (3 pairs): + +* rounds: -17.7 ± 38.8 (per pair: -62.0, +10.0, -1.0) +* tool calls: -26.3 ± 15.6 (per pair: -12.0, -24.0, -43.0) +* wall s: -50.0 ± 138.0 (per pair: -206.6, +2.5, +54.0) +* decode tok/s: 1.6 ± 8.1 (per pair: +10.8, -4.3, -1.6) + +## ttt + +| variant | rep | accepted | checks | browser | rounds (failed) | tool calls | wall s | decode tok/s | ttfb s | s/request | in tokens (cached) | ctx peak | termination | +|---|---|---|---|---|---|---|---|---|---|---|---|---|---| +| LELG | 1 | yes | 14/14 | - | 15 (0) | 15 | 119.0 | 160.2 | 0.01 | 7.71 | 330727 (0.985) | 31174 | exited | +| LELG | 2 | yes | 14/14 | - | 19 (0) | 20 | 144.5 | 159.4 | 0.01 | 7.27 | 481036 (0.977) | 40880 | exited | +| LELG | 3 | yes | 14/14 | - | 29 (0) | 30 | 167.5 | 154.9 | 0.01 | 5.61 | 841273 (0.988) | 40617 | exited | +| LELK | 1 | yes | 14/14 | - | 19 (0) | 18 | 185.0 | 169.2 | 0.01 | 9.54 | 515237 (0.99) | 43341 | exited | +| LELK | 2 | yes | 14/14 | - | 21 (0) | 23 | 183.0 | 159.1 | 0.01 | 8.5 | 584656 (0.991) | 41255 | exited | +| LELK | 3 | yes | 14/14 | - | 22 (0) | 25 | 202.5 | 160.5 | 0.01 | 9.0 | 716701 (0.987) | 47622 | exited | + +| variant | n | accepted | rounds | tool calls | wall s | decode tok/s | s/request | +|---|---|---|---|---|---|---|---| +| LELK | 3 | 3/3 | 20.7 ± 1.5 | 22.0 ± 3.6 | 190.2 ± 10.7 | 162.9 ± 5.5 | 9.0 ± 0.5 | +| LELG | 3 | 3/3 | 21.0 ± 7.2 | 21.7 ± 7.6 | 143.7 ± 24.3 | 158.2 ± 2.9 | 6.9 ± 1.1 | + +Paired by repetition, LELG - LELK GGUF PLE minus KAR PLE (same runtime, KAR on / off study) (3 pairs): + +* rounds: 0.3 ± 5.9 (per pair: -4.0, -2.0, +7.0) +* tool calls: -0.3 ± 4.6 (per pair: -3.0, -3.0, +5.0) +* wall s: -46.5 ± 17.0 (per pair: -66.0, -38.5, -35.0) +* decode tok/s: -4.8 ± 4.7 (per pair: -9.0, +0.3, -5.6) + +## Sessions to read + +* LELG nestng-crm r1: `/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r1/transcript.md` (yes, 46 rounds) +* LELG nestng-crm r2: `/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r2/transcript.md` (yes, 69 rounds) +* LELG nestng-crm r3: `/data/leleka-e2e/kar-off-ab/runs/codex/LELG/nestng-crm-r3/transcript.md` (yes, 86 rounds) +* LELK nestng-crm r1: `/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r1/transcript.md` (yes, 108 rounds) +* LELK nestng-crm r2: `/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r2/transcript.md` (yes, 59 rounds) +* LELK nestng-crm r3: `/data/leleka-e2e/kar-off-ab/runs/codex/LELK/nestng-crm-r3/transcript.md` (yes, 87 rounds) +* LELG ttt r1: `/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r1/transcript.md` (yes, 15 rounds) +* LELG ttt r2: `/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r2/transcript.md` (yes, 19 rounds) +* LELG ttt r3: `/data/leleka-e2e/kar-off-ab/runs/codex/LELG/ttt-r3/transcript.md` (yes, 29 rounds) +* LELK ttt r1: `/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r1/transcript.md` (yes, 19 rounds) +* LELK ttt r2: `/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r2/transcript.md` (yes, 21 rounds) +* LELK ttt r3: `/data/leleka-e2e/kar-off-ab/runs/codex/LELK/ttt-r3/transcript.md` (yes, 22 rounds) diff --git a/docs/experiments/kar-off-ab-5090.md b/docs/experiments/kar-off-ab-5090.md new file mode 100644 index 00000000..166f4af6 --- /dev/null +++ b/docs/experiments/kar-off-ab-5090.md @@ -0,0 +1,116 @@ +# KAR on / off in the Leleka runtime: speed, logits and agent sessions (RTX 5090, 2026-11-05) + +Owner request: "KAR must give extra speed and lower quality, and both must be measured; our runtime must also be tested with GGUF." The same Leleka runtime was run with the shipped KAR level-2 PLE (**KAR**) and with the PLE rows read from the GGUF shard (**GGUF**, no archive), on identical workloads. +Everything below is a paired A/B inside this one runtime; vanilla Strata is not involved (it is the subject of [codex-compare-5090-results.md](codex-compare-5090-results.md)). Raw tables: `docs/e2e-data/kar-off-ab/`. + +## 0. Result in six lines + +1. **Speed.** KAR gives **no decode speed-up** on this workload: decode 180.5 ± 1.2 tok/s (KAR) against 181.6 ± 0.8 (GGUF), 3 interleaved passes each, difference +0.6 % for GGUF, inside the noise (paired 1.1 ± 1.1). KAR is **faster in prefill**: 4206 ± 28 against 3741 ± 5 tok/s (GGUF −11.1 %), 132 s against 149 s of prefill for the same 555k uncached prompt tokens (about 0.28 s per request, roughly 2-3 % of the model time of the replay). +2. **Logits.** KAR is a real, small numerical perturbation of GGUF: on the same 3000 forced rows the argmax differs in **4.3 %** of rows (twin runs of one PLE source: 1.5-1.9 %), d_top1 p99 0.47 (twins 0.15-0.16). Section 4. +3. **Agent level** (real Codex CLI, 2 tasks x 3 repetitions x 2 arms): **no growth in rounds** with GGUF (`nestng-crm` 67.0 ± 20.1 against 84.7 ± 24.6, `ttt` 21.0 ± 7.2 against 20.7 ± 1.5); all 12 cells accepted (56/56 and 14/14; the `nestng-crm` figure after the known board-check correction). GGUF's six `ttt` pages pass every browser probe; KAR has one page with a real click defect and two that the stricter probe fails. n = 3 cannot resolve rounds differences below about 20 %. +4. **Owner criterion** ("rounds must not grow by a larger percentage than the speed gain"): the speed gain of KAR is about 0 % in decode and 2-3 % in model time; GGUF rounds did not grow (−21 % and +1.4 %, both inside the noise). The criterion is **not violated by the data**, and the data cannot exclude a growth of 10-20 %. +5. **Consequence for the product question.** On these measurements KAR buys a prefill gain of about 12 % and costs a measurable logit perturbation, and no decode gain. A GGUF-PLE profile is functionally sound in Leleka (`rtx5090-32g-gguf-ple`, experimental, never auto-selected). +6. **The earlier LEL-against-VANL speed gap (-19 %, [results](codex-compare-5090-results.md)) is not explained by KAR**: both arms here run at about 162 tok/s per Codex request, as LEL did (163-164). + +Nothing in this page changes a default. No performance claim is made beyond the paired numbers and their spread. + +## 1. What was built + +* **Deploy** (`crates/deploy`): `kar_source: none` and the built-in profile `rtx5090-32g-gguf-ple` (identical to `rtx5090-32g` except: no archive, no memfd lock/heal, `LELEKA_PLE_DIRECT=0`, `LELEKA_ORIGINAL_SERVE_GGUF_PLE=1`, RAM minimums of the file profile). It passes no `--kar-*` argument, loads `qwen4exp-native-mtp-v1`, skips the `kar` step and the archive checks, refuses `--kar-fd`, keeps `none` in the low-RAM fallback. Every other profile is byte-for-byte unchanged (tests `every_other_profile_keeps_its_archive_arguments_and_profile_id`, `the_gguf_ple_variant_differs_...`). `cargo test -p leleka-deploy`: 184 unit + 6 e2e on Linux (WSL), 176 on Windows. +* **Engine** (`leleka-runtime`): the Original serve path was **hard-wired to KAR in four places**, found one per failed start (a load that fails at its `Selection` phase prints only the phase, so each needed a queue cycle): (1) the start-up eligibility rule (`backend_original_serve.rs::ineligible`), (2) the expert-bank admission (`qwen4exp_resident_expert_source.rs`, three guards), (3) the Original-load gate in `backend.rs` (KAR profile id required), (4) the same requirement of the retained-GR execution gate. All four accept the native-PLE load **only** when `LELEKA_ORIGINAL_SERVE_GGUF_PLE=1` is set (the new profile sets it) and no KAR source is configured; without the variable nothing changed (unit tests for the start-up rule). The refused-gate also prints its boolean conditions now. +* **Replay smoke** (test only): `LELEKA_REPLAY_GGUF_PLE=1` binds the model without KAR for the teacher-forced runs. +* **Scripts** `scripts/e2e/kar-off/`: `kar_off_common.sh`, `kar_off_window.sh`, `kar_off_speed_job.sh`, `kar_off_codex_job.sh`, `kar_off_quality_job.sh`, `kar_off_stubs.sh`, `kar_off_install.sh`, `kar_off_speed.py`; `cmp_report.py` knows the variants LELK / LELG. Commits on `claude/kar-off-ab-c6bf4e` (never pushed): `98effcdab` … `740d84113`. Strata provenance (`docs/upstream.md`) untouched; production serving stays Python-free (Python is used only by the test scripts). +* **Package.** The server has no Rust toolchain; binaries were built in WSL Ubuntu on the laptop (rustc 1.99.0, `cargo build --release`). Installed package `/data/leleka-e2e/kar-off-ab/pkg/`: the release 17e3729 binaries (hard links) except `leleka` (sha256 `0a4c1633...2703ff`) and `leleka-inference` (`18cf75ca...19efdf`); `MANIFEST.json` carries the two new digests and a note. **Both arms ran this package.** The engine is therefore not the released 17e3729 binary (it contains the four gates above; the KAR path is logically unchanged, and the per-request speed of the KAR arm, 161-163 tok/s, equals that of the released LEL, 163-164). + +## 2. Setup, decisions, cache state + +* **Hardware / software.** RTX 5090 32 GB (driver 595.99.02, GPU clocks 2857 MHz mean, 2572 min, 61.7 C mean, 71 C max in both arms), 32 cores, 121 GB RAM, kernel 7.0.0-38-generic (Ubuntu 26.04), CUDA 13.2.2 toolkit with cuBLAS 12.9.1.4, Codex CLI 0.163.0, Node 22.23.4. Model: Qwen3.8-Flash-Next IQ3_S pair, digest `sha256:80d5e3333801cedbca81a5c19c24ed6bb48fd56977acd190318f66b23a1766a3`; KAR archive `qwen-iq3-s-l2-v4.kar` (55,295,529,472 B); expert profile sha256 `8f59b4aa...388975baf`. +* **Both arms standalone (holder-free windows).** The task text expected the lab holder's memfd to be 14.9 GiB. It is **51.5 GiB** allocated (`fstat` of the holder's fd: size and `st_blocks` both 51.50 GiB; `Shmem` 58 GB), which leaves about 66 GiB, less than the 50 GB expert bank plus the 28.8 GB PLE table. A holder job would have starved the GGUF arm's page cache and measured the SSD. So every speed and Codex run is a window: the holder is stopped, each arm starts its own stack with `leleka up --foreground` (KAR arm = shipped `rtx5090-32g` with its own **sparse 16 GB memfd**, GGUF arm = `rtx5090-32g-gguf-ple`), MemAvailable 118 GiB at start, the holder is restarted afterwards. The teacher-forced logit runs are holder jobs (logits do not depend on cache state). +* **GGUF PLE I/O.** `LELEKA_PLE_DIRECT=0` (page cache instead of the engine's default O_DIRECT SSD reads; the equivalent of vanilla's `--ple-io ram`), engine row cache and reader depth at their defaults. Before every GGUF run `cat shard1 > /dev/null` (36-45 s, cold) makes the 28.8 GB table fully resident (`fincore`: 28,800,139,264 of 28,800,138,432 B before the replay and after it). The KAR arm has no page-cache copy of the table (O_DIRECT fill of the memfd). SSD reads during the 59-request replay (sectors of 512 B): 402-408k (about 206 MB) in five of the six runs and 933k in one GGUF run (the second GGUF pass): the table was RAM-resident, the SSD is not what the replay measured. +* **Cache state.** Every run is a fresh process: prefix cache empty at start (6144 MiB cap, tail `reply`, block 8192), same recorded prompts, adaptive window and tier as shipped; prompts and cells were digest-checked at every start (`inputs.sha256`, 60 entries). +* **Workload (speed).** The recorded Codex requests of the two reference cells `VANL/nestng-crm-r2` and `VANL/ttt-r3` of the codex-compare study: 59 requests, replayed one at a time with `replay_fwd.py` (temperature 0, vanilla `encrypted_content` stripped), history of 10-120k tokens, 555,449 uncached prompt tokens per run; the recorded replies are not fed back. Order of the six stack starts (balanced): KAR, GGUF, GGUF, KAR, KAR, GGUF. Speed per request is the engine's own record (`ev:request`: output tokens, decode ms, prefill ms, speculative rounds), pooled per run. +* **Workload (agent).** `cmp_codex_job.sh` pattern: real Codex CLI, logging proxy, temperature 0 injected, medium reasoning, limits 3000 s / 150 requests (none reached), tasks `ttt` and `nestng-crm` (frozen, the codex-compare ones), warm-up cell `smoke-mini` per block, balanced blocks KAR r1, GGUF r1, GGUF r2, KAR r2, KAR r3, GGUF r3. + +## 3. Speed (59 recorded requests, 3 passes of each arm) + +| run (window order) | output tokens | decode tok/s | prefill tok/s | tokens / round | +| --- | --- | --- | --- | --- | +| KAR p1 (1) | 94,833 | 179.2 | 4223 | 3.303 | +| GGUF p1 (2) | 112,495 | 181.5 | 3737 | 3.307 | +| GGUF p2 (3) | 96,205 | 182.4 | 3739 | 3.388 | +| KAR p2 (4) | 79,856 | 181.6 | 4221 | 3.496 | +| KAR p3 (5) | 98,956 | 180.7 | 4173 | 3.332 | +| GGUF p3 (6) | 102,588 | 180.9 | 3747 | 3.300 | + +| scope | metric | KAR mean ± sd | GGUF mean ± sd | GGUF − KAR (paired by pass index, mean ± sd) | GGUF / KAR − 1 | +| --- | --- | --- | --- | --- | --- | +| all 59 | decode tok/s | 180.5 ± 1.2 | 181.6 ± 0.8 | +1.1 ± 1.1 | +0.6 % | +| all 59 | prefill tok/s | 4206 ± 28 | 3741 ± 5 | −465 ± 33 | −11.1 % | +| all 59 | tokens / round | 3.377 ± 0.104 | 3.332 ± 0.048 | −0.045 ± 0.057 | −1.3 % | +| all 59 | output tokens | 91,215 ± 10,051 | 103,763 ± 8,208 | +12,548 ± 7,749 | +13.8 % | +| nestng-crm-r2 | decode tok/s | 182.7 ± 1.1 | 183.8 ± 1.9 | +1.1 ± 1.5 | +0.6 % | +| nestng-crm-r2 | prefill tok/s | 2028 ± 41 | 1918 ± 15 | −110 ± 49 | −5.4 % | +| ttt-r3 | decode tok/s | 174.9 ± 1.2 | 176.1 ± 1.7 | +1.2 ± 1.9 | +0.7 % | +| ttt-r3 | prefill tok/s | 5284 ± 1 | 4571 ± 5 | −714 ± 6 | −13.5 % | + +* Distribution over the requests (pooled over the 3 runs, 177 requests per arm): output tokens p10 / p50 / p90 / max KAR 220 / 886 / 3912 / 10,517, GGUF 221 / 1122 / 4113 / 11,215; uncached prompt tokens 522 / 2453 / 32,121 / 39,037 in both (the prompts are the same); per-request decode tok/s (requests with at least 100 output tokens) p10 / p50 / p90 KAR 140.9 / 167.8 / 207.6, GGUF 149.5 / 170.3 / 209.0; per-request prefill tok/s (at least 1000 uncached tokens) KAR 1440 / 2560 / 5449, GGUF 1394 / 2366 / 4717. +* Prefill time of a run: KAR 131.5, 131.6, 133.1 s; GGUF 148.6, 148.9, 148.2 s. Decode time of a run: 440-548 s (KAR), 528-620 s (GGUF), which follows the output length (see below). +* **Reading.** The decode rate is the same within the pass-to-pass spread (about 0.7 %); the paired differences are +2.3, +0.8 and +0.2 tok/s. The prefill difference is 7-8 sd and consistent over cells and passes: KAR's PLE gather for a prompt is cheaper than reading the rows from the shard (CPU decode), and larger on the short, many-token prefills of `ttt`. In this replay the prefill gain of KAR is 16.5 s of about 640-720 s of model time (2-3 %). +* **Not a measure of work.** Because the replies are not fed back, each arm writes its own text: GGUF wrote 13.8 % more output tokens per pass (112k / 96k / 103k against 95k / 80k / 99k), tokens per round are equal within the spread. The difference in output length is a property of the two models' greedy texts on these prompts, not of the replay; three passes per arm and an sd of 8-10k tokens do not let me say it is systematic. + +## 4. Quality (a): teacher-forced logits, KAR against GGUF in the Leleka stack + +Method of `docs/quality-gate.md` sections 1 and 6, with the 245k tool chain (`q245_port.sh`, `q245_analyze.py`): the replay smoke of this branch (`backend::original_serve_replay`, test executable `rt-kar-off`, sha256 `d87d5f49...e737`), once with the inherited KAR memfd (holder job) and once with `LELEKA_REPLAY_GGUF_PLE=1` + `LELEKA_ORIGINAL_SERVE_GGUF_PLE=1`, on the capture `quality-245k/inputs/data/cap-both` (five prompts of 45,766 / 95,706 / 151,643 / 197,915 / 242,849 tokens, each followed by the recorded Original reply and the recorded port reply, 300 tokens: 10 requests, 3000 forced rows per arm), top-16 log-probabilities of every row (`LELEKA_TRACE_LOGPROBS=16`), static expert tier (`ADAPT_EVERY=0`), shipped serve shape (prefix cache reply, 8192 grid). Each run has two twin arms (`ship`, `shipb`), so the difference between twins of one PLE source is the noise floor, and the tolerance is the larger of the two twin envelopes (the method of the quality gate: no absolute threshold exists for "KAR equals GGUF"). + +| pair | d_top1 p50 / p99 / max | dmax16 p99 | argmax flips | decisive flips (margin ≥ 0.25) | top-5 overlap | mean dNLL | +| --- | --- | --- | --- | --- | --- | --- | +| KAR ship : KAR shipb (twins) | 0.0007 / 0.146 / 0.297 | 1.69 | 45 (1.50 %) | 3 | 0.968 | −0.0002 | +| GGUF ship : GGUF shipb (twins) | 0.0023 / 0.162 / 0.346 | 1.67 | 56 (1.87 %) | 5 | 0.967 | −0.0001 | +| **KAR ship : GGUF ship** | 0.0097 / **0.468** / **0.850** | 3.12 | **128 (4.27 %)** | **44** | 0.919 | −0.0040 ± 0.0019 (mean abs 0.050) | +| KAR ship : GGUF shipb | 0.0100 / 0.481 / 0.992 | 3.13 | 141 (4.70 %) | 52 | 0.920 | −0.0041 | +| KAR shipb : GGUF ship | 0.0090 / 0.455 / 1.660 | 3.04 | 126 (4.20 %) | 40 | 0.919 | −0.0037 | + +* Tolerance (largest twin envelope): d_top1 p99 0.162, max 0.346, flip rate 1.87 %, mean |dNLL| 0.0178, top-5 0.967. All three KAR-GGUF pairs **fail** every statistic (d_top1 p99 2.8-3.0 x, flips 2.3-2.5 x the envelope). That is the expected sign: KAR level 2 is a quantised re-encoding of the PLE table. +* The capture holds two text sources per prompt. dNLL = log p(KAR) − log p(GGUF) of the recorded token: on the Original's recorded replies the mean over the five prompts is −0.012 nats/token (KAR scores them lower, about **+1.2 % perplexity**; per prompt −0.005 … −0.027), on the Leleka port's recorded replies +0.004 (per prompt −0.010 … +0.013). I did not establish which PLE source generated each recorded text, so this is not read as "KAR is worse on its own text" or the reverse. The older Original-based number (`quality-gate.md` §6: d_top1 p99 0.34, flips 3.4 %, +0.010 nats) is of the same size and the same sign. +* Limits: five prompts at five depths, 300 forced tokens each, no free greedy sequences and no tool-call or long-context benchmark in this section; the figures describe the perturbation, not a task quality. Tables: `docs/e2e-data/kar-off-ab/quality-a-kar-vs-gguf.txt`. + +## 5. Quality (b): real Codex sessions, KAR (LELK) against GGUF (LELG) + +12 cells (2 tasks x 3 repetitions x 2 arms), all finished, none reached a limit, 0 failed requests except one in LELK `nestng-crm` r1. Tables: `docs/e2e-data/kar-off-ab/codex/compare.md`, `compare.csv`, `browser-ttt.txt`. + +| task | metric | LELK (KAR) mean ± sd | LELG (GGUF) mean ± sd | paired LELG − LELK (per repetition) | +| --- | --- | --- | --- | --- | +| nestng-crm | rounds | 84.7 ± 24.6 (108, 59, 87) | 67.0 ± 20.1 (46, 69, 86) | −17.7 ± 38.8 (−62, +10, −1) | +| nestng-crm | tool calls | 71.7 ± 19.5 | 45.3 ± 9.8 | −26.3 ± 15.6 | +| nestng-crm | wall s | 593.8 ± 129.7 | 543.8 ± 145.6 | −50 ± 138 | +| nestng-crm | request decode tok/s | 161.1 ± 5.4 | 162.8 ± 3.6 | +1.6 ± 8.1 | +| ttt | rounds | 20.7 ± 1.5 (19, 21, 22) | 21.0 ± 7.2 (15, 19, 29) | +0.3 ± 5.9 (−4, −2, +7) | +| ttt | tool calls | 22.0 ± 3.6 | 21.7 ± 7.6 | −0.3 ± 4.6 | +| ttt | wall s | 190.2 ± 10.7 | 143.7 ± 24.3 | −46.5 ± 17.0 | +| ttt | request decode tok/s | 162.9 ± 5.5 | 158.2 ± 2.9 | −4.8 ± 4.7 | + +* **Acceptance.** `ttt` 14/14 in all six cells. `nestng-crm`: the installed acceptance reported 55/56 in all six cells (the static check "a board with one column per stage" wants the five stages and the loop in one file, identically false for every model; the post-hoc fix of the codex-compare study); re-accepted offline with the corrected `accept.py` (`reaccept-1/tasks`, `cmp_reaccept.py`): **56/56 in all six**; old logs are kept as `acceptance.log.prev`. The Codex sandbox forbids `listen`, as in the earlier study. +* **Browser checks of the six `ttt` pages** (`check_ttt.mjs` thirds probe / `check_ttt_v2.mjs` gap-clustering probe, real mouse, Chromium, software GL, laptop, one page at a time; `browser-ttt.txt`): **GGUF r1, r2, r3: 6/6 on both probes.** KAR r1: 6/6 and 3/6 (v2 gave 3/6 in 4 of 4 runs: clicks on the located cells do not change the turn text); KAR r2: 6/6 and 6, 3, 4, 5 of 6 over four v2 runs (the probe is not stable on this page); **KAR r3: both probes stop at check 3, `#restart` is covered by the full-screen canvas ("canvas intercepts pointer events", a real defect of the page, the one seen in the earlier LEL r2).** The v2-probe failures of KAR r1 and r2 were not investigated further (as in the earlier study, probe geometry cannot be excluded); they are reported, not counted as proven defects. +* **Rounds against speed gain (the owner's criterion).** KAR's speed gain over GGUF is 0 % in decode (section 3) and about 2-3 % in model time. GGUF needs 21 % fewer rounds on `nestng-crm` and 1.4 % more on `ttt`; the spread between repetitions inside one arm (CV 20-35 %, up to 49 rounds) is larger than any difference, so no arm is shown to need fewer or more rounds, and a 10-20 % growth with GGUF could not be seen with three repetitions. Within that resolution the criterion holds (no measurable growth, no measurable gain). +* **Comparison with the released KAR arm.** LELK (standalone stack, rebuilt engine) against the earlier LEL (release package, holder job, same tasks): `nestng-crm` 84.7 ± 24.6 against 54.0 ± 7.5 rounds, `ttt` 20.7 ± 1.5 against 17.7 ± 3.8, request speed 161-163 against 163-164 tok/s; the round counts differ by more than the sd in `nestng-crm` and are an example of how far two sessions of the same arm can lie apart (greedy agent sessions are not reproducible). + +## 6. What this does and does not show + +* It shows, on one workload shape (Codex sessions, contexts 10-120k, prefix-cache hit 98-99 %), that **KAR does not make decode faster** and makes prefill about 12 % faster, and that GGUF PLE works in the Leleka runtime at the same decode speed and with no sign of worse agent sessions. +* It does not show that KAR is useless: it saves RAM (16 GB sparse memfd against a 28.8 GB table in page cache, 12.8 GB), starts without reading the table, and the prefill gain would matter for cold, long prompts (the 245k first-turn prefill was **not** measured here; its share of a first request is larger than in the cached replay). It does not measure KAR at 245k/256k sessions ("real work = 256k"): the replay contexts are 10-120k, the logit capture reaches 243k. +* It does not resolve quality differences below the run-to-run spread of agent sessions (rounds CV 20-35 % with n = 3 per cell); 20+ repetitions per cell would be needed for 10 %. +* Three replay passes per arm: the sd of the decode rate (0.8-1.2) is small, but all windows ran within three hours of one boot with one GPU temperature band. +* The page claims nothing for vanilla Strata and nothing about the other KAR levels. + +## 7. Deviations and traps (all recorded) + +1. The holder's memfd is 51.5 GiB (not 14.9) → both arms are standalone windows (section 2). +2. Four KAR-only gates in the engine, found one per failed GGUF start (about 30 minutes each: window cycle). The first GGUF replay also failed the teacher-forced run (`resident expert source load failed: Metadata`, gate 2) → rerun as `quality2`. +3. The first `arm-*` states were prepared with earlier binaries and were moved to `~/work/leleka/garbage/` (lines in `garbage/LOG.txt`), then re-prepared with the final package. +4. `engine.log` is truncated per run; `requests.log` accumulates over passes (not used). +5. Two copies of the browser probe ran at once during the first laptop run; their output was discarded and every page rerun alone. +6. The smoke runs (`runs/smoke*`, 2-4 requests) are only start checks; they are not data. + +## 8. Paths + +Server `/data/leleka-e2e/kar-off-ab/`: `pkg/` (package), `tools/` (installed scripts, `INSTALL.sha256`), `inputs.sha256`, `incoming/` (build artefacts, `rt-kar-off`), `assets/` (links), `arm-kar/`, `arm-gguf/` (state and prefix of the two arms), `reaccept/` (corrected acceptance, `out.txt`), `runs/speed/{kar,gguf}-p{1,2,3}/` (replay.jsonl, engine.log, host.tsv, status.json, fincore), `runs/codex/{LELK,LELG}/` (cells, `stack-r*`), `runs/codex/_compare/`, `runs/quality/kar`, `runs/quality2/gguf` (port.full logs), `runs/quality-analysis/`, `runs/smoke*`, `window-*.out`. Queue stubs `kar-off-{smoke..smoke5,quality,quality2,speed,codex}` in `~/work/gpu-runs/holder2/jobs/` (backups `PRIORITY.bak-kar-off-*`). Laptop: this worktree (`scripts/e2e/kar-off/`, `docs/e2e-data/kar-off-ab/`, `target/wsl` build output, ignored) and the scratchpad of the session (ttt workspaces, Playwright 1.49.1 install, probe outputs). diff --git a/scripts/e2e/codex/compare/cmp_report.py b/scripts/e2e/codex/compare/cmp_report.py index 9541d224..a1509ec5 100644 --- a/scripts/e2e/codex/compare/cmp_report.py +++ b/scripts/e2e/codex/compare/cmp_report.py @@ -22,7 +22,8 @@ HERE = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, os.path.join(HERE, "..", "delta")) import index # noqa: E402 -NAMES = {"LEL": "Leleka (release package, KAR, shipped)", "VAN": "vanilla Strata 0.2.6 (shipped defaults)", "VANL": "vanilla Strata 0.2.6 (lossy defaults off)"} +NAMES = {"LEL": "Leleka (release package, KAR, shipped)", "VAN": "vanilla Strata 0.2.6 (shipped defaults)", "VANL": "vanilla Strata 0.2.6 (lossy defaults off)", + "LELK": "Leleka, KAR PLE (rtx5090-32g, standalone stack; KAR on / off study)", "LELG": "Leleka, GGUF PLE (rtx5090-32g-gguf-ple, standalone stack; KAR on / off study)"} def acceptance(d): @@ -79,7 +80,7 @@ def main(): w.writeheader() w.writerows(rows) tasks = sorted(set(r["task"] for r in rows if not r["task"].startswith("smoke"))) - variants = [v for v in ("LEL", "VAN", "VANL") if any(r["variant"] == v for r in rows)] + variants = [v for v in ("LEL", "VAN", "VANL", "LELK", "LELG") if any(r["variant"] == v for r in rows)] md = ["# Codex comparison: %s" % ", ".join("%s = %s" % (v, NAMES[v]) for v in variants), "", "Temperature 0 is injected for every arm; same Codex CLI, same prompts, same limits; no AGENTS.md pad. Greedy sessions are not reproducible run to run, so read the repetitions, not one cell.", ""] for t in tasks: @@ -95,7 +96,8 @@ def main(): md.append("| %s | %d | %d/%d | %s | %s | %s | %s | %s |" % (v, len(rs_), sum(1 for x in rs_ if x["accepted"] == "yes"), len(rs_), mean_sd([x["rounds"] for x in rs_]), mean_sd([x["tool_calls"] for x in rs_]), mean_sd([x["wall_s"] for x in rs_]), mean_sd([x["decode_tok_s"] for x in rs_]), mean_sd([x["s_per_request"] for x in rs_]))) # the reference is VANL (vanilla with both lossy defaults off = the Original of the quality studies); VAN is what a vanilla user gets by default - for x, y, why in (("LEL", "VANL", "Leleka minus the reference"), ("VAN", "VANL", "vanilla shipped minus the reference (the cost of vanilla's lossy defaults)"), ("LEL", "VAN", "Leleka minus vanilla shipped")): + for x, y, why in (("LEL", "VANL", "Leleka minus the reference"), ("VAN", "VANL", "vanilla shipped minus the reference (the cost of vanilla's lossy defaults)"), ("LEL", "VAN", "Leleka minus vanilla shipped"), + ("LELG", "LELK", "GGUF PLE minus KAR PLE (same runtime, KAR on / off study)")): if x not in variants or y not in variants: continue pairs = []