D308-1: a turn whose stream ends without a terminal event, with response.failed, with a
non-bound response.incomplete, or without usage.input_tokens is recorded as a failed turn
(integrity_failure reason), later turns are not sent, run status "failed", exit 1.
record-h0 refuses such a stream (no H0 written).
E2(3)/E7 (BA decision 9dcb717a): per turn the server-reported prompt_tokens, the H0
prompt_tokens, their equality, cached/output tokens and output_tokens_source are recorded;
the run lists prompt_tokens_differ_from_h0_turns.
E7(b): output_tokens > N_k marks the arm invalid (bound_exceeded_turns, arm_valid false,
invalid_reasons OUTPUT_BOUND_EXCEEDED, status arm_invalid, exit 4); shorter stays
LENGTH-UNMATCHED. Tests: 28 (8 new, 1 replaced).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
QA defects D314-1 and D314-2 on the integrated Train A tree.
D314-1: the golden runner had no branch for the raw_text malformed-input case
(malformed_input_exit3); it now parses raw_text itself and expects exit 3 as the
golden file states.
D314-2: expected keys the tool did not compute were skipped but the case was
counted as passed. Now every expected key is checked or the case is SKIPPED and
counted separately; the summary prints
"cases: N passed: P skipped: S failed: F" and `golden` exits 1 when a case is
skipped unless --allow-skips is given. Newly computed: forbidden_tokens (on the
printed output), mention (refusal message), blind_sd + forbidden_key_prefixes
(new blind-sd sub-command, first 6 valid pairs, no mean), null_simulation
(new simulate-null sub-command, own float path, seeded), --look K, series_b
variants (permutation / unit-scale invariance). Unknown argv flags and unknown
expected keys make a case SKIPPED.
Still independent of series_eval.py and component_class.py; the golden file is
only read, not committed here.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
BA decision after Train A QA (STRA-245 comment 9dcb717a, E2(2)): a server
pair needs no owner attestation; a missing one is not a reason and a present
one is ignored. validity.py now applies ATTESTATION_MISSING / OWNER only when
--machine laptop. Two tests added for the server cases. Golden vectors are
unchanged (all attestation vectors are laptop pairs).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
New scripts/e2e/evidence/run_core.py and test_run_core.py (stdlib, Python 3.9, no GPU).
Pre-registered schedule reader with hash in every ledger line, next-slot refusal,
append-only fsynced JSONL ledger, resume marking INTERRUPTED, 60 s heartbeat,
exclusive lock (CreateNew/FileShare.None on Windows, mkdir on Linux), run-root
guard (git check-ignore, linked-worktree refusal, 20 GB, STOP file), 256k floor,
and finalize to set countable/invalid_reasons from validity.py.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
component_class.py classifies COMPONENT cells with the statistics imported from series_eval.py
(one evaluator) and gives the AC5(b) Pocock-look verdict; test_component_class.py adds 43 tests.
The 27 ComponentClassGolden vectors of STRA-310 pass unchanged.
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>
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>
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>
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>
The pass (PrefetchVirtualMemory on 3 ranges per missed expert, then a touching phase) ran before the compute and took 70-75 ms of a
165 ms window; the compute faults the pages in itself, overlapped with its work. LELEKA_CPU_PREFETCH=on|off, and
LELEKA_CPU_PREFETCH_OFF_FILE / LELEKA_NO_TRIM_FILE for A/B inside one engine. scripts/e2e/decode_ab.py: decode-only A/B at depth.
docs/laptop-vs-vanilla.md section 7.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
leleka_qsa_topk_wide (also _sample/_wide_failed, measured and not used) in qsa_late.cu; leleka_qsa_topk_cluster in the new sealed asset qsa_cluster.cu (sm_90+,
no sm_86 companion); cuLaunchKernelEx plumbing for KernelModule and the verifier window (Launch.cluster); policy.qsa.cluster_topk. Same ids as qsa_topk_ref in
every model-free case (continuous, heavy tailed, tied, all equal; prompt tiles of 256 rows and decode calls of 1..5 rows up to 261,500 tokens).
LELEKA_QSA_TOPK=wide (prompt, from 10,000 blocks) and LELEKA_QSA_CLUSTER=1 (decode window) switch them on; defaults off until their R gate.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Brings the Rust/CUDA port of the Strata mode17 serve path together with the
CPU/iGPU/NPU gpt-oss runtime that main gained meanwhile.
Control plane: the Qwen tokenizer is the implementation behind the Qwen35
variant of codec::TextCodec (qwen(), encode_prompt() widen the trait; QwenCodec
derefs to the tokenizer), so control-token marks, images, chat template, the
runtime backend and vision keep their behavior, while the gpt-oss/Harmony path
and the worker pool keep main's. Config carries the union of fields; extra_workers
is rejected together with runtime, lazy_load, idle_unload_s and vision; the
gpt-oss family refuses top_k/min_p/penalties (its GEN line has no such keys).
leleka-kar-codec takes f16_bits_to_f32 from leleka-quant-core (identical code).
Workspace members and default-members are the union of both sides.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>