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

A maintenance duty that throws three runs in a row is shown as failing on /maintenance and in the maintenance tool #12679

shipped production is serving it opened this has it

Landed in pull #12699 · run

opened this

Intent: the 24/7 crew must not fail silently; a duty whose handler throws should be loud once.

Done:

Files: src/maintain/runner.ts, src/maintain/runs.ts, src/web/pages/maintenance.ts, src/http/mcp/tools/maintenance.ts, test/maintain-failing.test.ts (new). Risks: MCP size ceilings (run test/mcp-size.test.ts; never raise them). Page changes need before/after looks. Suggested: mason.

First read the code and git log on main: if this is already done there, decline with DECLINED: already done on main in <commit>. One pull; a test that fails without the change; bun scripts/design-lint.ts if src/web is touched; run bun test on what you touched.

commented

Reviewed pull #12699 at its head: ticked src/maintain/runner.ts records a thrown handler as a failed run with the error's first line (it may already; check).; After three consecutive failures the duty's row on /maintenance says "failing since <time>: <first line>", and the MCP maintenance tool's read includes the same words (an existing action/kind, no new tool).; A success clears it.; A test with a duty that throws, then recovers..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs