Repository navigation
feat(final): let a call's final pass fuse the fusion preset's engines - #325
Merged
Merged
Conversation
Builds are ad-hoc signed, so prompts naming a signed app and grants that survive a re-signed update can never pass G3 today. G3 now asks what this build can prove: prompts and grants under akou, real audio on both channels through the app-spawned helper, and the grant holding across an app restart. The signed half moves to the Developer ID milestone.
… Codex terms CI-28 refuses a stable release until the terms table has a dated row. Both vendors' terms allow akou's harness use on our reading; one question for Anthropic stays open and is written down. The CI-28 positive control now fails on the gates, and on the terms once the row is undated.
…rd with akou's grants
…h the app and times the first token
…out publishing it
… what the installer holds
…puter instead of stopping With per-app capture, an app that quit, crashed or relaunched for an update ended the whole call, mic included, logged as if the user pressed Stop, with no banner and no notification. The call now keeps recording: on tapped-apps-exited the part restarts as whole-computer capture, make before break, and the window says why in an amber banner (five minutes, after the red rows) and a notification when it is not in front. - tapped-apps-exited counts in needsRestart, so a restart already opening that fails is retried as the whole computer instead of dropping the fallback. - The health dot reads only the newest part's own health, so the old part's state no longer sticks after the fallback. - The scripted test helper echoes the scope it was asked for, as the real helper does, so the tests depend on the requested scope. - DESIGN, REQUIREMENTS F0.11, ROADMAP, PRINCIPLES and the DESKTOP notification table state the fallback rule.
…r, not at every start A typo in capture.call (`zoom`, `app:`) saved fine and then made every start from every door fail at the helper. capture.call (config set, PATCH /config) and POST /calls `call` now go through one parser with the helper's own rule (source.rs CallMode::parse), so nothing the helper accepts is refused and a malformed value answers 422 at once. A malformed value already in config.json loads as `system`, the default, with one warning.
…r record the whole computer
The refusal only repeated the helper's line ("no running app matches ..."), so a
user or agent did not know what to do. When the helper exits with no device for
an `app:` scope, the 503 capture_failed now adds the two ways out: start the app
and let it play (on macOS an app that has played nothing has no audio process),
or record the whole computer. A whole-computer start keeps the helper's text.
…ng for one app knows it got another akou_start always attaches, so an agent that asked for `call: "app:us.zoom.xos"` while a whole-computer call recorded got `attached: true` and nothing else. The live call's brief (the 409 already_recording body and the attach answer) now carries `callMode`, from the newest part (or the scope it is starting with), and the akou_start text names it: the whole computer, only app:<id>, or no call audio, only the microphone.
…he libraries loaded at start
…ms question is open
…e a verdict when the helper wrote nothing
… reader with models-smoke
With dictation on, the live Worker loaded Parakeet (about 2.2 GB) and the streaming model (about 1.8 GB) at start and kept both for the life of the app, although a live dictation never decodes with Parakeet. A call loaded Parakeet too and nothing ever let it go. Measured with `footprint`, the app sat at about 3.9 GB idle, the same as right after start. - The dictation warm-up loads Parakeet only when the dictation's text comes from it (`fast`, or no streaming model). - `asr.modelIdleMinutes` (default 5): once no call and no dictation has used the live Worker for that long, it lets go of every model (`LiveAsr.releaseIdle`, the shape of the server's job Worker idle release) and the app loads again what a dictation needs to start fast. - tests/idle-memory.e2e.test.ts checks it on the real models with `footprint`; it is skipped without them.
…ion pass decodes what a single pass decodes
…in to the measured spread - One test per in-flight request that keeps the models (a decode, a speech check, a warm-up), each red with its rule removed. - The idle app's footprint read from 1,158 MB under to 529 MB over its fresh start across seven runs, so the e2e margin is 1000 MB. - asr.modelIdleMinutes goes up to 10080, so a Mac with memory to spare can keep the models loaded; the LiveAsr option takes JobService's name.
…iled stage turns the night red [skip ci]
…Windows [skip ci]
…hole-computer [skip ci]
…nd-named [skip ci]
…hole-computer [skip ci]
…nd-named [skip ci]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A file job can fuse Qwen, Whisper and Parakeet word by word (the
fusionpreset, #303), but a recorded call's final pass still ran one engine. The engines that make the best transcript were there, and a call could not ask for them.Now a call can.
asr.final.modeltakes a new value,fusion. A call can also choose it for itself withakou start --final fusion,POST /calls {final}orakou_start {final}, and one rerun can withakou finalize --model fusion. The call's pass then runs the fusion preset's engines:asr.final.engines, joined byasr.fusion. It goes through the samerunEnginesa fusion job runs. There is no second fuser and no second key, and the default stays one engine.How the call's pass does it:
asr.memoryBudgetMbdoes not count it; the settings doc and DESIGN 3.3 say so).runEnginesneeds every piece for each engine in turn, so the pass can no longer read one channel at a time. Then the lines come from the fused words, namedrover-conf(<ids>), andakou statussaysFinal: ready (Qwen + Whisper + Parakeet).autoruns, andakou finalize --model fusionis refused.final.donegainsengines(the engines that decoded) anddropped(each engine left out, with its reason and how many pieces). The host's "not downloaded" entries come first, then the pass's own: overasr.memoryBudgetMb, would not load, or went down during the pass.call.created, so the catch-up after a restart runs it too.What came over from the old #268, and what did not: #303's
runEnginesalready drops an engine over the memory budget and an engine that goes down mid-pass, so those come from it, now on calls too. #268's own list, its own budget rule and its separate fusion code are gone. Kept from #268:final.donenaming the engines and the dropped ones, the per-call choice on every door, and the fused name inakou status. #268's--enginesflag became--final fusion, so one key keeps one meaning.Tests (11 new; the
checkfloors rise by 11):tests/final-fusion.test.ts, new: a call's pass over two parts and both channels with three fake engines, so every engine decodes all four pieces and the lines andfinal.donename the fusion. Also: a vote where two engines outvote the first one's wrong word, withfirstas the control that keeps it; an engine that goes down at its third piece (dropped for 2, the pass finishes); an engine over the budget, with no budget as the control; the host's dropped entries coming first; the only engine going down failing the pass.tests/final-model.e2e.test.ts, three new cases through the whole app, with the fake llama-server, the test module's fake Whisper and the fake Parakeet. First,asr.final.model fusionfuses all three, andGET /modelsandakou statusname the fusion. Second, with Whisper's files gone it is dropped as not downloaded, and with all three gone--model fusionis refused. Third, a call started withfinal: "fusion"fuses although the setting isauto,final: "parakeet"is saved as the id, and a bad value answers 422.akou_finalizetakes it, and the Models page names a fusion by its engines ("Qwen3-ASR, Whisper and Parakeet, combined");tests/models-rows.test.tschecks that name, and the 16-bit round trip has its own case.tests/ui/settings-labels.test.tsandtests/ui/models-page.test.tspass headless on the mini.src/and pass on this branch, run on a Mac mini. The existing cases in the same files pass on both.finalto the OpenAPI body list.This replaces #268, which is closed. It was built before #303 and used
asr.final.engineswith another meaning.Beads: akou-chp.6, akou-chp.10