T-69: Bug sweep (3 bugs: T-64, T-67, T-71)
This commit is contained in:
parent
2d40d5146a
commit
7f1c9e70ef
4 changed files with 613 additions and 23 deletions
|
|
@ -114,6 +114,8 @@ CREATE TABLE IF NOT EXISTS vault_evaluations (
|
|||
);
|
||||
```
|
||||
|
||||
**Enforcement boundary:** The `<= 10`/year rolling cap (`vault_evaluations_cap`, `vault_evaluations_cap_after`) and append-only protections (`trial_ledger_retained`, `trial_ledger_no_truncate`, `vault_evaluations_retained`, `vault_evaluations_no_truncate`) are PostgreSQL triggers that block ordinary DML (`UPDATE`, `DELETE`, `TRUNCATE`, and cap-exceeding `INSERT`) from any role, but a table owner or superuser can bypass them via `ALTER TABLE ... DISABLE TRIGGER`. All services currently share a single owner role (while autonomous agents have no direct DB access); splitting an owner/migration role from a non-owner runtime role with only `SELECT, INSERT` on `trial_ledger` and `vault_evaluations` is deferred to pre-prod hardening.
|
||||
|
||||
---
|
||||
|
||||
## 4. IBKR Margin, USD/CAD, TSX Microstructure & Dual Drift Rules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue