Hot Configuration

Configure your Hot project using the hot.hot configuration file.

Creating a Configuration File

The easiest way to create a hot.hot file is with hot init:

hot init

This creates a minimal hot.hot file with sensible defaults for local development.

To see all available configuration options, use:

hot conf generate all

You can also generate component-specific templates for self-hosting:

hot conf generate api          # API server config
hot conf generate app          # App server config
hot conf generate worker       # Worker config
hot conf generate task-worker  # Task worker config
hot conf generate scheduler    # Scheduler config

A deployment sets HOT_ENV=production, and the app also needs HOT_APP_SESSION_SECRET and the self-host experience. See Self-Hosting for the full self-hosting overview, including the preview AWS and Google Cloud OpenTofu stacks. With HOT_ENV unset, Hot runs in local development mode: the app signs every visitor in on a loopback address, and on a network address it signs nobody in by itself and refuses to start without a session secret.

Overview

The hot.hot file is the central configuration for your Hot project. It defines:

  • Projects - Named project configurations with source paths and dependencies
  • Dependencies - External packages your project uses
  • Settings - Global defaults like the active project, profile, and remote
  • Services - Database, Redis, logging, and other infrastructure settings

Basic Structure

A minimal hot.hot file (created by hot init) looks like:

// Hot Configuration File
::hot::conf ns

::env ::hot::env

hot.set.project "my-app"
hot.set.remote "hot-dev"

// Remote API (hot.dev)
hot.remote.hot-dev.url ::env/get("HOT_API_URL", "https://api.hot.dev")
hot.remote.hot-dev.key ::env/get("HOT_API_KEY", "")

// Project Configuration
hot.project.my-app.src.paths ["./hot/src"]
hot.project.my-app.test.paths ["./hot/test"]
hot.project.my-app.resources.paths ["./hot/resources"]
hot.project.my-app.deps {}

// Open the browser to the app when running `hot dev`
hot.dev.open false

That's all you need for local development. Database, logging, and other services use sensible defaults.

For production or advanced configuration, add settings as needed:

// Database Configuration (defaults to local SQLite)
hot.db.uri ::env/get("HOT_DB_URI", "sqlite:./.hot/db/hot.sqlite.db")

// Logging Configuration
hot.log.level ::env/get("HOT_LOG_LEVEL", "info")
hot.log.target ::env/get("HOT_LOG_TARGET", "stdout")

// Dependencies
hot.project.my-app.deps {
  "hot.dev/anthropic": "0.9.0",
  "hot.dev/openai": "0.9.0"
}

Run hot conf generate all to see all available options.

To run on PostgreSQL, see Self-Hosted PostgreSQL. It uses a second URI, hot.db.migration-uri, for migrations.

Profiles

A profile names the user, organization, and environment that CLI commands use with the local database. Without one, Hot uses the local identity that hot init creates: user local@hot.dev, organization local, and environment development. This profile selects it explicitly:

hot.set.profile "local-dev"

hot.profile.local-dev.user.email "local@hot.dev"
hot.profile.local-dev.org.slug "local"
hot.profile.local-dev.env.name "development"

Pass --profile NAME to select a profile for one command.

hot init, and the first command in a fresh checkout, create only the local identity, and only in an empty database. Any other profile must already exist in the database: an active user, an organization the user belongs to, and an existing environment in it. Hot doesn't create them for you.

Minimum Version Requirement

Use hot.min-version to specify the minimum Hot version required for your project:

hot.min-version "1.0.0"

When set, Hot will check this requirement at startup and display a clear error if the requirement is not met:

Version requirement not met: Hot version 1.0.0 is required, but you are running 0.11.0
This project requires Hot 1.0.0 or later.

This is useful for:

  • Team coordination - Ensure all team members are on a compatible version
  • CI/CD - Fail fast with a clear message before builds
  • Feature requirements - When your code uses features from a specific Hot version

Logging Configuration

SettingDescriptionDefault
hot.log.levelLog level: trace, debug, info, warn, error, offinfo
hot.log.targetOutput target: stdout, file, nonestdout
hot.log.formatOutput format: full, simple, json (one object per line)full for services, simple for CLI commands
hot.log.dirDirectory for log files (when target is file).hot/log
hot.log.rotationFile rotation: hourly, daily, nonedaily
hot.log.retentionNumber of log files to keep (0 = keep all)7

