Files
rag-technical-docs-assistant/docs/evaluation/local-s2s/windows-browser-handoff-20261017.md
amirhosein mazaheri 628aec8def feat(voice): implement local S2S responsiveness candidate and direct TTS routing
Add local S2S responsiveness candidate pinning ASR options and sentence-at-a-time generation. Route speech synthesis directly to OpenAI API for fluent Persian phonetics with gpt-4o-mini-tts-2025-12-15. Add responsiveness, budget carry, and browser watch unit tests along with acceptance benchmarks and evaluation evidence.
2026-10-17 13:02:41 +03:30

30 lines
4.2 KiB
Markdown

# Windows browser handoff ? 2026-10-17
Status: **ready for human microphone/interruption checks; neither Phase3 nor Phase4 accepted**.
Browser: http://127.0.0.2:4201/login. Private account details are in `.local-s2s-build/windows-browser-login.txt`. Select ?????? ?????. This is an isolated voice transport environment; real document RAG and bounded OpenAI comparison are not ready.
## Actual evidence
- Separate project `rag-local-s2s-windows-test` owns a fresh PostgreSQL database, originals/extractions volumes and account; existing operational and prior test data unchanged. API8092 readiness200, new administrator bootstrap successful.
- Actual Angular source built in19.165s; Vite preview serves the generated bundle and proxies HTTP/WebSocket. Development server used553MiB; preview used64MiB at the observed sample. Existing frontend package.json changes preserved.
- Actual proxied login and metadata passed. Explicitly selected local session reached `session_ready`; close persisted `closed/user_requested`. No microphone data sent. Component attempts remained3 before/after the connection check.
- Three actual startup requests (STT/LLM/TTS) returned200. No manual retry/reset. Full documentary carry$0.704504399 retained; current reserved exposure$0.763504399; exclusive cumulative ceiling$0.940504399 below the original$1 cap. This is conservative exposure, not final invoicing. Four attempts per stage include startup, so at most three further admissions per stage remain; batching/failure/interruption may consume these earlier than three user turns.
- Key was available under existing legacy `API_KEY` with OpenRouter endpoint; copied privately to engine-only secret mount. API/browser receive neither it nor OpenAI inference keys. Preserved original profile remains private and unchanged. OpenAI metadata is `not_configured` in this test API until separate bounded admission exists.
- Watchdog uses the measured native Windows memory increase plus2500MiB runtime floor and256MiB margin for preflight (3,816,460,288 bytes), and >5GiB Docker VM availability. Both Windows and VM runtime floors remain2500MiB. Only its engine stops on low memory, startup failure or30minute expiry; no restart of the exclusive ledger is allowed. Nominal expiry **10:06:40 Tehran,2026-10-17**; memory/exit can end it earlier.
## Implementation and checks
The evaluation budget guard adds an explicit documentary carry mode. It validates the exact known checkpoint and rejects mixed private/documentary evidence; it does not fabricate historical requests or invoices. Existing private-ledger paths remain supported. Failures retain reservations; quota denial occurs before provider I/O. Guard code is mounted read-only into the candidate. The connection checker accepts optional account/ledger/report paths, retaining old defaults.
- Budget/history/evaluation/provider selection: **60 passed in9.14s**.
- Budget/supervisor checks: **10 passed in0.69s**, including six overlapping budget cases. They test exclusive-ledger rejection, changed-carry rejection, failure retention, low-memory no-launch and only-owned-engine shutdown on memory/expiry.
- Compose validation, Windows configuration-only no-inference run, real metadata validation in a disposable directory and final `git diff --check` passed.
- Actual startup and authenticated proxied native connection are real-provider evidence limited to the described checks. They do not establish human Persian quality, interrupted-answer compliance or factual correctness. [Sanitized handoff](windows-browser-handoff-20261017.json).
## Human action now required
Use short, non-document questions. Exercise interruption with a same-answer repeat and then a brief continuation, listening for stale audio/errors and retained answer behavior. Keep answers short because the budget has only three additional admissions per component. Report the exact error code if any. No phase closure from this handoff.
Approved corpus/factual annotations, compatible bounded embedding/search preparation, OpenAI admission, paired comparison and restoration remain pending. Do not enable unrestricted OpenAI or bypass calibration to call document retrieval ready. If this handoff expires, create a new carried ledger only after reconciliation; never rerun this ledger.