Skip to content

feat: dollar-denominated budget gate, layered on the token cap - #20

Merged
R055LE merged 9 commits into
mainfrom
worktree-dollar-budget-gate
Aug 18, 2026
Merged

feat: dollar-denominated budget gate, layered on the token cap#20
R055LE merged 9 commits into
mainfrom
worktree-dollar-budget-gate

Conversation

@R055LE

@R055LE R055LE commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Closes BACKLOG.md 1.1.

Lets each brain (admin/ambient/digest/gigabrain) optionally cap daily spend
in real USD (DAILY_USD_<BRAIN>), layered on top of the existing daily
token cap rather than replacing it. Token cap keeps enforcing
unconditionally; if a $ cap is also set, it's a second independent trip
wire, whichever fires first wins. Applied consistently across the LLM gate,
the ops-channel alert, and /status.

Design rationale: docs/superpowers/specs/2026-08-18-dollar-budget-gate-design.md
Plan: docs/superpowers/plans/2026-08-18-dollar-budget-gate.md
Supersedes ADR-0001's predicted "dollars-primary, tokens-fallback" mechanism — see ADR-0010 for why layering was chosen instead.

Built via subagent-driven-development: 7 tasks, each independently
implemented, tested, and reviewed; plus a final whole-branch review that
caught two doc-consistency gaps (stale ADR, stale README metrics table),
fixed and re-reviewed clean.

264 tests pass, 82% coverage, ruff clean.

@R055LE
R055LE merged commit a45dcf3 into main Aug 18, 2026
2 checks passed
@R055LE
R055LE deleted the worktree-dollar-budget-gate branch August 18, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant