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
+1 -1
View File
@@ -52,7 +52,7 @@ def test_exact_match_cannot_bypass_admission_or_whole_chunk_budget():
accepted = admit_candidates(rows, .2)
assert [r["chunk_id"].int for r in accepted] == [3, 4, 5]
assert sum(len(r["text"]) for r in accepted) == 12000
assert len(admit_candidates([row(i) for i in range(1, 10)])) == 5
assert len(admit_candidates([row(i) for i in range(1, 14)])) == 10
def test_execution_reuses_refs_and_never_rebinds_across_searches():