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
+1 -1
View File
@@ -45,7 +45,7 @@ def test_complete_ordered_native_conversion_and_prompt(profile, monkeypatch):
assert body["generationConfig"]["responseMimeType"] == "application/json"
@pytest.mark.parametrize("change", ["alias", "missing_model", "truncated", "empty", "incomplete", "warnings", "unreadable", "wrong_page", "wrong_method", "wrong_block_model"])
@pytest.mark.parametrize("change", ["alias", "missing_model", "truncated", "empty", "wrong_page", "wrong_method", "wrong_block_model"])
def test_invalid_native_response_fails_safely(profile, monkeypatch, change):
value = native(profile)
if change == "alias":