# Local Windows stack: consolidated handoff Last recorded activation: 2026-10-18. Documentation reconciled: 2026-10-20. This is the isolated Windows development stack, not an operational deployment. No startup or paid call was performed while writing this guide. ## Routing and required profile Set the following consistently for the API and engine's frozen profile: ~~~dotenv VOICE_PROVIDER=local_s2s LOCAL_S2S_ENABLED=true LOCAL_S2S_COMPONENT_PROVIDER=gapgpt LOCAL_S2S_STT_PROVIDER=elevenlabs LOCAL_S2S_STT_MODEL=scribe_v2 LOCAL_S2S_LLM_MODEL=gpt-4.1-mini LOCAL_S2S_TTS_PROVIDER=elevenlabs LOCAL_S2S_TTS_MODEL=eleven_v3 LOCAL_S2S_TTS_VOICE=JBFqnCBsd6RMkjVDRZzb LOCAL_S2S_TTS_SPEED=1.2 LOCAL_S2S_REQUEST_TIMEOUT_SECONDS=60 LOCAL_S2S_STRICT_GROUNDING=true ~~~ These settings describe the final recorded override, not defaults in .env.example or docker-compose.local-s2s-test.yml. The tracked standalone Compose starts with a non-inference embedding endpoint for transport fixtures and is not a replacement for this host's RAG-enabled Compose. Preserve candidate isolation guards, real frozen embedding identity, engine token and matching attestation. Only the engine reads /run/secrets/gapgpt_api_key and /run/secrets/elevenlabs_api_key. Host files are ignored .local-s2s-build/gapgpt-api.key and .local-s2s-build/elevenlabs-api.key. Never copy their contents into docs, source, frontend or Git. STT/TTS use native ElevenLabs endpoints; only dialogue uses GapGPT. No automatic fallback is provided. TTS explicitly requests mono 16-bit PCM at 24 kHz; ElevenLabs speed must be 0.7–1.2. Strict grounding buffers completion output before TTS and validates current-turn, reported, successfully retrieved/revalidated evidence. Unsupported prose becomes a fixed abstention. Whole-chunk retrieval is bounded to ten sources/12,000 characters; preserve a calibration report matching whole-10-12000. ## Host prerequisites and startup The existing stack uses isolated database rag_bge_local_s2s_test, durable original and extraction volumes, host Ollama and the sibling Angular production build. Its embedding identity is http://localhost:11434/v1. A namespace-sharing stdlib TCP relay forwards this identity to host Ollama; do not rewrite frozen metadata to host.docker.internal. Preserve documents, selection and embedding profiles. Required ignored host artifacts include windows-gapgpt.compose.json, gapgpt-compose.py, the provider key files, current calibration/engine assets, preview configuration and test login file. Inspect their presence locally. Do not print credentials. If these files are absent on a fresh checkout, reconstruct the host configuration using the [backend operations guide](phase4-backend-operations.md), tracked standalone candidate Compose and [engine guide](../../services/local_s2s/README.md). A portable recreation of the host wrapper is not present in Git. With the previously provisioned artifacts, the recorded commands are: ~~~powershell .venv/Scripts/python .local-s2s-build/gapgpt-compose.py up -d .venv/Scripts/python .local-s2s-build/gapgpt-compose.py ps .venv/Scripts/python .local-s2s-build/check-gapgpt.py .venv/Scripts/python .local-s2s-build/check-lan.py ~~~ Starting/recreating the engine can issue real component warmups. Confirm the applicable provider budget before running these commands; old exclusive ledgers are historical records, not reusable authorization. Do not launch a worker against an unrelated queue. Apply alembic upgrade head to the intended isolated database before API startup; current Live head is 0006_voice_model_settings. ## Frontend, HTTPS and recovery Loopback preview: http://127.0.0.2:4201/login, proxying API 127.0.0.2:8092. LAN preview: https://192.168.180.151:4201/login, with same-origin API/WSS. The sibling source is D:/raymand/projects/faq_chatbot_frontend. Its build/test commands are npm.cmd run build and npm.cmd test -- --watch=false. LAN configuration is ignored .local-s2s-build/lan-preview.config.mjs. The firewall rule RAG-Local-LAN-HTTPS-4201 is restricted to LocalSubnet. Each physical client needs the public development CA trusted and browser microphone permission. The generated certificate lasts 30 days; check validity before reuse. A changed IP requires certificate SAN, binding and trusted origin/host updates. Restore the public CA copy after frontend rebuild if needed. Never publish the private server key. See [LAN setup](local-lan-access-20261018.md). Check /health/ready, authenticated document listing and knowledge selection, F01 public provider/model inventory, then WSS session_ready and normal close. A ready API is not evidence that embeddings are reachable from inside containers. Use a new voice conversation after profile changes. On failure, inspect numeric diagnostics without exposing provider keys or source bodies. For recreation, retain database and original/extraction volumes; do not use down -v or reset the embedding identity. Restore the exact compatible profile and image/configuration, migrate forward and repeat readiness/connection checks. A rollback to older runtime code must account for its schema-head requirements; downgrading the database is not the documented recovery path. ## Validation boundaries See [current status](../current-status.md) and the dated [provider activation](local-gapgpt-20261018.md), [source import](server-source-sync-20261018.md) and [grounding](strict-grounding-20261018.md) evidence. The latest profile still needs human microphone/spoken-RAG/interruption tests and a second-client LAN check. Existing warmups, synthetic audio and host-local WSS checks do not close those gates.