CALIBER_PROFILE | development (the default: start with whatever is set) or reference (refuse to start while any setting breaks the reference deployment: a SQLite database, CSRF off, the dev identity fallback, the admin/admin bootstrap, trusted_header without a proxy secret, egress policy off, plain-HTTP MCP, any MCP stdio command or remote host on the two MCP allowlists, self-approval, an armed fault barrier; every violation is listed with the variable to change) |
CALIBER_MCP_STDIO_COMMAND_ALLOWLIST, CALIBER_MCP_REMOTE_HOST_ALLOWLIST | Comma lists of the stdio executables (default ${PYTHON}, the CALIBER interpreter) and exact remote hosts (default localhost,127.0.0.1,::1) the MCP gateway may start or reach; a server outside them is mcp_server_not_ready. Under CALIBER_PROFILE=reference both must be set to the empty string: the profile lists no MCP command or host for the Beta, so any entry (the defaults included) refuses startup with mcp_allowlist_not_in_profile, and no MCP server is reachable. The development profile is unchanged. See MCP allowlists. |
CALIBER_FAULT_BARRIERS | Test only. A comma list of fault-barrier names (before_dispatch, after_downstream_commit, before_receipt_persist, after_outbox_commit, after_evaluation_claim); a process that reaches an armed barrier exits at once with status 137, like a crash, so the scenario tests can kill a worker at an exact point. Unset (the default) makes every barrier a no-op. The reference profile refuses to start while it is set. Not a setting in CaliberConfig: it is read straight from the environment. |
CALIBER_AUTH_MODE | session (the default: server-side sessions and personal access tokens) or trusted_header (trusts X-CALIBER-User; only behind a proxy) |
CALIBER_ADMIN_USERS, CALIBER_OPERATOR_USERS, CALIBER_APPROVER_USERS | comma-separated user ids granted caliber.admin, caliber.operator and caliber.approver; all empty by default, so a first login is a viewer. These are global scopes, not project roles, and caliber.admin is not an implicit project member |
CALIBER_CSRF_ENABLED | false by default; when true, every POST, PATCH, PUT and DELETE (bearer-token calls included) needs an X-CALIBER-CSRF token, signed with the secret named by CALIBER_CSRF_SIGNING_SECRET_ENV and valid for CALIBER_CSRF_TOKEN_TTL_SECONDS (3600 by default) |
CALIBER_REFERENCE_MAX_BODY_BYTES | 1048576 (1 MiB) by default. Under CALIBER_PROFILE=reference only: the largest request body accepted, enforced on the declared Content-Length and on the bytes actually streamed (a chunked or understated body is bounded too); a larger one gets 413 with {"reason": "request_too_large", "max_bytes": N}. The development profile installs no limit. |
CALIBER_REFERENCE_MAX_UPLOAD_BYTES | 268435456 (256 MiB) by default. Under CALIBER_PROFILE=reference only: the largest multipart/form-data request body accepted (the file-upload routes), which replaces CALIBER_REFERENCE_MAX_BODY_BYTES for those requests when larger. Raise it together with CALIBER_WORKFLOW_STORAGE_MAX_UPLOAD_BYTES. A larger body gets 413. The GitHub webhook route keeps its own CALIBER_GITHUB_WEBHOOK_MAX_BODY_BYTES. |
CALIBER_EXECUTION_LEASE_SECONDS | 30 by default (3 to 3600). Reference profile only: how long the execution-owner lease lasts. The process that holds it runs the background loops and renews it every third of this; a process that cannot renew stops the loops (/readiness execution_role becomes secondary), and when the holder dies a secondary becomes the owner within about this long. Every other process serves HTTP only. |
CALIBER_EFFECT_RECONCILER_ENABLED | true by default. Reference profile only: run the effect reconciler loop in the execution owner. It asks each connector bound in CALIBER_EFFECT_CALLBACK_CONNECTORS about the effects nobody recorded the outcome of, by their logical key, and records unknown for a dispatch stuck in flight; it never re-sends an effect. Turn it off only if another process under the same lease does that work: without it an effect whose settle failed stays blocked until an operator reconciles it. See The reconciler loop. |
CALIBER_EFFECT_RECONCILER_INTERVAL_SECONDS | 15 by default (1 to 3600). Seconds between reconciler passes. |
CALIBER_EFFECT_RECONCILER_BUDGET_SECONDS | 20 by default (1 to 600). A pass stops starting lookups after this long; a lookup in progress finishes (its own timeout applies) and the next pass continues after the last proposal it looked at. |
CALIBER_EFFECT_IN_FLIGHT_MAX_SECONDS | 900 by default (300 to 86400). How long an effect may stay dispatched under the lease that is still current before the loop records it unknown and asks the downstream. It must exceed the longest a dispatch can legitimately take: the executor's timeout (30 s by default) times its attempts (at most 5), its backoff (under 4 s) and the receipt lookup (30 s) come to about 3 minutes with the defaults, which the 300 s floor covers. A connector configured with a longer timeout needs a larger value; a dispatcher that is merely slow finds its row unknown and the reconciler settles it by lookup instead. |
CALIBER_AGENT_STEP_MAX_TURNS | 25 by default (1 to 1000). The most provider turns one governed agent step may be given; a step's own limit is capped at this before it runs. See Central step limits. |
CALIBER_AGENT_STEP_MAX_TOOL_CALLS | 50 by default (0 to 1000). The most read-tool calls one governed agent step may make; the platform counts them and refuses the one past the limit. 0 allows none. |
CALIBER_AGENT_STEP_MAX_TOKENS | 200000 by default (1 to 10000000). The most tokens (prompt plus completion) one governed agent step may use. |
CALIBER_AGENT_STEP_MAX_SECONDS | 600 by default (1 to 86400, finite). The longest window from the moment a governed agent step is asked that its deadline may reach; a later deadline is brought forward to it. |
CALIBER_AGENT_RUN_MAX_TOKENS | 2000000 by default (1 to 1000000000). The most tokens one run's governed agent steps may reserve and be charged in total. A step's max_tokens ceiling is reserved against it, under the run's row lock, before the adapter is called; a step that would take the run past it is refused (token_budget_exhausted) and its adapter is never called. A ceiling larger than the whole budget refuses every step. See Token reservations. |
CALIBER_AGENT_RESERVATION_GRACE_SECONDS | 300 by default (1 to 86400, finite). How long past its step's deadline an open token reservation (a worker died or was cancelled mid-call) is left before the execution owner's reconciler loop finalizes it as abandoned, at its whole reservation: a reservation is never released, so this only moves when the row stops being open. |
CALIBER_EFFECT_HTTP_VERIFIERS | [] by default. A JSON array of the generic http endpoints (governed webhook and API-request nodes) whose downstream has a read-by-key lookup the platform can call (#1055): each row is {"project_id": ..., "resource": <the exact URL a node sends to>, "lookup_url": <where the downstream is asked>}. The platform asks GET <lookup_url>?idempotency_key=<key> to confirm a 2xx and to settle an effect that ended unknown, and believes only a stored request whose key, method, URL and body are the proposal's; a 404 is never read as "it did not happen". It is the only way a workflow node's http effect is dispatched in the reference profile: a URL that is not listed is refused (no_authoritative_verifier) before it is recorded. No credentials are sent with the lookup; the reference profile requires every lookup_url to be https, and each lookup has a 5 s timeout. A manifest, a tool call and a model cannot write it. See Reference profile. |
CALIBER_AGENT_STEP_TOOL_BACKENDS | [] by default. A JSON array of the registered tools whose protected action a governed agent step may propose (#1051): each row is {"tool": <registry name>, "version": <registry version>, "backend": "document_request"}. This is the trusted map from a tool's registry identity to the backend its effect is sent through; a manifest, a tool call and a model cannot write it. In the reference profile an agent node bound to a mapped tool runs as a governed step (its protected action becomes an approvable proposal, sent once after the exact approval, under the execution-owner lease); every other agent node runs as before. Empty governs no agent node. Only document_request is accepted, the one backend with an authoritative lookup by key. The downstream is the base_url of that connector's binding in CALIBER_EFFECT_CALLBACK_CONNECTORS for the run's project; a mapped tool with no binding is refused before anything is claimed. See Reference profile. |
CALIBER_EVENT_OUTBOX_ENABLED | false by default; always on under CALIBER_PROFILE=reference. Record every run event in the transactional outbox in the same transaction as the event and deliver it (at least once) to the registered consumers; see Events: the outbox. |
CALIBER_EVENT_OUTBOX_POLL_SECONDS | 1 by default (0.05 to 60). How long the publisher waits when nothing is due. |
CALIBER_EVENT_OUTBOX_MAX_ATTEMPTS | 20 by default (1 to 1000). Delivery attempts before an event is marked dead and kept for an operator. |
CALIBER_EVENT_OUTBOX_RETENTION_DAYS | 7 by default (0 to 3650). How long delivered events are kept before they are pruned. |
CALIBER_ADMISSION_ENABLED | false by default; always on under CALIBER_PROFILE=reference. Admit every run a user starts (the create-run route, the event trigger and the assistant's run tool), and admit scheduler/service-token runs through server-created typed service principals: resolve and pin everything the run depends on, issue its grant, decide it under the policy and store its immutable run manifest in the transaction that creates the run (see Admitting a run). A refusal stores nothing. Scheduler/service-token lineage is resolved from the deployment's persisted environment class and exactly one active environment with a current release; there is no prod or sole-row fallback. Off elsewhere, scheduler/service paths remain explicitly labelled legacy and user paths retain their existing legacy behavior. |
CALIBER_ADMISSION_GRANT_TTL_SECONDS | 86400 by default (60 to 2592000). How long the grant issued to an admitted run lasts. |
CALIBER_APPLY_REQUIRE_DISTINCT_APPROVER | false by default (a single-operator or development install keeps applying its own candidates); required true under CALIBER_PROFILE=reference, which refuses to start without it (apply_distinct_approver_disabled) and enforces the rule at request time even so. The two-person rule for POST /jobs/{id}/apply: the account that requested the job (its recorded triggered_by) cannot apply its candidate (403, reason_code apply_self_approval), and a job with no recorded requester is refused (403, apply_creator_unknown) rather than passed. Both are refused before any claim, approval record or promotion, and the claim repeats the check on the row-locked job together with the caller's current project permission and the exact candidate digest recorded by the eval gate; each refusal is audited. See Apply: a distinct approver and Apply: the claim rechecks everything. |
CALIBER_APPROVAL_TTL_SECONDS | 86400 by default (1 to 31536000). How long an approval request bound to an effect proposal stays answerable: its expires_at is requested_at plus this many seconds, and a request at or past it is refused with the reason code expired (see Approval requests). Read by the caller that creates the request (configured_ttl_seconds); a change affects only requests created afterwards. |
CALIBER_RULE_BUNDLE_PATH | Empty by default. Path of the rule bundle every admitted run is pinned to; set together with CALIBER_RULE_BUNDLE_SHA256 (one without the other fails startup). Admission verifies the file's bytes against the digest, records the absolute path and digest in the run manifest, and refuses to admit while the file is missing or changed. Each agent step of an admitted run re-verifies the bytes at the recorded path against the recorded digest and cites the bundle in its context manifest; changed bytes refuse the step (context_denied with rule_bundle_changed). Changing these settings affects only runs admitted afterwards, and a run whose bundle changed stays failed (resubmit; set path and digest together). The recorded path is the symlink-resolved one and must exist with the same bytes on every node that can execute the run (a ConfigMap/Secret ..data/<timestamp> mount or a Docker secret does not qualify). Use versioned, content-addressed file names and keep the old file until old runs drain. Admission refuses a bundle whose context citation exceeds 256 KiB. See docs/operate/reference-profile.md, "The rule bundle at context use". |
CALIBER_RULE_BUNDLE_SHA256 | Empty by default. The full lowercase SHA-256 of the rule bundle's exact bytes (see CALIBER_RULE_BUNDLE_PATH). |