With log.format json on stdout, output from print, println, eprint and eprintln in Hot code is logged too, so every line stays one JSON object. Each call is one record with target hot::user_output and a stream field (stdout or stderr), shown at any log level.

When log.target is set to file, logs are written to the configured directory with automatic rotation and cleanup based on the retention setting.

The Docker client library logs at info at most, even at debug or trace: its debug output includes each container's environment, and with it the secrets passed to Hot Box containers.

Queue Configuration

SettingDescriptionDefault
hot.queue.typeQueue backend: sqlite, memory, redis, or nonesqlite in a project
hot.queue.event-orphan-idle-msMilliseconds an event may sit with a worker that stopped responding before another worker takes it over60000
hot.queue.task-orphan-idle-msThe same for a task and its task worker. With Redis it must be at least the task lease, or the task worker refuses to start120000
hot.queue.infra-retry-backoff-msMilliseconds a worker or task worker waits before it retries work that failed on the database or the queue1000
hot.queue.metrics-enabledRecord queue wait timestrue
hot.queue.wait-target-p99-msThe 99th-percentile queue wait those metrics are measured against, in milliseconds1000

The default sqlite backend is a durable local queue that works across Hot processes without another service. Hot owns its files, schema, tables, and indexes under .hot/db/queue/; it is separate from hot.db.uri and application database migrations. Use memory only when every producer and consumer runs in the same process, or redis for distributed deployments.

SQLite queues are durable across process restarts for standalone Hot services. hot dev intentionally starts a fresh queue session and clears its managed SQLite queues before launching services, preserving the session-scoped behavior of the former in-memory default and preventing interrupted local handlers from replaying. Before clearing queue rows, startup marks associated in-progress Runs and Tasks failed so they are not left in a misleading running state. The reset removes only messages present at the startup snapshot; a sibling producer that enqueues after that boundary is preserved.

hot dev takes exclusive ownership of the project's SQLite queue session. Standalone hot api, hot app, hot worker, hot task-worker, and hot scheduler processes share a compatible lock with one another, but cannot run against that queue while hot dev owns it. This prevents a dev restart from clearing a standalone worker's live lease. hot run and hot eval remain able to publish into a running dev session.

Integration-mode hot test runs all requested services in one process and forces the memory queue, isolating tests from both hot dev and durable project queues.

Running Several Replicas

With redis, several hot api, hot app, hot worker, and hot task-worker processes can share one deployment. Where their state lives:

  • Redis: stream pub/sub (stream:data, run events, dashboard updates, task messages) and MCP HTTP+SSE transport sessions, so any API replica can serve any subscription. hot api and hot app PING Redis at startup, up to ten times one second apart, and refuse to start if it never answers. A subscription that loses its Redis connection reconnects with backoff and resumes after the last entry it delivered. Each stream keeps about its last 1,000 entries, so a subscriber further behind than that, or reconnecting after that many more were published, skips the oldest. A Redis restart without persistence loses them; run events are also recovered from the database, but stream:data is not stored anywhere else.
  • Database: the per-account request rate window, shared by every replica.
  • Each process: in-flight request and SSE connection limits (with N API replicas an account can hold N times each limit, so size them per replica), and 60-second caches of environment ownership, features, and custom-domain lookups. A domain lookup that misses is cached too, so a newly verified domain can take up to a minute to resolve on every replica.
  • Configuration: every hot app replica needs the same HOT_APP_SESSION_SECRET. Sessions and the one-time API key handoff are signed with it, so a request can land on any replica.

Redis Configuration

Redis is needed only when hot.queue.type is redis.

SettingEnvironment variableDescriptionDefault
hot.redis.uriHOT_REDIS_URIRedis connection URI. rediss:// connects over TLS. Also --redis.uri on the service commandsunset
hot.redis.clusterHOT_REDIS_CLUSTERConnect in cluster mode. Set it for a cluster behind one endpoint. A URI that lists several endpoints, separated by commas, is taken as a cluster without itfalse
hot.redis.ca-certHOT_REDIS_CA_CERTPEM certificates to trust for a rediss:// server instead of the system's roots. Standalone servers onlyunset
hot.redis.authHOT_REDIS_AUTHpassword uses the credentials in the URI. gcp-iam signs in as the VM's service account, for Memorystore for Valkey. It needs a rediss:// URI and a standalone serverpassword

