Files
leleka/scripts
Pavlo RatushnyiandClaude Sonnet 5.5 7736b2ced9 STRA-325: engine start-up metadata lines (leleka-serve meta:)
The serving engine now prints, once at start-up on stderr, a stable machine-parsable
line set beside the unchanged cpu:/gpu: kernel lines:
  meta: build  (git commit, dirty flag, target triple, cargo features, profile name,
                profile file hash if the launcher passes it, hash of the effective values)
  meta: model  (the RECORDED model digest, file size and mtime; nothing is hashed)
  meta: config (context, chunk, prefix block/tail, cpu_workers, KV mode, expert tier,
                speculation)
  meta: cache  (prefix-cache entries/bytes, EMPTY/WARM)
New: crates/leleka-runtime/build.rs, src/serve_meta.rs (pure formatting + unit tests
pinned to scripts/e2e/evidence/golden/engine_meta_sample.txt), two call sites in
backend_original_serve.rs, one Run field set in backend.rs. No behaviour or inference
change; no engine/strata, PTX or provenance change.

capture.py reads build/model/config from either the older run-facts lines or the meta
lines and cross-checks an engine meta cache line; engine_meta_lines.md documents the
fields; test_capture.py gains TestEngineMetaLines.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 21:54:35 +01:00
..
2026-10-25 14:07:18 +01:00