Expand description
harness-lock: an alias for hlock.
Re-exports harness_lock_core, so cargo add harness-lock gives you the same
manifest, lockfile, store, and tuning APIs as hlock, under harness_lock::….
Prefer cargo add hlock in new projects.
Modules§
- adapters
- Harness adapters — a baseline (reference) adapter for the local loop.
- capture
hlock pin: capture the live setup of one harness into a pinnedharness.lock(SPEC §7.8.4).- contract
- The execution contract for code harnesses (SPEC §7.8.3): how hlock runs a
framework agent or a custom script declared under
[harnesses.<id>]. - error
- Errors.
- hash
- Content hashing helpers.
- launch
hlock launch: start a harness session that matches a lock (SPEC §7.8.6).- localize
hlock localize: the best all-local equivalent of a lock (SPEC §7.8.7).- lockfile
- The lockfile:
harness.lock. - manifest
- The manifest:
harness.toml. - ops
- Operational commands built on the tuner:
hlock upgrade(§5.8) andhlock optimize(§5.9, §8.5). - profiles
- Harness and runtime profiles: declarative descriptions of agent harnesses (Claude Code, Codex, Pi, OpenCode, …) and local inference runtimes (Ollama, LM Studio, vLLM, …).
- providers
- LLM providers — a thin abstraction with a deterministic reference provider.
- search
- The search layer: stacks, trials, aggregation, Pareto front, selection.
- store
- Content-addressed blob store.
- sync
hlock sync: rehydrate a locked harness setup (SPEC §7.8.5).- tasks
- Task packs.
- tuner
- The tuner: turns a manifest into an
harness.lock. - worker
- Bridge from the Rust core to the Python worker (
harness_lock.tasks.worker).
Structs§
- Lockfile
- Manifest
- Registry
- All known profiles: the built-ins, overridden or extended by user profile dirs.
- Store
- Write-once, read-by-hash blob store rooted at a directory.
- Tuner
- Aggregated metrics container produced by the tuner.
Enums§
Constants§
- LOCKFILE_
PATH - Default output filename for the lockfile.
- LOCK_
VERSION - Schema version of the
harness.locklockfile. - MANIFEST_
PATH - Default manifest filename.
Traits§
- Harness
Adapter - A harness adapter runs one
(stack, task, seed)and produces aRunOutcome.
Functions§
- content_
hash - Deterministic, canonical JSON hash for a serde value (“sha256:” prefixed).
- sha256_
hex - Hex digest (no prefix) of bytes.
- sha256_
text sha256:<hex>of a string.