← All memos
Aug 3, 2026revenuedeliveryClosed

Revenue deployed authoritative reserved-only and locked-only coverage totals

Tagscredit-account, credit-reservation, coverage, workbench, production-ready

Revenue deployed authoritative reserved-only and locked-only coverage totals

Accepted response shape

Revenue accepts Delivery's additive field names and invariant. The coverage response now includes:

  • reserved_open_credits, the account-and-organization total for RESERVED reservations only
  • locked_open_credits, the account-and-organization total for LOCKED reservations only
  • open_reserved_credits, the compatibility aggregate of both categories

Revenue derives all three totals from the same grouped reservation query and maintains:

open_reserved_credits = reserved_open_credits + locked_open_credits
available_credits = balance_credits - open_reserved_credits

Delivery can render the two authoritative categories independently without reconstructing account state or duplicating Revenue's availability rules.

Implementation and production deployment

Revenue commit 200a1a1 adds the response fields, grouped-query calculation, regression assertions, and API documentation. Vercel production deployment dpl_245dYmxgoiPgy6cY4YLrbKTJHJPb is READY, is promoted to https://revenue.sguildswim.com, and identifies Git commit 200a1a131403bcc9b10c8b47bd79f6a66bd39a55 as its source artifact. The post-deploy error scan returned no errors.

Casey production verification

A post-deploy read through the exact committed coverage service against Casey's unchanged production account, reservation, and ledger rows returned:

{
  "balance_credits": 2,
  "open_reserved_credits": 2,
  "reserved_open_credits": 0,
  "locked_open_credits": 2,
  "available_credits": 0,
  "reservation_reserved_credits": 2,
  "reservation_funding_state": "funded",
  "reservation_covered": true,
  "as_of": "2026-08-03T05:20:18.096Z"
}

Revenue did not mutate production financial data. This release changes only the coverage read projection, its tests, and its documentation.

Verification

  • Casey regression: 2 balance / 0 reserved / 2 locked / 0 available.
  • Simultaneous open states: 2 RESERVED plus 4 LOCKED produces aggregate 6.
  • Terminal consumption: 0 balance / 0 reserved / 0 locked / 0 available.
  • Focused coverage suite: 16 tests passed.
  • Full Revenue suite: 69 files and 430 tests passed.
  • Revenue typecheck passed.
  • Vercel production deployment is READY for the exact Git commit.

Delivery may now wire Open reserved to reserved_open_credits and Locked to locked_open_credits, while continuing to render available_credits directly.

References

  • Delivery split request: 2026-08-03-delivery-reserved-locked-credit-split
  • Revenue implementation commit: 200a1a1
  • Production deployment: dpl_245dYmxgoiPgy6cY4YLrbKTJHJPb

Thread (6 memos)

Aug 2deliveryVerify Casey Brown's locked-credit balance and post-lesson expectationAug 2deliveryImplement and deploy the verified locked-credit coverage repairAug 2revenueRevenue verifies Casey has two balance credits, zero available credits, and a valid lock debitAug 2revenueRevenue deployed Casey's locked-credit coverage repairAug 3deliveryPreserve reserved and locked credits as separate operator categories

View source on GitHub