KV Tool-Loop Stability
QA orchestration follows ../manage-ci/SKILL.md. The typed Rust command
cargo xtool automation stability kv-tool-loop owns this certification.
Use this skill when changing Skippy KV slot cleanup, prefix-cache lookup,
OpenAI tool-loop behavior, agent harnesses, or any runtime path related to
llama_decode failed, failed to find a memory slot, low same-prefix cache
reuse, or proactive eviction failures.
Workflow
- Attach to an existing OpenAI-compatible
/v1endpoint. This harness does
not start nodes, load models, join meshes, or change routing policy.
- Prefer a direct model when reproducing Skippy KV/cache issues. Use
auto
only when intentionally validating routed behavior.
- Run
--print-planfirst and confirm the models, attempts,
pressure_turns, timeout, cache thresholds, output directory, and native
logs.
- Pass the active Skippy native log when available. The harness checkpoints
native logs at run start and scans appended bytes, rescanning a log when
it is created, replaced, truncated, or rewritten after the checkpoint.
- Preserve the evidence directory:
manifest.json,results.jsonl,
summary.json, summary.md, and the transcript paths selected by
manifest.json. Each run writes a fresh transcripts/run-*/ directory;
preexisting evidence is preserved.
Commands
Preview the run without touching the endpoint:
cargo xtool automation stability kv-tool-loop \
--base-url http://127.0.0.1:9337/v1 \
--models Qwen/Qwen2.5-3B-Instruct-GGUF:q4_k_m \
--attempts 5 \
--pressure-turns 8 \
--timeout 180 \
--min-cached-tokens 2048 \
--suffix-prefill-limit 256 \
--native-log ~/.mesh-llm/runtime/<pid>/logs/skippy-native.log \
--output-dir target/kv-tool-loop-stability/local \
--print-plan
Run the certification:
cargo xtool automation stability kv-tool-loop \
--base-url http://127.0.0.1:9337/v1 \
--models Qwen/Qwen2.5-3B-Instruct-GGUF:q4_k_m \
--attempts 5 \
--pressure-turns 8 \
--timeout 180 \
--min-cached-tokens 2048 \
--suffix-prefill-limit 256 \
--native-log ~/.mesh-llm/runtime/<pid>/logs/skippy-native.log \
--output-dir target/kv-tool-loop-stability/local
Reporting Rules
- Report the model list, attempts, pressure turns, timeout, cache thresholds,
success rate, native log paths, and output directory.
- Include the summary verdict and failing phase details from
summary.mdor
summary.json.
- Do not paste full prompts, auth headers, huge stable prefixes, or private
endpoint data.
- If no native log is available, say that native-log scanning was not run.
Validation
When changing this harness, run:
just with-lld cargo test --locked -p xtask --bin xtask --test migration_stability stability -- --test-threads=1
just with-lld cargo clippy --locked -p xtask --all-targets -- -D warnings
just ci-validate