Skip to content

feat(simulation): add credit admission limits - #50

Merged
christopherjnelson merged 1 commit into
mainfrom
feat/0041-credit-budget-and-attempt-export
Sep 6, 2026
Merged

christopherjnelson merged 1 commit into
mainfrom
feat/0041-credit-budget-and-attempt-export

Conversation

@christopherjnelson

Copy link
Copy Markdown
Member

Summary

  • add execution-limits-v2 with atomic provider-attempt and credit-admission reservations
  • retain conservative exposure for in-flight, cancelled, and unknown-cost calls while reconciling known costs exactly
  • expose configuration and authoritative accounting in World Lab, with archived v1 compatibility and ADR coverage

Guarantee boundary

This is a server-side admission and exposure ceiling, not an upstream provider-account spending guarantee. When a credit ceiling is enabled, a reported cost above its configured reservation is recorded and future admission fails closed. Unlimited credit mode reports overruns without stopping execution.

Validation

Repository owner confirmed green:

  • pnpm format
  • pnpm validate
  • pnpm test:e2e

Follow-up

O2b-2 will add a versioned independent provider-attempt ledger to safe exports and SQLite so cancelled and uncommitted calls are preserved for analysis.

@christopherjnelson
christopherjnelson marked this pull request as ready for review September 6, 2026 05:35
@christopherjnelson
christopherjnelson merged commit 68cfc44 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