hot.redis.ca-cert holds the certificates themselves, not a path. To read them from a file, set HOT_REDIS_CA_CERT_FILE (see Secrets from Files). hot conf generate all sets hot.redis.uri to redis://localhost:6379 unless HOT_REDIS_URI is set, while the component templates (api, app, worker, task-worker, scheduler) default hot.redis.uri to "" unless HOT_REDIS_URI is set.

Service Tuning

hot conf generate all prints the full template: the service keys, each with its default and the environment variable that sets it. The tables below describe the keys an operator is most likely to tune. An environment variable is named from its key: HOT_WORKER_RUN_TIMEOUT sets hot.worker.run-timeout.

Worker

SettingDescriptionDefault
hot.worker.threadsWorker threads, and the most runs at once2
hot.worker.run-timeoutSeconds a run may take when its function sets no timeout300
hot.worker.max-run-timeoutCap, in seconds, on a function's own timeout. At most 864003600
hot.worker.cancel-on-timeoutAsk a run to stop when it times outtrue
hot.worker.shutdown-timeoutSeconds to wait for runs at shutdown. hot dev uses 1 unless you set it60
hot.worker.vm-concurrencyRuns executing at once. It is capped by worker.threads and, under a container memory limit, by the memory figures below. auto also caps it at the CPU countauto
hot.worker.vm-memory-mbMemory counted for each run in that calculation256
hot.worker.reserved-memory-mbMemory held back from that calculation512
hot.worker.shared-processCount half the CPUs for auto, for a worker that shares them with other servicesfalse
hot.worker.max-blocking-executionsCap on executions that hold a thread. -1 is twice the run concurrency-1
hot.worker.local-write-concurrencyWrite headroom added to the SQLite connection pool1
hot.worker.read-batch-sizeEvents read from the queue in one round trip8
hot.worker.tenant-service-cache-max-entriesMost entries in the worker's cache of stores and context values. 0 turns it off1024
hot.worker.event-orderingOnly current is implementedcurrent
hot.worker.handler-concurrencyOnly serial is implementedserial

Task Worker

SettingDescriptionDefault
hot.task.code-max-concurrentMost code tasks at once. The CPU count and the memory budget can lower it500
hot.task.code-vm-memory-mbMemory counted for each code task256
hot.task.code-memory-percentShare of the task worker's usable memory for code tasks. Box tasks get the rest50
hot.task.container-max-concurrentMost box tasks at once. The memory and disk budgets can lower it. auto uses hot.task.max-concurrentauto
hot.task.max-concurrentBox tasks at once when container-max-concurrent is auto4
hot.task.worker-memory-mbMemory the task worker may budget. A lower container memory limit wins8192
hot.task.worker-disk-mbDisk the task worker may budget for box tasks51200
hot.task.recovery-reserved-slotsSlots held back to adopt containers still running after a restart1
hot.task.container-reserved-memory-mbMemory held back for each of those slots512
hot.task.container-reserved-disk-mbDisk held back for each of those slots10240
hot.task.shutdown-drain-secondsSeconds running tasks get to finish at shutdown before they are cancelled. hot dev uses 5 unless you set it30
hot.task.shutdown-container-timeout-secondsSeconds a box task waits for a free container slot30
hot.task.reconcile-queued-after-secondsA task still queued in the database after this long is put on the queue again60
hot.task.reconcile-interval-secondsHow often that check runs30
hot.task.capacity-fairnessOnly none is implementednone
hot.box.backendWhat runs box tasks: docker or kata. kata needs Linux and a hot built with the Kata backenddocker
hot.box.containerd.socketThe containerd socket of the Kata backend. Docker ignores it/run/kata-containerd/containerd.sock
hot.box.vmmThe virtual machine monitor of the Kata backend: qemu or firecrackerqemu

Scheduler and Retries

SettingDescriptionDefault
hot.scheduler.backfillOn restart, fire the scheduled events missed while the scheduler was downfalse
hot.scheduler.sync-interval-secondsHow often to sync schedules from the database30
hot.scheduler.retry-interval-secondsHow often to poll for due retries1
hot.scheduler.at-interval-secondsHow often to poll for due one-shot schedules1
hot.scheduler.singletonAllow one scheduler at a time on PostgreSQL (see hot scheduler)true
hot.retry.max-attemptsMost attempts a function's retry may ask for. A higher value is lowered to this10
hot.retry.max-delay-msLongest retry delay a function may ask for3600000
hot.retry.default-delay-msRetry delay when a function gives none1000

