Record and verify reader Remote speech observation
This commit is contained in:
1 parent
c158321b40
commit
a8ca2f9cfe
6 files changed
+109
-26
No files matched your search
@@ -218,6 +218,40 @@ interaction/Braille/preferences race suites, focused vet and Tentacles
|
|||||||
live-interoperability acceptance was performed. This does not complete any
|
live-interoperability acceptance was performed. This does not complete any
|
||||||
release gate.
|
release gate.
|
||||||
|
|
||||||
|
Fifteenth implementation increment (2026-11-04): limited production reader
|
||||||
|
observation now exports explicitly local ordinary accessibility speech after
|
||||||
|
speech-mode, pronunciation and character policy. Queue admission captures the
|
||||||
|
original controlled lease; delivery rechecks deadline, policy and generation.
|
||||||
|
Unclassified requests, forms, passwords, history and local status remain private.
|
||||||
|
Long UTF-8 output reserves its full encoded IPC budget before exposing a prefix;
|
||||||
|
overflow retires Remote while local speech proceeds. Cancellation shares the
|
||||||
|
speech-owner ordering. Both SDKs and a source-command/private-relay fixture cover
|
||||||
|
the observation path with a test speech backend. See [the exact scope](remote/speech.md)
|
||||||
|
and [reader policy](../cthulhu/docs/tentacle-remote-speech.md).
|
||||||
|
Incoming speech ownership, remote-only cancellation, remaining reading producers
|
||||||
|
and nonmodal status are still pending. The status form currently captures the
|
||||||
|
local keyboard and suppresses ordinary application presentation for the entire
|
||||||
|
connection; this increment does not establish a usable desktop speech session.
|
||||||
|
The full Remote race suite, reader host/wire/both-SDK race suites (host: about
|
||||||
|
128 seconds), focused speech/application race checks, ten repetitions of the
|
||||||
|
observation/source-command race fixtures, existing speech regression harness,
|
||||||
|
focused vet, reader build and Tentacles `make check` passed. Final privacy review
|
||||||
|
added a regression for password ancestry discarded by focus presentation;
|
||||||
|
classification now inspects the original snapshot before that filtering. The
|
||||||
|
focused reader race checks, vet/build and repository checks passed after this
|
||||||
|
correction. No installed or active reader was replaced. All release gates and
|
||||||
|
physical/audible acceptance remain open.
|
||||||
|
|
||||||
|
Observation completion review (2026-11-04): additional queue-level regressions
|
||||||
|
verify old-consent and pre-consent speech cannot follow a replacement lease,
|
||||||
|
and observation overflow retires Remote while local speech continues. Ten
|
||||||
|
repetitions of the observation race cases, full Remote and reader
|
||||||
|
host/wire/both-SDK race suites (host: about 127 seconds), focused application
|
||||||
|
speech/Remote/Tentacle race checks, affected-package vet, a separate reader
|
||||||
|
build, the existing speech regression harness and Tentacles `make check` passed.
|
||||||
|
Incoming speech ownership and nonmodal status remain the next implementation
|
||||||
|
steps; this review closes no live release gate.
|
||||||
|
|
||||||
## 1. Intended result and recommended approach
|
## 1. Intended result and recommended approach
|
||||||
|
|
||||||
Build a native Go Tentacle named **Remote**, with package ID `remote`, in this
|
Build a native Go Tentacle named **Remote**, with package ID `remote`, in this
|
||||||
@@ -766,8 +800,10 @@ do not claim them from a design diagram.
|
|||||||
- [ ] Implement and document typed desktop services and their delivery-time checks.
|
- [ ] Implement and document typed desktop services and their delivery-time checks.
|
||||||
Typed speech validation, lease-bound output events, an explicit reader-owned
|
Typed speech validation, lease-bound output events, an explicit reader-owned
|
||||||
incoming mailbox and both SDKs now have private coverage. The external speech
|
incoming mailbox and both SDKs now have private coverage. The external speech
|
||||||
coordinator is connected; the production reader speech owner and delivery-time
|
coordinator is connected; limited production ordinary-event output observation
|
||||||
output policy remain pending; see [speech.md](remote/speech.md).
|
now has original-lease and delivery-time policy checks. Incoming speech ownership,
|
||||||
|
remaining reading producers and modal status detachment remain pending;
|
||||||
|
see [speech.md](remote/speech.md).
|
||||||
|
|
||||||
Exit: permission denials, timeout/overflow, stale epochs and process failures are
|
Exit: permission denials, timeout/overflow, stale epochs and process failures are
|
||||||
tested; existing Tentacles still install, register, run, disable and update.
|
tested; existing Tentacles still install, register, run, disable and update.
|
||||||
@@ -789,8 +825,10 @@ tested; existing Tentacles still install, register, run, disable and update.
|
|||||||
tracking, cancel order and lock/handoff revocation.
|
tracking, cancel order and lock/handoff revocation.
|
||||||
The [typed speech transport and relay conversion](remote/speech.md) prerequisite
|
The [typed speech transport and relay conversion](remote/speech.md) prerequisite
|
||||||
now connects to the external coordinator, preserving whitespace and UTF-8
|
now connects to the external coordinator, preserving whitespace and UTF-8
|
||||||
across bounded IPC frames. Production reader output ownership and audible
|
across bounded IPC frames. Limited ordinary-event output observation now has
|
||||||
speech remain pending; connection controls retain their relay-testing scope.
|
explicit private/secret exclusion and ordered cancellation. Incoming ownership,
|
||||||
|
other reading producers, nonmodal status and audible speech remain pending;
|
||||||
|
connection controls retain their relay-testing scope.
|
||||||
- [ ] Demonstrate controlled Cthulhu speech to NVDA and NVDA speech to controlling
|
- [ ] Demonstrate controlled Cthulhu speech to NVDA and NVDA speech to controlling
|
||||||
Cthulhu, then Cthulhu-to-Cthulhu. Verify read-all, spelling and ordinary stop.
|
Cthulhu, then Cthulhu-to-Cthulhu. Verify read-all, spelling and ordinary stop.
|
||||||
|
|
||||||
|
|||||||
+7
-4
@@ -4,15 +4,18 @@ Remote will connect Cthulhu to an NVDA Remote protocol-v2 relay, as either a
|
|||||||
controller or a controlled computer. The first implementation increment is a
|
controller or a controlled computer. The first implementation increment is a
|
||||||
tested Go relay library in `src/`. A subsequent increment now provides a
|
tested Go relay library in `src/`. A subsequent increment now provides a
|
||||||
source-built command with relay/role selection, reader-owned consent and connection
|
source-built command with relay/role selection, reader-owned consent and connection
|
||||||
controls. It has no manifest, catalog entry or desktop access and is not installable.
|
controls and limited reader speech observation. It has no manifest or catalog
|
||||||
|
entry and is not packaged as an installable release.
|
||||||
See [the source command and physical-input checks](command.md).
|
See [the source command and physical-input checks](command.md).
|
||||||
|
|
||||||
Implemented:
|
Implemented:
|
||||||
|
|
||||||
- Typed speech conversion, coordinator queues, atomic reader assembly and matching reader IPC
|
- Typed speech conversion, coordinator queues, atomic reader assembly and matching reader IPC
|
||||||
validators/mailbox, with both-role SDK-process/private-TLS coverage and
|
validators/mailbox, with both-role SDK-process/private-TLS coverage and
|
||||||
Go/Python host coverage. This is transport only; production speech
|
Go/Python host coverage. Limited production export now observes explicitly
|
||||||
delivery/export is still pending. See [speech.md](speech.md).
|
local ordinary accessibility speech after worker policy, with private-origin
|
||||||
|
exclusion and captured-lease/generation checks. Incoming delivery, other reading
|
||||||
|
producers and modal status detachment remain pending. See [speech.md](speech.md).
|
||||||
- Bounded newline JSON framing, duplicate-key and collection validation, and
|
- Bounded newline JSON framing, duplicate-key and collection validation, and
|
||||||
typed speech, keyboard, membership, clipboard and Braille decoding.
|
typed speech, keyboard, membership, clipboard and Braille decoding.
|
||||||
- TLS with normal certificate/hostname validation or an already-approved,
|
- TLS with normal certificate/hostname validation or an already-approved,
|
||||||
@@ -104,7 +107,7 @@ procedure](command.md) describes pending physical-input acceptance checks;
|
|||||||
private fixtures do not establish them.
|
private fixtures do not establish them.
|
||||||
|
|
||||||
Pending: actual NVDA/add-on/Orca interoperability, physical-source approval,
|
Pending: actual NVDA/add-on/Orca interoperability, physical-source approval,
|
||||||
reader desktop services, speech delivery/export, exclusive keyboard capture,
|
incoming speech delivery, complete output export, nonmodal connection status, exclusive keyboard capture,
|
||||||
injection provenance and reader-death recovery, clipboard permission,
|
injection provenance and reader-death recovery, clipboard permission,
|
||||||
virtual Braille integration, audible masking, physical displays and packaging. The
|
virtual Braille integration, audible masking, physical displays and packaging. The
|
||||||
full remote-control release must not be advertised until those gates pass.
|
full remote-control release must not be advertised until those gates pass.
|
||||||
|
|||||||
+9
-4
@@ -8,9 +8,13 @@ or Braille service. There is still no installable manifest or catalog entry.
|
|||||||
|
|
||||||
The subsequent [speech coordinator increment](speech.md) now connects typed
|
The subsequent [speech coordinator increment](speech.md) now connects typed
|
||||||
relay speech to presentation IPC and reader output events to relay writes.
|
relay speech to presentation IPC and reader output events to relay writes.
|
||||||
Production reader speech ownership is still pending, so these controls retain
|
The matching reader now has limited observation of explicitly local ordinary
|
||||||
their relay-testing warnings. Receiving speech with no reader owner closes the
|
accessibility speech after worker policy. Incoming speech ownership is still
|
||||||
connection and lease; it does not enable audible delivery.
|
pending. These controls also hold a modal status form, capturing local keys and
|
||||||
|
suppressing ordinary application presentation for the connection lifetime.
|
||||||
|
They retain their relay-testing warnings until status detachment and incoming
|
||||||
|
speech ownership are implemented and accepted. Receiving speech with no reader
|
||||||
|
owner closes the connection and lease; it does not enable audible delivery.
|
||||||
|
|
||||||
Base revisions checked against maintained upstreams on 2026-11-04: reader
|
Base revisions checked against maintained upstreams on 2026-11-04: reader
|
||||||
`testing` at `4cf3335`, Tentacles `master` at `0c74038`. No installed reader or
|
`testing` at `4cf3335`, Tentacles `master` at `0c74038`. No installed reader or
|
||||||
@@ -35,7 +39,8 @@ The host keeps its existing interaction slot and resolves the exact requesting
|
|||||||
process session. Install grants limit the requested role/grants. The reader's
|
process session. Install grants limit the requested role/grants. The reader's
|
||||||
own local-only form starts on Cancel with every grant unchecked. This development
|
own local-only form starts on Cancel with every grant unchecked. This development
|
||||||
command requests only `remote-present` for controller or `output-observe` for
|
command requests only `remote-present` for controller or `output-observe` for
|
||||||
controlled; neither service is implemented yet. Keyboard, clipboard and Braille
|
controlled. Limited ordinary-event speech observation now exists; incoming
|
||||||
|
production presentation remains pending. Keyboard, clipboard and Braille
|
||||||
permissions are not requested. A shortcut, child request or fabricated command
|
permissions are not requested. A shortcut, child request or fabricated command
|
||||||
argument cannot approve access.
|
argument cannot approve access.
|
||||||
|
|
||||||
|
|||||||
@@ -17,8 +17,11 @@ events, exercised through both SDKs. The external coordinator now joins those
|
|||||||
interfaces to relay speech, with ordered calls and bounded cancellable queues.
|
interfaces to relay speech, with ordered calls and bounded cancellable queues.
|
||||||
Split utterances now reach the reader owner as one complete assembly, with
|
Split utterances now reach the reader owner as one complete assembly, with
|
||||||
independent reader frame/byte limits that include work in flight.
|
independent reader frame/byte limits that include work in flight.
|
||||||
No production reader output owner is connected; policy-resolved observation,
|
Limited production output observation now attaches the existing speech worker
|
||||||
remote speech delivery and live speech acceptance remain open.
|
to its manager with lease-captured, explicitly local requests and delivery-time
|
||||||
|
policy/generation checks. The main accessibility presenter opts in; other
|
||||||
|
reading producers still need source review. Incoming speech ownership, modal
|
||||||
|
status detachment and live speech acceptance remain open. See [speech.md](speech.md).
|
||||||
|
|
||||||
## Confirmed reader boundaries
|
## Confirmed reader boundaries
|
||||||
|
|
||||||
@@ -67,14 +70,17 @@ must never mint consent.
|
|||||||
cancellation and bounded speech queues. Pending approval expiry now emits
|
cancellation and bounded speech queues. Pending approval expiry now emits
|
||||||
revocation too, cancelling setup before a lease opens. Verify these workflows
|
revocation too, cancelling setup before a lease opens. Verify these workflows
|
||||||
with physical local input; synthetic submissions do not establish that gate.
|
with physical local input; synthetic submissions do not establish that gate.
|
||||||
4. Add policy-resolved output observation and remote presentation with origin
|
4. Extend the limited policy-resolved output observer to reviewed remaining
|
||||||
ownership, secure-input/lock/handoff exclusion and local status priority.
|
reading producers, detach connection status from modal desktop capture, and
|
||||||
|
add incoming presentation with remote-only cancellation and local priority.
|
||||||
|
Ordinary accessibility speech now has explicit origin/secret exclusion,
|
||||||
|
original-lease tickets and delivery-time policy/generation checks.
|
||||||
5. Complete keyboard recovery, explicit clipboard transfer and virtual/raw
|
5. Complete keyboard recovery, explicit clipboard transfer and virtual/raw
|
||||||
Braille workflows. Record physical keyboard, audible speech and physical
|
Braille workflows. Record physical keyboard, audible speech and physical
|
||||||
display results separately from private automated checks.
|
display results separately from private automated checks.
|
||||||
6. Add the manifest, catalog and package tooling only after required reader APIs
|
6. Add the manifest, catalog and package tooling only after required reader APIs
|
||||||
and acceptance gates exist. No commit, installation or publication is part
|
and acceptance gates exist. Installation and release publication remain
|
||||||
of this increment.
|
separate actions.
|
||||||
|
|
||||||
## Checks for this increment
|
## Checks for this increment
|
||||||
|
|
||||||
|
|||||||
+38
-7
@@ -3,8 +3,11 @@
|
|||||||
Remote now connects NVDA protocol-v2 speech conversion to the matching
|
Remote now connects NVDA protocol-v2 speech conversion to the matching
|
||||||
experimental reader's typed speech IPC. Controller sessions call `remote.present`;
|
experimental reader's typed speech IPC. Controller sessions call `remote.present`;
|
||||||
controlled sessions send matching `remote.output` events to the relay. The
|
controlled sessions send matching `remote.output` events to the relay. The
|
||||||
production reader has no speech worker or output observer connected to these
|
matching reader now observes a limited set of explicitly local accessibility
|
||||||
interfaces yet, so the command remains a relay-testing tool with no audible
|
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-service claim. A reader without a presentation owner rejects incoming
|
||||||
speech; Remote closes that connection and its lease instead of silently dropping
|
speech; Remote closes that connection and its lease instead of silently dropping
|
||||||
the error. No installed or active reader was changed.
|
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
|
The coordinator and assembly increments were based on Tentacles `703d440` (`master`) and reader
|
||||||
`9e15f86` (`testing`), both confirmed current with `git pull --ff-only` on
|
`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
|
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
|
`src/speech_bridge.go` converts speech, cancel and pause messages. It preserves
|
||||||
text fragments and whitespace, resolved spelling/language state, end-utterance
|
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
|
Go/Python validators and `remote.output` events. See
|
||||||
[its precise contract](../../cthulhu/docs/tentacle-remote-speech.md). These SDK
|
[its precise contract](../../cthulhu/docs/tentacle-remote-speech.md). These SDK
|
||||||
additions are prerequisites for building this increment; use the matching reader
|
additions are prerequisites for building this increment; use the matching reader
|
||||||
source, not an older release. Production output ownership and origin filtering
|
source, not an older release. Its limited output observer now provides explicit
|
||||||
remain reader responsibilities.
|
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:
|
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
|
one complete test-owner delivery. Reader SDK-process tests also establish no
|
||||||
prefix before finalization, interleaving/priority/replay rejection, heartbeat
|
prefix before finalization, interleaving/priority/replay rejection, heartbeat
|
||||||
progress, assembly retirement, both budget limits and idempotent/stale release.
|
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
|
Existing greeting, Wormhole, Battery Status and connection/consent checks remain
|
||||||
regressions. These checks produce no audible speech and establish no physical
|
regressions. These checks produce no audible speech and establish no physical
|
||||||
keyboard, Braille or real NVDA/Orca interoperability acceptance.
|
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,
|
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
|
handoff, disconnect and peer loss for stale output and loops, using disposable
|
||||||
desktops before testing installed releases. Those workflows cannot be accepted
|
desktops before testing installed releases. Those workflows cannot be accepted
|
||||||
|
|||||||
+1
-1
@@ -171,7 +171,7 @@ def check_remote(repoRoot):
|
|||||||
and "desktop services are unavailable" in value["form"]["title"],
|
and "desktop services are unavailable" in value["form"]["title"],
|
||||||
"Remote did not disclose its relay-only scope")
|
"Remote did not disclose its relay-only scope")
|
||||||
subprocess.run([
|
subprocess.run([
|
||||||
"go", "test", "./internal/app", "-run", "^TestRemoteConnectionCommand",
|
"go", "test", "./internal/app", "-run", "^(TestRemoteConnectionCommand|TestRemoteSpeechObservation)",
|
||||||
"-count=1", "-timeout=90s",
|
"-count=1", "-timeout=90s",
|
||||||
], cwd=readerRoot, env=environment, timeout=120, check=True)
|
], cwd=readerRoot, env=environment, timeout=120, check=True)
|
||||||
subprocess.run([
|
subprocess.run([
|
||||||
|
|||||||
Reference in new issue
Block a user