186 lines
13 KiB
Markdown
186 lines
13 KiB
Markdown
# Remote implementation history
|
|
|
|
This is a historical increment record. For current implemented features and
|
|
remaining release evidence, see [README.md](README.md) and the status at the top
|
|
of [the plan](../remote.md). The implementation gates below predate production
|
|
keyboard, clipboard, Braille and review packaging integration.
|
|
|
|
The design plan is [`../remote.md`](../remote.md) in this repository. This
|
|
increment implements part of phases A and C. **Phase A is not complete**: actual
|
|
captured NVDA fixtures and complete Xorg/Braille feasibility evidence are missing.
|
|
It does not establish any of the release acceptance gates.
|
|
|
|
Current update: [the source command](command.md) now supplies endpoint/role
|
|
selection, core-consent interaction wiring, persistent-pin actions and private
|
|
real-host relay integration. Earlier increment descriptions below are historical;
|
|
connection registration and software speech ownership are implemented, while
|
|
physical-source approval, live speech acceptance and remaining desktop services
|
|
are pending.
|
|
|
|
Subsequent increments add [typed speech IPC and relay conversion](speech.md).
|
|
The reader has an explicit bounded speech mailbox and lease-bound output
|
|
events, exercised through both SDKs. The external coordinator now joins those
|
|
interfaces to relay speech, with ordered calls and bounded cancellable queues.
|
|
Split utterances now reach the reader owner as one complete assembly, with
|
|
independent reader frame/byte limits that include work in flight.
|
|
Limited production output observation now attaches the existing speech worker
|
|
to its manager with lease-captured, explicitly local requests and delivery-time
|
|
policy/generation checks. The main accessibility presenter opts in; other
|
|
reading producers still need source review. Explicit Return to desktop detaches
|
|
the connection status form. A lazy isolated reader synthesis handle now provides
|
|
separate cancellation ownership. An isolated typed renderer now preserves
|
|
whitespace and resolved spelling/language state across complete assemblies;
|
|
production session startup now attaches its mailbox with lease/focus/output
|
|
checks, limited stream priority/cancel/pause and local priority. Real-server
|
|
scheduling and live speech acceptance remain open. See [speech.md](speech.md).
|
|
|
|
## Confirmed reader boundaries
|
|
|
|
Source inspection began at reader revision
|
|
`a47253d697c1aa44dea80646cad99a4fe163c7f1`; the table includes subsequent local
|
|
implementation increments recorded in the parent plan. Paths below
|
|
are relative to the adjacent `cthulhu` checkout.
|
|
|
|
| Area | Existing boundary to extend |
|
|
| --- | --- |
|
|
| Negotiation | Protocol 1.0 retains its strict prefix. Opt-in 1.1 validates explicit API/grant sets in `internal/tentaclewire/session.go`. |
|
|
| Host transport | Bounded bidirectional lifecycle calls/events now exist, retaining the 64 KiB frame bound. Desktop streaming services remain pending. |
|
|
| Go SDK | `ServeSession` and `SessionClient` provide 1.1 calls/events; legacy Serve remains unchanged. Real-process tests include blocked pipes and command concurrency. |
|
|
| Python SDK | `serve(session_client=...)` provides the same 1.1 lifecycle contract and conformance fixtures as Go, with a cancellable nonblocking pipe transport. |
|
|
| Installation | Installer, registry, discovery-to-package checks, local launch and command host now carry 1.1 install grants. Grants do not create session consent. |
|
|
| Updates/access | Install/update confirmations disclose grant direction and fresh local approval; disable/failure cancels leases. Updates revoke access before download, including failed preparation. Core consent and I38lock/XTerm policy cancellation now exist; physical-source acceptance and desktop owners remain pending. |
|
|
| Secret controls | Transient entries now support `secret: true`, with masked editing/speech/Braille, copy/cut denial and no values on cancellation. Persistent preference pages reject secrets. Private Xorg/SDK tests cover this prerequisite; the source command uses these controls; audible speech and physical Braille acceptance remain pending. See [the contract](../../cthulhu/docs/tentacle-secret-entries.md). |
|
|
| Input | `internal/platform/xorg/listener.go` uses XRecord observation. That does not consume desktop keys. A private prototype now demonstrates exclusive capture and helper EOF/watchdog cleanup; production ownership, trusted origin and physical collisions remain unresolved. See [the feasibility record](../../cthulhu/docs/testing/remote-input-feasibility.md). |
|
|
| Braille | `internal/braille/client.go` writes text/overlay dots through a helper. Shared viewport/cell-mask feasibility tests now demonstrate translated virtual cells and independent routing without a physical display. Virtual table/cursor policy, helper IPC and raw receiving remain open. See [the evidence](../../cthulhu/docs/testing/remote-braille-feasibility.md). |
|
|
|
|
Do not relax the 1.0 validators piecemeal or add a manifest claiming these APIs
|
|
before the full reader/SDK/installer path exists. API availability and stored
|
|
grants must be separate from ephemeral consent; a child request or injected key
|
|
must never mint consent.
|
|
|
|
## Next implementation gates
|
|
|
|
1. Complete Xorg capture coexistence and physical/injected event provenance.
|
|
The private reader harness demonstrates grab-owner death and independent
|
|
helper cleanup on writer EOF/watchdog expiry, but does not establish a
|
|
production helper or physical-key collision safety. Shared Braille viewport
|
|
tests now operate without a physical target display; resolve virtual
|
|
table/cursor policy and implement isolated helper integration. These remaining
|
|
feasibility gates are not assumptions established by the relay library.
|
|
2. The [protocol 1.1 lifecycle foundation](../../cthulhu/docs/tentacle-sessions.md)
|
|
exists through both SDKs and installation. The reader's
|
|
[authorization implementation](../../cthulhu/docs/tentacle-remote-authorization.md)
|
|
provides core consent, policy-bound production managers, I38lock/XTerm
|
|
cancellation and XI2 sensitive forms. The source command is registered and
|
|
requests consent for its own process session. Private tests establish XTEST
|
|
rejection; successful physical-source approval remains unverified.
|
|
3. The [source command](command.md) combines endpoint/role selection,
|
|
[secure storage](storage.md), certificate inspection, explicit Trust once and
|
|
persistent pins, masked key entry, Remember/Forget and status/Disconnect.
|
|
The [coordinator](lifecycle.md) joins reader leases and revocation to relay
|
|
cancellation and bounded speech queues. Pending approval expiry now emits
|
|
revocation too, cancelling setup before a lease opens. Verify these workflows
|
|
with physical local input; synthetic submissions do not establish that gate.
|
|
4. Extend the limited policy-resolved output observer to reviewed remaining
|
|
reading producers and verify incoming software presentation, now attached
|
|
with delivery-time policy, limited stream priority/cancel/pause and local
|
|
priority, using real Speech Dispatcher and live peers. Explicit status detachment
|
|
is implemented.
|
|
Ordinary accessibility speech now has explicit origin/secret exclusion,
|
|
original-lease tickets and delivery-time policy/generation checks.
|
|
Browse-mode current-line reports, spelling and phonetic spelling now retain
|
|
captured source ancestry and inspect joined fragments before export. Native
|
|
current-line, object/flat review, Where Am I and reading-context output now
|
|
also have source checks; key-name echo and unreviewed producers stay private.
|
|
5. Complete keyboard recovery, explicit clipboard transfer and virtual/raw
|
|
Braille workflows. An isolated [VK/XKB conversion prerequisite](keyboard.md)
|
|
now preserves modifier sides and keypad distinctions with explicit layout
|
|
profiles. An outgoing encoder retains the original wire identity through
|
|
repeat/release and write failure, with bounded cleanup planning. Capture,
|
|
injection, AltGr, native layout changes and desktop held-key ownership remain
|
|
pending. Typed incoming `remote.key` IPC and both-SDK validation now have an
|
|
explicitly attached test mailbox and bounded in-flight accounting. The
|
|
[reader input owner](../../cthulhu/docs/tentacle-remote-keyboard.md) is still
|
|
absent in production; the coordinator continues to discard keyboard traffic.
|
|
A [quarantined destination ledger/backend](../../cthulhu/docs/testing/remote-key-target.md)
|
|
now retains resolved native codes through layout/Num Lock changes, uncertain
|
|
effects and cleanup retry. It has private native checks but supplies no
|
|
physical collision safety or production input attachment. The subsequent
|
|
[source-built helper](../../cthulhu/docs/testing/remote-input-helper.md) now
|
|
provides bounded inherited-pipe IPC and separate EOF/watchdog cleanup, with
|
|
private process tests. A quarantined reader-side Supervisor now launches the
|
|
helper, serializes heartbeats and checks original-epoch cleanup plus process
|
|
exit before replacement. Unconfirmed cleanup blocks that Supervisor
|
|
permanently. Production reader attachment, delivery-time policy and mailbox
|
|
ownership remain pending, along with helper-death/blocked-server recovery
|
|
and hardware acceptance.
|
|
Record physical keyboard, audible speech and physical
|
|
display results separately from private automated checks.
|
|
6. Add the manifest, catalog and package tooling only after required reader APIs
|
|
and acceptance gates exist. Installation and release publication remain
|
|
separate actions.
|
|
|
|
## Checks for this increment
|
|
|
|
The lifecycle increment passed reader wire/host/preferences race suites, focused
|
|
application Tentacle race tests and vet, and four private GTK workflows covering
|
|
install/update confirmations, settings and extension pages. The storage increment
|
|
adds real filesystem tests for atomic replacement, endpoint scoping, permissions,
|
|
links, FIFO rejection, locking, malformed/oversized files and secret-free errors.
|
|
Neither increment installs Remote or establishes live desktop acceptance.
|
|
|
|
The coordinator increment passed the complete Remote race suite and repository
|
|
`make check`. It covers both roles, heartbeat during stalled TLS, revoke/open
|
|
races, peer changes, SDK EOF and immediate socket cancellation independent of
|
|
an in-flight heartbeat. An actual Go SDK pipe fixture talks to a synthetic
|
|
lifecycle host. It does not exercise production consent or desktop effects;
|
|
see [the exact contract and remaining gates](lifecycle.md).
|
|
|
|
The following security-form increment adds private tests for certificate
|
|
inspection without application data, changed-pin review, fresh pin-authenticated
|
|
join, certificate rotation, cancellation and one-use review. Filesystem fixtures
|
|
exercise explicit Remember/Forget, secret-free responses and failed/cancelled
|
|
actions preserving existing keys. These are synthetic form submissions, not
|
|
production local consent or real keyboard/clipboard acceptance. See
|
|
[the security-form contract](security-ui.md).
|
|
|
|
The Braille feasibility increment passed both default and brlapi-tagged Braille
|
|
package suites with the race detector, tagged vet and a helper build. Eight new
|
|
tests exercise shared cell masks and real liblouis viewports without opening
|
|
BrlAPI. Physical display behavior remains pending; see the
|
|
[evidence and regression procedure](../../cthulhu/docs/testing/remote-braille-feasibility.md).
|
|
|
|
The subsequent Xorg feasibility increment adds
|
|
`python3 -B tests/native_remote_input.py` in the reader checkout. It exercises
|
|
private capture, key state, process death, heartbeat expiry, malformed input,
|
|
collision limitations and restoration of application input, then runs real
|
|
Xorg observer/internal-form/learn-mode tests with the race detector. See the
|
|
[reader evidence record](../../cthulhu/docs/testing/remote-input-feasibility.md)
|
|
for precise claims and pending production/physical-device gates.
|
|
|
|
The secret-entry prerequisite passed focused reader race tests for interaction,
|
|
wire validation, host/SDK conformance and internal forms; preferences unit tests;
|
|
the private Xorg internal-UI harness; and the Tentacles repository's `make check`.
|
|
The native harness includes existing ordinary entry, action menu, emoji picker
|
|
and clipboard regressions. It records speech requests, not audible output, and
|
|
does not establish physical Braille acceptance.
|
|
|
|
The Remote tests cover bounded/malformed frames; exact speech command shapes;
|
|
allowlisted gestures; one-peer roles and epochs; private CA and explicit-pin TLS;
|
|
no application data on certificate failure; cancellation during TLS/join/read/
|
|
write; read timeout; short/concurrent writes; and writer overflow cleanup.
|
|
They do not implement a production relay or establish interoperability with an
|
|
actual NVDA process. Fixture provenance is in [protocol.md](protocol.md).
|
|
|
|
`make check` also builds and invokes Hello World, Wormhole and Battery Status
|
|
through the existing command host. This checks existing SDK/registration behavior
|
|
without installing or replacing the active reader. Review the generated diff
|
|
before any later submission. The source command can exercise connection and
|
|
consent UI; live desktop service testing still requires the pending reader
|
|
output/input owners.
|
|
|
|
The first repository check exposed a pre-existing dependency metadata gap: the
|
|
adjacent SDK imports reader configuration, which depends on go-toml v2.4.3.
|
|
The Tentacles module now records that dependency (also directly used by Remote settings) and the same checksums
|
|
already present in the reader's `go.sum`; no dependency version was upgraded.
|