API and App

SettingDescriptionDefault
hot.api.hostAddress the API server binds to. Also --api.hostlocalhost
hot.api.portPort the API server listens on. Also --api.port4681
hot.app.hostAddress the app server binds to. Also --app.host. On any address but a local one, the app turns off its local development sign-inlocalhost
hot.app.portPort the app server listens on. Also --app.port4680

Running Code

Every process that runs Hot code reads these: the CLI, the worker and the task worker.

SettingDescriptionDefault
hot.engine.threadsThreads the engine runs Hot code on. Also --engine.threads4
hot.jit.modeenabled compiles often-called functions to native code. disabled, off, false or 0 turns that off. Also --jit.mode and HOT_JITenabled on supported platforms
hot.jit.thresholdCalls before a function is compiled. Also --jit.threshold100
hot.jit.hof.fusionCompile a pipeline of map, filter and the like as one loop. Also --jit.hof.fusiontrue
hot.emitter.typeWhere calls and runs are recorded: db, console or none. Also --emitter.typedb in a project, none outside one
hot.value.formatHow hot run, hot eval and hot repl print values: hot or json. Also --value.formathot
hot.blob.modeservice moves large strings and bytes out of recorded calls, runs and events into blob storage, and records a reference. disabled records them wholeservice in a project, disabled outside one
hot.blob.spill.threshold-bytesA value larger than this is moved to blob storage16384 in local development, 65536 when deployed
hot.blob.preview.max-bytesBytes of a moved value kept beside its reference as a preview256

Command Defaults

These set what a CLI command does when you don't pass the flag.

SettingDescriptionDefault
hot.check.formatOutput of hot check and hot watch: pretty, simple, json or json-min. Also --check.formatpretty
hot.check.rawLeave out the "No issues found" line. Also --check.rawfalse
hot.check.deny-warningsExit non-zero on warnings too. Also --check.deny-warningsfalse
hot.check.with-testsCheck test files as well as sources, in hot check and hot watch. Also --with-teststrue
hot.watch.with-testsMake hot watch watch the test directories too, so a change to a test file starts a check. Also --with-testsfalse
hot.watch.debounceMilliseconds hot watch waits after a change. Also --watch.debounce200
hot.deploy.autoDeploy each live build that hot dev creates. Also --deploy.autotrue
hot.dev.ai-checkMake hot dev say at startup when this project's AGENTS.md or Hot skills, or your global Hot skills, are from another Hot release or in the old .skills/ folder. Also HOT_DEV_AI_CHECKtrue
hot.deploy.ctx.strictMake hot deploy --local stop when a required context variable is unset. Also --strictfalse
hot.build.file.max-bytesLargest build the API accepts as an upload, in bytes. hot build and hot deploy check the bundle against it first104857600

Database, App and Files

SettingDescriptionDefault
hot.db.statement-timeout-msPostgreSQL statement timeout30000
hot.db.lock-timeout-msPostgreSQL lock timeout5000
hot.db.max-connectionsMaximum PostgreSQL connections per process. auto derives from worker/task concurrency plus hot.db.reserved-connections (floor 10, cap 50); an explicit integer sets the pool size directly. Also HOT_DB_MAX_CONNECTIONSauto
hot.db.reserved-connectionsExtra connections added to the derived PostgreSQL pool when hot.db.max-connections is auto. Also HOT_DB_RESERVED_CONNECTIONS4
hot.db.min-connectionsWarm PostgreSQL connections kept open per process, clamped to the pool maximum. 0 disables. Also HOT_DB_MIN_CONNECTIONS2
hot.db.local.retention.call.daysIn local development, the worker deletes call data older than this many days. -1 keeps it7
hot.db.sqlite.cache-size-kbSQLite page cache, in KiB65536
hot.db.sqlite.mmap-size-bytesBytes of the database file to memory-map for reads. 0 turns it off268435456
hot.db.sqlite.wal-autocheckpoint-pagesCheckpoint after this many WAL pages4000
hot.db.sqlite.journal-size-limit-kbSoft cap on the WAL file after a checkpoint, in KiB65536
hot.db.sqlite.synchronousnormal, full or offnormal
hot.db.sqlite.temp-storememory, file or defaultmemory
hot.db.sqlite.auto-vacuumincremental or none. An existing database may need one full VACUUM for a change to applyincremental
hot.db.sqlite.maintenance.wal-checkpointTruncate the WAL in daily maintenancetrue
hot.db.sqlite.maintenance.incremental-vacuum-pagesPages to reclaim in each maintenance run. 0 skips it1000
hot.app.session.timeoutHours before an app sign-in expires. The templates that hot conf generate prints write 24720
hot.file.max-bytesCeiling on the size of a stored file, in bytes. The lower of this and the plan's limit applies. -1 leaves it to the plan-1

