Skip to content

Budget exhaustion kills orchestration silently #34

Closed

Description

@currentbits

`assertUnderDailyBudget` is start-time only (runner.js:3197, workflow.js:838). When a worker-finished wake-up is rejected by the gate, `flushOrchNotices` swallows it and just appends an `event` message to the transcript (runner.js:563-573) — no error banner, no notification; the orchestration simply stops advancing.

Also: the only cap is the global daily one (SettingsModal.tsx:175). There is no per-orchestration or per-thread ceiling for a fan-out. At minimum, surface the gate rejection visibly (banner + desktop notification).

Activity

  1. added a commit that references this issue on Aug 15, 2026
  2. currentbits commented on Aug 15, 2026

    @currentbits
    OwnerAuthor

    Fixed by a10933d (merged via PR #58). Verified on main today:

    • flushOrchNotices catch path (electron/runner.js:583-611): an undeliverable worker-finished wake-up now appends an event with the gate's reason ("Not delivered: Daily budget reached…"), lands the orchestrator thread failed, and pushes the update to the renderer.
    • Sidebar shows a Failed badge; the last event card carries "Retry turn" (retryAnchorEventId, src/retryTurn.ts:65).
    • shouldNotify (electron/notify.js:22) fires a desktop notification when a thread with a prior status lands failed with no run of its own — the unattended fan-out case.
    • Covered by tests: electron/test/runner.test.js "an undeliverable wake-up lands the orchestrator failed with the reason (issue Budget exhaustion kills orchestration silently #34)" and the notify.test.js additions — all green (35/35 in runner+notify suites).

    The remaining idea from this issue — a per-orchestration / per-thread budget ceiling for fan-outs — was deliberately not part of the fix; spun out into a follow-up issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions