operator-approval-loop
यह क्या करती है
यह सिस्टम सुनिश्चित करता है कि AI एजेंट द्वारा दूसरों को भेजे जाने वाले ज़रूरी मैसेज भेजे जाने से पहले कोई इंसान देखे और मंज़ूरी दे। यह भेजे गए हर मैसेज और उसे मंज़ूरी देने वाले व्यक्ति का रिकॉर्ड रखता है।
कब इस्तेमाल करें
- ✓जब कोई AI एजेंट ग्राहकों या पार्टनर्स को जवाब लिखता हो।
- ✓जब आपको यह सटीक रिकॉर्ड चाहिए हो कि किसने कौन-सा मैसेज मंज़ूर किया।
- ✓जब आप गलत या दोहराए गए मैसेज भेजे जाने से रोकना चाहते हों।
Skill का लिंक
https://github.com/affaan-m/ECC/blob/main/skills/operator-approval-loop/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्लाइंट के लिए उनके ऑर्डर स्टेटस के बारे में यह मैसेज देखो और मंज़ूरी दो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
जब कोई मैसेज बनता है, तो उसे ड्राफ़्ट के रूप में सेव करके रिव्यू के लिए चिह्नित किया जाता है। एक इंसान ड्राफ़्ट देखकर उसे मंज़ूर या अस्वीकार करता है। मंज़ूर होने पर सिस्टम रिकॉर्ड करता है कि किसने और कब मंज़ूरी दी, और यह सुनिश्चित करता है कि वही मंज़ूर किया गया मैसेज भेजा जाए।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Operator Approval Loop
An agent that talks to external counterparties should never send on its own judgment and should keep the operator informed internally. This skill defines the contract: every outbound draft is filed as an obligation, an operator decides on the exact text, and a delivery ledger proves what went out.
When to Use
- An agent drafts replies to customers, suppliers, investors, or partners in a shared channel, email, or chat, and a human must approve before send.
- You need an audit trail that links each sent message to the exact draft text, the operator who approved it, and the decision time.
- You have seen a stale approval release a rewritten draft, or two workers deliver the same approved message twice.
- Drafts keep re-asking counterparties for facts the ledger already holds.
How It Works
Objects
| Object | Meaning |
|---|---|
| Obligation | One thing we owe a counterparty. Status moves drafted, then approved or rejected, then sent. Carries direction, counterparty, channel, and an updated_at epoch. |
| Draft | Sidecar row holding the exact draft text, a sha256 of that text, origin coordinates (platform, channel, thread, user), and priority (P0 to P3). One per obligation, replaced on re-file. |
| Decision | An operator's approve or reject, recorded with the operator id, a nonce, and the draft epoch it was made against. |
| Approval snapshot | Immutable text, hash, epoch and destination recorded by the already-authorized decision writer. Missing snapshots cannot grant dispatch. |
| Claim | Durable reservation with a random token and state; at most one active claim per obligation. |
| Delivery | Ledger row proving one send or notice for one (obligation, decision) pair. |
The reference schema is in references/approval-ledger.sql.
Filing a draft
- Clean inputs. Strip control characters, collapse whitespace in single-line fields, and enforce length caps (draft, summary, context, counterparty). Empty or oversized fields are refused, not truncated silently.
- Run the baseline gate (below). It may refuse the filing.
- Hash the draft text with sha256. The hash prefix goes into the summary so the approval panel shows which text it is approving.
- Upsert. If an open drafted obligation already exists for the same
(counterparty, channel), replace the draft sidecar and advance the
obligation's
updated_at. That advance is the epoch rotation: any decision keyed to the old epoch can no longer release the new text. Otherwise insert a new obligation with statusdrafted. - Route the filing receipt only to a configured, verified internal ops destination. If the origin is that internal destination, acknowledge there. Never-silent means internal reporting, not an automatic external reply. Keep draft hashes, approval status, operator identity and workflow metadata out of counterparty-visible channels. Unknown or unclassified origins stay quiet; a direct message is not automatically internal.
If a verified internal destination is unavailable, retain the filing result in the internal tool result or operator surface. Never fall back to an external or unknown origin. A tool result exposed to outsiders is not an internal surface.
Filing a draft does not authorize an external response. Any policy-permitted clarifying question or neutral response is a separate outbound decision, subject to the existing mention, channel, draft-only, frozen and never constraints in counterparty-channel-discipline. It must not disclose internal approval metadata.
Baseline gate
Before any draft is filed, query the current baseline for the counterparty (a temporal ledger, contract store, or CRM):
- Signed or delivered contract on record: refuse the filing with the evidence and a recommendation. Asking a counterparty about specs after signing is the exact failure this gate exists to stop.
- Operator override:
force_despite_signed_contractlets the filing through and stamps[BASELINE_OVERRIDE_SIGNED_CONTRACT]into the draft context. - Gate service unreachable: the filing proceeds and the context is stamped
[BASELINE_CHECK_UNAVAILABLE]. The panel sees that the guard was off. Failures never silently disable the gate. - When facts are available, attach the freshest few to the context as a
[BASELINE FACTS: ...]digest so the draft lands with current truth.
Deciding
…
अक्सर पूछे जाने वाले सवाल
अगर मंज़ूरी के बाद ड्राफ़्ट बदल जाए तो क्या होगा?
अगर ड्राफ़्ट मंज़ूरी के बाद बदलता है, तो उसे फिर से रिव्यू और मंज़ूर करना होगा। इससे पक्का होता है कि भेजा गया आखिरी मैसेज वही है जिससे इंसान सहमत था।
सिस्टम एक ही मैसेज दो बार भेजे जाने से कैसे रोकता है?
सिस्टम भेजे और मंज़ूर किए गए सभी मैसेज का रिकॉर्ड रखता है। भेजने से पहले वह जाँचता है कि क्या उसी मंज़ूरी के आधार पर कोई एक जैसा मैसेज पहले ही भेजा जा चुका है।
'baseline gate' क्या है?
यह एक शुरुआती जाँच है, जो ड्राफ़्ट बनाने से पहले प्राप्तकर्ता के बारे में मौजूदा जानकारी देखती है (जैसे साइन किए गए कॉन्ट्रैक्ट)। इससे एजेंट वह जानकारी दोबारा नहीं माँगता जो पहले से पता होनी चाहिए।
जानकारी
लेखक का मूल विवरण
Operator approval contract with internal filing notices for agent-drafted outbound messages, hashed drafts, epoch-keyed decisions, durable delivery claims and receipts, and a pre-draft baseline gate. Use when an agent drafts messages to external counterparties and a human operator must approve, reject, or steer each send before it leaves.
repo: affaan-m/ECC
लोकप्रियता
- GitHub स्टार
- 280k
- रैंकिंग में स्थान
- #371
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
accessibility
280kयह आपके एजेंट को ऐसे इंटरफ़ेस बनाने में मदद करता है जिन्हें हर कोई इस्तेमाल कर सके। यह पक्का करता है कि वेबसाइट और ऐप दिव्यांग लोगों के लिए भी अच्छे से काम करें, जैसे नेत्रहीन या जिन्हें चलने-फिरने में दिक्कत होती है।
agent-architecture-audit
280kयह आपके एजेंट को जाँचने देता है कि सब कुछ सही से चल रहा है। यह AI सिस्टम में समस्याएँ ढूँढकर ठीक करता है, ताकि वे उम्मीद के मुताबिक काम करें।
agent-eval
280kयह आपके एजेंट को अलग-अलग AI coding tools की तुलना करने में मदद करता है। यह मापता है कि किसी खास काम के लिए कौन सा टूल ज़्यादा तेज़, सस्ता और भरोसेमंद है।
agent-harness-construction
280kयह आपके एजेंट को काम कैसे करना है, यह बेहतर समझने में मदद करता है। यह उन tools और instructions को बेहतर बनाता है जिनका एजेंट इस्तेमाल करता है, ताकि उसकी सफलता की संभावना बढ़े।
मिलती-जुलती skills
discord-user-post
394kयह आपके एजेंट को, आपकी मंज़ूरी के बाद, चैनल की पुष्टि करके आपके नाम से Discord डेस्कटॉप ऐप के ज़रिए संदेश भेजने देती है।
configure-channel
394kयह आपके एजेंट को Telegram जैसे चैट ऐप को OpenClaw से जोड़ना, बॉट टोकन सुरक्षित रखना और संदेश आने-जाने की जांच करना सिखाती है।
discord
394kयह आपके एजेंट को OpenClaw के ज़रिए Discord संदेश पढ़ने, भेजने, बदलने और उन पर रिएक्शन देने में मदद करती है, बदलाव से पहले सटीक संदेश जांचकर।