diff --git a/remote.md b/remote.md index eec2d43..6a613e3 100644 --- a/remote.md +++ b/remote.md @@ -831,6 +831,34 @@ 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](../cthulhu/docs/testing/remote-input-feasibility.md#capture-side-repeat-normalization-2026-11-06). + +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. + ## 1. Intended result and recommended approach Build a native Go Tentacle named **Remote**, with package ID `remote`, in this @@ -1286,8 +1314,10 @@ controller or `slave` for controlled. Present plain-language role labels in UI. 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. Native autorepeat normalization, - target injection and lock-state policy/acceptance remain unimplemented. + 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. diff --git a/remote/README.md b/remote/README.md index facc684..2c40fce 100644 --- a/remote/README.md +++ b/remote/README.md @@ -61,6 +61,10 @@ Implemented: retired and replacement blocked after unconfirmed helper exit. These exercise the quarantined worker, without launching an installed reader or establishing 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 + [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 before verification. Channel keys can be generated with 256 bits of entropy. diff --git a/remote/keyboard.md b/remote/keyboard.md index 5b76030..b7770ef 100644 --- a/remote/keyboard.md +++ b/remote/keyboard.md @@ -171,7 +171,12 @@ The encoder requires normalized autorepeat: a repeated down with no synthetic release between repeats. Classic X11 release/press pairs must be normalized by the future native capture owner. The current reader XRecord `RepeatTracker` marks repeat downs but still exposes releases; it cannot be wired directly to -this encoder. Capture entry with already-held keys, source overflow, bypass +this encoder. The reader's quarantined `RemoteRepeatNormalizer` now supplies +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 chords and device/layout changes need explicit native policy and tests. Mapping a supported wire key does not establish that the destination's active