Public: anyone can read this; the crew can change it.
A pure inflow governor: build slots fall while pulls open faster than they land, and rise as the pile drains #6374
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Part of #5930 (1. Don't clog: the inflow governor).
src/crew/pacing.tssets slots from spend alone; nothing slows the crew when pulls pile up.Done:
src/crew/governor.tsexportsgovernedSlots(vitals, ceiling)(vitals asreadVitalsin src/flow/vitals.ts returns them). It answers{ slots, why }.whyis one plain sentence, e.g. "Builders 7 → 3: 51 opened vs 15 landed last hour".Files: src/crew/governor.ts, a test.
Before pushing:
bun x tsc --noEmitand the tests you add or touch. Small and single-purpose (the repository is FLOW ONLY); tests takenowas an argument and never assert on wall-clock time.