Skip to content

docs: orchestration patterns for tole serve workers - #152

Merged
ajianaz merged 1 commit into
developfrom
docs/serve-orchestration
Oct 1, 2026
Merged

ajianaz merged 1 commit into
developfrom
docs/serve-orchestration

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

What (description of the change)

docs/orchestration.md: a field guide to running N tole sessions as workers using only shipped surfaces — tole serve --transport mcp multi-session workers (#137/#138, hardened in #136), resume <id> "<prompt>" (#65), job_start/job_poll (#64), per-session --allow / --plan-mode / --on-pretool / --workspace. Three patterns:

  • P1 fan-out/fan-in — parallel subtasks; explicitly marked high-value-only (Anthropic's published numbers: +90.2% on research evals at ~15× tokens; token spend alone explained 80% of variance).
  • P2 pipeline — session A's output becomes session B's prompt; context isolation without parallel cost.
  • P3 review fan-in — N producers + 1 verifier + human merge; the verification-first doctrine made structural.

Plus the "when NOT to" section (single-agent default, Azure Architecture Center guidance) and the free security property: each session is its own approval domain (blast-radius containment from the topology).

Includes a live-proven P2 demo — two chained sessions (plan-mode producer → executor), both session logs committed under evals/traces/orchestration-demo/ with the end-to-end file proof (plan-demo.txt = COORDINATED).

No core code changes; tole stays single-lane by design.

Why (the problem you're solving)

tole serve hardening made the worker-pool topology production-viable, but the capability was scattered across four features with no pattern language. Writing the patterns down also fixes positioning: tole does not grow an orchestrator; callers compose sessions (#146).

Testing (how you verified this works)

  • Docs-only PR: no code deltas (Build/Clippy/Test unaffected; CI re-runs the gate set anyway).
  • The P2 demo ran live on the v0.4.0 release binary: session A (plan-mode) produced the plan, session B executed it with --allow 'write_file', the file landed with the exact content, both durable session logs are the committed evidence.
  • Anchors/links checked; English-only.

…ipeline, P3 review fan-in)

Field guide composing only shipped surfaces (serve multi-session MCP,
resume-with-prompt, job tools, per-session policy). Includes a
live-proven P2 demo: two chained sessions (plan-mode producer ->
executor), traces committed under evals/traces/orchestration-demo/.

Closes #146
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 4a8f77d into develop Oct 1, 2026
16 checks passed
@ajianaz
ajianaz deleted the docs/serve-orchestration branch October 1, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant