M-6: Voice surface (audio-graph fix + synthesizeTurn; B-04/B-05 closure) #10
Open
opened 2026-05-12 19:02:42 +00:00 by KofTwentyTwo
·
0 comments
No Branch/Tag Specified
develop
ci/secrets-historical-baseline
feature/security-findings-2026-10
dependabot/npm_and_yarn/webview/npm_and_yarn-3ac77625be
dependabot/npm_and_yarn/webview/packages/bus/npm_and_yarn-c86b58a346
dependabot/npm_and_yarn/webview/vitejs/plugin-react-6.0.2
dependabot/npm_and_yarn/webview/vite-8.0.13
dependabot/npm_and_yarn/webview/zustand-5.0.13
dependabot/npm_and_yarn/webview/types/node-25.9.1
dependabot/npm_and_yarn/webview/vitest-4.1.6
dependabot/github_actions/actions/setup-node-6
dependabot/github_actions/github/codeql-action-4
dependabot/github_actions/actions/checkout-6
dependabot/github_actions/actions/cache-5
dependabot/github_actions/pnpm/action-setup-6
feat/local-first-llm-routing
docs/local-first-llm-routing-spec
fix/v0.2-wave-1-code-fixes
docs/v0.2-wave-1-doc-drift
docs/handoff-2026-05-14
docs/multi-runner-inventory
docs/ollama-baseline-58
fix/ci-env-harness-sqlite-voice-warmup
fix/ci-xcode-26-and-batcher-timing
chore/typecheck-blocking
fix/hud-typecheck-strict-undefined
wip/voice-log-menu-stash4
v0.1.0-dev.71
v0.1.0-dev.68
v0.1.0-dev.64
v0.1.0-dev.50
Labels
Clear labels
area:agent
area:build
area:bus
area:devtool
area:hud
area:logging
area:mcp
area:memory
area:vision
area:voice
audit-finding
bug
carry-forward
comment-cleanup
dependencies
documentation
duplicate
enhancement
epic
good first issue
help wanted
invalid
javascript
migration
question
severity:critical
severity:high
severity:low
severity:medium
wontfix
Something isn't working
Comment / docstring cleanup per .planning/code-commenting-guide.md
Dependency updates
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Pull requests that update javascript code
Further information is requested
This will not be worked on
Milestone
No items
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: KofTwentyTwo/Jarvis#10
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal
Land Voice surface. Substrate audio-graph fix +
synthesizeTurncommand (UQ-3 (A) explicit-command contract). Closes B-04 (voice input dead) + B-05 (TTS silent). Highest-risk migration perREVIEW-MIGRATION-RISK. Long-lived feature branch (4–5 days); rebase on develop daily.Scope — surfaces in this phase
M-6a — surface mapping (no audio-graph change):
JarvisAPI.VoicewithgetVoiceStatequery (read-only)voiceStateChanged,audioLevelChanged,wakeWordDetected,sttTranscriptPartial/Final,ttsStarted,ttsEnded,voiceDegradedpttDown,pttUp,cancelTTS(Settings owns config; Turn ownsbargeIn)_injectAudioFrame,_injectWakeWord,_injectSTT,_observeTTSAudioM-6b — substrate fix (B-04, B-05):
startVoice()returnsaudioGraphFailedif ringBuffer nil afteropen()(B-04) — no silent log-and-degradeVoice.synthesizeTurn(turnId:text:tier:) -> Result<Void, TTSError>(B-05)synthesizeTurnon voice-sourceturnEnded(.completed)— UQ-3 (A) explicit-command contractFiles (created/modified)
packages/JarvisAPI/Sources/JarvisAPI/Surfaces/Voice+Adapter.swift(new)packages/Voice/Sources/Voice/VoiceController.swift— startVoice error surfacingpackages/Voice/Sources/Voice/TTS/—synthesizeTurnwiringpackages/AgentCore/Sources/AgentOrchestrator/AgentOrchestrator.swift— issuesynthesizeTurnon voice-source.completedpackages/Harness/Tests/HarnessTests/VoiceScenarioTests.swift(new)Test contract
Scenarios
S-VOICE-001..S-VOICE-012. Both transport modes mandatory.startVoice()success ⇒ ≥10audioLevelChangedwithin 500 ms.completed⇒synthesizeTurninvoked exactly once ANDttsStartedevent observedS-VOICE-bargeIn-cancels-TTS— bargeIn during ttsStarted ⇒ttsEnded(reason: .cancelled)BEFOREturnStartedof new turnJARVIS_REAL_MODELS=1 swift test --filter OrpheusTTFATests(deferred if Orpheus weights absent — see plan §6)Acceptance criteria
bash scripts/check-no-null-voice-adapters.shgreenbash scripts/check-presence-bus-no-tts-orchestrator.shgreen.inProcessActorrunner.jsonRoundTripWebViewrunnerstartVoice()success ⇒ ≥10audioLevelChangedwithin 500 mssynthesizeTurninvoked exactly once per voice-source.completedturn;ttsStartedobservedbash scripts/verify-entitlements.sh --pre-codesigngreen (R-012)bash scripts/verify-codesign-settings.shgreen (R-013)JARVIS_REAL_MODELS=1 ... OrpheusTTFATestsgreen if Orpheus weights present (DEFERRED otherwise)Carry-forward closures
Dependencies
Related issues
Sub-issues
Estimate
4.0–5.5 engineer-days
Source
.planning/architecture/JARVIS-API-MIGRATION-PLAN.md§2.7.planning/architecture/JARVIS-API-DESIGN-v0.1.md—Voicesurface.planning/architecture/JARVIS-API-DESIGN-v0.2.md§5 — UQ-3 (A) explicit-command, UQ-4 slim Voice.planning/architecture/REVIEW-MIGRATION-RISK.mdR-007, R-012, R-013, R-018