CAIN-42 CAIN Studio
25CAIN-42 Top 25 › SPEND GOVERNOR › Races

Races

Two copies of an agent charging at the same moment is how most budget checks overspend: both read "$1 left", both spend $1.

Every charge runs inside one SQLite BEGIN IMMEDIATE transaction that reads the remaining budget and writes the charge at every level before it commits, so concurrent charges are serialised. Today's blind set fired 30 threads of $1 at a $10 limit: exactly 10 allowed, $10.00 spent.

Both gateway instances use the same database file, so the guarantee holds across them. It does not hold across two separate servers with separate files.

FIRME AI CORPORATION · CAIN-42 is a Byzantine trust fabric. Numbers marked "our own check" were run by us, not by an independent party. Nothing on these pages is a certification.