diff --git a/remote.md b/remote.md index 6a613e3..452aa6d 100644 --- a/remote.md +++ b/remote.md @@ -859,6 +859,29 @@ 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](../cthulhu/docs/testing/remote-input-feasibility.md#capture-routing-and-bypass-balancing-2026-11-06). + +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. + ## 1. Intended result and recommended approach Build a native Go Tentacle named **Remote**, with package ID `remote`, in this @@ -1289,9 +1312,14 @@ controller or `slave` for controlled. Present plain-language role labels in UI. - [ ] 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_event` flag. Prototype XInput device identity and ordered broker acknowledgements; prove how injected events reach diff --git a/remote/README.md b/remote/README.md index 2c40fce..75d43b7 100644 --- a/remote/README.md +++ b/remote/README.md @@ -63,7 +63,8 @@ Implemented: production keyboard availability. See [the evidence and limits](../../cthulhu/docs/testing/remote-input-helper.md#mailbox-owner-process-failure). - A quarantined reader repeat normalizer converts native key observations into one down, repeated downs and one up for the outgoing encoder, with private - Xvfb evidence for held keys. It is not attached to capture. See + Xvfb evidence for held keys. A capture router balances modifiers around + local/escape chords. Neither is attached to capture. See [keyboard.md](keyboard.md). - TLS with normal certificate/hostname validation or an already-approved, endpoint-bound SHA-256 certificate pin. Authentication sends no channel key diff --git a/remote/keyboard.md b/remote/keyboard.md index b7770ef..df8dede 100644 --- a/remote/keyboard.md +++ b/remote/keyboard.md @@ -176,7 +176,11 @@ that normalization: it holds a release briefly, folds a same-timestamp press into a repeat and releases owned keys on retirement. A private Xvfb check observed only detectable-style repeats through XRecord; classic pairs are unit-tested. See [the evidence](../../cthulhu/docs/testing/remote-input-feasibility.md#capture-side-repeat-normalization-2026-11-06). -It has no production caller. Capture entry with already-held keys, source overflow, bypass +It has no production caller. A quarantined `RemoteCaptureRouter` then decides +forwarding: ordinary keys and reader-modifier chords go remote, while a core +escape and binding-derived local chords stay local, with forwarded prefixes +released remotely first and local releases swallowed. See +[the routing evidence](../../cthulhu/docs/testing/remote-input-feasibility.md#capture-routing-and-bypass-balancing-2026-11-06). Capture entry with already-held keys, source overflow, bypass chords and device/layout changes need explicit native policy and tests. Mapping a supported wire key does not establish that the destination's active