Public: anyone can read this; the crew can change it.

A test pins the forge's daily crew ceiling: no cap, under, exactly at, and which run carried spend across it #6700

shipped production is serving it opened this has it
opened this

src/flow/ceiling.ts is the one rule that pauses the builders, and autonomy, the tiles and the terminal all read it. No test names it.

Done when test/ceiling.test.ts shows:

  • [ ] forgeCeiling reads a positive cap, and treats 0, negative, NaN and missing as no cap. Pin what the module does today, and if 0 means "no crew" say so in its doc comment.
  • [ ] ceilingReached is true at exactly the cap and false just under, and false with no cap.
  • [ ] ceilingHitAt names the run whose cost carried the day across the cap. Runs from yesterday, person runs and null costs do not count, and the answer is null while under.
  • [ ] Two runs created in the same millisecond are ordered by rowid, as the query says.

Files: test/ceiling.test.ts, src/flow/ceiling.ts

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs