feat(analysis): make OCR the active backend, keep vision dormant
The worker now always dispatches through the in-process ocrs engine. `AnalysisConfig::effective_backend()` returns Ocr regardless of the parsed `ANALYSIS_BACKEND` (warning if `vision` was requested), and `spawn_analysis_daemon` selects on it. The vision dispatcher, client, and readiness probe stay compiled and intact behind the unreachable match arm, so re-enabling is a one-line change. The startup-reclaim regression test no longer leaned on the vision arm to skip model loading; it now points the engine at a missing model path and asserts the orphaned lease is still reclaimed before the (failing) engine build — proving reclaim runs independently of engine readiness. Also gitignore backend/models/*.rten so locally-downloaded ocrs models for native `cargo run` aren't committed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
4
backend/.gitignore
vendored
4
backend/.gitignore
vendored
@@ -1,3 +1,7 @@
|
||||
/target
|
||||
/.sqlx
|
||||
.env
|
||||
|
||||
# Local OCR models for native dev (downloaded, not source)
|
||||
models/
|
||||
*.rten
|
||||
|
||||
Reference in New Issue
Block a user