Skip to content

docs: orchestration patterns for tole serve — fan-out, pipeline, review fan-in #146

Closed

Description

@ajianaz

What (description of the change)

docs/orchestration.md (~250 lines): a field guide to running N tole sessions as workers, using only shipped surfaces — tole serve multi-session MCP-over-HTTP (#138), resume <id> "<prompt>" (#65), job tools (#64), per-session --allow / hooks / --workspace. Patterns documented:

  • P1 fan-out/fan-in — parallel subtasks across sessions; explicitly marked high-value-only (multi-agent costs ~15x tokens per Anthropic's published numbers; token usage alone explained 80% of performance variance in their eval).
  • P2 pipeline — session A's output becomes session B's prompt (context passing without shared state).
  • P3 review fan-in — N producer sessions + 1 verifier session + human merge: the verification-first doctrine made structural.

Plus two sections that keep the doc honest:

  • "When NOT to" — single-agent default (Azure Architecture Center guidance: start at the lowest complexity level that meets the need; every level adds coordination cost).
  • Security note — each session is its own approval domain: the topology inherits blast-radius containment for free.

One live-proven tier2 mission chaining two sessions (P2) so the doc's claims are demonstrated, not asserted.

No core code changes. Core stays single-lane — orchestration belongs to callers; the v0 identity is preserved.

Why (the problem you're solving)

tole serve hardening (#136: connection cap, auth rate-limit, IO timeouts) made the worker-pool topology production-viable, but the capability is scattered across four features and zero documentation turns it into a usable pattern language. Writing the patterns down also fixes positioning: tole does not grow an orchestrator; callers compose sessions. This is the zero-code, highest-leverage item from the Oct 2026 software-factory research (multi-agent orchestration = proven 90.2% improvement on research-class tasks, priced at 15x tokens — a caller-side policy decision, not a harness feature).

Testing (how you verified this works)

  • Docs PR: English-only, anchors resolve, no code deltas (Build/Clippy unaffected).
  • The P2 demo mission recorded under evals/ traces as evidence.
  • cargo test --workspace untouched and green; doc links checked.

Activity

  1. added
    documentation
    on Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions