Dog molecule dispatch: pour emits N per burst, dispatcher consumes 0..1 with 4 idle workers — surplus roots closed unassigned in 0-6s, children orphaned (~52/h)
Author: mcoll-posthogCreated Jul 29, 2026Updated Sep 13, 2026
Labelsstatus/needs-triage
Summary
The daemon pours dog molecules in bursts (observed: up to 6 formulas in 8-18 seconds). Dispatch reaches 0 or 1 of them; every other root is closed assignee=NULL within 0-6 seconds of creation, and its ALREADY-PERSISTED step children are not closed with it — orphaned at birth.
Measured
- 14/16 pours reached no dog over one window; a later nine-pour window dispatched ZERO with the dog pack 4/4 IDLE throughout — so this is NOT backpressure; the dispatch step fails or is absent on that path.
- No formula is privileged: mol-dog-reaper starved in the same second its twin dispatched (three complete live burst captures with same-instant control+treatment).
- Orphan production ~52 step-wisps/hour on an idle town; reconciles with observed growth 103->1190/6h.
- The failed-dispatch teardown (root closed, children abandoned) is the SAME bug as our recurring orphan-sweep burden — fixing dispatch retires the sweep.
Validation guidance (important)
Any fix must be validated against the ZERO-dispatched case: a concurrency bump would pass the one-dispatched case and keep leaking. Either the pour loop should emit what the dispatcher consumes (or dedupe before close), or the dispatcher should consume the whole burst — and failed-dispatch teardown must close or not-create the children.
Source: gastownhall/gastown