feat: Google Vision primary OCR with Auth0 WIF and monthly usage cap (#127) #128
Reference in New Issue
Block a user
Delete Branch "issue-127-google-vision-primary-ocr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
VISION_MONTHLY_LIMIT(default 1000) -- hard cutoff to PaddleOCR when limit is reachedFixes #127
Type
Files Changed (19 files, +608/-86)
config.py,cloud_engine.py,hybrid_engine.py,engine_factory.pyocr/scripts/fetch-auth0-token.sh(new)ocr/Dockerfilejq, chmod scriptinject-secrets.sh,staging.yaml,production.yamltest_engine_abstraction.py.gitignore,google-wif-config.json.examplefiles (new), 1 removedTest plan
Commands / steps:
AUTH0_OCR_CLIENT_IDandAUTH0_OCR_CLIENT_SECRETGoogle Vision client initialized via WIF)docker compose exec mvp-redis redis-cli -n 1 GET "ocr:vision_requests:2026-02"Checklist