Record and verify reader Remote speech observation

This commit is contained in:
ak47 committed 2026-11-04 16:53:25 -05:00
1 parent c158321b40
commit a8ca2f9cfe
6 files changed
+109 -26

No files matched your search

+38 -7
View File
@@ -3,8 +3,11 @@
Remote now connects NVDA protocol-v2 speech conversion to the matching
experimental reader's typed speech IPC. Controller sessions call `remote.present`;
controlled sessions send matching `remote.output` events to the relay. The
production reader has no speech worker or output observer connected to these
interfaces yet, so the command remains a relay-testing tool with no audible
matching reader now observes a limited set of explicitly local accessibility
speech attempts through its existing speech worker. It excludes private origins,
passwords and local status, captures the original lease at queue admission and
rechecks authority at export. Incoming production speech ownership remains
pending, so the command remains a relay-testing tool with no audible
speech-service claim. A reader without a presentation owner rejects incoming
speech; Remote closes that connection and its lease instead of silently dropping
the error. No installed or active reader was changed.
@@ -12,7 +15,11 @@ the error. No installed or active reader was changed.
The coordinator and assembly increments were based on Tentacles `703d440` (`master`) and reader
`9e15f86` (`testing`), both confirmed current with `git pull --ff-only` on
2026-11-04. The assembly increment changes reader wire/host code and both SDKs
as well as the external coordinator. No production speech worker is enabled.
as well as the external coordinator. The later observation increment is based
on Tentacles `c158321` and reader `9bc74db`, confirmed current with
`git pull --ff-only` on 2026-11-04. Incoming production speech is not enabled.
The completed reader observation implementation is commit `b60cf5d` on `testing`;
use that revision or a descendant containing it for these source checks.
`src/speech_bridge.go` converts speech, cancel and pause messages. It preserves
text fragments and whitespace, resolved spelling/language state, end-utterance
@@ -72,8 +79,19 @@ The matching reader adds a disabled-by-default incoming speech mailbox, typed
Go/Python validators and `remote.output` events. See
[its precise contract](../../cthulhu/docs/tentacle-remote-speech.md). These SDK
additions are prerequisites for building this increment; use the matching reader
source, not an older release. Production output ownership and origin filtering
remain reader responsibilities.
source, not an older release. Its limited output observer now provides explicit
origins, private/secret exclusion, speech-mode and generation checks, UTF-8
splitting and atomic outbound IPC reservation. Queue failures retire Remote's
process session without blocking local speech. Only the main accessibility
presenter currently opts into export; document/review commands, Say All,
context announcements, separate key-name echo and other producers still need
source review. Priority and language use defaults; no voice/backend state is sent.
The source command's status form remains modal and captures local keys for the
connection lifetime. Ordinary application presentation is suppressed while it
is open. This observer increment therefore supplies a reader integration path,
not a usable desktop speech session. Status detachment and incoming speech with
separate cancellation ownership remain next steps. Existing UI warnings stay.
Verification:
@@ -101,12 +119,25 @@ now passes long escaped multilingual speech from the source-built command into
one complete test-owner delivery. Reader SDK-process tests also establish no
prefix before finalization, interleaving/priority/replay rejection, heartbeat
progress, assembly retirement, both budget limits and idempotent/stale release.
The repository check runs these reader Remote speech and connection tests.
The repository check runs these reader Remote speech, observation and connection
tests. Observation tests cover both SDKs, stale tickets, policy retirement,
all-or-none frame/byte admission, pronunciation, characters, chunks/spelling,
private origins, speech modes and cancellation generations. The real source
command fixture now also carries transformed long speech-worker output through
actual SDK IPC to the private relay, followed by ordered cancel; password, form
and status requests produce no speech frames. All output uses a test backend.
Queue-level reader regressions hold delivery across reconnection and verify
that queued old-consent and pre-consent output cannot follow the new lease.
They also establish that observation overflow retires Remote while local speech
and subsequent reading continue. Ten repetitions of the observation race cases
passed during completion review, together with the full Remote and reader
host/wire/both-SDK race suites, focused application race checks, affected-package
vet, a separate reader build, the speech regression harness and `make check`.
Existing greeting, Wormhole, Battery Status and connection/consent checks remain
regressions. These checks produce no audible speech and establish no physical
keyboard, Braille or real NVDA/Orca interoperability acceptance.
After reader-owner integration, test ordinary reading, spelling,
After incoming-owner and status-lifetime integration, test ordinary reading, spelling,
read-all, key echo, stop speech and local status in both roles. Then test lock,
handoff, disconnect and peer loss for stale output and loops, using disposable
desktops before testing installed releases. Those workflows cannot be accepted