hot.db.sqlite.* and hot.app.session.timeout take their environment variables only through the ::env/get lines of the generated template, so keep those lines in hot.hot to set them from the environment.

Trusted Proxy Client IPs

Client IP forwarding stays in compatibility mode by default: the API uses the first X-Forwarded-For value, then X-Real-IP, as before. When either header is present in compatibility mode, the API logs a warning because clients can spoof these values when the service is directly reachable.

Self-hosted deployments can opt into validated proxy identity:

hot.network.client-ip.trusted-proxy true
hot.network.client-ip.header "x-forwarded-for"
hot.network.client-ip.trusted-proxies ["10.0.0.0/8", "2001:db8:1234::/48"]

List every proxy CIDR that may connect directly to the API or appear at the trusted end of the forwarding chain. An entry may also be a bare IP address, read as a single host. When enabled, startup fails if the list is empty or invalid. Forwarding headers from untrusted peers, or malformed header values, are ignored in favor of the direct peer address.

trusted-proxies also accepts a comma-delimited string, which is useful for an environment-backed deployment setting. The environment variables are HOT_NETWORK_CLIENT_IP_TRUSTED_PROXY, HOT_NETWORK_CLIENT_IP_HEADER, and HOT_NETWORK_CLIENT_IP_TRUSTED_PROXIES. A hot.hot generated by an earlier release reads HOT_CLIENT_IP_* instead; it keeps working as written.

API Hostnames

The API takes a request's host for a custom domain unless it knows the name as its own, and answers a name it cannot find with 404 on every route, /status included. It knows localhost, IP addresses, and the host of HOT_API_URL. If clients reach the API on other names, list them in HOT_API_KNOWN_HOSTS, separated by commas:

HOT_API_URL=https://api.example.com
HOT_API_KNOWN_HOSTS=api.internal.example.com

Hot's self-hosted stacks set HOT_API_KNOWN_HOSTS to the installation's API hostname, and its settings refuses it.

Secrets from Files

Settings supplied through HOT_* environment variables can instead name a file that holds the value: set <NAME>_FILE, for example HOT_DB_URI_FILE=/run/secrets/db-uri. This covers the configuration overlay, values hot.hot reads with ::hot::env/get("HOT_...") (such as the API key and Stripe settings in the generated templates), HOT_ENCRYPTION_KEY, HOT_APP_SESSION_SECRET, the GitHub and Google OAuth client settings, and HOT_OAUTH_REDIRECT_BASE_URL. Hot drops one trailing newline and does not copy the value into the process environment. HOT_ENCRYPTION_KEY and HOT_APP_SESSION_SECRET are kept once found: rotating either takes a restart.

Setting both <NAME> and <NAME>_FILE, or naming an empty or unreadable file, stops the command with an error that names the variable and path but not the value. For a HOT_*_FILE name that is not a Hot setting, Hot prints a warning and ignores it. hot conf and --show-conf print such values as *** and list their source files under _secret-files. HOT_MOVE_STORAGE_SKIP_FILE is the one exception: only hot db move-storage reads it, as a list of ids that adds to HOT_MOVE_STORAGE_SKIP.

Hyphenated settings map from their environment names too: HOT_WORKER_RUN_TIMEOUT sets worker.run-timeout, and a variable whose dotted spelling isn't a setting sets the hyphenated key hot.hot already has.

Configuration Format

Hot configuration uses a dotted notation where each setting is a separate assignment:

// Setting a simple value
hot.log.level "info"

// Setting from environment with default
hot.api.port Int(::env/get("HOT_API_PORT", "4681"))

// Setting a list
hot.project.my-app.src.paths ["./hot/src", "./lib"]

// Setting a map (for dependencies)
hot.project.my-app.deps {
  "hot.dev/anthropic": "0.9.0"
}

