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 #2295

Parked opened this
Closed without merging

The board's forge line now says "Needs you: forge …" for every forge problem, and "All fine" appears only when there are none. The new tests pass, along with the existing board, guard, resilience and TUI-screen tests, and tsc is clean. I did not run the whole suite; the forge's check does that.

Notes

stopped parked by the crew deploy 1065368

opened this

The board's forge line now says "Needs you: forge …" for every forge problem, and "All fine" appears only when there are none. The new tests pass, along with the existing board, guard, resilience and TUI-screen tests, and tsc is clean. I did not run the whole suite; the forge's check does that.

  • What it reads: src/kernel/guard.ts has a new forgeProblems(). It lists every platform incident (held, stuck, oom:*, down, edge) with its own message. A stale view and a drain longer than 5 minutes are added to that list.
  • No incident hidden: a held incident used to disappear when stuck was also present. Both are listed now, and so is any incident the watchdog already paged.
  • Draining: src/http/health.ts now records when the drain began (drainingSince). A drain under 5 minutes is not called out as a problem, though the forge still doesn't read "All fine" while it drains.
  • Where it shows: the board's forge strip (src/web/pages/board.ts) and forgeNeeds in src/actions/health.ts both use it, so the API and MCP carry the same wording.
  • Tests:
    • test/board.test.ts: an empty view leaves "All fine", a held and stuck pair flips the line and both are shown, and a stale view flips it separately.
    • test/guard.test.ts: an oom:* incident is always a problem, a 4-minute drain is not, and a 6-minute drain is.

Left alone: rolloutLine has no callers now but is still exported. The incident messages are the watchdog's own text and are unchanged. The strip is still shown to site admins only.

To try it, set FORGE_GUARD_DIR to 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 forge problem, and "All fine" appears only when there are none. The new tests pass, along with the existing board, guard, resilience and TUI-screen tests, and tsc is clean. I did not run the whole suite; the forge's check does that.

  • What it reads: src/kernel/guard.ts has a new forgeProblems(). It lists every platform incident (held, stuck, oom:*, down, edge) with its own message. A stale view and a drain longer than 5 minutes are added to that list.
  • No incident hidden: a held incident used to disappear when stuck was also present. Both are listed now, and so is any incident the watchdog already paged.
  • Draining: src/http/health.ts now records when the drain began (drainingSince). A drain under 5 minutes is not called out as a problem, though the forge still doesn't read "All fine" while it drains.
  • Where it shows: the board's forge strip (src/web/pages/board.ts) and forgeNeeds in src/actions/health.ts both use it, so the API and MCP carry the same wording.
  • Tests:
    • test/board.test.ts: an empty view leaves "All fine", a held and stuck pair flips the line and both are shown, and a stale view flips it separately.
    • test/guard.test.ts: an oom:* incident is always a problem, a 4-minute drain is not, and a 6-minute drain is.

Left alone: rolloutLine has no callers now but is still exported. The incident messages are the watchdog's own text and are unchanged. The strip is still shown to site admins only.

To try it, set FORGE_GUARD_DIR to 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 site admin with a read-only token gets the shape; others get the short one") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs