Skip to content

Save raw coupon OCR responses by Telegram file ID - #564

Merged
Szer merged 1 commit into
mainfrom
codex/save-raw-coupon-ocr
Oct 17, 2026
Merged

Szer merged 1 commit into
mainfrom
codex/save-raw-coupon-ocr

Conversation

@Szer

@Szer Szer commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Coupon OCR responses are discarded after parsing, leaving no source data for investigating incorrect recognition. Save the raw Azure JSON in coupon_ocr, keyed by Telegram file ID, immediately after OCR and before parsing. Repeat recognition replaces the saved response; single-photo, album, and manual-add flows all save it.

Includes the migration with service-role grants and integration coverage for persistence, replacement, and survival after coupon cleanup. Coupon date parsing and the additional coupon regression fixture are unchanged.

Validation: the unchanged OCR suite passes in Release on this branch. The 16 OCR add-flow integration tests passed before isolating this commit.

@Szer
Szer enabled auto-merge (squash) October 17, 2026 22:38
@Szer
Szer merged commit 34a94ba into main Oct 17, 2026
8 checks passed
@Szer
Szer deleted the codex/save-raw-coupon-ocr branch October 17, 2026 22:38
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