Refresh entry points and progress checkpoints, document schema revision 0006, and consolidate the final ElevenLabs/GapGPT profile and host prerequisites. Preserve dated activation evidence and distinguish implementation, targeted validation, incomplete full-suite checks and remaining human acceptance gates. Validation: 409 local Markdown link targets resolved and staged whitespace checks passed.
5.2 KiB
Deployed source import — 2026-10-18
User scope: import the server's stronger S2S logging, document deletion and model settings into the existing local backend and sibling Angular source tree.
Provenance
All seven imported runtime Python sources matched SHA-256 hashes read from the running API and S2S engine containers. Release directories are not assumed to represent the live code without that comparison. No deployed service was changed. Server environment files, provider keys, data and host-specific Compose settings were excluded from the import.
Backend files: app/api/v1/documents.py, app/modules/documents/deletion.py,
app/api/v1/knowledge.py, app/modules/voice/model_catalog.py,
app/modules/voice/runtime.py, app/modules/voice/diagnostics.py,
services/local_s2s/components.py. The supplied deletion regression suite was
imported as tests/integration/test_document_deletion.py.
Angular source: D:/raymand/projects/faq_chatbot_frontend/src/, from the final
server deletion release (which includes the preceding model settings changes).
Only six differing existing files and one new test were transferred; 100 source
files were already identical after line-ending normalization. Changed files:
app/pages/settings/settings.page.ts, settings.page.html,
settings.live.spec.ts, app/services/documents/documents.service.ts,
documents.types.ts, app/services/http-request/http.service.ts, and
app/shared/ui/ai-model-config-card/ai-model-config-card.component.ts.
Previous frontend files are backed up under ignored
temp/server-sync-20261018/frontend-before/.
Deletion retains original content/chunks, removes search eligibility, increments revision/epoch when removing active knowledge, fences worker publication and invalidates older conversations/sessions. It does not physically purge content. Model settings display deployment-owned identifiers and reuse existing Live provider selection. Provider secrets remain on the backend.
Validation
Validation is recorded below after completion. No real provider inference or browser microphone acceptance is implied by mock/provider-free tests.
Initial focused run: 157 passed, 3 failed. The three failures in
test_voice_search_interruption.py::test_profile_cancellation_diagnostics also
reproduce with the original HEAD runtime loaded in memory (3 failed, 1 passed).
They are pre-existing expectations around cancellation diagnostic profile flags
and the coral cancellation policy; assertions and policy were not changed.
npm.cmd run build: passed (one CommonJS warning for existing moment-jalaali).
PowerShell blocks npm.ps1 on this host; npm.cmd runs the same installed tool.
Final focused backend command:
.venv/Scripts/python -m pytest tests/unit/test_server_source_sync.py tests/unit/test_local_s2s_responsiveness.py tests/unit/test_local_s2s_phase2.py tests/unit/test_local_s2s_repairs.py tests/unit/test_voice_session_incident.py -m "not postgres" -q
Result: 146 passed. Covers public model-role gating, secret suppression,
component completion trace fields, existing S2S lifecycle and incident behavior.
PostgreSQL command (TEST_DATABASE_URL pointing only at the disposable
rag_sync_20261018_test database on localhost:55439):
.venv/Scripts/python -m pytest tests/integration/test_document_deletion.py -m postgres --require-postgres -q
Result: 7 passed, no skips. Active/inactive deletion, recorded replay and
changed-payload conflict, stale revision, organization/role authorization,
concurrent replay, worker fencing, authenticated HTTP/CSRF all passed.
The rag-sync-20261018-postgres container used --rm with no persistent volume and
was stopped/removed afterward. Local Docker Desktop was started for these tests;
its existing configured containers also resumed automatically. No server-side
service was restarted or modified.
Frontend commands, from D:/raymand/projects/faq_chatbot_frontend:
npm.cmd run build: passed.npm.cmd test -- --watch=false --include=src/app/pages/settings/*.spec.ts --include=src/app/services/documents/*.spec.ts: 20 passed across three files.
The first frontend test run found two test integration defects: the imported Live
spec lacked zoneless configuration, and the existing deletion test expected the
old unsupported-action notice with no delete mock. Both were updated for the
intentional feature activation. Added HTTP DELETE body/credentials/CSRF/key
coverage and ambiguous-failure retry identity coverage. Runtime frontend sources
remain identical to the supplied final source release; only tests were adapted.
Two further frontend test files changed during validation:
app/pages/settings/settings.page.spec.ts and
app/services/documents/documents.service.spec.ts.
Provenance limit: the server's currently selected frontend-dist index loads
main-RIHA5TKM.js, whereas the final source release includes
main-FK3BDLSA.js. Thus the frontend import is attributed to the final release
source artifact, not claimed as a reconstruction verified against the currently
served minified bundle. The backend source matches were verified against running
containers. No remote bundle or deployment setting was replaced.
No full-suite, production deletion, browser microphone or real-provider inference claim is made. The three baseline cancellation-test failures remain open.