Poundlock Toolkit
Find out which models, runtimes and settings actually work on hardware you control. Select a local machine or an SSH target, inspect its hardware, review setup and a bounded test plan, then compare the configurations actually tested. Toolkit is a finite CLI, with no daemon, production scheduler or model manager.
Python 3.11+ on Linux and macOS; Apache-2.0 licensed. Windows is untested. Offline tests cover transport and scoring; they never establish hardware or model quality, which takes a live run. Changes are in CHANGELOG.md.
Start offline
Section titled “Start offline”Install into a virtual environment from PyPI (or pip install . from a checkout).
Installation downloads the schema-validator dependency from your configured package
index. These commands only inspect the local machine; they do not call a model or a
paid API.
python3 -m venv .venv.venv/bin/python -m pip install poundlock-toolkit.venv/bin/poundlock-toolkit inspect.venv/bin/poundlock-toolkit --helpWith the environment activated, try a synthetic end-to-end report. It needs no model, Docker or credentials, and works from any folder:
poundlock-toolkit example openai --output openai.jsonpoundlock-toolkit plan openai.json --output plan.jsonpoundlock-toolkit demo openai.json --output demo.jsonpoundlock-toolkit recommend demo.json --output report.mdpoundlock-toolkit export demo.json --output qualification.jsonpoundlock-toolkit validate qualification.jsonPrepare and test a machine
Section titled “Prepare and test a machine”- Follow local/SSH target selection and installation.
- Read the hardware/backend guidance; keep unknowns explicit.
- Follow the isolated standalone CPU/Pi recipe, or attach to an existing authorized endpoint. Review every setup command and resource bound.
- Review a saved plan, execute explicitly, retain the receipt and inspect failures.
- Compare reports, then keep the private evidence with the configuration you deploy.
To decide what to run and how to read the result, start with what to test and how to score it.
Examples contain placeholder model identities and image digests. Replace them with verified artifacts before execution. No model weights, drivers or infrastructure services are installed automatically. The standalone recipe downloads zero bytes; its explicit prerequisite preparation has separate download and build costs.
Tool-call schema adherence
Section titled “Tool-call schema adherence”Measure nested tool-call JSON Schema adherence directly, locally or over SSH, without Pi or Docker. Repeated smoke or longer conversation trials score native Ollama and OpenAI-compatible calls separately, retain invalid nested strings as failures, and export content-free field/type diagnostics.
Existing endpoint
Section titled “Existing endpoint”Write an example into a private folder and edit it (or use ollama;
poundlock-toolkit example lists them all):
mkdir -m 700 privatepoundlock-toolkit example openai --output private/endpoint.jsonSet the endpoint, advertised model ID, revision, quantization, backend build
(backend.version, optional backend.commit), serving application release
(backend.application: {name, version}, or null when served directly), template checksum, context, reasoning and inventory. Preserve unknowns as null.
OpenAI bases include /v1; native Ollama bases use the server root. With
reasoning: "off" the OpenAI boundary omits reasoning_effort, which lets thinking
models such as Qwen 3.5 on Ollama think anyway; set settings.reasoning_off_effort
to "none" to send it explicitly (direct requests and Pi). Destination and
cost declarations express operator knowledge and authority, independently of URLs.
poundlock-toolkit plan private/endpoint.json --output private/plan.jsonpoundlock-toolkit evaluate private/endpoint.json --plan private/plan.json --execute --output private/run.jsonpoundlock-toolkit recommend private/run.json --output private/report.mdpoundlock-toolkit export private/run.json --output private/qualification.jsonTwo measurements are opt-in, and each is part of the reviewed plan. Set
limits.prefix_cache_probe_enabled to send four extra unscored requests that
measure the prefix cache instead of taking settings.prefix_cache on trust; the
report shows the measured and declared values side by side and flags a mismatch, and
says separately what an edit inside the last message cost. Add
"memory_probe": {"pid": 1234} (or {"process": "llama-server"}, which must match
exactly one process) to sample that local server process’s memory during the run:
highest sampled values only, for a loopback endpoint only, and unknown everywhere
else. See methodology for exactly what each does and does not
show.
credential_env names a secret-manager-supplied variable for direct checks; never
put the secret in a file or argument. Pi requires the isolated unauthenticated
boundary in the standalone recipe and refuses credential-protected endpoints.
The complete configuration must match the saved plan; otherwise evaluate exits 4
and names the drifted configuration sections. Without --execute, a
pending-consent result exits 3. Add --readiness-only to both plan and evaluate for
one model-list request with no inference. A readiness pass is not qualification.
model.id must be a name the server lists (GET /v1/models rows, or Ollama’s
/api/tags); otherwise readiness fails with model_not_listed. Toolkit never
substitutes a name.
Exit codes
Section titled “Exit codes”poundlock-toolkit --help lists the public CLI codes:
| Code | Meaning |
|---|---|
| 0 | Command or selected attempts succeeded |
| 1 | An evaluation contains a failure or skip |
| 2 | Invalid input, unmet prerequisites, or a plan with blockers |
| 3 | Pending consent (evaluate without --execute) |
| 4 | A reviewed assumption drifted or an attach-time check failed; the JSON output names the check, what drifted and the next required step |
| 130 | Cancelled |
recommend accepts several results, retaining their separate identities, repetitions,
failures and unknowns. Reports qualify only the narrow fixtures actually tested.
Public exports omit arbitrary endpoint/model labels; retain private configurations
and mappings for reproducibility. Review even allowlisted exports before disclosure.
recommend --format json writes the same verdicts as data for other programs: levels,
pass and attempt counts, investigation pairs and tool-schema counts, in the versioned
shape urn:poundlock-toolkit:recommendation:1
(schema). Version 1 only gains
optional fields. The supported interfaces are the CLI, this summary and the result
schemas; Toolkit’s Python modules can change between releases.