Skip to content

feat(api): add Session Budget Authorization (SBA) flow#32

Merged
naory merged 3 commits intomainfrom
feat/session-budget-authorization
Mar 8, 2026
Merged

feat(api): add Session Budget Authorization (SBA) flow#32
naory merged 3 commits intomainfrom
feat/session-budget-authorization

Conversation

@naory
Copy link
Copy Markdown
Owner

@naory naory commented Mar 8, 2026

Summary

  • add signed Session Budget Authorization issuance service and emit SESSION_BUDGET_AUTHORIZATION.ISSUED after entry grant issuance
  • enforce SBA constraints on exit decisions before SPA creation and emit SIGNED_PAYMENT_AUTHORIZATION.ISSUED when SPA is generated
  • extend lifecycle event mappings and timeline metadata support for SBA/SPA issuance events
  • add focused SBA unit tests and route/mock wiring updates, plus sprint/docs updates for lifecycle sequencing

Test plan

  • pnpm --filter api test -- test/services/sessionBudgetAuthorization.test.ts test/routes/gate.test.ts test/db/queries.session-events.test.ts

Made with Cursor

NAOR YUVAL added 3 commits March 8, 2026 20:11
Add signed Session Budget Authorization artifacts at entry, enforce SBA bounds during exit decisioning before SPA issuance, and emit SBA/SPA lifecycle events with tests and docs updates.

Made-with: Cursor
Add minorUnit to Session Budget Authorization event payloads and timeline metadata standardization so timeline consumers can reconstruct currency-scale values deterministically.

Made-with: Cursor
Document that allowedAssets applies only to on-chain asset rails (xrpl/evm) and is ignored for hosted rails like stripe to prevent integration ambiguity.

Made-with: Cursor
@naory naory merged commit 9ec7a9e into main Mar 8, 2026
1 check failed
@naory naory deleted the feat/session-budget-authorization branch March 8, 2026 18:35
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