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.

Error Recovery Flow Example

[!NOTE] Status: Skeleton / Planned

This example is a placeholder. Full implementation will be available in a future release.

1. Overview

Related Golden Flow: flow-04-single-agent-llm-enrichment-single-agent-llm-enrichment

This example will demonstrate error handling and recovery patterns in MPLP:

  • Step failure detection
  • Trace span status propagation
  • Error event emission
  • Plan state rollback

2. Key Concepts

2.1 Error States

Steps can fail with various error types:

  • validation_error: Input validation failed
  • execution_error: Handler threw an exception
  • timeout_error: Step exceeded time limit
  • dependency_error: Required resource unavailable

2.2 Recovery Strategies

StrategyDescription
RetryRe-execute the failed step
SkipMark as skipped, continue
AbortHalt entire plan execution
RollbackRevert to previous checkpoint

3. Placeholder Implementation

No runnable example exists yet. See the Golden Flow tests for reference:

tests/golden/flows/flow-04-single-agent-llm-enrichment-single-agent-llm-enrichment/

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