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

shipped production is serving it opened this has it
opened this

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:

  • [ ] A new test/crew-governed.test.ts checks that governorFor answers the smaller of spend pacing's slots and governedSlots' with the reason.
  • [ ] It checks that announceGovernor appends exactly one crew.governed event 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.
  • [ ] If any of these fail, fix src/crew/governed.ts, and the pull says what was wrong.

Files: a new test, and src/crew/governed.ts only if the test finds a fault.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs