Skip to content

unattended ops: budget tiers bound to trust + mission cost report #201

Closed

Description

@ajianaz

Summary

Approved 0.8.0 phase. Missions get explicit budgets (--max-steps, --max-minutes, token/cost ceiling) with conservative defaults; presets may pre-set tiers (--trust internal implies a sane default mission budget; explicit flags win). At mission settle (any exit path), a durable cost report entry: steps used, turns, tokens in/out, wall time, tool-call counts by risk tier.

Why

Autonomy without budgets is the failure mode the loop-guards already prevent per-turn; this extends the same discipline across turns. The cost report makes missions honest and comparable — and feeds the fleet's ops habits (measure, then optimize).

Design sketch

  • Budgets checked between provider steps and before each tool call (same checkpoints as the cancel token).
  • Exhaustion = resumable state (mirrors mission mode: tole mission — budgeted turn-chaining to a goal #199 semantics), never a dead session.
  • Cost report reuses the session's existing token-usage tracking (per-turn stats already recorded).

Acceptance

  • Budget flags on tole mission, trust-bound defaults, resumable exhaustion
  • Durable cost-report entry + tole status <id> shows it
  • Docs + CHANGELOG same-PR
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions