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:
11linear11
2026-10-09 17:43:52 -04:00
parent 9be47191d6
commit a73a496c54
67 changed files with 5988 additions and 234 deletions
+8
View File
@@ -300,3 +300,11 @@ See [integration validation and operator handoff](ingestion-operator-handoff.md)
for the consolidated command sequence, JSON heartbeat/stage/error reporting,
end-to-end PostgreSQL acceptance and opt-in app.ingestion_smoke command.
Existing chat remains on Chroma; scoped pgvector search/selection is next.
## OCR supervisor startup setting
Set `INGEST_OCR_REVIEW_REQUIRED=true` (default) or `false` in the API/worker
deployment environment. API enqueue freezes the setting; workers ignore their
current value for existing jobs. Legacy snapshots remain mandatory-review and
retry preserves the same job/profile. Factual/non-OCR review and inactive ready
publication remain required. See [Phase 3 handoff](realtime-agent-phase3-handoff.md).