Skip to main content

Crate harness_lock

Crate harness_lock 

Source
Expand description

harness-lock: lock your agent into place.

This crate is the published Rust entry point for harness-lock. It re-exports harness_lock_core, so cargo add harness-lock gives you the manifest, lockfile, store, and tuning APIs under harness_lock::…. The same API is also published under the shorter name hlock.

Modules§

adapters
Harness adapters — a baseline (reference) adapter for the local loop.
error
Errors.
hash
Content hashing helpers.
lockfile
The lockfile: harness.lock.
manifest
The manifest: harness.toml.
ops
Operational commands built on the tuner: hlock upgrade (§5.8) and hlock optimize (§5.9, §8.5).
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.
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
Store
Write-once, read-by-hash blob store rooted at a directory.
Tuner
Aggregated metrics container produced by the tuner.

Enums§

Backend
Where the tuner executes.
Error

Constants§

LOCKFILE_PATH
Default output filename for the lockfile.
LOCK_VERSION
Schema version of the harness.lock lockfile.
MANIFEST_PATH
Default manifest filename.

Traits§

HarnessAdapter
A harness adapter runs one (stack, task, seed) and produces a RunOutcome.

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.

Type Aliases§

Result