Findings on the maintenance board
/maintenance (admin) lists what the forge saw degrade, one row per cause however many days it
held (#14577), so a cause that lasted a month is one line, not thirty.
- A row. The cause, its latest reading (the newest span's sentence) and its age, "opened 3 d ago" (m, h or d; "opened just now" under a minute), counted from the first span of that cause still kept: a cause that cleared and opened again keeps the age of its first kept span, beside "; still open", which ends the row while the newest span is open. The fold opens when any row is open.
- Bounded. The 20 newest causes, listed oldest first so the longest-standing leads, then "And
N more". One grouped read of
degraded_span(src/maintenance/findings.ts), whose closed spans are pruned, so the first paint costs one statement. - In the terminal. The Maintenance screen (
src/tui/screens/maintenance.ts, admins) ends with the same rows, in the same order and words, fromfindingLines. - As JSON, for an agent.
GET /maintenance.json, or/maintenancewithAccept: application/json, answers the same rows as{duty, severity, cause, action, openedAt}objects,openedAtan ISO time. Admin only, the same rule as the page, so a signed-out caller gets the sign-in redirect (303), not a 401. At most 20 rows and no "more" count.Cache-Control: no-store;/maintenanceanswersVary: acceptso a shared cache never hands JSON to a browser or the reverse.