Sections

Worker resource budgets

Hot values can share collection storage. Serializing a shared value copies each occurrence, so a small value in memory can expand into an enormous payload. Expansion checks apply when serializing, formatting, hashing collection keys, or sending payloads outside the VM. They do not limit length, get, or ordinary collection updates. Cancellation is sampled every 1,024 interpreter steps or JIT tail iterations; native I/O also observes the run deadline and cancellation.

In-memory operations (formatting, hashing, map keys, JSON and XML output, run results) accept values nested up to 4,096 levels. Values persisted in records, events, and task, schedule, alert, checkpoint, stream, and store payloads are limited to 120 levels. A run record holds an Omitted marker for a deeper result. YAML frontmatter accepts anchors and aliases; aliases add at most 1 Mi nodes.

Operators can set these environment variables before starting workers. Positive integer overrides raise or lower the budget; invalid or zero values use the default. Raise memory budgets together with worker memory and concurrency sizing.

Environment variableDefaultResource measured
HOT_MAX_EXPANDED_VALUE_NODESTwice HOT_MAX_COLLECTION_SIZE, plus oneExpanded value occurrences at an output boundary
HOT_MAX_EXPANDED_VALUE_BYTESHOT_MAX_ALLOC_BYTES (256 MiB)Str and Bytes payload, plus 8 bytes for every other value occurrence
HOT_MAX_STRING_BYTES256 MiBProduced text or checked serialized output
HOT_MAX_RECURSION_DEPTH4,096Function calls open at once in one run; a tail call doesn't count
HOT_MAX_PARALLEL_DEPTH64parallel flows open inside one another; each branch runs on a thread of its own
HOT_SQLITE_MAX_QUERY_ROWSHOT_MAX_COLLECTION_SIZE (16 Mi)Rows materialized by one query
HOT_SQLITE_MAX_QUERY_CELLSHOT_MAX_COLLECTION_SIZE (16 Mi)Cells materialized by one query
HOT_SQLITE_MAX_QUERY_BYTESHOT_MAX_ALLOC_BYTES (256 MiB)Query result storage and individual SQLite values
HOT_XML_MAX_NODES, HOT_YAML_MAX_NODESExpanded-value node budgetParsed events, nodes, and attributes; YAML alias expansion counts too
HOT_XML_MAX_DEPTH, HOT_YAML_MAX_DEPTH256Parser nesting; raising it needs stack-budget validation, especially for YAML
HOT_NATIVE_IO_TIMEOUT_SECONDSUnset (no limit)Native I/O (sockets, HTTP, WebSocket, SQLite) outside a run deadline; runs use their remaining deadline, and cancellation always applies
HOT_BOX_MAX_IMAGE_BYTES4 GiBCompressed manifest and layer sizes per image
HOT_BOX_MAX_CACHED_IMAGES128Cached image count before eviction; active images are retained

Memory allocator

hot allocates with mimalloc. It is faster than the system allocator for Hot's many small values, and it holds more memory: about 40 MB more in each hot process, and a higher peak under load. To run a process on the system allocator, set HOT_ALLOCATOR=system in its environment before it starts:

HOT_ALLOCATOR=system hot worker

Use it where a service has to fit a tight memory limit, or to run glibc's heap checks (MALLOC_CHECK_), which only see what glibc allocates. A worker limits glibc to four malloc arenas (MALLOC_ARENA_MAX overrides that); the limit has no effect under mimalloc. A hot built with --no-default-features has only the system allocator.

Persisted values retain the existing record nesting limit so every fleet reader can safely consume them. Trace records also retain their inline threshold and blob offload policy. Other outgoing and persisted payloads use the configurable expansion budgets above; the trace inline threshold is not a blanket payload ceiling. An operator override does not change the record nesting format. Parser input continues to use HOT_MAX_PARSE_INPUT_BYTES.

Run notification streams expire after the configured worker.max-run-timeout plus one hour, with a two-hour default. Task inboxes retain their eight-day idle window to cover seven-day tasks. Every publish renews expiry atomically. For old persistent keys, scripts/expire-notification-streams.sh previews a TTL backfill; pass --apply to perform it. Set HOT_RUN_STREAM_IDLE_TTL_SECONDS for that script when workers allow runs longer than one hour. This affects notifications; durable run and task results remain in the database.