Orchestration Flow
Orchestrator receives task
The orchestrator agent receives a complex task: “Research competitor pricing and update our pricing spreadsheet.” This requires two capabilities — web research and spreadsheet editing — handled by different specialized agents.
TealEngine — Evaluate delegation to Agent A
Agent A delegates to Agent B
Agent A (Research Agent) determines it needs Agent B (Web Scraper) to fetch competitor websites. Agent A attempts to delegate a sub-task to Agent B.
TealEngine — Verify Agent B permissions
Agent B calls tool
Agent B attempts to call the
web_scrape tool to fetch competitor pricing pages.TealRegistry — Tool authorization for Agent B
web_scrape is allowlisted for Agent B specifically. Each agent has its own tool allowlist — Agent B can use web_scrape and web_search, but cannot use spreadsheet_edit (that’s only allowlisted for the orchestrator).Agent B returns result
Agent B completes the web scraping and returns competitor pricing data to Agent A, which aggregates the research and returns it to the orchestrator.
TealMemory — Shared memory governance
INTERNAL. The orchestrator can read this data, but Agent B cannot read the orchestrator’s CONFIDENTIAL pricing strategy documents. Memory access is governed by both scope and classification.TealAudit — Correlation ID traces full chain
web_scrape → Agent B returned result → Agent A returned result → Orchestrator updated spreadsheet. A single query on the correlation ID reconstructs the entire chain.Flow Diagram
Code Example
Key Governance Points
Correlation IDs propagate automatically through
createChildContext. Every event in the delegation chain — across all agents — shares the same root correlation ID, making it possible to reconstruct the full chain with a single audit query.Related Documentation
Agentic Patterns
Governance patterns for multi-agent architectures
Execution Identity
How correlation IDs and execution contexts work
TealRegistry API
Agent and tool registration configuration
TealMemory API
Shared memory governance and classification

