Skip to content

Add agent spending budget enforcement - #455

Merged
Cjay-Cyber-2 merged 1 commit into
ASTROIDX556:mainfrom
LaTash1:feat/agent-budget-enforcement-428
Oct 21, 2026
Merged

Cjay-Cyber-2 merged 1 commit into
ASTROIDX556:mainfrom
LaTash1:feat/agent-budget-enforcement-428

Conversation

@LaTash1

@LaTash1 LaTash1 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Adds a budget guard to transaction creation and checks enabled, non-deleted agent budget allocations within the authenticated organization. The service evaluates existing committed and in-flight spend, allows exact-limit transactions, and holds an agent-scoped Redis lock across the final check and transaction insert to prevent concurrent requests across wallets from exceeding a budget.

Includes guard and service tests for within-limit, exact-limit, over-limit, and malformed request scenarios. Existing Zod transaction validation, Prisma health checks, and transaction audit listeners are already present in the codebase.

Closes #427
Closes #428
Closes #429
Closes #430

@drips-wave

drips-wave Bot commented Oct 20, 2026

Copy link
Copy Markdown

@LaTash1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Cjay-Cyber-2
Cjay-Cyber-2 merged commit 39f006f into ASTROIDX556:main Oct 21, 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

2 participants