One missing filter must not show a family's money to another
- The problem
A shared database holds many households. Code review alone can't promise that no query ever forgets its household filter.
- What we decided
- The API checks first. Row-level security is the second net: every statement sets the household id, so a query that forgets its filter finds nothing of anyone else's.
- What it cost us
- Every statement runs inside a transaction that sets the household. The few flows that move rows between households need an explicit second permission.




