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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
(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>