Capacity flags a count set below its ceiling (#9049)
A capacity count (crew.concurrency, checks.concurrency, queue.depth and the rest) that an admin has set below its default holds the forge back, and nothing used to show it. Now:
- Settings → Usage → Capacity puts a "below ceiling N" badge beside the key, N being the default in force (
belowCeilinginsrc/core/capacity.ts). A value at or above the ceiling, a word-valued key such ascells.egress, and a key with no stored value are not flagged. - The terminal's Capacity screen prints "below ceiling N" in the same row's meta line.
- The pace sentence (Home, the terminal dashboard and Usage → Spend) says "Crew concurrency is set to X, below its ceiling of Y" while
crew.concurrencyis lowered, so the cap is not mistaken for pacing.
Reset: the row's Put back button (inside its ⓘ) is the reset. It is one same-origin POST to /settings/capacity with reset=<key> (the older key + reset=1 still lands), it takes effect on the next pick, and it is logged under Changes like any other capacity change.
Why each setting is there
Every capacity setting carries a required one-sentence reason (CAPACITY in
src/core/capacity.ts; test/settings-reasons.test.ts fails without one, and
holds the limits on /admin/limits to the same). /settings/capacity shows it
behind each row's ⓘ, and the terminal's Capacity screen shows it as a muted line
under the row.
One grouped table (#14841)
/settings/capacity is one table in four groups (Crew, Checks, Hosted forges, Sign-in and safety): each row is the name, the value as an input, and its live effect in a few words ("6 running · 4 queued", "4 candidates"; effectOf in src/actions/capacity_effects.ts, one source: the MCP knobs tool's Speed, Pace floor and Queue depth rows call it too). Why, how it is computed, the key, the environment variable, the boot default and Put back fold behind one ⓘ. A changed setting shows "changed 22:33 by trevato" on its row, and the history is the Changes list below. Pace floor and queue depth are text that follows Crew runs at once, never inputs. One line on top is the load the knobs act on: machine load, checks, crew runs, merges in the last hour (loadLine).
One Save posts every input as v.<key>; the server writes only the rows that differ from what is in force and answers with each change and its effect. The terminal's Capacity screen prints the same effect and load line. Pinned by test/capacity-first-view.test.ts (under 800 words and 25 KB with every row folded).
Issue size limits
Under Crew, issue.maxBoxes (most - [ ] boxes, default 12) and issue.maxChars (longest body, default 6000) decide when an issue is too big for one run. An open issue over either is held and handed to the planner to split before a builder starts it, once; a person's ask is split, never dropped. Each row shows its reason and takes effect on the next pick.