diff --git a/remote.md b/remote.md index 242f0c8..1aaf1bc 100644 --- a/remote.md +++ b/remote.md @@ -645,6 +645,42 @@ unsupported Braille check. Repository checks now include keyboard and lifecycle regressions. No full reader suite, native desktop, physical/audible or live interoperability acceptance was performed; no active reader was replaced. +Thirty-second implementation increment (2026-11-05): based on reader `792cac5` +(`testing`) and Tentacles `0086b89` (`master`), synchronized with their upstreams. +Matching reader implementation: `cd9ae05`. +A reader-owned destination ledger now reserves at most 32 native codes before +downs and retains them until successful ups, including uncertain native effects. +Retirement stops admission, attempts every owned release in reverse down order +and retains failed releases for explicit retry. Duplicate downs and unowned ups +are idempotent; already-held target keys and aliases of owned codes are rejected. +The canonical key vocabulary moved into the shared input policy without changing +the wire/SDK schema. See [the ownership contract and limitations](../cthulhu/docs/testing/remote-key-target.md). + +A quarantined Xorg backend uses fresh XKB snapshots to resolve one unambiguous +group-zero destination, preserving Num Lock while resolving base keys. Ups use +their original reserved code after layout/Num Lock changes. Missing, ambiguous, +shift-only and unsupported-group mappings fail without modifier synthesis or +keymap rewriting. Lock-key downs remain unavailable pending lock/reader-modifier +policy. There is no production caller or mailbox attachment; synchronous Xlib +work must eventually run in an independent helper. This increment supplies no +EOF/watchdog or reader-SIGKILL cleanup and does not solve later physical same-code +collisions or check/inject races. Native repeat fidelity, source provenance, +capture/escape/bypass and live interoperability remain open. The Remote command +still discards keyboard traffic and offers no keyboard grant. + +Unit tests and six new private Xvfb Go race tests verify destination-code +retention, uncertain effects, retry order, bounded ownership, preexisting +synthetic collisions, modifier cleanup, US/German map replacement, Num Lock, +unsupported groups, shifted-only symbols and lock refusal. The existing ten +Python experiments and six native input race regressions also passed, alongside +input/wire/Xorg race suites, focused host key/lifecycle race checks, the complete +external Remote race suite, affected-package vet, a separate reader build, +the existing speech regression harness and Tentacles `make check`. Default native +skips were not counted as acceptance; +the dedicated harness supplied the six new native results. No full reader suite, +installed/active-reader replacement, physical input/Braille, audible speech or +real NVDA/Orca acceptance was performed. No release gate is complete. + ## 1. Intended result and recommended approach Build a native Go Tentacle named **Remote**, with package ID `remote`, in this @@ -1105,6 +1141,10 @@ controller or `slave` for controlled. Present plain-language role labels in UI. - [ ] 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. + A [quarantined Go destination backend](../cthulhu/docs/testing/remote-key-target.md) + now resolves native codes and performs explicitly owned XTEST effects in private + tests. Production helper supervision, crash cleanup, provenance and physical + collision safety remain absent; it is not attached to reader input or Remote. - [ ] Verify remote keys reach both ordinary applications and Cthulhu command handling exactly once. If physical/injected held-key collisions cannot be resolved safely, suspend input and report the limitation; do not clear all diff --git a/remote/README.md b/remote/README.md index 4169989..de3ae02 100644 --- a/remote/README.md +++ b/remote/README.md @@ -46,6 +46,11 @@ Implemented: supported canonical mapping to the public SDK representation. No production input owner is attached and the coordinator still discards keys; keyboard control remains unavailable. See [the reader contract](../../cthulhu/docs/tentacle-remote-keyboard.md). +- A quarantined reader destination ledger/backend now preserves native keycodes + through layout/Num Lock changes and retains failed cleanup for retry, with + private Xvfb race checks. It has no production caller or independent crash + cleanup; physical collisions and native repeat/lock policy remain open. + See [the native prerequisite](../../cthulhu/docs/testing/remote-key-target.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/implementation.md b/remote/implementation.md index 98aca10..e9d2810 100644 --- a/remote/implementation.md +++ b/remote/implementation.md @@ -97,6 +97,10 @@ must never mint consent. 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 + independent helper, physical collision safety or production input attachment. 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 diff --git a/remote/keyboard.md b/remote/keyboard.md index 78a12de..1a7432b 100644 --- a/remote/keyboard.md +++ b/remote/keyboard.md @@ -116,6 +116,17 @@ they never inject into a desktop. ## Integration boundaries +The reader now has a [quarantined destination-key prerequisite](../../cthulhu/docs/testing/remote-key-target.md). +Its bounded ledger reserves native codes before down, uses the original code +for up and retains uncertain effects/failed releases for retry. A private Xorg +backend resolves fresh group-zero XKB snapshots and rejects unavailable or +ambiguous mappings and lock-key downs. Native tests inspect owned key state +across layout and Num Lock changes and preserve preexisting synthetic keys. +There is no production caller, mailbox attachment or independent helper cleanup. +Later physical same-code collisions, native repeat policy, crash recovery and +input provenance still block production use. Failed native cleanup must block +replacement input; an old release cannot be sent into a replacement helper. + These helpers have no callers in the live coordinator. Before connecting them to production keyboard services, the reader must provide exclusive capture, trusted routing, delivery-time lease checks, a core escape and independent injection cleanup. diff --git a/tools/check.py b/tools/check.py index 841b39b..e446ad1 100644 --- a/tools/check.py +++ b/tools/check.py @@ -175,7 +175,7 @@ def check_remote(repoRoot): "-count=1", "-timeout=90s", ], cwd=readerRoot, env=environment, timeout=120, check=True) subprocess.run([ - "go", "test", "./internal/tentacle", "./internal/tentaclewire", + "go", "test", "./internal/input", "./internal/tentacle", "./internal/tentaclewire", "-run", "^TestRemote(Speech|Background|Key)|^TestSessionSDKLifecycleConformance$", "-count=1", "-timeout=60s", ], cwd=readerRoot, env=environment, timeout=90, check=True)