M-6b: bargeIn-driven cancelTTS internal invariant (R-018 substrate) #133

Open
opened 2026-05-12 19:37:30 +00:00 by KofTwentyTwo · 0 comments
KofTwentyTwo commented 2026-05-12 19:37:30 +00:00 (Migrated from github.com)

Goal

M-6b — bargeIn-driven cancelTTS internal invariant (R-018 substrate; surface in M-7). Turn.bargeIn (M-7) MUST trigger Voice.cancelTTS as part of InterruptSequence. M-6.8 wires the substrate; M-7 wires the surface.

Scope

  • Voice.cancelTTS reaches TTSEngineActor and stops in-flight synthesis
  • ttsEnded(reason: .cancelled) event emitted
  • Internal hook for M-7 bargeIn → cancelTTS wiring

Files

  • packages/Voice/Sources/Voice/TTS/TTSEngineActor.swift
  • packages/Voice/Sources/Voice/InterruptSequence.swift (new or update)

Acceptance

  • cancelTTS stops in-flight synthesis
  • ttsEnded(.cancelled) event observed
  • Substrate ready for M-7 to call Voice.cancelTTS from bargeIn

Test

S-VOICE-012 substrate-side bargeIn→cancelTTS invariant; full path in M-7.

Parent epic

#10

Source

.planning/architecture/JARVIS-API-MIGRATION-PLAN.md §2.7 (M-6.8)
.planning/architecture/REVIEW-MIGRATION-RISK.md R-018

## Goal M-6b — bargeIn-driven cancelTTS internal invariant (R-018 substrate; surface in M-7). Turn.bargeIn (M-7) MUST trigger Voice.cancelTTS as part of InterruptSequence. M-6.8 wires the substrate; M-7 wires the surface. ## Scope - `Voice.cancelTTS` reaches `TTSEngineActor` and stops in-flight synthesis - `ttsEnded(reason: .cancelled)` event emitted - Internal hook for M-7 `bargeIn` → `cancelTTS` wiring ## Files - `packages/Voice/Sources/Voice/TTS/TTSEngineActor.swift` - `packages/Voice/Sources/Voice/InterruptSequence.swift` (new or update) ## Acceptance - [ ] `cancelTTS` stops in-flight synthesis - [ ] `ttsEnded(.cancelled)` event observed - [ ] Substrate ready for M-7 to call `Voice.cancelTTS` from `bargeIn` ## Test `S-VOICE-012` substrate-side bargeIn→cancelTTS invariant; full path in M-7. ## Parent epic #10 ## Source `.planning/architecture/JARVIS-API-MIGRATION-PLAN.md` §2.7 (M-6.8) `.planning/architecture/REVIEW-MIGRATION-RISK.md` R-018
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KofTwentyTwo/Jarvis#133