Every knob ACP has, its default, and where it is set.
V1 keeps configuration deliberately small. Most values are compile-time defaults in task.DefaultConfig() and the controller constructors; the CLI exposes only what has proven necessary. A config file (acp.config.yaml) is planned post-V1 — examples/acp.config.yaml sketches its shape — but is not read by the current binary.
| Variable | Used by | Default | Meaning |
|---|---|---|---|
VAULT_PATH |
every acp command |
./vault |
Path to the vault directory. Overridden by --vault. |
Worker credentials (ANTHROPIC_API_KEY, OPENAI_API_KEY, …) are not ACP configuration. They belong to the worker containers and are injected per-container via Docker Compose — ACP never sees them (see API Contract §5).
| Flag | Command | Default | Meaning |
|---|---|---|---|
--vault <path> |
all | $VAULT_PATH or ./vault |
Vault location |
--recovery-interval <dur> |
acp serve |
5m |
RecoveryController pass interval |
--id <id> |
acp agent |
(required) | Agent identity |
--capabilities <a,b> |
acp agent |
none | Roles this worker claims |
--exec <cmd> |
acp agent |
stub executor | Task execution command |
--poll <dur> |
acp agent |
5s |
Worker poll interval |
| Parameter | Default | Defined in | Notes |
|---|---|---|---|
lease_duration |
30 min | task.DefaultConfig |
How long a claim lasts without renewal |
heartbeat_interval |
lease_duration / 3 (10 min) |
worker | Renewal cadence; 2 missed renewals before expiry |
max_retries |
3 | task.DefaultConfig |
Lease-expiry re-queues before permanent failure |
max_releases |
5 | task.DefaultConfig |
Voluntary releases before poison-pill failure |
recovery_interval |
5 min | RecoveryController |
Also configurable via --recovery-interval |
wip_timeout |
2 min | RecoveryController |
Age at which a .wip/ file counts as abandoned |
stale_pending_threshold |
24 h | RecoveryController |
Unclaimed-task warning threshold |
vault_scan_interval |
15 min | VaultController |
Corruption/invariant scan cadence |
agent_stale_threshold |
15 min | AgentObserver / acp status |
Heartbeat age after which an agent shows as stale |
Why so few knobs: every configurable value is a value someone can set wrong. The defaults are sized for AI tasks that run seconds-to-minutes; until real usage shows a default failing, it stays a constant. When per-task lease durations become necessary (they will, for long research tasks), that belongs on the task file, not in a global config.
heartbeat_interval < lease_duration / 2 (agent gets ≥2 renewal attempts)
recovery_interval < lease_duration (expiry detected within one lease)
wip_timeout >> a single mutation (ms) (janitor never steals live work)
wip_timeout < recovery_interval (abandoned files recovered promptly)
Worst-case task recovery time after a worker crash is lease_duration + recovery_interval (~35 minutes at defaults). If your tasks are short and that number hurts, lower lease_duration — but keep the inequalities above intact.