Repository navigation
Release v0.129.0: a wake-up cancel survives the line's sound-alikes - #155
Merged
Merged
Conversation
On a G.711 line "cancel" came back as "Campbell.", "Campful." and "Okay, I'm full.", so nothing matched and the wake-up being called off rang (2026-08-21, 2026-11-23). switchboard-stt's time mode now answers CANCEL-LIKE for a whole reply shaped like "cancel", and the wake-up AGI acts on it only when a wake-up is set. A don't/not/keep/leave anywhere stops any cancel; an echo of the prompt does nothing. A call that understood nothing while a wake-up was set reads it back as still set (WAKEUP_RESULT=kept). A lone "Oh."/"zero" no longer sets midnight. Each wake-up recording leaves a size-only breadcrumb. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ned shape
- timeparse: a zero with no other number after it ("Oh, oh, oh.", "Oh,
oh, okay.") and a length of time ("ten more minutes", "one second") are
not times; both used to replace a set wake-up (midnight, or that hour).
- The wake-up AGI does not transcribe a recording flagged no-speech; the
attempt is a miss.
- _CANCEL_SHAPE takes a t after the nasal (Can't feel) and a final e
(Console), from a 1,288-recording synthetic corpus: 535/560 cancels
caught (516 before), 0 of 728 times/other replies become one.
- Tests pin each veto word, the 4-word echo window, the filler list, the
tail and shape anchors, digit zero-hours; the privacy scan floor is 9.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
On a G.711 phone line, whisper wrote the spoken word "cancel" as "Campbell." and "Campful." (2026-08-21) and as "Okay, I'm full." and "Campful." (2026-11-23). The second morning, the prompt hint added after the first was already in place. Each time nothing matched, and the wake-up being called off rang.
The wake-up reply (
switchboard-stt, time mode)time_reply(text, parse) -> (stdout, outcome). A pure function. The decision runs in this order:timeparse(times win, as before);CANCEL-LIKEwhen the whole reply (at most two words besides fillers) is shaped like "cancel":don't,not,didn't,won't,doesn't,keeporleaveanywhere stops any cancel. Before, "I don't want to cancel" and "never mind, keep it" cancelled.said()-gated log line per outcome, so the privacy scanner now counts 9 sites; its floor is raised to 9.The wake-up AGI and dialplan
CANCEL-LIKEcancels only when a wake-up was set (one hearing, the owner's choice). Otherwise it is a miss. An AGI that predates it compares== "CANCEL", so a version mismatch fails safe.WAKEUP_RESULT=kept, and the dialplan plays the opening recording (sw-wakeup-exists) and the time, instead of "No wake-up call was set", which was false on that path. A doubtful re-read givesnone.no-speechis not transcribed. The wake-up AGI now leaves the same size-onlyrecbreadcrumb as the operator, through a third twin ofrec_summaryheld equal bytest_operator_agi.timeparseThese replies are no longer read as times:
A differential over 1.08 million generated phrases changes only those two kinds of reply.
Evidence
Synthetic corpus. 1,334 recordings: 29 macOS voices × 23 phrases × 2 speaking rates, band-limited, µ-law encoded and decoded to Asterisk's 8 kHz WAV. They ran through the add-on's own image,
switchboard-sttand whisperbase.en, with the live prompt, in a throwaway container with no network.Results. Leaving out one novelty voice, 1,288 recordings:
The channel reproduced "Campbell." on its own, and added "Pencil.", "Can't feel." and "Console it.".
Dictionary. Over 234,454 dictionary words, the shape accepts 25, all words nobody says at a wake-up prompt.
Review
_lead_trimputs a number first).Tests
test_wakeup_cancel.py:Deploy check
extensions.confgains thekeptbranch, so its hash changes.pjsip.confmust hash as before.[wakeup]context must holdGotoIf(... = "kept"]?kept)andn(kept),Playback(switchboard/sw-wakeup-exists).switchboard-sttmust holdtime_reply, and the installed AGICANCEL_LIKE.🤖 Generated with Claude Code