From 2480219af359439a20794c5546c10b23bc110195 Mon Sep 17 00:00:00 2001 From: Angus Kola Date: Wed, 4 Nov 2026 19:24:58 -0500 Subject: [PATCH] Record Remote cleanup review and document speech export --- remote.md | 32 +++++++++++++++++++++++++++++--- remote/README.md | 4 ++-- remote/speech.md | 19 +++++++++++++++---- 3 files changed, 46 insertions(+), 9 deletions(-) diff --git a/remote.md b/remote.md index a49cdc3..4cca5a4 100644 --- a/remote.md +++ b/remote.md @@ -268,6 +268,32 @@ race cases, focused shared interaction/consent/observation checks, affected-pack vet, a separate reader build and Tentacles `make check`. No installed or active reader was replaced and no release gate is complete. +Seventeenth implementation increment and review (2026-11-04): review of reader +`b4896a2` (`testing`) and Tentacles `2af73dd` (`master`), both synchronized with +their upstreams, reproduced a lease cleanup race. A valid `remote.close` could +fail after expiry/policy cancellation but before the retirement callback ran, +making the coordinator permanently refuse reconnection. Authenticated close now +retires that lease without renewing it; heartbeat and foreign-token rejection +remain intact. + +Controlled-side observation now includes document caret movement, document +navigation, assembled caret lines and Say All. Original source/ancestor checks +precede presentation filtering. Mixed sensitive/unclassified Say All batches +stay private; sentence boundaries and pronunciation are observed at delivery. +The request retains its original lease across all chunks, so replacement consent +cannot capture reading already in progress. Local failure messages and context +announcements remain private. See [the speech contract](remote/speech.md). + +Focused reader Remote/reading race checks, the complete external Remote race +suite, the existing speech regression harness and Tentacles `make check` passed, +including the actual source-command/private-relay Say All path. The new focused +race cases passed ten repetitions; source-command connection race checks, +affected-package vet and a separate reader build also passed. Incoming speech +ownership and cancellation isolation remain pending, as do flat/object review, +current-line commands and other unclassified output producers. No installed or +active reader was replaced. Physical input, audible speech, physical Braille and +NVDA/Orca interoperability were not tested; no release gate is complete. + ## 1. Intended result and recommended approach Build a native Go Tentacle named **Remote**, with package ID `remote`, in this @@ -816,8 +842,8 @@ do not claim them from a design diagram. - [ ] Implement and document typed desktop services and their delivery-time checks. Typed speech validation, lease-bound output events, an explicit reader-owned incoming mailbox and both SDKs now have private coverage. The external speech - coordinator is connected; limited production ordinary-event output observation - now has original-lease and delivery-time policy checks. Incoming speech ownership, + coordinator is connected; limited production accessibility/document-reading output + observation has original-lease and delivery-time policy checks. Incoming speech ownership, remaining reading producers remain pending; explicit status detachment is implemented, with physical-input/ordinary-reading acceptance still open; see [speech.md](remote/speech.md). @@ -842,7 +868,7 @@ tested; existing Tentacles still install, register, run, disable and update. tracking, cancel order and lock/handoff revocation. The [typed speech transport and relay conversion](remote/speech.md) prerequisite now connects to the external coordinator, preserving whitespace and UTF-8 - across bounded IPC frames. Limited ordinary-event output observation now has + across bounded IPC frames. Limited accessibility/document-reading output observation has explicit private/secret exclusion and ordered cancellation. Incoming ownership, other reading producers and audible speech remain pending. Explicit Return to desktop now closes status while retaining the original verified lease; diff --git a/remote/README.md b/remote/README.md index 6302084..248979b 100644 --- a/remote/README.md +++ b/remote/README.md @@ -13,8 +13,8 @@ Implemented: - Typed speech conversion, coordinator queues, atomic reader assembly and matching reader IPC validators/mailbox, with both-role SDK-process/private-TLS coverage and Go/Python host coverage. Limited production export now observes explicitly - local ordinary accessibility speech after worker policy, with private-origin - exclusion and captured-lease/generation checks. Incoming delivery, other reading + local accessibility speech, document navigation and Say All after worker policy, + with private-origin exclusion and captured-lease/generation checks. Incoming delivery, other reading producers remain pending. Explicit Return to desktop now releases the status form while retaining the original approved lease; the shortcut reopens status and Disconnect. Physical capture/release acceptance remains pending. diff --git a/remote/speech.md b/remote/speech.md index 6dce05d..6128154 100644 --- a/remote/speech.md +++ b/remote/speech.md @@ -4,7 +4,7 @@ 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 matching reader now observes a limited set of explicitly local accessibility -speech attempts through its existing speech worker. It excludes private origins, +speech attempts, document navigation and Say All 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 @@ -83,9 +83,14 @@ 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. +presenter and reviewed document producers opt into export. Document caret movement, +navigation and assembled lines inspect original sources and ancestors; a sensitive +or unclassified Say All line keeps the whole batch private. Each Say All chunk +exports its resolved text and utterance boundary under the original admission +lease. Reconnecting during reading cannot export later chunks under new consent. +Flat/object review, current-line commands, 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 now offers explicit Return to desktop after reader lease open, releasing its status form and interaction slots while heartbeats continue. @@ -136,6 +141,12 @@ 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`. +Document-reading regressions now cover source/ancestor privacy, mixed lines, +private error status, sentence boundaries, pronunciation and replacement consent +between Say All chunks. The actual source-command/private-relay fixture also +checks two Say All sentences after returning to the desktop. A reader regression +reproduces and fixes close racing expiry/policy retirement: valid cleanup succeeds +without renewing the lease, preventing a false permanent coordinator failure. 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.