Aller au contenu
Skillpedia
E-mail et messagerie280k · #371

operator-approval-loop

Ce qu’il fait

Ce système garantit qu'un humain relit et approuve les messages importants rédigés par un agent d'IA avant leur envoi à des tiers. Il conserve un historique de tous les envois et de la personne qui les a approuvés.

Quand l’utiliser

  • ✓Quand un agent d'IA rédige des réponses pour des clients ou des partenaires.
  • ✓Quand vous avez besoin d'un relevé précis de la personne qui a approuvé chaque message.
  • ✓Quand vous voulez éviter l'envoi de messages erronés ou en double.

Lien du skill

https://github.com/affaan-m/ECC/blob/main/skills/operator-approval-loop/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/affaan-m/ECC/blob/main/skills/operator-approval-loop/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

“Peux-tu relire et approuver ce message pour le client concernant l'état de sa commande ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Lorsqu'un message est créé, il est enregistré comme brouillon et signalé pour relecture. Un humain le relit, puis l'approuve ou le rejette. S'il est approuvé, le système enregistre qui l'a approuvé et à quelle date, et garantit que le message exact approuvé est bien celui qui est envoyé.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

  1. 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.
  2. Run the baseline gate (below). It may refuse the filing.
  3. Hash the draft text with sha256. The hash prefix goes into the summary so the approval panel shows which text it is approving.
  4. 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 status drafted.
  5. 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_contract lets 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

…

Questions fréquentes

Que se passe-t-il si le brouillon est modifié après approbation ?

S'il est modifié après approbation, il doit être relu et approuvé de nouveau. Ainsi, le message final envoyé est bien celui que l'humain a réellement validé.

Comment le système empêche-t-il l'envoi en double d'un même message ?

Le système conserve un historique de tous les messages envoyés et approuvés. Avant chaque envoi, il vérifie si un message identique a déjà été envoyé avec la même approbation.

Qu'est-ce que le « baseline gate » ?

C'est une vérification initiale qui examine les informations déjà disponibles sur le destinataire (comme les contrats signés) avant d'autoriser la création d'un brouillon. Cela évite que l'agent demande des informations qui devraient déjà être connues.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
280k
Position au classement
#371
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires