photoncloud-monorepo/creditservice
2026-04-10 19:28:44 +09:00
..
crates Establish baseline product surface and proof lanes 2026-04-10 19:28:44 +09:00
creditservice-client Establish baseline product surface and proof lanes 2026-04-10 19:28:44 +09:00
proto WIP snapshot: preserve dirty worktree 2026-03-20 16:25:11 +09:00
Cargo.lock Implement host lifecycle orchestration and distributed storage restructuring 2026-03-27 12:14:12 +09:00
Cargo.toml nix-nos削除 2026-04-04 16:33:03 +09:00
README.md Establish baseline product surface and proof lanes 2026-04-10 19:28:44 +09:00

CreditService

creditservice is UltraCloud's supported quota, reservation, wallet, and admission-control service. It integrates with platform auth, persists state in the platform data plane, and sits behind the same gateway and VM-cluster validation used for the rest of the published surface.

It is intentionally scoped to real-time control and admission, not finance-system ownership.

Supported scope

  • quota creation, lookup, and enforcement
  • credit reservations, commits, releases, and wallet mutations
  • tenant-aware auth integration through IAM
  • gateway-facing admission control hooks
  • persistent state in FlareDB, PostgreSQL, or SQLite depending on deployment mode

Export And Migration

CreditService export and backend migration are supported as offline export/import or backend-native snapshot workflows, not live mixed-writer migration.

  • Use backend-native snapshots or logical API replay as the export baseline.
  • Drain or quiesce writes before moving between FlareDB, PostgreSQL, and SQLite backends.
  • Rehydrate the target backend, then cut APIGateway or direct callers over to the new endpoint.
  • Treat finance-grade reporting, settlement, or ledger history export as out of scope for the product boundary.

Explicit non-goals

  • invoicing
  • tax handling
  • discounts and pricing catalogs
  • finance-grade ledger completeness
  • full metering platform ownership

Release proof

The release-facing proof comes from the publishable VM-cluster harness:

nix run ./nix/test-cluster#cluster -- fresh-matrix

That flow boots node06 with apigateway, nightlight, and creditservice, then validates REST and gRPC quota flows, wallet and reservation mutations, IAM integration, and API-gateway-mediated admission traffic.