Documentation
¶
Overview ¶
compaction_contextbench.go - `compaction-eval contextbench`: drive generated ContextBench tasks against one agent seat and grade them from the context the harness kept, so the compaction ladder and the context pager can be measured on long-horizon work. See internal/compeval/contextbench_run.go for the run shape and docs/systems/coding-agent.md for what each family measures.
compaction-eval contextbench [--family all|kv_store|log_triage|needle_retention|sudoku_sketchpad]
[--level NAME] [--tasks N] [--seed S] [--endpoint URL] [--model ID] [--out results.json]
[--budget N] [--reserve N] [--delivery tool_result|user] [--gcf] [--skeleton]
[--max-turns N] [--max-out N] [--pass-at X] [--request-timeout S] [--config FILE]
It runs a model; the tests never do, they inject a fake seat. With no seat reachable every task is infra_error, never task_fail.
compaction_eval.go — the `compaction-eval` verb: the OmniRoute-harvest Phase-B harness over a pinned transcript corpus (internal/compeval).
compaction-eval harvest --traces DIR --out corpus.jsonl [--min-turns N] [--max-entries N] compaction-eval run --corpus C [--gcf] [--skeleton] [--search-results] [--log-collapse] [--json] compaction-eval freeze --corpus C [--gcf] [--skeleton] [--search-results] [--log-collapse] --out baseline.json compaction-eval check --corpus C --baseline B [--tolerance 0.02] compaction-eval ab --corpus C [--gcf] [--skeleton] [--search-results] [--log-collapse] (needs the live endpoint) compaction-eval kvbench --corpus C [--gcf] [--skeleton] [--search-results] [--log-collapse] [--arms off,on] [--nonce N] [--out report.json] (needs the live endpoint) compaction-eval contextbench [--family F] [--tasks N] [--seed S] [--out results.json] (needs the live endpoint)
harvest builds a REAL replay corpus from standalone agent trace files with redaction-at-harvest (see internal/compeval/harvest.go) — the produced file is machine-local eval data, never committed. run/freeze/check are DETERMINISTIC and model-free (the replay measures with the production ladder + its own token estimator). ab scores full-vs-compacted through the live pipeline behind the control-pair self-test gate — a scorer that cannot rank a known-good/known-degraded pair aborts the A/B rather than producing a confident number from a blind judge. Every artifact is stamped with the corpus hash; a PII finding refuses the whole corpus.
gate_cmd.go — the `gate` verb: the one measurement gate (internal/eval/gate.go) and its pre-registration, from the command line.
gate freeze --prereg P --corpus C [--incumbent ARM] --out BASELINE gate check --baseline BASELINE [--expect-hash SHA256] gate verdict --baseline BASELINE --input INPUT [--require-adopt] gate selftest --pairs PAIRS --scorer ID [--out RECEIPT] gate schema
Exit codes (every failure of `verdict` and of `selftest` that is not a finding is 2, so that 1 can only mean a finding: a verdict that is not ADOPT, or a scorer that failed its self-test):
0 the command ran; for verdict, a verdict was produced (any of ADOPT, BLOCK, INCONCLUSIVE); for selftest, the scorer ranked every control pair and the receipt says passed 1 verdict --require-adopt and the verdict is not ADOPT; selftest and the scorer mis-ranked a pair (the result, the receipt with passed false, is still printed) 2 a refusal: a bad hash, a bad receipt, a malformed or unreadable input, a baseline that is not the frozen bytes, a freeze the gate cannot honour, a selftest that could not run (no pairs, an unknown scorer, a scorer that returned an error, a build that cannot be hashed), a result that could not be written, or a usage error
-h and --help print the usage and exit 0, as the other verbs do whose flags are parsed with flag.ExitOnError.
The verb reads the files it is named and writes at most one file: freeze's --out, which is created exclusively (a pre-registration is written once; a changed one is a new file with a new hash), or selftest's --out, which replaces what is there (a receipt is the latest answer, so a failing run must not leave an older passing one behind). It prints no timestamp. The gate reads no config; selftest alone reads one, to reach the seat of a scorer that calls one.
Command local-offload delegates short-context grunt work (summarize, classify, extract, triage) to a free local model, exposed as both a CLI and an MCP server. It never calls a cloud model: on failure it returns a structured defer so the caller (Claude) handles the task itself.
recipe_audit_cmd.go — the `recipe-audit` verb: run a contract set with and without a recipe on one seat, under the GPU lease, judged by the acceptance DSL, and publish the recipe only on a measurement-gate ADOPT with steps no worse than the incumbent's. Anything else demotes it.
recipe-audit --recipe ID --seat ALIAS --seat-tag TAG --contracts TASKS.json --baseline BASELINE.json
--engine-build STRING [--store DIR] [--attempts N] [--input-out FILE] [--config PATH]
The A/B. The incumbent arm is the seat as it is: the box's own agent_env_rules, untouched. The candidate arm is the same seat with the recipe's rule set in their place (the semantics of `local-agent --env-rules`, which replaces the table). Each task of the contracts file runs on both arms, attempt after attempt, in an order that alternates by task so neither arm always goes first.
The judge is the acceptance DSL: a finished run passes (score 1) when every acceptance check of its contract passes and fails (score 0) otherwise. A run that did not reach a verdict about the task is not scored: a runner error or an infrastructure, config, capacity or contract defer is infra_error, and a wall timeout is timeout; the gate counts them and puts the candidate's at the worst score. A spent budget IS a verdict about the task when the seat spent it and did not finish (the step budget, a tool call cut at the completion budget twice, a final answer starved by the think block), so it is task_fail on both arms; a budget a clock or a caller ended is a timeout.
The decision is the gate's, built exactly as `gate verdict` builds it: the baseline is the frozen pre-registration (eval.CheckBaseline), the input is an eval.GateInput, the judgement is eval.Gate, and the result carries the build that ran it. --input-out writes the input, so `gate verdict --baseline B --input FILE` gives the same result. The recipe is published only when the verdict is ADOPT AND the mean steps of the candidate, over the tasks both arms finished, are no worse than the incumbent's. Steps are the verb's own check beside the gate: the gate's efficiency classes are tokens, money and memory, never a count of steps. Everything else demotes. A demoted recipe stays in the store with the audit that demoted it; nothing is deleted.
The lease. The verb refuses to run unless this process runs under a live GPU lease: no GPU_LEASE_EPOCH in the environment, or an epoch no live lease carries, is a typed refusal with exit 2, before the seat is asked. The lease is asked again before every seat call, and one that moved on mid-audit ends it with the same exit and records nothing. The verb never acquires a lease: run it as `local-offload gpu reserve ... -- local-offload recipe-audit ...`.
The seat. The era of the comparison is the seat that served the runs: the harness pins it (weights, quant, engine build, window, template) on every served run's wire result, and the verb stamps both arms with that pin beside the env-rule table each ran under. The pin must be the same on every served run of both arms: one that moves mid-audit (a model swapped behind the alias), a served run with none, or an audit in which nothing was served ends it with exit 2 and records nothing.
Exit codes: 0 the audit ran to the end and the store records its result (published or demoted); 1 the audit ran but its result could not be recorded or the seat could not be opened; 2 a refusal (usage, no lease, a lease not held or lost, a seat tag that is not the recipe's, input the gate or the store will not take, a seat whose pin moved or is missing). No refusal records anything. Only lease_lost and seat_pin can come after a seat call (and the gate's own refusal of the runs, which the checks before the A/B leave nothing to trigger); every other refusal comes before the first.
trace_corpus.go — the `trace-corpus` verb: a read-only readout over RECORDED agent runs, shaped like compaction-eval (harvest, freeze, check) and kept apart from it.
trace-corpus harvest [--traces DIR] [--delegation-log DIR] --out corpus.jsonl [filters] trace-corpus readout --corpus C [--out FILE] trace-corpus freeze --corpus C --out baseline.json trace-corpus check --corpus C --baseline B
Two kinds of record hold agent runs, and harvest reads both without touching the ledger:
- agent traces: the per-goal JSON files the standalone queue drainer writes (the files compaction-eval harvest reads). They hold the final transcript and, from the release that added this verb, the run's pager and prefill reports.
- the delegation log: one JSONL row per agent subtask, written by the delegator. It holds the wire result (step trace, prefill accounting and, from the same release, the pager report), not the transcript.
The readout answers four questions: how many runs are trace-bearing, how often evicted content was fetched back (the pager re-fetch rate against the gate agent.PagerGate), how often the compaction ladder ran, and how many tokens were prefilled. A run recorded before a field existed has no value for it, and that is reported as UNRECORDED: every rate is a pointer that serializes as null when nothing was recorded, so a missing measurement can never read as 0.
Like compaction-eval, harvest redacts at harvest (the same Redactor and vet table), stamps the corpus with its sha256, and the corpus is machine-local eval data, never committed. readout, freeze and check are deterministic and model-free; the report has no timestamps, and a frozen baseline must be reproduced byte for byte by check.
Source Files
¶
- acceptance_cmd.go
- agent_audit_cmd.go
- audit_config.go
- cli_support.go
- compaction_contextbench.go
- compaction_eval.go
- confhead_ab.go
- confhead_cmd.go
- data_cmd.go
- delegate_cmd.go
- doctor_backends.go
- doctor_cmd.go
- doctor_fleetcapacity.go
- doctor_lanip.go
- doctor_powerprofile.go
- doctor_powerprofile_boot_other.go
- doctor_seathostram.go
- fleet_displaywatch.go
- fleet_jobs.go
- fleet_reclaim.go
- fleet_serve_cmd.go
- fleet_smoke_cmd.go
- fleet_ui_cmd.go
- forecast_serve.go
- gate_cmd.go
- generate_audio_cmd.go
- generate_image_batch.go
- generate_image_cmd.go
- generate_video_cmd.go
- gpu_cards.go
- gpu_cmd.go
- gpu_doctor.go
- gpu_drain.go
- gpu_faults.go
- gpu_faults_health.go
- gpu_foreign.go
- gpu_hide_other.go
- gpu_hostram.go
- gpu_hostram_await.go
- gpu_instances.go
- gpu_leasecard.go
- gpu_ownership.go
- gpu_progress.go
- gpu_reserve_devices.go
- gpu_signals.go
- gpu_terms.go
- gpu_tree.go
- gpu_yield.go
- gpu_yield_other.go
- ingress_note.go
- install_client.go
- install_cmd.go
- install_detect.go
- install_forecast.go
- install_hyperframes.go
- install_render.go
- install_seatbinding.go
- install_vllmseat.go
- learn_cmd.go
- ledger_failures.go
- ledger_lifetime_caveat.go
- ledger_traffic.go
- loupe.go
- loupe_actuary.go
- loupe_agreement.go
- loupe_prefill.go
- main.go
- node_swap_cmd.go
- power_profile_health.go
- recipe_audit_cmd.go
- report.go
- report_cmd.go
- rig_cmd.go
- task_cmd.go
- top_cmd.go
- trace_corpus.go
- update_cmd.go
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
changelog
command
Command changelog assembles the changelog fragments and checks them.
|
Command changelog assembles the changelog fragments and checks them. |
|
genexample
command
Command genexample regenerates config.example.json from config.Default() (LO-17: the committed example had drifted — escalation_model still said gemma4-26b-a4b while the code default was an older escalation model, and ~20 newer keys were missing entirely).
|
Command genexample regenerates config.example.json from config.Default() (LO-17: the committed example had drifted — escalation_model still said gemma4-26b-a4b while the code default was an older escalation model, and ~20 newer keys were missing entirely). |
|
gentiers
command
Command gentiers writes docs/tiers/ from setup/templates/profiles.json.
|
Command gentiers writes docs/tiers/ from setup/templates/profiles.json. |
|
leakdigest
command
Command leakdigest builds and checks the digest file of the leak gate and is the local scanner behind it.
|
Command leakdigest builds and checks the digest file of the leak gate and is the local scanner behind it. |
|
local-agent
command
Command local-agent is the local Agent-loop CLI: an agent that plans with a local model and acts through tools confined to the workspace.
|
Command local-agent is the local Agent-loop CLI: an agent that plans with a local model and acts through tools confined to the workspace. |
|
opencode-context
command
Command opencode-context is a read-only context instrument for opencode.
|
Command opencode-context is a read-only context instrument for opencode. |
|
internal
|
|
|
accelclient
Package accelclient calls an accelerator's HTTP sidecar over loopback — the Hailo-8L's (server/http_server.py in the Hailo repo) and the Coral Edge TPU's (accelerators/coral/server.py here), which speak one wire contract.
|
Package accelclient calls an accelerator's HTTP sidecar over loopback — the Hailo-8L's (server/http_server.py in the Hailo repo) and the Coral Edge TPU's (accelerators/coral/server.py here), which speak one wire contract. |
|
accelremote
Package accelremote forwards ONE accelerator tool call to the fleet node that carries the device (Coral design Phase B, 0.115.0).
|
Package accelremote forwards ONE accelerator tool call to the fleet node that carries the device (Coral design Phase B, 0.115.0). |
|
acceptance
Package acceptance answers one question a node must answer BEFORE a job is dispatched to it: can THIS process, running as THIS identity, actually do the work its config advertises?
|
Package acceptance answers one question a node must answer BEFORE a job is dispatched to it: can THIS process, running as THIS identity, actually do the work its config advertises? |
|
agent
degenerate.go — the NaN shape, named (register D-118).
|
degenerate.go — the NaN shape, named (register D-118). |
|
askcache
Package askcache is offload_ask's in-process, content-addressed result cache: an identical repeat of a call returns the answer the seat already produced instead of spending the seat again.
|
Package askcache is offload_ask's in-process, content-addressed result cache: an identical repeat of a call returns the answer the seat already produced instead of spending the seat again. |
|
askjob
Package askjob turns a one-line question plus a file list into a FULL delegation contract — the whole of offload_ask's contribution.
|
Package askjob turns a one-line question plus a file list into a FULL delegation contract — the whole of offload_ask's contribution. |
|
audioio
Package audioio converts a local audio (or video) file into the 16 kHz mono 16-bit PCM WAV that whisper.cpp expects, using ffmpeg.
|
Package audioio converts a local audio (or video) file into the 16 kHz mono 16-bit PCM WAV that whisper.cpp expects, using ffmpeg. |
|
backendchain
Package backendchain answers, for every lane and every seat of a node, one question: which serving engine is answering for it right now, and how do we know.
|
Package backendchain answers, for every lane and every seat of a node, one question: which serving engine is answering for it right now, and how do we know. |
|
breaker
Package breaker provides a per-tier circuit breaker with a sliding-window failure counter, hand-rolled with no external dependencies.
|
Package breaker provides a per-tier circuit breaker with a sliding-window failure counter, hand-rolled with no external dependencies. |
|
buildinfo
Package buildinfo carries the compiled-in version and the running binary's self-hash.
|
Package buildinfo carries the compiled-in version and the running binary's self-hash. |
|
cache
Package cache is a bbolt content-hash cache: identical (task+input+params+ model+grammar) requests return the stored result and skip the model entirely.
|
Package cache is a bbolt content-hash cache: identical (task+input+params+ model+grammar) requests return the stored result and skip the model entirely. |
|
calibration
Package calibration implements Phase 2 conformal threshold calibration for the local-offload harness.
|
Package calibration implements Phase 2 conformal threshold calibration for the local-offload harness. |
|
changelog
Package changelog is the rule set behind the changelog fragments: one file per change under changes/unreleased/, assembled under a new version heading at the release step by cmd/changelog.
|
Package changelog is the rule set behind the changelog fragments: one file per change under changes/unreleased/, assembled under a new version heading at the release step by cmd/changelog. |
|
comfyinst
Package comfyinst stops the ComfyUI instances a GPU lease's runners kept alive (plan P13).
|
Package comfyinst stops the ComfyUI instances a GPU lease's runners kept alive (plan P13). |
|
compeval
abtest.go — the task-outcome A/B: the same entries scored FULL vs COMPACTED by an injected model-backed scorer, with the control-pair SELF-TEST gate in front.
|
abtest.go — the task-outcome A/B: the same entries scored FULL vs COMPACTED by an injected model-backed scorer, with the control-pair SELF-TEST gate in front. |
|
composebundle
Package composebundle carries a HyperFrames project between machines: Pack turns a project directory into a gzip-compressed tar, Extract unpacks one into a fresh directory, and Confine checks that the project only refers to files inside itself (ADR 0071).
|
Package composebundle carries a HyperFrames project between machines: Pack turns a project directory into a gzip-compressed tar, Extract unpacks one into a fresh directory, and Confine checks that the project only refers to files inside itself (ADR 0071). |
|
composeremote
Package composeremote places a composition on a fleet node and brings the video back, so a machine with no composition lane of its own (a thin client) calls offload_compose_video exactly as a render node does (ADR 0071).
|
Package composeremote places a composition on a fleet node and brings the video back, so a machine with no composition lane of its own (a thin client) calls offload_compose_video exactly as a render node does (ADR 0071). |
|
confhead
Package confhead implements a per-task logistic correctness head.
|
Package confhead implements a per-task logistic correctness head. |
|
confidence
Package confidence derives a decision-confidence signal from a grammar- constrained model's per-token logprobs.
|
Package confidence derives a decision-confidence signal from a grammar- constrained model's per-token logprobs. |
|
config
Package config loads harness configuration.
|
Package config loads harness configuration. |
|
contextbudget
Package contextbudget trims oversized input before it reaches the local model, keeping requests inside the model's context window.
|
Package contextbudget trims oversized input before it reaches the local model, keeping requests inside the model's context window. |
|
core
Package core holds the shared types used across the local-offload harness.
|
Package core holds the shared types used across the local-offload harness. |
|
datahome
Package datahome answers the question the operator rule "C: holds Windows and program installs, never data" leaves open on a Windows node: where does this harness keep its data, is any of it on the OS drive, and how does it move?
|
Package datahome answers the question the operator rule "C: holds Windows and program installs, never data" leaves open on a Windows node: where does this harness keep its data, is any of it on the OS drive, and how does it move? |
|
delegate
intent.go — the delegator-death durability half of the consolidated-queue decision (operator-approved Option A, 2026-08-27): each delegator PERSISTS its remote-dispatch intent before work leaves the box, and a later process RECOVERS results for jobs whose delegator died mid-poll.
|
intent.go — the delegator-death durability half of the consolidated-queue decision (operator-approved Option A, 2026-08-27): each delegator PERSISTS its remote-dispatch intent before work leaves the box, and a later process RECOVERS results for jobs whose delegator died mid-poll. |
|
displaystate
Package displaystate is what the display layer's post-admission watcher (internal/displaywatch, ADR 0075) leaves for everyone else: the small state file under the machine-wide state root that carries its heartbeat, its last action and whether it can see llama-swap, and the reader that turns that file into "is a watcher alive".
|
Package displaystate is what the display layer's post-admission watcher (internal/displaywatch, ADR 0075) leaves for everyone else: the small state file under the machine-wide state root that carries its heartbeat, its last action and whether it can see llama-swap, and the reader that turns that file into "is a watcher alive". |
|
displaywatch
Package displaywatch is the display layer's guard AFTER admission (ADR 0075).
|
Package displaywatch is the display layer's guard AFTER admission (ADR 0075). |
|
embedmemo
Package embedmemo memoizes embedding vectors by exact input bytes so a text that has already been embedded is never embedded again.
|
Package embedmemo memoizes embedding vectors by exact input bytes so a text that has already been embedded is never embedded again. |
|
eval
Package eval is the harness's code-based quality evaluation: replay a curated per-task gold set through the live cascade and score with deterministic graders (grounding for extract/summarize, label-match for classify/triage).
|
Package eval is the harness's code-based quality evaluation: replay a curated per-task gold set through the live cascade and score with deterministic graders (grounding for extract/summarize, label-match for classify/triage). |
|
exemplars
Package exemplars implements BM25-based few-shot exemplar mining with greedy-diverse k-center selection.
|
Package exemplars implements BM25-based few-shot exemplar mining with greedy-diverse k-center selection. |
|
fakeexe
Package fakeexe is test support for tests that need an executable named like a tool (ffmpeg, ffprobe) which is the running test binary itself, re-executed as the stand-in (the helper-process trick: the package's init or TestMain sees the tool's name in os.Args[0] and answers as the tool).
|
Package fakeexe is test support for tests that need an executable named like a tool (ffmpeg, ffprobe) which is the running test binary itself, re-executed as the stand-in (the helper-process trick: the package's init or TestMain sees the tool's name in os.Args[0] and answers as the tool). |
|
fleetnode
The fleet "chat" lane (C-41b): this node forwards ONE OpenAI chat completion, for a model its own llama-swap serves, on behalf of a delegator whose local seat would make the call wait.
|
The fleet "chat" lane (C-41b): this node forwards ONE OpenAI chat completion, for a model its own llama-swap serves, on behalf of a delegator whose local seat would make the call wait. |
|
fleetqueue
HTTP surface of the queue holder.
|
HTTP surface of the queue holder. |
|
fleetview
Package fleetview is the DELEGATOR-side operator overview: it polls every configured node's /fleet/health and /fleet/jobs, keeps a bounded per-node history for sparklines, folds in the delegation-log corpus, and exposes a single Overview snapshot for Task 6's embedded page to serve as JSON.
|
Package fleetview is the DELEGATOR-side operator overview: it polls every configured node's /fleet/health and /fleet/jobs, keeps a bounded per-node history for sparklines, folds in the delegation-log corpus, and exposes a single Overview snapshot for Task 6's embedded page to serve as JSON. |
|
floors
Package floors reads setup/floors.json, the one file that may name a build number.
|
Package floors reads setup/floors.json, the one file that may name a build number. |
|
forecastclient
Package forecastclient calls the Timestral forecast server (internal/forecastserve) over llama-swap's /upstream/<model>/v1/forecast passthrough: one JSON object in, one JSON object out.
|
Package forecastclient calls the Timestral forecast server (internal/forecastserve) over llama-swap's /upstream/<model>/v1/forecast passthrough: one JSON object in, one JSON object out. |
|
forecastremote
Package forecastremote is the CALLER side of the fleet forecast lane: it decides where ONE time-series forecast runs (this box's own forecast seat, or a fleet node's) and drives the wire when the answer is a node.
|
Package forecastremote is the CALLER side of the fleet forecast lane: it decides where ONE time-series forecast runs (this box's own forecast seat, or a fleet node's) and drives the wire when the answer is a node. |
|
forecastserve
Package forecastserve places and runs the Timestral forecast server: the python file it ships (embedded, so a binary drop carries the server that matches it), the venv `install forecast` builds, and the launcher llama-swap's seat runs (`local-offload forecast-serve`).
|
Package forecastserve places and runs the Timestral forecast server: the python file it ships (embedded, so a binary drop carries the server that matches it), the venv `install forecast` builds, and the launcher llama-swap's seat runs (`local-offload forecast-serve`). |
|
gbnf
Package gbnf generates GBNF grammars that constrain llama.cpp output to a fixed JSON shape.
|
Package gbnf generates GBNF grammars that constrain llama.cpp output to a fixed JSON shape. |
|
gbnf/gbnftest
Package gbnftest is a small reference interpreter for the GBNF subset that internal/gbnf emits: it answers "does this grammar admit exactly this text?", so a test can check what a grammar-constrained seat could have written without a llama.cpp build in the loop.
|
Package gbnftest is a small reference interpreter for the GBNF subset that internal/gbnf emits: it answers "does this grammar admit exactly this text?", so a test can check what a grammar-constrained seat could have written without a llama.cpp build in the loop. |
|
gcf
Package gcf implements a LOSSLESS columnar re-encoding of homogeneous JSON arrays — the highest-leverage harvest from the OmniRoute compression study (see OMNIROUTE-HARVEST-DESIGN-2026-07-23.md).
|
Package gcf implements a LOSSLESS columnar re-encoding of homogeneous JSON arrays — the highest-leverage harvest from the OmniRoute compression study (see OMNIROUTE-HARVEST-DESIGN-2026-07-23.md). |
|
gpuactivity
Package gpuactivity answers one question about this box's cards: WHAT is the harness doing on them right now — not merely whether something holds them.
|
Package gpuactivity answers one question about this box's cards: WHAT is the harness doing on them right now — not merely whether something holds them. |
|
gpualloc
Package gpualloc is where a request for cards becomes a decision: the live state the card allocator reads (the card table, the leases, the quarantine sidecars, resident seats, the display card's cap, host RAM), the choice itself (PickAuto), and the rule that says which seats a lease on some cards may unload (LeaseScope, UnloadModels).
|
Package gpualloc is where a request for cards becomes a decision: the live state the card allocator reads (the card table, the leases, the quarantine sidecars, resident seats, the display card's cap, host RAM), the choice itself (PickAuto), and the rule that says which seats a lease on some cards may unload (LeaseScope, UnloadModels). |
|
gpucards
Package gpucards is the per-card view of the GPU lease: the card table joined with the live leases, one row per card, the per-lease device sets and the queue.
|
Package gpucards is the per-card view of the GPU lease: the card table joined with the live leases, one row per card, the per-lease device sets and the queue. |
|
gpugen
Package gpugen is the shared Go exec wrapper for every LOCAL GPU generation runner (image / video / audio).
|
Package gpugen is the shared Go exec wrapper for every LOCAL GPU generation runner (image / video / audio). |
|
gpulease
Package gpulease owns the machine-wide, crash-safe, FENCED GPU lease that every GPU consumer takes regardless of how its work arrived.
|
Package gpulease owns the machine-wide, crash-safe, FENCED GPU lease that every GPU consumer takes regardless of how its work arrived. |
|
gpulock
Package gpulock is the READ-ONLY Go view of the GPU lease that internal/gpulease owns and that every GPU consumer takes.
|
Package gpulock is the READ-ONLY Go view of the GPU lease that internal/gpulease owns and that every GPU consumer takes. |
|
gpuprobe
Package gpuprobe is the LEAF that owns the machine's live GPU and host-RAM readers: the nvidia-smi per-device query (its command line, its PATH fallback, its CSV parser) and the free-host-RAM reader.
|
Package gpuprobe is the LEAF that owns the machine's live GPU and host-RAM readers: the nvidia-smi per-device query (its command line, its PATH fallback, its CSV parser) and the free-host-RAM reader. |
|
gpuprobe/smitest
Package smitest is test support for code that reads the card table through nvidia-smi: a stand-in nvidia-smi that is the test binary itself, put first on PATH, answering as slowly as a loaded box does.
|
Package smitest is test support for code that reads the card table through nvidia-smi: a stand-in nvidia-smi that is the test binary itself, put first on PATH, answering as slowly as a loaded box does. |
|
grounding
Package grounding is the harness's free, deterministic quality check: did the model invent values not present in the source? No inference, sub-millisecond string ops.
|
Package grounding is the harness's free, deterministic quality check: did the model invent values not present in the source? No inference, sub-millisecond string ops. |
|
health
Package health provides offline health monitoring for the local-offload harness.
|
Package health provides offline health monitoring for the local-offload harness. |
|
hfinstall
Package hfinstall is the HyperFrames step of the composition lane (ADR 0059) as one implementation: the version read that status and the runner agree on, and the install a deploy runs.
|
Package hfinstall is the HyperFrames step of the composition lane (ADR 0059) as one implementation: the version read that status and the runner agree on, and the install a deploy runs. |
|
hostneed
Package hostneed decides how much host RAM a GPU lease DECLARES (gpulease.Options.HostRAMGiB), the number the grant admits against the available memory (and, taken as the commit unless the caller states one, against physical RAM less the headroom; a commit the caller states is held to the commit limit): gpuprobe.HostRAMAdmitsLoad.
|
Package hostneed decides how much host RAM a GPU lease DECLARES (gpulease.Options.HostRAMGiB), the number the grant admits against the available memory (and, taken as the commit unless the caller states one, against physical RAM less the headroom; a commit the caller states is held to the commit limit): gpuprobe.HostRAMAdmitsLoad. |
|
hostsample
Package hostsample publishes a coarse host CPU % and RAM used/total for /fleet/health.
|
Package hostsample publishes a coarse host CPU % and RAM used/total for /fleet/health. |
|
hwdetect
Package hwdetect classifies a machine into a hardware tier.
|
Package hwdetect classifies a machine into a hardware tier. |
|
imagegen
Package imagegen generates an image from a text prompt by shelling out to the repo's render/comfy-generate.mjs (Node), which wraps the proven comfy-render.mjs with the GPU-lock + ComfyUI start/stop lifecycle.
|
Package imagegen generates an image from a text prompt by shelling out to the repo's render/comfy-generate.mjs (Node), which wraps the proven comfy-render.mjs with the GPU-lock + ComfyUI start/stop lifecycle. |
|
imageio
Package imageio loads a local image (or validates a data URI) into a data:image/...;base64,...
|
Package imageio loads a local image (or validates a data URI) into a data:image/...;base64,... |
|
jobdir
Package jobdir is the ownership marker of a delegator-side job directory under <base>/pipeline-jobs/.
|
Package jobdir is the ownership marker of a delegator-side job directory under <base>/pipeline-jobs/. |
|
judge
Package judge provides local-model judges for the shadow-labeling flywheel: an embeddings-based similarity used to score whether a counterfactual tier's summary agrees with the reference summary (exact-match doesn't work for paraphrase).
|
Package judge provides local-model judges for the shadow-labeling flywheel: an embeddings-based similarity used to score whether a counterfactual tier's summary agrees with the reference summary (exact-match doesn't work for paraphrase). |
|
knn
Package knn implements a zero-training k-nearest-neighbor entry-tier pre-filter over embeddinggemma vectors of past inputs.
|
Package knn implements a zero-training k-nearest-neighbor entry-tier pre-filter over embeddinggemma vectors of past inputs. |
|
kvslot
Package kvslot is the one implementation of llama-server's slot save/restore call (ADR 0056 Layer 2, ADR 0100), shared by the fleet node's HTTP lane (internal/fleetnode) and the agent loop's own retention (internal/pipeline).
|
Package kvslot is the one implementation of llama-server's slot save/restore call (ADR 0056 Layer 2, ADR 0100), shared by the fleet node's HTTP lane (internal/fleetnode) and the agent loop's own retention (internal/pipeline). |
|
leakgate
Package leakgate is the pure scanner behind the H-55 leak gate.
|
Package leakgate is the pure scanner behind the H-55 leak gate. |
|
ledger
Package ledger records per-call telemetry to an append-only JSONL file and reports estimated tokens (and dollars) kept out of Opus — how the harness proves it earns its keep.
|
Package ledger records per-call telemetry to an append-only JSONL file and reports estimated tokens (and dollars) kept out of Opus — how the harness proves it earns its keep. |
|
llamaclient
Package llamaclient calls a llama.cpp server to generate grammar-constrained output.
|
Package llamaclient calls a llama.cpp server to generate grammar-constrained output. |
|
mcpserver
Package mcpserver exposes the offload pipeline as MCP tools over stdio so Claude Code can delegate grunt work.
|
Package mcpserver exposes the offload pipeline as MCP tools over stdio so Claude Code can delegate grunt work. |
|
mediacap
Package mediacap DERIVES this machine's media capability from its config, using the same bindings the pipeline routes on — so no surface has to DECLARE what the box can do.
|
Package mediacap DERIVES this machine's media capability from its config, using the same bindings the pipeline routes on — so no surface has to DECLARE what the box can do. |
|
mediahash
Package mediahash content-addresses a media file for cache-key purposes.
|
Package mediahash content-addresses a media file for cache-key purposes. |
|
mediaops
Package mediaops implements the offload_edit_image / offload_media engines: deterministic image edits (PIL worker + GIMP design-file conversion) and ffmpeg av operations.
|
Package mediaops implements the offload_edit_image / offload_media engines: deterministic image edits (PIL worker + GIMP design-file conversion) and ffmpeg av operations. |
|
mediaremote
Package mediaremote places one image, video, character-animation, audio or ComfyUI-graph job on a fleet node and brings the output back, so a machine with no render lane of its own (or one the caller names a node for) calls offload_generate_* exactly as a render node does (ADR 0077).
|
Package mediaremote places one image, video, character-animation, audio or ComfyUI-graph job on a fleet node and brings the output back, so a machine with no render lane of its own (or one the caller names a node for) calls offload_generate_* exactly as a render node does (ADR 0077). |
|
mediaseat
Package mediaseat is the tier schema's declaration of the ALIAS-backed media capabilities a hardware tier serves: a vision (VLM) seat, a speech-to-text seat, and an OCR-specialist seat — each rendered into the node's llama-swap config AND into the harness config binding that routes to it.
|
Package mediaseat is the tier schema's declaration of the ALIAS-backed media capabilities a hardware tier serves: a vision (VLM) seat, a speech-to-text seat, and an OCR-specialist seat — each rendered into the node's llama-swap config AND into the harness config binding that routes to it. |
|
modelaffinity
Package modelaffinity is the process-local admission gate that stops two text lanes from thrashing one llama-swap by asking it for different models at once.
|
Package modelaffinity is the process-local admission gate that stops two text lanes from thrashing one llama-swap by asking it for different models at once. |
|
netguard
Package netguard holds the shared loopback listen-address guard.
|
Package netguard holds the shared loopback listen-address guard. |
|
nimclient
Package nimclient calls an OpenAI-compatible NVIDIA NIM endpoint — either NVIDIA's hosted build.nvidia.com API (https://integrate.api.nvidia.com/v1, authenticated with an nvapi- key) or a self-hosted NIM container (http://host:8000/v1, no key).
|
Package nimclient calls an OpenAI-compatible NVIDIA NIM endpoint — either NVIDIA's hosted build.nvidia.com API (https://integrate.api.nvidia.com/v1, authenticated with an nvapi- key) or a self-hosted NIM container (http://host:8000/v1, no key). |
|
nimoracle
Package nimoracle adapts a remote NIM chat model into the structured counterfactual-oracle contract the shadow-labeling flywheel expects (shadow.LabelDeps.RunTier).
|
Package nimoracle adapts a remote NIM chat model into the structured counterfactual-oracle contract the shadow-labeling flywheel expects (shadow.LabelDeps.RunTier). |
|
nodeswap
Package nodeswap is the one reusable engine behind every Windows fleet-node binary swap.
|
Package nodeswap is the one reusable engine behind every Windows fleet-node binary swap. |
|
occontext
Package occontext is a read-only context instrument for opencode sessions.
|
Package occontext is a read-only context instrument for opencode sessions. |
|
pairworkloads
Package pairworkloads reports the harness's work to NVIDIA Personal AI Router (PAIR) so it appears in PAIR's Jobs list on every cluster member and counts in PAIR's scheduler as pending work on the node that runs it.
|
Package pairworkloads reports the harness's work to NVIDIA Personal AI Router (PAIR) so it appears in PAIR's Jobs list on every cluster member and counts in PAIR's scheduler as pending work on the node that runs it. |
|
parser
Package parser forgivingly extracts a JSON object from messy model output.
|
Package parser forgivingly extracts a JSON object from messy model output. |
|
piishape
Package piishape holds the credential- and identity-shaped patterns that the compaction-eval corpus vet refuses (the "vet classes").
|
Package piishape holds the credential- and identity-shaped patterns that the compaction-eval corpus vet refuses (the "vet classes"). |
|
pipeline
Node-side execution of a fleet "agent" delegation contract (multi-node delegation Task 4, §S2).
|
Node-side execution of a fleet "agent" delegation contract (multi-node delegation Task 4, §S2). |
|
placement
Package placement is the ONE decision table of the composite tier (ADR 0052, 0.116.0): it turns (task class, token need, quality gate, context_class, budget, live occupancy, live guards) into a Decision — which layer, which seat, on which device pin, and why.
|
Package placement is the ONE decision table of the composite tier (ADR 0052, 0.116.0): it turns (task class, token need, quality gate, context_class, budget, live occupancy, live guards) into a Decision — which layer, which seat, on which device pin, and why. |
|
proctree
Package proctree contains and stops the process tree a command starts (plan P10).
|
Package proctree contains and stops the process tree a command starts (plan P10). |
|
quotecheck
Package quotecheck finds a quote in the text it claims to come from.
|
Package quotecheck finds a quote in the text it claims to come from. |
|
recipe
Package recipe is the recipe store of ADR 0036's 2026-10-15 amendment: a recipe is a typed record of closed-vocabulary agent_env_rules data, tagged with the seat capability it was distilled for, the acceptance-passing runs it came from and its status.
|
Package recipe is the recipe store of ADR 0036's 2026-10-15 amendment: a recipe is a typed record of closed-vocabulary agent_env_rules data, tagged with the seat capability it was distilled for, the acceptance-passing runs it came from and its status. |
|
report
Package report turns the telemetry-only ledger into per-task quality stats (no model calls).
|
Package report turns the telemetry-only ledger into per-task quality stats (no model calls). |
|
research
Package research is the harness's one-call research lane: fetch public web pages DELEGATOR-side, strip them to text, and fan the digests out to the free local seats through the ordinary delegation path.
|
Package research is the harness's one-call research lane: fetch public web pages DELEGATOR-side, strip them to text, and fan the digests out to the free local seats through the ordinary delegation path. |
|
reviewlane
Package reviewlane runs a CLEAN-CONTEXT diff review on a local seat.
|
Package reviewlane runs a CLEAN-CONTEXT diff review on a local seat. |
|
rig
Package rig is the seat rigger's first slice (P3a of the envharness port, ADR 0036): a DETERMINISTIC classifier over the delegation-log corpus that puts every failed or deferred row on exactly one failure axis, and a triage report with weights over the rows eligible for each axis, the evidence (job ids) and the pre-authored remedy where the harness's closed rule vocabulary has one — and an honest "not a rule matter" bucket where it has none.
|
Package rig is the seat rigger's first slice (P3a of the envharness port, ADR 0036): a DETERMINISTIC classifier over the delegation-log corpus that puts every failed or deferred row on exactly one failure axis, and a triage report with weights over the rows eligible for each axis, the evidence (job ids) and the pre-authored remedy where the harness's closed rule vocabulary has one — and an honest "not a rule matter" bucket where it has none. |
|
rosterprobe
Package rosterprobe is how the single-shot fleet lanes — vision, text, stt upload, compose, media and the accelerator forwarder — read the fleet roster (config delegate_remotes) before they pick a node for ONE call.
|
Package rosterprobe is how the single-shot fleet lanes — vision, text, stt upload, compose, media and the accelerator forwarder — read the fleet roster (config delegate_remotes) before they pick a node for ONE call. |
|
rosterprobe/rostertest
Package rostertest is test support for code that reads the fleet roster: a black-holed node and a way to pin the tailnet zones for one test.
|
Package rostertest is test support for code that reads the fleet roster: a black-holed node and a way to pin the tailnet zones for one test. |
|
router
Package router implements a per-task logistic entry-tier router.
|
Package router implements a per-task logistic entry-tier router. |
|
rungraph
Package rungraph shells out to render/comfy-run-graph.mjs — the generic "run an arbitrary ComfyUI graph + satisfy its node manifest" runner — through the same gpugen exec lifecycle imagegen uses (process-tree-kill, timeout, defer free-VRAM).
|
Package rungraph shells out to render/comfy-run-graph.mjs — the generic "run an arbitrary ComfyUI graph + satisfy its node manifest" runner — through the same gpugen exec lifecycle imagegen uses (process-tree-kill, timeout, defer free-VRAM). |
|
sandbox
Package sandbox builds the P4 OS-level cage for running an untrusted command (a future broad-shell/exec tool) confined so it CANNOT bypass the agent's app-level cages.
|
Package sandbox builds the P4 OS-level cage for running an untrusted command (a future broad-shell/exec tool) confined so it CANNOT bypass the agent's app-level cages. |
|
seatguard
Package seatguard keeps a Tier-1 cascade call from EVICTING a loaded vLLM seat.
|
Package seatguard keeps a Tier-1 cascade call from EVICTING a loaded vLLM seat. |
|
seatinflight
Package seatinflight is the machine-wide register of the harness's OWN requests to this box's llama-swap seats: one small marker file per request, written when the request is admitted and removed when it is released.
|
Package seatinflight is the machine-wide register of the harness's OWN requests to this box's llama-swap seats: one small marker file per request, written when the request is admitted and removed when it is released. |
|
seatload
Package seatload reads how many requests an agent seat holds RIGHT NOW, through llama-swap.
|
Package seatload reads how many requests an agent seat holds RIGHT NOW, through llama-swap. |
|
seatrate
Package seatrate remembers, per planner seat, the two numbers a wall has to be sized from — the seat's effective decode rate and its cold-load time — and turns them into a wall ESTIMATE for a contract (register D-03).
|
Package seatrate remembers, per planner seat, the two numbers a wall has to be sized from — the seat's effective decode rate and its cold-load time — and turns them into a wall ESTIMATE for a contract (register D-03). |
|
seatwait
Package seatwait is the CONTRACT-scoped wait for a seat that answered "busy".
|
Package seatwait is the CONTRACT-scoped wait for a seat that answered "busy". |
|
servingcfg
Package servingcfg reads the llama-swap config a box serves (config key serving_config_path) for one fact: the cards each model is pinned to.
|
Package servingcfg reads the llama-swap config a box serves (config key serving_config_path) for one fact: the cards each model is pinned to. |
|
servingtmpl
altcpu.go — the CPU seat family a dual-route node serves BESIDE its GPU seats (operator direction 2026-09-20: <node-f>, an AMD APU, runs both a Vulkan iGPU route and a CPU route on the same box, and the harness offers both).
|
altcpu.go — the CPU seat family a dual-route node serves BESIDE its GPU seats (operator direction 2026-09-20: <node-f>, an AMD APU, runs both a Vulkan iGPU route and a CPU route on the same box, and the harness offers both). |
|
shadow
Package shadow holds the capture-queue for the nightly shadow-labeling flywheel.
|
Package shadow holds the capture-queue for the nightly shadow-labeling flywheel. |
|
storesteward
Package storesteward keeps a persistent KV page store under a disk budget the box computes, pruning oldest-first BETWEEN the fleet node's turns.
|
Package storesteward keeps a persistent KV page store under a disk budget the box computes, pruning oldest-first BETWEEN the fleet node's turns. |
|
sttclient
Package sttclient calls a whisper.cpp whisper-server (over llama-swap's /upstream/<model>/inference passthrough) to transcribe a 16 kHz mono WAV.
|
Package sttclient calls a whisper.cpp whisper-server (over llama-swap's /upstream/<model>/inference passthrough) to transcribe a 16 kHz mono WAV. |
|
sttremote
Package sttremote is the CALLER side of the fleet stt upload door (ADR 0072): it decides where ONE transcription runs, this box's own whisper or a fleet node's, and drives the wire when the answer is a node.
|
Package sttremote is the CALLER side of the fleet stt upload door (ADR 0072): it decides where ONE transcription runs, this box's own whisper or a fleet node's, and drives the wire when the answer is a node. |
|
svgkit
Package svgkit renders brand-agnostic, parametric SVG components (gauge, comparison-bar, chromatogram, icon) from JSON specs.
|
Package svgkit renders brand-agnostic, parametric SVG components (gauge, comparison-bar, chromatogram, icon) from JSON specs. |
|
swapclient
Package swapclient is the harness's SINGLE adapter onto the vendored llama-swap client (`tools/llamaswap`, package `llamaswap-pp-cli/pkg/llamaswap`).
|
Package swapclient is the harness's SINGLE adapter onto the vendored llama-swap client (`tools/llamaswap`, package `llamaswap-pp-cli/pkg/llamaswap`). |
|
tasks
Package tasks builds the per-task prompt, grammar, and validation schema.
|
Package tasks builds the per-task prompt, grammar, and validation schema. |
|
textremote
Package textremote is the CALLER side of the fleet text lane (0.154.0): it decides where ONE classify or extract call runs (this box's own cascade, or a fleet node's own pipeline) and drives the wire when the answer is a node.
|
Package textremote is the CALLER side of the fleet text lane (0.154.0): it decides where ONE classify or extract call runs (this box's own cascade, or a fleet node's own pipeline) and drives the wire when the answer is a node. |
|
tierdocs
Package tierdocs renders docs/tiers/ from setup/templates/profiles.json.
|
Package tierdocs renders docs/tiers/ from setup/templates/profiles.json. |
|
tierseed
Package tierseed resolves a hardware tier's config_seed into the harness config fragment an install should start from.
|
Package tierseed resolves a hardware tier's config_seed into the harness config fragment an install should start from. |
|
tokclient
Package tokclient is the harness's REAL-tokenizer path: it asks the serving endpoint's own /tokenize route how a text actually tokenizes, instead of estimating with chars/4.
|
Package tokclient is the harness's REAL-tokenizer path: it asks the serving endpoint's own /tokenize route how a text actually tokenizes, instead of estimating with chars/4. |
|
trajectory
Package trajectory holds the capture queue + label sidecar for the P6 agentic- trace flywheel.
|
Package trajectory holds the capture queue + label sidecar for the P6 agentic- trace flywheel. |
|
ttsclient
Package ttsclient renders speech through an OpenAI-compatible `POST /v1/audio/speech` server (VoiceStudio, an OpenAI-shaped proxy, any engine that speaks that contract) and writes the encoded audio to a file.
|
Package ttsclient renders speech through an OpenAI-compatible `POST /v1/audio/speech` server (VoiceStudio, an OpenAI-shaped proxy, any engine that speaks that contract) and writes the encoded audio to a file. |
|
untrusted
Package untrusted handles text that came from someone else's page: the web_fetch and browse tools hand it to a model inside a fence, and offload_research hands a seat's digest of it to the caller (register SF-45, security standard gate G13).
|
Package untrusted handles text that came from someone else's page: the web_fetch and browse tools hand it to a model inside a fence, and offload_research hands a seat's digest of it to the caller (register SF-45, security standard gate G13). |
|
update
Package update is the `local-offload update` verb: it resolves each harness component's newest complete build from its publisher, verifies the publisher's digest, stages it, promotes it as a write-once generation behind the component's existing live path, keeps the previous generation, rolls back on any failure and records everything in installed.json (schema 2).
|
Package update is the `local-offload update` verb: it resolves each harness component's newest complete build from its publisher, verifies the publisher's digest, stages it, promotes it as a write-once generation behind the component's existing live path, keeps the previous generation, rolls back on any failure and records everything in installed.json (schema 2). |
|
validator
Package validator checks model output JSON against a JSON schema.
|
Package validator checks model output JSON against a JSON schema. |
|
verifier
Package verifier runs structural quality checks on a model response and decides whether to retry, accept, or defer.
|
Package verifier runs structural quality checks on a model response and decides whether to retry, accept, or defer. |
|
videoio
Package videoio samples frames from a local video file (via ffmpeg) into data:image/...;base64 URIs for the multimodal vision path.
|
Package videoio samples frames from a local video file (via ffmpeg) into data:image/...;base64 URIs for the multimodal vision path. |
|
visionremote
Package visionremote is the CALLER side of the fleet vision lane (0.116.0): it decides where ONE single-image vision task (vqa / ocr / assess_image) runs — this box's own vision seat, or a fleet node's — and drives the wire when the answer is a node.
|
Package visionremote is the CALLER side of the fleet vision lane (0.116.0): it decides where ONE single-image vision task (vqa / ocr / assess_image) runs — this box's own vision seat, or a fleet node's — and drives the wire when the answer is a node. |
|
vllmseat
Package vllmseat is the tier schema's declaration of a PERSISTENT vLLM agent seat served behind llama-swap — the pattern decided in ADR 0035 and measured on the reference NVIDIA A2 16 GB (`ampere-16`, harness 0.113.19, 2026-09-06).
|
Package vllmseat is the tier schema's declaration of a PERSISTENT vLLM agent seat served behind llama-swap — the pattern decided in ADR 0035 and measured on the reference NVIDIA A2 16 GB (`ampere-16`, harness 0.113.19, 2026-09-06). |
|
volumes
Package volumes answers one question the installer has never asked: which disk should this machine's harness, models and media live on?
|
Package volumes answers one question the installer has never asked: which disk should this machine's harness, models and media live on? |
|
winexec
Package winexec builds safe argv for spawning Windows PowerShell (powershell.exe, i.e.
|
Package winexec builds safe argv for spawning Windows PowerShell (powershell.exe, i.e. |
|
writedoor
Package writedoor turns "what did the seat change under this directory" into a unified diff the CALLER reviews and applies — the harness never applies one (register D-06).
|
Package writedoor turns "what did the seat change under this directory" into a unified diff the CALLER reviews and applies — the harness never applies one (register D-06). |