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.
3.7 KiB
Phase 2 Queue construction repair — 2026-10-16
The actual engine constructor now succeeds. The launcher binds the existing
FailClosedQueue through a local subclass instead of a lambda, so upstream
Queue[Any] annotations remain valid. Capacity remains 256 items, FIFO order
is preserved, and overflow still sets the owner stop event and raises
LOCAL_ENGINE_QUEUE_CAPACITY. No audio tuning, pipeline settings, provider
contract, dependency or operational service changed.
This supersedes the construction blocker in the resource acquisition report. Phase 2 remains in_progress: construction is not a running native session, speech-quality acceptance or native-worker signal test.
Verified checks
- 109 targeted tests passed, zero failures/errors/skips. Command and timing are in the machine-readable evidence. Initial restricted-sandbox execution blocked local sockets (22 failures and one setup error); the unchanged suite passed with local socket access.
- The enhanced construction regression passed in the corrected image with real local NLTK/Silero resources and actual pinned handlers/SDK. Only upstream HTTP responses were fixtures; external networking was disabled and no provider credential was supplied.
- Constructed handlers: VAD, OpenAI-compatible STT, transcription notifier, Chat Completions LLM, LM output processor and OpenAI-compatible TTS. Attestation checked the initialized components. Exactly three fixture warmup requests, one per STT/LLM/TTS route, were accepted and released.
- The regression instantiated the installed
pipeline.Queue[int], filled its 256 slots, observed the expected overflow error/owner stop, and drained every item in FIFO order. Final runtime state wasstopped; the component gateway joined with zero pending requests. No native server or browser session started. git diff --checkpassed. No PostgreSQL test or broad-suite pass is claimed.
Corrected candidate image
The preserved original image is
sha256:5c80c77c54da4641318e69cdb8fff092391cd746e491fa8029280c2999ce27d1.
The corrected image is tagged rag-local-s2s-candidate:phase2-queue-fix:
sha256:6ad4a6a418ef3122923724760b9b2fa8e55cd7db10189614492f5e2b1dc23a74
It adds only the corrected launcher to the verified old image, without dependency installation, using this generated recipe after verifying the old tag's ID:
FROM rag-local-s2s-candidate:phase2
COPY services/local_s2s/engine.py /app/services/local_s2s/engine.py
Actual build used --pull=false --network none. The initial full-recipe offline
attempt could not reuse the dependency-install RUN cache and failed on DNS, so
the minimal correction layer avoided any new downloads. No operational image was
retagged or container restarted. The inherited embedded build-input manifest still
describes the original base preparation; the new image identity and corrected
source hashes are recorded externally in this report's JSON, not represented as
an original full-recipe build.
To repeat the construction check, use the resource report's exact Docker command,
substituting the corrected image ID above and
docs/evaluation/local-s2s/image-construction-smoke.py as stdin. Resources and
manifest mounts remain the same. No source overlay is needed in the corrected
image. The normal service Dockerfile also copies the corrected launcher on future
full builds; default Compose selection was not changed by this repair.
Next: controlled native server/session/audio execution and native pipeline POSIX cleanup, followed by separately authorized real components and Persian listening. No real provider call, model download or Phase 2 acceptance occurred here.