Multi-Tenant BigInt Sub-Ledger Spend-Cap & White-Label Ed25519 Invoicer
Meters per-tenant wholesale /v1 AI COGS in integer micro-dollars, trips a fail-closed circuit breaker prior to 1 uUSD budget overage, applies founder tenantMarkupBps, and dispatches Ed25519-signed invoices after HITL review.
Governed Workflow Steps (4)
- 1. Aggregate Sub-Tenant /v1
Aggregate Sub-Tenant /v1 RouteReceipts & Verify Spend-Cap Circuit Breakers: consume [billingPeriod, tenantId] via ingest.sdk_multitenant_ledger_aggregator to emit [tenantUsageUusd]. Verify invariant: tenantUsageUusd.overageUusd === 0.
- 2. Compute Exact BigInt Wholesale Base
Compute Exact BigInt Wholesale Base + tenantMarkupBps End-Customer Charge: consume [tenantUsageUusd] via vault.vault-tenant-usage-metering-markup-engine to emit [baseCogsUusd, markupUusd, customerTotalUusd]. Verify invariant: baseCogsUusd + markupUusd === customerTotalUusd.
- 3. Approval Gate: Human Review
Pause for explicit human review and signed approval token before executing external write "Sign White-Label Ed25519 Tenant Invoice & Approval-Gated Billing Dispatch" (webhook.white_label_tenant_invoice_webhook).
- 4. Sign White-Label Ed25519 Tenant · [Airlock Approval Required]
Sign White-Label Ed25519 Tenant Invoice & Approval-Gated Billing Dispatch: consume [customerTotalUusd, baseCogsUusd] via webhook.white_label_tenant_invoice_webhook to emit [ed25519InvoiceId]. Verify invariant: approvalTokenVerified === true.