compose 0.24.3: a package default config of {} becomes the active value and hides the worker's own default (database starts with no databases)
Since iii 0.24.3-rc.1 (and 0.24.3), a package worker whose Registry default config is {} starts with {} as its active configuration. Its own default, seeded with configuration::ensure, is hidden. database 0.5.20 is one such worker: on 0.24.2-rc.2 it starts with its built-in primary database; on 0.24.3-rc.1 it exits before registering.
This looks like a side effect of #2231 ("deliver runtime overrides through the configuration service").
Reproduction
iii 0.24.3-rc.1, on an isolated port:
mkdir repro && cd repro
printf 'workers:\n- name: iii-worker-manager\n config: {host: 127.0.0.1, port: 49341}\n' > iii.config.yaml
printf 'namespace: repro\ncontainers:\n database:\n worker: package://api.workers.iii.dev/database\n version: 0.5.20\n' > worker-compose.yaml
iii -c iii.config.yaml --no-update-check &
III_COMPOSE_STATE_DIR=$PWD/.state iii compose --engine ws://127.0.0.1:49341 --namespace repro &
iii trigger compose::up --engine ws://127.0.0.1:49341 --namespace repro --json "{\"file\":\"$PWD/worker-compose.yaml\"}"
iii trigger database::query --engine ws://127.0.0.1:49341 --namespace repro --json '{"db":"primary","sql":"SELECT 1","params":[]}'Expected (this is what 0.24.2-rc.2 does): database becomes ready and the query returns {"ok":1}.
Actual on 0.24.3-rc.1: database exits with CHILD_EXITED_BEFORE_REGISTRATION … Error: loading database configuration: config must declare at least one database.
What seems to happen
- The Registry publishes
config: {}asdatabase0.5.20's default: the lock showsresolved.default_config: {}. - Up to 0.24.2, that
{}only went into theIII_CONFIGfile, whichdatabaseignores. The worker then seeded its own default (primary) withconfiguration::ensure, and read it back. - Since 0.24.3, compose writes the merged value,
{}in this case, into configuration-service memory (configuration::setwithflush: false) underIII_CONFIG_NAME.configuration::ensurethen seeds the default only into the stored base and keeps the active value. So the worker reads back{}and has no database. - The stored
config/repro-database.yamldoes containdatabases.primary, written byensure. The active value being{}is inferred from the compose code and the error. It was not read directly withconfiguration::get.
Other package workers that publish config: {} presumably now run with {} active too, instead of the default they seed themselves.
Possible fixes
- Do not inject a package's published default when it is empty and there is no override and no stored value; or
- let
configuration::ensureseed the active value when the active value was injected by compose and is an empty mapping; or - publish the real default config for these packages in the Registry.
Impact and workaround
This broke every harness-e2e campaign group on GitHub that resolves iii: latest to the newest release candidate, starting on 2026-09-25. harness-e2e now declares database's primary database explicitly as a config_override (iii-hq/harness-e2e#224). Its runner also reads its own configuration through configuration::get(III_CONFIG_NAME) when III_CONFIG is absent.
Source: iii-hq/iii