ZARA-001: Restore the canonical wake entrypoint #32
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/zara!32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/zara-001-wake-entrypoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #2.
Root cause
WakeWordListener.active_mode_asyncretained a duplicated command-capture block under the timeout branch in addition to the canonical capture path. The legacyscripts/zara_wake.pyalso duplicated the wake implementation and invokedmain()before newly added sample-rate helpers were defined.Files changed
zara/wake.py: removed the duplicated active-command capture block while preserving the existing Prolog-first routing and configuration behavior.scripts/zara_wake.py: replaced the divergent implementation with a compatibility wrapper that delegates tozara.wake.main.t/test_wake_import.py: added import safety and single-capture state-machine regression coverage with external services and hardware mocked.scripts/test-entrypoints.sh: added the required non-interactive syntax, import, and CLI entrypoint checks.Tests added
zara.wakedoes not open an audio input stream.active_mode_asyncturn captures, transcribes, routes, and responds exactly once.Whisper, sounddevice, Prolog, memory, notifications, and TTS are mocked; the tests require no microphone, network, model download, or desktop session.
Commands run and results
git fetch origin --prune— passed; localmastermatchedorigin/masteratf20facd.nix develop -c pytest -q t/test_wake_import.py— passed, 2 tests.nix develop -c bash scripts/test-entrypoints.sh— passed.nix develop -c pytest— passed, 2 tests.nix build— passed; all five default derivations built successfully.git diff --check— passed.Remaining limitations
This correctness repair intentionally does not change wake latency, timeout behavior, provider/model configuration, or other roadmap items. Those remain assigned to their dependency-ordered ZARA issues.