Commit 280a0e7
test(#213): real-PG round-trip gate for the write-through entity read-view
The memory's migrate gate (emit → apply to a real engine → introspect → re-diff
must be EMPTY) now covers the FR-024 §7 entity read-view end to end, not just the
unit-level DDL shape. Adds a convergence test to view-lifecycle-pg: a write-through
entity (writable table + non-primary replica view + a derived origin.passthrough
column, over a required-FK join) migrates once against real Postgres, then a second
migrate is a genuine NO-OP.
Gates BOTH #213 holes on a live engine: the `orders` table is introspected with
exactly [id, customerId] (hole 1 — the derived customerName never leaks onto the
table), and `v_order_with_customer` is introspected with [id, customerId,
customerName] (hole 2 — the replica view IS emitted, o.* + the joined derived
column). Convergence proves the emitted view fingerprints + applies cleanly and the
re-diff sees no drift.
Verified: view-lifecycle-pg 10/10 pass (9 prior + this) against a Postgres
testcontainer.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGQ7oSuNcjhsMHWwZzhBwr1 parent f487278 commit 280a0e7
1 file changed
Lines changed: 39 additions & 0 deletions
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
202 | 241 | | |
203 | 242 | | |
204 | 243 | | |
| |||
0 commit comments