Files
cthulhu-tentacles/remote/command.md
T

4.5 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 explicit saved-key, certificate and keyboard-map controls. Only relay address, mode and explicitly remembered trust are ordinary saved settings; the channel key is saved or loaded only by explicit action.

Connect performs a normal verified TLS handshake without application data before requesting reader consent. An untrusted relay returns to options for explicit certificate inspection and fingerprint review. Trust is bound to the immutable host/port and certificate and does not connect. 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.