Skip to content

Add parsed OCR baseline migration to match production - #566

Merged
Szer merged 1 commit into
mainfrom
codex/coupon-ocr-parsed-baseline
Oct 18, 2026
Merged

Szer merged 1 commit into
mainfrom
codex/coupon-ocr-parsed-baseline

Conversation

@Szer

@Szer Szer commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Add nullable coupon_ocr.parsed_baseline JSONB storage for replayed parser results and their provenance. The baseline records parsed monetary/date fields, parser revision, reference time, parsing timestamp, and raw-response checksum; actual coupon records are unchanged.

V23 was mistakenly applied directly with Flyway outside CI/CD before this PR. This is the exact migration file already recorded in production's Flyway history. Merging it reconciles the repository with production; CI/CD should recognize V23 as applied and skip executing it again. All future production migrations must run through CI/CD.

Validation: Flyway successfully applied V23, and a read-only verification confirmed 2,364 saved baselines with zero raw-response checksum mismatches. The production backfill has completed; no private corpus, backfill tooling, or parser changes are included.

@Szer
Szer merged commit de01d96 into main Oct 18, 2026
8 checks passed
@Szer
Szer deleted the codex/coupon-ocr-parsed-baseline branch October 18, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant