Apply the four-patch Remote series: accept Orca-style Shift and unflagged extended keys, add browser/media mappings, review untrusted certificate fingerprints during explicit Connect, and retain recent successful connections in private storage. Report history-write failures without ending live connections, add failure/storage/trust regressions, and document the required reader revision and remaining live accessibility acceptance. Validated with make check, the complete Remote race suite, private Xorg capture and key-helper cleanup checks, and publisher tests. Linux amd64/arm64 archives reproduce byte-for-byte. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
128 KiB
Cthulhu Remote implementation plan
Status (2026-11-06): all planned first-release code is implemented — speech, keyboard control in both directions with a core F11 escape, explicit clipboard text, Braille output/routing in both directions and review packaging. Every live acceptance gate below (physical keyboard, audible speech, physical Braille, NVDA/Orca interoperability, installer/ARM64 release checks) remains open and is the next step. Version 0.1.0 is being packaged as an explicitly experimental test release to collect those results, not as a live-accepted stable release. Research date: 2026-11-03. Unchecked checklist items describe future work. API names and limits below remain proposed contracts unless an implementation increment explicitly records them as implemented and tested.
First implementation increment (2026-11-03):
cthulhu-tentacles/remote/src contains a bounded NVDA-v2 codec, TLS transport,
one-peer session validation and private protocol/transport tests. See
implementation status and
the relay contract. This is a source
library, not an installable Tentacle. Phase A remains open: fixtures are synthetic
source-derived examples, and production Xorg crash recovery/virtual Braille
feasibility had not been demonstrated. At that increment, reader protocol 1.1,
desktop integration and live interoperability remained unimplemented/unverified; the fifth increment below
now supplies the protocol 1.1 lifecycle foundation. No release gate is complete.
Second implementation increment (2026-11-03): the reader's transient forms now support secret entries, including masked editing/speech/Braille, blocked copy/cut, explicit paste, and values returned only on successful submission. Persistent preference pages reject secrets. Both SDKs have IPC conformance coverage and the private Xorg form harness exercises the keyboard and clipboard behavior. See the secret-entry contract. Audible speech and physical Braille acceptance remain pending. This prerequisite does not add Remote connection controls or complete Phase B.
Third implementation increment (2026-11-03): an isolated Xorg input feasibility
harness now demonstrates exclusive capture, grab release after owner SIGKILL,
and independent injected-key cleanup on writer death or three-second heartbeat
expiry. It also confirms XTEST connection closure alone leaves keys held and
current input events cannot establish local origin. Already-held collisions are
rejected in the prototype; later same-code collisions remain unresolved. See
the evidence and limitations.
The helper is test-only. Production input integration, physical-device collision
safety, trusted origin and virtual Braille feasibility remain open; Phase A and
all release gates are still incomplete.
Verification: ten private Python experiments and three native Go tests with the
race detector passed; the Tentacles repository's make check also passed.
Fourth implementation increment (2026-11-03): the existing Braille viewport now
has internal raw-cell export using the physical writer's shared dot-mask logic.
Eight new tests establish exact cell masks, independent virtual/local widths,
real liblouis contraction, mapped selection/cursor cells, panning and routing
without opening a physical display. See
the Braille feasibility evidence.
Default and brlapi-tagged Braille package suites passed with the race detector;
tagged vet, a helper build and the Tentacles repository's make check passed.
Ordinary text still needs an explicit
virtual translation-table policy, and the tested cursor overlay is static, not
BRLTTY cursor/blink parity. Virtual helper IPC, session integration, raw receiving
and physical-display acceptance remain pending. Phase A and all release gates
remain incomplete.
Fifth implementation increment (2026-11-03): opt-in reader protocol 1.1 now supports explicit API/grant sets, bounded bidirectional calls, lifecycle events, and core-issued expiring leases. Both Go and Python SDKs have real-process conformance tests, including stalled input/output, consent denial, stale epochs, heartbeat expiry, exclusive ownership and queue overflow. Grants persist through package/registry/launch paths and appear with direction and consent wording in install/update confirmations. Update preparation now revokes remote access before any download, including failed preparation; a focused application regression test covers this. Existing 1.0 SDK/command behavior remains supported. See the implemented session contract. Reader wire/host/preferences race suites, focused application Tentacle race tests, focused vet and four private GTK Tentacle workflows passed. The full host race suite took 131 seconds; an initial 90-second suite timeout was insufficient and the completed run used 240 seconds. A blocked Go stdin shutdown defect exposed by the new timeout fixture was fixed and rechecked in both SDKs. There is no production local consent issuer or desktop service behind these leases. Input/output/clipboard/Braille operations, origin-aware consent and lock/handoff integration remain pending. Phase B and all release gates remain open.
Sixth implementation increment (2026-11-03): Remote now has validated versioned
TOML settings and separate, explicitly remembered channel-key storage. Pins and
saved keys are bound to the relay host/port. Directory-relative operations reject
symlinks, hard links, special files and unsafe permissions; writes use private
atomic replacement with file/directory sync and cooperating-process locking.
Errors omit paths, parser excerpts and secrets. Storage performs no networking
and persists no lease, peer or session consent. See
the storage contract.
The complete Remote race suite and Tentacles make check passed after the
storage changes. Connection UI and local trust/Remember key actions still need
integration. This is another prerequisite, not a usable Remote release.
Seventh implementation increment (2026-11-03): a source-library coordinator now
binds explicit Connect/Disconnect attempts to public Go SDK lease operations and
lifecycle events. It requires a reader-issued pending action before opening a
lease, opens before networking, heartbeats during TLS/join, and cancels the relay
on revoke, replacement, SDK EOF, membership or transport failure. Cleanup orders
heartbeat completion before lease close; failed close blocks further connections.
The complete Remote race suite and repository make check passed, including an
actual SDK pipe fixture against a synthetic host. See
the coordinator contract and verification limits.
No reader code changed. Desktop payloads are counted and discarded; production
consent, connection UI, typed desktop services and all live release gates remain
open. This completes the library's explicit-connection foundation only.
Eighth implementation increment (2026-11-03): unwired public-SDK form handlers
now provide certificate inspection/review and explicit saved-key actions.
Inspection sends no application bytes and closes its socket; Copy fingerprint
does not approve trust, and Trust once returns an endpoint-bound pin for a fresh
authenticated connection. A changed certificate shows both fingerprints and
rotation before join fails without disclosing the channel key. Remember/Forget
use the existing secure storage and an empty masked entry. Cancellation and
terminal-action reuse are checked. Endpoint validation now rejects control
characters and invalid UTF-8. See the handler contract.
The complete Remote race suite and repository make check passed, including
nine new test functions with private TLS and filesystem fixtures. The latter
also checks existing Hello World, Wormhole and Battery Status host workflows.
Production local-origin authorization, command registration, connection UI,
persistent-pin UI, saved-key loading for Connect and desktop delivery remain
pending. The Phase C trust/Remember-key item and all release gates stay open.
Ninth implementation increment (2026-11-03): a single connection-library workflow
now combines the coordinator, masked key entry, explicit saved-key loading,
nested Remember/Forget, background certificate inspection, Copy/Trust once and
connection status/Disconnect. It claims one pending reader action, cancels setup
on replacement/SDK loss and scopes cleanup to its original epoch. Loading a key
or approving a certificate never connects automatically. The complete Remote
race suite and make check passed; focused workflow race tests also passed ten
repetitions after an inspection/cleanup race was corrected. A separate test
process exercises the actual SDK form/lease IPC, storage and private TLS relay
together. See the workflow and readiness boundary.
Production consent/input provenance, endpoint/role selection, persistent-pin UI,
lock/handoff revocation and desktop services remain unimplemented. No reader code
changed. There is still no runnable Remote command or live desktop test; all
release gates remain open.
Tenth implementation increment (2026-11-03): the reader now has a core consent
procedure with unchecked per-session grants and single-use, session-bound
approval tickets. Production managers require its focus/lock policy; I38lock
secure input and XTerm handoff cancel outstanding dialogs, actions and lease
contexts without waiting for session workers. Failed package preparation cannot
leave an older consent dialog able to authorize access. Sensitive Tentacle forms
use separate XI2 capture that rejects XTEST/SendEvent/unknown sources, reconstructs
local modifier state and cancels on device hierarchy changes. Ordinary forms
retain their existing path. See reader authorization and its acceptance limits.
Host/wire/interaction and focused app race suites, both SDK process fixtures,
ten private input experiments, six native input race tests, the existing internal
UI harness, vet, reader build, shellcheck, build-script tests and make check
passed. The full host race suite took about 124 seconds. Xvfb proves injected
approval rejection, not successful physical keyboard approval; virtual evdev and
malicious same-user clients remain outside that guarantee. No connection command
is registered and no desktop service exists. Physical-source acceptance,
connection command integration and the existing live release gates remain open.
Eleventh implementation increment (2026-11-04): the source-built Remote command
now joins relay/role selection to reader-owned per-session consent and the
existing connection controls. A typed interaction request can ask for consent
only for its own process session; the continuation must match the SDK-delivered
action. All forms retain local-only XI2 capture. Core interaction completion
revokes its original epoch, and bounded child cleanup cancels pre-lease setup
on lock/handoff. Explicit persistent-pin Remember/Forget controls use the secure
store. The executable is included in source builds/checks, without a manifest,
catalog entry or release archive. See the command contract and physical-input
test procedure. Real-host/private-relay checks cover both
roles, denial, policy cancellation, certificate inspection, TLS join and
disconnect. The full Remote race suite, existing host/both-SDK conformance race
suites, focused application race checks, vet, reader build, repository make check,
and private Xorg input/internal-form harnesses passed. Native form-model coverage
also verifies Cancel works with empty relay fields. These use synthetic local-form submissions. Physical-keyboard
approval, audible masking and physical Braille acceptance remain pending.
No desktop services exist; Phase B/C and all live release gates remain open.
Twelfth implementation increment (2026-11-04): typed speech transport now has Go/Python validation, lease-bound observed-output events and an explicit bounded incoming reader mailbox. Revocation cancels accepted work and drains the queue; overflow retires the lease. External conversion preserves whitespace, spelling, language and utterance boundaries, splitting long UTF-8 text within encoded IPC limits. See the exact scope and checks. The speech worker and coordinator are not connected; the source command remains relay-only. Audible speech, real interoperability and the remaining release gates are open.
Thirteenth implementation increment (2026-11-04): the external coordinator now
connects typed relay speech to reader presentation IPC and matching controlled
reader output events to relay writes. Heartbeat/presentation/close share one
sequenced owner; speech queues are bounded by 64 items and 256 KiB, including
in-flight work. Split incoming utterances are admitted together or rejected
before any prefix enters the child queue. Stale/pre-peer output is discarded;
revocation and overflow clear queues and cancel the socket independently of
blocked reader calls or relay writes. Both-role SDK child-process fixtures cover
the forms/storage/TLS/speech path. See the scope and verification.
The full Remote race suite, ten repetitions of the focused speech/SDK-process
race cases and repository make check passed, including existing Tentacle host
workflows and reader Remote consent/typed-speech tests. No reader source changed.
Production output observation, delivery policy,
atomic split-utterance delivery and audible speech remain pending. A reader with
no speech owner rejects presentation and Remote closes the lease; connection UI
warnings remain. Phase B/C and all live release gates remain open.
Fourteenth implementation increment (2026-11-04): split relay utterances now
assemble atomically in the reader before speech-owner admission. Optional
utterance/final IPC metadata preserves the shared operation sequence, permits
heartbeats during assembly and rejects interleaving, replay and priority changes.
The reader independently bounds staged, queued and in-flight speech to 64 frames
and 256 KiB; owner release is idempotent and scoped to its original lease.
Overflow and lease retirement discard incomplete work without exposing a prefix.
Both SDKs provide matching presentation validators. The actual source-built
command/private-relay/reader-host fixture checks long escaped multilingual speech
arriving as one complete owner delivery. See the contract and checks.
The full Remote race suite, reader wire/host/both-SDK race suites (host: about
127 seconds), focused real-host connection race tests, focused vet and repository
make check passed.
Production output observation, delivery-time arbitration, remote cancellation
ownership and audible speech remain pending. No installed or active reader was
replaced; Phase B/C and all live release gates remain open.
Review corrections (2026-11-04): pending reader actions now emit an
remote.revoked event on expiry or revocation, carrying the action token instead
of a lease token. Both SDKs validate exactly one identity, and setup workflows
retire on the notification. Relay channel_joined messages with a peer origin
are rejected at both transport and membership boundaries. Regression tests
reproduced both previous behaviors. The reader host/wire race suites (host:
143 seconds), full Remote race suite, focused application race checks, shared
interaction/Braille/preferences race suites, focused vet and Tentacles
make check passed. No physical-input, audible-speech, physical-Braille or
live-interoperability acceptance was performed. This does not complete any
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
and reader policy.
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.
Sixteenth implementation increment (2026-11-04): explicit Return to desktop now
ends the connection status interaction while retaining a verified, already-open
reader lease. The Remote shortcut reopens status/Disconnect without another
approval or key entry. The terminal remote_background contract is exposed by
both SDK representations and checked against process ownership, epoch, deadline
and policy; it neither opens nor renews a lease. Ordinary cancellation retains
its previous cleanup path. Private source-command/reader-host/TLS checks cover
both roles, repeated return/reopening and background disconnect, lock, handoff
and disable. Incoming speech ownership remains pending, as do physical capture
release, ordinary desktop reading, audible speech and interoperability acceptance.
The full Remote and reader host/wire/both-SDK race suites passed (host: about
126 seconds), together with ten repetitions of the source-command connection
race cases, focused shared interaction/consent/observation checks, affected-package
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.
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.
Eighteenth implementation increment (2026-11-04): the reader now has a lazy,
isolated software-synthesis handle as a prerequisite for incoming speech.
Its Speech Dispatcher cancellation targets a separate speaking client; private
SSIP fixtures retain local status and custom echo during remote cancellation.
END/CANCEL pacing, caller cancellation, exclusive ownership, failed/successful
configuration changes and stale-handle cleanup have focused race coverage.
The handle uses the latest committed settings, rejects hardware backends and
retires on configuration replacement or reader shutdown. See
the precise boundary.
It is not attached to the incoming mailbox and interprets no relay metadata.
The focused application/backend race suites, ten repetitions of the new cases,
existing speech regression harness, affected-package vet, separate reader build
and Tentacles make check passed.
Delivery-time lease policy, local priority, metadata rendering and audible
speech remain pending. No installed or active reader was replaced, and no
release gate is complete.
Nineteenth implementation increment (2026-11-04): an isolated incoming-speech
renderer now validates complete assemblies and joins matching language/spelling
state across IPC splits without adding whitespace. Literal synthesis preserves
spaces, tabs and line boundaries, escapes dot-prefixed SSIP data lines and turns
markup interpretation off. It captures effective default language/module/voice
state, restores it across metadata changes and retires failed or cancelled
handles without replaying their suffixes. Local status and echo remain on their
own clients. Cancellation during metadata preparation also drops the whole
assembly; overlapping typed rendering is rejected. See
the rendering contract and named-voice fallback.
The complete speech-backend race suite, ten repetitions of the isolated-client
and rendering race cases, existing speech regression harness, affected-package
vet, a separate reader build and Tentacles make check passed.
The renderer is not connected to the incoming mailbox and grants no authority.
Delivery-time policy, stream priority/cancel/pause handling, local priority and
real Speech Dispatcher/audible acceptance remain pending. No installed or active
reader was replaced; no release gate is complete.
Twentieth implementation increment (2026-11-04): an unwired incoming reader
stream now joins the isolated renderer to complete deliveries while continuing
to process cancel/pause during synthesis. It retains frame/byte budgets through
cleanup, drops revoked or denied work, orders NEXT/NOW priorities and scopes
backend handles to their original lease, including idle revocation. Pause uses
cancel-and-discard; resume accepts future speech only. NOW discards interrupted
speech rather than replaying it, so this is limited priority support, not NVDA
resumption parity. See the stream contract.
The new stream race cases passed ten repetitions, alongside existing application
Remote speech and echo race checks, the speech regression harness,
application vet, a separate reader build and Tentacles make check. Private
SSIP fixtures verify local status survives remote cancellation, acquisition
rechecks policy, idle revoke closes the old voice and stale cleanup cannot
cancel replacement output. The stream requires an explicit policy callback;
production mailbox attachment and local output arbitration remain pending.
No installed or active reader was replaced. Real Speech Dispatcher scheduling,
audible speech, physical input/Braille and live interoperability remain untested;
no release gate is complete.
Twenty-first implementation increment (2026-11-05): production local-launch and
managed-session startup now attach the incoming software speech owner. Delivery
and post-acquisition checks retain the original lease, deadline, reader output
policy and internal-form exclusion. Local announcements/interruption cancel
active incoming work and discard older stream, mailbox and unfinished-assembly
work; first-frame reader timestamps prevent old work acquiring fresh local
admission after dequeue. The isolated client uses SSIP TEXT while local output
retains MESSAGE, so relay priorities cannot outrank local speech. Server priority
cancellation discards the assembly without revoking consent; backend failures
retire only their original epoch. Source-command UI now identifies experimental
speech while keeping keyboard, clipboard and Braille unavailable. See
the owner and local-priority contract.
Private source-command/TLS/SSIP fixtures exercise complete multilingual speech,
active cancellation on disconnect, lock, handoff and disable, and backend failure
followed by a fresh explicit connection workflow. The full Remote and reader
host/wire/both-SDK race suites passed (host: about 128 seconds), together with
ten repetitions of the incoming/source-command race cases, shared speech/Tentacle
application race regressions, the speech regression harness, affected-package
vet, a separate reader build and Tentacles make check. Real Speech
Dispatcher scheduling, audible speech, physical input/Braille and live
interoperability remain unverified. No installed or active reader was replaced,
and no release gate is complete.
Twenty-second implementation increment (2026-11-05): a speech privacy review
found that joined document lines could lose neighboring fragments' ancestry.
Caret-line export checked only the caret source; Say All flattened fragment
text without preserving the other sources. The reader now retains per-source
contexts through both visual-line assembly paths and Say All flattening.
Password sources/ancestors, unknown roles and failed context lookups deny export
without changing local reading. Other review commands remain unclassified.
See the speech privacy contract.
A real accessibility-tree regression fails against the previous classifier and
passes with the correction. AT-SPI/review race suites, focused application
reading/Remote/speech race checks, ten repetitions of document privacy cases,
source-command/private-relay race checks, the speech regression harness,
affected-package vet, a separate reader build and Tentacles make check passed.
No installed or active reader was replaced; audible speech, physical input,
physical Braille and live interoperability remain unverified. No release gate
is complete.
Twenty-third implementation increment (2026-11-05): browse-mode current-line
reporting, spelling and phonetic spelling now opt into speech observation after
checking captured source ancestry and every joined fragment. The review worker
retains ancestry from the final movement's tree, including after recapture.
Password sources/ancestors, unknown roles and missing/stale ancestry keep the
report private without changing local reading, focus, caret or Braille. Native
current-line reports remain private because their reads lack complete ancestry.
The existing speech owner preserves pronunciation, repeated letters, character
state, utterance boundaries and the original admission lease/generation.
See the speech contract and
the live test procedure.
Regression tests reproduced the missing ordinary export before the change.
Focused application/input reading and Remote race checks, the complete review
and external Remote race suites, the existing speech regression harness,
affected-package vet, a separate reader build and Tentacles make check passed.
The actual source-command/private-relay fixture exports ordinary current-line
speech and excludes a private joined neighbor. No full reader suite, native
desktop or hardware checks were run for this increment. No installed or active
reader was replaced. Audible speech, physical input/Braille and live NVDA/Orca
interoperability remain unverified; no release gate is complete.
Twenty-fourth implementation increment (2026-11-05): successful object review
and flat-review line/word/character reports now export with their captured source
ancestry. Joined flat lines check every contributing zone; menu/dialog capture
retains outer ancestors. Password, unknown/invalid, defunct and missing/stale
sources keep reports local. Dirty privacy metadata does not prevent local
reading, and tree replacement cannot mix layout text with newer ancestry.
Boundaries and errors stay private. Existing role chunks, pronunciation,
spelling/phonetics and original lease/generation admission are preserved.
Ordinary object and flat review now reach the source-command/private-relay
fixture; sensitive/stale reports do not. A temporary source overlay restoring
the previous unclassified behavior reproduces missing ordinary export.
Complete AT-SPI/review race suites, focused application reading/speech/Remote
race regressions, affected-package vet, the existing speech regression harness,
a separate reader build and Tentacles make check passed. The expanded relay
fixture initially filled its test speech recorder; the fixture capacity now
accommodates the added local utterances and checks the separate role boundary.
No full reader suite, native desktop or hardware checks were performed. No
installed or active reader was replaced. Where Am I, native current-line reads
and other unreviewed producers remain private. Keyboard, clipboard and Braille
integration, physical approval, audible speech and real interoperability remain
open; this is not close to the full remote-control release. No release gate is
complete. See speech.md and the updated
live review checks.
Review correction (2026-11-05): reviewed reader c03ffa7 (testing) and
Tentacles cf426c6 (master), synchronized with their upstreams. Document
speech rejected empty roles but still exported explicit unknown/invalid roles,
defunct objects and uncertain ancestors. The shared accessibility classifier now
rejects all of these, and document/review producers use that same policy.
Regressions reproduced the previous behavior in caret reading, navigation and
Say All. Expanded presentation and fragment tests verify export exclusion while
local document reading remains available. No external runtime defect was
confirmed in the inspected transport, storage, coordinator and speech bridge.
Focused reader Remote/observation race checks, the complete external Remote race
suite, application vet, the existing speech regression harness and Tentacles
make check passed. Tests include actual-host/private-relay speech IPC; they do
not establish physical input, audible speech, physical Braille or live
interoperability. No installed or active reader was replaced and no release gate
is complete.
Twenty-fifth implementation increment (2026-11-05): based on reader 02fb70e
(testing) and Tentacles 0400dd7 (master), synchronized with their upstreams.
Document-position Where Am I now exports only with complete captured source
ancestry. Its classification belongs to the current snapshot and document
focus/epoch; every snapshot replacement clears it, including same-object native
updates and Say All position updates without ancestry. Password, unknown/invalid,
defunct, missing/mismatched sources and retired focus/epochs keep reports local.
Foreground synchronization rechecks lock/handoff before speech. Native focus
reports and missing-location status remain private. Existing role chunks,
pronunciation and lease/generation admission are retained; local focus, caret
and Braille are unchanged. The ordinary-source regression failed before the
implementation. The actual source-command/private-relay fixture verifies
ordinary output, private/stale exclusion and role boundaries.
Focused application reading/focus/speech/Remote race regressions, complete
input/review/AT-SPI and external Remote race suites, ten repetitions of the new
Where Am I race cases, the existing speech regression harness, application vet,
a separate reader build and Tentacles make check passed. The full application
race suite timed out after 180 seconds in package-upgrade tests; it is not a
pass. A source-command race run initially lacked sandbox socket access; its
approved rerun passed. No native desktop or hardware checks were performed.
No installed or active reader was replaced. Audible speech, physical input and
Braille, real Speech Dispatcher scheduling, NVDA/Orca interoperability and the
remaining desktop services remain open; no release gate is complete.
See the speech contract and
live Where Am I steps.
Twenty-sixth implementation increment (2026-11-05): based on reader 103fbfd
(testing) and Tentacles 149ce7a (master), synchronized with their upstreams.
Native current-line reporting, spelling and phonetics now export only with fresh
focused-source ancestry through the application. Capture stays on the GLib owner,
refreshes role/state metadata and bounds ancestry by depth and deadline. Missing,
cyclic or truncated ancestry keeps successful local text readable while denying
export. Password, unknown/invalid, defunct and mismatched sources stay private.
The original focus/epoch and lock/handoff are checked before presentation,
including after foreground synchronization. Pronunciation, spelling boundaries,
caret, focus and local Braille retain their existing behavior. Native Where Am I
and other unreviewed producers remain private.
The ordinary native-source regression failed before implementation. Private GTK
race checks verify source ancestry, changed password/unknown/invalid ancestor
roles, unchanged caret and local reading with overlong ancestry. The actual
source-command/private-relay fixture exports ordinary native reports and excludes
private native ancestry. Focused application reading/speech/Remote race checks,
complete review/AT-SPI/input and external Remote race suites, the existing speech
regression harness, affected-package vet, a separate reader build and Tentacles
make check passed. No full reader suite or physical/audible acceptance was run.
No installed or active reader was replaced. Physical approval, audible speech,
physical Braille, real Speech Dispatcher scheduling, NVDA/Orca interoperability
and the remaining desktop services stay open; no release gate is complete.
See the speech contract and
live native current-line steps.
Twenty-seventh implementation increment (2026-11-05): based on reader ee3d91a
(testing) and Tentacles 01872af (master), synchronized with their upstreams.
Matching reader implementation: 8631c5a.
Native Where Am I now exports only after a fresh focused snapshot and complete
ancestry pass privacy checks and render exactly the cached local report,
including role, formula and speech chunks. Capture stays on the review/GLib
owners, preserves focus/caret, and uses the existing bounded ancestry walk.
Missing, private, invalid or truncated sources, changed reports and provider
failures keep local speech private. Snapshot replacement, focus/epoch changes,
lock and handoff retire pending results. No native classification is cached;
idle Remote keeps its immediate local path. The existing speech owner retains
pronunciation and lease/generation admission.
The ordinary-source regression fails against the previous presentation code.
Private GTK race checks cover fresh snapshot ancestry, changed private ancestor
roles, password text exclusion, unchanged caret and truncated ancestry. Actual
source-command/private-relay race tests verify ordinary native Where Am I output,
private/changed-report exclusion and role boundaries. Focused application
reading/speech/Remote race checks, complete review/AT-SPI/input and external
Remote race suites, the existing speech regression harness, affected-package vet,
a separate reader build and Tentacles make check passed, together with ten
repetitions of the new application/review race cases. The repository check now
includes native Remote speech regressions. No full reader suite or
physical/audible acceptance was performed. No installed or active reader was
replaced. Physical approval, audible speech, physical Braille, real Speech
Dispatcher scheduling, NVDA/Orca interoperability and the remaining desktop
services stay open; no release gate is complete. See
the speech contract and
live native Where Am I steps.
Twenty-eighth implementation increment (2026-11-05): based on reader 8631c5a
(testing) and Tentacles 26590c0 (master), synchronized with their upstreams.
Matching reader implementation: 9ac3356.
Reading-context entry and exit announcements now export for eligible local
requests after checking every retained context and its ancestry. Navigation,
named articles, Say All and spelling retain their existing settings, counts,
deduplication, system voice and exact local label text. Cached exit labels keep
their previous context's original observation ticket while requiring current
request eligibility. Pre-consent/private labels and retired leases cannot acquire
replacement consent. Context reset clears labels and their ticket; nil context
grants no new authority. Focus, caret, application keys and local Braille retain
their existing behavior. Separate key-name echo and other unreviewed producers
remain private. See the speech contract.
The ordinary-context regression failed before implementation. Real SDK-process
tests cover entry/exit order, private/unknown/defunct and filtered ancestry,
Say All, repeated-letter spelling, pre-consent labels, replacement leases and
queued old/pre-consent context. Actual source-command/private-relay checks cover
ordinary transitions, private cached exits and disconnect/lock/handoff/disable.
The fixture now supplies reading settings, which were previously absent.
Focused application Remote/speech/reading/context race regressions passed,
alongside ten repetitions of the context/reconnect/source-command race cases,
the complete external Remote race suite, existing speech regression harness,
application vet, a separate reader build and Tentacles make check.
No full reader suite, native desktop or physical/audible acceptance was performed.
No installed or active reader was replaced. Physical approval, audible speech,
physical Braille, real Speech Dispatcher scheduling, NVDA/Orca interoperability
and the remaining desktop services stay open; no release gate is complete.
See the live context steps.
Twenty-ninth implementation increment (2026-11-05): based on reader 9ac3356
(testing) and Tentacles affe313 (master), synchronized with their upstreams.
An isolated bidirectional VK/XKB converter now preserves left/right modifiers,
main/keypad Enter, navigation/keypad distinctions, reader modifier keys and
F1–F24. Explicit portable/US profiles avoid guessing OEM punctuation on other
layouts. Generic Shift requires distinguishing scan information; unsupported
keys, profiles and ambiguous extended combinations return constant errors.
No X keycode or scan code is fabricated, and conversion grants no desktop
authority. See the keyboard prerequisite and integration boundaries.
Fixed wire-identity tests cover both transitions, all letter/digit/function
ranges, modifier variants, aliases, OEM profiles, unknown input and concurrent
maps. Codec/session tests verify press-state preservation and controller-only
keyboard direction. Focused keyboard race tests, the full Remote race suite and
Tentacles make check passed, including existing source-command/private-relay
consent and speech fixtures. No reader code changed; no full reader suite or
native/hardware checks were performed. Capture, injection, held-key/repeat and
layout-change ownership, AltGr, physical recovery, clipboard and Braille remain
pending. The source command still discards keyboard payloads. No installed or
active reader was replaced; no release gate is complete.
Thirtieth implementation increment (2026-11-05): based on reader 9ac3356
(testing) and Tentacles 2d6dba2 (master), synchronized with their upstreams.
An isolated outgoing keyboard encoder now retains each down's wire identity
through normalized repeats, key release and layout/Num Lock name changes. It
admits at most 32 held source keys, suppresses modifier/lock repeats and unowned
ups, and stops on ambiguous history, unknown mappings or wire-identity
collisions. Original-epoch retirement transfers a bounded reverse-order release
plan without touching replacement state. One outstanding write plan and exact
sequence acknowledgements preserve cleanup ownership through failed or uncertain
downs/ups; late acknowledgements cannot consume newer work. No sequence metadata
is added to NVDA frames. See the contract.
Focused encoder race tests, the full Remote race suite and Tentacles
make check passed, including existing command/consent/speech regressions.
New tests cover mapping changes, repeat/lock handling, source/capacity limits,
collisions, stale epochs, pending-write backpressure and acknowledgement order.
A failed release write retains its original cleanup key; a private TLS fixture
receives downs, repeats, original-key ups and post-collision cleanup in order.
The encoder is not attached to the coordinator. It performs no desktop I/O and
does not establish physical or crash recovery. Classic X11 autorepeat still
needs native normalization; the existing observation listener cannot be wired
directly to this encoder. Capture, injection, source provenance, independent
target cleanup, bypass handling, AltGr, clipboard and Braille remain open.
No reader source or active installation changed; no full reader suite, native
desktop, audible/physical or interoperability acceptance was performed. The
source command still discards keyboard payloads; no release gate is complete.
Thirty-first implementation increment (2026-11-05): based on reader 9ac3356
(testing) and Tentacles 76993ec (master), synchronized with their upstreams.
Matching reader implementation: 792cac5.
Typed incoming remote.key IPC now has strict canonical logical key names,
required press state and matching Go/Python validators. Host admission checks
process ownership, controlled-role keyboard-inject consent, deadline, epoch
and the shared operation sequence. An explicitly attached reader mailbox bounds
queued plus in-flight work by 256 transitions and 256 KiB; dequeue alone frees
no capacity. Idempotent owner release is scoped to the original access object.
Overflow revokes the lease, while retirement cancels accepted work and drains
pending input without waiting for a native worker. See
the reader contract.
The external bridge converts supported relay key identities into the public SDK
type. No production reader input owner or coordinator keyboard bridge is attached:
ordinary remote.key calls remain owner-unavailable, and the source command
continues to discard keyboard payloads. No keyboard grant or new command is
offered by its UI. Native capture/injection, source provenance, held-key cleanup,
escape/bypass, layout policy, clipboard and Braille remain open. This establishes
typed input admission only and completes no live release gate.
Strict validation and real Go/Python SDK process tests cover representation,
owner absence, role/grant/process checks, heartbeat ordering, replay, concurrent
idempotent release, in-flight limits, overflow and retirement/replacement. Every
canonical external mapping passes the public SDK bridge. The full reader
wire/host/both-SDK race suites passed (host: about 128 seconds), together with
the complete external Remote race suite, focused application Remote connection
and speech race checks, existing speech regression harness, affected-package
vet, a separate reader build and Tentacles make check. The host lifecycle
test was updated to expect typed-key parameter rejection while retaining the
unsupported Braille check. Repository checks now include keyboard and lifecycle
regressions. No full reader suite, native desktop, physical/audible or live
interoperability acceptance was performed; no active reader was replaced.
Thirty-second implementation increment (2026-11-05): based on reader 792cac5
(testing) and Tentacles 0086b89 (master), synchronized with their upstreams.
Matching reader implementation: cd9ae05.
A reader-owned destination ledger now reserves at most 32 native codes before
downs and retains them until successful ups, including uncertain native effects.
Retirement stops admission, attempts every owned release in reverse down order
and retains failed releases for explicit retry. Duplicate downs and unowned ups
are idempotent; already-held target keys and aliases of owned codes are rejected.
The canonical key vocabulary moved into the shared input policy without changing
the wire/SDK schema. See the ownership contract and limitations.
A quarantined Xorg backend uses fresh XKB snapshots to resolve one unambiguous group-zero destination, preserving Num Lock while resolving base keys. Ups use their original reserved code after layout/Num Lock changes. Missing, ambiguous, shift-only and unsupported-group mappings fail without modifier synthesis or keymap rewriting. Lock-key downs remain unavailable pending lock/reader-modifier policy. There is no production caller or mailbox attachment; synchronous Xlib work must eventually run in an independent helper. This increment supplies no EOF/watchdog or reader-SIGKILL cleanup and does not solve later physical same-code collisions or check/inject races. Native repeat fidelity, source provenance, capture/escape/bypass and live interoperability remain open. The Remote command still discards keyboard traffic and offers no keyboard grant.
Unit tests and six new private Xvfb Go race tests verify destination-code
retention, uncertain effects, retry order, bounded ownership, preexisting
synthetic collisions, modifier cleanup, US/German map replacement, Num Lock,
unsupported groups, shifted-only symbols and lock refusal. The existing ten
Python experiments and six native input race regressions also passed, alongside
input/wire/Xorg race suites, focused host key/lifecycle race checks, the complete
external Remote race suite, affected-package vet, a separate reader build,
the existing speech regression harness and Tentacles make check. Default native
skips were not counted as acceptance;
the dedicated harness supplied the six new native results. No full reader suite,
installed/active-reader replacement, physical input/Braille, audible speech or
real NVDA/Orca acceptance was performed. No release gate is complete.
Thirty-third implementation increment (2026-11-05): based on reader cd9ae05
(testing) and Tentacles b88565a (master), synchronized with their upstreams.
Matching reader implementation: 21d8904.
The source-built cthulhu-input-helper now hosts the quarantined Xorg target in
its own process, with fixed-size private IPC, one immutable epoch, strictly
increasing sequences and a separate empty EOF lifeline. Lifetime cancellation
does not wait for buffered or incomplete key data to drain. Only explicit valid
heartbeats renew the three-second watchdog; key traffic cannot postpone expiry.
Inherited pipes are direction-checked and adopted as interruptible nonblocking
duplicates. A bounded ACK writer cannot postpone native cleanup; terminal ACKs
report cleanup status, with a bounded flush and joined I/O workers. SIGTERM and
SIGINT attempt orderly retirement. See the helper contract and limits.
Eight private native process scenarios verify explicit close, writer SIGKILL, writer SIGSTOP/watchdog expiry, SIGTERM with a partial frame, replay, wrong epoch, heartbeat renewal beyond the initial deadline and a full real ACK pipe. A separate X connection verifies owned Shift/Control release. The supervisor owns helper and writer separately to reap both: this models writer/descriptor death, not an actual production reader launch/SIGKILL. Six existing destination-target native tests remain passing regressions. Pure helper tests cover exact frames, fragmentation, lifetime EOF/data, cancelled queued downs, blocked ACKs, key-only expiry, cleanup failure reporting, private errors and inherited pipe shutdown.
The helper/input/wire/Xorg race suites, extended native helper/target harness,
existing ten-experiment/six-native-test input harness, full external Remote race
suite, affected-package vet, separate reader build, existing speech regression
harness and Tentacles make check passed. Repository checks include private
helper protocol/lifecycle tests and compile the helper command. No full reader
suite, active/installed-reader replacement, physical keyboard/Braille, audible
speech or live NVDA/Orca acceptance was performed.
No production reader launcher, mailbox owner or retirement barrier is attached, and the ordinary build/install script does not install this third executable. Helper SIGKILL, blocked Xlib/server calls, later physical same-code collisions, source provenance, native lock/AltGr/group/repeat policy and capture/escape/bypass remain unresolved. Missing/failed cleanup confirmation must block replacement input. The source command still discards keyboard traffic and offers no keyboard grant; no release gate is complete.
Thirty-fourth implementation increment (2026-11-05): based on reader 21d8904
(testing) and Tentacles 71d77d1 (master), synchronized with their upstreams.
Matching reader implementation: 5ab3efd.
A quarantined reader-side Supervisor now launches the input helper in its own
process group with exclusive private pipe ownership. One owner sequences keys
and periodic heartbeats, with bounded startup/read/write waits and no retained
key queue. Cancellation closes the independent lifetime pipe even during a
pending operation; cancellation of an admitted key call retires its entire
client. The launcher never kills the helper to satisfy a timeout.
Replacement requires a valid original-epoch successful-cleanup acknowledgement, validated operation history and successful process exit. Invalid/replayed ACKs, missing confirmation, abnormal exit, failed cleanup or a retirement timeout permanently block that Supervisor's replacement path. Fresh authorized clients can start after confirmed retirement, and stale client cancellation cannot affect them. A future production reader owner must retain this uncertainty latch across sessions and supply authenticated lease/policy checks; these private heartbeats grant no consent. See the supervisor contract and limits.
Private subprocess tests cover idle heartbeat renewal, explicit/context cancellation, an admitted key with a withheld ACK, readiness failure, concurrent launch refusal, replacement isolation, invalid ACK epochs/sequences/order, abrupt exit, cleanup failure, clean ACK followed by abnormal exit and blocked target work. Two private Xvfb scenarios launch the actual helper through the Supervisor and inspect held Shift/Control from a separate X connection: explicit and lease-context cancellation release both before replacement admission.
The helper/input/wire/Xorg race suites, full external Remote race suite, private
native helper/target harness, affected-package vet, separate reader build,
existing speech regression harness and Tentacles make check passed. The
repository check now includes Supervisor tests. Its first run exposed a
synthetic blocked-call fixture that exited on Go's non-race deadlock detector;
using a long timer models that blocked call without runtime termination, and
both ordinary and race checks passed after correction. No full reader suite or
physical/audible/interoperability acceptance was performed.
Production reader attachment, native delivery-time policy and mailbox ownership remain pending. No normal build/install integration or keyboard grant was added; the source command still discards keyboard traffic. Helper death and blocked native calls can still prevent recovery; the supervisor reports uncertainty and blocks input instead of claiming a desktop recovery bound. Physical same-code collisions, source provenance, lock/AltGr/group/repeat policy, capture/escape/bypass, audible speech, physical Braille and real interoperability remain open. No installed or active reader was replaced; no release gate is complete.
Thirty-fifth implementation increment (2026-11-05): based on reader 5ab3efd
(testing) and Tentacles 08e7af0 (master), synchronized with their upstreams.
Matching reader implementation: 06530f0.
A quarantined reader worker now joins typed incoming-key admission to the
retained input-helper Supervisor. It checks original-lease authority and a
required policy callback before launch and again after readiness. In-flight
mailbox budget remains reserved through helper completion or retirement. Idle
revoke, deadline expiry, failed delivery and replacement release the original
helper; replacement input waits for confirmed cleanup and process exit. Clean
cancelled startup cannot revoke newer consent. Uncertain cleanup ends the
worker's session and preserves the Supervisor's permanent replacement block;
every worker exit disables its accepting mailbox session. See
the worker contract and private evidence.
Private real Go SDK/host/helper-process race tests cover ordered transitions, replacement, denial before launch/after readiness, replacement during cancelled startup, independent lease expiry, blocked delivery with queued input, worker shutdown and failed cleanup. Five new private Xvfb scenarios use the actual source-built helper and a separate key-state connection to verify Shift/Control release on disconnect, policy cancellation, disable, shutdown and replacement. The replacement case admits a letter only after the old modifiers release. The extended harness retains the earlier target/helper native regressions.
Focused application Remote/Tentacle/speech/key-interruption race checks, complete
helper/input/wire/Xorg and external Remote race suites, the extended native
helper/target/owner harness, actual source-command/private-relay race checks,
affected-package vet, a separate reader build, existing speech regression
harness and Tentacles make check passed. Repository checks now include the
mailbox-owner tests. No full reader suite or physical/audible/interoperability
acceptance was performed.
This worker has no production caller or implemented physical-input policy. Ordinary reader startup and the Remote command do not enable keyboard services; the command still discards keyboard traffic and offers no keyboard grant. Physical same-code collisions, trusted command routing, actual reader crash recovery, lock/AltGr/group/repeat policy and capture/escape/bypass remain open. Helper death and blocked native calls can still prevent recovery. No installed or active reader was replaced; audible speech, physical Braille and real NVDA/Orca interoperability remain unverified. No release gate is complete.
Thirty-sixth verification increment (2026-11-05): based on reader 06530f0
(testing) and Tentacles 066db33 (master), synchronized with their upstreams.
Matching reader verification: ee1c32f.
The native harness now kills/stops the actual quarantined reader-side process
running the real SDK, host, mailbox worker and retained Supervisor, rather than
only a synthetic writer. Its source-built helper remains in a separate process
group and releases held Shift/Control on lifetime EOF or independent watchdog
expiry. The stopped owner resumes only after native release; its session is
disabled and the same Supervisor blocks replacement after unconfirmed helper
exit. A Linux subreaper fixture adopts/reaps orphaned SDK/helper processes without
depending on PID 1 or a service manager. See
the process-failure evidence.
The first private Xvfb run observed release in 0.01 seconds after owner SIGKILL
and 2.99 seconds after owner SIGSTOP; these are observations, not recovery
deadlines. The expanded native harness passed twice with its existing target,
helper and five mailbox-owner regressions. Existing helper/input/Xorg race suites,
application vet and Tentacles make check passed. No runtime input behavior or
production caller was added. Physical same-code collisions, trusted routing, capture/escape/bypass,
lock/AltGr/group/repeat policy, helper death, blocked native calls and production
reader attachment/recovery remain open. No installed or active reader was
replaced; audible speech, physical Braille and live interoperability remain
unverified. No release gate is complete.
Thirty-seventh implementation increment (2026-11-06): based on reader ee1c32f
(testing) and Tentacles d3e55c3 (master), synchronized with their upstreams.
A quarantined reader RemoteRepeatNormalizer now converts native observations
into the stream the outgoing encoder requires: one fresh down, repeated downs
and one final up. A nonzero-timestamp release is held until the next observation
or a 25 ms deadline; a same-code, same-timestamp press becomes a repeat and the
classic release is dropped. Other observations, zero timestamps and deadlines
emit the release first. Detectable-autorepeat downs pass through. Releases for
keys held before capture are suppressed; invalid codes or more than 32 held keys
stop admission, and retirement releases every owned key once in reverse order.
See the reader evidence.
Eight unit tests cover classic pairs, detectable repeat, deadline flushes,
unowned releases, retirement order, invalid/excess keys and non-pairing events.
A new private Xvfb race test holds an XTEST key through the real XRecord
listener: five runs each saw 22 raw downs, one up and no classic pairs, and
normalized to one down, 21 repeats and one up. Classic pairs were therefore not
observed on this server; that path is unit-tested only. Input-package race
tests, Xorg-package race tests, affected-package vet, a separate reader build,
the complete private native input harness (ten Python experiments plus internal
UI capture, learn mode, injected-approval rejection, injected observation,
suspended queue, XTerm handoff and the new repeat test) and Tentacles
make check passed. The full default reader suite (go test ./..., 34
packages) also passed; native cases skip there and are counted only above. The normalizer has no production caller and is
not attached to capture or the encoder; capture, provenance, collisions,
lock/AltGr policy, escape/bypass and all live acceptance remain open. No
installed or active reader was replaced; no release gate is complete.
Thirty-eighth implementation increment (2026-11-06): based on reader 6b3aa80
(testing) and Tentacles 5c3d00e (master), synchronized with their upstreams.
A quarantined reader RemoteCaptureRouter now routes normalized controller
capture. Ordinary keys and Cthulhu/NVDA modifier chords go to the remote; only
a required core escape chord and local chords derived from resolved bindings
stay local, so remaps are honored and the escape always wins. When a local
chord completes, forwarded modifiers are released remotely first and withdrawn;
a later forwarded key presses them again before itself. Releases of local or
withdrawn keys never reach the remote. Retirement returns remote releases and a
list of physically held keys whose releases the native owner must swallow, so
no bypass release leaks to a local application that missed its press.
See the reader evidence.
Nine unit tests cover these paths, resolved Tentacle bindings and composition
with the repeat normalizer. Input-package race tests, affected-package vet, the
full default reader suite (34 packages) and Tentacles make check passed. No
native harness change was needed; no physical keyboard was used. A withdrawn
prefix reaches the remote as a modifier tap, which can open a Windows menu bar
after Alt; live NVDA testing must decide whether a neutral key is required.
The router has no production caller. Native capture, the escape's independence
from a hung Tentacle, provenance, collisions, lock/AltGr policy and all live
acceptance remain open; no release gate is complete.
Thirty-ninth implementation increment (2026-11-06): based on reader 26c3dbb
and Tentacles 2379a4e. Controlled-side keyboard injection is now reachable in
production. Local launch and managed startup attach the incoming-key mailbox for
sessions installed with keyboard-inject, using one input-helper Supervisor
retained for the reader lifetime. Delivery rechecks lease, grant, deadline,
lock, XTerm handoff and internal reader UI. build-cthulhu.sh and both Arch
packages build and install cthulhu-input-helper; a missing helper leaves
keyboard input unavailable without affecting startup. The source command offers
a session-only "let the helper control this keyboard" option and a key profile
(portable, or US punctuation) for the controlled role; with it, the reader's
consent covers keyboard-inject and the coordinator forwards converted relay
keys through remote.key in the shared operation sequence. Unconvertible keys
are ignored for both press and release; a full 256-key queue stops the
connection. See the reader contract.
Real SDK-process reader tests cover production delivery and lock-policy
retirement, handoff denial before launch, and no-grant/missing-helper cases.
Coordinator tests cover ordered key requests, ignored unsupported keys, missing
grant or profile, and queue overflow. The reader app/remoteinput/tentacle race
suites, build-script tests, the full Remote race suite and make check passed.
shellcheck is not installed here, so the edited build script was not linted.
No physical keyboard, desktop or NVDA peer was used. Physical collisions,
provenance, lock/AltGr policy and all live acceptance remain open.
Fortieth to forty-second implementation increments (2026-11-06): controller
keyboard control. Reader a789fb3 adds remote.focus requests and
remote.focus/remote.input events to the host and both SDKs; fcffb8c adds
an exclusive Xorg capture mode with the repeat normalizer and capture router,
a core F11 escape on the X thread, policy/overflow exits that release forwarded
keys first, suppressed local echo and app attachment for keyboard-capture
sessions; fad8ef7 makes Remote shortcuts return the keyboard instead of racing
the focus change and adds reader announcements. See
the capture contract.
In this repository the keyboard option now applies to both roles: a controller
requests keyboard-capture, and the new remote-focus command (suggested
Cthulhu+Ctrl+Shift+F) asks the reader to send this keyboard. Captured keys are
encoded with the existing epoch-bound encoder, keeping wire identities through
repeat/release; presses outside the agreed profile are ignored with their
repeats and releases. Status and scope text now name the granted keyboard
direction and current focus. Releases are not written after the connection
ends; the controlled reader releases injected keys when its lease ends.
Checks: wire, host and Go/Python SDK conformance tests; a private Xvfb test with
XTEST input and a focused xev window (forwarding, pairing, prefix withdrawal,
shortcut exit, unsupported keys, F11, lock exit, no leaked keys; repeated runs);
app tests with a synthetic owner and real Go SDK child; coordinator tests with a
private TLS relay receiving encoded frames. The full reader suite passed on a
private D-Bus session; on the desktop session bus ten existing TestRun* tests
fail because the reader there sees the screen as locked, and they fail
identically at the earlier commit. The complete native input harness, Remote
race suite and make check passed. No physical keyboard, NVDA or Orca peer was
used; recovery from network loss mid-chord relies on controlled-side cleanup.
Forty-third implementation increment (2026-11-06): explicit clipboard text
transfer. The connection form offers a session-only clipboard option that adds
clipboard-exchange to the reader consent request. remote-send-clipboard
(suggested Cthulhu+Ctrl+Shift+C) asks the reader for an explicit clipboard read
and sends text up to 8 KiB as set_clipboard_text on the ordered relay writer;
files and oversized text are refused with a message. Incoming text is held in
memory for the connection, replacing older unread text, and is copied to the
clipboard only by remote-receive-clipboard (Cthulhu+Ctrl+Shift+V), once.
Nothing is spoken or written automatically; disconnect discards it. The status
form says when text is waiting. PRIMARY is never touched. Tests cover both
roles with a private TLS relay: whitespace and Unicode preserved, file and
oversized refusal, single-use receive and refusal without the grant. The
Remote race suite and make check passed; no live desktop clipboard was used.
Forty-fourth to forty-sixth implementation increments (2026-11-06): Braille.
Reader bfbd731 adds typed remote.braille requests and events with
per-role direction checks to the host and both SDKs. 9361093 adds a
virtual-only cthulhu-braille --virtual mode sharing the physical helper's
liblouis viewport, an exporter that sends only accepted application frames
(never reader UI, flashes or secure frames; hidden frames are unroutable),
gesture and routing application, controller display of peer cells as an
untranslated raw frame, and local pan/route forwarding. The physical helper now
reports its width and edge pans. See the Braille contract.
Ordinary frames use the explicit en-us-comp8.ctb table for the virtual
display; contracted frames keep the user's table; the cursor is a static
dots-7-8 overlay.
Here, a session-only Braille option requests braille-stream. A controlled
computer asks for geometry with an empty set_braille_info, applies the
controller's numCells or smallest set_display_size, sends coalesced
display cells and applies only the pan and route braille_input paths. A
controller advertises its width as set_braille_info, shows coalesced peer
cells and sends pan and route gestures as NVDA global-command script paths.
Tests cover both roles over a private TLS relay, coalescing, unsupported
gestures and refusal without the grant. Full default and brlapi reader
suites (private D-Bus), the Remote race suite and make check passed. No
physical display, NVDA or Orca peer was used; Braille keyboard input beyond pan
and routing remains unsupported.
Forty-seventh implementation increment (2026-11-06): packaging. remote/tentacle.toml
declares protocol 1.1, the session-events and remote-access APIs and all six
remote grants; make check validates it with the reader's own negotiation rules.
tools/package.py builds a Tentacle from cmd/<id> when present and can package
a manifest-only Tentacle into the generated dist/catalog.toml for review, while
the committed catalog stays unchanged until a verified release is published.
Reader internal/datetime gained a cgo-free fallback, because no Tentacle could
previously be built with the packager's CGO_ENABLED=0; this affected every
Tentacle, not only Remote. amd64 and arm64 archives were built and the extracted
amd64 binary ran through the reader's command host with every grant. Installation
through the reader's installer, ARM64 execution, publication and the catalog
entry remain human release steps.
Forty-eighth implementation increment (2026-11-06): lock keys. The controlled
injector refused Caps, Num and Scroll Lock, which retired all remote input, so a
controller using Caps Lock as its NVDA or Cthulhu modifier lost keyboard control
on the first press. Reader cc1a76f owns lock keys like other keys and releases
a held lock once at retirement. The complete native key harness passed.
Verification for increments 39–48 together: full default and brlapi reader
suites on a private D-Bus session, the private native input and native key
harnesses, the Remote race suite and make check. Live acceptance is next; use
the procedures in command.md and section 12 below.
Forty-ninth and fiftieth implementation increments (2026-11-06): key
interoperability with Linux controllers derived from Orca Remote. A controlled
Cthulhu now treats generic VK_SHIFT with an absent or zero scan code as left
Shift, and accepts Print Screen, the Windows keys, Menu, keypad divide and Num
Lock with or without the extended flag; other generic-Shift scan codes and flag
combinations stay rejected. The eighteen browser, volume, media and launch keys
map to Windows VK 0xA6-0xB7 (launch app 1 and 2 as My Computer and Calculator),
sent extended and accepted either way. Reader Allow Remote browser, volume and media keys adds these names to the Remote key vocabulary; an older reader
rejects them. Both were applied on top of Remote 0.1.1 and reader bf4a236;
the earlier NVDA-style dialog layout was dropped because 0.1.1's single
Mode/Host/Key form supersedes it. Checks: reader internal/input,
internal/tentaclewire and Xorg package tests (native capture cases skipped
without Xvfb), the Remote race suite and make check. The keys were also
exercised against the cthulhu-nvda-remote port through an NVDA-style test
relay; no physical keyboard or live NVDA/Orca peer was used.
Fifty-first implementation increment (2026-11-06): recent connections and
automatic fingerprint review. When Connect's key-free TLS check fails on the
certificate, Remote now fetches the relay's leaf certificate on a separate
key-free connection and shows its SHA-256 fingerprint; Trust once or Trust and
remember continues the same Connect through a re-verified check to reader
approval, and Cancel returns to options. Network failures still return to the
form. The connection form gains Recent connections (up to ten host, port, mode,
key and remembered-pin entries in a private recent.toml, newest first) and a
Remember this host and key checkbox, checked by default; an entry is saved only
after a successful join. Enter on an entry fills Mode and Host; an empty Key
then uses that entry's key. Remembered pins are looked up from recent entries
too, so switching relays keeps trust. More options adds Forget recent
connections. The reader's actual-host test now permits that one checkbox while
still rejecting duplicated permission controls. Checks: new store, selection
and full untrusted-certificate-to-join tests over a private TLS relay, the
Remote race suite and make check. No live relay, NVDA peer or physical
desktop was used.
1. Intended result and recommended approach
Build a native Go Tentacle named Remote, with package ID remote, in this
repository. It should let Cthulhu control another computer or allow a helper to
control the local computer, using an NVDA Remote protocol-v2 relay. Support
Cthulhu-to-Cthulhu sessions and both directions with NVDA. Test Orca Remote
interoperability as a separate target, recording the exact Orca build and plugin
revision because their available hooks differ.
Keep relay connections, protocol conversion, connection settings, and session workflow in the Tentacle. Extend the reader with reusable, permission-controlled streaming, keyboard, and Braille operations. The reader continues to own desktop input, output arbitration, lock state, consent, and emergency recovery.
Use the newer Orca projects as references for the wire protocol, key mappings, failure cases, and test ideas. Port small, understood pieces when provenance permits; do not import an entire Orca extension or monkey-patch Cthulhu. A Go implementation matches the existing native package workflow and avoids shipping Python, GTK bindings, external key-injection commands, or an Orca runtime.
First complete release
- Controller and controlled roles, with one active peer of the opposite role.
- Speech mirroring and cancellation in both pairings; explicit handling of pause/resume and unsupported speech commands.
- Xorg keyboard forwarding and injection, including screen-reader shortcuts.
- A reliable local escape and disconnect path, with held-key cleanup.
- Explicit text clipboard transfer in either direction, with per-session consent.
- Single-line raw Braille output, geometry negotiation, routing and panning, verified with a physical display. Broader Braille keyboard support is tracked separately and must not be implied by output support.
- Accessible connection/settings/status controls, install/disable/update cleanup, and tested recovery from network and process failures.
A speech-only development milestone is useful, but it does not complete this release. The test matrix must distinguish speech, keyboard, Braille output, Braille input, and clipboard support.
Deliberately outside the first release
Unattended startup connections; login/greeter/lock-screen control; Windows secure desktop bridging; embedded relay hosting; automatic clipboard monitoring; file transfer; desktop video/audio streaming; mouse control; multiple controllers; remote command execution; and new Wayland injection backends. Remote can connect to an independently hosted compatible relay without implementing a relay itself. Retain usable non-keyboard functionality on unsupported platforms, but never claim forwarding works if keys also reach the local application.
2. Evidence and upstream comparison
Reviewed revisions
The maintained local branches matched their remote tips when checked:
| Project | Branch | Reviewed commit |
|---|---|---|
cthulhu-tentacles |
master |
bc305993b8ad5c2374c8fc2c8b886c9cd6697b52 |
cthulhu |
testing |
a47253d697c1aa44dea80646cad99a4fe163c7f1 |
churst90/orca-remote |
fetched default branch | 391f0c52044071e7cd34e3900fc13474826c312d |
serrebidev/orca-remote |
fetched default branch | 9260d8284bb9f0761633dca958f5e1d9ccc37485 |
thgcode/orca-remote |
master |
6fcf58dd060d79addba61767a964ea9da948ea39 |
| NVDA local reference | local checkout | 2843e703ce19757711e976ebb6e9c5b689fc2017 |
| NVDA Remote add-on | fetched default branch | 301248945481e462601248c5e423731bd58d5e0a |
This was source review, not a live remote-control trial. Freshen these references before implementation; do not infer acceptance from repository claims.
Which Orca work is useful
| Project | Confirmed source/design evidence | Use in this project |
|---|---|---|
| churst90/orca-remote | Version 0.8.2; separate protocol, transport and keymap modules; modern controller hooks; client and host paths; key-release tracking. | Primary small reference for protocol decomposition, VK mapping, bypass chords and regression cases. Its README has stale pairing instructions, so inspect handlers and tests. |
| serrebidev/orca-remote | Contains modern and legacy implementations, external injection backends, more transport/session tests, and a Windows-to-Linux Braille guide. | Reference for reconnect/session cleanup, practical interoperability failures and acceptance procedures. Avoid carrying over legacy installers, monkey patches and backend fallback chains. |
| thgcode/orca-remote | README explicitly calls it a proof of concept; customizations patch Orca speech methods and send speech/cancel. No incoming keyboard-control implementation. | Historical context only; do not use as the implementation base. |
The two newer trees contain substantially similar modules. Do not count them as two independent demonstrations of protocol correctness. Neither replaces testing against NVDA's implementation.
The newer projects declare LGPL-2.1-or-later; this repository declares GPL-3.0-or-later. The older project declares GPL version 2 and credits NVDA Remote. The newer fork also carries legacy files whose provenance needs checking. Before copying code, tables, fixtures, or documentation, record the exact source, copyright notices, license terms and modifications. Keep required notices and license texts in the distributed source/package. Resolve any unclear rights before reuse; repository-level labels alone are insufficient. The preferred starting point is a fresh implementation of the protocol with independently written tests.
Authoritative interoperability references
- NVDA serializer at the local reviewed revision defines speech-command serialization.
- NVDA session handling defines actual role/message behavior and Braille negotiation.
- NVDA local operations show receiving behavior; its input adapter is needed for Braille gesture fields and Windows key semantics.
- NVDA Remote protocol overview is a useful message inventory, but field optionality/types must be checked against executable source and real frames.
- Orca protocol notes and fork transport provide comparison points, not the final wire contract.
In particular, NVDA serializes speech commands as [commandName, fields] arrays.
The Orca notes show dictionary-shaped commands in one example and flatten speech
to text. Support the actual NVDA form; do not build the codec around that example.
Likewise, do not require scan_code or string-valued speech priorities merely
because the protocol overview describes them that way. Capture frames from the
specific supported versions and freeze generic, non-private fixtures.
3. Current Cthulhu support and missing interfaces
Paths in this section are relative to the adjacent ../cthulhu checkout.
| Existing area | What can be reused | Required enhancement |
|---|---|---|
internal/tentacle, internal/tentaclewire |
External supervised process; bounded newline JSON-RPC; commands; cancellation and lifecycle ownership. | Bidirectional session operations and unsolicited bounded events. Protocol 1.1 now provides lifecycle requests/events; desktop streaming services remain pending. |
sdk/go/tentacle/tentacle.go, Python SDK |
Command handlers and declarative extensions. | Protocol 1.1 client/events and lifecycle conformance now exist; typed desktop operations remain pending. No private reader imports from Remote. |
internal/tentaclewire/presentation.go |
Command-result speech/Braille text, limited to 8,192 UTF-8 bytes per channel. | Continuous remote presentation and output observation. Existing Presentation is explicitly a command result, not a streaming interface. |
internal/tentaclewire/interaction.go, internal/interaction |
Forms including transient secret entries, status polling while a form is open, explicit clipboard exchange. | Background session status and Remote connection controls. One-second form polling cannot carry speech or keyboard traffic. |
| Reader extension/preferences machinery | Declarative native pages, settings validation, command registration and remapping. | Remote-specific grants/status and session consent; no speech-configuration override is needed. |
internal/platform/xorg/listener.go, commands_owner*.go, commands_security.go |
XRecord observation, command grabs, secure-input gating and owner loop. | Exclusive controller capture, balanced bypass chords, and serialized XTEST injection with reliable ownership. Observation alone does not consume keys. |
internal/app/speech_worker.go, speech_delivery.go, interruption code |
Ordered presentation, speech modes, voice selection, read-all and cancellation. | Origin-tagged output events and remote-owned input to the normal output policy. |
internal/app/braille_*, internal/braille |
Frames, liblouis translation, helper, routing and panning. | Raw rendered cells, virtual remote display geometry, remote display ownership, and portable gestures. Frame.Dots is an overlay, not a raw remote frame. |
| Registry/install/update and Preferences confirmation | Native packages, digest verification, explicit capabilities and cleanup. | Persist/disclose new grants, reject unsupported reader versions, and revoke active remote access before updates. |
Protocol 1.0 retains an exact version and an ordered API prefix:
commands, presentation, interaction, reader-settings. ValidAPIs, SDK
length checks, launch Spec/registry fields, installer validation, and confirmation
text all embody that model. Opt-in protocol 1.1 now adds explicit grant sets and lifecycle IPC through both
SDKs, installer, registry and command host; see the implemented session contract.
Adding a manifest string alone will not enable desktop Remote services.
Default ordinary command RPCs time out after two seconds, so a connection or
session must not live inside a command invocation.
The existing same-user Tentacle process model is not a security sandbox. New grants control reader-mediated access; they do not prevent a malicious installed executable from using the user's other desktop facilities. Preserve existing process supervision and optional cgroup resource limits without requiring a particular init system, root, or administrator setup.
4. Ownership, consent and recovery contract
Data path
Local keyboard / Cthulhu output
|
Cthulhu input and presentation owners
| bounded, consented session API
Remote Tentacle: session state + NVDA codec + TLS transport
|
NVDA Remote v2 relay
|
Remote Tentacle, NVDA Remote Access, or compatible Orca Remote
The Tentacle owns network state. Cthulhu owns an ephemeral access lease attached to its Tentacle process session, selected role, current connection generation and explicitly approved operations. The lease contains no reusable network secret. Only one Tentacle may own keyboard capture/injection or remote Braille at a time. Initially, disallow simultaneous controller and controlled sessions on one reader.
Consent and transport trust
- Enabling/installing Remote does not connect or grant an active control session.
- A local user opens the connection UI and chooses Control another computer or Allow this computer to be controlled. Explain that the latter shares reader output and, when enabled, permits keyboard control.
- Consent is issued by the reader from a local action. A child RPC or remotely injected shortcut cannot mint consent, accept a certificate, change grants, save a key, reconnect, or authorize clipboard sharing.
- Use normal CA/hostname verification for a valid certificate. For a self-signed relay, offer an accessible fingerprint review and explicit trust decision, bound to host and port. Verify the approved certificate before sending the channel key. A changed pin stops connection; never silently replace it.
- Show trust failure details locally. Do not automatically overwrite the clipboard or create a fingerprint file. Provide an explicit Copy fingerprint button; a displayed fingerprint still needs independent verification.
- TLS authenticates/encrypts the connection to the relay. Protocol v2 does not provide end-to-end encryption or authenticated human identities: the relay sees the channel key, speech, keys, Braille and clipboard. Anyone with the key can attempt to join. Explain this accurately in help and consent wording.
- Use a strong randomly generated channel key. Default to session-only secrets; offer explicit Remember key with owner-only, atomic storage. Never place keys in process arguments, command descriptions, URLs, diagnostics or fixtures.
- Limit the initial session to one controller and one controlled peer. Track relay-assigned origins and roles. Unexpected membership or ambiguous routing suspends access and requires a new session; do not silently select the latest peer. A relay can already have broadcast data before a membership notice, so this is not a confidentiality guarantee against other channel participants.
Lease lifetime and emergency behavior
- A new connection epoch invalidates all earlier events, operations and consent. Reconnection can restore a connection dialog/status, but never silently resume capture, injection, clipboard sharing or output export. Require local Resume.
- Controller starts in local focus. A local toggle enters remote focus only after peer readiness and capture capability are confirmed. Local focus stops input forwarding and remote output presentation; mute remains a separate saved in-session choice. An optional listen-only mode can be added explicitly later.
- Reserve an always-local escape in core while capture is active. Proposed default: F11, plus the registered Disconnect command. Verify conflicts and remapping before adoption; the escape remains available even if the Tentacle is hung. It must work on a press without waiting for the network.
- Disconnect, disable, uninstall, update, Tentacle crash, reader exit, lock, secure-input transition, terminal-reader handoff, capture failure or queue overflow revokes the lease and restores local input/output. Unlocking or returning from handoff does not resume control automatically.
- Opening local settings/consent, learn mode, or another exclusive reader UI first returns to local focus. Preserve a local path to disable all Tentacles.
- Heartbeat each second; expire an unrefreshed lease after three seconds. This detects a hung Tentacle, not a vanished relay: track network/peer liveness too, using tested keepalive/read deadlines compatible with the relay. A known transport failure revokes access immediately. Never wait for backoff to release local capture or remote held keys.
- Keep a held-key ledger per lease and direction. Release owned keys before forgetting the ledger; invalidate queued downs before cleanup, and prioritize cleanup over normal traffic. Handle duplicate downs/repeats, unmatched ups and disconnect with modifiers held. Do not release physically held local keys as if Remote owned them; test collisions explicitly.
- Reader SIGKILL requires an independent cleanup mechanism for injected XTEST keys. Prototype a reader-owned input helper, launched through a private inherited descriptor with no network interface, that owns injection and its ledger and releases keys on parent EOF/heartbeat expiry. Reuse existing process lifetime mechanisms where suitable. X connection closure releases keyboard grabs, but is not proof that injected modifier state is cleared. Inability to recover from reader death blocks declaring keyboard control ready.
5. Proposed reusable Tentacle API
Negotiation and capability changes
- Specify an opt-in protocol 1.1 for session transport; keep existing 1.0 packages working unchanged. An old reader must reject a 1.1 package clearly, before activation, rather than partially enabling it. No polling compatibility shim or alternate implementation for old readers.
- Replace API-count assumptions for 1.1 with explicit API/grant sets and dependency validation. Retain strict validation of known operations, required fields, duplicate keys, depth, frame length and registration identities.
- Implement APIs
session-eventsandremote-accessfor lifecycle transport. Grant operations separately:output-observe,remote-present,keyboard-capture,keyboard-inject,braille-stream, andclipboard-exchange. Explain direction in confirmation text; owning one grant must not imply another. Resolve the existing manifest-versus-initialize capability representation explicitly. - Carry grants through discovery, install, registry, local launch, activation, update and confirmation. Increased access on update requires a fresh grant review. Runtime consent remains ephemeral even when installation grants persist.
- Add the same lifecycle wire contract to Go and Python SDKs and the command-host tool. New functionality is not implemented by exposing internal reader structs.
Session operations
remote.open, remote.close and remote.heartbeat now have the implemented
lifecycle contract in tentacle-sessions.md.
Reader-owned local approval and speech IPC are now integrated. The typed
remote.key mailbox is available
only with an explicitly attached input owner; no production input owner exists.
Other desktop operations below remain proposed unless an increment records
their implementation.
Proposed child-to-host requests, each answered promptly with a typed result/error:
| Operation | Purpose and gate |
|---|---|
remote.open |
Complete a pending local connection action and acquire the approved lease; role and grant subset are validated by core. |
remote.close |
Idempotently revoke a lease and restore local ownership. |
remote.heartbeat |
Refresh a current lease; does not renew consent or change epoch. |
remote.state |
Report connection/peer state to core; never asserts that remote capture is physically active. |
remote.focus |
Request the locally approved controller focus transition; core owns the grab and actual result. |
remote.present |
Queue typed remote speech/cancel/pause or Braille under the active lease. |
remote.key |
Typed controlled-role key admission now exists with lease/sequence checks and a bounded mailbox. It remains unavailable without an explicit reader input owner; no production injection is implemented. |
remote.braille |
Process an allowlisted Braille gesture against the current remote viewport. |
remote.clipboard |
Explicit read/write of text, only for the approved local action or permitted session receive. |
Host-to-child events include local connection actions, lease revocation, input transitions, speech output/cancellation, Braille cells/geometry/gestures and explicit clipboard-send actions. An idle session blocks on channels/pipes; it does not poll reader state. Commands stay short and return accepted/pending status; network work runs in cancellable session workers.
Framing, ordering and capacity
- Extend the host's original reply-only decoder to distinguish replies, requests and negotiated notifications. Use unambiguous request-ID namespaces for each direction, validate method-specific fields, and never hold a session mutex while waiting for a reply or invoking reader services.
- Implement one serialized writer per endpoint, bounded pending calls, deadlines, cancellation, and session-scoped shutdown. Control operations must remain serviceable while a command handler or network worker is blocked.
- Attach core-issued lease ID, connection epoch and sequence to session traffic. Reject old epochs after revoke/reconnect. Origin metadata is trusted only when assigned by core; do not accept a child's claim that input is local.
- Retain the 64 KiB host frame bound. Initially cap speech text and clipboard at 8 KiB per operation, Braille at 4,096 cells, and key operations at one transition each. Split valid longer speech at UTF-8/semantic boundaries before IPC, preserving cancel order; reject oversized clipboard content explicitly.
- Start with separate bounded control/input/output queues: 32 control operations, 256 key transitions, 64 speech events, latest Braille frame only, and a 256 KiB aggregate queued-byte ceiling per lease. Treat these as tunable initial limits; measure memory and latency before freezing them.
- A full input/control queue revokes the lease rather than dropping a key-up. Speech overflow cancels the remote speech generation and reports loss; coalesce superseded Braille frames. Cleanup must have a separate immediate path and cannot be blocked by the queue it is trying to drain.
- Every queued effect rechecks lease/epoch at delivery, not only at enqueue. Test revocation racing with output, an injection helper, and pending clipboard operations. Slow pipes or a relay must never block Cthulhu's event loop.
6. NVDA protocol implementation contract
Use UTF-8 newline-delimited JSON over TLS; this is a separate framing protocol
from host JSON-RPC. Send protocol version 2 and join with wire role master for
controller or slave for controlled. Present plain-language role labels in UI.
| Message family | Planned handling |
|---|---|
protocol_version, join, channel_joined |
Validate handshake and membership before enabling any sharing/control. TLS connected, channel joined, peer present and control active are distinct states. |
client_joined, client_left, origin |
Maintain bounded peer registry and role checks. Permit effects only from the expected opposite-role peer in the active connection. Relay metadata is not cryptographic peer identity. |
speak |
Accept strings and allowlisted NVDA command arrays; preserve order, priority and supported semantics. Send text-only sequences initially from Cthulhu. Never instantiate remote-named classes. |
cancel, pause_speech |
Apply only to the current remote-owned output generation. If true pause is unavailable, use a documented cancel-on-pause policy and resume with future speech; do not pretend old speech resumes. |
key |
Convert Windows VK plus extended and any supported scan-code metadata into typed core key events; accept actual version-specific optional fields. |
set_braille_info, set_display_size, display |
Negotiate positive single-line width, handle absent displays, and exchange final dot cells. Do not confuse display text with cells or translate received cells again. |
braille_input |
Parse actual NVDA gesture fields, including fixed scriptPath forms where used. Map a finite known subset to core actions. Never dispatch arbitrary method/module names. |
set_clipboard_text |
Bound UTF-8 text and honor explicit transfer consent; never interpret paths, links or commands. |
ping, error, version_mismatch, motd |
Bounded handling; sanitize server text; terminal protocol errors stop reconnect attempts. Relay text cannot authorize UI actions. |
tone, wave, send_SAS, index, unknown extensions |
Inventory real usage. Initially ignore unsupported optional output with bounded counters; never open a peer-supplied path/URL or execute a secure-attention request on Linux. Record any resulting functional gap. |
- Use a bounded reader: proposed 1 MiB maximum relay line with an explicit limit on decoded collection sizes and processing time. Do not allocate without bound waiting for LF. A relay frame may need several smaller host operations.
- Validate known payloads but tolerate harmless additional relay fields; rejecting every unknown field would prevent interoperability. Reject malformed required values, duplicate JSON keys and invalid types; bound diagnostics for ignored unknown message types. Distinguish optional-message loss from fatal framing or authorization failures.
- Record actual priority representations and language/character-mode command payloads from supported NVDA versions. Initially implement text, cancellation, character mode and language changes where the reader supports them. Count and document unsupported commands; never silently claim full speech fidelity.
- Preserve whitespace across speech fragments. Do not concatenate unrelated utterances, strip meaningful spaces, apply punctuation expansion twice, or substitute a local key name for an intentional character command.
- Use bounded dial/TLS/join/write deadlines and cancellable reconnect backoff with jitter. Proposed dial/join deadline: 15 seconds each; write deadline: five seconds; backoff steps: 1, 2, 5, 10, 30 seconds. Explicit Disconnect cancels pending dial, reads, writes and sleeps. Authentication/certificate failures require local correction rather than endless retries.
- Freeze fixtures for membership variants, absent optional fields, real speech arrays, numeric priorities, extended keys and Braille gestures. Do not ship a novel wire extension for essential functionality; NVDA peers must work without changes. Custom Cthulhu extensions, if later needed, require explicit negotiation and a separate plan.
7. Speech and Braille integration
Speech
- Add a core output observer near the policy-resolved delivery path, after password/secure-input and speech-mode decisions. Cover ordinary reading, key echo, spelling, context, read-all parts, explicit stop and interruption. Do not scrape logs or speech history, and do not depend on Speech Dispatcher alone: hardware synthesizers also use core output policy.
- Define whether an event means accepted-for-delivery or backend completion. Mirror accepted semantic output plus cancel events; it is not evidence that audio was heard. Ensure fast synchronous read-all backends cannot outrun the bounded stream indefinitely; profile congestion and report loss.
- Core tags output origin and session ownership. Received remote speech, Remote's own connection messages, secret-entry feedback and consent dialogs never re-enter exported output. Initially exporting only from controlled role further reduces loops but does not replace origin tracking.
- Route incoming speech through the normal configured voice/backend and output arbitration. Respect local speech disable and modes; never mark network output uninterruptible. Local escape/status must remain audible when enabled.
- Retain local speech on the controlled computer by default. Do not change persisted speech settings or use the speech-override API to mute it.
- Keep remote cancel/pause from cancelling unrelated local announcements. Switching to local focus or disconnecting drops pending remote speech and restores normal output immediately.
- Exclude secrets and remote payloads from Remote diagnostics, including diagnostic errors. Decide explicitly whether remote speech enters local history; default to exclusion so a session does not create a persistent copy.
Braille
- Extract/reuse a renderer that produces translated cells, cursor treatment, viewport state and routing maps without requiring a physical controlled-side display. Current translation/viewport work crosses the helper boundary; choose a reusable renderer or typed helper event rather than a second translator.
- Maintain a virtual remote viewport at the negotiated controller width. Preserve the controlled user's physical display width and routing independently. A controller with no display advertises zero; do not fabricate a default width and call it hardware support.
- Export final cells after liblouis translation and cursor/attribute handling. Keep original routing targets inside Cthulhu; no AT-SPI identities, object paths or native handles cross into the Tentacle or relay.
- Add a raw-cell display mode to the helper/backend protocol. Existing
Frame.TextandFrame.Dotscannot be assumed to write an arbitrary incoming cell array unchanged. Bypass translation for raw cells; pad/clip according to the negotiated width and restore the local frame on exit. - Local consent/status messages temporarily own the display. On dismissal, show the latest permitted remote frame or current local frame as appropriate; do not let incoming traffic erase an emergency message.
- Map routing and pan gestures to the virtual viewport, not the physical local document. Tag local IPC with a viewport generation and invalidate pending routes on replacement. Protocol v2 does not supply an end-to-end frame ID, so absolute stale-route detection against a delayed NVDA gesture is unproven; serialize against the latest viewport and document this limitation.
- Start with routing and pan-left/pan-right mappings, then inventory dots, space, enter, backspace and navigation gestures. Current backend keys expose panning/routing only; full Braille keyboard input requires another core change. Report unsupported gestures, and keep unknown script paths inert.
- Validate contracted/uncontracted text, Unicode, non-Latin tables, cursor dots, width changes and device unplug/replug. Do not reuse the Orca reference's ASCII-only text-to-cell mapping as production Braille.
8. Xorg keyboard implementation
- Put capture/injection in the existing input ownership layer, with work serialized onto its Xlib owner thread. Prototype interaction with current command grabs before committing to XGrabKeyboard or a different consume path. Do not treat XRecord, AT-SPI observation, or a list of reader chords as full desktop consumption.
- Acquire capture atomically before reporting remote focus. If another client owns the keyboard or required capture fails, remain local and announce why. Restore prior command grabs and modifiers on every exit path.
- Forward ordinary application keys and Cthulhu/NVDA modifier chords. Keep only core escape and explicit Remote control commands local. Check registered bindings and user remaps; avoid a hard-coded bypass list that becomes stale. The capture router takes local chords from resolved bindings and a required escape chord; it is not yet attached to capture.
- Balance modifiers around bypass chords: prevent a prefix already sent to the remote from remaining held, and prevent a bypass key's release from leaking to an app that never received its press. Test entry/exit with a modifier held. A quarantined reader capture router now withdraws forwarded prefixes, consumes local releases and reports held keys to swallow at retirement, with unit coverage. Native capture integration and live entry/exit tests remain open.
- Make key provenance explicit. XTEST events do not reliably identify
themselves through the ordinary X
send_eventflag. Prototype XInput device identity and ordered broker acknowledgements; prove how injected events reach target reader commands without becoming trusted local consent/emergency input. Timing-only suppression of all nearby physical keys is unacceptable. - Scope the guarantee honestly: Xorg does not isolate this mechanism from malicious same-user desktop clients. Provenance protects our own routing and accidental loops; it is not an OS security boundary.
- Build bidirectional VK/XKB mapping with extended-key distinctions, left and right modifiers, Insert/CapsLock reader modifiers, keypad/navigation, function keys, OEM punctuation, AltGr and keyboard-layout changes. Unknown keys produce bounded diagnostics instead of a guessed character. Never assume X keycodes equal Windows virtual-key or scan codes. The isolated converter now covers explicit portable/US subsets, sides and keypad distinctions; its outgoing encoder retains original wire identities through repeat/release and failed writes. AltGr, other layouts, active-layout resolution and production desktop ownership remain open; this checklist item is not complete.
- Separate duplicate-down repeat from a fresh press; verify autorepeat behavior on injection. Handle lock-key state without surprising local toggles. Do not depend on temporarily rewriting global keymaps for ordinary input. The isolated outgoing encoder now distinguishes normalized repeats from fresh downs and suppresses modifier/lock repeats. A quarantined reader normalizer now folds classic release/press pairs into repeats and passes detectable repeats; it is not attached to capture. Target injection, lock-state policy and physical acceptance remain unimplemented.
- Inject through XTEST in controlled role via the core-owned helper/owner.
Show an unavailable capability if it cannot work. Do not silently invoke
xdotool, a root daemon,/dev/uinput, or a Wayland portal fallback. A quarantined Go destination backend now resolves native codes and performs explicitly owned XTEST effects in private tests. Its source-built helper now has fixed IPC and separate EOF/watchdog cleanup. Production supervision, actual reader crash acceptance, provenance and physical collision safety remain absent. The helper is now attached to approved controlled sessions and installed with the reader; provenance and collisions remain open. - Verify remote keys reach both ordinary applications and Cthulhu command handling exactly once. If physical/injected held-key collisions cannot be resolved safely, suspend input and report the limitation; do not clear all system modifier state indiscriminately.
- On Wayland, expose actual capabilities individually and leave exclusive keyboard control unavailable until implemented/tested. XWayland success is insufficient evidence for native Wayland applications.
9. User interface and stored settings
Use existing host-owned accessible forms/pages where suitable. The shared
transient Entry model now supports secret: true; use it for channel keys.
Persistent preference pages reject secret fields. Keep live verification of echo,
review, copy, speech, Braille, accessibility exposure and debug logging pending
until the connection UI exists. Do not simulate secrecy by replacing visible
text while leaving the actual value in a normal control.
The connection UI needs:
- Role, relay host, port, channel key, Generate key and Remember key.
- Certificate status, fingerprint details and explicit trust/copy controls.
- A concise description of what the chosen role permits, including relay trust.
- Separate per-session permissions for keyboard control and receiving clipboard.
- Connect, Disconnect, Return to local, Mute remote output, Send clipboard and Status actions, with descriptive enabled/disabled state.
Propose unbound commands initially: remote-menu, connect, disconnect,
toggle-remote-focus, toggle-remote-mute, send-clipboard, session-status.
Add one suggested menu shortcut only after checking desktop/laptop binding
conflicts. The core escape must be independent of command registration success.
Distinguish disconnected, connecting, certificate approval required, joined/waiting for peer, connected/local focus, controlling remote, controlled/input enabled, suspended and failed states. Announce changes once through normal Cthulhu output; avoid repeated connected announcements during reconnect. Status must remain available after the connection form closes without one-second background polling.
Store versioned, validated TOML settings in an owner-only Remote data directory. Persist role/relay/preferences separately from transient peer/lease state. Do not auto-connect on startup. If Remember key is selected, use an owner-only file and directory with atomic replacement, reject unsafe links, and omit secrets from exported diagnostics. Do not store the key in generic reader-page values unless that store has explicitly acquired equivalent secret-handling support.
Text clipboard transfer is an explicit action, not continuous synchronization. Read clipboard text only when Send clipboard is chosen; require receive permission before writing incoming text. Report oversized or unavailable text. Keep the clipboard owner alive as needed by X11 selection semantics. Do not alter PRIMARY, share file lists, automatically paste text, or echo received text into diagnostics.
10. Implementation sequence and reviewable deliverables
Phase A: Freeze contracts and build protocol fixtures
- Refresh branches without discarding work; record exact reader, SDK, NVDA, relay and Orca versions. Read both contributing guides.
- Reconfirm the missing host interfaces listed above and inventory all permission, protocol and UI validators that need changes.
- Capture sanitized NVDA handshakes, output and gestures using a private test relay and test documents. Record omitted fields, priorities and role routing.
- Complete the existing
remote/protocol.mdcontract with captured NVDA evidence, supported semantics and limits. Resolve provenance before importing material. - Review the lease, origin, threading, heartbeat and crash-cleanup designs. Prototype Xorg consume/inject/provenance and virtual Braille rendering early: these are the highest-risk dependencies, not finishing touches. Partial evidence is now recorded in the reader's Xorg feasibility checks; origin and later same-key collisions remain unresolved. The Braille feasibility checks now demonstrate independent translated viewports without a physical display; virtual table/cursor policy and helper integration remain unresolved.
Exit: frozen fixtures and concrete feasibility evidence for input recovery and Braille without a controlled-side physical display. Record unresolved results; do not claim them from a design diagram.
Phase B: Extend host transport and SDKs
- Add protocol 1.1 negotiation, grants, bidirectional calls/events and bounded queues. Extend host harness with an inert session-service implementation.
- Add core lease state/revocation and Go/Python SDK conformance fixtures.
- Integrate verified local consent and lock/handoff revocation with production reader owners. Core consent, policy-bound managers and I38lock/XTerm revocation are implemented; XI2 injected-approval rejection is privately tested. Physical source acceptance remains pending; source command integration now has private real-host coverage. See the authorization increment.
- Update registry/install/update grant persistence and access descriptions. Existing Hello World, Wormhole and Battery Status actual-host checks passed.
- Add reader-owned first-use consent and per-session access controls to the source command. Physical-source approval acceptance remains pending.
- Add transient secret-entry schema/editor support, reject persistent secret preference controls, and test both SDKs and private Xorg form behavior. Live audible speech/physical Braille acceptance remains pending with connection UI.
- Document implemented public lifecycle operations, errors, ownership and limits in the reader repository. Runtime Remote code stays external.
- Implement and document typed desktop services and their delivery-time checks.
Typed
remote.keyadmission and its bounded reader mailbox now have both-SDK process coverage. Native input delivery/cleanup and captured-key events remain pending; admission is not desktop injection. 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 accessibility/document-reading output observation has original-lease and delivery-time policy checks. Production incoming software speech now has isolated cancellation and local priority; remaining reading producers and live speech acceptance remain pending; explicit status detachment is implemented, with physical-input/ordinary-reading acceptance still open; see speech.md.
Exit: permission denials, timeout/overflow, stale epochs and process failures are tested; existing Tentacles still install, register, run, disable and update.
Phase C: External transport and speech milestone
- Add
remote/srcstate/codec/transport with explicit Connect/Disconnect. The library coordinator uses reader-issued actions and public SDK leases; production connection UI and desktop delivery remain separate open items. - Add secure settings and separate explicit saved-key storage, with no startup networking or persisted session consent.
- Add the local CA/pin trust and Remember key UI workflows. Library certificate-review and masked Remember/Forget handlers now integrate with Connect, explicit saved-key loading and status/Disconnect. Verified local input acceptance remains pending. Endpoint/role selection, persistent-pin UI and production source-command wiring now exist, with private real-host coverage. See the source command.
- Add core output observation and incoming remote presentation with origin tracking, cancel order and lock/handoff revocation. The typed speech transport and relay conversion prerequisite now connects to the external coordinator, preserving whitespace and UTF-8 across bounded IPC frames. Limited accessibility/document-reading output observation has explicit private/secret exclusion and ordered cancellation. Incoming software presentation now has original-lease checks, local priority and isolated cancel. Other reading producers and audible speech remain pending. Explicit Return to desktop now closes status while retaining the original verified lease; connection controls disclose experimental speech and unsupported desktop services.
- Demonstrate controlled Cthulhu speech to NVDA and NVDA speech to controlling Cthulhu, then Cthulhu-to-Cthulhu. Verify read-all, spelling and ordinary stop.
Exit: source and private tests pass; live speech results are recorded separately. This remains a development milestone, not a remote-control release.
Phase D: Keyboard control and crash recovery
- Complete capture, bypass, VK/XKB mapping, injection helper and held-key ledgers. Add core-owned emergency escape and input-origin routing.
- Integrate local/remote focus transitions and capability reporting.
- Verify target reader shortcuts, ordinary typing, Shift+Tab and modifier combinations. Exercise lock/handoff and every process/network failure path.
- Prove recovery from Tentacle hang/kill, reader kill, relay death and abrupt cable/network loss. No held key or local grab may survive the recovery bound.
Exit: the user can reliably regain local control and both applications and screen reader commands work over Xorg. Failed provenance/recovery checks block progress to a keyboard-control release.
Phase E: Clipboard and complete Braille milestone
- Add explicit send/receive text operations, permissions and ownership tests. Implemented in the Tentacle using the reader's explicit clipboard read/write interactions; live desktop clipboard acceptance is pending.
- Add virtual Braille viewport, final-cell export, raw-cell input to the local helper, display negotiation, panning and routing. Physical acceptance pending.
- Add allowlisted NVDA Braille gesture conversion in both directions and document any unsupported device/input actions. Only pan and routing are converted; other gestures stay inert.
- Test on physical Braille displays, including controlled-side no-display, translation tables and unplug/replug. Keep output/input claims separate.
Exit: the first-release capability matrix is complete or names specific blocked features. A synthetic cell recorder cannot close physical Braille acceptance.
Phase F: Packaging and final acceptance
- Add catalog/manifest only once the required reader API exists. Record the minimum supported reader/protocol and reject older hosts clearly.
- Extend
Makefile,tools/check.py,tools/package.pyand.gitignorefor Remote. Source build/check/ignore support now exists; catalog/release packaging remains unchanged and still needs explicit Remote support after readiness. - Package Linux amd64/arm64 native executables, README, license and required attribution; keep secret state and test certificates out of archives.
- Test extracted packages through the host and installer on the matching architecture. Cross-compilation alone does not establish ARM64 execution.
- Review access changes and verify active-session revocation on disable, remove, update, failed update and rollback. Retain manual reconnect semantics.
- Have the contributor review both diffs and perform the live tests below. Only then prepare release assets/checksums; publication, commits and submission remain separate actions. Publish verified immutable downloads before advertising the matching catalog entries.
11. Proposed source layout
Follow the repository's existing src convention; these are cohesive files in
one package initially, not an instruction to create a package per concern.
cthulhu-tentacles/
remote.md this plan
remote/
tentacle.toml added after API support is available
README.md
LICENSE
THIRD_PARTY_NOTICES.md if external material is incorporated
protocol.md
src/
main.go SDK wiring and process lifetime
session.go state, role, peer and epoch ownership
protocol.go typed NVDA messages and validation
transport.go TLS, framing, deadlines and reconnect
speech.go speech-command conversion
keyboard.go portable VK/event conversion
braille.go wire cells, geometry and gestures
settings.go validation and owner-only persistence
ui.go host-owned forms and command actions
clipboard.go explicit text exchange
*_test.go
testdata/ sanitized frames and private test certificates
Reader changes belong principally in internal/tentaclewire,
internal/tentacle, both SDKs, internal/app/tentacle_* and new cohesive
remote_* orchestration files. Input changes belong with the Xorg input owner;
output changes with speech/Braille owners. Extend shared interaction/preferences
schemas for secret controls. Extend the existing helper protocol and process
supervision where required. Keep relay implementation details out of core.
12. Verification and acceptance
Focused automated checks during implementation
From the reader checkout, start with the affected packages and existing fixtures:
go test ./internal/tentaclewire ./internal/tentacle ./sdk/... -count=1
go test ./internal/input ./internal/interaction ./internal/preferences -count=1
go test ./internal/app ./internal/braille ./internal/platform/xorg -count=1
Use go test -race for the modified host/session/output owners and external
session package. Extend existing SDK fixtures to exercise both directions of IPC,
not just a fake in-process Remote service. Run make check in this repository.
At integration/submission, run the existing reader suite and go vet ./... where
practical, plus python3 tests/check_speech.py for output regressions. Document
skipped native or hardware checks instead of counting their skipped results as
passes. Run shellcheck if implementation edits shell scripts.
Existing native Tentacle harnesses to extend/run where affected:
CTHULHU_PREFS_TENTACLES_ONLY=1 python3 tests/native_preferences.py
CTHULHU_PREFS_TENTACLE_UPDATES_ONLY=1 python3 tests/native_preferences.py
CTHULHU_PREFS_TENTACLE_SETTINGS_ONLY=1 python3 tests/native_preferences.py
CTHULHU_PREFS_EXTENSIONS_ONLY=1 python3 tests/native_preferences.py
Build new private remote fixtures on tests/native_test_session.py, with Xvfb
started before private D-Bus, disposable runtime/config directories, a private
TLS relay and test applications. Never attach automated key injection to the
active reader/display. Public relay testing is a separate deliberate live step.
Required focused cases:
| Area | Tests that establish the intended property |
|---|---|
| Negotiation/grants | Old 1.0 package unchanged; new package rejected by old host; missing/unknown grants rejected; install grant cannot mint session consent; update access increase reviewed. |
| Host transport | Fragmented/interleaved frames; unsolicited/unknown methods; duplicate keys; bad IDs; 64 KiB boundary; concurrent requests; blocked reader/writer; queue saturation; EOF and cancellation. |
| Relay transport | Valid CA; approved self-signed pin; wrong hostname/pin; changed certificate; no channel key before verification; IPv4/IPv6; partial/no-newline frames; oversized collections; peer/role/origin mismatch; reconnect cancellation. |
| Session lifecycle | Disconnect during dial/handshake; peer departure; extra peer; late old-epoch result; repeated Connect; Suspend/Resume; lock/handoff; disable/remove/update/crash; heartbeat expiry. |
| Speech | No output loops; spelling/language/priority handling; significant whitespace; read-all; cancel-before-next ordering; muted/local focus behavior; local status survives remote cancel; secret/password exclusion. |
| Xorg input | Focused local test app receives zero forwarded keys; remote app receives correct transitions; target Cthulhu command exactly once; no echo-back; bypass and remap; held/repeated keys; left/right modifiers; keypad; layout/OEM keys; collision recovery. |
| Recovery | Escape works with Tentacle hung; queued ups cannot be lost; kill Tentacle, kill reader, kill relay, sever network; verify X key state/grabs and input to a local app afterward; no automatic control resume. |
| Braille | Exact raw cells; no double translation; virtual viewport without physical target display; geometry zero/change; contracted maps; cursor/attributes; pan/route allowlist; stale pending route; local message priority; restore on revoke. |
| Clipboard/settings | Explicit read only; receive denied by default; size/UTF-8 limits; no PRIMARY/file transfer; owner-only atomic files; symlink rejection; settings/diagnostics/packages omit keys; disabled startup makes no connection. |
| Responsiveness | Slow relay and stalled Tentacle do not delay ordinary reading/input; queues remain bounded; no worker/descriptor/process leaks over repeated connect/disconnect. |
Live interoperability matrix
For each row, record exact reader/plugin/relay versions, platform, keyboard layout, speech result, key result, clipboard result, Braille output result and Braille input result. Mark untested features explicitly.
| Controller | Controlled computer | Minimum release evidence |
|---|---|---|
| Cthulhu Remote on Xorg | Cthulhu Remote on Xorg | Both directions of text entry and reader commands; all recovery tests; speech; clipboard; physical Braille. |
| NVDA Remote Access on Windows | Cthulhu Remote on Xorg | NVDA hears Cthulhu and controls Linux apps/reader; Braille display connected to Windows; local Linux escape/disconnect. |
| Cthulhu Remote on Xorg | NVDA Remote Access on Windows | Linux keys control Windows apps/NVDA; NVDA speech reaches Cthulhu; physical Braille connected to Linux. |
| Compatible Orca Remote | Cthulhu Remote on Xorg | Record Orca/plugin revisions and available hooks; exercise actual supported paths rather than infer from NVDA success. |
| Cthulhu Remote on Xorg | Compatible Orca Remote | Same explicit evidence, including hook-dependent capture/injection/Braille limits. |
Test the maintained integrated NVDA Remote Access version and the standalone add-on separately if claiming both; do not run both at once on the same NVDA instance. Use a private compatible relay first, then a selected deployed relay.
Human test procedure and likely regressions
- Use two test desktops and a non-private text document. Keep an accessible local terminal ready with a tested command to disable Remote/restart the reader if needed. Establish local keyboard/speech/Braille operation before connecting.
- Connect using each role. Review the role and certificate prompts entirely by keyboard; Tab/Shift+Tab must reach every control. Cancel/close must leave local input working. Confirm secret entry is not echoed or exposed in review.
- Enter remote focus, type a short line, use Shift+Tab, selection, editing, application switching, Insert/CapsLock reader commands, keypad and ordinary arrows. Confirm nothing was typed into the controller's local application.
- Stop speech, read continuously, spell text, switch language where supported, mute/unmute, and return to local. Confirm local status is understandable and disconnect immediately restores normal reading.
- Hold Shift/Control/Alt while disconnecting or losing the peer. Test core escape while the Tentacle is unresponsive. On disposable sessions, exercise process kills/network loss and confirm normal modifier state afterward. Record the observed recovery time; unit timers alone do not prove desktop recovery.
- Lock either desktop, enter secure input, and trigger terminal-reader handoff. Verify sharing/input stops and no lock-screen data is exported. Unlock/return must require local reconnection/resumption.
- Transfer harmless text explicitly each direction. Confirm clipboard receive denial works and text does not transfer merely because the clipboard changed.
- With physical Braille, test routing, panning, contractions, non-Latin text, cursor indicators, unequal display widths and unplug/replug. Repeat with no display attached to the controlled computer. Record Braille keyboard support separately from successful output/routing.
- Disable/re-enable Remote, restart the reader, and exercise an update/rollback. Confirm no unattended reconnection, leaked grabs, old output or held keys.
- With Remote disabled and then idle-enabled, verify existing ordinary reading, key echo, speech interruption/read-all, browser navigation, learn mode, remapped shortcuts, Preferences traversal, XTerm handoff and local Braille routing/panning. Run Hello World, Wormhole and Battery Status. These share the changed host/input/output paths and are plausible regressions.
Passing source tests and private fixtures is necessary evidence, but does not establish installed-binary behavior, audible speech, physical keyboard recovery, physical Braille, public-relay compatibility or publication. Keep each pending acceptance item visible until it has its own recorded result.
13. Decisions to close before implementation
The plan recommends these defaults; implementation must resolve the associated questions with evidence rather than quietly widening scope:
- Protocol/API: opt-in host protocol 1.1 with explicit grants. Finalize names, negotiation and errors together with both SDKs and installer behavior.
- Input feasibility: prove capture coexistence, injection provenance and independent crash cleanup before treating Xorg remote control as available.
- Consent: host-owned local actions create leases; one opposite-role peer; no automatic control resume. Confirm the exact local escape after binding tests.
- Braille: share the actual renderer, support a virtual remote viewport, and display raw cells. Decide the helper IPC change after inspecting translation ownership; do not substitute an ASCII table.
- Speech fidelity: freeze supported NVDA command/priority forms and document pause/language limitations. No promise of full NVDA synthesis semantics.
- Trust/storage: normal CA validation plus explicit pinned-certificate support; session-only keys by default. No plaintext transport or automatic clipboard overwrite during certificate discovery.
- Release scope: speech, keyboard and core Braille workflows are separate acceptance gates. Any reduced release must be named and documented explicitly.
Review CONTRIBUTING.md before submitting implementation work. The human contributor remains responsible for reviewing the generated diff, testing the changed behavior and plausible regressions, and describing what was actually verified. This planning change does not authorize installation, active reader replacement, deployment, publication or submission.