Remote picker container acceptance
Run the disposable two-container acceptance harness with:
make remote-acceptance
The harness builds the current binary, starts a local client container and an
SSH-enabled remote daemon container on a private Docker network, and removes
all resources when it exits. Docker uses the normal CLI configuration, so
DOCKER_HOST or the active context selects a rootless daemon; the harness does
not assume a socket pathname.
Environment overrides:
VEV_HARNESS_BASE_IMAGE selects the Docker base image used for both
containers (default: ubuntu:24.04).
VEV_HARNESS_TARGET selects the SSH target passed to the harness binary
(default: test@remote).
VEV_HARNESS_ARTIFACT_DIR, when set, writes a bounded
remote-picker-harness.json containing output-state, checkpoint, and event
metadata. It is unset by default; the artifact contains no terminal bytes,
raw screen text, credentials, or target output. run.sh copies the report to
that host directory before it removes the disposable containers.
Each logical transport has one persistent vt.Screen and a client-equivalent
output-state chain. The probe writes accepted full, incremental, and side-effect
frames to that screen, ACKs only accepted state-bearing frames, and retains a
bounded set of screen checkpoints plus non-sensitive event metadata. The local
picker phase captures unified local/remote rows before selection, keeps the same
local client transport while the daemon publishes proxied remote content,
rejects direct MsgAttachTarget handoff and remote daemon chrome, verifies
continued input, and captures the unified rows again from the remote view.
The run exercises real SSH-stdio and UDP attachment, typed live catalog and
preview requests, tab creation/removal fencing, exact lifecycle fencing after
replacement, daemon restart resume, slow-preview cancellation, version
mismatch, and unreachable-host handling. It checks environment values in
memory without printing terminal viewport data.
Stopped-selector restoration and daemon-owned environment assertions are also
covered by the repository's daemon and route integration tests, where the
fixture can deterministically hold restoration at the stopped state.
source
1# Remote picker container acceptance
2
3Run the disposable two-container acceptance harness with:
4
5```sh
6make remote-acceptance
7```
8
9The harness builds the current binary, starts a local client container and an
10SSH-enabled remote daemon container on a private Docker network, and removes
11all resources when it exits. Docker uses the normal CLI configuration, so
12`DOCKER_HOST` or the active context selects a rootless daemon; the harness does
13not assume a socket pathname.
14
15Environment overrides:
16
17- `VEV_HARNESS_BASE_IMAGE` selects the Docker base image used for both
18 containers (default: `ubuntu:24.04`).
19- `VEV_HARNESS_TARGET` selects the SSH target passed to the harness binary
20 (default: `test@remote`).
21- `VEV_HARNESS_ARTIFACT_DIR`, when set, writes a bounded
22 `remote-picker-harness.json` containing output-state, checkpoint, and event
23 metadata. It is unset by default; the artifact contains no terminal bytes,
24 raw screen text, credentials, or target output. `run.sh` copies the report to
25 that host directory before it removes the disposable containers.
26
27Each logical transport has one persistent `vt.Screen` and a client-equivalent
28output-state chain. The probe writes accepted full, incremental, and side-effect
29frames to that screen, ACKs only accepted state-bearing frames, and retains a
30bounded set of screen checkpoints plus non-sensitive event metadata. The local
31picker phase captures unified local/remote rows before selection, keeps the same
32local client transport while the daemon publishes proxied remote content,
33rejects direct `MsgAttachTarget` handoff and remote daemon chrome, verifies
34continued input, and captures the unified rows again from the remote view.
35
36The run exercises real SSH-stdio and UDP attachment, typed live catalog and
37preview requests, tab creation/removal fencing, exact lifecycle fencing after
38replacement, daemon restart resume, slow-preview cancellation, version
39mismatch, and unreachable-host handling. It checks environment values in
40memory without printing terminal viewport data.
41
42Stopped-selector restoration and daemon-owned environment assertions are also
43covered by the repository's daemon and route integration tests, where the
44fixture can deterministically hold restoration at the stopped state.