Commit 1cc6e2c
fix(verify): isolate the RLS-proof stack; document write-transform fidelity gaps
Surfaced by running `objectstack verify` against the real third-party hotcrm app:
- The CLI ran data-fidelity and RLS proofs against the SAME in-process stack, so
the RLS phase's admin-creates collided with rows the fidelity phase had already
written on unique-constrained fields (e.g. a unique `sku`/`account_number`) →
a 409 that silently skipped those objects' authorization check. Boot a separate
pristine stack for the RLS phase. hotcrm `--rls --multi-tenant` goes from
5-consistent/3-skipped(409) to 8-consistent/0-holes.
- Document the known limitation that fields normalized on write (uppercase/trim
hooks, canonicalizing formulas) read back as `fidelity-gaps` even when working
as designed (hotcrm's `sku`/`account_number` uppercase hooks).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent ff23956 commit 1cc6e2c
2 files changed
Lines changed: 38 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
72 | 87 | | |
73 | | - | |
74 | | - | |
75 | 88 | | |
76 | 89 | | |
77 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
0 commit comments