Files
leleka/scripts/e2e/evidence/charter_map.md
T
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

15 lines
2.2 KiB
Markdown

Field-to-charter map for the END_TO_END evidence record (STRA-246, schema.json v1). One table row per bullet of `PROJECT_CHARTER.md` section 4.3, in the charter's order. The statistics row is not stored per record: it is computed over a series by STRA-290.
| Charter 4.3 bullet | Record field(s) | Where computed or checked |
|---|---|---|
| commit engine and control plane | `software.leleka_commit`, `software.strata_upstream_commit`, `ours_build_id_observed`, `ours_build_id_frozen` (commit, target triple, cargo features, profile value hash) | validator: schema; freeze comparison is STRA-312 |
| model, quant and file digests | `model.digest`, `model.digest_mapping` | validator: schema; the mapping itself is S0.7b (STRA-288) |
| GPU, driver, CUDA toolkit and power limit | `hardware.gpu_name`, `software.driver_version`, `software.cuda_version`, `hardware.enforced_power_limit_w_start` and `_end`, `power_sample_summary` | validator: schema and RULE_POWER_LIMIT_CHANGED; validity is STRA-312 |
| context, KV, slots, batch and speculation parameters | `configuration.context_tokens`, `kv`, `slots`, `batch`, `speculation`; `workload.long_session_argv` | validator: schema and RULE_256K_CONTEXT |
| cold/warm cache state | `cache.state`, `cache.page_cache_residency_before` | validator: schema; WARM and COLD never pooled (SERIES_CACHE_MIXED) |
| prompt/output token counts | `metrics.turns[].prompt_tokens`, `cached_tokens`, `output_tokens`; `workload.turn1_tokens` | validator: schema, RULE_256K_PROMPT, RULE_TURN1_TOKENS, RULE_TURN_ORDER |
| TTFT, prefill tok/s, decode tok/s and end-to-end wall time | `metrics.turns[].ttft_s`, `prefill_tok_s`, `decode_tok_s`, `wall_s`; `metrics.wall_s`, `wall_norm_s` | validator: schema (values only, no statistics) |
| draft acceptance, expert-cache hit and KV-streaming hit | `metrics.draft_acceptance`, `expert_cache_hit`, `kv_streaming_hit` (null when the arm does not report it) | validator: schema |
| mean, median, percentiles and confidence interval | not stored per record; computed over a series of records | STRA-290 (mean, median, percentiles and CI) |
| quality gate result | `quality` {verdict, tolerance, basis, baseline, tool_call_integrity, optional experimental} | validator: schema (tool_call_integrity is required) |