Add pinned CPU engine dependencies, retained interrupted-response history, provider admission, offline evaluation and isolated browser tooling. Record Phase 2 acceptance and Phase 3/4 preparation, bounded paid-test accounting and interruption incident findings. Human interruption acceptance, paired OpenAI evaluation and rollback remain pending.
200 lines
16 KiB
Markdown
200 lines
16 KiB
Markdown
## 2026-10-16 — interruption incident follow-up
|
|
|
|
[Evidence and scoped budget-denial repair](../evaluation/local-s2s/phase-04-interruption-incident.md): 100 focused checks passed; actual native active cancellation/retained history/next response passed offline,71.037s, zero paid calls. Browser transient error code remains unavailable; do not claim full incident or human acceptance. Exhausted engine and test API/frontend stopped. Old ledger remains exclusive; reserve$0.704504399 held. No tuning changes.
|
|
|
|
|
|
## 2026-10-16 — isolated Step 1 browser checkpoint
|
|
|
|
See [actual browser handoff](../evaluation/local-s2s/phase-04-browser-handoff.md). New retained-history engine and chooser frontend are running; proxied auth/native setup/normal close passed with no inference during connection check. Three startup requests HTTP200; carried exposure $0.420504399, current reserve $0.479504399, exclusive cumulative ceiling $0.774504399. Older ledgers unchanged. Step 1 is partial: OpenAI remains disabled until its own bounded admission is prepared; isolated real RAG/corpus/embedding preparation remains pending. No paired acceptance, human interruption test or operational switch. Engine handoff expires after30minutes; never restart the exclusive ledger.
|
|
|
|
# Local S2S adapter progress - four phases
|
|
|
|
Current preparation (2026-10-16): [Phase 4 frontend/provider selection and paired evaluation tooling](../evaluation/local-s2s/phase-04.md).
|
|
Phase 3 retains interrupted answers as explicitly unheard drafts per the user's
|
|
revised policy; real barge-in/RAG/factual acceptance remains pending. Phase 4 is
|
|
prepared for isolated testing, not deployed or accepted. No new paid request,
|
|
audio tuning or operational switch. Earlier checkpoints below are historical.
|
|
|
|
Current verdict (2026-10-16): **Phase 2 accepted for isolated development-only
|
|
normal Persian browser voice**. [Final evidence](../evaluation/local-s2s/phase-02-accepted-20261016.md)
|
|
and [machine-readable results](../evaluation/local-s2s/phase-02-accepted-20261016.json):
|
|
125 local + 258 preservation + 63 PostgreSQL tests passed; actual browser response
|
|
fully played and closed normally. Conservative cost exposure $0.420504399, below
|
|
the same $1 cap; final invoice details remain unresolved with full reserves held.
|
|
Paid engine stopped normally. No buffer/speed change or operational promotion.
|
|
Phase 3/4 remain not_started. Earlier checkpoints below are historical and are
|
|
superseded where they describe open Phase 2 gates.
|
|
|
|
Current incident follow-up: [first browser-turn initialization stall repaired](../evaluation/local-s2s/phase-02-browser-first-turn-repair-20261016.md).
|
|
User session failed after transcription. Native snapshots identified first-reply
|
|
Lingua model preload; same cache now warms before listener readiness. Three full
|
|
proxy/API/native continuous-input fixture sessions and98 focused tests pass.
|
|
Fixed image a51167d1952a; no buffer/speed/timeout change. Repair handoff carries all
|
|
prior attempts; cumulative reservation ceiling $0.995118333 of the same$1. Human
|
|
browser greeting passed: 7.296s fully played, closed/user_requested, no persisted error.
|
|
Current reserved exposure is $0.925118333; final billing and applicable DB gates
|
|
remain. Earlier ready checkpoints below are historical.
|
|
|
|
Current browser handoff (2026-10-16): [isolated browser is ready](../evaluation/local-s2s/phase-02-browser-ready-20261016.md).
|
|
Angular/API/login and actual proxied WebSocket session_ready/normal close passed;
|
|
no inference in connection check. Three real startup probes passed. Human microphone/
|
|
reply/transcript acceptance remains open. Same $1 authorization; reconciled prior
|
|
exposure $0.689118333, cumulative ceiling $0.901118333, startup reserve $0.748118333.
|
|
Private login file and 30-minute engine watchdog documented. No tuning/operational change.
|
|
|
|
Latest actual run (2026-10-16): [real native Persian round trip passed](../evaluation/local-s2s/phase-02-real-native-20261016.md).
|
|
Six actual requests succeeded, 2.528s reply audio, successful terminal/normal
|
|
release and clean shutdown. Cumulative reservation is $0.998 of the same $1;
|
|
final billing remains unresolved, so no further paid request. User accepted native output; browser/microphone remains open; earlier memory blocker below is historical.
|
|
No operational switch or audio tuning change.
|
|
|
|
Latest preparation (2026-10-16): [bounded real native session](../evaluation/local-s2s/phase-02-native-paid-preparation-20261016.md).
|
|
Single-sample pronunciation accepted by the user. Cumulative reservation ceiling
|
|
is $0.998 including the retained $0.56; no new paid request. Real launch awaits
|
|
>5GiB host headroom. Budget/runner checks and actual native fixture pass; browser
|
|
and real session acceptance remain open. Audio tuning and operations unchanged.
|
|
|
|
Updated: 2026-10-16. The original eight stages were consolidated into four before
|
|
implementation started. Scope and acceptance requirements are retained.
|
|
The consolidation itself changed planning only. Phase 1/2 offline implementation
|
|
and evaluation are now recorded below. Phase 1 real OpenAI listening and native
|
|
cleanup acceptance passed on the isolated Linux candidate. The local engine image
|
|
was built and basic native/SDK checks passed on 2026-10-16. No model-weight
|
|
download, operational switch or new paid call occurred during that retry.
|
|
|
|
[Plan](local-s2s-adapter-plan.md) | [Four active prompts](local-s2s-adapter-prompts/README.md)
|
|
|
|
| Phase | Status | Evidence | Visible demo | Blockers |
|
|
| --- | --- | --- | --- | --- |
|
|
| 1 - Preserve OpenAI and introduce the provider boundary | accepted | [Phase 1 report](../evaluation/local-s2s/phase-01.md); [final Linux listening/native cleanup evidence](../evaluation/local-s2s/phase-01-linux-preparation.md); historical 242 focused passed, broader failures disclosed | Actual Persian greeting, two interruptions including completed-unplayed audio, subsequent speech and normal close; user reports no errors | Phase 2 requires complete source, reviewed dependency lock and actual engine build; rollback restoration unproved |
|
|
| 2 - Add an isolated local stack and browser voice session | accepted | [Final acceptance](../evaluation/local-s2s/phase-02-accepted-20261016.md): 125 local + 258 preservation + 63 PostgreSQL passed; actual components/native/browser evidence | Real Persian greeting/reply/transcripts; full 7.296s playback; persisted closed/user_requested without error | No open Phase 2 gate; delayed invoice accounting retains full reserves; no safe interruption or operational promotion claimed |
|
|
| 3 - Complete interruption, shared RAG and used sources | in_progress | [Retained-answer implementation](../evaluation/local-s2s/phase-03.md); controlled native context/history and canonical tool tests | Retained text is marked not fully heard; no real browser/factual acceptance yet | Bounded live barge-in/repeat/RAG and approved critical factual evidence |
|
|
| 4 - Validate quality/cost and prove controlled switch/rollback | offline_prepared_live_pending | [Provider chooser, scorecard and runbook](../evaluation/local-s2s/phase-04.md) | Angular selector and backend pinned selection prepared; no operational switch | Phase 3 live acceptance, paired quality/cost/fault/human checks and actual authorized restoration |
|
|
|
|
Real components **2026-10-16**: [actual paid-stage results and budget qualifications](../evaluation/local-s2s/phase-02-real-components-20261016.md).
|
|
User authorized $1. One WAV HTTP400, then an explicit PCM correction and successful
|
|
TTS/STT/LLM calls; four attempts total, $0.56 retained conservative reservation.
|
|
Reported STT+LLM cost $0.000338333333333; TTS/final total unverified (billing lookup404,
|
|
unchanged key usage is not proof of free calls). Real 5.16s Persian audio retained
|
|
for human review; STT returned کتاه versus source کوتاه. No heavy engine/browser
|
|
or operational changes. Do not spend again before reconciling the retained budget.
|
|
|
|
Earlier native session follow-up **2026-10-16**: [actual cases, cleanup repairs and IDE-memory incident](../evaluation/local-s2s/phase-02-native-session-20261016.md).
|
|
Normal turn/close, real SIGINT/SIGTERM and controlled provider failure passed with
|
|
actual local assets/handlers/SDK and fixture upstream I/O. Mismatch and intent
|
|
checks passed in the final normal run. 110 focused tests passed. Shutdown now
|
|
cancels provider connections before joining native workers and accepted clients
|
|
before server wait_closed. Budgets/tuning unchanged. Concurrent tests coincided
|
|
with an actual systemd-oomd IDE kill; continuation is sequential with hard memory/
|
|
swap/headroom guards. Cold one-core startup/response failures remain disclosed;
|
|
normal/failure passed with two CPUs. No paid calls, downloads or operational switch.
|
|
|
|
Earlier Queue repair **2026-10-16**: [actual corrected-image evidence](../evaluation/local-s2s/phase-02-queue-repair-20261016.md).
|
|
Type-compatible subclass replaces the lambda, preserving 256-item capacity and
|
|
owner stop on overflow. 109 targeted tests and actual asset-backed construction,
|
|
three fixture warmups, queue regression and cleanup pass. Corrected image uses a
|
|
separate tag; original image and audio tuning preserved. Native session/audio and
|
|
full-engine POSIX checks remain open; no paid calls or downloads in this repair.
|
|
|
|
Earlier authorized acquisition follow-up **2026-10-16**: [download/load evidence and discovered construction defect](../evaluation/local-s2s/phase-02-linux-assets-20261016.md).
|
|
Missing resources resolved: 14-file Linux manifest, real NLTK POS and Silero JIT
|
|
load plus 8/16 kHz silence inference passed offline. Full construction then failed
|
|
because the current Queue lambda is incompatible with upstream Queue[Any] type
|
|
annotations. No runtime fix or paid call in this download task. Repair that
|
|
factory while preserving capacity/stop behavior before further engine acceptance.
|
|
|
|
Earlier offline follow-up **2026-10-16**: [assets and actual Linux signal subset](../evaluation/local-s2s/phase-02-offline-preflight-20261016.md).
|
|
Four real SIGINT/SIGTERM cases passed using the actual lifecycle/HTTP gateway with
|
|
fixture runtime/provider I/O. Four locally cached punkt files matched prior
|
|
fingerprints and loaded in the image. NLTK POS tagger and Silero source/JIT bundle
|
|
were not found; full preflight correctly rejects the incomplete resources. Full
|
|
engine/POSIX and real-audio gates remain open. Next requires offline transfer or
|
|
authorized acquisition of those missing resources. No downloads or paid calls.
|
|
|
|
## Phase evidence template
|
|
|
|
Latest **2026-10-16** image retry passed: [actual result](../evaluation/local-s2s/phase-02-image-build-20261016.md).
|
|
Image built; basic native/SDK and 423 focused checks passed. Older not-built/disk
|
|
blockers below are historical; full asset-backed engine and Phase 2 live gates stay open.
|
|
|
|
Latest image-build checkpoint: [actual attempt](../evaluation/local-s2s/phase-02-image-build.md)
|
|
cancelled by the disk guard during dependency installation (exit 130); no final
|
|
image. Task resolver cache moved to tmpfs without deletion; root returned to about
|
|
1.8 GiB free. More Docker-disk space required (prefer at least 4 GiB free) before
|
|
retry. No voice tuning, operational changes, pruning, models or provider calls.
|
|
|
|
Latest dependency checkpoint: [Linux CPU lock review](../evaluation/local-s2s/phase-02-dependency-lock.md)
|
|
passed resolution and a wheel-only hash-required installation dry run for 134
|
|
packages. Matching CPU torch/audio 2.11.0, exact wheel URLs, verified trixie base
|
|
manifest and full license/size metadata recorded. No install/build/model download,
|
|
provider call or voice tuning. Missing lock/source prerequisites are resolved;
|
|
actual image build, native/engine/asset conformance and live gates remain open.
|
|
|
|
Latest source-only checkpoint: clean full pinned source is now available in
|
|
`tmp/local-s2s-upstream-619e3fe4`, detached at
|
|
`619e3fe4f71d1c6f35c15870d588a3638de34722`. All 17 audited SHA-256/blob identities
|
|
and Git object integrity passed; [evidence](../evaluation/local-s2s/phase-02-source-checkout.json).
|
|
This closes the missing-source prerequisite only. No dependencies/models/builds,
|
|
provider calls or voice configuration changes. Next: reviewed Linux lock inputs
|
|
and resolver environment; Phase 2 still in_progress.
|
|
|
|
- Phase/status and prerequisite evidence:
|
|
- Reviewed diff/implementation commit:
|
|
- Preserved operational and rollback identities:
|
|
- Pinned upstream and patch revision:
|
|
- Candidate effective profile without credentials:
|
|
- Exact commands, counts and results:
|
|
- Actual / simulated / unverified observations:
|
|
- Visible demo and outcome:
|
|
- Bounded paid-call authorization/usage when applicable:
|
|
- Decisions, blockers, not-run checks and risks:
|
|
- Acceptance verdict / next allowed phase:
|
|
|
|
States: not_started, in_progress, offline_complete_live_pending, blocked, accepted.
|
|
Only accepted closes a mandatory gate. Inspect current deployment before each
|
|
operational action; historical notes do not establish current provider selection.
|
|
|
|
|
|
Acceptance preparation checkpoint: [concrete runbook](../evaluation/local-s2s/phase-02-acceptance-checklist.md).
|
|
Phase 1 remains open for actual changed-source OpenAI listening and bounded consent.
|
|
No reviewed runtime changes; the 74/107/242 baseline was not repeated. New local
|
|
DB checks used the guarded disposable target and restored stopped state. Asset
|
|
fingerprints/NLTK load are host evidence, not Linux engine or real audio evidence.
|
|
No downloads/builds/paid requests/operational switch. Phase 2 remains in_progress;
|
|
complete engine/POSIX, component audio and isolated Persian browser gates stay open.
|
|
|
|
Linux follow-up: [isolated Phase 1 environment](../evaluation/local-s2s/phase-01-linux-preparation.md)
|
|
is running on API 127.0.0.2:8091 / Angular 127.0.0.2:4201 using cached Linux
|
|
images and current read-only source. Migrations, actual candidate DB identity,
|
|
bootstrap, readiness and proxied login/Origin/CSRF checks passed. One bounded
|
|
OpenAI test authorized; no provider session or speech capture executed yet.
|
|
Human listening and native cleanup evidence remain pending; phase statuses unchanged.
|
|
|
|
First Linux browser-start follow-up: missing validation-only embedding limits
|
|
made configuration advertise voice=false before reservation. Candidate override
|
|
corrected; actual authenticated configuration now returns voice/captions=true,
|
|
transport testing true, uncalibrated. No provider session opened; speech/native
|
|
cleanup acceptance remains pending. Details in the Linux preparation report.
|
|
|
|
Real Linux OpenAI test: audible speech/interruption reported; numeric traces show
|
|
cancelled/limited terminals, matching truncation acknowledgements and normal close.
|
|
User rejected the shortened 256-token test profile. Candidate cap restored to
|
|
the established 2048; effective speed 1.30 and buffer values verified unchanged,
|
|
readiness 200, no new paid session. See Linux report; no phase accepted.
|
|
|
|
Subsequent user-run test reached the artificial 3/3 response-intent ceiling
|
|
(`RESPONSE_INTENT_CAPACITY`, public `LIVE_BUFFER_OVERFLOW`). Tool continuations
|
|
also count; this was not audio-buffer exhaustion (peak 302,704 / 5,760,000 bytes).
|
|
No tuning or provider calls during diagnosis; bounded test design must account
|
|
for tool continuations before another run. Normal-session acceptance stays open.
|
|
|
|
Follow-up correction: removed only the candidate's artificial three-intent
|
|
override; actual baseline capacity 256 verified. Generation cap 2048, speed 1.30,
|
|
all inspected buffers and 60s test expiry unchanged; readiness 200. No live call
|
|
during correction. This runtime ceiling is not an expanded paid-call budget.
|
|
|
|
Final Linux acceptance supersedes the earlier live-pending checkpoints: Phase 1
|
|
provider-boundary/OpenAI preservation accepted after the successful user-run
|
|
speech/interruption/normal-close session and matching native/DB evidence.
|
|
Phase 2 remains in progress; no engine build or local-provider acceptance claimed.
|