Skip to main content

[!FROZEN] MPLP Protocol v1.0.0 Frozen Specification Freeze Date: 2025-12-03 Status: FROZEN (no breaking changes permitted) Governance: MPLP Protocol Governance Committee (MPGC) License: Apache-2.0 Note: Any normative change requires a new protocol version.

Event Taxonomy

1. Purpose

The Event Taxonomy defines the classification system for all MPLP observability events. It organizes 12 Event Families into semantic groups and maps them to physical schemas.

2. Event Family Classification

2.1 Complete Family List

IDTitleComplianceSchema
graph_updateGraphUpdateEventREQUIREDmplp-graph-update-event.schema.json
pipeline_stagePipelineStageEventREQUIREDmplp-pipeline-stage-event.schema.json
runtime_executionRuntimeExecutionEventRECOMMENDEDmplp-runtime-execution-event.schema.json
import_processImportProcessEventRECOMMENDEDmplp-event-core.schema.json
intentIntentEventRECOMMENDEDmplp-event-core.schema.json
cost_budgetCostAndBudgetEventRECOMMENDEDmplp-event-core.schema.json
external_integrationExternalIntegrationEventRECOMMENDEDmplp-event-core.schema.json
delta_intentDeltaIntentEventOptionalmplp-event-core.schema.json
impact_analysisImpactAnalysisEventOptionalmplp-event-core.schema.json
compensation_planCompensationPlanEventOptionalmplp-event-core.schema.json
methodologyMethodologyEventOptionalmplp-event-core.schema.json
reasoning_graphReasoningGraphEventOptionalmplp-event-core.schema.json

2.2 Family Groups

3. Group A: Intent & Planning

3.1 intent

Purpose: Capture user's raw requests and intentions

FieldTypeDescription
intent_idUUIDIntent identifier
sourceEnumInput source (ui, api, cli)
raw_textStringOriginal user input
parsed_intentObjectStructured intent

Example:

{
"event_type": "intent_received",
"event_family": "intent",
"payload": {
"intent_id": "int-001",
"source": "ui",
"raw_text": "Fix the login bug in auth.ts",
"parsed_intent": {
"action": "fix",
"target": "auth.ts",
"issue": "login bug"
}
}
}

3.2 delta_intent

Purpose: Track modifications to existing intents

FieldTypeDescription
original_intent_idUUIDOriginal intent reference
delta_typeEnumadd, modify, remove
changesObjectSpecific changes

3.3 methodology

Purpose: Track agent's approach selection

FieldTypeDescription
method_idStringMethodology identifier
nameStringMethod name
rationaleStringWhy this approach

3.4 reasoning_graph

Purpose: Capture chain-of-thought reasoning

FieldTypeDescription
thought_chainArrayReasoning steps
conclusionStringFinal decision
confidenceNumberConfidence score

4. Group B: Execution & Lifecycle

4.1 pipeline_stage (REQUIRED)

Purpose: Track Plan/Step lifecycle transitions

FieldTypeDescription
stage_idUUIDStage identifier
resource_typeEnumplan, step, context
resource_idUUIDResource reference
from_statusStringPrevious status
to_statusStringNew status

Trigger Points:

  • Plan: draft proposed approved in_progress completed
  • Step: pending running completed/failed

Example:

{
"event_type": "pipeline_stage_transition",
"event_family": "pipeline_stage",
"payload": {
"stage_id": "stage-001",
"resource_type": "plan",
"resource_id": "plan-550e8400",
"from_status": "proposed",
"to_status": "approved",
"reason": "User approval via Confirm"
}
}

Purpose: Track low-level execution details

FieldTypeDescription
execution_idUUIDExecution identifier
executor_typeEnumllm, tool, agent
operationStringOperation name
duration_msNumberExecution time
statusEnumsuccess, failure, timeout

Example:

{
"event_type": "llm_call_completed",
"event_family": "runtime_execution",
"payload": {
"execution_id": "exec-001",
"executor_type": "llm",
"operation": "generate_code",
"model": "gpt-4",
"duration_ms": 2500,
"tokens_in": 500,
"tokens_out": 200,
"status": "success"
}
}

4.3 external_integration

Purpose: Track external system interactions

FieldTypeDescription
integration_idStringIntegration identifier
systemStringExternal system name
operationStringOperation performed
response_statusNumberHTTP status or code

4.4 cost_budget

Purpose: Track token usage and financial metrics

FieldTypeDescription
tokens_usedNumberTokens consumed
cost_usdNumberEstimated cost
budget_remainingNumberRemaining budget
modelStringModel identifier

Example:

{
"event_type": "token_usage_recorded",
"event_family": "cost_budget",
"payload": {
"plan_id": "plan-001",
"model": "gpt-4",
"tokens_used": 1500,
"cost_usd": 0.045,
"budget_remaining": 49.955,
"cumulative_tokens": 15000
}
}

5. Group C: State & Safety

5.1 graph_update (REQUIRED)

Purpose: Track PSG structural changes

FieldTypeDescription
update_idUUIDUpdate identifier
operationEnumcreate, update, delete
node_typeStringNode type affected
node_idUUIDNode identifier
previous_stateObjectState before change
new_stateObjectState after change

Trigger Points:

  • Node created/updated/deleted
  • Edge added/removed
  • Attribute modified

Example:

{
"event_type": "node_created",
"event_family": "graph_update",
"payload": {
"update_id": "upd-001",
"operation": "create",
"node_type": "plan_step",
"node_id": "step-550e8400",
"new_state": {
"step_id": "step-550e8400",
"description": "Read error logs",
"status": "pending"
}
}
}

5.2 impact_analysis

Purpose: Track predicted side-effects

FieldTypeDescription
impact_idUUIDAnalysis identifier
affected_resourcesArrayResources impacted
risk_levelEnumlow, medium, high, critical
recommendationsArraySuggested actions

5.3 compensation_plan

Purpose: Track rollback planning

FieldTypeDescription
compensation_idUUIDPlan identifier
reasonStringWhy compensation needed
stepsArrayRollback steps

5.4 import_process

Purpose: Track project initialization

FieldTypeDescription
import_idUUIDImport identifier
source_typeEnumgit, local, zip
files_scannedNumberFiles processed
cards_generatedNumberSemantic cards created

6. Schema Mapping

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

Document Status: Normative (Event Classification)
Total Families: 12
Required: pipeline_stage, graph_update
Recommended: runtime_execution, import_process, intent, cost_budget, external_integration
Optional: delta_intent, impact_analysis, compensation_plan, methodology, reasoning_graph

2025 Bangshi Beijing Network Technology Limited Company Licensed under the Apache License, Version 2.0.