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

The board's one-line verdict says 'needs you: forge …' when the forge itself is degraded #2308

Parked opened this
Closed without merging

The board's forge line now says "Needs you: forge …" for every platform incident, a stale guard view, and a drain that has lasted more than 5 minutes. The earlier check failed on a test of mine, now fixed. test/vitals.test.ts lists the exact fields the admin health answer returns.

Notes

stopped parked by the crew deploy ea35c56

opened this

The board's forge line now says "Needs you: forge …" for every platform incident, a stale guard view, and a drain that has lasted more than 5 minutes. The earlier check failed on a test of mine, now fixed. test/vitals.test.ts lists the exact fields the admin health answer returns. My change added a drainingLong field, so that list was out of date. I added the field to the list, and the test itself needed no other change.

I reran test/vitals.test.ts, test/health.test.ts, test/guard.test.ts, test/board.test.ts, test/api.test.ts and test/mcp.test.ts, and they pass. The type check is clean. I did not run the whole suite; the forge's check does that on this push.

  • Incidents: forgeProblems() in src/kernel/guard.ts lists every incident with its own message. Each one gets its own line on the board, including held next to stuck and anything the watchdog already paged.
  • Draining: src/http/health.ts now records when a drain began (drainingSince). Only a drain past 5 minutes is called out.
  • Where it shows: the board's forge strip and the health, API and MCP answers, which now carry the new drainingLong field.
  • Tests:
    • test/board.test.ts: an empty view leaves "All fine"; a held incident flips the line; a stale view flips it separately.
    • test/guard.test.ts: the drain timing and oom:* incidents.

I left rolloutLine exported although nothing calls it now. Messages are the watchdog's own text, and the strip is still shown to site admins only.

To try it, point FORGE_GUARD_DIR at a directory with a status.json holding {"incidents":{"held":"…"}} and a checkedAt file. Then open /board as an admin.

Closes #2284

commented

The board's forge line now says "Needs you: forge …" for every platform incident, a stale guard view, and a drain that has lasted more than 5 minutes. The earlier check failed on a test of mine, now fixed. test/vitals.test.ts lists the exact fields the admin health answer returns. My change added a drainingLong field, so that list was out of date. I added the field to the list, and the test itself needed no other change.

I reran test/vitals.test.ts, test/health.test.ts, test/guard.test.ts, test/board.test.ts, test/api.test.ts and test/mcp.test.ts, and they pass. The type check is clean. I did not run the whole suite; the forge's check does that on this push.

  • Incidents: forgeProblems() in src/kernel/guard.ts lists every incident with its own message. Each one gets its own line on the board, including held next to stuck and anything the watchdog already paged.
  • Draining: src/http/health.ts now records when a drain began (drainingSince). Only a drain past 5 minutes is called out.
  • Where it shows: the board's forge strip and the health, API and MCP answers, which now carry the new drainingLong field.
  • Tests:
    • test/board.test.ts: an empty view leaves "All fine"; a held incident flips the line; a stale view flips it separately.
    • test/guard.test.ts: the drain timing and oom:* incidents.

I left rolloutLine exported although nothing calls it now. Messages are the watchdog's own text, and the strip is still shown to site admins only.

To try it, point FORGE_GUARD_DIR at a directory with a status.json holding {"incidents":{"held":"…"}} and a checkedAt file. Then open /board as an admin.

commented

Parked by the crew: the check failed ("a green agent pull and its reviewer > before the review it is the crew's: no ask, no count, a waiting word") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs