You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] store: DELETE of a record holding a transfer balance breaks the 'sum never changes' guarantee #928
Found by the second agent workflow trial (#902 item 6).
Observed: the credits collection had transfers: {send: {amount: balance}, issue: {amount: balance, min: -1000000000, members: issuers}}. With DELETE added to the route's methods, the owner of a wallet with balance 100 got 204 from DELETE /api/wallets/<id>. The collection sum was then −100, not 0. The store README says the sum over the collection never changes. Activation neither warned nor refused. (PUT correctly kept the read-only balance.)
Expected: refuse deleting a record whose transfer amount is nonzero (409), or refuse DELETE on a transfers collection's mount at activation. The same rule should apply to StoreExports.delete, the operator CLI (ownerless-delete) and host transactions.
Unverified: the behavior through StoreExports.delete and the CLI.
Activity
fix(store): a transfers collection's sum never changes on delete or c…