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

Home's builders tile says why builders are idle: the ceiling, no ready issue, or no subscription with headroom #5819

Parked opened this
Closed without merging

When builders running is below the slots, the builders tile on / and the "Builders running" line in the terminal dashboard now name why. The new tests, the neighbouring KPI and autonomy tests, tsc --noEmit and design-lint pass here. I did not run the full check.

Notes

stopped parked by the crew

opened this

When builders running is below the slots, the builders tile on / and the "Builders running" line in the terminal dashboard now name why. The new tests, the neighbouring KPI and autonomy tests, tsc --noEmit and design-lint pass here. I did not run the full check.

  • The reasons: the words are ceiling reached, no subscription with headroom and nothing ready, and the first one that holds wins in that order. A full set of slots shows none.
  • Same checks as the scheduler: the new module src/crew/idle.ts asks autonomyStatus (the repository and forge ceilings), repoPace (subscription room) and heldBy (the ready list after holds). It adds no rule of its own.
  • Links: on / the whole tile links to the page that fixes the reason, and the terminal line carries the words only.
    • /settings/crew for the ceiling.
    • /settings/subscriptions for headroom.
    • /map for nothing ready.
  • No /meter page: there is no /meter or /subscriptions route in the repo, so I linked the existing settings pages instead. Say if you want a /meter page added.
  • Plumbing: the scheduler checks need the whole app, so kpiRow and readKpis now take an optional app. The reason sits on Kpis.builders.idle.
  • Several repositories: if any autonomous repository could start a run now, no reason is shown. Otherwise the highest-priority reason across repositories with a free slot is shown.
  • Not touched: repositories paused as nobody or no crew get no reason, and nothing else on the tiles changed.
  • Tests: test/home-builders-idle.test.ts has one test per reason, checked on / and in the terminal. Two more cover "a ready issue, so no reason" and "all slots busy, so no reason".

To try it, make an autonomous repo with one slot, no open issues and an admin session, and open /: the tile reads "nothing ready".

Closes #5799

3 earlier comments
commented

When builders running is below the slots, the builders tile on / and the "Builders running" line in the terminal dashboard now name why. The new tests, the neighbouring KPI and autonomy tests, tsc --noEmit and design-lint pass here. I did not run the full check.

  • The reasons: the words are ceiling reached, no subscription with headroom and nothing ready, and the first one that holds wins in that order. A full set of slots shows none.
  • Same checks as the scheduler: the new module src/crew/idle.ts asks autonomyStatus (the repository and forge ceilings), repoPace (subscription room) and heldBy (the ready list after holds). It adds no rule of its own.
  • Links: on / the whole tile links to the page that fixes the reason, and the terminal line carries the words only.
    • /settings/crew for the ceiling.
    • /settings/subscriptions for headroom.
    • /map for nothing ready.
  • No /meter page: there is no /meter or /subscriptions route in the repo, so I linked the existing settings pages instead. Say if you want a /meter page added.
  • Plumbing: the scheduler checks need the whole app, so kpiRow and readKpis now take an optional app. The reason sits on Kpis.builders.idle.
  • Several repositories: if any autonomous repository could start a run now, no reason is shown. Otherwise the highest-priority reason across repositories with a free slot is shown.
  • Not touched: repositories paused as nobody or no crew get no reason, and nothing else on the tiles changed.
  • Tests: test/home-builders-idle.test.ts has one test per reason, checked on / and in the terminal. Two more cover "a ready issue, so no reason" and "all slots busy, so no reason".

To try it, make an autonomous repo with one slot, no open issues and an admin session, and open /: the tile reads "nothing ready".

commented

Home's builders tile now says why builders are idle (ceiling reached, no subscription with headroom, or nothing ready). This update merges main back into the branch; it had drifted, with conflicts in five files.

I kept both sides in each of the five files:

  • kpi_words.ts: the Builders line keeps the idle reason, and the spend line uses main's spendLineNote.
  • kpis.ts: both imports stay, so the KPIs carry the idle reason and main's hitAt for the spend ceiling.
  • dashboard.ts and home.ts: the ceiling comes from main's forgeCeiling(config), and the app option this branch needs is still passed through.
  • kpi_row.ts: the imports from both sides are combined.

bun x tsc --noEmit is clean. The tests that cover the changed code pass: the home KPI row, KPI page, KPIs, cache, builders-idle and home-200 suites, 64 tests in total.

I started the full bun test but it passed the 10-minute limit, so I didn't wait for it; the forge's check runs the whole suite on this push.

commented

I merged main into this branch and pushed it. The full local bun test run still shows 30 failures and 3 errors, and I didn't look into them. The type check is clean. The forge's check on the push will give the full verdict.

  • Conflicts: both were import lines, in src/tui/screens/dashboard.ts and src/web/studio/home_cache.ts. This branch added import type { App } and main added the vitals.ts imports (readVitals, vitalsLine and Vitals). I kept both in each file.
  • Tests: the full local run came to 8572 pass, 128 skip, 30 fail and 3 errors. The home, dashboard, vitals and builders tests (146) and the test/web suite (309) all pass.

The 30 failures are in files I didn't touch, and the run took about 24 minutes. I suspect load or timing and didn't confirm it. If the check comes back red on any of them, send me the log.

commented

Parked by the crew: the check stayed red through 2 automatic tries

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs