{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","$id":"https:\/\/docs.runwisp.com\/config.schema.json","$comment":"SPDX-FileCopyrightText: PoppyCake, s.r.o. SPDX-License-Identifier: Apache-2.0","title":"runwisp.toml","description":"Configuration for RunWisp, a cron daemon + process supervisor. runwisp.toml is the sole source of truth for task definitions; the REST API and Web UI are read-only + trigger. Full reference: https:\/\/docs.runwisp.com\/agents\/reference.md","type":"object","additionalProperties":false,"properties":{"storage":{"$ref":"#\/$defs\/storage"},"daemon":{"$ref":"#\/$defs\/daemon"},"defaults":{"$ref":"#\/$defs\/defaults"},"tasks":{"type":"object","description":"Run-to-exit units, keyed by task name. Cron-driven or manual.","additionalProperties":{"$ref":"#\/$defs\/task"}},"services":{"type":"object","description":"Long-running units, keyed by service name. restart=always is forced.","additionalProperties":{"$ref":"#\/$defs\/service"}},"compose":{"type":"object","description":"Import docker-compose services as observable tasks, keyed by alias.","additionalProperties":{"$ref":"#\/$defs\/composeAlias"}},"notify":{"$ref":"#\/$defs\/notify"},"notifiers":{"type":"object","description":"Outbound notification channels, keyed by id ([notifiers.<id>] blocks).","additionalProperties":{"$ref":"#\/$defs\/notifier"}},"route":{"type":"array","description":"Rules routing events to notifiers ([[route]] blocks).","items":{"$ref":"#\/$defs\/notificationRoute"}}},"$defs":{"duration":{"type":"string","description":"Duration string, e.g. 300ms, 5s, 10m, 1h30m, 2d, 1w.","pattern":"^[0-9]+(\\.[0-9]+)?(ns|us|\u00b5s|ms|s|m|h|d|w)([0-9]+(\\.[0-9]+)?(ns|us|\u00b5s|ms|s|m|h|d|w))*$"},"byteSize":{"type":"string","description":"Byte size, e.g. 100mb, 2gb, 512kb. 0 means no cap.","pattern":"^[0-9]+(\\.[0-9]+)?\\s*([bBkKmMgGtT][iI]?[bB]?)?$"},"stopSignal":{"type":"string","description":"Signal used to stop a process, in canonical SIGxxx form.","enum":["SIGTERM","SIGINT","SIGQUIT","SIGHUP","SIGKILL","SIGUSR1","SIGUSR2"]},"composeUnitMode":{"type":"string","description":"How a compose-backed unit runs: \"exec\" runs `run` inside the service's already-running container; \"run\" starts a fresh container. Default: \"exec\" when `run` is set, otherwise \"run\" (the service's own command).","enum":["exec","run"]},"logOnFull":{"type":"string","description":"Behavior when a run's log hits log_max_size.","enum":["drop_new","drop_old","kill"]},"envBase":{"type":"string","description":"What the run's environment starts from, before env\/secrets. \"inherit\" (default) takes the daemon's; \"clean\" takes only PATH, SHELL, HOME and USER\/LOGNAME, as crond gives a job. Host shell runs only.","enum":["inherit","clean"]},"onOverlap":{"type":"string","description":"What to do when a run is triggered while one is already active.","enum":["queue","skip","kill"]},"backoff":{"type":"string","description":"Backoff curve between attempts.","enum":["constant","linear","exponential"]},"failures":{"type":"array","description":"Which outcomes count as a failure (for stats, UI badges, notifications, and gating retry_attempts\/restart=on_failure). Each token is an EndReason name (failed, timeout, crashed, log_overflow, start_failed, missed, stopped, \u2026), an exit code \/ inclusive range (\"42\", \"1-23\"; 1-255), or an output pattern (\"output:(?i)error\", RE2) matched against each stdout\/stderr line. Exit 0 succeeds unless an output pattern matched, which ends the run as failed. A bare list replaces the inherited set; prefix every token with + or - to add\/drop against it instead (\"-missed\", \"+stopped\") \u2014 mixing bare and prefixed tokens is rejected. Exit and output tokens only apply to a run that actually exited (reason failed). Omit to inherit; the built-in default is [\"failed\",\"timeout\",\"crashed\",\"log_overflow\",\"start_failed\",\"unhealthy\",\"missed\"]. A retry\/restart still only fires for failed\/timeout\/crashed\/log_overflow\/start_failed\/unhealthy, so narrowing failures narrows retries but promoting stopped\/missed never triggers one.","items":{"type":"string","pattern":"^[+-]?((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(-(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?))?|failed|stopped|timeout|crashed|skipped|log_overflow|queue_full|dst_skipped|daemon_stopped|missed|start_failed|unhealthy|output:.+)$"}},"envMap":{"type":"object","description":"Environment variables. Keys match ^[A-Za-z_][A-Za-z0-9_]*$.","propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"additionalProperties":{"type":"string"}},"secretsMap":{"type":"object","description":"Secret values merged into the task env; never shown in API\/UI.","additionalProperties":{"type":"string"}},"hookTokens":{"type":"array","description":"Tokens for POST \/api\/hooks\/tasks\/<name>\/<action> (run\/start\/stop\/restart) without a session. A string grants every action; a table limits it to allow. Use ${VAR} or ${file:...}; never shown in API\/UI. manual_trigger does not apply.","items":{"oneOf":[{"$ref":"#\/$defs\/hookTokenValue"},{"type":"object","additionalProperties":false,"required":["token"],"properties":{"token":{"$ref":"#\/$defs\/hookTokenValue"},"allow":{"type":"array","minItems":1,"items":{"type":"string","enum":["run","start","stop","restart"]},"description":"Actions this token may perform. Omit for every action; services don't support run."}}}]}},"hookTokenValue":{"type":"string","minLength":32,"pattern":"^\\S+$"},"unitCommon":{"type":"object","description":"Properties declared byte-for-byte identically on task, service, and composeOverride, factored out once so the three can't drift out of sync (see wire.go's unitOverrideWire).","properties":{"description":{"type":"string"},"stop_signal":{"$ref":"#\/$defs\/stopSignal"},"log_max_size":{"$ref":"#\/$defs\/byteSize"},"log_on_full":{"$ref":"#\/$defs\/logOnFull"},"keep_runs":{"type":"integer","minimum":0,"maximum":1000000},"keep_for":{"$ref":"#\/$defs\/duration"},"env":{"$ref":"#\/$defs\/envMap"},"env_file":{"type":"string"},"secrets":{"$ref":"#\/$defs\/secretsMap"},"secrets_file":{"type":"string"},"failures":{"$ref":"#\/$defs\/failures"}}},"storage":{"type":"object","description":"Daemon-wide log disk safeguards.","additionalProperties":false,"properties":{"max_size":{"$ref":"#\/$defs\/byteSize","description":"Hard cap on total log bytes across all tasks. 0 = no cap."},"min_free_space":{"$ref":"#\/$defs\/byteSize","description":"Stop accepting log lines when partition free space drops below this. 0 = no check."}}},"daemon":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Display label for this instance, shown instead of the fingerprint in the TUI, Web UI and notification footers. ${HOSTNAME} falls back to the machine's hostname when unset."},"allow_station_dispatch":{"type":"boolean","default":false,"description":"Accept peer-dispatched ad-hoc runs (opt-in; one-shot, never edits TOML)."},"allow_station_upgrade":{"type":"boolean","default":false,"description":"Let the connected station upgrade this daemon to a RunWisp release and restart it (opt-in). Only for a binary RunWisp replaces itself, running under a service manager. Needs a restart to change."},"shutdown_timeout":{"$ref":"#\/$defs\/duration","description":"SIGTERM\u2192SIGKILL drain budget for in-flight runs on shutdown. Default 10s."},"external_url":{"type":"string","description":"Public Web UI base for notification deep-links; absolute http(s) with host. When unset, the address of the most recent signed-in Web UI visit is used."},"check_updates":{"type":"boolean","default":true,"description":"Poll concierge.runwisp.com for a newer release and show an indicator; also enables the Web UI feedback prompt. Set false to keep the daemon fully offline. Never auto-applies."},"heartbeat_url":{"type":"string","description":"Dead man's switch URL (absolute http(s)) the daemon GETs at start and every 60s, so a monitor such as healthchecks.io alerts when the pings stop. Treated as a secret: never logged or served over the API. Applied by a reload."},"log_output":{"type":"boolean","default":false,"description":"Copy every run's output lines to the daemon's own stdout and stderr, so `docker logs` shows what the jobs printed. The RUNWISP_LOG_OUTPUT env var overrides it; the Docker image sets it to true."},"metrics_enabled":{"type":"boolean","default":false,"description":"Master switch for \/metrics."},"metrics_listen":{"type":"string","description":"Dedicated metrics listener host:port; setting it enables metrics."},"tls":{"type":"string","default":"off","description":"TLS mode for the HTTP server."},"tls_cert":{"type":"string","description":"Path to the TLS certificate."},"tls_key":{"type":"string","description":"Path to the TLS private key."},"trusted_proxies":{"type":"array","description":"CIDR allowlist of reverse proxies whose X-Forwarded-For is trusted. Catch-all ranges (0.0.0.0\/0, ::\/0) are rejected. RUNWISP_TRUSTED_PROXIES overrides this at daemon start.","items":{"type":"string"}},"api_tokens":{"type":"array","description":"Static bearer tokens for the REST API with the same rights as a password session. Each is at least 32 characters, no whitespace, doesn't start with digits and a dot (a session token's shape), and is unique across this list and viewer_api_tokens. Use ${VAR} substitution to keep them out of the file. Applied on reload.","items":{"type":"string","minLength":32}},"viewer_api_tokens":{"type":"array","description":"Static read-only bearer tokens for the REST API (reads allowed, trigger and stop refused). Same rules as api_tokens. Applied on reload.","items":{"type":"string","minLength":32}},"include":{"type":"array","description":"Glob(s) of extra TOML files merged at load. Root config only, no nesting.","items":{"type":"string"}},"include_cron":{"type":"array","description":"Glob(s) of real crontabs, or anacrontabs (a file named anacrontab), read as live task sources at every load and reload. Root config only. A job RunWisp can't reproduce is skipped and reported; the rest of the file still runs.","items":{"type":"string"}},"timezone":{"type":"string","description":"IANA timezone for cron evaluation when a task pins none. Default: host system zone."}}},"defaults":{"type":"object","description":"Inherited by every task and service; overridable per unit.","additionalProperties":false,"properties":{"timeout":{"$ref":"#\/$defs\/duration","description":"Per-attempt wall-clock cap (tasks only). Unset = no timeout."},"jitter":{"$ref":"#\/$defs\/duration","description":"Start-spread window inherited by cron tasks (tasks only)."},"warn_after":{"$ref":"#\/$defs\/duration","description":"Send a long_running notification when a run is still going after this long, without stopping it (tasks only)."},"shell":{"type":"string","default":"\/bin\/sh","description":"Interpreter for run scripts (absolute path)."},"stop_signal":{"$ref":"#\/$defs\/stopSignal","default":"SIGTERM"},"failures":{"$ref":"#\/$defs\/failures","description":"Which outcomes count as a failure, inherited by every unit. Bare list replaces the built-in default; +\/- tokens (\"-missed\", \"+stopped\") adjust it. Built-in default: [\"failed\",\"timeout\",\"crashed\",\"log_overflow\",\"start_failed\",\"unhealthy\",\"missed\"]."},"log_max_size":{"$ref":"#\/$defs\/byteSize","description":"Per-run log cap. Default 100mb."},"log_on_full":{"$ref":"#\/$defs\/logOnFull","default":"drop_old"},"keep_runs":{"type":"integer","minimum":0,"maximum":1000000,"description":"Row-count retention; 0 keeps no completed runs."},"keep_for":{"$ref":"#\/$defs\/duration","description":"Age retention; positive."},"healthy_after":{"$ref":"#\/$defs\/duration","description":"Service uptime counted as healthy (services only). Default 60s."},"restart_attempts":{"type":"integer","minimum":0,"maximum":100,"description":"Consecutive fast failures before a service instance goes FATAL. Default 10. Service-only."},"restart_delay":{"$ref":"#\/$defs\/duration","description":"Delay before a service restart (services only). Default 1s."},"restart_backoff":{"$ref":"#\/$defs\/backoff","description":"Restart backoff curve (services only). Default exponential."},"catch_up":{"type":"integer","minimum":0,"maximum":10000,"description":"Max missed cron ticks to re-run at startup, inherited by cron tasks: 0 skips, 1 re-runs the most recent, N re-runs up to the N most recent. Default 1."},"graceful_stop":{"$ref":"#\/$defs\/duration","description":"Grace before SIGKILL on stop. Default 5s."},"env":{"$ref":"#\/$defs\/envMap"},"env_file":{"type":"string","description":"Dotenv file merged into every task; relative to runwisp.toml dir."},"secrets":{"$ref":"#\/$defs\/secretsMap"},"secrets_file":{"type":"string","description":"Dotenv file merged beneath secrets; only the path is visible."}}},"task":{"type":"object","description":"A run-to-exit task ([tasks.<name>]). Requires run, unless compose_file or sdk is set.","allOf":[{"$ref":"#\/$defs\/unitCommon"}],"unevaluatedProperties":false,"properties":{"group":{"type":"string","default":"Tasks","description":"UI grouping label."},"cron":{"type":"string","description":"5- or 6-field cron (optional leading seconds); also @hourly, @every 1h30m. Day of month takes L, L-3, LW, 15W; day of week takes FRI#3, FRI#L. Omit => manual-only."},"timezone":{"type":"string","description":"Per-task IANA timezone override."},"jitter":{"$ref":"#\/$defs\/duration","description":"Cap how far this cron task's start may slip; needs cron."},"warn_after":{"$ref":"#\/$defs\/duration","description":"Send a long_running notification once when a run is still going after this long, without stopping it (inherits [defaults]). 0s turns it off."},"run_on_start":{"anyOf":[{"type":"boolean"},{"enum":["daemon","boot"]}],"default":false,"description":"Fire once at start, on top of any cron. true or \"daemon\": every daemon start. \"boot\": once per machine or container boot, like cron @reboot."},"manual_trigger":{"type":"boolean","default":true,"description":"Allow CLI\/API\/UI trigger; false = cron-only."},"autostart":{"type":"boolean","default":true,"description":"false: the cron schedule starts paused the first time the task is registered, until resumed. Needs cron; not with manual_trigger = false or run_on_start."},"catch_up":{"type":"integer","minimum":0,"maximum":10000,"default":1,"description":"Max missed cron ticks to re-run at startup after downtime: 0 skips, 1 re-runs the most recent, N re-runs up to the N most recent. A value above 1 requires on_overlap = queue."},"timeout":{"$ref":"#\/$defs\/duration","description":"Per-attempt cap (inherits [defaults])."},"graceful_stop":{"$ref":"#\/$defs\/duration","description":"Grace before SIGKILL on stop. Default 5s."},"max_concurrent":{"type":"integer","minimum":1,"maximum":1024,"default":1,"description":"Concurrent run cap."},"max_queued":{"type":"integer","minimum":0,"maximum":10000,"default":100,"description":"Queued-run depth. 0 = no queue: a trigger that finds every slot busy records queue_full."},"on_overlap":{"$ref":"#\/$defs\/onOverlap","default":"queue"},"retry_attempts":{"type":"integer","minimum":0,"maximum":100,"default":0,"description":"Retries after a failed attempt. Fires only when the reason is also classified as a failure by `failures`."},"retry_delay":{"$ref":"#\/$defs\/duration","description":"Delay between retries. Default 5s."},"retry_backoff":{"$ref":"#\/$defs\/backoff"},"working_dir":{"type":"string","description":"Process cwd; relative to runwisp.toml dir, ~ expands."},"shell":{"type":"string","description":"Interpreter for run (absolute path); invoked as <shell> -e -c <script>, so a multi-line script stops at its first failing command. Non-POSIX interpreters get no -e."},"umask":{"type":"string","description":"Octal file-creation mask, e.g. \"027\"."},"env_base":{"$ref":"#\/$defs\/envBase"},"user":{"type":"string","description":"Run as user or user:group; needs daemon as root."},"run":{"type":"string","description":"Shell command. With compose_file, it is the command run inside the compose service (see compose_mode)."},"compose_file":{"type":"string","description":"Run a compose service instead of run=."},"compose_service":{"type":"string","description":"Which compose service; requires compose_file. Default = task name."},"compose_mode":{"$ref":"#\/$defs\/composeUnitMode"},"sdk":{"type":"boolean","default":false,"description":"Run the unit in the app that defines it through an SDK, instead of run=. SDKs set it. Not combinable with run, compose_file, shell, umask, user, env_base, working_dir, stop_signal."},"notify":{"type":"array","items":{"type":"string"},"description":"Notifier ids (or \"id:override\", or \"inapp\") to page when this unit's `failures` policy classifies a run as a failure. Non-failure outcomes (a success ping, a timeout-only escalation) use an explicit [[route]] instead."},"params":{"type":"array","items":{"$ref":"#\/$defs\/param"},"description":"Per-execution inputs ([tasks.*.params])."},"hook_tokens":{"$ref":"#\/$defs\/hookTokens"}}},"service":{"type":"object","description":"A long-running service ([services.<name>]). restart defaults to always.","allOf":[{"$ref":"#\/$defs\/unitCommon"}],"unevaluatedProperties":false,"properties":{"group":{"type":"string","default":"Services","description":"UI grouping label."},"manual_trigger":{"type":"boolean","default":true,"description":"Allow stop\/restart\/start from CLI\/API\/UI\/station; false locks it to its restart policy until a config reload."},"hook_tokens":{"$ref":"#\/$defs\/hookTokens"},"restart":{"type":"string","enum":["never","on_failure","always"],"default":"always","description":"on_failure restarts only when the reason is also classified as a failure by `failures`."},"timeout":{"$ref":"#\/$defs\/duration"},"graceful_stop":{"$ref":"#\/$defs\/duration"},"working_dir":{"type":"string"},"shell":{"type":"string"},"umask":{"type":"string"},"env_base":{"$ref":"#\/$defs\/envBase"},"user":{"type":"string"},"run":{"type":"string","description":"Shell command. With compose_file, it is the command run inside the compose service (see compose_mode)."},"compose_file":{"type":"string"},"compose_service":{"type":"string"},"compose_mode":{"$ref":"#\/$defs\/composeUnitMode"},"sdk":{"type":"boolean","default":false,"description":"Run the unit in the app that defines it through an SDK, instead of run=. SDKs set it. Not combinable with run, compose_file, shell, umask, user, env_base, working_dir, stop_signal."},"notify":{"type":"array","items":{"type":"string"}},"instances":{"type":"integer","minimum":1,"maximum":64,"default":1,"description":"Parallel instances."},"restart_delay":{"$ref":"#\/$defs\/duration","description":"Delay before a restart. Default 1s."},"restart_backoff":{"$ref":"#\/$defs\/backoff","default":"exponential"},"healthy_after":{"$ref":"#\/$defs\/duration","description":"Uptime counted as healthy. Default 60s. With health_check: the deadline for its first pass."},"restart_attempts":{"type":"integer","minimum":0,"maximum":100,"default":10,"description":"Consecutive fast failures before an instance goes FATAL."},"priority":{"type":"integer","default":0,"description":"Boot start order; lower starts first."},"autostart":{"type":"boolean","default":true,"description":"Start at boot; false boots it stopped."},"depends_on":{"type":"array","items":{"type":"string"},"description":"Services that must be healthy before this one starts at boot (order only)."},"health_check":{"$ref":"#\/$defs\/healthCheck"}}},"healthCheck":{"type":"object","description":"A service's probe ([services.<name>.health_check]): a command run alongside each instance. Its first pass marks the instance healthy; failing after that (retries included) stops it as unhealthy. Keys mean what they mean on [tasks.*]; unset host exec keys inherit the service's (none when compose_file is set).","additionalProperties":false,"required":["run"],"properties":{"run":{"type":"string","description":"Probe command; a non-failure outcome (per failures) is a pass. With compose_file, run inside the compose service's running container."},"cron":{"type":"string","description":"When to probe. Default @every 10s."},"timezone":{"type":"string","description":"IANA timezone for cron. Default: the daemon timezone."},"timeout":{"$ref":"#\/$defs\/duration","description":"Per-probe cap; must be positive. Inherits [defaults], else 5s."},"failures":{"$ref":"#\/$defs\/failures"},"retry_attempts":{"type":"integer","minimum":0,"maximum":100,"default":2,"description":"Re-checks after a failed check once healthy, before the instance is stopped as unhealthy."},"retry_delay":{"$ref":"#\/$defs\/duration","description":"Delay between re-checks. Default 5s."},"retry_backoff":{"$ref":"#\/$defs\/backoff"},"working_dir":{"type":"string"},"shell":{"type":"string"},"umask":{"type":"string"},"env_base":{"$ref":"#\/$defs\/envBase"},"user":{"type":"string"},"env":{"$ref":"#\/$defs\/envMap"},"env_file":{"type":"string"},"secrets":{"$ref":"#\/$defs\/secretsMap"},"secrets_file":{"type":"string"},"compose_file":{"type":"string"},"compose_service":{"type":"string"},"compose_mode":{"type":"string","enum":["exec"],"description":"Only exec: a probe runs inside the service's running container."}}},"param":{"type":"object","description":"One [tasks.*.params] entry. Set exactly one of env\/arg\/option\/flag.","additionalProperties":false,"properties":{"env":{"type":"string","description":"Identity keyword: expose as an environment variable."},"arg":{"type":"string","description":"Identity keyword: positional argument."},"option":{"type":"string","description":"Identity keyword: --name value option."},"flag":{"type":"string","description":"Identity keyword: boolean --name flag."},"default":{"type":["string","integer","number","boolean"],"description":"Default value literal."},"required":{"type":"boolean","default":false},"type":{"type":"string","description":"Value type hint."},"choices":{"type":"array","items":{"type":"string"}},"allow_custom":{"type":"boolean","default":false},"description":{"type":"string"}}},"composeAlias":{"type":"object","description":"One [compose.<alias>] block: reserved scalar keys plus per-service override sub-tables. The reserved [compose.<alias>.defaults] sub-table applies its override keys to every imported service (per-service tables win).","properties":{"file":{"type":"string","description":"Compose file path; auto-discovered when omitted."},"services":{"type":"array","items":{"type":"string"},"description":"Filter which compose services are imported: bare or \"+name\" keeps only those; \"-name\" drops those. The two polarities are mutually exclusive. Omit to import every service."},"import":{"type":"string","enum":["services","stack"],"default":"services","description":"How to import the compose file: one RunWisp service per compose service, or one task managing the whole project."},"group":{"type":"string"},"project_name":{"type":"string"},"profiles":{"type":"array","items":{"type":"string"}},"env_file":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"with_deps":{"type":"boolean","default":false},"pull":{"type":"string","enum":["missing","always","never"],"default":"missing"},"name_format":{"type":"string","default":"{alias}.{service}","description":"Generated task name; must contain {service} in services mode."}},"additionalProperties":{"$ref":"#\/$defs\/composeOverride"}},"composeOverride":{"type":"object","description":"Per-service override sub-table [compose.<alias>.<svc>].","allOf":[{"$ref":"#\/$defs\/unitCommon"}],"unevaluatedProperties":false,"properties":{"group":{"type":"string"},"manual_trigger":{"type":"boolean","description":"Allow stop\/restart\/start from CLI\/API\/UI\/station; false locks it to its restart policy until a config reload."},"timeout":{"$ref":"#\/$defs\/duration"},"graceful_stop":{"$ref":"#\/$defs\/duration"},"restart":{"type":"string","enum":["never","on_failure","always"],"description":"on_failure restarts only when the reason is also classified as a failure by `failures`."},"instances":{"type":"integer","minimum":1,"maximum":64},"restart_delay":{"$ref":"#\/$defs\/duration"},"restart_backoff":{"$ref":"#\/$defs\/backoff"},"healthy_after":{"$ref":"#\/$defs\/duration"},"restart_attempts":{"type":"integer","minimum":0},"priority":{"type":"integer"},"autostart":{"type":"boolean"},"notify":{"type":"array","items":{"type":"string"}}}},"notify":{"type":"object","description":"Global notification settings ([notify]).","additionalProperties":false,"properties":{"global_notifiers":{"type":"array","items":{"type":"string"},"default":["inapp"],"description":"Channels added to every notify list + catch-all on failures; [] opts out."},"retry_budget":{"$ref":"#\/$defs\/duration","description":"Total retry budget per delivery."},"keep_notifications":{"type":"integer","default":1024,"description":"In-app bell row cap."},"keep_for":{"$ref":"#\/$defs\/duration","description":"Max bell row age. Default 90d."},"coalesce_window":{"$ref":"#\/$defs\/duration","description":"Collapse repeat (kind+task) into one bell row. Default 1h."},"coalesce_limit":{"type":"integer","default":10,"description":"Recent timestamps kept per coalesced bell row, and the count of suppressed events after which an outbound (Slack\/Telegram\/etc) delivery is force-forwarded instead of waiting for the coalescing window to close."}}},"notifier":{"type":"object","description":"One [notifiers.<id>] block, keyed by its id (non-empty, not \"inapp\", no \":\"). type is required; other fields depend on it.","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["slack","discord","telegram","smtp","sendmail","ntfy","gotify","pushover","webhook"]},"template_path":{"type":"string"},"webhook_url":{"type":"string","description":"slack\/discord webhook URL."},"channel":{"type":"string","description":"slack channel; starts with # or @."},"bot_token":{"type":"string","description":"telegram bot token."},"chat_id":{"type":"string","description":"telegram chat id."},"parse_mode":{"type":"string","description":"telegram parse mode."},"host":{"type":"string","description":"smtp host."},"port":{"type":"integer","minimum":0,"maximum":65535,"description":"smtp port."},"tls_mode":{"type":"string","enum":["starttls","implicit","off"],"description":"smtp TLS mode."},"tls_skip_verify":{"type":"boolean"},"username":{"type":"string"},"password":{"type":"string"},"from":{"type":"string","description":"smtp\/sendmail from email."},"reply_to":{"type":"string"},"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"sendmail_path":{"type":"string","description":"sendmail: absolute path to the MTA binary. Omit to find the system one."},"url":{"type":"string","description":"webhook URL, or ntfy\/gotify server base URL (http\/https). ntfy defaults to https:\/\/ntfy.sh."},"headers":{"type":"object","additionalProperties":{"type":"string"}},"topic":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"ntfy topic."},"token":{"type":"string","description":"ntfy access token (optional), gotify\/pushover application token."},"user":{"type":"string","description":"pushover user or group key."}}},"notificationRoute":{"type":"object","description":"One [[route]] block.","additionalProperties":false,"required":["notifiers"],"properties":{"match":{"type":"object","additionalProperties":false,"properties":{"kinds":{"type":"array","description":"Match on fine-grained outcomes \u2014 the same vocabulary as [tasks.*] failures.","items":{"type":"string","enum":["started","succeeded","failed","timeout","crashed","log_overflow","queue_full","stopped","daemon_stopped","missed","unhealthy","service.fatal","log.disk_pressure","long_running","recovered"]}},"failure":{"type":"boolean","description":"Match any run classified as a failure (per [tasks.*] failures)."},"task":{"type":"string","description":"Glob over task name."}}},"notifiers":{"type":"array","minItems":1,"items":{"type":"string"},"description":"Notifier ids (or \"inapp\"); \"id:#override\" inline target."}}}}}