Skip to content

Implement Phase 6: dynamic orchestration - #9

Merged
lonestarx1 merged 2 commits into
mainfrom
phase6
Feb 16, 2026
Merged

Implement Phase 6: dynamic orchestration#9
lonestarx1 merged 2 commits into
mainfrom
phase6

Conversation

@lonestarx1

Copy link
Copy Markdown
Owner

Summary

  • Add dynamic orchestration pattern (pkg/orchestrator/dynamic/) enabling agents to spawn child agents, teams, pipelines, or graphs at runtime
  • Runtime manages resource governance: MaxConcurrent (semaphore-based), MaxDepth (nesting limit, default 10), CostBudget (aggregate across children)
  • Four typed spawn methods: SpawnAgent, SpawnTeam, SpawnPipeline, SpawnGraph — each blocks, inherits tracing context, records cost/usage
  • Async spawning via Go + Future for parallel child execution, Wait for completion barrier
  • Context propagation: FromContext/DepthFromContext enable nested dynamic spawning from within tools
  • Cascading cancellation via derived contexts — cancel parent, all children stop
  • 27 tests covering all spawn types, depth enforcement, cost budgets, concurrency limits, async futures, cancellation, tracing spans, and result aggregation
  • Website docs updated with Dynamic Orchestration, Resource Governance, and Async & Futures sections
  • Examples page updated with Dynamic Research Coordinator example

Test plan

  • All 27 dynamic tests pass with -race
  • All existing tests pass (backward compatible)
  • Website builds successfully
  • gofmt clean

Add the dynamic orchestration pattern enabling agents to spawn child
agents, teams, pipelines, or graphs at runtime. The Runtime manages
resource governance: concurrency limits (semaphore), maximum nesting
depth, and cost budgets across all spawned children.

Includes async spawning via Go/Future, context-based runtime propagation,
cascading cancellation, and aggregate cost/usage metrics. 27 tests
covering all spawn types, depth enforcement, cost budgets, concurrency
limits, async futures, cancellation, and tracing.

Updates website docs with Dynamic Orchestration, Resource Governance,
and Async & Futures sections. Adds dynamic research coordinator example.
@vercel

vercel Bot commented Feb 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gogrid Ready Ready Preview, Comment Feb 16, 2026 10:20am

@lonestarx1 lonestarx1 self-assigned this Feb 16, 2026
@lonestarx1
lonestarx1 merged commit cd4a346 into main Feb 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant