Skip to main content
INFORMATIVEACTIVEDocumentation Governance

Protocol Overview

1. Purpose

The Multi-Agent Lifecycle Protocol (MPLP) is the Lifecycle Protocol for AI agent systems. It is a vendor-neutral, schema-driven specification for defining, executing, and auditing multi-agent workflows.

MPLP defines a standardized interoperability layer for governing the complete lifecycle of agentic workflows—from project initialization and planning through execution, observation, and learning. It specifies:

  1. Schema-First Data Contracts All protocol entities are defined using JSON Schema (Draft-07), ensuring precise type definitions and cross-language interoperability.
  2. Explicit State Management The Project Semantic Graph (PSG) serves as the logical model for state consistency.
  3. Structured Observability 12 event families provide deep system introspection.
  4. Normative Governance Invariant rules (encoded in YAML) enforce critical constraints on agent behavior.

2. Protocol Mechanisms

2.1 State Management (PSG)

MPLP defines a Project Semantic Graph (PSG) as the canonical state model, with drift detection semantics to reconcile discrepancies between the logical graph and the actual state of files, repositories, or external systems.

2.2 Coordination Primitives

MPLP defines explicit Execution Profiles (Single-Agent and Multi-Agent) and a Collab Module to manage coordination patterns such as broadcast, round-robin, and orchestrated execution.

2.3 Auditability & Verification

MPLP defines mechanisms for full traceability of actions, decisions, and failures:

  • Trace Module: Immutable audit logs linking plans to execution outcomes.
  • Observability Events: 12 structured event families (e.g., pipeline_stage, graph_update) for real-time system monitoring.
  • Confirm Module: Human-in-the-loop approval workflows for high-risk actions.

2.4 Interoperability Standards

To enable multi-vendor agent ecosystems, MPLP:

  • Uses language-agnostic JSON Schema definitions (not framework-specific APIs).
  • Separates protocol semantics (L1/L2) from runtime implementation (L3).
  • Allows agents from different vendors to collaborate via shared PSG state.

3. Four-Layer Architecture

MPLP is organized into four layers, separating concerns and enabling modular implementations:

LayerNameNormative StatusKey Components
L4IntegrationOptionalInteraction surfaces for IDEs, CI/CD, and external tools
L3ExecutionBehavioral (Non-Normative)Interaction surfaces for runtime state and learning
L2Modules & ProfilesNormative10 Core Modules, SA/MAP Profiles, Cross-cutting concerns
L1Core ProtocolNormativeJSON Schemas, Invariants, Type definitions, Validation rules

Normative vs Non-Normative:

  • Normative (L1/L2): Implementations MUST conform to these definitions to be MPLP-conformant.
  • Behavioral (L3): Runtime implementations MAY vary, but MUST expose conformant L2 interfaces and emit required events.
  • Optional (L4): Integration adapters are optional but, if implemented, MUST use the defined event schemas.

4. Ten Core Modules (L2)

