feat(backend): deliver Phase 3 document and voice integration
Add authenticated upload, review, retry and knowledge-selection HTTP flows with bounded JSON processing and frozen OCR policy. Preserve Gemini/OpenAI provider selection and fenced lifecycle semantics; retain FAQ preambles and uncertain vision candidates, and expose opt-in uncalibrated voice transport diagnostics. Include frontend integration examples, aligned contracts and deterministic regressions. Validation: 1767 provider-free tests passed; all 404 PostgreSQL scenarios have passing evidence across the documented runs.
This commit is contained in:
@@ -287,3 +287,22 @@ resources. Storage retention/purge remains an owner decision.
|
||||
Read the implementation guide for work packages, API/database contracts for
|
||||
transport/persistence and the English scenario report for concrete walkthroughs.
|
||||
The reference map/setup guide remain the evidence of existing component progress.
|
||||
|
||||
### OCR supervisor deployment policy (2026-10-09)
|
||||
|
||||
`INGEST_OCR_REVIEW_REQUIRED` defaults to true and is backend-only. New ingestion
|
||||
jobs freeze the boolean in `processing_profile.extraction.ocr_review_required`
|
||||
(the existing immutable document-owned snapshot for its one job). Workers and
|
||||
retries use that snapshot; absent fields in legacy profiles mean true. Preserve
|
||||
existing profile bytes/digests; do not backfill applied records. False permits
|
||||
clean OCR/vision output that passes existing automatic validation without a human
|
||||
extraction decision. It never waives non-OCR review, warning/integrity/coverage
|
||||
checks, independent factual-corpus approval, or explicit knowledge selection.
|
||||
Automatic extraction remains quality_decision=passed; mixed inspected/automatic
|
||||
PDFs use partially_reviewed with annotations only for inspected locators. Neither
|
||||
automatic OCR nor its portions in mixed PDFs creates a human review
|
||||
annotation/audit record. Ready publication remains inactive. Retained pending or
|
||||
rejected candidates still block retry; deployment changes cannot waive them.
|
||||
F01 capabilities.ocr_review_required is current deployment policy; D03 reports
|
||||
frozen ocr_review_required, review_state and extraction_quality_decision.
|
||||
See [Phase 3 handoff](../guides/realtime-agent-phase3-handoff.md).
|
||||
|
||||
Reference in New Issue
Block a user