configuration::ensure
Atomically ensure a configuration id exists with a schema, name, description, and metadata, seeding initial_value ONLY when no non-null value is stored yet. An existing non-null value (including false, 0, or empty string) is preserved verbatim and the candidate seed is ignored (and not validated). Unlike configuration::register, ensure never overwrites a stored value, so it is the race-free way for one or many workers to seed a default. Fires configuration:registered on first creation or configuration:updated when an existing entry is refreshed.
- descriptionstringrequired
Description shown in `configuration::list`.
- idstringrequired
Configuration id. Must match `[a-z0-9_-]{1,64}` so it is safe as a filename in the `fs` adapter.
- initial_valueunknown
Optional seed value. Applied atomically ONLY when no non-null value is already stored for this id (the id is absent or its stored value is `null`). When a non-null value already exists it is preserved verbatim and this candidate is ignored — never validated. When the seed IS applied it is validated against `schema` exactly like `configuration::register` validates `initial_value`.
- metadataunknown
Optional opaque metadata stored alongside the entry.
- namestringrequired
Human-readable name shown in `configuration::list`.
- schemaunknownrequired
JSON Schema describing the value shape. `set` validates against this.
- actionall ofrequired
What ensure did: seeded the candidate, preserved an existing value, or registered the entry with a null value.
all of (1)Variant 1one of (3)Variant 1valuestringenum seededVariant 2valuestringenum preservedVariant 3valuestringenum registered - entryall ofrequired
The stored entry after ensure. Templates inside `value` are kept verbatim; expansion happens on read.
all of (1)Variant 1- descriptionstringrequired
One-line description of what this configuration controls.
- idstringrequired
Stable identifier (e.g. `iii-stream`, `iii-observability`).
- metadataunknown
Optional caller-supplied metadata (owner team, change ticket, etc.).
- namestringrequired
Human-readable display name.
- schemaunknown
JSON Schema describing the shape of `value`. Not persisted to disk by the fs adapter; rebuilt in-memory when the owning worker re-registers.
- valueunknown
Stored configuration body. May contain `${VAR:default}` placeholders.