diff --git a/remote.md b/remote.md index 176792e..0e30c79 100644 --- a/remote.md +++ b/remote.md @@ -720,6 +720,53 @@ remain unresolved. Missing/failed cleanup confirmation must block replacement input. The source command still discards keyboard traffic and offers no keyboard grant; no release gate is complete. +Thirty-fourth implementation increment (2026-11-05): based on reader `21d8904` +(`testing`) and Tentacles `71d77d1` (`master`), synchronized with their upstreams. +Matching reader implementation: `5ab3efd`. +A quarantined reader-side Supervisor now launches the input helper in its own +process group with exclusive private pipe ownership. One owner sequences keys +and periodic heartbeats, with bounded startup/read/write waits and no retained +key queue. Cancellation closes the independent lifetime pipe even during a +pending operation; cancellation of an admitted key call retires its entire +client. The launcher never kills the helper to satisfy a timeout. + +Replacement requires a valid original-epoch successful-cleanup acknowledgement, +validated operation history and successful process exit. Invalid/replayed ACKs, +missing confirmation, abnormal exit, failed cleanup or a retirement timeout +permanently block that Supervisor's replacement path. Fresh authorized clients +can start after confirmed retirement, and stale client cancellation cannot +affect them. A future production reader owner must retain this uncertainty +latch across sessions and supply authenticated lease/policy checks; these +private heartbeats grant no consent. See +[the supervisor contract and limits](../cthulhu/docs/testing/remote-input-helper.md#quarantined-reader-side-supervision). + +Private subprocess tests cover idle heartbeat renewal, explicit/context +cancellation, an admitted key with a withheld ACK, readiness failure, concurrent +launch refusal, replacement isolation, invalid ACK epochs/sequences/order, +abrupt exit, cleanup failure, clean ACK followed by abnormal exit and blocked +target work. Two private Xvfb scenarios launch the actual helper through the +Supervisor and inspect held Shift/Control from a separate X connection: explicit +and lease-context cancellation release both before replacement admission. + +The helper/input/wire/Xorg race suites, full external Remote race suite, private +native helper/target harness, affected-package vet, separate reader build, +existing speech regression harness and Tentacles `make check` passed. The +repository check now includes Supervisor tests. Its first run exposed a +synthetic blocked-call fixture that exited on Go's non-race deadlock detector; +using a long timer models that blocked call without runtime termination, and +both ordinary and race checks passed after correction. No full reader suite or +physical/audible/interoperability acceptance was performed. + +Production reader attachment, native delivery-time policy and mailbox ownership +remain pending. No normal build/install integration or keyboard grant was added; +the source command still discards keyboard traffic. Helper death and blocked +native calls can still prevent recovery; the supervisor reports uncertainty +and blocks input instead of claiming a desktop recovery bound. Physical +same-code collisions, source provenance, lock/AltGr/group/repeat policy, +capture/escape/bypass, audible speech, physical Braille and real interoperability +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 diff --git a/remote/README.md b/remote/README.md index 6fbe624..bfe8139 100644 --- a/remote/README.md +++ b/remote/README.md @@ -50,8 +50,10 @@ Implemented: through layout/Num Lock changes and retains failed cleanup for retry, with private Xvfb race checks. A source-built independent helper now supplies bounded private IPC, EOF/watchdog cleanup and explicit cleanup acknowledgements. - No production reader launcher is attached; helper death, physical collisions - and native repeat/lock policy remain open. + A quarantined reader-side launcher now sequences heartbeats, closes the + lifetime pipe on cancellation and blocks replacement until cleanup and + process exit are confirmed. No production reader launcher is attached; + helper death, 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 diff --git a/remote/implementation.md b/remote/implementation.md index 937f338..0400771 100644 --- a/remote/implementation.md +++ b/remote/implementation.md @@ -103,8 +103,12 @@ must never mint consent. physical collision safety or production input attachment. The subsequent [source-built helper](../../cthulhu/docs/testing/remote-input-helper.md) now provides bounded inherited-pipe IPC and separate EOF/watchdog cleanup, with - private process tests. Reader launch/supervision and cleanup barriers remain - pending, along with helper-death/blocked-server and hardware acceptance. + private process tests. A quarantined reader-side Supervisor now launches the + helper, serializes heartbeats and checks original-epoch cleanup plus process + exit before replacement. Unconfirmed cleanup blocks that Supervisor + permanently. Production reader attachment, delivery-time policy and mailbox + ownership remain pending, along with helper-death/blocked-server recovery + and hardware acceptance. 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 fba2dd9..dc60a7f 100644 --- a/remote/keyboard.md +++ b/remote/keyboard.md @@ -124,7 +124,10 @@ ambiguous mappings and lock-key downs. Native tests inspect owned key state across layout and Num Lock changes and preserve preexisting synthetic keys. The [source-built helper](../../cthulhu/docs/testing/remote-input-helper.md) now provides private process-lifetime, EOF and watchdog cleanup with bounded ACK -handling. There is no production reader launcher or mailbox attachment. +handling. A quarantined reader-side Supervisor now owns launch, serial +heartbeats and cancellation, requiring clean original-epoch retirement and +process exit before replacement. Unconfirmed cleanup permanently blocks its +replacement path. There is no production reader launcher or mailbox attachment. Later physical same-code collisions, native repeat policy, actual reader 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. diff --git a/tools/check.py b/tools/check.py index 718e655..c251bf9 100644 --- a/tools/check.py +++ b/tools/check.py @@ -177,7 +177,7 @@ def check_remote(repoRoot): subprocess.run([ "go", "test", "./internal/input", "./internal/remoteinput", "./internal/tentacle", "./internal/tentaclewire", "./cmd/cthulhu-input-helper", - "-run", "^TestRemote(Speech|Background|Key)|^TestSessionSDKLifecycleConformance$|^TestHelper|^TestAdoptPipe", "-count=1", "-timeout=60s", + "-run", "^TestRemote(Speech|Background|Key)|^TestSessionSDKLifecycleConformance$|^TestHelper|^TestAdoptPipe|^TestSupervisor", "-count=1", "-timeout=60s", ], cwd=readerRoot, env=environment, timeout=90, check=True)