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
TestReadSeamFlagParity seeds via the dual-write seam, so both stores are trivially in
sync. These new tests cover the actual UPGRADE scenario a deployment hits: legacy
Vulnerability_Id rows written the old way (no entity refs), then backfilled by
migrate_vulnerability_ids, then read flag-off (legacy) vs flag-on (entity).
- test_backfilled_normal_data_reads_identically: for seam-shaped data (cve == first/
lowest-PK row) get_vulnerability_ids, the vulnerability_ids property, and the raw v2
wire shape are byte-identical across the flag.
- test_backfilled_cve_not_first_row_preserves_hash_and_property: anomalous data where cve
is not the first-created legacy row keeps hash + property byte-identical (both are
order-insensitive by construction); only the RAW v2 wire ORDER differs (legacy PK-asc
vs entity cve-first, same set) — asserted so the bounded divergence is deliberate.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments