Commit Graph
962 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 e80528ac7a kernel_ab: Rust time mode and the alternation runner (STRA-318)
Adds the sub-commands 'time' (the Rust twin of 'kab time', same command line) and 'alternate' (fresh scrubbed pinned processes for the
cells {cpp,rust} x {avx512,avx2}, a/b replicates for the A/A pairs, seeded schedule file written before the first run, per-round
COMPONENT_KERNEL records, equality recorded per tree). No statistics. run-tree gains an optional --case.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 21:09:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7e45428f8b Merge claude/stra-289 into train-a (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:49:03 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a2324a1245 Merge claude/stra-317 into train-a (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:49:03 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8e1edf5e5e Merge claude/stra-320 into train-a (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:49:02 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d87b15682d Merge claude/stra-251 into train-a (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:49:02 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 65655d5906 Merge claude/stra-312 into train-a (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:49:01 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4076b9bf8f STRA-320: guard.ps1 watchdog containment (Job Object kill-on-close, dead-man fallback, STOP file) and dry tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:45:54 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 cf811a5185 kernel_ab example: make the file its own lint gate (deny warnings, clippy::all)
cargo clippy -- -D warnings also lints the other workspace crates (pre-existing warnings
in leleka-model-format, cuda-driver, libc-shim), so the example denies its own.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:45:43 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d096ecd8e8 kernel_ab example: KAB1 reader, bitwise or pre-declared-tolerance compare, COMPONENT_KERNEL record writer (STRA-289)
Rust half of the CPU kernel A/B, part 1: crates/native-cpu-expert/examples/kernel_ab.rs
(verify, compare, internal run-tree) over the public API only; sha2 as a dev-dependency.
lib.rs untouched, unsafe_code stays deny. Timing fields of the records are explicit
NOT_MEASURED markers (STRA-318).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:43:05 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 dcb2f3dbbd feat(kernel-ab): C++ driver time mode, aa.sh A/A control (STRA-317)
kab time: monotonic ns + TSC slices with a dependent-add clock calibration before and
after each slice (tq_cpu_parity --bench method; slices whose clock moved >5 percent are
dropped, threshold from tq_cpu_parity.cpp:303), RESIDENT and STREAMED regimes, pinned
single-thread pool, 4096-aligned buffers, manifest and case input hashes, effective
environment. aa.sh: seeded schedule, N rounds of two fresh processes, per-round ratios
only. time_smoke.sh runs the acceptance commands. Only tools/kernel-ab/ is touched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:40:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f01011a3ba feat(e2e): S0.2 ours-arm run capture (STRA-251)
Add scripts/e2e/evidence/capture.py, which builds one S0.1 END_TO_END record for the
ours arm from the meta file, the replay output, the engine logs and the power series.
analyze_session.py is wrapped by subprocess (--csv), never imported or edited.
Add test_capture.py (19 CPU-only stdlib tests, fixtures built in temp dirs).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:40:25 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 806774609e feat(e2e): validity derivation module, schedule balance check and ledger/manifest cross-check (STRA-312)
Adds scripts/e2e/evidence/validity.py (E2 validity rules, E1 balanced-schedule check, E8
ledger/manifest cross-check; countable is derived, never typed) and test_validity.py.
The STRA-311 golden vectors pass unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:36:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 75254fb593 Merge claude/stra-319 into Train A (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:31:12 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 3c083ff5fe Merge claude/stra-291 into Train A (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:31:11 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5cf222fd18 Merge claude/stra-314 into Train A (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:31:11 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f8d76cf261 Merge claude/stra-311 into Train A (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:31:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 794d4ab1dc Merge claude/stra-310 into Train A (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:31:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 37a404856b Merge claude/stra-308 into Train A (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:31:09 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d05af6a59a Merge claude/stra-287 into Train A (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:31:09 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 71f1534350 Merge claude/stra-252 into Train A (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:31:08 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9bc9745635 Merge claude/stra-248 into Train A (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:31:07 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f13c0c4635 Merge claude/stra-247 into Train A (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:31:07 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 df08f9bf14 feat(laptop): native-Windows read-only GPU watchdog with dry tests (STRA-291)
Port of the safeguards of scripts/laptop/monitor.sh and lap_run.sh to
PowerShell 5.1: preflight refusal (exit 4), 1 Hz sampling with a 5 s
nvidia-smi call timeout, stall check off the sampler thread, kills only
the PID tree it spawned, fail-closed on enforced.power.limit N/A/absent,
caller-set timeout, 120 s / 600 s cool-down, exclusive machine lock
(CreateNew + FileShare.None) with runner-lock verification, sample series
file with sha256 and thresholds_source, injectable clock / -TimeScale.
test_watchdog.ps1: 32 named cases against a fake nvidia-smi shim, CPU only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:30:07 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 2e42d702be test: golden vectors for the series evaluator and component classifier (STRA-310)
Tests-first oracle written by SDET before series_eval.py (STRA-290) and
component_class.py (STRA-313): gen_exact.py (stdlib, independent: Fractions,
Decimal, integrated Student-t CDF cross-checked to published tables, Pocock
levels checked by numerical integration), series_cases.json (35 cases),
component_cases.json (27 component and AC5 cases), and the unittest
scripts/e2e/evidence/test_series_eval_golden.py. With the evaluators absent
every case fails with '<tool> not found'.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:28:56 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ac12774de3 Add tests-first golden vectors for validity rules E2, balanced schedule E1 and ledger/manifest cross-check (STRA-311)
57 synthetic cases with a written-out basis, an independent oracle (gen_validity.py --check)
and a unittest that runs validity.py through its INTERFACE v1; fails 57/57 until STRA-312 exists.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:21:50 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6e58d6bd6d feat: add read-only laptop state reader scripts/laptop/win/state.ps1 and dry tests (STRA-319)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:19:56 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 bcd8321941 Add COMPONENT evidence-record schemas and validator (STRA-287, S0.1b)
COMPONENT_STARTUP, COMPONENT_TABLE and COMPONENT_KERNEL record schemas
(schema_component.json), validate_component.py (record / --negative-suite /
merge), one sample per level (two for start-up: ours and vanilla), a
negative-case table and 41 unittest tests. Shares the STRA-246 evaluator and
definitions; stdlib only, Python >= 3.9. Classes are computed elsewhere
(STRA-313); the validator checks presence and consistency.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:17:25 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7899f083a9 Add quality-gate step: q_pair / R-chunk / q_tail_gate result into an S0.1 quality block (STRA-252, S0.4)
Wraps scripts/quality/q_pair.py and q_tail_gate.py by subprocess; verdict identical / within recorded tolerance / differs,
tolerance needs --basis (exit 2), --lossy marks the block experimental, tool-call integrity from session output.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:15:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 fe0275b16a test: add independent E3/E5 series verdict recomputation (STRA-314)
Second, separately written implementation of the series verdict (own Student-t
quantile, exact-fraction sums, strict / non-negative rules, n_eff, interim
looks, screening) with series, compare and golden sub-commands and 21 tests.
Imports nothing from series_eval.py or component_class.py.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:15:22 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 638203ae6a feat(e2e): replay driver for the 256k session (record-h0, replay, E7 aggregates)
Fixed history H0, explicit greedy (temperature 0), max_output_tokens = N_k, prompt/reply hashes,
monotonic clock, LENGTH-UNMATCHED flag, --expect-prompt-sha exit 3. STRA-308.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:14:23 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 fbd4ef8564 docs: S0.7 vanilla comparator arms, classification of upstream default rows, vanilla start-up evidence (STRA-247)
New page docs/experiments/2026-10-28-s0-7-vanilla-arms.md: binary provenance and digest of the
vanilla engine on the 5090 server, the CPU-family lines at the pin (generate.cpp 3485/3687),
one class and a pin file:line for each row of the digest section 1.3, row (b) as a literal
one-variable list, Linux launch commands verified by three start-ups and one short request,
the Windows command marked UNVERIFIED-ON-WINDOWS, the vanilla_cpu_family block.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:08:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 640fdd8e48 Merge branch 'claude/stra-246' into claude/integration-stra-245-w1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:05:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d499ab16cf Merge branch 'claude/stra-307' into claude/integration-stra-245-w1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:05:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 16572612f7 Merge branch 'claude/stra-250' into claude/integration-stra-245-w1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:05:28 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 72976c6312 Merge branch 'claude/stra-249' into claude/integration-stra-245-w1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:05:28 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1e96c2b0a5 Merge branch 'claude/stra-256' into claude/integration-stra-245-w1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:05:27 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9b39c56968 tools/kernel-ab: out-of-tree C++ reference generator for the CPU kernel A/B (STRA-248)
KAB1 files-only exchange: kab gen writes case-<id>.in (64-byte header, synthetic
blocks), runs the unchanged engine/strata CPU expert kernels for tree avx512 and
tree avx2 (two scrubbed child processes) and writes case-<id>.cpp-<tree>.out and
manifest.json last (tmp + rename, sha256 + length of every file, provenance).
verify_manifest.py (stdlib, Python >= 3.9) implements the reader rule with exit
0/1/2. The build is a Makefile over the pin's translation units and the pinned
ggml 3cf03257f (no cmake on the server; flags transcribed from the CMake files,
make check-pin detects drift). kab poolcheck proves the stage composition equals
the real ExpertPool bitwise. The time mode is STRA-317.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:04:55 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ff9e36eada Accept thresholds_source S3.7 (STRA-246 review)
STRA-256's thresholds schema names the source S3.7; rename the enum value from S3.7_FILE in schema.json, the test and the countable-without-summary fixture.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:01:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5b82eb8f45 docs: S6.1 lossy-default audit of the shipped rtx5090-32g and rtx3080-16g profiles (STRA-250)
Read-only audit page: one class and evidence row per profile key (27 + 27),
serve_tuning admitted sets, 51 serve-path and 14 prefill-chunk-path switch
names, vanilla cross-reference to STRA-247, findings for the second wave.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 19:54:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 79c4e29927 Add END_TO_END evidence-record schema and validator (STRA-246, S0.1)
New files only under scripts/e2e/evidence/: schema.json (v1), a stdlib-only
Python 3.9 validator that interprets it (validate.py, CLI v1: record,
--negative-suite, merge), three synthetic sample records, 33 neg_*.json
fixtures with their expected reasons, a placeholder row (b) environment
list, the charter 4.3 field map and 40 unittest tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 19:52:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 20f7abab01 docs: S0.7c predicate dump produced on the server (STRA-307), g++ build, both outputs quoted
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 19:52:19 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 57fe3c811d docs: S3.5 sm_86 exact-speed-switch audit (STRA-249)
Static table of the 9 nv_defaults.cpp switches, DEQUANT_WIDE and two further
sm_86-keyed defaults vs our counterparts; every speed cell unknown, lossless
labelled by source reading; rows passed to STRA-271.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 19:50:43 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 486845fa3e docs: S3.1 laptop safety protocol, thresholds schema, bootstrap instance and checker (STRA-256)
Owner-precondition checklist with read-only commands, SC3 stop/resume rules,
schema floors from monitor.sh and lap_run.sh, enforced.power.limit divergence,
exposure budget. No script or setting is changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 19:49:47 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e94369a1bf docs: S0.7c vanilla predicate dump page (STRA-307), build unavailable: cmake missing on server
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 19:47:33 +01:00
Pavlo Ratushnyi 2457d81d16 Merge branch 'claude/upstream-rest' into claude/merge-opt 2026-10-28 02:38:34 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 96484f04f1 fix: laptop-turbo.ps1 reads enforced.power.limit (power.limit is N/A on the laptop GPU) and tolerates a missing value
Rust port / port-fast (push) Failing after 9s
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-typecheck (push) Failing after 8s
Rust port / port-oracles (push) Failing after 10s
Linux / verify (push) Failing after 16s
Rust port / port-linux-tests (push) Failing after 14s
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
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 02:38:22 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ffb264e042 perf(prefill): idle-gap switches on by default after the identity and paired replay gates; docs + job scripts
LELEKA_PREFILL_QSA_PREFETCH, LELEKA_PREFILL_GDN_POOL and LELEKA_PREFILL_MOE_SPAN_CACHE now default on (=0 restores the old path). R hash of every prefill chunk and top-16 rows
identical on 945-codex-crm (108 chunks) and night5-long-256k (34 chunks); paired replay at chunk 8192: prefill chunk time at >= 100k -2.8 % (QSA -6.2 %, MoE -3.5 %, GDN at noise).
Real-stack A/B (rest-e2e-ab2) queued, not yet measured. docs/upstream-port-plan.md section "Closing the host gaps between dependent phases".

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 02:38:12 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5dacd41fca chore: add laptop-turbo.ps1 to prepare the laptop for measurement runs
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-typecheck (push) Failing after 8s
Rust port / port-fast (push) Failing after 8s
Rust port / port-oracles (push) Failing after 11s
Rust port / port-linux-tests (push) Failing after 13s
Linux / verify (push) Failing after 16s
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
Activates the ASUS Turbo scheme, turns off sleep/hibernate/display-off/lock-display-off on mains power and prints the GPU power limit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 02:32:17 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a56e02a76a perf(prefill): idle-gap steps (a) QSA prefix-copy overlap, (b) GDN state pool, (c) MoE span cache, each behind its own switch (default off)
(a) LELEKA_PREFILL_QSA_PREFETCH: the prior-KV prefix copy of a QSA layer (up to 147 MB) starts on a side stream at the beginning of the layer
    (event after the compute stream, copy, event the layer's own copy_prefix waits on) instead of between the indexer and the attention.
(b) LELEKA_PREFILL_GDN_POOL: the two 3.1 MB GDN state buffers per layer and chunk (ping-pong scratch, mirror spare) come from a small pool instead of
    cuMemAlloc / cuMemFree, and the downloaded state is scanned for finiteness once instead of twice. Same values, same refusals.
(c) LELEKA_PREFILL_MOE_SPAN_CACHE: the resolved bank spans and formats of every admitted (layer, expert) are kept per bank, so later chunks skip the
    per-expert binding walk (moe.spans); eligibility and format checks are unchanged.
Replay arm flags !qpf/!noqpf !gpool/!nogpool !mspan/!nomspan. Identity: R hash of every prefill chunk and top-16 rows equal (docs/upstream-port-plan.md).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 01:58:06 +01:00
Pavlo Ratushnyi b8474d6f71 Merge claude/laptop-vs-vanilla (prefix tail refusal logged and re-judged after memory relief) into main 2026-10-28 00:57:29 +01:00