Skip to main content
NORMATIVE FROZENFROZENprotocol

Physical Schemas Reference

Scope

This specification defines the event schema structure for MPLP observability.

Non-Goals

This specification does not define storage formats or vendor-specific serialization.

1. Purpose

This document provides a normative reference for the Physical Event Schemas used in MPLP runtime observability. These schemas define the JSON structures for discrete runtime events.

Claim Type: Normative Quote
Truth Source: L1 (schemas/v2/events/)

2. Schema Inventory

Schema FileComplianceSection
mplp-event-core.schema.jsonBase搂4
mplp-graph-update-event.schema.jsonREQUIRED搂5
mplp-pipeline-stage-event.schema.jsonREQUIRED搂6
mplp-runtime-execution-event.schema.jsonRECOMMENDED搂7

3. EventCore Schema (Base)

Path: schemas/v2/events/mplp-event-core.schema.json

Purpose: Base schema inherited by all event types

Compliance: Required for all events

4.1 Field Definitions

FieldTypeRequiredDescription
event_idString (UUID v4)Unique event identifier
event_typeStringSpecific event subtype (e.g., 'import_started', 'pipeline_stage_completed')
event_familyEnumEvent family classification
timestampISO 8601Event timestamp
project_idString (UUID v4)Project context identifier (optional for system-level events)
payloadObjectEvent-specific payload data (schema varies by event_family)

4.2 event_family Enum

Per /schemas/v2/events/mplp-event-core.schema.json:

ValueComplianceDescription
graph_updateREQUIREDPSG structural mutations
pipeline_stageREQUIREDPipeline stage transitions
runtime_executionRECOMMENDEDExecution lifecycle
import_processRECOMMENDEDImport processing
intentRECOMMENDEDIntent processing
delta_intentOPTIONALDelta intent changes
impact_analysisOPTIONALImpact analysis
compensation_planOPTIONALCompensation planning
methodologyOPTIONALMethodology selection
reasoning_graphOPTIONALReasoning chain
cost_budgetOPTIONALCost tracking
external_integrationOPTIONALExternal system integration

4. GraphUpdateEvent Schema

Path: schemas/v2/events/mplp-graph-update-event.schema.json

Purpose: Track state graph mutations (node/edge changes)

Compliance: REQUIRED

5.1 Field Definitions

Per /schemas/v2/events/mplp-graph-update-event.schema.json:

FieldTypeRequiredDescription
event_idString (UUID v4)Inherited from EventCore
event_typeStringInherited from EventCore
event_family"graph_update"Must be exactly "graph_update"
timestampISO 8601Inherited from EventCore
graph_idString (UUID v4)PSG identifier (typically project-level graph)
update_kindEnumType of graph mutation
node_deltaIntegerNode count delta (+/- or 0)
edge_deltaIntegerEdge count delta (+/- or 0)
source_moduleStringL2 module emitting this update (e.g., 'context', 'plan', 'collab')

5.2 update_kind Enum

ValueDescription
node_addNew node created
node_updateExisting node modified
node_deleteNode removed
edge_addNew edge created
edge_updateExisting edge modified
edge_deleteEdge removed
bulkBulk operation (multiple changes)

5.3 JSON Example

{
"event_id": "550e8400-e29b-41d4-a716-446655440001",
"event_type": "node_created",
"event_family": "graph_update",
"timestamp": "2025-12-07T00:00:00.000Z",
"graph_id": "660f9511-f30c-52e5-b827-557766551111",
"update_kind": "node_add",
"node_delta": 1,
"edge_delta": 0,
"source_module": "plan"
}

5. PipelineStageEvent Schema

Path: schemas/v2/events/mplp-pipeline-stage-event.schema.json

Purpose: Track pipeline stage progression

Compliance: REQUIRED

6.1 Field Definitions

Per /schemas/v2/events/mplp-pipeline-stage-event.schema.json:

FieldTypeRequiredDescription
event_idString (UUID v4)Inherited from EventCore
event_typeStringInherited from EventCore
event_family"pipeline_stage"Must be exactly "pipeline_stage"
timestampISO 8601Inherited from EventCore
pipeline_idString (UUID v4)Pipeline instance identifier
stage_idStringStage identifier (e.g., 'import', 'analyze', 'execute')
stage_statusEnumCurrent status of the pipeline stage
stage_nameStringHuman-readable stage name
stage_orderInteger (≥0)Sequential order of this stage in pipeline

6.2 stage_status Enum

ValueDescription
pendingQueued for execution
runningCurrently executing
completedStage finished successfully
failedStage failed
skippedStage was skipped

6.3 JSON Example

{
"event_id": "880fb733-b51e-74a7-d049-779988773333",
"event_type": "stage_completed",
"event_family": "pipeline_stage",
"timestamp": "2025-12-07T00:01:00.000Z",
"pipeline_id": "990fc844-c62f-85b8-e15a-88aa99884444",
"stage_id": "planning",
"stage_status": "completed",
"stage_name": "Plan Generation",
"stage_order": 2
}

6. RuntimeExecutionEvent Schema

Path: schemas/v2/events/mplp-runtime-execution-event.schema.json

Purpose: Track agent, tool, and LLM execution lifecycle

Compliance: RECOMMENDED

7.1 Field Definitions

Per /schemas/v2/events/mplp-runtime-execution-event.schema.json:

FieldTypeRequiredDescription
event_idString (UUID v4)Inherited from EventCore
event_typeStringInherited from EventCore
event_family"runtime_execution"Must be exactly "runtime_execution"
timestampISO 8601Inherited from EventCore
execution_idString (UUID v4)Execution instance identifier
executor_kindEnumType of executor performing this execution
statusEnumCurrent execution status
executor_roleStringRole identifier (e.g., 'planner', 'reviewer', 'curl_executor')

7.2 executor_kind Enum

ValueDescriptionExample
agentMPLP agent instanceSA runtime
toolExternal toolfile_read, curl
llmLanguage modelgpt-4, claude
workerBackground workerAsync processor
externalExternal systemAPI gateway

7.3 status Enum

ValueDescription
pendingQueued for execution
runningCurrently executing
completedSuccessfully finished
failedExecution error
cancelledManually stopped

7.4 JSON Example

{
"event_id": "aa0fd955-d73a-96c9-f26b-99bbaa995555",
"event_type": "llm_call_completed",
"event_family": "runtime_execution",
"timestamp": "2025-12-07T00:00:05.000Z",
"execution_id": "bb0fe066-e84b-a7da-a37c-aaccbb006666",
"executor_kind": "llm",
"executor_role": "coder",
"status": "completed"
}

7. Schema Relationships

Observability:

Schemas:

  • schemas/v2/events/mplp-event-core.schema.json
  • schemas/v2/events/mplp-graph-update-event.schema.json
  • schemas/v2/events/mplp-pipeline-stage-event.schema.json
  • schemas/v2/events/mplp-runtime-execution-event.schema.json

Physical Schemas: 4 (1 base + 3 specific)
Required Schemas: GraphUpdateEvent, PipelineStageEvent
Recommended Schemas: RuntimeExecutionEvent