For Japanese version, see IProviderBillingInfo-jp.md.
IProviderBillingInfo (Interface Specification)
1. Responsibility Boundary
IProviderBillingInfo provides billing-state metadata required for economic governance, budget protection, and chargeback accountability.
- Role:
- Non-role:
Expose billing-cycle windows, accumulated cost, forecast cost, and payment status for governance decisions.
Payment execution and settlement collection workflows are out of scope.
2. Properties
| Property | Type | Description |
|---|---|---|
ProviderId |
string |
Provider identifier. |
BillingAccountId |
string |
Account identifier at provider side. |
BillingCycle |
string |
Billing cadence (monthly, prepaid, postpaid). |
CycleStartUtc |
DateTimeOffset |
Current cycle start. |
CycleEndUtc |
DateTimeOffset |
Current cycle end. |
AccumulatedCost |
decimal |
Cost accumulated in cycle. |
ForecastCost |
decimal |
End-of-cycle forecast cost. |
PaymentStatus |
string |
Settlement state (active, due, overdue). |
3. Use Cases
UC-23AI credit management:UC-18Chat persistence and chargeback:
Drive routing throttles or low-cost fallback paths based on budget pressure.
Support context-level cost attribution for internal accounting.
4. Integration with IModelVectorRouter
- Hard limit:
- Soft limit:
Exclude providers in overdue to reduce execution-failure risk.
Under equal capability, prefer providers with lower ForecastCost and higher budget headroom.
5. Visualization (Pie Chart) Mapping
- Active share:
- Forecast increment:
- Risk share:
- Labels:
AccumulatedCost
ForecastCost - AccumulatedCost
Cost associated with due / overdue statuses
ProviderId, BillingCycle, CycleEndUtc
6. Governance Constraints
- Fail-Closed:
- Replay integrity:
If billing data cannot be retrieved, prefer safe-side throttling of high-cost execution paths.
Preserve historical billing state in snapshot metadata to keep audit replay explainable.
Changelog
- v0.0.0 / v0.0.0.0: Initial draft
- v0.0.1 (2026-05-06): Version upgrade aligned with documentation guidelines
architecture/interfaces/provider/IProviderBillingInfo.md