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 forRESERVEDreservations onlylocked_open_credits, the account-and-organization total forLOCKEDreservations onlyopen_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
RESERVEDplus 4LOCKEDproduces 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
READYfor 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