Files
pipewright/docs/roadmap.md
T

4.4 KiB

Roadmap and known gaps

v0 is an async engine with a SQLite index; several worker processes can share one store (--shard), sandboxes can run on autoscaled host pools, and graphs can consume each other's results. Deferred, roughly in order of expected value:

Execution

  • Multi-machine sharding without a shared filesystem: --shard I/N works for processes sharing one SQLite store (batched writes; measured 2.6x with 4 workers); across machines it needs a store server or Postgres. Joins in shard runs see only their shard (fine for per-source-item groups like rollouts; global joins should run in the final unsharded replay).
  • Live cross-graph triggers: imports are read when the downstream graph runs; a watcher that re-runs downstream graphs when an upstream run completes is not built.
  • Back-pressure for huge sources: per-item tasks are spawned as items arrive; millions of items should stream in bounded batches.
  • Per-node concurrency hints for CPU-bound Python nodes (currently they run on the event loop; heavy ones should use asyncio.to_thread or a process pool).
  • Cross-machine rate-limit sharing: rate: {shared: true} paces all processes on one machine through a SQLite ledger; runs on different machines sharing a key still only learn about each other through 429s (needs a small coordinator service).
  • Run-level wall-clock timeouts and a pw cancel for detached runs (Ctrl-C works today; the run is marked cancelled and resumes on the next run).

Sandboxes / hosts

  • Reverse tunnels exist for Docker sandboxes on host pools (Sandbox.reverse); not yet for ssh_docker (single remote daemon) — it should become a one-host pool.
  • Host pools: disk is a declared resource but not probed; GPU placement is by flag, not by device count; hosts are packed greedily (no rebalancing/migration); a pool is per process (two concurrent pw run processes each create their own hosts — use persist + pw hosts up to share pre-created hosts, but leases are not coordinated across processes).
  • Host pool providers for other clouds (the vmapi base covers HTTP VM APIs).
  • Modal / E2B / verifiers-runtime sandbox providers.
  • Egress allowlist for remote Docker hosts; DNS-level policy.
  • Snapshot/restore of sandbox state for cheap repeated attempts.

Harnesses

  • verifiers adapter: the v1 harness adapter works (smoke-tested by hand with the bash harness + subprocess runtime, including provider-failure mapping) but is not in the automated suite because verifiers is an optional dependency; next: a Taskset adapter mapping items to verifiers Tasks (setup/validate/score hooks) so verifiers tasksets can be graph sources and verifiers environments can run pipewright-built tasks.
  • Ready-made CLI harness configs for common agents (opencode, codex, claude code, mini-swe-agent).
  • Token/turn budgets per rollout enforced in the proxy.

Models

  • Native (non-OpenAI) providers: Anthropic messages API, Responses API.
  • Cost tables per model when providers do not report cost.
  • Batch APIs for large offline labeling jobs.

Authoring and inspection

  • pw init scaffolding; pw nodes describe --all as one LLM-sized document.
  • Payload JSON schemas on ports (today port types are kind names), with checks of expression field references against them.
  • A live web UI (today: static HTML with optional auto-refresh via pw report --watch).
  • pw diff RUN_A RUN_B (which items changed buckets) and per-edge samples in the CLI funnel.
  • Store maintenance: pw gc for blobs/memo entries unreachable from recent runs; DuckDB attachment for ad-hoc analytics.
  • Optional per-node quality gates (fail the run if a funnel ratio drops below X).

Known gaps in v0

  • Port kinds are checked by name only; same is resolved only for single-kind inputs.
  • Budget estimates are coarse upper bounds from per-item cost hints.
  • The fake provider's schema sampler covers common JSON-schema features only.
  • review.manual decisions are keyed by node id; renaming the node loses them.
  • sink.jsonl appends by default: rows of items that stop reaching the sink stay in the file (use mode: rewrite when the file must equal exactly this run).
  • Benchmarks (bench/) ran on a loaded 16-core machine (load average ~20); absolute numbers are noisy, ratios are more meaningful.
  • Docker exec timeouts rely on coreutils/busybox timeout inside the image.
  • The Python graph loader executes the graph file (it is code); only load graphs you trust.