{
    "id": "hierarchical-pattern",
    "name": "Hierarchical Delegation Pattern",
    "description": "Traditional top-down delegation with centralized coordination",
    "version": "1.0.0",
    "type": "hierarchical",
    "extends": "base-delegation-pattern",
    
    "pattern": {
        "coordinator": "single",
        "structure": "hierarchical",
        "communication": "hub-and-spoke",
        "decisionMaking": "centralized"
    },
    
    "workflow": {
        "pattern": "hierarchical",
        "coordinatorAgent": "delegator-agent",
        "workerAgents": ["researcher", "analyst", "writer"],
        "execution": {
            "type": "sequential-with-parallel",
            "stages": [
                {
                    "name": "task-analysis",
                    "agents": ["delegator"],
                    "parallel": false,
                    "description": "Delegator analyzes task and creates specialized agents"
                },
                {
                    "name": "execution",
                    "agents": ["worker-agents"],
                    "parallel": true,
                    "description": "Worker agents execute assigned subtasks"
                },
                {
                    "name": "synthesis",
                    "agents": ["delegator"],
                    "parallel": false,
                    "description": "Delegator synthesizes results into final deliverable"
                }
            ]
        },
        "communication": {
            "protocol": "request-response",
            "allowDirectWorkerCommunication": false,
            "requireCoordinatorApproval": true
        }
    },
    
    "agentRequirements": {
        "coordinator": {
            "template": "base-delegator",
            "required": true,
            "capabilities": ["task-decomposition", "agent-coordination", "result-synthesis"]
        },
        "workers": {
            "minCount": 2,
            "maxCount": 8,
            "defaultTemplates": ["base-researcher", "base-analyst", "base-writer"],
            "dynamicCreation": true
        }
    },
    
    "evaluation": {
        "metrics": ["task-completion-rate", "coordination-efficiency", "output-quality"],
        "thresholds": {
            "taskCompletionRate": 0.85,
            "coordinationEfficiency": 0.75,
            "outputQuality": 0.80
        }
    },
    
    "worksonaConfig": {
        "eventTracking": ["delegation-events", "worker-completion", "synthesis-events"],
        "metricsCollection": true,
        "transactionGrouping": "workflow",
        "enableControlPanelVisualization": true
    }
} 