Specification
The Robotelos Conversation Protocol (MCoP) lets clients talk to agents through a server. Clients send commands. The server decides what is accepted, records the result as events in a journal, and streams those events to every client that follows the conversation. The same messages work over HTTP with Server-Sent Events, WebSocket and gRPC.
This specification gives the exact rules. The concept pages explain the same ideas in plain language; where the two differ, this specification prevails.
Conformance language
The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY and OPTIONAL are to be interpreted as described in BCP 14 (RFC 2119, RFC 8174) when, and only when, they appear in capitals.
Overview
MCoP is built on five ideas:
- Commands go in, events come out. A client never writes to the journal. It proposes a command, and the server records the events the command causes.
- The journal is the single source of truth. Every client’s view is the journal reduced to a state. Two clients that have seen the same positions have the same view.
- Commands are idempotent. A command carries an identity and a payload digest. Retrying the same command never applies it twice.
- Agents propose, the server decides. Agent output is a proposal. Authorization, approvals and the customer-visible record belong to the server.
- Clients resume from a cursor. A client that disconnects asks for the events after its last position, and the server either serves them or asks for a new snapshot.
The parts of the protocol
Read the part that matches what you build.
| API | For | Pages |
|---|---|---|
| Client API | Connecting a person, a terminal or an application to a conversation | Base protocol, Transports, Schema, Data model, Commands, Delivery, Approvals |
| Shared rules | Every implementation | Roles and ownership, Security, Versioning, Conformance |
Each page starts with a short note for adapter authors, so the protocol can be explained to someone who does not need every rule.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.