# Current implementation and recorded evidence Documentation reconciled 2026-10-20 against the working tree. The latest local runtime evidence is dated 2026-10-18; no service uptime, provider call or new human acceptance is inferred from this documentation update. ## Implemented baseline The modular FastAPI backend runs through app.server with a separate app.worker, PostgreSQL/pgvector and durable originals/extraction artifacts. Authentication, upload/status, retained review/resume, eligible failed-job retry, active knowledge selection and soft deletion have backend implementations. Every upload creates an independent immutable document; retries reuse the eligible document/job. Deletion retains original/chunk content while removing eligibility, fencing publication and invalidating affected context. Shared backend retrieval enforces organization/access scope and ready, active, undeleted, unpurged eligibility. It admits up to ten whole chunks within 12,000 characters, with document_id/chunk_id references and policy whole-10-12000. Calibration must match the embedding profile and retrieval policy. SearchInput also removes recognized organization-name filler from longer Persian queries while preserving backend-derived scope; see the grounding guide. Voice has private OpenAI, Gemini and development-only Local S2S adapters. Reservations pin provider/profile identity; provider changes require a fresh session. Public F01 model identifiers are deployment-owned display information, not an arbitrary model editor. D05 deletion is enabled; general settings editing and full text chat/history remain deferred. ## Last recorded local profile | Component | Recorded selection | | --- | --- | | STT | ElevenLabs scribe_v2, Persian | | Dialogue | GapGPT gpt-4.1-mini | | TTS | ElevenLabs eleven_v3, George, speed 1.2, PCM mono 24 kHz | | Request deadline | 60 seconds | | Embedding | Existing local bge-m3 profile, preserved | | Grounding | Current-turn extractive gate before local TTS | | Live schema head | 0006_voice_model_settings | | Loopback frontend | http://127.0.0.2:4201/login | | LAN frontend | https://192.168.180.151:4201/login | These are local test observations, not repository defaults or a production switch. The full profile, host dependencies and startup references are in the [local runbook](guides/current-local-stack.md). ## Evidence and open gates - [Source import](guides/server-source-sync-20261018.md): 146 focused backend checks, seven isolated PostgreSQL deletion cases, frontend build and 20 frontend tests recorded. Three cancellation-diagnostic expectations also failed against the original HEAD runtime and remain open baseline failures. - [Final ElevenLabs route](guides/local-gapgpt-20261018.md): 164 focused provider-free checks and successful native component warmups recorded. This does not establish human Persian accuracy, latency or listening quality. - [Strict grounding](guides/strict-grounding-20261018.md): 108 focused checks, actual gateway answer/refusal checks, six supported calibration cases and four negative cases recorded. Calibration is not held-out quality acceptance. - [LAN verification](guides/local-lan-access-20261018.md): TLS, login and WSS setup/normal close passed from the host. A second physical client remains open. - Earlier browser/interruption acceptance applies to its recorded provider/profile. The latest ElevenLabs/strict-grounding profile still needs human microphone, spoken-answer and interruption acceptance and a bounded paired comparison. - The 2026-10-20 targeted provider-free run passed 199 tests (command below). The full provider-free run stopped producing output late in the suite and was interrupted; it has no passing final result. TEST_DATABASE_URL was absent, so PostgreSQL acceptance was not run. Historical database results remain dated evidence, not verification of this checkout. The strict local gate can reject correct paraphrases and multi-source synthesis. Literal source excerpts can still be irrelevant or factually wrong. Common instructions on other adapters do not provide the local deterministic gate. ## Persistence and reproducibility Migration 0006 adds organization_settings.voice_models as an object-valued JSONB column with an empty-object default. Current public model display reads deployment settings; this column does not establish implemented model mutation endpoints. Live admission requires the new head. Apply migrations forward and retain original content, embedding metadata and existing profile bytes. Host-specific launch wrappers, credentials, local calibration/runtime evidence and certificates are intentionally ignored. A fresh checkout needs equivalent host provisioning; it cannot reproduce the running stack using tracked files alone. The [runbook](guides/current-local-stack.md) identifies those dependencies. ## Documentation/commit validation — 2026-10-20 Targeted command (199 passed in 9.73 seconds): ~~~powershell .venv/Scripts/python -m pytest tests/unit/test_server_source_sync.py tests/unit/test_grounded_voice_regression.py tests/unit/test_local_s2s_elevenlabs.py tests/unit/test_local_s2s_gapgpt.py tests/unit/test_local_s2s_engine.py tests/unit/test_local_s2s_responsiveness.py tests/unit/test_local_s2s_boundary.py tests/unit/test_local_s2s_phase2.py tests/unit/test_local_s2s_repairs.py tests/unit/test_search_phase2.py -m "not postgres" -q -o faulthandler_timeout=30 ~~~ The attempted full command was `.venv/Scripts/python -m pytest -m "not postgres" -q`. It was interrupted after several minutes without further output late in the run; the stalled case was not identified. No product fix or test expectation change was made during documentation reconciliation. Local links in changed/new Markdown were checked: 409 targets, none missing. Whitespace checks passed. A basic credential-pattern scan of the 42 changed/new files found no matching provider-key or private-key patterns; this is not a comprehensive security audit. No service startup or paid-provider call was made.