Aller au contenu
Skillpedia
API et serveurs (backend)19k · #10486

configuration

Ce qu’il fait

Ce skill stocke des valeurs de configuration nommées avec un schéma qui vérifie chacune d'elles, pour que les workers de votre système lisent les mêmes réglages en un seul endroit. Il s'adresse aux développeurs qui créent des systèmes basés sur iii et ont besoin de réglages partagés et validés.

Quand l’utiliser

  • ✓Quand plusieurs workers doivent s'accorder sur les mêmes réglages sans chemins de fichiers codés en dur.
  • ✓Quand vous voulez qu'une valeur de configuration soit vérifiée par un schéma avant d'être utilisée.
  • ✓Quand vous voulez qu'un worker réagisse à un changement de réglage sans interroger en boucle.

Lien du skill

https://github.com/iii-hq/iii/blob/main/engine/src/workers/configuration/skills/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/iii-hq/iii/blob/main/engine/src/workers/configuration/skills/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Mets en place une entrée de configuration partagée pour mon service de facturation, avec un schéma qui vérifie ses valeurs.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Chaque worker enregistre son schéma de configuration une fois au démarrage, puis publie ses valeurs. Les autres workers lisent ces valeurs, et un déclencheur lié se lance lorsqu'une valeur change. Le stockage par défaut conserve un fichier YAML par entrée.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

configuration

The configuration worker is a server-side registry of named entries. Every entry has an id (e.g. iii-stream, billing-service), a human-readable name and description, a JSON Schema describing the value shape, and a JSON value validated against that schema. Workers call configuration::register once at startup to declare their schema and configuration::set to publish values; consumers call configuration::get / configuration::list to read and bind a configuration trigger to react to changes without polling.

The default fs adapter persists one YAML file per id under ./config and watches the directory for external edits, so manual edits surface as configuration:updated events. The bridge adapter delegates to a remote engine. The worker is engine-owned and may be configured at engine.workers.configuration.

A per-id TTL (off by default) cleans up entries whose last subscriber trigger has unregistered, scoped to the lifecycle of ephemeral workers that come and go without an explicit teardown step.

When to Use

  • A worker needs a typed, observable configuration surface other workers can read and validate against.
  • Two workers need to agree on the same configuration values without one polling the other or hardcoding a path on disk.
  • An operator should be able to edit a single YAML file (or the remote control plane) and have the change propagate to every subscriber without a worker restart.
  • A worker comes and goes (sandboxes, ephemeral consumers) and its configuration should be cleaned up automatically when no one is left subscribing.

Boundaries

  • Not a general-purpose key/value store — every entry must have a registered JSON Schema. Use the standalone state worker for free-form values.
  • No partial-update surface; set always replaces the whole value. Build the new value client-side and ship it in one call.
  • The bridge adapter cannot delete entries on the remote engine; cleanup over the bridge happens via TTL or directly on the source engine.
  • Over the bridge adapter, configuration::ensure is decided by the remote engine (the original candidate is forwarded there), so it requires a remote engine that exposes configuration::ensure; against an older remote it fails closed with ADAPTER_ERROR rather than falling back to an unsafe register.
  • Schemas are not version-checked across re-registrations — re-registering with an incompatible schema simply replaces it. Coordinate schema migrations out-of-band.

Migration and runtime overrides

Compose defaults to <namespace>-<container-key> without a hash (for example, default-harness). Invalid or over-64-character generated names require explicit config_name. Compose migrates only the exact previous namespace/key hash before starting a stopped worker. After hashed migration, only the default namespace adopts the exact bare container key, unless another container explicitly owns it. The bare source wins over an existing destination; configuration::migrate is the single operation, delegated through bridges to the authority. It returns { action, entry } with migrated, preserved (existing destination with absent source, or matching IDs with an existing entry), or missing (both source and destination absent). Before migration, Compose and every bridge hop query the read-only configuration::migration-capabilities and require source_priority_archive_revision: 1. Unknown or unavailable capabilities fail closed before invoking migration; upgrade the authority. It replaces the destination with the raw source entry, then archives the original source as <source>.yaml.bak. The previous destination is not backed up. .yaml.bak, .bak.yaml, and .bkup.yaml files are ignored during loading, watching and legacy directory migration. An existing identical backup permits cleanup recovery; a conflicting backup is never overwritten. Missing source is a no-write no-op. Unsupported adapters fail closed. Stop source consumers before migrating; do not share an fs directory between engine processes.

config_override is delivered through the existing service API. Compose reads the current configuration with configuration::get (raw: true), merges defaults and overrides, then calls configuration::set with flush: false before starting the worker. No snapshot file is delivered. III_CONFIG_NAME identifies the entry. Memory-only updates never write persistent config/<id>.yaml, and no delayed flush is sched

Questions fréquentes

Où sont stockées les valeurs ?

Par défaut, chaque entrée est enregistrée dans un fichier YAML dans un dossier de configuration, que vous pouvez aussi modifier directement.

Un changement peut-il être pris en compte sans redémarrage ?

Oui. Un déclencheur se lance lorsqu'une entrée est mise à jour, pour que les workers puissent réagir sans interrogation.

Nettoie-t-il les anciennes entrées ?

Seulement si vous activez le réglage facultatif de durée de vie, qui supprime les entrées qui n'ont plus d'abonné.

Détails

Description originale de l’auteur

Schema-validated, reactive registry for named configuration entries — the runtime configuration surface used by engine and Compose workers.

repo: iii-hq/iii

Popularité

Étoiles GitHub
19k
Position au classement
#10486
Licence
—
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires