Skip to content

feat: enforce experiment provider attempt budgets - #48

Merged
christopherjnelson merged 1 commit into
mainfrom
feat/0039-experiment-cost-boundaries
Sep 6, 2026
Merged

christopherjnelson merged 1 commit into
mainfrom
feat/0039-experiment-cost-boundaries

Conversation

@christopherjnelson

Copy link
Copy Markdown
Member

Summary

  • add a server-owned per-experiment provider-attempt ceiling configured through World Setup
  • reserve full-tick capacity before dispatch and account for retries only when provider calls actually start
  • retain known and unknown attempt cost across cancellation even when world state rolls back
  • expose authoritative attempt usage and budget exhaustion through the API and World Lab
  • document the boundary and defer a true monetary ceiling plus export/SQLite attempt ledger to O2b

Testing

Owner confirmed the complete local validation suite is green:

  • pnpm validate
  • pnpm test:e2e

@christopherjnelson
christopherjnelson marked this pull request as ready for review September 6, 2026 03:58
@christopherjnelson
christopherjnelson merged commit c092810 into main Sep 6, 2026
2 checks passed
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