Join quarantined Remote key mailbox to supervised input cleanup
This commit is contained in:
1 parent
5ab3efdfa7
commit
06530f0120
6 files changed
+711
-6
No files matched your search
@@ -162,10 +162,53 @@ Supervisor: both explicit and lease-context cancellation release owned Shift
|
||||
and Control on a separate X connection before fresh-helper admission.
|
||||
|
||||
This launcher is callable only as a quarantined prerequisite. Production reader
|
||||
startup does not construct it, the mailbox has no native owner, and the normal
|
||||
build/install script still does not install the input helper. No native
|
||||
startup does not construct it, the mailbox has no production native owner, and
|
||||
the normal build/install script still does not install the input helper. No native
|
||||
delivery-time policy or physical collision safety is implied.
|
||||
|
||||
### Quarantined lease/mailbox worker
|
||||
|
||||
`internal/app.run_remote_keyboard` now joins an explicitly enabled reader key
|
||||
mailbox to a retained Supervisor. It has no production caller. One worker owns
|
||||
one session's mailbox and serially sends its transitions; it creates no extra
|
||||
key queue. Host queued/in-flight budgets remain reserved until helper operation
|
||||
completion or the full cleanup barrier, including uncertain effects.
|
||||
|
||||
The worker requires a native policy callback and checks the original delivery
|
||||
context and `RemoteContext(lease, "keyboard-inject")` before launch and again
|
||||
after readiness, immediately before supervised Apply. Startup admission cannot
|
||||
authorize a later effect after deadline, consent or policy changes. The helper
|
||||
context derives from the original lease and is also cancelled by worker/session
|
||||
shutdown. Policy invalidation must cancel that lease or worker context even
|
||||
while idle; restoring policy cannot revive input. This callback performs no
|
||||
native I/O and is not itself an implemented physical-input/security policy.
|
||||
|
||||
Denial or failed Apply revokes only the original epoch and retires its helper;
|
||||
queued old work is discarded by the host. Original-lease cancellation releases
|
||||
idle held keys without waiting for another mailbox item. Replacement deliveries
|
||||
cannot launch a helper until the previous helper's cleanup and process exit
|
||||
are confirmed. A cancelled or failed startup with confirmed cleanup can be
|
||||
retried only through fresh explicit consent; its cleanup cannot revoke a newer
|
||||
epoch. An uncertain cleanup ends the worker and retains the Supervisor's
|
||||
permanent replacement block. Every worker exit disables its session so no
|
||||
accepting mailbox is left without a consumer. The caller must retain the same
|
||||
Supervisor across sessions and serialize mailbox-owner lifecycle.
|
||||
|
||||
Private real SDK/host/helper-process race tests verify transition order,
|
||||
replacement, policy denial before launch and after readiness, replacement during
|
||||
cancelled startup, independent lease expiry, blocked Apply with queued work,
|
||||
shutdown and failed cleanup. The synthetic target records logical operations;
|
||||
it does not establish native key delivery or recovery.
|
||||
|
||||
The native harness additionally runs this worker with a real reader session,
|
||||
the Go SDK child, the source-built input helper and a separate X connection.
|
||||
Five private Xvfb cases inspect held Shift/Control before disconnect, policy
|
||||
cancellation, session disable, worker shutdown and replacement. Both modifiers
|
||||
are released; replacement letter input begins after old releases. This proves
|
||||
the private mailbox-to-helper path on a responsive synthetic X server, not
|
||||
physical collision safety, production lock/handoff routing or a hard recovery
|
||||
bound. No source Remote command or ordinary reader startup calls this worker.
|
||||
|
||||
### Earlier helper and target evidence
|
||||
|
||||
Run `python3 -B tests/native_remote_keys.py` from the reader checkout. It builds
|
||||
@@ -186,7 +229,7 @@ and a full real ACK pipe. A separate X connection verifies owned Shift/Control
|
||||
are released. The six destination-target native tests remain regressions.
|
||||
|
||||
Production reader attachment and mailbox ownership are still absent. The
|
||||
quarantined launcher/retirement barrier above is not a production input owner.
|
||||
quarantined launcher and mailbox worker above are not a production input owner.
|
||||
Physical same-code collisions, the check/inject race, input
|
||||
provenance, lock/AltGr/group/repeat policy and local escape/bypass remain open.
|
||||
The watchdog and signals cannot interrupt an Xlib call that blocks inside the
|
||||
|
||||
Reference in new issue
Block a user