Based on schemas/v2/*.schema.json, MPLP defines 10 modules:

  1. Context: Defines project scope, environment, and root configuration (mplp-context.schema.json).
  2. Plan: Structures executable steps as a DAG, with dependency tracking (mplp-plan.schema.json).
  3. Confirm: Manages human-in-the-loop approval/rejection decisions (mplp-confirm.schema.json).
  4. Trace: Records immutable execution history with OpenTelemetry-compatible spans (mplp-trace.schema.json).
  5. Role: Defines agent capabilities, permissions, and assignments (mplp-role.schema.json).
  6. Dialog: Maintains multi-turn conversation threads for intent clarification (mplp-dialog.schema.json).
  7. Collab: Orchestrates multi-agent sessions with coordination modes (broadcast, round-robin, orchestrated) (mplp-collab.schema.json).
  8. Extension: Adapts external tools and APIs for agent use (mplp-extension.schema.json).
  9. Core: Provides central governance, module registry, and version management (mplp-core.schema.json).
  10. Network: Manages topology and node status for distributed agent systems (mplp-network.schema.json).

5. Twelve Event Families (Observability)

Based on schemas/v2/events/mplp-event-core.schema.json, the protocol defines 12 event families for system observability:

GroupEvent FamilyRequiredDescription
Lifecycleimport_processNoProject initialization and onboarding
Intent & PlanningintentNoUser's raw request or goal
delta_intentNoModification or refinement of existing intent
methodologyNoHigh-level approach selection
reasoning_graphNoChain-of-thought internal reasoning
Executionpipeline_stageYESPlan/Step lifecycle transitions
graph_updateYESPSG structural changes (node/edge add/remove)
runtime_executionNoLow-level execution details (LLM calls, tool invocations)
Safety & Recoveryimpact_analysisNoPredicted side-effects of a change
compensation_planNoRollback/undo strategies
Cost & Integrationcost_budgetNoToken usage and financial metrics
external_integrationNoEvents from L4 tools (IDE, Git, CI)

Conformance Requirement: Runtimes MUST emit pipeline_stage and graph_update events to be MPLP v1.0 conformant.

6. Execution Profiles (SA/MAP)

6.1 Single-Agent Profile (SA)

REQUIRED for v1.0 conformance. Defined by schemas/v2/invariants/sa-invariants.yaml:

Core Invariants (9 rules):

  • sa_requires_context: SA execution requires a valid Context with UUID v4.
  • sa_context_must_be_active: Context status must be active.
  • sa_plan_context_binding: Plan's context_id must match Context.
  • sa_plan_has_steps: Plan must contain at least one step.
  • sa_steps_have_valid_ids: All steps must have UUID v4 identifiers.
  • sa_steps_have_agent_role: All steps must specify an agent_role.
  • sa_trace_not_empty: SA must emit at least one trace event.
  • sa_trace_context_binding / sa_trace_plan_binding: Trace IDs must match Context and Plan.

Minimal Lifecycle:

  1. Load/Create Context (status: active).
  2. Generate Plan (with valid DAG structure).
  3. Execute steps sequentially.
  4. Emit Trace events.
  5. Optionally request Confirm approvals.

6.2 Multi-Agent Profile (MAP)

RECOMMENDED for v1.0. Extends SA with:

  • Collab Module: Session management with coordination modes.
  • Dialog Module: Inter-agent communication.
  • Network Module: Topology mapping.

Coordination Patterns (from mplp-collab.schema.json):

  • broadcast: One-to-many task distribution.
  • round_robin: Sequential turn-taking.
  • orchestrated: Centralized coordination.
  • swarm: Self-organizing agents.
  • pair: 1:1 collaboration.

MAP Invariants (from schemas/v2/invariants/map-invariants.yaml):

  • Session must have at least 2 participants.
  • All participants must have valid role_id bindings.
  • Turn dispatch must match turn completion events.

7. Integration Layer (L4 - Optional)

Based on schemas/v2/integration/, four event types enable external system integration:

  1. File Update Events (mplp-file-update-event.schema.json): IDE file changes.
  2. Git Events (mplp-git-event.schema.json): Commit, push, merge, tag operations.
  3. CI Events (mplp-ci-event.schema.json): Pipeline execution status.
  4. Tool Events (mplp-tool-event.schema.json): Formatter, linter, test runner invocations.

8. Learning & Improvement (Phase 4)

Based on schemas/v2/learning/, MPLP defines structured Learning Samples to capture agent experiences for model fine-tuning:

  • Core Sample (mplp-learning-sample-core.schema.json): Base structure with sample_id, project_id, intent_before, plan, success_flag, user_feedback.
  • Intent Resolution (mplp-learning-sample-intent.schema.json): Intent-to-plan mappings.
  • Delta Impact (mplp-learning-sample-delta.schema.json): Change impact analysis outcomes.

9. SDK Implementations

[!NOTE] The following SDKs are reference implementations maintained by the community. Availability does not imply endorsement or completeness.

9.1 TypeScript SDK (@mplp/sdk-ts)

  • Version: 1.0.3 (published on npm)
  • Location: packages/sdk-ts/
  • Key Exports:
    • core/validators: JSON Schema validation (using AJV).
    • runtime-minimal: Minimal reference runtime.
    • coordination: SA/MAP coordination logic.

9.2 Python SDK (@mplp/sdk-py)

  • Version: 1.0.3
  • Location: packages/sdk-py/
  • Key Components:
    • mplp.core: Type-safe Pydantic models.
    • mplp.validators: Schema validation.

10. Relationship to Industry Tools

MPLP is NOT a framework; it is a protocol that frameworks can implement:

ToolLayerRelationship to MPLP
LangGraph, AutoGen, CrewAIRuntime/FrameworkCan implement MPLP L2 modules for interoperability
OpenTelemetryObservabilityMPLP Trace can export to OTel format
Agent-to-Agent (A2A)CommunicationComplementary (A2A for transport, MPLP for state semantics)
Model Context Protocol (MCP)Tool IntegrationMCP defines tool invocation, MPLP defines project lifecycle

11. Conformance Levels

LevelRequirementsTarget Audience
L1: Data ConformanceRead/Write valid MPLP JSON; Pass schema validationDashboards, Reporting tools
L2: Module ConformanceImplement 10 module semantics; Pass Golden FlowsLightweight agent frameworks
L3: Runtime ConformanceFull PSG, Event bus, Drift detection; Pass full test suiteProduction agent platforms

12. Quick Navigation