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:
@@ -160,3 +160,22 @@ Rehearse browser upload -> review if needed -> ready -> activate -> real Persian
|
||||
voice -> shared retrieval -> spoken answer/sources on target HTTPS/network.
|
||||
Record actual errors/latency/provider usage and limits, not invented accuracy
|
||||
percentages or unexecuted acceptance claims.
|
||||
|
||||
### 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