Skip to content

Metria 0.1.4

This Alpha patch release fixes evidence handling in isolated vLLM verification, artifact-cache downloads, top-k KL scoring and task-check validation. It also ships two staged capabilities for native qualification. Qualified verification profiles, saved-report schemas, and existing method identities retain their scope.

python -m pip install metria==0.1.4
metria --version
metria demo --case pass --output demo-pass

The base package remains dependency-free and supports Python 3.10–3.14. Native backend extras and the development workspace require Python 3.11 or newer.

Fixes

  • An isolated vLLM verification worker that leaves an unreadable run record, or one requested by a different recipe, now produces a complete EXECUTION_FAILED bundle with exit status 5. The untrusted file is retained as <role>.run.json.invalid for inspection and never stands in for the run record. Previously the supervisor raised, published no verification.json, and exited 2 as an invalid configuration.
  • Concurrent artifact downloads preserve a competing cache entry: matching content is verified and reused, invalid content is rejected, and existing links are retained rather than replaced.
  • Top-k KL divergence is computed in log space, so extreme but finite probabilities remain scoreable. Token chunk allocation is bounded by the requested number of chunks.
  • Conversion receipt home paths expand consistently, and dangling receipt links are rejected before native conversion. Invalid or overflowing download and conversion deadlines are reported as input errors.
  • Strict JSON-object task checks reject outputs whose numeric exponents decode to infinity, including nested values.

Staged capabilities

These are implemented and unit-tested but have no retained native qualification. Their results are labeled "qualification": "staged", no policy target consumes them, and the qualified metria verify profiles reject the inputs that enable them. See staged capabilities.

  • Trajectory KL divergence (metria.trajectory_kld 0.1.0) measures how far the next-token distribution moved over decode steps whose context is identical in both runs. It needs the opt-in tools/qualification/staged/llamacpp-topk-capture.patch, layered on the unchanged qualified capture patch so existing provider pins still reproduce.
  • vLLM vllm.scheduler and vllm.cache_layout treatments pass engine arguments and read them back after construction, failing on contradiction. Preflight blocks them unless a run overrides the vllm.staged_treatments capability check.

Maintenance

Every script lock is audited and citation metadata is schema-validated in CI. Package author metadata no longer includes a personal account name.

Scope

Historical qualification records keep their original runtime, model, device, and source pins. This patch does not expand native qualification. Positive FP8 KV-cache qualification still requires SM89 or newer hardware; see FP8 hardware boundary.

See the installed workflow, runtime qualification, and release procedure.