ワンクリックで
ocr-corpus-replay
// Use when user wants to Validate OCR changes against failure corpus before shipping
// Use when user wants to Validate OCR changes against failure corpus before shipping
Use when user wants to Run the Arc Raiders AutoScrapper validation stack after edits. Use for linting, typing, tests, workflow checks, and broader repo validation.
Use when user wants to Update Metaforge snapshots and bundled default rules
Add a new OCR regression fixture from an ocr_debug image. Use when a scan misidentified an item and you want to lock in the correct result as a test case.
Use when user wants to Run full validation, push branch, and open a PR with appropriate context notes
Workflow for safely adding, removing, or renaming persisted config fields in config.py. Use whenever editing dataclass fields in src/autoscrapper/config.py. Covers incrementing CONFIG_VERSION, writing a migration function, and validating the round-trip.
Use when user wants to Find and remove genuine dead code using deadcode + vulture. Filters known false positives (dataclass fields, protocol methods, dunder hooks). Run before a cleanup commit.
| name | ocr-corpus-replay |
| description | Use when user wants to Validate OCR changes against failure corpus before shipping |
| disable-model-invocation | true |
| context | fork |
| agent | code |
Replay recorded OCR failures to validate vision/preprocessing changes don't cause regressions.
src/autoscrapper/ocr/inventory_vision.py
# Validate with default settings (fail fast on first error)
/ocr-corpus-replay
# Check corpus without failing on first error
/ocr-corpus-replay --check-only
# Show detailed diff for failures
/ocr-corpus-replay --verbose
Runs: uv run python scripts/replay_ocr_failure_corpus.py [args]
Validates:
Never ship OCR changes without corpus replay validation. The corpus captures real-world cases that point detection or preprocessing changes can subtly break.
Invoke with /ocr-corpus-replay after OCR edits.