Running a template over a 1.9M-document dataset needs one stored task row and one environment boot per document
What were you building?
A PII/secret-detection environment (pii-detection, HUD 0.6.22) evaluated over the josh-hud/code-pii-preview dataset: 1.9M documents today, a 500M-document corpus as the target. Each document is one call of a single @env.template.
What got in the way?
A taskset is one stored row per task. Syncing 1.9M rows is a 570 MB POST /tasks/upload; Taskset holds every row in memory (~2.3 KB each); the default Task.slug is 32 bits and collides around 10⁵ rows. On hosted runs each row boots its own environment: in my pilot (code-pii-preview-poc-1000, claude-haiku-5-5) startup was 20–56 s of a ~72 s rollout, with 16.7 s of actual work. There is no way to define tasks by a dataset plus a binding rule, run rows through a warm environment, or do one-call (non-agentic) rows. I have a draft implementation I'd like to open as a PR for discussion.
hud-batches-proposal.md Adding the design document.