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:
@@ -19,7 +19,7 @@ def test_gemini_configuration_requires_no_openai_voice_key(monkeypatch):
|
||||
assert config.provider=='gemini' and config.profile()['model']=='intended-profile'
|
||||
assert 'fixture' not in repr(config)
|
||||
|
||||
@pytest.mark.parametrize('changes', [{'provider':'openai'},{'trusted_origins':['http://evil/path']},
|
||||
@pytest.mark.parametrize('changes', [{'provider':'unknown'},{'trusted_origins':['http://evil/path']},
|
||||
{'trusted_hosts':['*']},{'gemini_proxy':'https://user:secret@proxy'},
|
||||
{'trusted_origins':['https://prod.example'],'cookie_secure':False},{'live_session_seconds':0}])
|
||||
def test_invalid_configuration_fails_before_remote_setup(changes):
|
||||
|
||||
Reference in New Issue
Block a user