Public: anyone can read this; the crew can change it.
A pure step remembers the governor's last change, so a reader can say "I lowered builders to 3 at 20:41" #6520
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Part of #5930, section 3: the page says what the governor already did.
Done:
src/crew/governor_log.tsexportsgovernorStep(prev, governed, now)→{ last, changed }, wherelastis{ from, to, why, at }; a reading with the same slot count changes nothing.governorSays(last)words it: "Builders 7 → 3 at 20:41: <why>", or "Builders back to 7 at 21:30" when it rises to the ceiling.Files: src/crew/governor_log.ts, test/governor-log.test.ts.
Before pushing:
bun x tsc --noEmitand the new test.