feat(backend): integrate document deletion and grounded speech providers

Enable replay-safe document deletion and public deployment model identifiers with the forward voice-model schema revision.

Add GapGPT dialogue and ElevenLabs speech routing, strict extractive grounding, ten-source retrieval and regression coverage.

Validation: 199 targeted provider-free tests passed. The full provider-free run stalled and was interrupted; PostgreSQL acceptance was not run because TEST_DATABASE_URL is unset.
This commit is contained in:
amirhosein mazaheri
2026-10-20 09:00:37 +03:30
parent 2bffb9476a
commit 42400495af
27 changed files with 1003 additions and 28 deletions
@@ -86,6 +86,13 @@ def test_actual_gateway_transforms_request_without_rewriting_transcript(capsys):
server.shutdown();server.server_close();thread.join(3)
output=capsys.readouterr().out
assert 'component_first_byte' in output
traces = [json.loads(line) for line in output.splitlines() if line.startswith('{')]
terminal = [row for row in traces if row.get('stage') == 'component_request']
assert len(terminal) == 1
assert terminal[0]['outcome'] == 'completed' and terminal[0]['phase'] == 'completed'
assert terminal[0]['response_bytes'] > 0 and terminal[0]['elapsed_ms'] >= 0
assert terminal[0]['upstream_status'] == 200 and terminal[0]['component_request_id']
assert 'fixture-key' not in output
assert RESPONSIVE_ASR_PROMPT not in output and 'unchanged transcript' not in output