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.
105 lines
6.0 KiB
Markdown
105 lines
6.0 KiB
Markdown
# Phase 2 Linux CPU dependency lock — 2026-10-15
|
|
|
|
Status: **hash lock resolved and wheel-only installation dry run passed**.
|
|
This is dependency preparation, not image build, native import or engine acceptance.
|
|
Phase 2 remains in_progress. No voice configuration or operational service changed.
|
|
|
|
## Artifacts and target
|
|
|
|
- [Complete dependency input](../../../services/local_s2s/requirements-linux-cpu.in)
|
|
retains every dependency from the pinned upstream manifest, application base
|
|
manifest and existing api/voice/embedding extras. No upstream branch was removed.
|
|
- [CPU constraints](../../../services/local_s2s/cpu-constraints.txt) use exact
|
|
official CPython 3.11 Linux x86_64 wheel URLs and SHA-256 for both
|
|
`torch==2.11.0+cpu` and `torchaudio==2.11.0+cpu`.
|
|
- [Final lock](../../../services/local_s2s/requirements-linux-cpu.lock): **134
|
|
packages**, each with hashes; no NVIDIA/CUDA/triton package requirements.
|
|
- [Machine-readable review](phase-02-dependency-lock.json): input/lock/resolver
|
|
fingerprints, commands, registry manifest, package license metadata and size estimates.
|
|
- Resolver **uv 0.9.7**, host CPython 3.13.7, cross-resolution target **Python 3.11,
|
|
x86_64-manylinux_2_40**. Actual Python 3.11 imports are not yet tested.
|
|
- Registry-verified amd64 base:
|
|
`python:3.11-slim@sha256:e529028263dbe6910a2d96f7d2b8f5266385e917fd45d286ef166977c094a51e`.
|
|
Manifest annotations identify Python 3.11.17 and Debian trixie-slim. Its layers
|
|
were **not** pulled. Debian documents trixie's [glibc 2.41](https://packages.debian.org/trixie/libc6),
|
|
which is consistent with the selected manylinux floor; verify inside the actual
|
|
image before claiming native compatibility.
|
|
|
|
The earlier recorded base digest was absent locally and failed remote verification.
|
|
It is not the base for this lock. The new manifest was inspected by exact digest;
|
|
multi-platform registry traversal also had a timeout, not an image-build failure.
|
|
|
|
## Commands and checks
|
|
|
|
Prepared source/inputs with the existing helper, using the clean pinned checkout.
|
|
The helper applied only its existing v3 NLTK downloader patch to the disposable
|
|
build copy; the original Git checkout remained clean. The generated build manifest
|
|
was updated to the newly verified base and final lock fingerprint.
|
|
|
|
Final resolution (uv 0.9.7; use a writable isolated cache and an existing Python
|
|
interpreter; no managed Python download):
|
|
|
|
```sh
|
|
uv --no-config pip compile services/local_s2s/requirements-linux-cpu.in \
|
|
-c services/local_s2s/cpu-constraints.txt \
|
|
--python-version 3.11 --python-platform x86_64-manylinux_2_40 \
|
|
--no-python-downloads --no-build --default-index https://pypi.org/simple \
|
|
--generate-hashes --emit-index-url --emit-index-annotation \
|
|
-o services/local_s2s/requirements-linux-cpu.lock
|
|
```
|
|
|
|
Final wheel-only, hash-required dry run:
|
|
|
|
```sh
|
|
uv --no-config pip install --dry-run --target .local-s2s-build/dryrun-target \
|
|
--python-version 3.11 --python-platform x86_64-manylinux_2_40 \
|
|
--no-python-downloads --only-binary :all: --require-hashes \
|
|
-r services/local_s2s/requirements-linux-cpu.lock
|
|
```
|
|
|
|
Actual commands additionally selected the existing `.venv/bin/python` explicitly,
|
|
isolated the cache under `.local-s2s-build/uv-cache` and cleared ambient UV/PIP
|
|
configuration variables. Exact argument lists are in the JSON report. Final dry
|
|
run: **exit 0, 134 packages resolved, would download 132 / install 134**; nothing
|
|
installed. Structural checks confirmed all 134 requirements have SHA-256 hashes,
|
|
both CPU wheels share a release and other dependencies use only PyPI.
|
|
|
|
Earlier attempts were retained in ignored build logs:
|
|
|
|
- Generic Linux target defaults to an older manylinux floor; full upstream
|
|
`faster-qwen3-tts[ggml]` needs a qwentts-cpp-python wheel requiring glibc 2.39.
|
|
Target changed to manylinux_2_40; no dependency removed and no source build allowed.
|
|
- Unconstrained CPU selection chose different torch/torchaudio releases; corrected
|
|
to the same official 2.11.0 CPU release. See [PyTorch version guidance](https://pytorch.org/get-started/previous-versions/).
|
|
- A broad extra CPU index shadowed unrelated PyPI packages; using only the
|
|
implicit `--torch-backend` index then exporting a broad extra index caused the
|
|
uv dry run to fail on certifi. Final direct CPU wheel constraints eliminate that
|
|
ambiguity; no unsafe index strategy or fallback was enabled. See [uv guidance](https://docs.astral.sh/uv/guides/integration/pytorch/).
|
|
- An initial dry-run invocation combined mutually exclusive `--no-build` and
|
|
`--only-binary`; corrected to wheel-only before the final successful check.
|
|
|
|
## Size, license inventory and execution boundaries
|
|
|
|
Published release metadata reviewed for all 134 pins, including license fields.
|
|
Estimated compatible compressed wheel total: **647.5 MiB**, including CPU torch
|
|
190,218,265 bytes and torchaudio 341,288 bytes. This estimate is not measured image
|
|
size or a model download; the full upstream graph includes unused local-model
|
|
branches such as faster-qwen/nano-parakeet. Registry base layers total 45,594,562
|
|
compressed bytes separately. No runtime footprint or performance claim follows.
|
|
|
|
The inventory records existing LGPL metadata for psycopg/psycopg-binary/soxr and
|
|
PyMuPDF's AGPL/commercial dual-license metadata. This is an inventory of published
|
|
metadata, not legal clearance or a bundled-binary license audit. No dependency
|
|
was removed to suppress a license or compatibility issue.
|
|
|
|
Resolution downloaded registry metadata and cached wheel artifacts, including
|
|
the CPU torch wheel (181.4 MiB) and setuptools. It **did not install libraries**,
|
|
download model weights, execute the upstream engine, pull image layers, build an
|
|
image or open any provider connection. Existing virtualenv, buffers, speed,
|
|
generation limits and active test/operational services were not changed.
|
|
|
|
Next gate: an explicitly authorized isolated image build from the verified base
|
|
and this lock, followed by actual Python 3.11/native library and complete-engine
|
|
conformance checks. Models/assets, paid component startup and browser acceptance
|
|
remain separate; a successful resolver dry run does not close those gates.
|