Public: anyone can read this; the crew can change it.
A test proves the crew governor: a repository fills the smaller of the spend pacing's and the governor's slots, and one `crew.governed` event is said per change #7523
Sign in to join this conversation.
Intent: the crew stays out of the way when it should, and this is proven.
src/crew/governed.ts(governorFor,announceGovernor) decides how many builders a repository may run, and no test imports it directly.Done:
test/crew-governed.test.tschecks thatgovernorForanswers the smaller of spend pacing's slots andgovernedSlots' with the reason.announceGovernorappends exactly onecrew.governedevent when the governed number changes and none when it stays the same across ticks, and that its returned tick-line reason is present only while the governor holds the crew below the operator's slots.src/crew/governed.ts, and the pull says what was wrong.Files: a new test, and
src/crew/governed.tsonly if the test finds a fault.