Skip to content

Add configurable session cost budget with guardrail events #32

Open

Description

@byapparov

Phase 2 — Security-critical observability

Runaway agents have no circuit breaker. Add configurable session cost threshold.

  • Emit cost_warning when approaching limit
  • Emit cost_exceeded when hit
  • Optionally halt execution on exceed
  • Configurable via settings or CLI flag

Activity

  1. Keesan12 commented on May 19, 2026

    @Keesan12

    For session caps, the thing I’d avoid is exposing only “budget exceeded” as an event.

    Operators usually need three layers:

    • the configured cap
    • the live burn state while the session is running
    • the terminal receipt after the cap or halt fires

    That last one matters because otherwise you know the run stopped but not whether it stopped after a useful checkpoint, mid-retry, or after an avoidable failure. We’ve found the receipt is what turns a cap from a safety brake into something you can resume and audit cleanly.

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

    P3Nice to have - LowenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions