# configuration The configuration file, keys, env, hidden keys, timings. Generated by `make records` from the decisions whose `topic` (or `also`) is this one; edit the decisions, not this page. ## Current ### Effective configuration - **Show each deployment node's effective configuration masked at source** (D122): Each node supplies its own effective configuration for the API and Deployments page. The node masks secrets before its configuration leaves the process. ### Timings and limits - **Deployment-dependent timings are configuration keys** (D231): Timings whose right values depend on the deployment are public keys. Each key has a doc comment describing its effect and when to change it. - **Hidden environment variables change fixed timings** (D233): `SCHEDR_HIDDEN__
__` changes a fixed timing at startup. Each setting is warned about; unknown names and invalid durations stop startup, but for the retired quiet-DAG timings (`RETIRED_TIMINGS`, decision 485), accepted and ignored. - **Hidden timings cannot be zero** (D234): Every hidden timing must be nonzero and at most 3650 days (Codex's review of M5.1p: a deadline from now stays a time); a zero or longer one is refused. - **Per-task cleanup defaults to the worker cleanup timeout** (D235): A per-task cleanup without its own timeout uses `[worker] cleanup_timeout`; the DAG JSON omits `timeout_ms` and the worker supplies it. Resource cleanups instead default to `[worker] resource_cleanup_timeout`, 30 minutes per try. - **New configuration values are public or hidden** (D237): A new value is a public key when deployment determines its right value; otherwise it is hidden. A binary constant requires a really good reason. - **Public timings that cannot work at zero are refused** (D238): Public timings that cannot work at zero are rejected during configuration load. Timings where zero has a defined meaning remain allowed. - **DAG parse concurrency defaults to four files** (D332): [dags] parse_concurrency defaults to 4 concurrent spawned or forked parses, capped at the cores the agent may use; 1 parses sequentially. dags check uses it and forks when the interpreter has a fork server. Parsing consumes no task slots; each process has its own memory budget. - **Tunable constants are hidden settings** (D493): Every constant that a deployment could need to change and that no key covers is a `SCHEDR_HIDDEN__
__` timing or limit, its default unchanged: 11 timings and 30 limits from the sweep of 2026-11-15 (the master's per-round and per- pass caps, the worker's journal groups and resends, the event backlogs, the Metrics cache, the client's timeouts, the code retry). A constant stays in the binary only for a reason the journal lists: the data format or protocol, a database's parameter limit, the system, a contract users see, a value it derives from, display, or a task's process before any configuration. A hidden limit is 1 to 16,777,216 and a timing at most 3650 days; the rollup grace must be shorter than `WEBSERVER__METRICS_FINAL_AFTER` and, with its 15-minute window, than `MASTER__SAMPLES_KEPT` (Codex's review of M5.1p). ### Sources and validation - **Eighteen fixed timings leave the configuration** (D232): Removed configuration keys: `tick_interval`, `heartbeat_interval`, `lease_timeout`, `lease_period`, `read_back_window`, `read_back_interval`, `query_timeout`, `loop_stall_timeout`, `set_aside`, `listen_retry`, the three quiet-DAG timings (retired since decision 485), `refresh_interval`, `worker_connect_timeout`, `drain_report_period`, `memory_check_interval`, `handshake_timeout`. Setting one in a file or through `SCHEDR_CONFIG__*` fails as an unknown key; there is no migration. - **Fixed timings are passed in per-crate structs** (D236): M4.8u passes hidden timings through each crate's own struct with defaults in the server, worker and webserver, including `auth_remembered` and `auth_recheck`. The client and the CLI's commands use the client timeouts since decision 493; `task-ctx` and `dag-ctx` read no configuration and use none. ### Hidden timings - **Auth timings use the hidden configuration** (D239): `auth_remembered` and `auth_recheck` use hidden timing values. Changing the users file forgets remembered checks; `auth_recheck` sets the change delay. - **Inline server timings use the hidden configuration** (D240): Hidden timings include Vault renewal waits, a stopped group’s poll, and connection-test cancel grace. They also include listeners’ retry after a failed accept. - **Some timings remain constants** (D241): The production gauge-refresh limit is half of `loop_stall_timeout`. Migration-connection timings remain fixed, without `query_timeout`; `task- ctx`'s also remain constants (the client's became hidden timings with decision 493). ### From other topics - Retry fork server preload import failures for a limited time (D19, `task-processes`; built M2.5.4a) - Enable live change notifications by default (D38, `ui-cli`; built M3.4) - The worker message size limit is configurable (D58, `protocol`; built M4.2a) - Show the UI and all deployments in one graph (D128, `ui-cli`; built M4.4b) - schedr secrets new-key generates a secret key (D169, `secrets`; built M4.6c) - Multiple secret storages require an explicit default (D172, `secrets`; built M4.6c) - Command connection files default to memory-backed storage (D201, `connections`; built M4.7b2) - Warn about cleanup timeout at assignment once per task (D250, `cleanup`; built M4.8b) - A moved cleanup waits after the worker lease (D256, `cleanup`; built M4.8b3) - Resource cleanups have a default timeout of 30 minutes per try (D278, `cleanup`; built M4.8f) - Wait steps use max_wait and shared StepDefaults (D325, `wait-steps`; built M4.11a1) - Repeatedly blocking wait steps and triggers are switched off (D338, `wait-steps`; built M4.11a3) - Running cleanup continues past the drain deadline (D346, `cleanup`; built M4.11a4) - Standalone takes --dag-path and --script-path (D488, `code-delivery`; built M5.1n) ## Replaced None. ## Where in code - `crates/schedr-agent/src/agent.rs` (D122) - `crates/schedr-agent/src/agent.rs::drain_running` (D346) - `crates/schedr-agent/src/agent.rs::warned_room` (D250) - `crates/schedr-agent/src/attempt.rs` (D338) - `crates/schedr-agent/src/attempt.rs::WorkerTimeouts` (D493) - `crates/schedr-agent/src/connection_env.rs::default_dir` (D201) - `crates/schedr-agent/src/connection_env.rs::prepare` (D201) - `crates/schedr-agent/src/fork.rs::retried` (D19) - `crates/schedr-agent/src/parse.rs::available_parallelism` (D332) - `crates/schedr-api/src/routes.rs` (D122, D338) - `crates/schedr-api/src/series/cache.rs::CacheLimits` (D493) - `crates/schedr-api/src/state.rs::ApiLimits` (D493) - `crates/schedr-api/src/views.rs` (D338) - `crates/schedr-client/src/lib.rs::Timeouts` (D493) - `crates/schedr-config/src/config.rs::Timings` (D232) - `crates/schedr-config/src/config.rs::auth_recheck` (D239) - `crates/schedr-config/src/config.rs::auth_remembered` (D239) - `crates/schedr-config/src/config.rs::cleanup_move_wait` (D256) - `crates/schedr-config/src/config.rs::connection_dir` (D201) - `crates/schedr-config/src/config.rs::connection_job_cancel_grace` (D240) - `crates/schedr-config/src/config.rs::fork_server_import_retry` (D19) - `crates/schedr-config/src/config.rs::gauge_refresh` (D241) - `crates/schedr-config/src/config.rs::loop_stall_timeout` (D241) - `crates/schedr-config/src/config.rs::max_message_size` (D58) - `crates/schedr-config/src/config.rs::parse_concurrency` (D332) - `crates/schedr-config/src/config.rs::resource_cleanup_timeout` (D278) - `crates/schedr-config/src/config.rs::stop_poll` (D240) - `crates/schedr-config/src/config.rs::switch_off_after` (D338) - `crates/schedr-config/src/config.rs::vault_renew_check` (D240) - `crates/schedr-config/src/loader.rs::MIN_MESSAGE_SIZE` (D58) - `crates/schedr-config/src/loader.rs::check_metrics_final` (D493) - `crates/schedr-config/src/loader.rs::check_not_zero` (D238) - `crates/schedr-config/src/loader.rs::check_secret_storage` (D172) - `crates/schedr-config/src/loader.rs::hidden_timings` (D233, D234) - `crates/schedr-config/src/masked.rs::masked` (D122) - `crates/schedr-config/src/sources.rs::OverrideValue` (D488) - `crates/schedr-master/src/core.rs::MasterTimings` (D236) - `crates/schedr-master/src/core.rs::RoundLimits` (D493) - `crates/schedr-master/src/dispatch.rs::cleanup_move_wait` (D256) - `crates/schedr-master/src/dispatch.rs::count_strike` (D338) - `crates/schedr-ui/src/deployments.rs::graph` (D128) - `crates/schedr-ui/src/deployments.rs::lay_out` (D128) - `crates/schedr/src/cli.rs::root_path` (D488) - `crates/schedr/src/roles.rs` (D201) - `crates/schedr/src/roles.rs::apply_change_notifications` (D38) - `crates/schedr/src/secret_storage.rs` (D172) - `crates/schedr/src/secrets.rs::NewKey` (D169) - `python/schedr/dag.py::StepDefaults` (D325) ## Open None. Details and edge cases, with the reasons; read them before changing this: - JOURNAL.md: D493 - archive/PROJECT.md: DAG code delivery, Timings: public keys and hidden ones, Web UI and CLI