configuration
यह क्या करती है
यह स्किल नामित कॉन्फ़िगरेशन मान एक schema के साथ सहेजती है जो हर मान की जाँच करता है, ताकि आपके सिस्टम के workers एक ही जगह से एक जैसी सेटिंग्स पढ़ें। यह iii आधारित सिस्टम बनाने वाले डेवलपरों के लिए है जिन्हें साझा और सत्यापित सेटिंग्स चाहिए।
कब इस्तेमाल करें
- ✓जब कई workers को बिना hardcoded फ़ाइल पथ के एक जैसी सेटिंग्स पर सहमत होना हो।
- ✓जब आप चाहते हों कि कोई कॉन्फ़िगरेशन मान इस्तेमाल से पहले schema से जाँचा जाए।
- ✓जब आप चाहते हों कि कोई worker बिना polling के सेटिंग बदलने पर प्रतिक्रिया दे।
Skill का लिंक
https://github.com/iii-hq/iii/blob/main/engine/src/workers/configuration/skills/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी billing सेवा के लिए एक साझा कॉन्फ़िगरेशन प्रविष्टि सेट कीजिए, जिसका schema उसके मानों की जाँच करे।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
हर worker शुरू होते समय अपना कॉन्फ़िगरेशन schema एक बार रजिस्टर करता है, फिर अपने मान प्रकाशित करता है। दूसरे workers वे मान पढ़ते हैं, और मान बदलने पर एक बाउंड trigger चलता है। डिफ़ॉल्ट स्टोरेज हर प्रविष्टि के लिए एक YAML फ़ाइल रखता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
stateworker for free-form values. - No partial-update surface;
setalways replaces the whole value. Build the new value client-side and ship it in one call. - The
bridgeadapter cannot delete entries on the remote engine; cleanup over the bridge happens via TTL or directly on the source engine. - Over the
bridgeadapter,configuration::ensureis decided by the remote engine (the original candidate is forwarded there), so it requires a remote engine that exposesconfiguration::ensure; against an older remote it fails closed withADAPTER_ERRORrather than falling back to an unsaferegister. - 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
अक्सर पूछे जाने वाले सवाल
मान कहाँ सहेजे जाते हैं?
डिफ़ॉल्ट रूप से हर प्रविष्टि एक config फ़ोल्डर में एक YAML फ़ाइल के रूप में सहेजी जाती है, जिसे आप सीधे भी संपादित कर सकते हैं।
क्या बिना रीस्टार्ट किए बदलाव पकड़ा जा सकता है?
हाँ। प्रविष्टि अपडेट होने पर trigger चलता है, ताकि workers polling किए बिना प्रतिक्रिया दे सकें।
क्या यह पुरानी प्रविष्टियाँ साफ़ करती है?
केवल तभी जब आप वैकल्पिक time-to-live सेटिंग चालू करें, जो उन प्रविष्टियों को हटाती है जिनका अब कोई subscriber नहीं।
जानकारी
लेखक का मूल विवरण
Schema-validated, reactive registry for named configuration entries — the runtime configuration surface used by engine and Compose workers.
repo: iii-hq/iii
लोकप्रियता
- GitHub स्टार
- 19k
- रैंकिंग में स्थान
- #10486
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
iii-sandbox
19kआपके एजेंट को अविश्वसनीय या AI से बने कोड को एक अस्थायी, अलग-थलग virtual machine के भीतर सुरक्षित रूप से चलाने में मदद करती है, और काम खत्म होने पर उसे हटा देती है।
iii
19kआपके एजेंट को iii workers कैसे काम करते हैं यह सिखाती है, ताकि वह पहले मौजूदा चीज़ें जाँचकर, फिर worker बनाकर कोई क्षमता जोड़ सके।
iii-observability
19kआपके एजेंट को iii engine में tracing, संरचित logs, metrics और alerts जोड़ने में मदद करती है, OpenTelemetry इस्तेमाल करके ताकि आप देख सकें कि क्या हो रहा है।
iii-stream
19kलाइव डेटा फ़ीड के लिए iii-stream worker समझाती है। यह deprecated है और आने वाले release में हटा दिया जाएगा, इसलिए इससे हटने की योजना बनाएँ।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।