Expand description
Harness configuration (TOML surface, versioned).
Structs§
- Harness
Config - Top-level harness configuration.
Enums§
- Config
Source - Where the effective configuration came from.
Constants§
- CONFIG_
SEARCH_ PATHS - Well-known config locations probed in order when
AV_CONFIGis unset. Project-local files (current directory) beat the per-user file theavctlsetup wizard writes (seeuser_config_path). - CONFIG_
VERSION - Config format version (evolution surface).
- MAX_
ONNX_ DIMENSION - Upper bound on
onnx_dimension. Most sentence-transformer models have <= 4096 dims (Nomic Embed v1.5 = 768, MiniLM = 384, e5-mistral = 4096, Ada-002 = 1536). 16k is a comfortable ceiling. - MAX_
REQUEST_ BYTES_ CAP - Upper bound on
max_request_bytes(512 MiB). A single request body should never legitimately need more; lifting this defeats the sandbox payload guard and lets one request pin half a GB of RAM. - MAX_
SECONDS_ INTERVAL - Upper bound on any
_sseconds interval. 1 day is already far beyond any reasonable value; anything larger is almost certainly a unit-conversion error (someone thought the field was in ms). - MAX_
WORKER_ CHANNEL_ CAPACITY - Upper bound on
worker_channel_capacity.tokio::sync::mpsc::channeldoes not preallocate slots (it links chunks lazily under a Semaphore), but an oversized value still lets the per-shard buffers grow unboundedly under overload and hides real backpressure signals. 1M is orders of magnitude above realistic capacity — this bound is defence-in-depth against a fat-finger, not a hard OOM prevention.
Functions§
- load_
config - Load, apply environment overrides, and validate the effective config.
- resolve_
config_ source - Resolve the configuration source without reading it.
- user_
config_ path - Per-user config file (
~/.agentvisor/agentvisor.toml), if the home directory is known. - user_
config_ path_ from - Per-user config file inside
home, as written by theavctlwizard.