Documentation • Schemas • Examples • SDKs • Governance
"MPLP is to Multi-Agent Systems what TCP/IP was to the Internet."
The first open protocol for governing the full lifecycle of agentic systems—from planning and execution to observability and learning.
We are witnessing a paradigm shift in AI development. The era of Prompt Engineering—fragile, unstructured conversations with LLMs—is ending.
The era of Protocol Engineering has begun.
As organizations move from simple chatbots to complex Multi-Agent Systems (MAS), they face critical structural failures:
- State Drift – Agents lose context over long-running tasks.
- Hallucination Accumulation – Errors compound across multi-step workflows.
- Ad-Hoc Orchestration – Every team reinvents the wheel for agent coordination.
- Audit Black Holes – No standard way to trace who did what and why.
Today’s ecosystem is full of frameworks, but lacks a shared protocol:
- Every tool defines its own Agents, Tools, Memory, Workflows.
- There is no vendor-neutral way to describe Context → Plan → Confirm → Trace → Collab.
- Migrating between runtimes often means rewriting everything.
MPLP provides this missing layer.
It defines a vendor-neutral, schema-driven standard for how agents Plan, Execute, Collaborate, and Learn—with governance and observability built in.
MPLP (Multi-Agent Lifecycle Protocol) is a schema-first, vendor-neutral protocol that makes the full lifecycle of AI agents explicit, governed, and interoperable.
It is not:
- Not a specific vendor’s agent framework
- Not an IDE / SaaS / Runtime product
- Not bound to any single cloud or model provider
It is:
- A 4-layer protocol stack (L1–L4)
- A set of 10 core modules (Context, Plan, Confirm, Trace, Role, Dialog, Collab, Extension, Core, Network)
- A pair of Execution Profiles (SA & MAP) that runtimes can claim compliance with
- A Golden Test Suite and Schema + Invariants that make behavior verifiable
You can build your own framework / runtime / IDE / SaaS on top of MPLP, or make your existing system “MPLP-compliant” to unlock portability and governance.
MPLP replaces unstructured prompts with structured, verifiable protocol objects.
| Dimension | Prompt Engineering (Old Way) | Protocol Engineering (MPLP) |
|---|---|---|
| Interaction | Unstructured Text Prompts | Structured Schemas (Context, Plan, Trace) |
| State | Hidden in LLM Context Window | Explicit Project Semantic Graph (PSG) |
| Collab | Fragile, Ad-Hoc Handoffs | Standardized SA & MAP Profiles |
| Governance | “Human in the Loop” (informal) | Confirm Module, Delta-Intent Governance Spec |
| Observability | Text Logs / Print Statements | Structured Event Streams (Observability Spec) |
| Learning | Manual Fine-Tuning | Systematic Learning Samples |
MPLP does not compete with frameworks like LangGraph / AutoGen—it underlies them.
MPLP introduces five foundational capabilities to the agentic stack:
-
Structured Lifecycle Management
Agent execution is decomposed into explicit stages:
Context → Plan → Confirm → Trace, with schemas and invariants. -
Project Semantic Graph (PSG) Model
Defines how Context/Plan/Trace/Events can be projected into a single source of truth for project state.
MPLP v1.0.0 specifies the minimal glue & events; concrete runtime implementations live outside this repo. -
Delta-Intent Governance (Spec Level)
MPLP treats change of intent as first-class:- Intent & Delta-Intent events
- Impact analysis & compensation planning can be modeled and traced
-
Human-in-the-Loop Confirmation
The Confirm Module provides a standardized structure for:- Risk labeling
- Approval / rejection
- Checkpoints before destructive actions
-
Drift Detection & Recovery (Protocol Hooks)
MPLP defines events and invariants for:- Semantic drift checks between Plan and Trace
- Graph drift checks between PSG and reality
- Rollback minimal specification
Implementation of Drift / PSG / AEL / VSL is runtime-specific.
MPLP defines how these concepts are expressed and observed—not how your runtime must implement them.
MPLP is not a framework; it is a Lifecycle Protocol that sits under frameworks and runtimes.
| Capability | LangGraph / LangChain | AutoGen | Model Context Protocol (MCP) | MPLP |
|---|---|---|---|---|
| Lifecycle Standard | ❌ | ❌ | ❌ | ✅ Yes |
| Governance Layer | ❌ | ❌ | ✅ Native Spec | |
| Observability Spec | ❌ | ❌ | ✅ Event & Taxonomy | |
| Learning Loop Spec | ❌ | ❌ | ❌ | ✅ Learning Taxonomy |
| Vendor-Neutral | ❌ (Python/JS) | ❌ | ❌ (Single-provider) | ✅ Protocol-First |
| Nature | Runtime Framework | Framework | Context Interface | Lifecycle Protocol |
MPLP organizes the agentic stack into four layers:
graph TD
L4[L4: Integration Layer] -->|IDE, CI/CD, Git, Tools| L3
L3[L3: Runtime Glue Spec] -->|PSG Binding, Drift Hooks, AEL/VSL Interfaces| L2
L2[L2: Modules & Crosscuts] -->|Context, Plan, Confirm, Trace, Collab, ...| L1
L1[L1: Schemas & Invariants] -->|JSON Schemas (The Law)| Data
-
L1: Schemas & Invariants
- 10 normative JSON Schemas for core modules
- Common types, events, integration, learning schemas
- Invariants (YAML) for confirming behavior
-
L2: Modules & Crosscuts
- 10 functional modules
- 9 cross-cutting concerns (Coordination, Observability, Security, State Sync, etc.)
- Documented in
docs/01-architecture/anddocs/02-modules/
-
L3: Runtime Glue Spec
- PSG binding paths
- Drift detection hooks
- Rollback minimal spec
- Design notes for AEL / VSL (conceptual reference, not implementation)
-
L4: Integration Layer
- Event schemas for CI, IDE, Git, File system, Tool execution
- Minimal integration spec for bringing external tools into the MPLP lifecycle
MPLP standardizes the 10 essential components required for any robust agent system:
- Context – Project scope, environment, constraints
- Plan – Structured, auditable execution plan
- Confirm – Governance gates for human approval / risk control
- Trace – Immutable, replayable execution history
- Role – Agent capabilities, permissions, responsibilities
- Collab – Multi-agent coordination (turn-taking, broadcast, fan-out)
- Dialog – Structured conversational exchanges for clarification & negotiation
- Extension – Extension points / vendor-specific adapters
- Core – Shared protocol primitives & meta-structures
- Network – Distributed coordination & broadcast patterns
Module docs:
docs/02-modules/*.mdModule schemas:schemas/v2/mplp-*.schema.json
MPLP defines Execution Profiles so runtimes can declare their capabilities.
-
SA Profile (Single-Agent)
- Baseline lifecycle: Context → Plan → Confirm → Trace
- Intended for single-agent IDE integrations, assistants, and tools
-
MAP Profile (Multi-Agent)
- Multi-agent coordination patterns: turn-taking, broadcast, team roles
- Ensures consistent handling of Collab, Dialog, Network, extended Trace
Profile docs & diagrams:
docs/03-profiles/mplp-sa-profile.md+.yaml+sa-lifecycle.mmddocs/03-profiles/mplp-map-profile.md+.yaml+map-*.mmd
This repository provides the protocol assets, not a runtime:
-
Docs & Specs
docs/00-index/– Overview, docs map, glossarydocs/01-architecture/– L1–L4 architecture & cross-cutting concernsdocs/02-modules/– 10 module specsdocs/03-profiles/– SA & MAP Profilesdocs/04-observability/– Event taxonomy & observability dutiesdocs/05-learning/– Learning taxonomy & collection pointsdocs/06-runtime/– Runtime glue specs (PSG, drift, rollback)docs/07-integration/– Integration event taxonomy & minimal specdocs/08-guides/– Compliance guides & checklistsdocs/09-tests/– Golden test suite overviewdocs/10-sdk/– SDK mapping & language guidesdocs/11-examples/– End-to-end flowsdocs/12-governance/– Versioning, compatibility, MIP processdocs/13-release/– Release notes & migration guide (selected parts)
-
Schemas
schemas/v2/– Core module schemas, events, integration, learningschemas/v2/invariants/– Protocol invariants in YAML
-
Examples & SDKs
examples/– TS/Go/Java/Python examples and flowspackages/– TypeScript & Python SDK packages (see below)
-
Tests
tests/golden/– Golden flows & invariantstests/schema-alignment/– Schema alignment teststests/cross-language/– Cross-language builders & validators
To avoid being a “paper protocol”, MPLP v1.0.0 ships with an executable Golden Flow Test Suite:
-
Registry & docs:
docs/09-tests/golden-test-suite-overview.mddocs/09-tests/golden-flow-registry.md
-
Test assets:
tests/golden/flows/*tests/golden/invariants/*.yamltests/golden/harness/ts/*.ts
Required flows for v1.0.0 compliance:
- Flow-01 — Single-Agent basic plan execution
- Flow-02 — Single-Agent large plan handling
- Flow-03 — Tool execution integration
- Flow-04 — LLM-enriched plan flows
- Flow-05 — Confirm-required, risk-aware execution
Any runtime or SDK claiming MPLP compatibility can use these flows + invariants to validate behavior.
MPLP is runtime- and language-agnostic, but v1.0.0 includes SDK support:
-
Status: Official / Stable
-
Features:
- Full type mapping from schemas
- Runtime validation (Ajv)
- Builders & helpers for constructing MPLP objects
-
Used as the canonical implementation for Golden Flows.
Guide:
docs/10-sdk/ts-sdk-guide.mdPackage:packages/sdk-ts/(published as@mplp/sdk-tsin npm in typical deployments)
- Status: Preview
- Implemented via Pydantic v2 models generated from schemas
- Fully covers core protocol structures
- Used in cross-language Golden Flow validation
- Planned PyPI release in a future v1.1
Guide:
docs/10-sdk/py-sdk-guide.mdPackage:packages/sdk-py/
- Go example:
examples/go-basic-flow/ - Java example:
examples/java-basic-flow/
These are illustrative only, not part of the protocol’s compatibility contract.
Get a feel for MPLP as a protocol, not just another library.
git clone https://github.com/<your-org>/mplp.git
cd mplp
pnpm installpnpm ts-node scripts/validate-schemas.tspnpm test:goldenYou will see:
- Inputs & expected outputs for flows 01–05
- Invariants evaluated across Context/Plan/Confirm/Trace
cd examples/ts-single-agent-basic
pnpm install
pnpm startThis demonstrates:
- Constructing Context + Plan as MPLP objects
- Validating against the protocol schemas
- Sending them to your own runtime / orchestrator
More flows & patterns: docs/11-examples/
-
v1.0 (Current)
- Frozen core protocol (schemas + invariants)
- SA & MAP Profiles
- Golden Flow test suite (01–05)
- TS SDK stable, Python SDK preview
-
v1.1 (Planned)
- PyPI release of Python SDK
- Expanded Golden Flows & invariants
- More integration patterns for IDE / CI
-
v2.x (Future Direction)
- Advanced multi-agent orchestration patterns in MAP
- Expanded governance & learning specs
- Runtime Compliance Test Kit (RCTK)
Concrete timelines are intentionally out-of-scope for the protocol; see
docs/99-meta/roadmap.mdfor more.
MPLP is governed as an open protocol:
-
Versioning & Compatibility
docs/12-governance/versioning-policy.mddocs/12-governance/compatibility-matrix.md
-
MIP Process (MPLP Improvement Proposals)
docs/12-governance/mip-process.md- Any normative protocol change goes through a MIP.
License & Copyright:
-
License: Apache License 2.0 (see
LICENSE.txt) -
Copyright:
© 2025 邦士(北京)网络科技有限公司
Any normative change requires a new protocol version.
You can contribute by:
- Proposing new invariants or profiles
- Suggesting schema improvements
- Adding language SDKs or tools
- Expanding the Golden Flow suite
Please start with:
docs/12-governance/mip-process.md- Open an issue or PR referencing the relevant MIP.
For enterprise adoption, integration partnerships, or protocol collaborations:
- MPLP / Coregentis Team
- Email:
contact@mplp.io