Repository navigation
Configuration
Generated from
docs/developer/ENV_VARS.mdat02c53be058ba. Edit the source, not this page -- the next merge to main overwrites any change here.
Tracking: #16317. The table below is generated from the registry, so don't edit it by hand.
Every AUTOBOT_* environment variable must be registered before code reads it. The pre-commit hook
env-vars-documented (pipeline-scripts/check_env_var_registry.py) enforces that, and it fails when the
table below no longer matches the registry. code-quality.yml runs the same check over the whole tree.
To add a variable:
- Add a
register_env_var(EnvVarSpec(...))call to your component's module,autobot_shared/env_registry_<component>.py. If the component has none, create one and import it fromautobot_shared/env_registry.pyalongside the otherenv_registry_*imports.env_registry.pyitself is at its size ceiling. - Run
python3 pipeline-scripts/generate_env_docs.pyto regenerate the table. - Stage the registry module and this file.
The table has no count line, and its rows are sorted by name. So two PRs that each add a variable only conflict when their rows sort next to each other.
The tracked env files are templates. The installer and the Ansible roles write the real ones. #18555 settled the shape of the family:
| File | Used by |
|---|---|
docker/.env.docker |
Docker Compose, through --env-file docker/.env.docker. This is the only Docker env file. |
.env.example |
The full annotated reference for a native install. |
.env.base |
The keys every native environment shares, written once. Always loaded first. |
.env.localhost, .env.native-vm, .env.network, .env.network-template
|
Per-environment overlays on .env.base: each holds only what differs. Load the base, then one overlay (cat .env.base .env.localhost > .env, or source both in that order). |
Host keys use one format in every file:
- A
*_HOSTkey is a bare host name or IP address, with no scheme, port or path. Ports go in the matching*_PORTkey. Compose buildshttp://${AUTOBOT_OLLAMA_HOST}:11434, so a URL in a host key breaks it. - A
*_URLor*_ENDPOINTkey carries the scheme, as inhttp://,redis://orws://. -
OLLAMA_HOSTis Ollama's own variable. Its upstream format ishost[:port], and it is the only exception.
repo_tests/env_file_family_18555_test.py enforces both rules over every tracked env file. It fails when
a host key breaks the format, when two files disagree on a key's format, when a second Docker env file
appears, when an overlay repeats a .env.base key with the same value, or when a root .env.<env> file
appears outside the known overlays.
| Name | Component | Type | Default | Description |
|---|---|---|---|---|
AUTOBOT_A2A_CAPABILITY_TTL |
a2a | int | 300 |
How long a fetched remote A2A capability descriptor is cached before the next check re-fetches it. Raising it reduces repeated cross-agent capability lookups; lowering it makes a capability change on the remote side (e.g. a tool removed) visible sooner (a2a/capability_verifier.py). |
AUTOBOT_AGENT_COMMAND_TIMEOUT_S |
agents | int | 30 |
Seconds an agent-terminal command may run before it is cancelled and reported as timed out (#17074). A command that finishes sooner returns as soon as its exit code appears, so this bounds only long or stuck commands. Raising it lets long builds finish; lowering it cancels them sooner (services/agent_terminal/command_executor.py). Range: 1–3600. |
AUTOBOT_AGENT_COMM_INBOX_MAX_LENGTH |
agents | int | 1000 |
Most messages an agent's Redis peer inbox holds, and most inbound messages waiting in memory for a handler slot. Beyond it the oldest (inbox) or newest (in memory) are dropped and logged, so a flood cannot grow either without bound (protocols/agent_channels.py, #16986). |
AUTOBOT_AGENT_COMM_INBOX_TTL_SECONDS |
agents | int | 3600 |
Seconds an agent's Redis peer inbox survives after its last write, so an inbox whose owner never returns is reclaimed (protocols/agent_channels.py, #16986). |
AUTOBOT_AGENT_COMM_MAX_INFLIGHT_HANDLERS |
agents | int | 32 |
Most inbound peer messages one agent handles at once. More wait in a bounded backlog; a reply to the agent's own request is never held behind them (protocols/agent_communication.py, #16986). |
AUTOBOT_AGENT_COMM_REGISTRATION_TTL_SECONDS |
agents | int | 90 |
Seconds an agent stays reachable on the Redis peer channel after its last refresh. The protocol's heartbeat (30 s) refreshes it, so an agent that died without closing its channel stops receiving messages after three missed beats, rather than leaving them in an inbox no one reads (protocols/agent_channels.py, #16986). |
AUTOBOT_AGENT_PRESENCE_SYNC_INTERVAL_SECONDS |
agents | float | 30.0 |
How often the background task re-runs every kind's presence adapter (#16965) -- kept comfortably under AUTOBOT_AGENT_PRESENCE_TTL_SECONDS so an entry never goes stale between sweeps. Raising it means a status change (busy, gone) takes longer to show up in list_live(); lowering it polls the DB/health-registry/session-manager sources more often (initialization/agent_presence_sync.py). Range: 1–3600. |
AUTOBOT_AGENT_PRESENCE_TTL_SECONDS |
agents | float | 90.0 |
Seconds an agent's live-presence entry survives with no further heartbeat before list_live() treats it as gone. Raising it tolerates a longer gap between reports before an agent is reported offline; lowering it detects a crashed/partitioned agent sooner, at the cost of a busier reporter needing to report more often (protocols/agent_presence.py, #16947). Range: 1–3600. |
AUTOBOT_ALEMBIC_UPGRADE_TIMEOUT_S |
slm | float | 300.0 |
Timeout, in seconds, for alembic upgrade heads during a component's post-sync migration step. Raising it tolerates a slower migration; lowering it fails a wedged migration sooner (autobot-slm-backend/api/code_sync_paths.py, #11255, #16713). |
AUTOBOT_ALLOW_CONFIG_EDITS |
system | bool | false | Permit writes to the repository's tracked config files. Off by default: the codebase is the source of truth and an edit made here is invisible to deployment (#11220). |
AUTOBOT_API_KEY_LEGACY_GRACE_DAYS |
slm | int | 90 |
Days an API key created before scope enforcement keeps its owner's full authority, with a warning on every use, before it is refused until re-issued with explicit scopes (#16040 AC5; owner ruling: 90). |
AUTOBOT_API_KEY_SCOPES_ENFORCED_FROM |
slm | str | '2026-09-11' |
ISO date from which API-key scopes are enforced; keys created before it get the legacy grace period. Set it to the day enforcement reached this deployment if that was later (#16040 AC5). |
AUTOBOT_APPROVAL_CLAIM_WRITE_TTL_SECONDS |
execution | int | 300 |
Seconds a terminal session's approval claim lasts before its approval is persisted, so a worker dying in that window frees the session by itself (#20059). |
AUTOBOT_APPROVAL_EXPIRY_SWEEP_INTERVAL_S |
approvals | float | 60.0 |
Seconds between sweeps that move pending approvals past their expires_at to EXPIRED and resume the work that was waiting on them as expired (services/approval_expiry_scheduler.py, #18412). A sweep only changes status; it deletes nothing. A past-expiry approve is refused at decision time regardless, so this bounds how long an unanswered request keeps its source waiting. Minimum 1. Range: 1–None. |
AUTOBOT_APPROVAL_PENDING_SESSION_TTL_SECONDS |
execution | int | 604800 |
Seconds a session holding a pending approval survives in Redis. Deliberately long — what it waits for is a person, and expiring sooner discards the approval rather than the wait (#13478). |
AUTOBOT_ASK_HUMAN_TIMEOUT_SECONDS |
agent_loop | int | 300 |
Seconds the agent loop suspends waiting for a human to answer an ask-human question before escalating past it (#10553). Raising it gives a human longer to respond; lowering it escalates sooner, risking a question no one had time to see (agent_loop/types.py). |
AUTOBOT_AUDIO_DECODE_MAX_OUTPUT_BYTES |
voice | int | 33554432 |
Largest transcoded WAV, in bytes, the upload decoder will read back into memory; the file is stat-ed first and refused when over (media/audio/decode.py, #17778). |
AUTOBOT_AUDIO_DECODE_MAX_SECONDS |
voice | float | 600.0 |
Longest audio, in seconds, the upload decoder will transcode. ffmpeg is told to stop one second past this and anything longer is refused, so a decompression bomb cannot outlive the request timeout (media/audio/decode.py, #17778). |
AUTOBOT_AUDIO_UPLOAD_MAX_BYTES |
voice | int | 52428800 |
Largest audio upload, in bytes, the multimodal audio routes accept before any decode or ffmpeg work; larger bodies get HTTP 413 (media/audio/upload_limits.py, #17778). |
AUTOBOT_AUDIT_DURABLE_TIMEOUT_SECONDS |
knowledge | float | 5.0 |
Seconds the awaited audit insert of a knowledge-base admin or superadmin read may take before the write counts as failed and the read is refused with 503; the threat analysis and the Redis projection of that event run in the background and are not bounded by it; read by services/audit/audit.py (#19860). Range: 0.1–60.0. |
AUTOBOT_AUDIT_FILING_STATUS_TTL_S |
backend | int | 2592000 |
Seconds the audit worker's filing-health record survives in Redis. Refreshed on every run and at worker startup, so this only has to outlive the longest gap between runs (the claims audit is weekly); it exists so a record left by a worker that has since stopped does not keep answering for one that no longer exists (#13570). |
AUTOBOT_AUDIT_MAX_DEFERRED |
backend | int | 10000 |
Ceiling on audit records held in the deferred queue when the sink is unavailable. Beyond it the oldest are dropped, bounding memory rather than letting an outage grow it without limit. |
AUTOBOT_BACKEND_HOST |
backend | str | '127.0.0.1' |
Hostname or IP address of the AutoBot backend service. |
AUTOBOT_BACKEND_PORT |
backend | str | '8001' |
TCP port of the AutoBot backend service. |
AUTOBOT_BACKEND_URL |
backend | str | 'http://<private-ip>:8001' |
Full base URL of the AutoBot backend service (overrides HOST+PORT). |
AUTOBOT_BATCH_LOAD_CONCURRENCY |
backend | int | 5 |
How many sub-requests of one POST /api/batch-jobs/load call run at once (api/batch_dispatch.py, #18765). The batch as a whole is bounded by ceil(max_requests / concurrency) * per-sub-request timeout. Clamped to 1..20. Range: 1–20. |
AUTOBOT_BATCH_LOAD_MAX_REQUESTS |
backend | int | 20 |
Most sub-requests one POST /api/batch-jobs/load call may carry (api/batch_dispatch.py, #18765). A larger batch is refused with 400 before any sub-request is dispatched. Clamped to 1..100. Range: 1–100. |
AUTOBOT_BATCH_LOAD_TIMEOUT_SECONDS |
backend | float | 15.0 |
Per-sub-request timeout for POST /api/batch-jobs/load (api/batch_dispatch.py, #18765). A sub-request that exceeds it reports 504 in its own result slot; the rest of the batch is unaffected. Clamped to 1..120. Range: 1.0–120.0. |
AUTOBOT_BRANCH_INTEREST_TTL_S |
orchestration | int | 1209600 |
Backstop lifetime for a branch's recorded interest in a scope (#15987). This is NOT how long the interest is meant to last: an interest ends when its branch merges or closes, which is a fact someone looks up, not a timer. The TTL exists only so a record nobody pruned cannot outlive the repository, and a record reaching it means prune_closed_branches() was never called rather than that the work was abandoned. Two weeks by default, which no healthy branch should reach. Range: 3600–7776000. |
AUTOBOT_BROWSER_SERVICE_HOST |
network | str | '127.0.0.1' |
Hostname or IP of the Playwright/browser automation service (services/playwright_service.py). |
AUTOBOT_BROWSER_SERVICE_PORT |
network | int | 9001 |
Port of the Playwright/browser automation service. 9001, not 3000 -- that's Grafana's (#4052). |
AUTOBOT_BROWSER_STATE_PROMPT_MAX_ELEMENTS |
backend | int | 30 |
How many numbered elements the LLM-visible state block renders per browser tool result. The browser worker caps the raw list separately; this bounds only what reaches the prompt (#11537). |
AUTOBOT_CACHE_DIR |
backend | str | (none) | Root for every regenerable cache (autobot_shared.paths.cache_root, #19553). Unset: $XDG_CACHE_HOME/autobot, else ~/.cache/autobot; a value inside the code tree is skipped. A container whose HOME is under the project root should mount a volume here. |
AUTOBOT_CALL_GRAPH_SCAN_BUDGET_SECONDS |
analytics | float | 30.0 |
Seconds the call-graph AST scan may run before it stops and reports the scope it covered. Default 30 -- half the tightest /api/ proxy_read_timeout the repo ships (60s in the container config and user template; 300s from the bare-metal installer), because a scan that outlives the gateway returns 504 to the browser while the backend keeps working, so the route's own files_scanned/files_total/truncated reporting never reaches the client. Non-positive means unbounded, which is the pre-#17651 behaviour. |
AUTOBOT_CHANNEL_SEQ_KEY_PREFIX |
events | str | 'autobot:events:seq:' |
Redis key prefix for per-channel live-event sequence counters. |
AUTOBOT_CHANNEL_STREAM_KEY_PREFIX |
events | str | 'autobot:events:channel:' |
Redis key prefix for per-channel live-event replay streams. |
AUTOBOT_CHANNEL_STREAM_MAX_ENTRIES |
events | int | 1000 |
Events retained per channel for reconnect replay. A client whose last_event_id has fallen outside this window is told to resync rather than handed a partial history. Range: 1–1000000. |
AUTOBOT_CHANNEL_STREAM_TTL_SECONDS |
events | int | 86400 |
Idle expiry for a per-channel replay stream, so session and chat channels do not accumulate. Range: 60–2592000. |
AUTOBOT_CHATS_DIRECTORY |
chat | str | "" |
Filesystem path where chat session files are stored. |
AUTOBOT_CHAT_ATTACHMENT_EXTRACT_TIMEOUT_SECONDS |
backend | int | 30 |
Seconds one attached file may take to yield its text (chat_workflow/limits.py, #20195). Past it the file is reported unreadable and the turn goes on. Minimum 1. Range: 1–None. |
AUTOBOT_CHAT_ATTACHMENT_EXTRACT_WORKERS |
backend | int | 2 |
Threads that may extract attached-file text at once (chat_workflow/limits.py, #20195). A thread past its deadline keeps its slot until it finishes; with none free a file is reported unreadable, never queued. Minimum 1. Range: 1–None. |
AUTOBOT_CHAT_ATTACHMENT_MAX_CHARS_PER_FILE |
backend | int | 20000 |
Characters of one attached file's text that reach the chat prompt (chat_workflow/limits.py, #20195). The rest is cut and the user is told. Minimum 1. Range: 1–None. |
AUTOBOT_CHAT_ATTACHMENT_MAX_CHARS_TOTAL |
backend | int | 60000 |
Characters of attached-file text across all files of one chat message (chat_workflow/limits.py, #20195). A later file is cut to what is left, or skipped with a message when nothing is. Minimum 1. Range: 1–None. |
AUTOBOT_CHAT_ATTACHMENT_MAX_FILES |
backend | int | 5 |
Files attached to one chat message that are read into the prompt (chat_workflow/limits.py, #20195). Files past the count are reported to the user, not dropped silently. Minimum 1. Range: 1–None. |
AUTOBOT_CHAT_ATTACHMENT_MAX_FILE_BYTES |
backend | int | 10485760 |
Bytes of one attached file on disk that text extraction is attempted for (chat_workflow/limits.py, #20195). A larger file is reported to the user and never read. Minimum 1. Range: 1–None. |
AUTOBOT_CHAT_ATTACHMENT_MAX_UNCOMPRESSED_BYTES |
backend | int | 52428800 |
Bytes an attached Office or OpenDocument archive may expand to, summed from its own member index (chat_workflow/limits.py, #20195). An archive declaring more is reported and never opened. Minimum 1. Range: 1–None. |
AUTOBOT_CHAT_ATTACHMENT_TEXT_CACHE_MAX_ENTRIES |
backend | int | 32 |
Files whose extracted text the in-process attachment cache holds at once (chat_workflow/limits.py, #20195); the oldest goes first. Minimum 1. Range: 1–None. |
AUTOBOT_CHAT_ATTACHMENT_TEXT_CACHE_SECONDS |
backend | int | 300 |
Seconds extracted attachment text is kept in the backend process so one turn reads a file once (chat_workflow/limits.py, #20195). Never stored in the graph checkpoint. Minimum 1. Range: 1–None. |
AUTOBOT_CHAT_BUDGET_CHECK_TIMEOUT_SECONDS |
ai | float | 2.0 |
How long the pre-call chat budget check (services/chat_budget_bounds.py, #16845) may take before the budget store counts as unavailable. What that does is decided in one place, STORE_OUTAGE_ALLOWS_REQUEST. Range: 0.1–30.0. |
AUTOBOT_CHAT_BUDGET_OUTAGE_LOG_INTERVAL_SECONDS |
ai | float | 60.0 |
Minimum seconds between logged chat budget store failures (#16845); failures inside the interval are counted, not logged, so an outage does not flood the log. Range: 1.0–3600.0. |
AUTOBOT_CHAT_BUDGET_SPEND_CACHE_TTL_SECONDS |
ai | float | 5.0 |
Seconds a scope's spend reading is reused by the chat budget gate (#16845), so a tool loop does not re-read up to 31 daily keys per iteration. Spend can exceed a limit by at most this long before a refusal. 0 disables the cache. Range: 0.0–300.0. |
AUTOBOT_CHAT_LLM_CALL_TIMEOUT_SECONDS |
backend | float | 600.0 |
Total timeout for a single streaming chat LLM request, connect included (chat_workflow/turn_control.py, #17273). The request previously set a connect timeout only, so a model that accepted the connection and then stalled held the turn forever. |
AUTOBOT_CHAT_TRACE_OUTPUT_MAX_CHARS |
backend | int | 2000 |
Characters of one tool result kept in a chat session trace (session_trace.py, #19963). Range: 1–100000. |
AUTOBOT_CHAT_TRAJECTORY_CAPTURE_CONCURRENCY |
ai | int | 2 |
Concurrent trajectory judge calls. Bounded so a burst of turns cannot stampede the LLM. |
AUTOBOT_CHAT_TRAJECTORY_CONTEXT |
ai | bool | true | Search past trajectories before answering. Defaults on because the search is one vector query; capture is gated separately since it spends a judge call. |
AUTOBOT_CHAT_TRAJECTORY_TIMEOUT_S |
ai | float | 0.15 |
Seconds the pre-answer trajectory search may take. It rides the response hot path, so a cold or slow collection must never delay first token. |
AUTOBOT_CHAT_TRAJECTORY_TOP_K |
ai | int | 3 |
How many past trajectories the pre-answer search retrieves. |
AUTOBOT_CHAT_TURN_CANCEL_ACK_TIMEOUT_SECONDS |
backend | float | 5.0 |
How long a chat turn-cancel request waits for the other backend workers that were listening to confirm they stopped their turn (chat_workflow/turn_cancel_bus.py, #18448). A worker that does not answer in time makes the response report 'unconfirmed' rather than a false 'no_active_turn'. Must be positive and finite. |
AUTOBOT_CHAT_TURN_TIMEOUT_SECONDS |
backend | float | 1800.0 |
Total wall-clock budget for one LangGraph chat turn, across every LLM call and tool step in it (chat_workflow/turn_control.py, #17273). A turn that exceeds it is cancelled, its checkpoint dropped, and the client told the model took too long. A turn parked on a command-approval interrupt has returned, so the wait for a human is not counted against it. |
AUTOBOT_CHROMA_REPAIR_LOCK_TIMEOUT_SECONDS |
knowledge | float | 30.0 |
Total seconds to wait for the cross-process lock that guards the local ChromaDB store repairs before giving up; on timeout the store still opens and the repairs retry on the next open; read by utils/chromadb_store_repairs.py (#18789). Range: 0.1–3600.0. |
AUTOBOT_CLASSIFICATION_MODEL |
ai | str | 'gemma2:2b' |
Ollama model name used for intent classification. |
AUTOBOT_COCHANGE_GIT_TIMEOUT_SECONDS |
backend | int | 120 |
Seconds the co-change history walk may run before it is abandoned. |
AUTOBOT_COCHANGE_MAX_FILES_PER_COMMIT |
backend | int | 50 |
Commits touching more files than this are ignored as coupling evidence: a bulk rename, a vendored-tree import or a reformat is not a signal (#13639). |
AUTOBOT_COCHANGE_MIN_CO_CHANGES |
backend | int | 3 |
How many commits two files must share before the pair is reported at all. One shared commit is a coincidence. |
AUTOBOT_COCHANGE_STRENGTH_THRESHOLD |
backend | float | 0.3 |
Minimum normalised coupling strength to report. Independent of the count threshold: a pair can clear the count and still be weak if either file changes constantly. |
AUTOBOT_COCHANGE_WINDOW_DAYS |
backend | int | 180 |
Days of history the co-change analysis considers. Coupling decays — a pair that moved together two years ago is history, not structure. |
AUTOBOT_CODEEXEC_APPROVAL_POLL_SECONDS |
execution | int | 2 |
Seconds between polls while waiting for a code-execution approval decision. |
AUTOBOT_CODEEXEC_APPROVAL_WAIT_SECONDS |
execution | int | 1800 |
Seconds a code-execution request waits for approval before expiring. Expiry is a decision the caller can act on, not a side effect of how long a coroutine lives (GH#11568). |
AUTOBOT_CODEEXEC_AUTOAPPROVE_READONLY |
execution | bool | true | Auto-approve code-execution calls limited to the read-only tool set. The eligible set is fixed in code, not configurable here (GH#11568, GH#11662). |
AUTOBOT_CODEEXEC_ENABLED |
execution | bool | false | Master switch for the compose/code-execution tool. Ships off (GH#11568). |
AUTOBOT_CODEEXEC_MAX_SCRIPT_RETRIES |
execution | int | 1 |
How many times a failed generated script may be retried within one code-execution call. |
AUTOBOT_CODEEXEC_MAX_TOOL_CALLS |
execution | int | 50 |
Ceiling on tool calls a single code-execution script may make, bounding a runaway loop inside the sandbox. |
AUTOBOT_CODEEXEC_TIMEOUT_SECONDS |
execution | int | 120 |
Seconds a compose-tool sandbox execution may run (GH#11568). |
AUTOBOT_CODE_ANALYSIS_POOL_MAX_TASKS |
backend | int | 8 |
Tasks a code-analysis child handles before it is recycled. Recycling bounds memory growth in long-lived children. |
AUTOBOT_CODE_ANALYSIS_POOL_WORKERS |
backend | int | 2 |
Child processes used to offload code analysis. Deliberately small: each carries a full interpreter, and analysis is bursty rather than sustained. |
AUTOBOT_CODE_INDEX_GIT_TIMEOUT_SECONDS |
knowledge | int | 10 |
Ceiling on each read-only git call the code indexer's provenance lookups make. Raising it tolerates a slower git history walk on a large repo; lowering it fails a stalled git call faster, at the risk of a false timeout on a legitimately slow repo (services/knowledge/code_indexer.py). |
AUTOBOT_CODE_SOURCE_ALLOWED_ROOTS |
slm | str | '/opt/autobot' |
Comma-separated roots a code-source repo_path may live under (#17300). The value arrives from a POST body and used to reach Path(...).is_dir()/.iterdir() unconfined, so any authenticated user could probe for arbitrary paths on the host -- these routes are gated by get_current_user, not by an admin role. The default is the default repo_path, so an ordinary deployment needs no change; a checkout elsewhere is added here rather than the code permitting everything by omission. |
AUTOBOT_COGNIFIER_BATCH_MAX_TOKENS_CAP |
knowledge | int | 8192 |
Absolute ceiling on the max_tokens sent for a batched cognifier extraction call, regardless of batch size (#11012). Raising it allows a larger batched response before truncation; lowering it protects against an oversized request to the LLM provider (knowledge/pipeline/cognifiers/llm_utils.py). |
AUTOBOT_COGNIFIER_BATCH_MAX_TOKENS_PER_CHUNK |
knowledge | int | 1024 |
Per-chunk token budget used to scale max_tokens with the number of chunks packed into one batched cognifier extraction call (#11012). Raising it reduces truncation risk for large chunks; lowering it caps per-chunk cost, at the risk of truncating longer chunks (knowledge/pipeline/cognifiers/llm_utils.py). |
AUTOBOT_COMPACTION_BOUNDARY_WINDOW |
chat | int | 10 |
How far back the compaction boundary looks for a user turn before settling for any turn start, so the cut cannot be dragged far from the midpoint. |
AUTOBOT_COMPACTION_STATE_COMMAND_CAP |
chat | int | 10 |
Most recent shell commands named in a compaction's extracted state block. |
AUTOBOT_COMPACTION_TOOL_RESULT_CLIP_CHARS |
chat | int | 400 |
Maximum characters of a tool result in the summarised region before it is clipped for the summariser; a file read many turns ago is cheaper to re-read than to carry. |
AUTOBOT_COMPACTION_USER_MESSAGE_CAP |
chat | int | 40 |
How many of the most recent user messages cross a context compaction verbatim instead of being summarised. Bounded so repeated compaction cannot grow the preserved set without limit. |
AUTOBOT_COMPANY_OS_WORKFLOW_PLANNER_APPROVAL_WAIT_SECONDS |
llc | int | 86400 |
How long an AI sub-step waits for a person's approval before the timeout transition of the workflow a Workflow Plan converts into is taken, for an approval policy with a wait limit. The plan names the policy, never the number (llc/services/company_os/plan_convert.py, #19936). Range: 1–31536000. |
AUTOBOT_COMPOSE_LEGACY_DB_VARS |
postgres | str | "" |
Set by docker-compose.yml only: the deprecated database variable names the operator still sets, so the SLM can warn about them (#19408). Holds names, never values. |
AUTOBOT_CONFIG_REGISTRY_CACHE_TTL_SECONDS |
redis | float | 60.0 |
Seconds the config registry serves a resolved value, and the fact that Redis holds nothing for a key, from process memory before asking Redis again. A change written by another process is visible within this window. Clamped to 0-3600: an hour is the longest a stale config value is tolerable without a restart; 0 disables the cache. Range: 0–3600. |
AUTOBOT_CONFIG_REGISTRY_REDIS_RETRY_SECONDS |
redis | float | 30.0 |
Interval between config-registry attempts to reconnect to Redis after a failure, so a Redis outage does not become a reconnect storm. |
AUTOBOT_CONSTRAINTS_RSYNC_TIMEOUT_S |
slm | float | 30.0 |
Timeout, in seconds, for the top-level constraints/ rsync a backend component sync runs before pip so a requirements.txt -c ../constraints/shared.txt reference resolves (autobot-slm-backend/api/code_sync_paths.py, #16713). |
AUTOBOT_CONVERSATION_FILE_CLEANUP_COOLDOWN_SECONDS |
conversation_files | int | 86400 |
Seconds after a refused removal of a deleted conversation file before it may be proposed again, so a refusal does not raise a new proposal on every file delete. Raising it slows the inbox; lowering it retries sooner (conversation_file_cleanup.py, #20234). |
AUTOBOT_CONVERSATION_FILE_CLEANUP_MAX_ATTEMPTS |
conversation_files | int | 3 |
How many times an approved removal of a deleted conversation file may be refused (still referenced, path outside the store, unlink error) before it is no longer proposed again. The file is then reported as stuck in the storage stats and logged, and its bytes stay. Raising it retries more; lowering it stops sooner (conversation_file_cleanup.py, #20234). |
AUTOBOT_CONVERSATION_FILE_USER_QUOTA_BYTES |
knowledge | int | 1073741824 |
Bytes one user may keep in conversation files (soft-deleted ones count until their bytes are removed); an upload past it is refused with HTTP 413 and a stable code (conversation_file_quota.py, #20217). Range: 0–1099511627776. |
AUTOBOT_DB_BACKUP_KEEP |
slm | int | 5 |
Number of pg_dump backups retained per component before the oldest are pruned. Raising it keeps a longer rollback history at the cost of more disk in the backup directory; lowering it frees disk sooner but shortens how far back a restore can reach (autobot-slm-backend/api/code_sync.py, #11376). |
AUTOBOT_DELEGATION_ENABLED |
ai | bool | false | Master switch for the delegate tool. Off, it records the delegation request and does not dispatch it. |
AUTOBOT_DEPLOYMENT_MODE |
system | str | "" |
Topology. Unset: auto-detect -- docker_local in a container, else local (#19316). |
AUTOBOT_DESKTOP_CONTROL_LOCK_TTL_SECONDS |
desktop | int | 120 |
Idle-TTL for a desktop-control lock: if not refreshed within this window, it auto-expires and control returns to the agent. Raising it tolerates a longer human takeover before auto-release; lowering it returns control to the agent sooner after the human goes idle (api/desktop_control_lock.py). |
AUTOBOT_DEVICE_POLL_BACKOFF_SECONDS |
auth | int | 5 |
Extra delay added to the device-code poll interval after the provider answers slow_down. |
AUTOBOT_DEVICE_POLL_MAX_ATTEMPTS |
auth | int | 360 |
Maximum device-code poll attempts before the flow is abandoned. Bounds the poll loop independently of the time window below. |
AUTOBOT_DEVICE_POLL_MIN_INTERVAL_SECONDS |
auth | int | 5 |
Floor on how often the device-code flow polls the provider for completion, regardless of the interval the provider advertises. |
AUTOBOT_DEVICE_POLL_WINDOW_SECONDS |
auth | int | 1800 |
Wall-clock ceiling on a device-code flow. Reached first when the provider advertises a long interval, whereas the attempt cap above binds first when it advertises a short one. |
AUTOBOT_DEV_LOOP_ACTION_LOG_MAX |
orchestration | int | 200 |
Dev-loop action entries kept per issue (#17091). The list is trimmed to the most recent, so an issue the loop retries many times cannot crowd every other issue's history out of Redis memory. Range: 10–5000. |
AUTOBOT_DEV_LOOP_ACTION_LOG_TTL_S |
orchestration | int | 604800 |
How long one issue's dev-loop action history survives in the claim registry (#17091). Long enough to answer 'why did the loop stop on this issue' after a weekend; the floor keeps an hour of history at minimum, the ceiling bounds an abandoned issue's entries at a month. Range: 3600–2592000. |
AUTOBOT_DEV_LOOP_BUDGET_TTL_SECONDS |
ai | int | 86400 |
Seconds the dev loop's cumulative token counter survives in Redis. Refreshed on every recorded action, so it is a floor on how long spend is remembered. |
AUTOBOT_DEV_LOOP_RATE_PER_HOUR |
ai | int | 0 |
Dev-loop actions allowed per fixed UTC hour window (#17091). Zero disables the rate gate. Checked before every action, never after. |
AUTOBOT_DEV_LOOP_TOKEN_BUDGET |
ai | int | 0 |
Cumulative token ceiling for AutoBot's own dev-loop participation (#17091). Zero disables the spend gate, which is the shipped default; the rate ceiling below is independent of it. |
AUTOBOT_DOCKER_MGMT_POOL |
slm | str | '<private-ip>/9' |
Private IPv4 block (/24 or larger) that docker/pick_mgmt_prefix.py draws the compose management /24 from, skipping any range a host route or Docker network uses (#16833). |
AUTOBOT_DOCKER_MGMT_PREFIX |
slm | str | "" |
First three octets of the compose autobot-mgmt /24 (e.g. 10.77.3). No default: docker/generate-secrets.sh picks a free private range per host, docker-compose.yml refuses to start without it, and compose_fleet.py builds node IPs from it (#16833). |
AUTOBOT_DOCKER_POOL_SIZE |
execution | int | 3 |
Number of warm containers kept when AUTOBOT_DOCKER_USE_POOL is on. Ignored entirely when pooling is off. |
AUTOBOT_DOCKER_PROXY_TOKEN |
slm | str | (none) | What the SLM presents to the limited Docker proxy, from docker/generate-secrets.sh (#20629). |
AUTOBOT_DOCKER_PROXY_URL |
slm | str | (none) | Where the SLM reaches the limited Docker proxy on a compose stack (#20629). |
AUTOBOT_DOCKER_SLM_BIND_ADDRESS |
slm | str | '127.0.0.1' |
Host address the compose SLM GUI publishes on. Use TLS before opening it to the network (#20620). |
AUTOBOT_DOCKER_SLM_HTTPS_PORT |
slm | int | 8443 |
Host port the compose SLM GUI publishes for HTTPS (container port 443); the frontend holds 443 (#18593, #20620). |
AUTOBOT_DOCKER_SLM_HTTP_PORT |
slm | int | 8080 |
Host port the compose SLM GUI publishes plain HTTP on; the frontend holds 80 (#20620). |
AUTOBOT_DOCKER_SLM_NGINX_CONF |
slm | str | './docker/nginx/nginx-slm.conf' |
nginx config the SLM-only web GUI (compose service autobot-slm-gui) mounts. The default serves HTTP; ./docker/nginx/nginx-slm-ssl.conf serves HTTPS with ./docker/certs (#18593). |
AUTOBOT_DOCKER_USE_POOL |
execution | bool | false | Reuse a pool of warm containers for tool execution instead of starting one per call. Off by default — the pool trades isolation between calls for start-up latency. |
AUTOBOT_DOC_HASH_CACHE_TTL_SECONDS |
rag | float | 60.0 |
Seconds the shared stale filter reuses the doc hash cache before re-reading it (#4723, #19280). |
AUTOBOT_DUPLICATE_BACKGROUND_TIMEOUT_SECONDS |
backend | float | 3600.0 |
Upper bound for a duplicate scan run by the background (Celery) task. Not the request deadline: the queued path exists to escape it (#18067). |
AUTOBOT_DUPLICATE_MAX_RETURNED |
backend | int | 5000 |
Maximum duplicate pairs a scan RETURNS (0 = unlimited). The count and the statistics always describe every pair found; the analysis reports truncated when the list is shorter (#18067). |
AUTOBOT_DUPLICATE_ORPHAN_LEASE_SECONDS |
backend | float | 300.0 |
How long an abandoned duplicate scan may keep the single-flight lock after it was told to stop. Past this the lock is treated as leaked and replaced, so a scan thread that never exits cannot decline every later call (#18013). |
AUTOBOT_EDIT_MISS_MAX_WINDOWS |
filesystem_mcp | int | 2000 |
Most line windows that the edit_file closest-span search compares after a miss before it stops and reports that the search was capped (api/filesystem_edit.py, #19463). |
AUTOBOT_EDIT_MISS_OLD_TEXT_MAX_CHARS |
filesystem_mcp | int | 2000 |
Longest edit_file old_text that the closest-span search runs for after a miss. A longer old_text still fails as a miss, and the error says the search was capped (api/filesystem_edit.py, #19463). |
AUTOBOT_EDIT_MISS_SEARCH_BUDGET_SECONDS |
filesystem_mcp | float | 1.0 |
Wall-clock budget for one edit_file closest-span search after a miss. On expiry the search returns the best span found so far and says it was capped (api/filesystem_edit.py, #19463). |
AUTOBOT_EGRESS_INTERNAL_ORIGINS_TTL_S |
security | int | 60 |
Seconds the egress policy reuses the origins returned by registered internal-origin providers (e.g. SLM-managed nodes) before asking them again (#17576). Static origins from the SSOT are never cached. A provider that raises is logged and skipped. |
AUTOBOT_EGRESS_PROVIDER_TIMEOUT_S |
security | int | 5 |
Seconds one internal-origin provider may run before it is abandoned for this refresh (#17576). A provider that times out or raises is logged and skipped; the static SSOT origins still apply. |
AUTOBOT_EMBEDDING_OVERRIDE_CACHE_SECONDS |
knowledge | float | 5.0 |
Seconds each process caches the user's embedding-model override (Redis key autobot:kb:embedding_model) before re-reading it, so a switch reaches every reader within this window; read by autobot_shared/embedding_model.py (#19377). Range: 0.0–300.0. |
AUTOBOT_EMBEDDING_PROBE_TIMEOUT_SECONDS |
knowledge | int | 60 |
Seconds one background test embedding by the embedding_model health probe may run before it is abandoned and recorded as 'timed out'; read by api/embedding_model_health.py (#18834). Range: 1–600. |
AUTOBOT_EMBEDDING_PROBE_TTL_SECONDS |
knowledge | int | 300 |
Seconds a background test embedding of the configured embedding model stays valid for the embedding_model health probe before it is re-run; read by api/embedding_model_health.py (#18834). Range: 10–86400. |
AUTOBOT_EMBEDDING_SPACE_CHECK_SECONDS |
knowledge | float | 5.0 |
Seconds between a knowledge-base process's checks for an embedding-model switch made in another process; on a newer generation it rebinds its collection, write buffer and embed model (knowledge/embedding_space_binding.py, #19379). Range: 0.0–300.0. |
AUTOBOT_EMBEDDING_SWITCH_BATCH_SIZE |
knowledge | int | 64 |
Facts re-embedded per call to the embedding provider while an embedding-model switch rebuilds the knowledge base into a new collection (knowledge/embedding_switch.py, #19379). Range: 1–1000. |
AUTOBOT_EMBEDDING_SWITCH_DEADLINE_SECONDS |
knowledge | float | 21600.0 |
Overall deadline for an embedding-model switch, from start to cutover; a build past it fails and leaves the active model and collection unchanged (knowledge/embedding_switch.py, #19379). Range: 60.0–604800.0. |
AUTOBOT_EMBEDDING_SWITCH_REPLAY_ROUNDS |
knowledge | int | 5 |
Rounds an embedding-model switch replays writes made during the build, until none are pending and the new collection holds one vector per fact, before it gives up without switching (knowledge/embedding_switch.py, #19379). Range: 1–100. |
AUTOBOT_EMBEDDING_SWITCH_SETTLE_MARGIN_SECONDS |
knowledge | float | 2.0 |
Seconds added to the override cache and space-check windows while an embedding-model switch waits, after cutover, for every process to rebind before its final replay (knowledge/embedding_switch.py, #19379). Range: 0.0–300.0. |
AUTOBOT_EMBEDDING_SWITCH_STALE_SECONDS |
knowledge | float | 300.0 |
Seconds without a heartbeat after which a running embedding-model switch is stale (its worker presumed dead): its Redis lock expires, the status reads stale, and a new start or a cancel recovers (knowledge/embedding_switch.py, #19379). Range: 30.0–86400.0. |
AUTOBOT_ENV |
system | str | 'production' |
Legacy spelling of AUTOBOT_ENVIRONMENT, read only when that is unset (#19315). |
AUTOBOT_ENVIRONMENT |
system | str | 'production' |
Deployment environment (production/development/test); profiles in deployment_profile.py. |
AUTOBOT_ESSENTIAL_STORY_RECENCY_HALFLIFE_SECONDS |
memory | float | 2592000.0 |
Half-life in seconds of the recency boost on a recalled fact (memory/essential_story.py). Default 30 days. |
AUTOBOT_ESSENTIAL_STORY_REINFORCE |
memory | bool | true | Rank always-loaded facts by usage-aware effective score instead of static quality_score alone; off reproduces the pre-A2 ordering (memory/essential_story.py). |
AUTOBOT_ESSENTIAL_STORY_REINFORCE_WEIGHT |
memory | float | 0.3 |
Weight of recall frequency and recency in the effective fact score; 0 reproduces the static quality_score ordering (memory/essential_story.py). |
AUTOBOT_EXECUTION_MEMORY_LIMIT |
security | str | '512m' |
Memory cap (Docker memory string) for pooled and snapshot-restored execution containers; swap is capped at the same value, so there is no swap (#17267). Cold-start tasks size their own cap from the task's resource limits. Raising it lets warm-pool code use more memory before the kernel OOM-kills it (autobot_shared/container_hardening.py). |
AUTOBOT_EXECUTION_TMPFS_SIZE |
security | str | '64m' |
Size of the scratch tmpfs (mounted noexec,nosuid at the container scratch path) that a read-only execution container writes to (#17267). Raising it lets code stage larger temporary files; lowering it fails writes sooner (autobot_shared/container_hardening.py). |
AUTOBOT_EXTRACT_CHUNK_THRESHOLD |
llm | int | 8000 |
Character-count threshold above which structured-extraction input is auto-chunked before an LLM call. Raising it sends larger inputs in a single call; lowering it chunks sooner, trading more calls for a smaller per-call context (llm_shared/structured_ops.py). |
AUTOBOT_EXTRACT_MAX_RETRIES |
llm | int | 3 |
Maximum LLM call attempts a structured-extraction request makes before raising ExtractionError. Raising it tolerates more transient failures before giving up; lowering it fails faster but is less tolerant of a flaky provider (llm_shared/structured_ops.py). |
AUTOBOT_FACTS_PRUNE_MAX_AGE_DAYS |
knowledge | int | 180 |
A fact is prunable only once older than this many days (knowledge/facts.py consolidation). |
AUTOBOT_FACTS_PRUNE_MAX_PER_RUN |
knowledge | int | 100 |
Circuit breaker: a consolidation run that would prune more facts than this refuses and logs loudly (knowledge/facts.py). |
AUTOBOT_FACTS_PRUNE_QUALITY_FLOOR |
knowledge | float | 0.1 |
A fact is prunable only below this quality score (knowledge/facts.py consolidation). |
AUTOBOT_FACTS_PRUNE_SCAN_LIMIT |
knowledge | int | 5000 |
Most facts examined in one consolidation pass (knowledge/facts.py). |
AUTOBOT_FACT_FORCING |
ai | bool | false | Enable the fact-forcing gate, which requires an answer to cite retrieved facts. |
AUTOBOT_FACT_SCAN_BATCH_SIZE |
knowledge | int | 200 |
Fact hashes read per round trip while get_all_facts streams the fact keyspace (knowledge/fact_stream.py). |
AUTOBOT_FEATURE_FLAG_CACHE_TTL_SECONDS |
security | float | 5.0 |
Seconds this process serves the access-control enforcement mode and per-endpoint overrides from memory (#18998). A write in the same process invalidates at once; a write from another process is seen within this window. 0 disables the cache. Clamped to 0-60. Range: 0–60. |
AUTOBOT_FFMPEG_TIMEOUT_SECONDS |
voice | float | 300.0 |
Wall-clock cap on one ffmpeg audio extraction. On expiry the process is killed and reaped and the request fails with a sanitized error, so a hostile or corrupt upload cannot hang a worker forever (media/audio/ffmpeg_service.py). |
AUTOBOT_FRONTEND_HTTP_PORT |
network | int | 80 |
Port nginx serves the frontend over plain HTTP; used when AUTOBOT_FRONTEND_SERVED_BY=nginx. Range: 1–65535. |
AUTOBOT_FRONTEND_SERVED_BY |
network | str | (none) | What serves the frontend: 'vite' (dev server, AUTOBOT_FRONTEND_PORT) or 'nginx' (AUTOBOT_FRONTEND_TLS_PORT with TLS, else AUTOBOT_FRONTEND_HTTP_PORT). Unset: vite in development and test, nginx otherwise. An unknown value makes config.frontend_url raise. |
AUTOBOT_GATEWAY_REQUIRE_OUTBOUND_APPROVAL |
gateway | bool | false | Require approval before the Gateway hands an agent-authored message to a channel adapter. Off means audit-only: every governed send is recorded, none is blocked. On fails closed — no registered approver, a denial, or an approver error all deny the send. |
AUTOBOT_GENERATION_CONNECT_TIMEOUT_S |
ai | float | 10.0 |
Seconds to establish the connection for an image/video generation call; the pooled default is 5s (autobot_shared/generation_http_timeouts.py, #12979). |
AUTOBOT_GENERATION_POLL_TIMEOUT_S |
ai | float | 30.0 |
Seconds a generation status poll or enqueue-only submit may take, as both total and read timeout. Lowering it fails a wedged poll sooner (autobot_shared/generation_http_timeouts.py, #12979). |
AUTOBOT_GENERATION_REQUEST_TIMEOUT_S |
ai | float | 300.0 |
Seconds a synchronous image/video generation call may run, applied as both the total and the read timeout. The pooled HTTP client's default (30s total, 10s read) is too short for a provider that holds the connection silent while it renders; 300s matches the pre-pooling behaviour (autobot_shared/generation_http_timeouts.py, #12979). |
AUTOBOT_GIT_BRANCH |
system | str | 'main' |
Git branch that the running instance was built from. |
AUTOBOT_GIT_PROBE_TIMEOUT_SECONDS |
backend | int | 30 |
Seconds a git subprocess started through autobot_shared.git_probe may run before it is abandoned, so a probe cannot hang on a lock or a prompt (#15783). |
AUTOBOT_GPU_PROBE_TIMEOUT_S |
slm | float | 5.0 |
Seconds a GPU vendor tool (nvidia-smi, rocm-smi) may run before the probe gives up. Read by autobot_shared.gpu_telemetry for the SLM agent's heartbeat GPU telemetry (#16280). Range: 0.5–60.0. |
AUTOBOT_GRAFANA_PORT |
monitoring | str | '3000' |
TCP port of the Grafana instance. Also declared in ssot_config.py; 3000 is Grafana's own default and is NOT the browser service, which is 9001 (#4052, #14198). |
AUTOBOT_GRAPH_PATH_TIMEOUT_SECONDS |
kb | float | 10.0 |
Ceiling on a knowledge-graph path search. Path queries are unbounded in the worst case, so this is what stops one request occupying a worker indefinitely. |
AUTOBOT_HEALTH_POLL_CONNECT_TIMEOUT |
slm | float | 3.0 |
Per-attempt connect timeout, in seconds, when probing a just-restarted component's health endpoint. Raising it tolerates a service that is slower to accept connections; lowering it fails an unreachable endpoint faster (autobot-slm-backend/api/code_sync.py, #11378). |
AUTOBOT_HEALTH_POLL_INTERVAL |
slm | float | 2.0 |
Delay, in seconds, between health-probe attempts after a component restart. Raising it polls less often (lower overhead, slower detection); lowering it detects a healthy service sooner at the cost of more probe traffic (autobot-slm-backend/api/code_sync.py, #11378). |
AUTOBOT_HEALTH_POLL_TIMEOUT |
slm | float | 180.0 |
Total seconds to wait for a component to report healthy after a restart that recreated its venv, covering first-run py3.14 bytecode compilation of the whole dependency tree (#11413). Lowering it risks a false #11377 rollback of a slow-but-healthy cold start; raising it waits longer before giving up on a genuinely stuck restart (autobot-slm-backend/api/code_sync.py, #11378). |
AUTOBOT_HEALTH_POLL_TIMEOUT_FAST |
slm | float | 60.0 |
Total seconds to wait for a component to report healthy after a restart that reused its existing venv (warm interpreter, no cold-start compilation). Lowering it detects a stuck restart sooner; raising it tolerates a slower warm restart before the wait ends (autobot-slm-backend/api/code_sync.py, #11458). |
AUTOBOT_HTML_EXTRACT_MAX_BYTES |
knowledge | int | 10485760 |
Largest HTML input, in UTF-8 bytes, the one HTML extractor parses; a longer page is truncated at a character and tag boundary and yields its leading content (media/document/html_extraction.py, #18826). Range: 65536–268435456. |
AUTOBOT_HTML_STYLE_MAX_CHARS |
knowledge | int | 4096 |
Longest inline style attribute, in characters, the HTML extractor parses for hiding rules; a longer one is treated as hiding its element (fail closed) (media/document/inline_style.py, #18826). Range: 256–65536. |
AUTOBOT_HTML_TITLE_MAX_CHARS |
knowledge | int | 300 |
Longest page title, in characters, the HTML extractor keeps from og:title or <title> (media/document/html_extraction.py, #18826). Range: 40–4096. |
AUTOBOT_IDEMPOTENCY_CLAIM_ATTEMPTS |
backend | int | 3 |
How many times an idempotency claim re-runs its atomic SET NX after the record it lost to turns out to have expired. Reporting 'unseen' at that point would let every loser of the race create (autobot_shared/idempotency.py, #15778). |
AUTOBOT_IDEMPOTENCY_CLAIM_TTL_SECONDS |
backend | int | 300 |
How long an in-flight idempotency claim is held before another caller may retry it. A request that dies between claiming and completing would otherwise wedge the key for the full replay TTL (autobot_shared/idempotency.py, #15778). |
AUTOBOT_IDEMPOTENCY_TTL_SECONDS |
backend | int | 86400 |
How long a completed creation stays replayable for its Idempotency-Key. Long enough to outlive any retry an agent or proxy makes, short enough that the keyspace stays bounded (autobot_shared/idempotency.py, #15778). |
AUTOBOT_IDLE_NOTICE_TIMEOUT_SECONDS |
agents | float | 300.0 |
Bound on wait_for_idle()'s one-shot subscription (#16949): how long it waits for a peer to go idle before raising IdleWaitExpiredError instead of waiting forever. Raising it tolerates a longer-running peer before giving up; lowering it fails a stuck wait sooner (protocols/idle_notice.py). |
AUTOBOT_IMESSAGE_ENABLED |
gateway | bool | false | Opt in to the iMessage gateway adapter. Off by default: it is macOS-only and needs Full Disk Access to the Messages database. |
AUTOBOT_INDEXING_HARD_TIMEOUT |
analytics | int | 1800 |
Seconds a codebase indexing subprocess may run in total before it is killed. Range: 60–86400. |
AUTOBOT_INDEXING_PROGRESS_TIMEOUT |
analytics | int | 300 |
Seconds a codebase indexing subprocess may show no progress before it is killed. Range: 30–14400. |
AUTOBOT_INDEXING_WATCHDOG_INTERVAL |
analytics | int | 30 |
Seconds between the indexing watchdog's progress checks. Range: 1–300. |
AUTOBOT_INJECTION_HARDBLOCK_ENABLED |
auth | bool | false | Hard-block prompt injection rather than only flagging it. When on and confidence clears the threshold, the request is refused instead of annotated. |
AUTOBOT_INJECTION_HARDBLOCK_THRESHOLD |
auth | float | 0.75 |
Confidence in [0.0, 1.0] at or above which a detected injection is hard-blocked. 0.75 maps to HIGH; 1.0 would block only CRITICAL. |
AUTOBOT_INTERNAL_API_KEY |
auth | str | "" |
Shared secret used to authenticate internal service-to-service calls. |
AUTOBOT_ISSUE_CLAIMS_API_TIMEOUT_S |
orchestration | int | 10 |
Per-request timeout of the issue-claims CLI's API transport; expiry fails closed (#18811). Range: 1–120. |
AUTOBOT_ISSUE_CLAIMS_API_URL |
orchestration | str | "" |
Base URL of AutoBot's backend for the issue-claims CLI (#18811). When set, python -m autobot_shared.coordination.issue_claims talks to /api/coordination/issue-claims instead of Redis, so a developer checkout needs no registry credential. Must be https, or http to a loopback host. Authenticate once with issue_claims login (credential kept in the kernel keyring, cleared on reboot). Never derived from the SSOT backend URL. Unset keeps the direct Redis transport. |
AUTOBOT_ISSUE_CLAIMS_CREDENTIAL_TTL_S |
orchestration | int | 604800 |
Lifetime of an issue-claims client credential minted by issue_claims login (#18811). The credential is a secret in the minting user's vault; past this age it is refused, so one orphaned by a reboot (the kernel keyring is cleared) stops working without a revoke. Range: 3600–7776000. |
AUTOBOT_ISSUE_CLAIMS_FAILURE_LIMIT |
orchestration | int | 10 |
Failed issue-claims credential checks one client source may make per window; past it the source is refused with 429 before any credential lookup (#18811). Range: 1–10000. |
AUTOBOT_ISSUE_CLAIMS_FAILURE_WINDOW_S |
orchestration | int | 300 |
Window over which failed issue-claims credential checks are counted per client source and aggregated into one audit event (#18811). Range: 10–86400. |
AUTOBOT_ISSUE_CLAIM_SESSION_TTL_S |
orchestration | int | 14400 |
How long a developer session's claim on a GitHub issue survives without a ledger heartbeat (#17098). The session ledger writes through to the work-claims registry for its issue kind; a crashed session frees the issue after this long. Mirrors the ledger's own 4h default. Range: 60–172800. |
AUTOBOT_JUDGE_FAIL_CLOSED |
judges | bool | false | When true, a workflow step whose LLM judgment could not be read is HELD instead of approved. Default false keeps #1464's fail-open posture; either way the evaluation result carries judge_available and a degradation code, and the outcome is counted (judges/init.py, #17307). |
AUTOBOT_JWT_CLOCK_SKEW_LEEWAY_SECONDS |
security | int | 5 |
Clock-skew tolerance in seconds for JWT verification (#18792). A backward wall-clock step (WSL2) or skew between issuing and verifying hosts otherwise rejects a fresh token whose iat is ahead of the verifier's clock. Applies to the iat and nbf claims only; exp stays strict. Clamped to 0-60. |
AUTOBOT_KB_BACKUP_EMBEDDING_BATCH_SIZE |
knowledge | int | 500 |
Facts read from the vector collection per call while a knowledge backup or export includes their embeddings (knowledge/backup_embeddings.py, #19647). Range: 1–5000. |
AUTOBOT_KB_BM25_REFRESH_MIN_INTERVAL_S |
knowledge | float | 60.0 |
Least time between BM25 corpus-stats recomputes, each of which reads every fact (#19726). Range: 1.0–3600.0. |
AUTOBOT_KB_CHUNK_MAX_TOKENS |
knowledge | int | 800 |
Token budget (~4 chars per token) per stored chunk when KnowledgeBase.add_document splits a long document; read by knowledge/document_ingest.py (#17830). Range: 50–100000. |
AUTOBOT_KB_EMBED_MAX_WINDOWS |
knowledge | int | 32 |
Windows embedded for one long fact; past this only the leading ones are searchable (#20066). Range: 1–1000. |
AUTOBOT_KB_EMBED_WINDOW_CHARS |
knowledge | int | 4000 |
Characters per window when a fact is too long for the embedding model (#20066). Range: 200–100000. |
AUTOBOT_KB_EVENT_FETCH_CAP |
knowledge | int | 2500 |
Most events fetched per request by those routes; api/knowledge_graph_routes.py (#16665). Range: 1–100000. |
AUTOBOT_KB_EVENT_OVERFETCH_FACTOR |
knowledge | int | 5 |
How many times the requested page the event routes fetch before filtering by what the caller may see, so a filtered page can still fill; api/knowledge_graph_routes.py (#16665). Range: 1–100. |
AUTOBOT_KB_INGEST_RECORD_TTL_SECONDS |
knowledge | int | 2592000 |
Seconds a per-document ingest status record (success/partial/timeout) is kept so a retry can resume after the last stored chunk; read by knowledge/document_ingest.py (#17986). |
AUTOBOT_KB_KEYWORD_SEARCH_MAX_SCAN |
knowledge | int | 10000 |
Facts one keyword search reads at most; a warning says when it cut one short (#19726). Range: 100–1000000. |
AUTOBOT_KB_METRICS_COUNT_REFRESH_SECONDS |
knowledge | float | 300.0 |
Minimum seconds between the doc:* and kb_cache:* keyspace walks that feed the kb_vector_count / kb_cache_entries gauges; the cached count is served in between; read by utils/system_metrics.py (#18999). Range: 1.0–86400.0. |
AUTOBOT_KB_RETRY_COOLDOWN_SECONDS |
knowledge | int | 60 |
Seconds after a failed knowledge-base initialization during which every access path returns None instead of retrying ChromaDB; force_refresh bypasses it; read by knowledge_factory.py (#3094, #18122). Range: 1–86400. |
AUTOBOT_KB_SOURCE_LOOKUP_CONCURRENCY |
knowledge | int | 8 |
Source-fact lookups at once for one visibility pass; knowledge/summary_visibility.py (#16665). Range: 1–256. |
AUTOBOT_KB_TENANT_GROUPS_TTL_SECONDS |
knowledge | int | 60 |
Seconds a user's team memberships, resolved for the KB visibility principal of a tenant-context route, are reused before the team service is asked again; a membership removal or team delete bumps the organisation's membership epoch and drops every worker's entries at once; an epoch that cannot be read re-resolves and neither serves nor fills the cache, so this window bounds staleness only after a bump exhausts its retries; 0 disables the cache; read by knowledge/tenant_groups.py (#19007, #19630). Range: 0–3600. |
AUTOBOT_KB_TIMEOUT |
kb | int | 30 |
Timeout in seconds for knowledge-base HTTP requests. Range: 1–300. |
AUTOBOT_KB_UPLOAD_MAX_MB |
knowledge | int | 10 |
Largest knowledge file the upload route accepts, in MB; the upload dialog reads it too (#19712). Range: 1–1024. |
AUTOBOT_KB_VECTORIZE_CHECK_INTERVAL_SECONDS |
knowledge | int | 300 |
Seconds between vector-reconciler wakes (#17548). The reconciler finds knowledge facts that were stored but never vectorised -- the declared half of the projection contract that previously never ran. Env-backed rather than a literal because the cadence suiting a KB with a handful of facts is not the one suiting a large one, and floored at 30s so a misconfiguration cannot turn it into a busy loop against Redis. Prefixed AUTOBOT_ deliberately: the registry's sweep is keyed on that prefix, so an unprefixed name is not reported as unregistered, it is invisible (#17751). |
AUTOBOT_KNOWLEDGE_EXPORT_MIN_CONFIDENCE |
self_improvement | float | 0.8 |
Minimum confidence score a learned failure pattern must have to be included in a governance knowledge export. Raising it exports only higher-confidence patterns; lowering it includes more, less-certain ones (api/agents_self_improvement.py). |
AUTOBOT_KNOWLEDGE_EXPORT_PATTERN_LIMIT |
self_improvement | int | 500 |
Maximum number of failure patterns scanned when building a governance knowledge export (GH#11179). Raising it scans more patterns before truncating; lowering it risks silently omitting patterns beyond the limit (api/agents_self_improvement.py). |
AUTOBOT_LEARNED_TEMPLATE_MAX |
self_improvement | int | 500 |
Maximum characters kept from untrusted imported free-text when importing a reviewer-curated learned strategy (#11060). Raising it preserves more of a long imported template; lowering it truncates more aggressively, reducing how much unsanitized text is retained (api/agents_self_improvement.py). |
AUTOBOT_LEDGER_EVENT_CAP |
orchestration | int | 500 |
How many coordination events the agent ledger retains, newest first (#18391): claims that expired while held, releases aimed at another holder's claim, and yield requests with their answers. A bounded audit trail for the ledger screens, not an archive. Range: 50–5000. |
AUTOBOT_LEDGER_EVENT_TTL_S |
orchestration | int | 604800 |
Idle lifetime of the agent ledger's event list, refreshed by every write (#18391). Nothing is aged out individually: only the event cap trims the list, and this TTL (reset on every write) only stops an abandoned list outliving the install. Range: 3600–7776000. |
AUTOBOT_LEDGER_ID_MAX_LEN |
orchestration | int | 256 |
Longest holder task id a yield request may name (#18607). A longer request body is refused with HTTP 422 at parse time, before anything reads it. Range: 32–1024. |
AUTOBOT_LEDGER_PROJECTION_TTL_S |
orchestration | int | 120 |
How long the user backend's snapshot of live agent state (presence, pending peer messages, idle subscriptions) stays readable by the SLM ledger without a refresh (#18632). Longer than the presence sweep so one slow sweep does not blank the SLM; a stopped backend's snapshot expires and reads as 'couldn't read', never as stale. Range: 10–3600. |
AUTOBOT_LEDGER_SCOPE_MAX_LEN |
orchestration | int | 512 |
Longest claim scope a yield request may name (#18607). A longer request body is refused with HTTP 422 at parse time, before anything reads it. Range: 64–4096. |
AUTOBOT_LEDGER_TEXT_CAP |
orchestration | int | 280 |
Longest caller-supplied free text (a yield request's reason) an agent-ledger event keeps (#18391). The activity screen shows it to other viewers, so it is bounded on write. Range: 32–2000. |
AUTOBOT_LEDGER_YIELD_ASK_LIMIT |
orchestration | int | 1 |
How many times one person may ask the holder of one claim to release it inside AUTOBOT_LEDGER_YIELD_ASK_WINDOW_S (#18599); further asks answer HTTP 429. Range: 1–100. |
AUTOBOT_LEDGER_YIELD_ASK_WINDOW_S |
orchestration | int | 60 |
Seconds over which one person may ask the holder of one claim to release it at most AUTOBOT_LEDGER_YIELD_ASK_LIMIT times (#18599). Keyed by user and scope. Range: 1–86400. |
AUTOBOT_LIVE_PROBE_TIMEOUT_SECONDS |
testing | float | 1.0 |
Seconds a test's live-service precondition probe waits for a TCP connect before reporting the service as absent and skipping (autobot_shared/live_service_probe.py, #14930). Short by default: a refused loopback connect returns immediately, and this runs once per endpoint per process. Raise it when probing a fleet host across a link slow enough that a live service could be mistaken for a missing one. Range: 0.1–60.0. |
AUTOBOT_LIVE_TESTS |
testing | bool | false | Opt a test run into driving live AutoBot services (#19479). Without it, every test that calls require_live_endpoint (autobot_shared/live_service_probe.py) skips, even when a service is listening: on a machine that also runs an install, the configured URL is the user's live system, and some of these tests write to it (knowledge-base decisions). Set it only for a run whose target is a stack you mean to test. |
AUTOBOT_LLC_ATTACHMENT_REMOVAL_MAX_ATTEMPTS |
orchestrator | int | 10 |
Failed attempts after which an attachment file-deletion outbox entry is marked stuck (#19756). A stuck entry stays in the table with its last error, is skipped by the sweep so it cannot starve newer entries, and is counted in the sweep result and log. Range: 1–None. |
AUTOBOT_LLC_ATTACHMENT_REMOVAL_RETRY_SECONDS |
orchestrator | int | 300 |
Seconds an attachment file-deletion outbox entry waits after a failed attempt before it is retried (#19756). Floored at 30 seconds. Range: 30–None. |
AUTOBOT_LLC_ATTACHMENT_ROOT_ID |
orchestrator | str | "" |
Identity of the attachment storage this node owns (#19756). Every outbox row records the identity of the node that deleted it, and a node only removes files for its own identity: a missing file on a node that does not own the storage proves nothing. Empty derives the identity from the host name and the storage root path. Set the same value on every node that mounts one shared volume, or entries written by one will never be drained by the other. |
AUTOBOT_LLC_ATTACHMENT_STAGING_MAX_AGE_SECONDS |
orchestrator | int | 3600 |
Seconds a file with no database row must sit in the attachment staging directory before the attachment file sweep moves it to the quarantine subdirectory (#19756). A staged file whose row exists is committed content and is published at the next sweep whatever its age. Nothing is deleted: quarantined files stay until a person decides. Only the staging directory is ever touched. Floored at 300 seconds so a slow upload still in flight is never mistaken for an abandoned one. Range: 300–None. |
AUTOBOT_LLC_ATTACHMENT_SWEEP_INTERVAL_SECONDS |
orchestrator | int | 300 |
Seconds between runs of the attachment file sweep (#19756), which retries removals recorded in the attachment deletion outbox until the file is gone and settles stale staging files. Floored at 30 seconds. Range: 30–None. |
AUTOBOT_LLC_DEFAULT_HEARTBEAT_CRON |
orchestrator | str | '* * * * *' |
Cron a hired Company OS agent wakes on when the hire request does not name one (#15907, owner ruling 2026-09-28). The scheduler's gate is heartbeat_enabled = true AND heartbeat_cron IS NOT NULL, and this field previously defaulted to NULL, so an agent hired with the flag set and no cron was never scheduled -- the flag said yes and the column the scheduler reads said nothing. One minute is affordable because #17726's idle short-circuit returns before creating a run when the agent's queue is empty; without that it would be 1,440 full invocations per agent per day. heartbeat_enabled still defaults false, so a cadence is not an opt-in. |
AUTOBOT_LLC_DISPOSAL_EXECUTION_WINDOW_DAYS |
orchestrator | float | 7.0 |
How many days an approved workspace-disposal proposal stays executable (#17738). An executed proposal keeps status APPROVED -- execution is recorded in its context, not in the status -- so without a window the hourly sweep re-read its entire approval history for ever, growing without bound. A time bound also stops a decision approved months ago being executed against a workspace whose branch and landedness have moved on since a human looked at it. Aged-out approvals are skipped, never marked EXPIRED: an unattended change to a human's decision record is what the propose-then-approve design exists to prevent. Floored at 1 day, because 0 would place every decision outside the window and disable the sweep silently. |
AUTOBOT_LLC_FIRST_OUTPUT_DEADLINE_SECONDS |
orchestrator | int | 120 |
Seconds after a Company OS CLI agent spawns before its output file must have received at least one byte, or the run is killed as stalled (GH#13099). The Claude Code and Copilot CLIs both emit their first JSONL line within a few seconds of a cold start; 120s is generous headroom for that before 'nothing yet' means a hung dispatch rather than a slow one. |
AUTOBOT_LLC_H2A_BRIEF_CACHE_TTL |
orchestrator | int | 86400 |
Cache lifetime in seconds for a human-to-agent handoff brief (llc/services/handoff.py). One day. |
AUTOBOT_LLC_HEARTBEAT_IDLE_WAKE_TTL_SECONDS |
orchestrator | float | 604800.0 |
How long the per-agent idle-wake counter and last-idle-wake timestamp are kept in Redis (#17726). A short-circuited wake writes no llc_heartbeat_runs row, so these two keys are the only evidence it happened -- without them 'the queue was empty' and 'the scheduler is dead' are the same observation. A week outlasts any plausible investigation into a quiet agent. A Redis hash field cannot expire on its own, so the TTL is reapplied to the whole key on each write. |
AUTOBOT_LLC_SCHEDULE_RECONCILE_INTERVAL_SECONDS |
orchestrator | float | 60.0 |
Seconds between passes that put a heartbeat-enabled agent or an active routine back on the heartbeat schedule when it is missing (#20117). A pass is the longest a member lost between a poller's claim and its re-add stays lost; each restore is logged. Agents that are paused, terminated or heartbeat-disabled, and routines that are not active, are left off. Floored at 5 seconds, because each pass reads the agent and routine tables. |
AUTOBOT_LLC_STALL_DEADLINE_SECONDS |
orchestrator | int | 600 |
Seconds of silence in a Company OS CLI agent's output file, after its first byte, before the run is killed as stalled rather than left to burn out the full run timeout (GH#13099). Both CLIs stream output line-buffered, so a healthy run keeps producing it; the one legitimate quiet stretch is a single long tool call (a build, a test suite), which 600s (10 min) outlasts without a false positive. |
AUTOBOT_LLM_HEADROOM_FLOOR |
ai | float | 0.05 |
Remaining fraction of a rate-limit window at or below which routing moves on. |
AUTOBOT_LLM_HEADROOM_MAX_AGE_SECONDS |
ai | float | 120.0 |
Age in seconds beyond which an observed rate-limit reading is ignored. |
AUTOBOT_LLM_MAX_RETRY_AFTER_SECONDS |
ai | float | 30.0 |
Cap applied to a provider's Retry-After. Without it a provider advertising a long back-off would stall a request for that whole period (services/llm_service.py). |
AUTOBOT_LLM_OAUTH_UNUSABLE_TTL_SECONDS |
auth | int | 300 |
How long a signed-in LLM provider token whose refresh failed is skipped before another refresh is tried (llm_shared/provider_token_refresh.py). While skipped, calls fall through to the next credential (the system token, then the API key). Floored at 60 so the backoff cannot become a re-POST on every call. Range: 60–None. |
AUTOBOT_LLM_PROVIDER_ORDER |
ai | str | 'ollama,*' |
Comma-separated provider preference order for the registry's fallback chain, in which * means 'then every other registered provider, in registration order' (#15500). Before this existed the order was statement order in _populate_default_providers, so Ollama was always primary and an operator's paid provider was reached only once Ollama failed. A list without * is exhaustive: unnamed providers stay registered and reachable by explicit request but are absent from the fallback chain, which is how a provider is held out of the generation path rather than merely demoted. The default reproduces the previous order. Parsed by autobot_shared/llm_provider_order.py, which owns the default this entry shows. |
AUTOBOT_LLM_QUOTA_HEADROOM_TTL_SECONDS |
ai | int | 3600 |
Seconds a recorded provider rate-limit headroom reading stays valid before it expires. |
AUTOBOT_LLM_QUOTA_HOLD_DEFAULT_SECONDS |
ai | int | 3600 |
How long a model stays held out after a plan/quota/billing failure when the provider did not say when it resets (llm_shared/failover_policy.py, #19753). A transient provider error is skipped for AUTOBOT_PROVIDER_DEGRADATION_TTL_SECONDS instead. Range: 1–604800. |
AUTOBOT_LLM_QUOTA_HOLD_MAX_SECONDS |
ai | int | 86400 |
Upper bound on a quota hold, including a reset time the provider stated, so a bogus reset cannot park a model forever (llm_shared/failover_policy.py, #19753). Range: 1–2592000. |
AUTOBOT_LLM_SPEND_RECORD_TIMEOUT_SECONDS |
ai | float | 10.0 |
How long an ended LLM stream waits for its spend record to be stored before letting go (services/llm_usage_recording.py, #16924). The record keeps running in the background past this, and a failure is still logged; only the wait is bounded. Range: 0.1–120.0. |
AUTOBOT_LLM_TASK_MAX_TOKENS_CAP |
ai | int | 4096 |
Ceiling on the max_tokens an llm_chat_completion task payload may request (task_handlers/llm_handlers.py, #19649); a larger request is capped, not refused. Range: 1–1000000. |
AUTOBOT_LLM_TOKEN_BUDGET_PER_RUN |
ai | int | 0 |
Cumulative token ceiling (input plus output) for one run. Zero disables the gate, which is the shipped default (#11541). |
AUTOBOT_LLM_TOKEN_BUDGET_TTL_SECONDS |
ai | int | 86400 |
Seconds a run's cumulative token counter survives in Redis, bounding memory for abandoned sessions. Refreshed on every increment. |
AUTOBOT_LLM_TRACING_ALLOWED_ORIGINS |
security | str | "" |
Comma-separated exact origins (scheme://host[:port]) an LLM tracing destination may use (#19933), e.g. a self-hosted collector on a private address. Empty: none. A listed origin is allowed even when private or loopback; link-local, cloud-metadata and unspecified hosts are refused, and an entry with userinfo, a backslash or other non-strict shape never matches. SSOT service origins are not trusted for tracing. |
AUTOBOT_LLM_TRACING_ALLOW_EXTERNAL |
security | bool | false | Allow an LLM tracing destination on a public address that is not listed in AUTOBOT_LLM_TRACING_ALLOWED_ORIGINS (#19933). Off: a tracing key alone never moves prompt metadata off the install, and the destination is refused at startup. On: a public destination is allowed; private, loopback and link-local ones are still refused. |
AUTOBOT_LLM_TRACING_INCLUDE_CONTENT |
security | bool | false | Send prompt and response text to an enabled LLM tracing destination (#19933). Off: only metadata (ids, model, token usage, latency) is sent. On: the text is sent after the outbound credential redaction. |
AUTOBOT_LOGS_BACKUP_DIR |
logging | str | 'backup' |
Directory where rotated log archives are written. |
AUTOBOT_LOGS_DIR |
logging | str | 'logs' |
Primary directory for application log files. |
AUTOBOT_LOG_FLOOD_ENABLED |
logging | bool | true | Bound how many identical WARNING/ERROR records one call site may emit per window (#15774). |
AUTOBOT_LOG_FLOOD_MAX_KEYS |
logging | int | 2048 |
Maximum distinct call sites tracked by the log-flood guard before least-recent eviction. |
AUTOBOT_LOG_FLOOD_THRESHOLD |
logging | int | 5 |
Records one log call site may emit per flood window before the rest are suppressed. |
AUTOBOT_LOG_FLOOD_WINDOW_SECONDS |
logging | float | 60.0 |
Length of the log-flood suppression window, in seconds. |
AUTOBOT_LOG_VALUE_MAX_CHARS |
security | int | 256 |
Longest untrusted value sanitize_log_value() will interpolate into a log line (#13602). Beyond it the value is truncated with an explicit marker, so the subject of a rejected request cannot pad the log store out. A negative value is rejected in favour of the default: disabling the bound would defeat the guard. |
AUTOBOT_LOG_VIEWER_URL |
logging | str | 'http://localhost:5341' |
Base URL of the Seq (or compatible) structured-log viewer. |
AUTOBOT_MACHINE_SLOTS |
testing | int | 4 |
How many heavy local runs (hooks, floor checks, big pytest runs) go at once. |
AUTOBOT_MACHINE_SLOT_BIG_RUN |
testing | int | 100 |
Tests in a non-xdist pytest run at which it queues for a slot. |
AUTOBOT_MACHINE_SLOT_DIR |
testing | str | "" |
Directory of the slot lock files; empty means the user's runtime directory. |
AUTOBOT_MACHINE_SLOT_HELD |
testing | str | "" |
Set by a holder so its child processes do not queue for a second slot. |
AUTOBOT_MACHINE_SLOT_POLL |
testing | float | 5.0 |
Seconds between attempts while queued for a machine slot. |
AUTOBOT_MATRIX_E2EE |
gateway | bool | false | Opt in to end-to-end encryption for the Matrix adapter. Off by default because E2EE needs the optional olm dependency and a persisted device store. |
AUTOBOT_MAX_ATTEMPTS_REFUSAL_BROADCAST_INTERVAL_S |
backend | int | 3600 |
How often to re-broadcast that a node is still at MAX_REMEDIATION_ATTEMPTS. Once exhausted, last_attempt freezes and this refusal is refused again on every reconcile pass forever — unthrottled, that is once per reconcile_interval (services/reconciler.py, #14465). |
AUTOBOT_MAX_CONTINUATION_ITERATIONS |
backend | int | 5 |
Maximum multi-step continuation iterations for one chat turn. Read by chat_workflow/limits.py, which both ChatWorkflowManager and graph.py's routing decision source -- graph.py previously hardcoded this bound and ignored the named constant, so raising it had no effect on the LangGraph path (#352, #17468). |
AUTOBOT_MAX_DELEGATIONS_PER_TURN |
ai | int | 5 |
Delegate calls allowed in a single LLM turn — a fan-out bound, not a quality setting. |
AUTOBOT_MAX_DELEGATION_DEPTH |
ai | int | 2 |
How deep delegation may nest before it is refused, bounding runaway recursive delegation. |
AUTOBOT_MAX_FALLBACK_ATTEMPTS |
llm | int | 3 |
Maximum model-level fallback attempts the coordinator makes after a quota/rate-limit exhaustion before giving up. Raising it tries more fallback models before failing; lowering it gives up sooner, failing faster but with less fallback coverage (llm_shared/model_fallback_coordinator.py). |
AUTOBOT_MAX_TASK_TYPE_KEYS_PER_TENANT |
agents | int | 64 |
Per-tenant cap on distinct task_type keys the pattern learner tracks in Redis, beyond the known-vocabulary allowlist (GH#11534). Raising it tolerates more distinct task types per tenant before capping; lowering it bounds Redis key growth more tightly against a runaway integration (agents/task_pattern_learner.py). |
AUTOBOT_MAX_UNMATCHED_OUTPUT_CHARS |
tools | int | 20000 |
Cap on unmatched tool-output characters retained before the filter truncates. Raising it keeps more raw output for unmatched patterns; lowering it truncates sooner, reducing memory/storage per tool call (services/tool_output_filter.py). |
AUTOBOT_MCP_BROWSER_RATE_LIMIT |
security | int | 60 |
Requests per 60-second window accepted by the browser automation MCP bridge, shared by all workers (#18087). One Redis-backed count across all workers; over it the caller is refused (HTTP 429, or JSON-RPC -32029 on the MCP server). Fails open while Redis is unreachable. |
AUTOBOT_MCP_DATABASE_RATE_LIMIT |
security | int | 60 |
Requests per 60-second window accepted by the database MCP bridge, shared by all workers (#18087). One Redis-backed count across all workers; over it the caller is refused (HTTP 429, or JSON-RPC -32029 on the MCP server). Fails open while Redis is unreachable. |
AUTOBOT_MCP_GIT_RATE_LIMIT |
security | int | 60 |
Requests per 60-second window accepted by the Git MCP bridge (/api/git_mcp/*), shared by all workers (#18087). One Redis-backed count across all workers; over it the caller is refused (HTTP 429, or JSON-RPC -32029 on the MCP server). Fails open while Redis is unreachable. |
AUTOBOT_MCP_HTTP_CLIENT_RATE_LIMIT |
security | int | 120 |
Requests per 60-second window accepted by the HTTP client MCP bridge, shared by all workers (#18087). One Redis-backed count across all workers; over it the caller is refused (HTTP 429, or JSON-RPC -32029 on the MCP server). Fails open while Redis is unreachable. |
AUTOBOT_MCP_SERVER_RATE_LIMIT |
security | int | 50 |
Requests per 60-second window accepted per token by the AutoBot MCP server (post-auth), shared by all workers (#18087). One Redis-backed count across all workers; over it the caller is refused (HTTP 429, or JSON-RPC -32029 on the MCP server). Fails open while Redis is unreachable. |
AUTOBOT_MEMBERSHIP_EPOCH_BUMP_ATTEMPTS |
knowledge | int | 3 |
Tries the post-commit bump of an organisation's team-membership epoch gets before the failure is raised; every failed try is logged at error level; read by autobot_shared/membership_epoch.py (#19630). Range: 1–10. |
AUTOBOT_MEMBERSHIP_EPOCH_BUMP_BACKOFF_SECONDS |
knowledge | float | 0.2 |
Seconds before the second try of a failed team-membership epoch bump; doubles on each further try; read by autobot_shared/membership_epoch.py (#19630). Range: 0.0–10.0. |
AUTOBOT_MEMBER_EPOCH_WRITE_CONCURRENCY |
security | int | 10 |
Members whose token-revocation marker is written at once when an organisation is deactivated or deleted (#20443); bounds the store's concurrent writes however large the organisation is; read by autobot_shared/user_management/password_epoch.py. Range: 1–100. |
AUTOBOT_MEMORY_GRAPH_SCAN_KEY_BUDGET |
memory_graph | int | 20000 |
Most memory:entity:* keys one scan-fallback call (_fallback_search, get_entities_as_of) may examine before it stops and returns what it found, logging a warning (autobot_memory_graph/queries.py). |
AUTOBOT_MEMORY_SESSION_LIST_LIMIT |
memory | int | 50 |
Default number of sessions memory.session_list returns when the caller gives no limit (memory/verbatim_sessions.py, #11137). Range: 1–10000. |
AUTOBOT_MEMORY_SESSION_LIST_MAX_SCAN |
memory | int | 5000 |
Most of the caller's chunks one memory.session_list call scans when grouping them into sessions (memory/verbatim_sessions.py, #11137). Range: 1–1000000. |
AUTOBOT_MEMORY_SESSION_READ_MAX_BYTES |
memory | int | 262144 |
Most text bytes one memory.session_read call returns after redaction; over it the result carries truncated=true (memory/verbatim_sessions.py, #11137). |
AUTOBOT_MEMORY_SESSION_READ_MAX_CHUNKS |
memory | int | 500 |
Most chunks one memory.session_read call returns for a single session (memory/verbatim_sessions.py, #11137). Range: 1–100000. |
AUTOBOT_MIGRATION_BACKFILL_BATCH_SIZE |
backend | int | 1000 |
Rows per statement when a migration backfills a column in chunks. An unbounded UPDATE holds locks for its whole duration and can exceed the bind-parameter limit, stopping a rolling update mid-flight (migrations/templates/chunked_backfill.py, #15776). |
AUTOBOT_MULTIMODAL_VOICE_CONFIDENCE_THRESHOLD |
voice | float | 0.7 |
Fallback confidence threshold for VoiceProcessor when the multimodal.voice config section omits it (#13207). Range: 0.0–1.0. |
AUTOBOT_MULTIMODAL_VOICE_PROCESSING_TIMEOUT |
voice | int | 30 |
Fallback processing timeout in seconds for VoiceProcessor when the multimodal.voice config section omits it (#13207). |
AUTOBOT_NODE_PROXY_TIMEOUT_SECONDS |
slm | float | 15.0 |
Ceiling on a proxied request from the SLM to a node's backend. The aggregator fans out across the fleet, so without a bound one unresponsive node would hold the whole lifecycle view open. |
AUTOBOT_NODE_RESOURCE_DEGRADED_PCT |
slm | int | 80 |
CPU, memory or disk percent above which a heartbeat sample counts as resource pressure (node DEGRADED, reason resource_pressure) once the dwell below is met (autobot-slm-backend/services/node_health_status.py, #19292). Range: 1–100. |
AUTOBOT_NODE_RESOURCE_ENTER_SAMPLES |
slm | int | 3 |
Consecutive heartbeat samples worse than a node's current resource level before its status worsens. 1 restores the old follow-one-sample behaviour that let a single CPU burst flap the node (autobot-slm-backend/services/node_health_status.py, #19292). Range: 1–1000. |
AUTOBOT_NODE_RESOURCE_ERROR_PCT |
slm | int | 95 |
CPU, memory or disk percent above which a heartbeat sample counts toward node ERROR once the dwell below is met. Clamped to at least the degraded level (autobot-slm-backend/services/node_health_status.py, #19292). Range: 1–100. |
AUTOBOT_NODE_RESOURCE_EXIT_SAMPLES |
slm | int | 3 |
Consecutive heartbeat samples better than a node's current resource level before its status recovers, so recovery is damped too (autobot-slm-backend/services/node_health_status.py, #19292). Range: 1–1000. |
AUTOBOT_NPM_BUILD_TIMEOUT |
slm | float | 300.0 |
Timeout, in seconds, for npm run <build> (the vite build step) during a frontend component sync. Raising it tolerates a slower build; lowering it fails a stuck build sooner (autobot-slm-backend/api/code_sync.py, #11351). |
AUTOBOT_NPM_INSTALL_TIMEOUT |
slm | float | 300.0 |
Timeout, in seconds, for npm ci (dependency install) during a frontend component sync. A Windows-generated package-lock.json read over WSL can be slow, which is why the default matches pip's. Raising it tolerates a slower install; lowering it fails a stuck install sooner (autobot-slm-backend/api/code_sync.py, #11351). |
AUTOBOT_OAUTH_REFRESH_LOCK_TTL_MS |
auth | int | 90000 |
Milliseconds a connector holds the single-flight lock while refreshing an OAuth token. Derived as three times the token request timeout — 90000 with the default 30s timeout — so it tracks that timeout instead of drifting from it (knowledge/connectors/credential_store.py). This variable can only RAISE it: a smaller value is floored back to the derived TTL and a warning is logged, because the lease is held across the store write as well as the HTTP call, and one that expires mid-refresh lets two workers rotate the same token (#14238). |
AUTOBOT_OAUTH_REFRESH_POLL_S |
auth | float | 0.2 |
Polling interval while waiting on another worker's token refresh. Floored at 0.05s, since zero would busy-loop the executor. |
AUTOBOT_OAUTH_REFRESH_WAIT_S |
auth | float | 0.0 |
Seconds a caller waits for another worker's in-flight token refresh before refreshing itself. The effective value is floored at the lock TTL plus five seconds — 95 with the defaults — because a caller that gives up before the lease expires abandons a refresh still in progress. Setting it below that floor therefore has no effect. |
AUTOBOT_OLLAMA_BASE_URL |
ai | str | (none) | Base URL of the local Ollama API (e.g. http://localhost:11434). |
AUTOBOT_OPENVINO_CACHE_DIR |
ai | str | (none) | Directory for compiled OpenVINO model artefacts. Unset: shared_cache_path('openvino') in the user cache, never the repo (#19553). |
AUTOBOT_ORCHESTRATOR_MODEL |
ai | str | 'llama3.2:1b' |
Ollama model name used for the main orchestrator/routing loop. |
AUTOBOT_ORPHAN_GRACE_HOURS |
storage | int | 24 |
An orphan-storage detector (#17038/#17039) excludes anything younger than this many hours, so a clone or file still being written is never offered for cleanup. Clamped to at least 1 -- 0 would offer data mid-write. Raising it widens the safety window before a genuine orphan is even listed; lowering it surfaces one sooner (services/orphan_storage.py). Range: 1–720. |
AUTOBOT_OTEL_ENABLED |
otel | bool | false | Enable OpenTelemetry tracing when truthy. |
AUTOBOT_OTEL_ENDPOINT |
otel | str | (none) | OTLP collector endpoint URL (e.g. http://otel-collector:4317). |
AUTOBOT_OTEL_PROTOCOL |
otel | str | 'grpc' |
OTLP export protocol: 'grpc' or 'http/protobuf'. |
AUTOBOT_OTEL_SAMPLE_RATE |
otel | float | 0.1 |
Fraction of traces to sample (0.0–1.0). Range: 0.0–1.0. |
AUTOBOT_OTEL_SERVICE_VERSION |
otel | str | '1.5.0' |
Service version tag attached to all OTel spans. |
AUTOBOT_OVERSEER_COMMAND_TIMEOUT_S |
agents | int | 60 |
Seconds an overseer step command may run in the user's terminal before it is interrupted and reported as timed out (#17078). A step that finishes sooner returns as soon as its exit code appears (agents/overseer/step_executor_agent.py). Range: 1–3600. |
AUTOBOT_OWNERSHIP_BLAME_TIMEOUT_SECONDS |
backend | float | 10.0 |
Seconds a single git blame may take during ownership analysis. Must stay below the whole-analysis budget, which a previous 30s value exceeded (#13602). |
AUTOBOT_OWNERSHIP_BUDGET_SECONDS |
backend | float | 20.0 |
Total seconds ownership analysis may spend blaming files before it returns what it has (#13602). |
AUTOBOT_OWNERSHIP_MAX_FILES |
backend | int | 2000 |
How many files ownership analysis will blame. Paired with the time budget because a file count alone is the wrong bound — file size dominates blame cost (#13602). |
AUTOBOT_PAPERCLIP_COMMENT_DEDUP_TTL |
paperclip | int | 3600 |
TTL, in seconds, for the idempotency key that deduplicates a Paperclip issue comment. Raising it widens the window in which a retried comment is treated as a duplicate; lowering it narrows that window, risking a duplicate comment on a slow retry (autobot_shared/paperclip_client.py). |
AUTOBOT_PASSWORD_CHANGE_SESSION_MAX_ATTEMPTS |
backend | int | 5 |
Password-change attempts allowed per CLIENT on the session auth surface before a 429 (autobot-backend/api/auth.py). Deliberately looser than the targeted limiter below: this one keys on the caller's client id and guards a self-service form, where a legitimate user mistyping their current password is the common case (#15757). |
AUTOBOT_PASSWORD_CHANGE_SESSION_WINDOW_SECONDS |
backend | int | 300 |
Sliding window for AUTOBOT_PASSWORD_CHANGE_SESSION_MAX_ATTEMPTS, in seconds (#15757). |
AUTOBOT_PASSWORD_CHANGE_TARGETED_MAX_ATTEMPTS |
backend | int | 3 |
Password-change attempts allowed per TARGET USER, and per calling actor when the actor differs from the target, on the user-management surface (autobot-backend/user_management/middleware/rate_limit.py). Stricter than the session limiter because this path includes admin reset of another user's password, where repeated attempts against one victim -- or one caller walking many target ids -- is the threat rather than a typo (#15743, #15757). |
AUTOBOT_PASSWORD_CHANGE_TARGETED_WINDOW_SECONDS |
backend | int | 1800 |
Sliding window for AUTOBOT_PASSWORD_CHANGE_TARGETED_MAX_ATTEMPTS, in seconds. Six times the session window: a slower, stricter limit for the higher-value surface (#15757). |
AUTOBOT_PIP_INSTALL_TIMEOUT |
slm | float | 300.0 |
Timeout, in seconds, for a pip install during venv reconciliation. Raising it tolerates a slower package install; lowering it fails a stuck install sooner (autobot-slm-backend/api/venv_reconcile.py). |
AUTOBOT_PIP_UNINSTALL_TIMEOUT |
slm | float | 120.0 |
Timeout, in seconds, for a pip uninstall during venv reconciliation. Raising it tolerates a slower removal; lowering it fails a stuck uninstall sooner (autobot-slm-backend/api/venv_reconcile.py). |
AUTOBOT_PLAN_BEST_OF_N_COUNT |
ai | int | 3 |
How many candidate plans best-of-N generates before selection. Clamped to a minimum of 2, since best-of-1 is not a selection. |
AUTOBOT_PLAYBOOK_FAILURE_TAIL_CHARS |
backend | int | 500 |
How many characters of a failed playbook's output to fall back to when no failed task can be parsed out of it. Taken from the END of the run: ansible opens with its banner, so a head slice returns deprecation warnings and hides the failure (services/ansible_utils.py, #14298). |
AUTOBOT_PLAYBOOK_KILL_GRACE_S |
backend | float | 5.0 |
Grace period between SIGTERM and SIGKILL when killing a timed-out playbook subprocess's whole process group. Long enough for ansible-playbook / a forked ssh child to unwind cleanly; short enough that a wedged process does not itself become an unbounded second wait (services/process_group.py, #14524, #19475). |
AUTOBOT_PLAYBOOK_PIPE_LINE_LIMIT |
slm | int | 10485760 |
Bytes of one playbook output line the executor will read. asyncio's StreamReader defaults to 64 KiB, and a single ansible fatal: line carries the whole task result as JSON -- for a pip task that embeds pip's entire stderr and goes past 64 KiB routinely. Exceeding it used to kill the reader with a bare ValueError, which then stood in for the failure it had swallowed. Raise it only if a real line is larger; the reader truncates and says so rather than dying either way. |
AUTOBOT_POSTGRES_DB |
postgres | str | 'autobot_users' |
User-management database name (see postgres_identity). |
AUTOBOT_POSTGRES_HOST |
postgres | str | '127.0.0.1' |
PostgreSQL server hostname or IP. |
AUTOBOT_POSTGRES_PASSWORD |
postgres | str | "" |
PostgreSQL user password. |
AUTOBOT_POSTGRES_PORT |
postgres | str | '5432' |
PostgreSQL server port. |
AUTOBOT_POSTGRES_USER |
postgres | str | 'autobot_app' |
Login role the AutoBot backend uses on the user-management database. |
AUTOBOT_PREFETCH_MODELS |
backend | bool | true | Docker only: whether the backend container's entrypoint fetches the pinned speech-to-text and code-embedding models into the model cache volume before starting (docker/backend/entrypoint.sh, autobot_shared/model_prefetch.py, #19869, #19738). A model already in the volume costs no network. Set false (or 0) for an air-gapped host that places the models itself; a fetch that fails while this is on stops the container with a message naming the model and the room left. |
AUTOBOT_PREPUSH_ALLOW_TIMEOUT |
testing | bool | false | Set to 1 to let git push proceed when a pre-push check DID NOT RUN because it timed out. Predates the registry requirement and was never registered, which is how the same omission reached AUTOBOT_PREPUSH_ALLOW_UNRUNNABLE above -- registered here alongside it rather than left as the next reviewer's finding (#7081, #16230). |
AUTOBOT_PREPUSH_ALLOW_UNRUNNABLE |
tooling | bool | false | Set to 1 to let git push proceed when any pre-push gate COULD NOT RUN, i.e. cannot produce a verdict here. Examples: pytest on a sub-floor interpreter (llc/scheduler/base.py refuses to import below Python 3.11, taking whole pytest groups down at collect time; the platform floor and CI are 3.14), or vitest handed a file it does not collect, such as a Playwright spec under tests/ before #18694's root filter is installed. Distinct from AUTOBOT_PREPUSH_ALLOW_TIMEOUT, which covers a check that started and ran out of time. Neither is a substitute for --no-verify: both switch off exactly the one check that could not produce a verdict and leave every other hook blocking (#16230). |
AUTOBOT_PREPUSH_PYTEST_WORKERS |
testing | int | 4 |
Number of pytest-xdist workers the pre-push gate runs the selected tests with (-n N --dist loadscope). 0 runs serially. A non-integer or negative value falls back to 4 with a warning. Capped (never -n auto) because the dev box runs many parallel sessions at load 20-30; the budget uses the per-file cost of the mode actually chosen (#17451). |
AUTOBOT_PREPUSH_TYPE_CHECK_TIMEOUT |
testing | int | 450 |
Seconds the pre-push gate allows vue-tsc per frontend project. vue-tsc checks the whole project whatever the changeset (111 s idle, ~294 s under load measured), so the budget is project-sized, not changeset-scaled. A non-integer or zero value falls back to 450 with a warning; capped at the hook's MAX_BUDGET (#18578). |
AUTOBOT_PRICING_CROSSCHECK_TOLERANCE_PERCENT |
pricing | float | 10.0 |
Percent difference between LiteLLM's and OpenRouter's price for one model above which the pricing refresh flags a disagreement. Flagged, never resolved silently (#16229). |
AUTOBOT_PRICING_FETCH_TIMEOUT_SECONDS |
pricing | float | 30.0 |
Total timeout, in seconds, for one live pricing catalogue fetch. A timed-out fetch is a failed refresh and leaves stored prices to age, never looking fresh (#16229). |
AUTOBOT_PRICING_FIRST_REFRESH_TIMEOUT_S |
pricing | float | 10.0 |
Bound, in seconds, on the single pricing refresh awaited at startup before the app serves traffic (#16230). Without it the scheduler's first tick raced incoming requests, and budget.py refuses a cost event against a cold cache rather than recording zero. Exceeding the bound is non-fatal: the cache begins cold, which every caller already handles, and the next scheduled tick fills it. |
AUTOBOT_PRICING_LITELLM_URL |
pricing | str | 'https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json' |
URL of LiteLLM's model price map, the primary live pricing catalogue. Fetched public-only through the egress guard (#16229). |
AUTOBOT_PRICING_LOCAL_CACHE_MAX_AGE_S |
pricing | int | 3600 |
Age, in seconds, past which a process's pricing mirror is refused as stale rather than served (PricingCacheStale, #16230). This is what stops a scheduler that quietly stopped refreshing from looking identical to one that is working -- above this bound a reader gets an exception, never an old price presented as current. Must exceed AUTOBOT_PRICING_LOCAL_CACHE_REFRESH_INTERVAL_S by enough to survive a few failed ticks. |
AUTOBOT_PRICING_LOCAL_CACHE_REFRESH_INTERVAL_S |
pricing | int | 300 |
Seconds between re-reads of the pricing store into each process's own in-memory mirror (llm_shared/pricing/sync_cache.py, #16230). Independent of AUTOBOT_PRICING_REFRESH_INTERVAL_HOURS, which is how often Redis itself is refreshed from the live catalogues: this only has to stay close enough to that upstream write to be a mirror, and a short interval also recovers a worker that restarted mid-cycle rather than leaving it cold for the rest of the daily cadence. |
AUTOBOT_PRICING_OPENROUTER_URL |
pricing | str | 'https://openrouter.ai/api/v1/models' |
URL of OpenRouter's public models API, the cross-check pricing catalogue. Fetched public-only through the egress guard (#16229). |
AUTOBOT_PRICING_POST_SYNC_TIMEOUT_S |
slm | float | 120.0 |
Timeout, in seconds, for the one-shot pricing refresh a code-sync of autobot-backend runs immediately after install/update. A refresh that does not finish within it is recorded as timed out and the sync proceeds regardless — prices stay unknown until the next refresh (autobot-slm-backend/api/_pricing_post_sync.py, #16231). |
AUTOBOT_PRICING_REFRESH_INTERVAL_HOURS |
pricing | int | 24 |
Hours between automatic pricing refreshes: the Celery beat cadence, and the floor under the Redis TTL so stored prices can never expire before the next scheduled refresh (#16231). |
AUTOBOT_PROMETHEUS_PORT |
monitoring | str | '9090' |
TCP port of the Prometheus instance. Also declared in ssot_config.py. |
AUTOBOT_PROMETHEUS_SCRAPE_TOKEN |
security | str | "" |
Read-only bearer token Prometheus presents to /api/metrics/prometheus (#16375). Seeded by the SLM into its secret store and rendered by the deploy roles into backend.env and Prometheus' bearer_token_file. Unset refuses every scrape. |
AUTOBOT_PROMETHEUS_URL |
monitoring | str | 'http://<private-ip>:9090' |
Base URL of the Prometheus metrics server. |
AUTOBOT_PROVIDER_DEGRADATION_TTL_SECONDS |
ai | int | 300 |
Seconds a provider stays marked degraded after a failure before traffic is offered to it again. |
AUTOBOT_PROVIDER_KEY_HYDRATION_TIMEOUT_S |
security | int | 30 |
Seconds a process waits for its one-time provider-key vault hydration before treating the vault as unreachable (#18094). On timeout every vault-resolved key is refused (fail closed); a hydration that finishes later still swaps its result in. |
AUTOBOT_PROVIDER_KEY_REHYDRATE_BACKOFF_S |
security | int | 30 |
First delay before a process whose provider-key vault was unreachable tries to hydrate again on a later key resolution (#18094). Doubles after each failed retry, capped at 20x this value; a successful hydration resets it. Until a retry succeeds, keys stay refused, never served from env. |
AUTOBOT_PROVIDER_OAUTH_STATE_TTL_SECONDS |
auth | int | 600 |
Lifetime of a pending OAuth state value. A provider authorisation that is not completed within this window is rejected as expired (api/provider_auth.py). |
AUTOBOT_PROVISION_STALE_SECONDS |
provisioning | int | 1800 |
How long a provision run may report no progress before the setup wizard treats it as abandoned and lets a new run supersede it (#14856). Keyed on observed progress, not on time since start, so a slow-but-live run is never superseded; the floor keeps a value too small to distinguish the two from wedging the wizard the other way. Range: 60–86400. |
AUTOBOT_PUSH_NOTIFICATION_TTL |
notifications | int | 86400 |
TTL, in seconds, applied to a web-push notification payload (#6743). Raising it lets a push provider retry delivery over a longer window; lowering it drops a stale, undelivered notification sooner (services/push_notification_service.py). |
AUTOBOT_RAG_GRAPH_TIMEOUT_SECONDS |
rag | float | 10.0 |
Default graph-RAG search deadline in seconds (RAGConfig.graph_timeout_seconds, #18141). |
AUTOBOT_RAG_GRAPH_WEIGHT |
rag | float | 0.3 |
Graph-signal weight in the one pre-rerank vector+graph blend (RAGConfig.graph_weight, #18141). Range: 0.0–1.0. |
AUTOBOT_RAG_SCORE_THRESHOLD |
rag | float | 0.3 |
Minimum relevance score a knowledge-retrieval result needs to be kept (constants.rag_graph_constants.RAG_SCORE_THRESHOLD, the one default, #19354). Range: 0.0–1.0. |
AUTOBOT_RANKING_ALPHA |
code_analysis | float | 1.0 |
Multiplicative weight applied to the runtime_risk boost when ranking anti-pattern findings (0 disables the boost; 1.0 lets a fully-risky file double its effective score). Raising it weights runtime risk more heavily in the ranking; lowering it toward 0 weights it less (code_analysis/src/anti_pattern_detector.py). |
AUTOBOT_RATE_LIMITER_FAIL_OPEN_WARN_INTERVAL |
security | float | 60.0 |
Minimum seconds between fail-open warnings per rate-limiter instance (#18617). While Redis is unreachable the limiters allow requests; the warning names only the limiter scope and is emitted at most once per interval so an outage cannot flood the log. |
AUTOBOT_REDIS_DB_ANALYTICS |
redis | int | (none) | Redis DB number for analytics data; unset uses redis-databases.yaml (#19232). Range: 0–15. |
AUTOBOT_REDIS_DB_KNOWLEDGE |
redis | int | (none) | Redis DB number for knowledge-base vectors; unset uses redis-databases.yaml (#19232). Range: 0–15. |
AUTOBOT_REDIS_DB_MAIN |
redis | int | (none) | Redis DB number for primary application data; unset uses redis-databases.yaml (#19232). Range: 0–15. |
AUTOBOT_REDIS_HOST |
redis | str | '127.0.0.1' |
Redis server hostname or IP address. |
AUTOBOT_REDIS_PASSWORD |
redis | str | (none) | Redis AUTH password (omit or leave blank for unauthenticated servers). |
AUTOBOT_REDIS_PORT |
redis | int | 6379 |
Redis server TCP port (plain connection). Range: 1–65535. |
AUTOBOT_REDIS_SCAN_COUNT |
knowledge | int | 1000 |
COUNT hint for every pattern walk through autobot_shared/redis_scan.py: keys the server examines per SCAN call. redis-py defaults to 10, which turns a 1500-key keyspace into ~150 round trips per walk (#18999). Range: 10–100000. |
AUTOBOT_REDIS_TLS_ENABLED |
redis | bool | false | Enable TLS for Redis connections when truthy. |
AUTOBOT_REDIS_TLS_PORT |
redis | int | 6380 |
Redis server TCP port for TLS connections. Range: 1–65535. |
AUTOBOT_REDIS_USERNAME |
redis | str | (none) | Redis ACL username, sent with the password as AUTH user password (omit to keep the password-only AUTH, #16626). |
AUTOBOT_REMEDIATION_HEARTBEAT_POLL_S |
backend | int | 5 |
How often to re-read the node row while waiting for a post-restart heartbeat (services/reconciler.py, #14344). |
AUTOBOT_REMEDIATION_HEARTBEAT_WAIT_S |
backend | int | 90 |
Seconds to wait for a heartbeat after the reconciler restarts a node's agent before recording the remediation as failed. Remediation exists to restore the heartbeat, so the heartbeat is what success means — the restart exiting 0 only says the command ran (services/reconciler.py, #14344). |
AUTOBOT_REMEDIATION_PLAYBOOK_TIMEOUT_S |
backend | int | 180 |
Wall-clock ceiling on the ansible-playbook subprocess _restart_service_via_ansible launches. Previously unbounded — a hung SSH connection or stuck remote task blocked remediation for a node indefinitely. manage-service.yml (the only playbook this call path runs) is a single-host, single-service restart that normally completes in seconds; 180s stays comfortably below REMEDIATION_COOLDOWN (300s) while giving generous headroom (services/reconciler.py, services/playbook_executor.py, #14524). |
AUTOBOT_REMEDIATION_TRACKER_EXPIRY_S |
backend | int | 1800 |
Seconds a non-exhausted remediation attempt tracker may sit with no NEW attempt before its count is forgiven. Clamped strictly above REMEDIATION_COOLDOWN plus a reconcile-tick margin — a lower value forgives an attempt in the same instant one becomes due, so count could never exceed 1 (services/reconciler.py, #14465). |
AUTOBOT_REMOTE_APPROVAL_FLAG_TTL_SECONDS |
approvals | int | 604800 |
How long a session stays flagged for remote approval routing without being refreshed. Expiry returns the session to asking inline; it never widens autonomy. |
AUTOBOT_REMOTE_APPROVAL_TTL_SECONDS |
approvals | int | 86400 |
How long a remotely delivered approval stays correlatable with its reply. After this the reply can no longer be tied to a request and resolves nothing. |
AUTOBOT_REQUIRE_CLASSIFICATION |
orchestrator | bool | false | Fail orchestrator construction when request classification is unavailable. Default (off) degrades gracefully: every request is defaulted to COMPLEX and the reason is reported in the orchestration status. Deployments that depend on classification set this so the failure is loud instead of silent (#13807). |
AUTOBOT_REQUIRE_REAL_TORCH |
testing | bool | false | Set to 1 to make the real-torch oracle tests under autobot-backend/llm_shared/optimization fail, instead of skip, when torch is a stub (meta_eviction_equivalence_test.py, #13049). Set by the llm-optimization-real-torch CI job so a broken torch install cannot pass silently. |
AUTOBOT_RESTART_CHURN_WINDOW_S |
backend | int | 600 |
Seconds a managed autobot/slm-agent service is reported as CURRENTLY churning after its last observed n_restarts increase, for node-status degrade purposes. Must clear health_collector's own 300s discovery-cache TTL by a comfortable margin — a shorter window only fires on the beat that happens to land on a cache refresh (services/reconciler.py, #14465). |
AUTOBOT_RETRIEVAL_REDIS_TIMEOUT |
redis | float | 1.5 |
Seconds the retrieval learner waits for its Redis lock before proceeding without it. Short on purpose — retrieval must answer even when the learner cannot record what it learned. |
AUTOBOT_REVOCATION_RETRY_AFTER_SECONDS |
auth | int | 5 |
Seconds in the Retry-After header of the 503 (detail revocation_check_unavailable) both backends answer when a token's revocation check cannot run (#18892). The token is still refused; the client keeps its session and retries. Raising it spaces retries out during a long store outage; lowering it recovers faster once the store is back (autobot_shared/auth/revocation_unavailable.py). Floor 1. Range: 1–300. |
AUTOBOT_RISK_K |
code_analysis | float | 5.0 |
Decay constant controlling how steeply a file's runtime_risk score saturates toward 1 as its raw risk grows (a file at raw_risk == K scores about 0.63). Raising it makes the score saturate more slowly; lowering it saturates faster (code_analysis/src/runtime_risk.py). |
AUTOBOT_ROLE_DENIED_AUDIT_WINDOW_S |
security | int | 300 |
Seconds between role_denied audit records for one user on one route (#16333); repeats in the window are counted into the next record, so a non-admin cannot flood the audit log; read by autobot-backend/auth_rbac.py. Range: 1–86400. |
AUTOBOT_ROOT_REQS_CP_TIMEOUT_S |
slm | float | 10.0 |
Timeout, in seconds, for copying a single top-level repo-root file (e.g. requirements.txt) a backend component sync runs before pip so a -r ../requirements.txt reference resolves (autobot-slm-backend/api/code_sync_paths.py, #16713). |
AUTOBOT_ROUTING_LLM_TIMEOUT_SECONDS |
ai | float | 8.0 |
Seconds the agent router's LLM call may take before it gives up and uses pattern routing instead (agents/agent_orchestration/routing_validation.py, #19649). Lower fails over sooner; higher waits longer for a decision that costs a model call. Range: 0.1–600.0. |
AUTOBOT_RUM_EVENT_MAX_BYTES |
security | int | 16384 |
Largest request body /api/rum/event accepts; larger is refused with 413 (#16375). |
AUTOBOT_RUM_INGEST_RATE_LIMIT |
security | int | 120 |
Requests per client address per minute accepted by the anonymous RUM ingest routes, /api/rum/event and /api/rum/metrics (#16375). Over it the caller gets 429 and nothing is written. |
AUTOBOT_RUM_LABEL_MAX_CHARS |
security | int | 128 |
Longest frontend RUM metric label value; longer records as 'other' (#18368). |
AUTOBOT_RUM_LABEL_MAX_VALUES |
security | int | 50 |
Distinct values each frontend RUM metric label admits; later new values record as 'other', so anonymous input cannot create unbounded Prometheus series (#18368). |
AUTOBOT_RUM_MAX_EVENTS |
security | int | 5000 |
RUM events held in memory; the oldest is dropped as each new one arrives (#16375). |
AUTOBOT_RUM_MAX_SESSIONS |
security | int | 1000 |
RUM session tallies held in memory (#16375). An anonymous caller mints a session id per request at will, so the table is capped and the oldest session is evicted. |
AUTOBOT_RUM_METRICS_MAX_BYTES |
security | int | 65536 |
Largest request body /api/rum/metrics accepts; larger is refused with 413 (#16375). |
AUTOBOT_RUM_METRICS_MAX_FIELD_CHARS |
security | int | 512 |
Longest string anywhere in a /api/rum/metrics batch; longer is refused with 422 (#18368). |
AUTOBOT_RUM_METRICS_MAX_ITEMS |
security | int | 100 |
Longest list in any field of a /api/rum/metrics batch; longer is refused with 422 (#18368). |
AUTOBOT_RUN_CHECKPOINT_TTL_SECONDS |
agent_loop | int | 86400 |
TTL, in seconds, for a run's durable progress checkpoint in Redis (GH#11175). Raising it lets a crashed/restarted run resume from a checkpoint over a longer window; lowering it expires stale checkpoints sooner (agent_loop/loop.py). |
AUTOBOT_RUN_JWT_DENYLIST_TIMEOUT_S |
auth | float | 2.0 |
Redis lookup budget, in seconds, for the run-JWT denylist check on the auth path (#12751). Raising it tolerates a slower Redis before treating it as unavailable (fail-closed); lowering it falls over to fail-closed sooner on a slow Redis (services/run_jwt.py). |
AUTOBOT_SANDBOX_GIT_STATUS_TIMEOUT_SECONDS |
backend | int | 10 |
Seconds the sandbox delete guard waits for git status --porcelain before treating the work tree as unverifiable and refusing the recursive delete (api/sandbox_files.py, #15777). |
AUTOBOT_SECRETS_BACKUP_MAX_AGE_S |
security | int | 86400 |
Longest age, in seconds, of a secrets-store backup that a destructive secrets proposal (e.g. the OAuth bundle strip) accepts as its safety net (#18281). Older backups are refused, so the verifier fails closed. Default is one day: long enough to cover human approval latency, short enough that few secrets changed since. Lowering it demands a fresher backup before each destructive action. Range: 60–2592000. |
AUTOBOT_SELF_HEARTBEAT_AGENT_INTERVAL_MAX_S |
slm | int | 3600 |
Largest heartbeat interval, in seconds, the SLM accepts from a real slm-agent's own report when sizing the self-heartbeat stand-down window; a larger, zero or non-integer report falls back to the fleet's interval, so a misreporting agent cannot freeze the manager node's status (autobot-slm-backend/services/compose_fleet.py, #19292). Range: 1–86400. |
AUTOBOT_SELF_HEARTBEAT_STANDDOWN_BEATS |
slm | int | 2 |
The agent's own heartbeat intervals (as it reports them, else the fleet's) that a real slm-agent's last beat on a self-managed node (the SLM manager) keeps the SLM's local self-heartbeat stood down, so the node has one heartbeat source. 2 tolerates one missed agent beat; the local loop resumes after that (autobot-slm-backend/services/compose_fleet.py, #19292). Range: 1–1000. |
AUTOBOT_SELF_IMPROVEMENT_MAX_CONCURRENCY |
orchestration | int | 2 |
Maximum concurrent background self-improvement (judge-LLM) tasks the workflow runner allows (#11014). Raising it lets more workflow completions trigger learning concurrently; lowering it bounds concurrent judge-LLM load more tightly (orchestration/workflow_runner.py). |
AUTOBOT_SERVICE_RESTART_PLAYBOOK_TIMEOUT_S |
backend | int | 2100 |
Wall-clock ceiling on _restart_service_via_ansible when it restarts an arbitrary ServiceCategory.AUTOBOT unit (_remediate_failed_service), as opposed to the lightweight slm-agent restart (AUTOBOT_REMEDIATION_PLAYBOOK_TIMEOUT_S). That category is populated by unit-name pattern match (postgresql*, redis*, docker*, ...), an open-ended set that includes Type=oneshot units with a multi-minute TimeoutStartSec (autobot-pg-backup.service.j2 declares 1800s) -- reusing the slm-agent budget here would SIGKILL a legitimate long-running restart (services/reconciler.py, #14524). |
AUTOBOT_SERVICE_RESTART_SETTLE_S |
slm | int | 600 |
Seconds of continuous uptime (running or completed on every heartbeat) before the reconciler clears a service's restart count. A unit that fails, crash-loops or restarts within this period keeps counting toward MAX_SERVICE_RESTART_ATTEMPTS, so a crash loop ends in the exhaustion event instead of restarting forever. Clamped to 60-86400: one healthy heartbeat is never enough (#20796). Range: 60–86400. |
AUTOBOT_SESSION_ROLE_TTL_SECONDS |
chat_workflow | int | 86400 |
TTL, in seconds, for a chat session's role binding in Redis. Raising it keeps a session's assigned role valid longer between activity; lowering it expires it sooner, requiring the role to be re-resolved (chat_workflow/session_role.py). |
AUTOBOT_SESSION_WORK_ITEM_TTL_SECONDS |
chat_workflow | int | 86400 |
TTL, in seconds, for a chat session's work-item binding in Redis. Raising it keeps the session-to-work-item link valid longer between activity; lowering it expires it sooner (chat_workflow/session_work_item.py). |
AUTOBOT_SHARED_LINK_ACCESS_RPH |
chat | int | 100 |
Per-client-IP requests-per-hour ceiling on the unauthenticated shared-link /access endpoint (GH#9127). Raising it tolerates more password attempts per hour before rate-limiting; lowering it hardens against brute force sooner, at the risk of blocking a legitimate slow guesser (api/chat_shared_links.py). |
AUTOBOT_SHARED_LINK_ACCESS_RPM |
chat | int | 10 |
Per-client-IP requests-per-minute ceiling on the unauthenticated shared-link /access endpoint (GH#9127). Raising it tolerates a faster burst of password attempts before rate-limiting; lowering it rate-limits sooner (api/chat_shared_links.py). |
AUTOBOT_SHARED_LINK_DEFAULT_TTL |
chat | int | 0 |
Default TTL, in seconds, applied to a newly created chat shared link when the caller does not specify one (0 means the link never expires unless a TTL is explicitly requested). Raising it shortens how long a share defaults to being valid before expiring (api/chat_shared_links.py). |
AUTOBOT_SHOW_DEPRECATION_WARNINGS |
system | bool | false | Emit Python DeprecationWarnings for deprecated AutoBot APIs when truthy. |
AUTOBOT_SIGNAL_ENABLED |
gateway | bool | false | Opt in to the Signal gateway adapter. Off by default: it needs a running signal-cli daemon and a registered number. |
AUTOBOT_SKILL_DISTILLATION_ENABLED |
backend | bool | false | Master switch for skill distillation. Ships inert — enable once the LLM cost of a recurring pass is accepted. |
AUTOBOT_SKILL_DISTILLATION_FAILURE_TTL_S |
backend | int | 86400 |
How long a conversation's consecutive-failure count survives, in seconds. Derived as 24 distillation intervals, so failures accumulate across passes rather than expiring between them, while a counter for a conversation nobody retries eventually clears instead of accumulating forever (#14255). |
AUTOBOT_SKILL_DISTILLATION_IDLE_FLUSH_S |
backend | int | 900 |
Seconds of corpus idleness after which a distillation pass runs early. Without it the pass is purely clock-bound and a conversation ending at 09:00 waits for the small hours (#13695). |
AUTOBOT_SKILL_DISTILLATION_INTERVAL_S |
backend | int | 3600 |
Seconds between skill distillation passes. |
AUTOBOT_SKILL_DISTILLATION_MAX_FAILURES |
backend | int | 3 |
Consecutive failures on the SAME conversation before the distillation pass stops waiting for it and moves on. Below this the pass halts and retries next run, so a transient fault costs nothing; at it, the conversation is quarantined with a warning and the cursor advances, so one unreadable conversation cannot starve every newer one behind it in an oldest-first queue (#14255). A success resets the count. |
AUTOBOT_SKILL_DISTILLATION_MAX_SESSIONS |
backend | int | 10 |
Conversations distilled per pass. Bounds the LLM spend of any one run; the remainder is picked up next time because the cursor only advances over what was handled. |
AUTOBOT_SKILL_DISTILLATION_MIN_MESSAGES |
backend | int | 4 |
Minimum messages a conversation needs before distillation attempts it. Shorter ones cannot contain a reusable workflow and the extractor rejects them anyway. |
AUTOBOT_SLM_FAILURE_DIAG_JOURNAL_LINES |
slm | int | 30 |
Journal lines fetched from a node whose fleet start/stop/restart failed, returned in the response diagnostics (services/service_restart.py, #18714). Range: 1–500. |
AUTOBOT_SLM_FAILURE_DIAG_MAX_CHARS |
slm | int | 4000 |
Characters kept (the tail) of each failure-diagnostics section, systemctl status and journal, per failed node (services/service_restart.py, #18714). Range: 200–65536. |
AUTOBOT_SLM_JOURNAL_SSH_TIMEOUT_SECONDS |
slm | float | 30.0 |
Wall-clock ceiling on the journalctl-over-SSH fetch behind GET /nodes/{node_id}/services/{service_name}/logs (api/services.py, #15620). Fetching journal entries from a node under load is slower than restarting a unit on it, and the request is operator-facing, so the cost runs both ways: raise it and an API worker stays occupied that much longer per unresponsive node, which a fleet-wide log sweep multiplies; lower it and a busy node answers HTTP 504 instead of returning its logs, and the operator has to retry asking for fewer lines. Tune it to the slowest link in the fleet, not to the fastest. Range: 5.0–600.0. |
AUTOBOT_SLM_KEY_FINDING_CHECK_INTERVAL_S |
slm | float | 60.0 |
Seconds between database checks when the backend refuses the SLM's internal API key: a burst of refused calls records the one key-mismatch finding without a query per call (#20750). Range: 1–86400. |
AUTOBOT_SLM_REFUSED_SESSION_AUDIT_WINDOW_S |
slm | int | 300 |
Seconds between audit records of one person's refused non-admin SLM sessions (#20664). Range: 1–86400. |
AUTOBOT_SLM_RESTART_FLUSH_DELAY_SECONDS |
slm | float | 1.0 |
Seconds the deferred SLM service restart waits for the HTTP response to flush before it starts killing the services that carried it. Too short and the caller sees a dropped connection instead of its 202; too long and the restart is needlessly delayed, so the right value follows the deployment's network rather than anything fixed (services/service_restart.py, #15611). Range: 0.0–60.0. |
AUTOBOT_SLM_RESTART_SSH_TIMEOUT_SECONDS |
slm | float | 30.0 |
Seconds a single systemctl restart over SSH may take before it is abandoned and reported as failed. A slow node restarting a heavy unit legitimately exceeds a value that is generous on a fast one, so this belongs to the deployment (services/service_restart.py, #15611). Range: 1.0–600.0. |
AUTOBOT_SLM_UPDATE_REPORT_DEPLOY_RUNS |
slm | int | 50 |
Newest role deploys listed in the update report (api/update_report.py, #19962). Range: 1–500. |
AUTOBOT_SNAPSHOT_KEEP |
slm | int | 3 |
Number of component snapshots retained for rollback before the oldest are pruned. Raising it keeps a longer rollback history at the cost of more snapshot-directory disk usage; lowering it frees disk sooner but shortens how far back a rollback can reach (autobot-slm-backend/api/code_sync.py, #11377). |
AUTOBOT_SNAPSHOT_STORAGE_PATH |
execution | str | "" |
Directory holding execution snapshots. Empty means 'derive it' — the default is <project root>/snapshots, so it follows the install location rather than being pinned to one path. |
AUTOBOT_SNAPSHOT_TTL_DAYS |
execution | int | 7 |
Age at which the cleanup task removes an execution snapshot. Snapshots are a debugging aid, so the default is deliberately short. |
AUTOBOT_SPEECH_EXTERNAL_FALLTHROUGH |
voice | bool | false | When true, a speech provider that could not run or raised may hand the same audio to a NON-selected external provider (another cloud ASR, Tilde, Generic/recognize_google). Default false: the first provider that ran ends the chain, a failed selected cloud goes to local Whisper, and audio never reaches a second third party (voice_processing/providers/init.py, #17778). |
AUTOBOT_STEWARDSHIP_MAX_HANDOFFS |
orchestration | int | 3 |
How many times one branch may change stewards before it must land (#15987). An unbounded chain recreates, inside a single branch, the pile of unlanded work the worktree ceiling exists to prevent — and it is less visible there, because one growing branch looks like progress while four stalled ones look like a queue. Raising it buys more accretion, not more throughput. Range: 1–20. |
AUTOBOT_STRATEGY_HISTORY_MAX |
agents | int | 10 |
Bounded per-key revision history the pattern learner keeps for a learned strategy, so a bad synthesized/imported one can be rolled back (GH#11534). Raising it keeps more prior revisions available to roll back to; lowering it keeps fewer, saving Redis space (agents/task_pattern_learner.py). |
AUTOBOT_STT_NO_SPEECH_PROB_THRESHOLD |
voice | float | 0.8 |
Decoder no-speech probability at or above which an STT transcript is discarded as a silence hallucination (#13104). Range: 0.0–1.0. |
AUTOBOT_STT_PEAK_WINDOW_MS |
voice | int | 100 |
Window in milliseconds over which speech energy is measured. Measuring across the whole buffer averages a short reply into silence (#13104). |
AUTOBOT_STT_SILENCE_RMS_THRESHOLD |
voice | float | 0.005 |
Audio RMS below which the waveform is treated as silence, so any STT transcript over it is a hallucination rather than a user turn (#13104). Range: 0.0–1.0. |
AUTOBOT_SUMMARY_FAILURE_BACKOFF_SECONDS |
chat | int | 300 |
Quiet period after a context-overflow summarisation failure before another is attempted, so a persistently failing summary does not retry on every turn. |
AUTOBOT_SYNC_GIT_TIMEOUT_S |
slm | float | 30.0 |
Timeout, in seconds, for a single git subprocess (rev-parse, diff --name-status) during the builtin updater's git-aware deletion pass. Raising it tolerates a slower repository; lowering it fails a wedged git process sooner rather than stalling a sync (autobot-slm-backend/services/sync_deletions.py, #16310). |
AUTOBOT_SYNC_GIT_TRANSPORT_TIMEOUT_S |
slm | float | 600.0 |
Timeout, in seconds, for the SLM git tracker's git fetch --prune and git pull against the code_source remote. Transport commands download history, so they get a far longer bound than AUTOBOT_SYNC_GIT_TIMEOUT_S (autobot-slm-backend/services/git_tracker.py, #17855). |
AUTOBOT_SYNC_POST_CMD_TIMEOUT_S |
backend | int | 300 |
Seconds a code-sync post-sync command may run before it is abandoned. It covers a dependency install, so the ceiling depends on link speed and wheel availability rather than on anything fixed (services/sync_orchestrator.py, #14275). |
AUTOBOT_SYNC_RESTART_TIMEOUT_S |
slm | int | 60 |
Seconds the code-sync orchestrator waits for one sudo -n systemctl restart over SSH before recording the restart as failed (autobot-slm-backend/services/post_sync_runner.py, #17455). |
AUTOBOT_SYNC_UNSHALLOW_TIMEOUT_S |
slm | float | 600.0 |
Timeout, in seconds, for git fetch --unshallow on the builtin updater's code_source checkout when it is still a shallow clone (from initial provisioning). Downloads the ENTIRE history the shallow fetch skipped, so it gets a much longer bound than AUTOBOT_SYNC_GIT_TIMEOUT_S -- minutes, not seconds, on a monorepo-sized checkout (autobot-slm-backend/services/git_subprocess.py:ensure_full_history, #16310). |
AUTOBOT_TEE_RETENTION_HOURS |
tools | int | 168 |
Hours an oversized tool-output tee file is kept on disk before being pruned (#14142). Raising it keeps oversized captured output available longer for later inspection; lowering it prunes it sooner, saving disk (services/tool_output_filter.py). |
AUTOBOT_TELEGRAM_MAX_CONCURRENT_REPLIES |
gateway | int | 4 |
Most Telegram replies generated at once in polling ingest mode. Messages in one chat are always answered one at a time, in order; this bounds concurrency across chats. Range: 1–64. |
AUTOBOT_TELEGRAM_MAX_PENDING_REPLIES |
gateway | int | 16 |
Most polled Telegram updates held in memory (queued or replying) at once. While full, the poller fetches nothing and each getUpdates asks for at most the room left, so a backlog stays with Telegram and the offset never passes an update that was not queued. Range: 1–1000. |
AUTOBOT_TELEGRAM_POLL_HTTP_SLACK_SECONDS |
gateway | int | 5 |
HTTP round-trip allowance added to the Telegram long-poll window; window + slack is the getUpdates total timeout and is capped at the lease lifetime minus the lease margin. Range: 1–12. |
AUTOBOT_TELEGRAM_POLL_IDLE_SECONDS |
gateway | float | 15.0 |
How long the Telegram poller leader waits between checks of the stored ingest mode while it is not 'polling'. A switch to polling takes effect within this window; capped below the lease lifetime. Range: 1–25. |
AUTOBOT_TELEGRAM_POLL_LEASE_MARGIN_SECONDS |
gateway | int | 5 |
Seconds a Telegram poller tick must leave unused before its 30s leader lease expires, so a stalled getUpdates can never outlive the lease and overlap a second worker's poll. Range: 1–15. |
AUTOBOT_TELEGRAM_POLL_TIMEOUT_SECONDS |
gateway | int | 20 |
Long-poll window of each Telegram getUpdates call in polling ingest mode. Capped so the whole HTTP budget (window + HTTP slack) ends inside the poller's 30s leader-lease lifetime minus the lease margin: 20 at the default margin and slack (services/telegram_polling.py). Range: 1–28. |
AUTOBOT_TERMINAL_SESSION_TTL_SECONDS |
terminal | int | 86400 |
TTL for terminal:session_config:* Redis keys — the cross-worker terminal session registry (services/terminal_session_store.py, #14961). A session config outlives the connection it was created for (the WebSocket may attach on a different uvicorn worker, or reconnect after one), so this is deliberately generous: 24h matches the sibling chat:session:* cache TTL (chat_history/cache.py) rather than the lifetime of any single PTY process. Range: 60–604800. |
AUTOBOT_THREAT_INTEL_CACHE_TTL |
security | int | 7200 |
Seconds a threat-intelligence verdict (VirusTotal/URLVoid) stays cached in-process (#18888). Measured on a monotonic clock, so a wall-clock step cannot extend it. Clamped to 1-604800. |
AUTOBOT_TLS_CA_PATH |
tls | str | (none) | Path to the CA certificate file for TLS verification. |
AUTOBOT_TLS_CERT_DIR |
tls | str | 'certs' |
PKI certificate tree on the CA host (ca/, main-host/, /); relative to the project root unless absolute. A node's installed certs are AUTOBOT_TLS_REMOTE_CERT_DIR (#19317). |
AUTOBOT_TLS_CERT_PATH |
tls | str | (none) | Path to the TLS client/server certificate file. |
AUTOBOT_TLS_KEY_PATH |
tls | str | (none) | Path to the TLS private key file. |
AUTOBOT_TLS_REMOTE_CERT_DIR |
tls | str | '/etc/autobot/certs' |
Flat directory a fleet node serves TLS from (server-cert.pem, server-key.pem, ca-cert.pem) (#19317). |
AUTOBOT_TOOL_CALL_TIMEOUT_MS |
agent_loop | int | 30000 |
Milliseconds one tool call may run before it is timed out, for both the agent loop and the parallel tool executor (autobot_shared/tool_timeouts.py, #19729). Raising it lets slow tools finish; lowering it fails a hung tool sooner. Minimum 1. Range: 1–None. |
AUTOBOT_TOOL_GROUP_TIMEOUT_MS |
agent_loop | int | 60000 |
Milliseconds one group of tool calls (one agent-loop iteration) may run, for both the agent loop and the parallel tool executor (autobot_shared/tool_timeouts.py, #19729). Keep it at least the per-call budget. Minimum 1. Range: 1–None. |
AUTOBOT_TOOL_OUTPUT_SPILL |
agent_loop | bool | false | Master switch for spilling oversized tool output to disk and returning a short excerpt plus an anchor (agent_loop/tool_output_spill.py). |
AUTOBOT_TOOL_OUTPUT_SPILL_EXCERPT |
agent_loop | int | 2000 |
Characters of a spilled tool result kept inline as the excerpt; clamped below the spill threshold (agent_loop/tool_output_spill.py). |
AUTOBOT_TOOL_OUTPUT_SPILL_MAX |
agent_loop | int | 5000000 |
Largest payload written to a spill artifact; above this the stored copy is truncated and marked (agent_loop/tool_output_spill.py). |
AUTOBOT_TOOL_OUTPUT_SPILL_MAX_WINDOW |
agent_loop | int | 8000 |
Ceiling on one re-read of a spilled artifact, so a huge limit cannot hand the whole artifact back into context (agent_loop/tool_output_spill.py). |
AUTOBOT_TOOL_OUTPUT_SPILL_THRESHOLD |
agent_loop | int | 8000 |
Tool output longer than this many characters is spilled instead of inlined (agent_loop/tool_output_spill.py). |
AUTOBOT_TRAJECTORY_CONSOLIDATE_SCAN_LIMIT |
ai | int | 50000 |
Rows a consolidation pass may scan, keeping the pass bounded on a large trajectory store. |
AUTOBOT_TRAJECTORY_OUTCOME_PARTIAL_MIN |
ai | float | 0.4 |
Reward at or above which a trajectory outcome is 'partial'. Below it the outcome is a failure (#11280). |
AUTOBOT_TRAJECTORY_OUTCOME_SUCCESS_MIN |
ai | float | 0.7 |
Reward at or above which a trajectory outcome is 'success'. The canonical threshold, so callers stop re-deriving it inline (#11280). |
AUTOBOT_TRAJECTORY_PRUNE_MAX_AGE_DAYS |
ai | int | 30 |
Age in days beyond which a low-reward trajectory is eligible for pruning (#11263). |
AUTOBOT_TRAJECTORY_PRUNE_REWARD_FLOOR |
ai | float | 0.4 |
Reward below which an aged trajectory is pruned. Stale low-reward failures are noise that costs retrieval precision (#11263). |
AUTOBOT_TRAJECTORY_USER_SCOPED |
ai | bool | true | Scope trajectory retrieval by user as well as tenant. tenant_id alone is insufficient in single-company deployments where org_id is empty or identical for everyone (#11089). |
AUTOBOT_TRANSCRIBER_DB_PATH |
voice | str | 'data/transcriber.db' |
SQLite database backing the transcriber. Relative to the working directory unless given as an absolute path. |
AUTOBOT_TRANSCRIPT_ANALYSIS_MAX_TOKENS |
ai | int | 4096 |
Output-token budget for one transcript analysis: the transcripts analysis WebSocket and the transcriber ai/ask route (transcriber/ai/prompts.py, #16924). Set explicitly because LLMService.stream() otherwise applies the general task default of 1024, which cut long summaries and protocols off mid-answer. Range: 256–32768. |
AUTOBOT_TRANSCRIPT_EVENT_OVERHEAD_BYTES |
memory | int | 1024 |
Bytes charged per retained event, on top of its source bytes, against AUTOBOT_TRANSCRIPT_MAX_RETAINED_BYTES (services/execution/transcript_normalizer.py, #11137). |
AUTOBOT_TRANSCRIPT_MAX_DECOMPRESSED_BYTES |
memory | int | 1073741824 |
Most decompressed bytes read from one transcript or history file before the read stops and reports itself truncated (services/execution/transcript_normalizer.py, #11137). |
AUTOBOT_TRANSCRIPT_MAX_EVENTS |
memory | int | 1000000 |
Most events (or history entries) returned from one file before the read stops and reports itself truncated (services/execution/transcript_normalizer.py, #11137). |
AUTOBOT_TRANSCRIPT_MAX_LINE_BYTES |
memory | int | 16777216 |
Longest single line a transcript or history read will load; a longer line stops the file and reports it truncated (services/execution/transcript_normalizer.py, #11137). |
AUTOBOT_TRANSCRIPT_MAX_RETAINED_BYTES |
memory | int | 268435456 |
Most source-line bytes behind the events or entries one transcript or history read retains; over it the read stops and reports itself truncated (services/execution/transcript_normalizer.py, #11137). |
AUTOBOT_TRIGGER_SECRET_AUDIT_REJECTION_DAYS |
orchestrator | float | 30.0 |
Days a rejected plaintext-webhook-secret proposal keeps suppressing a new proposal for the same (or a subset of its) trigger ids (#19759), so a human's rejection is not refiled on every audit run. Floored at 1 day. |
AUTOBOT_TRIGGER_SECRET_AUDIT_SCHEDULE |
orchestrator | str | '25 3 * * *' |
5-field cron ('m h dom mon dow') for the audit that proposes a human review of webhook trigger secrets still stored in plaintext (#19759). It files at most one pending approval per set of trigger ids and rewrites nothing. Default daily at 03:25 UTC. A malformed value falls back to the daily 03:00 UTC schedule with a warning. |
AUTOBOT_TRUSTED_PROXIES |
network | str | "" |
Comma-separated list of trusted reverse-proxy IP addresses or CIDR ranges for X-Forwarded-For header trust. |
AUTOBOT_UPDATE_CODE_SOURCE_FETCH_RETRY_DELAY_S |
slm | int | 5 |
Seconds before retrying a failed git fetch of the code source (#20089). |
AUTOBOT_UPDATE_CODE_SOURCE_GIT_TIMEOUT_S |
backend | int | 30 |
Per-command timeout for the git checkout/fetch/reset subcommands PlaybookExecutor._update_code_source runs before every playbook. On expiry the WHOLE process group is killed (not just git's own pid), since git can leave an ssh/credential-helper child holding the output pipes open (services/playbook_executor.py, #14524). |
AUTOBOT_UPDATE_CODE_SOURCE_REV_PARSE_TIMEOUT_S |
backend | int | 10 |
Timeout for the best-effort 'git rev-parse --short HEAD' traceability log PlaybookExecutor._update_code_source runs after a successful sync (services/playbook_executor.py, #14524). |
AUTOBOT_UPLOAD_CHUNK_MB |
knowledge | int | 8 |
Largest chunk of a resumable upload, in MB; must fit the web server's body limit (#19713). Range: 1–512. |
AUTOBOT_UPLOAD_DIR |
backend | str | "" |
Transcriber uploads, the only base the path guard allows; empty: <TRANSCRIBER_DATA_DIR>/uploads. |
AUTOBOT_UPLOAD_MAX_OPEN_PER_OWNER |
knowledge | int | 5 |
Unfinished resumable uploads one person may hold (#19713). Range: 1–1000. |
AUTOBOT_UPLOAD_MAX_STAGED_MB |
knowledge | int | 32768 |
Total size all unfinished resumable uploads may promise, in MB (#19713). Range: 1–10485760. |
AUTOBOT_UPLOAD_MAX_TOTAL_MB |
knowledge | int | 8192 |
Largest whole file a resumable upload accepts, in MB (#19713). Range: 1–1048576. |
AUTOBOT_UPLOAD_SESSION_TTL_HOURS |
knowledge | int | 48 |
Hours before an unfinished upload stops taking chunks and is listed for review (#19713). Range: 1–8760. |
AUTOBOT_UPLOAD_STAGING_DIR |
knowledge | str | "" |
Where resumable uploads are staged; empty: uploads-staging under the data directory (#19713). |
AUTOBOT_UPSERT_COMMENT_TIMEOUT |
tooling | float | 30.0 |
Seconds each GitHub API call made by the shared sticky-PR-comment action waits before giving up (.github/actions/upsert-pr-comment/upsert_pr_comment.py, #12984). A value that is not a finite number above zero is rejected with a warning and the default is used, since 0, NaN and a negative would mean no timer or an expired one. |
AUTOBOT_USERS_DATABASE_URL |
postgres | str | (none) | Full SQLAlchemy connection URL for the users database. Overrides AUTOBOT_POSTGRES_* individual vars when set. |
AUTOBOT_VENV_INSPECT_TIMEOUT |
slm | float | 60.0 |
Timeout, in seconds, for inspecting an existing venv's installed packages during reconciliation. Raising it tolerates a slower inspection; lowering it fails a stuck inspection sooner (autobot-slm-backend/api/venv_reconcile.py). |
AUTOBOT_VERBATIM_RECENCY_HALFLIFE_SECONDS |
memory | float | 604800 |
Half-life, in seconds, of the exponential recency decay applied when re-ranking verbatim recall results (GH#11163). Raising it makes recency matter over a longer window (older turns stay competitive longer); lowering it decays older turns faster, favoring very recent ones more strongly (memory/verbatim_store.py). |
AUTOBOT_VERBATIM_RECENCY_WEIGHT |
memory | float | 0.2 |
Weight blending recency decay into verbatim recall's similarity ranking (GH#11163); 0.0 disables the blend (pure semantic order). Raising it favors recent turns more over equally-similar older ones; lowering it toward 0 reverts closer to pure semantic ranking (memory/verbatim_store.py). |
AUTOBOT_VNC_PORT |
network | int | 6080 |
Port of the VNC web interface (novnc), used by the desktop-control/VNC proxy surface. |
AUTOBOT_VOICE_REFERENCE_MAX_SECONDS |
voice | float | 120.0 |
Longest reference audio, in seconds, kept when a new voice is created; ffmpeg cuts the decoded output there, so a decompression bomb cannot outlive the request. Must be positive and finite, else the default is used (media/audio/reference_wav.py, #18477). |
AUTOBOT_VOICE_TOOLSETS |
voice | str | 'voice_safe' |
Comma-separated toolset bundles a voice session may call. Defaults to the restricted voice_safe bundle — voice input is harder to confirm than typed input, so the surface is narrowed by default. |
AUTOBOT_WHISPER_DEVICE |
voice | str | 'auto' |
Where the shared Whisper pipeline runs: 'auto' (default; CUDA with float16 when available, else CPU fp32) or 'cpu' (always CPU fp32). Any other value logs a warning and uses cpu. Used by both /voice/transcribe and the multimodal audio path (media/audio/pipeline.py). |
AUTOBOT_WHISPER_LOAD_RETRY_SECONDS |
voice | float | 60.0 |
How long the shared Whisper loader waits after a FAILED model load before trying again. A transient failure no longer disables local transcription for the life of the process; an integrity failure is never retried (media/audio/pipeline.py). |
AUTOBOT_WORKSPACE_BASE_REF |
orchestration | str | 'origin/main' |
Ref that new task workspaces branch from (#15938). Distinct from AUTOBOT_GIT_BRANCH, which records the branch the running instance was built from: one describes this deployment, the other where new work starts. |
AUTOBOT_WORKSPACE_CPU_QUOTA |
workspace | int | 100000 |
CPU quota (Docker cpu-quota microseconds per 100ms period) applied to a task workspace container (GH#10544). Raising it allows a workspace container more CPU time per period; lowering it throttles it more tightly (services/docker_task_workspace.py). |
AUTOBOT_WORKSPACE_DISK_MB |
workspace | int | 2048 |
Disk quota, in MB, applied to a task workspace's storage_opt size where the storage driver honours it (GH#10544, GH#11694). Raising it allows a workspace to use more disk; lowering it caps it more tightly (services/docker_task_workspace.py). |
AUTOBOT_WORKSPACE_IDLE_SECONDS |
workspace | int | 14400 |
Idle-expiry window, in seconds, after which an unused task workspace container is torn down (GH#10544). Raising it keeps an idle workspace around longer for reuse; lowering it reclaims idle workspace resources sooner (services/docker_task_workspace.py). |
AUTOBOT_WORKSPACE_MAX_COUNT |
workspace | int | 20 |
Maximum number of concurrent task workspace containers allowed (GH#10544). Raising it allows more concurrent workspaces at the cost of more host resource usage; lowering it caps concurrent workspace count more tightly (services/docker_task_workspace.py). |
AUTOBOT_WORKSPACE_PIDS_LIMIT |
workspace | int | 512 |
PID-count limit (Linux pids cgroup) applied to a task workspace container, capping process count so a fork-bomb inside it cannot exhaust host PIDs (GH#11059). Raising it allows more processes inside a workspace; lowering it hardens against a fork-bomb more tightly, at the risk of limiting legitimate parallelism (services/docker_task_workspace.py). |
AUTOBOT_WORK_CLAIM_STALL_INTERVALS |
orchestration | int | 3 |
How many renewal intervals a run may go without reporting progress before its work claims stop being renewed and lapse (#15950). Progress is reported by every LLM attempt, tool SDK executions and write sites, so a slow run that keeps working keeps its claim and only silence lets one lapse. The effective window is never shorter than twice AUTOBOT_LLM_REQUEST_TIMEOUT plus the longest LLM backoff wait and rate-limit token wait, the longest a working call can go before an attempt ends. Range: 2–100. |
AUTOBOT_WORK_CLAIM_TTL_S |
orchestration | int | 300 |
How long an agent's work claim survives without a renew (#15947). This is a coordination policy, not a tuning knob: the value is how long a crashed agent's scope stays blocked to every other agent, so the floor stops a claim expiring mid-write and the ceiling bounds a stale hold at one hour. A running task renews for its own lifetime, so raising this does not make long tasks safer -- it only makes a dead holder's scope take longer to free. Range: 10–3600. |
AUTOBOT_WORK_CLAIM_WAIT_TTL_S |
orchestration | int | 900 |
How long an agent keeps its place in a work-claim queue without renewing (#15948). Deliberately longer than AUTOBOT_WORK_CLAIM_TTL_S: a waiter that expired before the holder it is queued behind would never be promoted, and would look to an operator like a queue that silently drops people. The ceiling bounds how long a dead waiter occupies a position before it is pruned on the next read. Range: 30–7200. |
AUTOBOT_WORK_CLAIM_YIELD_TIMEOUT_S |
orchestration | int | 30 |
How long a requester waits for a claim holder to answer a yield request before treating the silence as a refusal (#15948). Short on purpose: the requester is blocked while it waits, and a holder that has not answered in this long is busy working, which is itself the answer. Raising it does not make a yield more likely, it only makes the requester wait longer to be told no. Range: 1–600. |
FLUX_API_KEY |
image_generation | str | (none) | Flux API key for the image-generation plugin. Environment fallback only: credentials belong in the secrets service. |
NPU_WORKER_BIND_HOST |
npu | str | '0.0.0.0' |
Address the NPU worker binds its listener to. Read first by the worker; falls back to the legacy NPU_WORKER_HOST. Never used to CONNECT to a worker. |
NPU_WORKER_HOST |
npu | str | '0.0.0.0' |
Legacy, ambiguous name. In the worker it is the BIND address, used only when NPU_WORKER_BIND_HOST is unset. Connect-side readers use AUTOBOT_NPU_WORKER_HOST (ssot); autobot doctor still honours this name as a connect host when that is unset, mapping a 0.0.0.0 bind value to loopback. |
NPU_WORKER_PORT |
npu | int | 8081 |
Port the NPU worker listens on (worker) and that autobot doctor probes. AUTOBOT_NPU_WORKER_PORT is the ssot alias and wins in doctor; this bare name is still honoured so existing deployments keep working. |
OPENAI_API_KEY |
image_generation | str | (none) | OpenAI image API key for the image-generation plugin. Environment fallback only: credentials belong in the secrets service. |
PR_CONFLICT_GATE_BACKOFF_SECONDS |
backend | float | 5.0 |
Initial seconds the PR merge-conflict gate waits between reads of an unknown mergeable state; doubles each retry, clamped to 0..60 (#19769). |
PR_CONFLICT_GATE_MAX_ATTEMPTS |
backend | int | 6 |
How many times the PR merge-conflict gate reads a PR whose mergeable state GitHub reports as unknown before reporting it pending; clamped to 1..10 (#19769). |
SLM_ADMIN_PASSWORD |
slm | str | "" |
SLM admin password, the one name for it (#19318). Its home is SLM_ADMIN_PASSWORD in slm-secrets.env (install.sh or the slm_manager role generates it). Empty means the SLM creates the admin with a random password and never resets an existing one. No default password. AUTOBOT_SLM_ADMIN_PASSWORD is a deprecated alias that only install.sh and the shared ansible reader honour. |
SLM_ADMIN_PASSWORD_FILE |
slm | str | "" |
Path to a file holding the SLM admin password (the hardened compose overlay's mounted secret). Seeds a fresh install only; an existing admin keeps its stored password (#19368). Set but unreadable or empty stops the first start with an error. |
SLM_AUTH_LOOKUP_CACHE_TTL |
slm | float | 60.0 |
Seconds an SLM process reuses its resolved API-key hashing setting (#19120); other workers follow within it. |
SLM_COMPOSE_NODES |
slm | str | "" |
Surface each compose container as an SLM fleet node (#9761). Unset follows the deployment mode: on for docker_local (the compose stack, or a dev checkout run inside a container), off on a bare-metal/VM fleet and a host dev checkout; true|false overrides, a blank or unrecognised value is warned about and treated as unset. The one default is autobot-slm-backend/config.py Settings.compose_nodes_enabled (#19323); docker-compose.yml passes the name through only. |
SLM_DB_NAME |
postgres | str | 'slm' |
SLM control-plane database name; compose has its own default (see postgres_identity). |
SLM_ENCRYPTION_KEY |
slm | str | "" |
Key for SLM data-at-rest encryption. Empty and unset are equivalent (not configured). |
SLM_HMAC_API_KEY_SECRET |
slm | str | "" |
One-time import source for the API-key pepper (#16299, #19120). The pepper lives in the SLM secrets store (secret slm_hmac_api_key_secret); this value is imported into it when the store has none. No default: with neither set, creating a key fails closed. |
SLM_NODE_ID |
slm | str | (none) | This node's own SLM agent id, set per host by slm-agent.service (slm/agent/agent.py also accepts --node-id); the agent refuses to start without one, so there is no default. Deprecated as the SLM manager's id (#19322): that is AUTOBOT_SLM_NODE_ID (MiscConfig.slm_node_id); the backend still honours this name when that one is unset. |
SLM_POSTGRES_USER |
postgres | str | 'slm_app' |
The SLM's login role; on compose a non-default role must already exist (#19408). |
SLM_REPO_PATH |
slm | str | '/opt/autobot/code_source' |
The SLM's code_source git CHECKOUT (the directory holding .git), never the install root that contains it (default: fleet_constants.FLEET_CODE_SOURCE_DIR). Read once, in services/git_tracker.py as DEFAULT_REPO_PATH; drift checks, packaging and the python-provision playbook path all resolve under it. The provision sudoers rule does not follow an override (#19204), so leave it at the default unless that rule is changed too (#15708). |
SLM_SECRET_KEY |
slm | str | "" |
SLM JWT signing secret. Empty and unset are equivalent (both mean not configured). |
SLM_STALE_COMPONENTS_SCAN_TIMEOUT_SECONDS |
slm | int | 300 |
Seconds /code-sync/status waits on a drift scan before serving the last result (#20250). |
SLM_UPDATE_PROGRESS_STALL_SECONDS |
slm | int | 600 |
Seconds a live self-update's log may stay still before the page reports it as quiet (#20254). |
SLM_USERS_DATABASE_URL |
slm | str | (none) | SQLAlchemy DSN of the SLM admin-users database. Unset falls back to the slm_users database on the colocated PostgreSQL. |
STABILITY_API_KEY |
image_generation | str | (none) | Stability AI API key for the image-generation plugin. Environment fallback only: credentials belong in the secrets service. |