Skip to content

fix(build): avoid unrequested MKL dependency in Pocket TTS - #4665

Closed
joelteply wants to merge 4 commits into
canaryfrom
codex/pocket-tts-optional-mkl
Closed

joelteply wants to merge 4 commits into
canaryfrom
codex/pocket-tts-optional-mkl

Conversation

@joelteply

@joelteply joelteply commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

The supported Windows installer built the CUDA core, then failed packaging unrequested intel-mkl-src while building the CLI. Pocket-TTS 0.6.2 requested MKL even without its mkl feature.

Pin reviewed fork f2cb6ef9be1852db7439b6fad33229c53e21ce8c consistently in Cargo.toml and Cargo.lock. Native MKL is optional through its existing feature; speech code and explicit backend selection remain intact. No machine cache repair or CPU fallback.

Rebased onto canary7a97e1e57, preserving both installer evidence sections. Fresh locked continuum-core no-default dependency graph passes: Pocket-TTS retained, intel-mkl-src/ocipkg absent. Fork exact f2cb passed six feature/target graph cases, three Clippy jobs, three actual CLI installations and Docker build. git diff --check passes. Workspace-wide optional formatting check exposes existing Rust formatting drift; this patch changes no Rust and did not rewrite those files. Fresh Continuum CI required at40ad2b699.

Unresolved fork acceptance: all three model-parity jobs still fail four tests with HTTP401 for gated kyutai/pocket-tts revision427e3d61b276ed69fdd03de0d185fa8a8d97fc5b. An HF_TOKEN for an account granted that model is required; no Actions secret is configured. No gated tests were disabled or claimed passing. Fork PR1 remains unmerged and this PR remains draft.

The reviewed candidate can be tested through the unchanged public installer before merge. Acceptance remains successful public install/identical rerun with installed/running revision proof, real supported speech command with nonempty audio and completion, and remote command/result/event evidence. Graph/packaging checks do not replace those tests. No merge with failing required CI or unresolved blockers.

@joelteply
joelteply force-pushed the codex/pocket-tts-optional-mkl branch from dabca42 to 40ad2b6 Compare October 2, 2026 22:52
@joelteply
joelteply force-pushed the codex/pocket-tts-optional-mkl branch from 4c29870 to 956bd7c Compare October 2, 2026 23:50
joelteply added a commit that referenced this pull request Oct 3, 2026
Carried from #4665 (fixture only, no production change), per BIGGIEDESK: #4668's
Linux CI failed only_idle_cargo_tagged_output_is_reclaimed_and_her_work_stays
(left "kept", right "would_reclaim"). Closing our descriptor does not end a shared
Unix flock a concurrently forking test inherited until exec, so the dry run could
still see a live build. The fixture now unlocks explicitly before dropping, and the
assertion prints the full dry-run outcomes. Same delta passed Linux on 956bd7c.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 3, 2026
… build (#4668)

* fix(launchd): a staged core launchd refuses rolls back to the serving build

M5, 2026-10-02: a deploy stopped the 09:57 core and kickstarted the build staged
at 12:09. launchd refused it (job state = spawn failed, last exit reason =
OS_REASON_CODESIGNING). wait_owned then sat out its five-minute ceiling, nothing
restored .prev, and KeepAlive {Crashed} does not relaunch a clean stop, so the
node had no core until a hand.

- launchd: spawn_failed_from_launchctl_print reads launchd's own spawn-failure
  lines (a running job is never one); wait_owned returns on it at once.
- launchd: restore_previous puts the moved-aside build back in the slot and keeps
  the refused one as .failed for inspection.
- reboot --service on macOS: when the staged build never comes up and nothing is
  answering, restore the previous build, kickstart it and verify launchd owns it.
  The receipt is still an error (the deploy did not land) but names the rollback,
  or says DARK if the previous build cannot come up either.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* fix(launchd): a refused kickstart rolls back too; every refused build is kept

Review of #4668 at 6e980f9 (BLOCK, BIGMAMA; BIGGIEDESK concurring):
- The first kickstart used `?`, so a kickstart launchd refused after the old core
  was stopped returned before the rollback and left the node dark. The kickstart and
  the wait for launchd to own a core are now one result, and after_staged_start
  decides: Done, Report (a core answers outside launchd), or RollBack (nothing
  answers). The error still carries the original failure, then the restoration.
- The rollback deleted an existing `.failed` before keeping the new refused build.
  restore_previous_in keeps the refused build as `<slot>.failed-<ms>` and never
  overwrites or deletes an earlier one.

Tests: a_refused_kickstart_or_spawn_with_nothing_answering_rolls_back (decision), and
rollback_restores_previous_and_keeps_every_refused_build (real files: previous
restored, refused kept by name, older evidence untouched, missing previous refused
with the slot untouched). launchd suite 9/9; continuum bin checks on macOS.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* test(workspace_pool): release the simulated build's lock explicitly

Carried from #4665 (fixture only, no production change), per BIGGIEDESK: #4668's
Linux CI failed only_idle_cargo_tagged_output_is_reclaimed_and_her_work_stays
(left "kept", right "would_reclaim"). Closing our descriptor does not end a shared
Unix flock a concurrently forking test inherited until exec, so the dry run could
still see a live build. The fixture now unlocks explicitly before dropping, and the
assertion prints the full dry-run outcomes. Same delta passed Linux on 956bd7c.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@joelteply

Copy link
Copy Markdown
Contributor Author

Superseded by #4707 (Cormac; BIGGIEDESK handed me this lane per Joel). Instead of pinning a pocket-tts fork, whose parity tests need a gated-model HF token (401), pocket-tts becomes an optional feature, off by default. Kokoro is the voice floor since #4698, and Pocket is backwards-compat only (Joel's voice ruling). cargo tree shows no intel-mkl-src in the default build. The citizen_workspace_pool flock test fix here is already on canary. I'll close this once #4707 merges; acceptance stays BIGGIEDESK's bar: a public Windows install packages the CLI.

joelteply added a commit that referenced this pull request Oct 4, 2026
… default build no longer pulls intel-mkl-src (supersedes #4665's fork pin) (#4707)

BIGGIEDESK, handed to me per Joel: the supported Windows installer built the
CUDA core, then failed packaging the CLI on intel-mkl-src, which pocket-tts
0.6.2 pulls in even with default-features = false. #4665 fixed it by pinning
a pocket-tts fork, but the fork's model-parity tests need a gated-model HF
token (401) and it would leave us maintaining a fork.

Per Joel's voice ruling, Kokoro is the floor (#4698) and Pocket is backwards
compatibility only (117M Candle, 23x slower than realtime on CPU). So Pocket
becomes an optional dependency behind feature `pocket-tts`, OFF by default.
The module, its export and its registration are cfg-gated. The priority and
fall-through lists keep "pocket" because the registry already skips an
unregistered name.

Verified with cargo tree: the default tree has no intel-mkl-src and no
pocket-tts; with --features pocket-tts, intel-mkl-src returns via pocket-tts
0.6.2 (positive control). Cargo.lock is unchanged (optional deps stay
locked). #4665's citizen_workspace_pool flock test fix is already on canary.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
@joelteply

Copy link
Copy Markdown
Contributor Author

Superseded by #4707 (merged as cd95d20): pocket-tts is an optional cargo feature, off in default and Windows builds, so MKL, the fork pin and the gated-model 401 are all gone. BIGGIEDESK's citizen_workspace_pool flock test fix was carried in #4707 as-is. Thank you for the original diagnosis.

@joelteply joelteply closed this Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants