- Record measured acceptance evidence across real Q01, continuation, and topic change runs - Add next-session checklist for remaining 60-second continuous speech and quality benchmark - Add guide for numeric latency and playback diagnostics
120 lines
7.5 KiB
Markdown
120 lines
7.5 KiB
Markdown
# Live repair: next-session checklist
|
||
|
||
Paused by the user on 2026-10-12. Resume on 2026-10-13 with the **60-second
|
||
continuous-input scenario**. No tests or implementation should continue during
|
||
the pause. The [progress report](live-conversation-repair-progress.md) records
|
||
completed repairs and measured evidence; the [repair plan](live-conversation-repair-plan.md)
|
||
still governs acceptance. Manual success on isolated scenarios does not complete
|
||
the combined acceptance or production budget selection.
|
||
|
||
## Restore the local test environment
|
||
|
||
- Backend repository: `/home/moz/Projects/raymand/projects/rag-technical-docs-assistant`,
|
||
branch `feat/ingestion-foundation`. Frontend repository:
|
||
`/home/moz/Projects/raymand/projects/faq_chatbot_frontend`, branch
|
||
**`feat/backend-changes`**. Preserve both dirty trees; exclude unrelated `.aws`.
|
||
- Frontend URL: `http://localhost:4200`; backend: `http://127.0.0.1:8000`.
|
||
Verify `/health/ready` returns 200, login succeeds and voice is enabled before
|
||
asking the user to speak. Existing process IDs are not reliable tomorrow.
|
||
- Backend entry point is `app.server`. Temporary launcher:
|
||
`/tmp/live_acceptance_server.py`; private override file:
|
||
`/tmp/rag-live-acceptance-20261012/runtime.json`. Do not print its contents or
|
||
credentials. If these temporary files are missing, reconstruct the isolated
|
||
environment from the progress report rather than silently using production.
|
||
- Task-owned pgvector container: `rag-live-acceptance-20261012`, loopback port
|
||
32769; database `rag_live_acceptance_ipv4_test`. Verify the ready/active synthetic
|
||
document `51cb12a1-caac-4548-994f-91f487d4dff7` remains selected and actual
|
||
calibration is available. Do not replace original documents or fake readiness.
|
||
- Ollama `bge-m3` endpoint is pinned to `http://127.0.0.1:11434/v1` for this
|
||
isolated corpus. The bounded residency helper from today expires and must not
|
||
be assumed active tomorrow. Check embedding availability/latency; report any
|
||
warmup separately from application repair.
|
||
- Actual Live provider: **OpenAI**, model **gpt-realtime-2.1**, voice **shimmer**,
|
||
delivery revision **v4**, local candidate budget **2048**, speed **1.15**,
|
||
OpenAI-only reservoir **5760000 bytes**. Keep these constant for scenario
|
||
comparison. Newly reserved sessions pin the current profile.
|
||
- Backend numeric trace is enabled in the temporary environment. Browser
|
||
diagnostics are development Info-level. Preserve console and backend timelines
|
||
for each session; no raw microphone recording is required. No automated
|
||
browser/audio acceptance is available unless a browser is actually connected.
|
||
|
||
## Remaining manual scenarios, in order
|
||
|
||
1. **60-second continuous input — next test.** Start a new call; use a timer and
|
||
speak naturally for approximately 60 seconds without a deliberate long pause.
|
||
End with a clear question. Keep the call open through the full answer.
|
||
Verify the last part of the question is received, no overflow/early cutoff
|
||
occurs, and text/audio finish. Record actual speech duration rather than
|
||
inferring it from time since connection. The 20–30-second replay does not
|
||
substitute for this boundary test.
|
||
2. **Conditions and exceptions.** Ask a question requiring several material
|
||
facts in the fixed synthetic corpus, e.g. the research discount conditions
|
||
and which charges it excludes. Check all essential facts, complete sentences
|
||
and full audio drain. Evaluate against the fixture; do not add special routing,
|
||
synonyms or prompt examples just to make this document pass.
|
||
3. **Deliberate limited answer.** Separately exercise a controlled low-budget
|
||
profile to verify limited status, no duplicated final text and playback of
|
||
every admitted audio sample. Record the changed profile; restore the local
|
||
candidate before normal scenarios. This is not a repair that permits ordinary
|
||
answers to end mid-sentence.
|
||
4. **Combined same-connection sequence, three repetitions.** Within each call:
|
||
30-second silence → 60-second question → complete answer → same-topic continue
|
||
→ explicit topic change → interrupt and ask a clear new question → conditions/
|
||
exceptions → close. Do not reconnect inside a sequence to conceal failure.
|
||
Confirm evidence reuse and fresh topic retrieval from durable records and
|
||
verify final audio drain and cleanup.
|
||
|
||
For each run record session/turn/audio refs, pinned profile, tool query/result and
|
||
retrieval count, terminal/close reason, generated/sent/consumed/discarded samples,
|
||
peak backlog and the user's audible result. Mark user feedback separately from
|
||
independently correlated telemetry. If it fails, diagnose that run before moving
|
||
to the next scenario; do not enlarge timeouts or fabricate playback progress.
|
||
|
||
## Remaining engineering and acceptance work
|
||
|
||
- **Issues 2/4/9:** intermittent choppiness/playback-progress stall and full
|
||
interruption acknowledgement acceptance remain open. One three-turn run is
|
||
fully conserved, but the earlier five-second stall is unexplained. Collect
|
||
browser context/capture/consume diagnostics if it reproduces. Control-queue
|
||
overflow was a separate defect and has a general ASR-coalescing fix.
|
||
- **Issues 3/11:** execute the fixed 20-question × 4 budgets (512/1024/2048/4096)
|
||
× 3 repetitions matrix with predetermined essential facts. The benchmark is
|
||
prepared, not executed. Select the smallest qualifying budget, verify complete
|
||
audio and peak backlog below 80%, and measure real-process/provider memory
|
||
separately from the existing synthetic allocation test.
|
||
- **Issue 12:** investigate provider graceful-close timeouts/abort and the
|
||
unretrieved `LIVE_SESSION_UNUSABLE` future observed during close. Bounded
|
||
shutdown code is present; clean live resource release is not fully accepted.
|
||
- **Retrieval quality:** latest query became «پذیره» and returned `no_evidence`
|
||
with zero sources despite the user's fee question. Search was executed. Input
|
||
recognition versus query formulation remains unresolved; the user accepts
|
||
the silence/transport test, not a demonstrated fix for the query mismatch.
|
||
- Run required final regressions after any further implementation. Today's
|
||
latest queue change passed 220 focused tests; earlier broader evidence does
|
||
not establish a final full-tree suite result. PostgreSQL checks require an
|
||
isolated configured database and `--require-postgres`.
|
||
|
||
## Git handoff
|
||
|
||
Both repositories contain uncommitted repair work; no commit/push was made.
|
||
Frontend currently has four modified files (worklet, its test, audio engine and
|
||
stream service), primarily numeric playback diagnostics and sample accounting.
|
||
They need a **separate frontend commit on `feat/backend-changes`**; backend
|
||
code/tests/contracts/docs need their own commit. Inspect staged content and
|
||
exclude secrets, temporary acceptance credentials and unrelated `.aws`.
|
||
|
||
Frontend build and 90 focused voice tests passed at the latest frontend
|
||
checkpoint. Explicitly use installed Node 22.23.1 when rerunning: escalated shell
|
||
defaults to Node 20 and previously failed jsdom/undici initialization.
|
||
Do not claim the diagnostics patch itself fixed the intermittent playback stall.
|
||
No new implementation or commits are part of today's pause/report request.
|
||
|
||
|
||
## Frontend commit checkpoint — 2026-10-12
|
||
|
||
Supersedes the earlier uncommitted-frontend status: at the user's explicit
|
||
request, all four reviewed frontend files were committed on `feat/backend-changes`
|
||
as **52202c2** (`Add live voice playback diagnostics and sample accounting`).
|
||
The frontend working tree is clean. No push was performed. Backend changes
|
||
remain uncommitted, and live acceptance remains paused until tomorrow.
|