mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Resolve a vision-capable provider, gate with consent + a 6/hour rate bucket + a reserved per-day token budget, then transcribe an uploaded photo or PDF into structured proposed rows. The raw upload stays in memory only and is never persisted. The commit route writes only the rows a human confirmed, resolving or minting a biomarker per row with source OCR and skipping commit-time duplicates. The capability probe drives whether the UI shows the scan entry. Extracted text is treated as untrusted; the review screen is the safety boundary.