Files
cthulhu-tentacles/remote/command.md
T
Chase CichorzandClaude Opus 5.5 dcdbe2b603 Prepare Remote 0.1.2 with Orca key handling and remembered connections
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>
2026-11-06 21:19:39 -05:00

5.4 KiB

Remote connection workflow, 0.1.1

Remote uses Cthulhu+Ctrl+Shift+R to open a compact Mode, Host and masked Key form. Host accepts an optional port. Cancel starts focused and works with empty entries. More options opens recent-connection, saved-key, certificate and keyboard-map controls. Relay address, mode and explicitly remembered trust are ordinary saved settings. A channel key is saved by an explicit saved-key action or, when Remember this host and key is checked, as a recent connection after a successful join; abandoned, refused or failed attempts are never remembered.

Recent connections appears after Mode when any exist: up to ten host, port and mode entries, newest first, in a private file with their keys and any remembered certificate pin. Enter on an entry fills Mode and Host, and the current selection is listed first. Connect with an empty Key uses the key saved for that host, port and mode. Labels never contain a key. Forget recent connections removes them all; it is not secure erasure.

Connect performs a normal verified TLS handshake without application data before requesting reader consent. If that fails on the certificate (not on a network error), a separate key-free inspection fetches the leaf certificate and shows its SHA-256 fingerprint for review. Trust once or Trust and remember continues this Connect: the handshake is verified again against the new pin before the reader asks for access. Cancel returns to options. Nothing is trusted without that choice. Trust is bound to the immutable host/port and certificate; remembered trust is also recorded on that host's recent connections. The actual join uses a new TLS connection and verifies trust again before sending the key.

The reader makes the only permission decision. Required speech access and optional keyboard, clipboard and Braille are offered within installation grants; all start unchecked. Optional permissions absent from installation are omitted. Only a nonempty local approval produces the SDK event for the exact requesting session. Remote compares that event with the continuation's metadata. It then opens the lease and joins immediately, avoiding the previous 30-second expiry during credential entry or certificate review. Approval still expires, is single-use, and is revoked on lock/handoff, disable or process loss.

Progress forms poll once per second. Inspection completion replaces the progress form with certificate review; verified preflight advances to reader consent. After a successful join, polling returns the verified background lease to the reader, which releases form capture without renewing consent. No Refresh or Return to desktop action is needed. Failed attempts close their lease. There is no automatic retry or unattended connection.

Reopening Remote shows status, Close and Disconnect. Close or Escape retains a live lease; Disconnect or the dedicated disconnect command ends it. The keyboard starts local. Cthulhu+Alt+Tab enters remote control; the same chord or F11 returns through the reader's capture owner. Other Remote shortcuts return capture first and run on a second press. Remapped commands retain the reader's routing rules.

Cthulhu+Alt+M toggles incoming remote speech. Muting invalidates queued speech and sends cancellation through the original remote lease's ordered operation owner, leaving local speech cancellation independent. Unmute admits new speech without replaying old queued utterances. Clipboard and Braille remain separate.

Verification

Run make check GOPROXY=off and the Remote race suite. The matching reader's actual-host tests run both roles through private TLS relays, synthetic local approval, ordinary speech observation, isolated incoming synthesis, automatic desktop return, status reopening, disconnect and lifecycle cancellation. Unit checks cover forged approval, optional grants, masked keys, endpoint trust, preflight with no application bytes, and mute ordering without replay.

For live acceptance, use disposable Xorg desktops and a private relay with the matching reader and its helpers. Do not replace an active reader to run private tests. On both roles, check Tab/Shift+Tab and Cancel with empty fields, masked key speech/Braille, saved-key loading, trusted/untrusted/changed certificates, and cancel/lock/handoff during both inspection and connection. Connect must show permissions once, return to the desktop automatically, and leave the keyboard local. Close/Escape in status must retain the connection; Disconnect must end it.

Allow keyboard access and check Alt+Tab, F11, held modifiers, repeated keys, Num Lock and supported layouts, including disconnect/lock/handoff while a key is held. Check that unsupported keys do not leave modifiers held. Verify local speech remains audible during remote mute/cancel; unmute must not replay speech. Test repeated letters, language and character-mode changes, ordinary focus, current-line/review/Where Am I and Say All. Password/private-source text must stay local. Test explicit clipboard send/accept and physical Braille pan/routing. Recheck ordinary reader forms, learn mode, remapped shortcuts, Hello World, Wormhole and Battery Status because polling shares their interaction host.

Record reader/peer revisions and actual keys, heard output and Braille results. Private tests do not establish physical input, audible speech, physical Braille, ARM64 execution or real NVDA/Orca interoperability. Human review and testing are required before treating this experimental release as accepted.