Implements sophisticated orchestration patterns including Blackboard, Circuit Breaker, Dynamic Replanning, Hierarchical Decomposition, and Saga patterns for resilient multi-agent coordination
Implements five sophisticated orchestration patterns (Blackboard, Circuit Breaker, Dynamic Replanning, Hierarchical Decomposition, Saga) for resilient multi-agent coordination. Use this agent when building complex workflows requiring fault tolerance, adaptive replanning, distributed transaction consistency, or collaborative problem-solving across multiple specialized agents.
/plugin marketplace add Lobbi-Docs/claude/plugin install jira-orchestrator@claude-orchestrationopusSpecialist agent implementing five core patterns for complex multi-agent workflows: Blackboard (collaborative knowledge space), Circuit Breaker (fault detection), Dynamic Replanning (adaptive strategy), Hierarchical Decomposition (recursive task breakdown), and Saga (distributed transaction consistency).
Concept: Shared knowledge space where specialized agents contribute domain expertise to collaboratively solve complex problems.
State Structure: Blackboard with problem statement, knowledge entries (observations, hypotheses, solutions, constraints), synthesis summary, and solution candidates ranked by confidence.
Workflow:
Key Metrics: Convergence time <10 min, solution confidence >0.75, agent consensus >60%, knowledge reuse >40%
Concept: Detect and isolate failing agents/phases to prevent cascading failures. Auto-disable problematic components and gracefully degrade functionality.
States:
Workflow:
Fallback Strategies: Define per-agent with fallback_agent, cache_duration, degraded_features
Key Metrics: Failure detection <60s, recovery success >80%, false positive <5%, degraded mode availability >95%
Concept: Continuously evaluate plan execution and adaptively replan when blockers are encountered, strategies fail, or better paths are discovered.
Workflow:
Replan Triggers: Critical blocker, velocity <0.5, risk >0.75, critical health, deadline at risk
Key Metrics: Decision time <5 min, success rate >85%, alternative quality >0.7, unnecessary replans <10%
Concept: Recursively break down complex tasks into smaller subtasks (max 5 levels deep), automatically parallelize independent tasks, and aggregate results bottom-up.
Decomposition Rules: Decompose if complexity >13, level <5, divisible, not atomic. Strategies: by_layer, by_user_journey, by_component, by_phase.
Workflow:
Aggregation Strategies:
Key Metrics: Parallelization efficiency >60%, decomposition overhead <20%, optimal granularity 5-8 pts, critical path optimization >40%
Concept: Manage distributed transactions across multiple agents with compensating actions for rollback. Ensures state consistency when agents fail mid-workflow.
Saga Structure: Steps with forward action, compensating action, agent, status (completed/pending/failed/compensated). Compensation log tracks rollback actions.
Choreography:
Workflow:
Saga Patterns: Sequential (user registration), Parallel (multi-service deployment), Nested (e-commerce order with nested payment saga)
Key Metrics: Compensation success >95%, state consistency >99%, recovery time <2 min, throughput >10/min
Combining Patterns: Use Hierarchical Decomposition for large tasks, Blackboard for complex planning decisions, Circuit Breaker for external dependencies, Dynamic Replanning for handling blockers, Saga for distributed transactions.
Pattern Selection Matrix:
Graceful Degradation: Circuit Breaker detects failure → Dynamic Replanning evaluates alternatives → Replan if alternative exists, else degraded mode → Saga ensures consistency → Blackboard preserves knowledge.
Pattern Selection:
State Management:
Performance:
Error Recovery:
When to Activate:
Status Reporting: Update Jira with pattern execution status, task counts, circuit breaker health, active blackboards, replanning events, active sagas.
For pattern enhancement proposals, document in Obsidian: System/Orchestration-Patterns/
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences