Skip to content

Sessions ​

A remote session is a governed, purpose-bound admission to an endpoint.

The lifecycle ​

request → approve → redeem → connected → PTY opened → shell ready → input accepted → child exited

Each step is recorded separately — a PTY can combine stdout and stderr, and a child exit status is only reported when actually received.

Purpose ​

  • screen — the screen-view / input-control flow (the historic remote control).
  • terminal — a live operator shell. Requires requestedRuntime and requestedPrivilege; elevation is a separate choice, never implied.

An unknown or omitted purpose fails closed; a screen re-click never reuses a terminal session and vice versa.

What the operator sees ​

The console shows the actual machine, shell, version, host and OS principal before any input — endpoint evidence, not the request. Only the technician supplies interactive input.

Detach and reattach ​

Detaching releases the viewer and keeps the case context. Reattaching re-checks current access, expiry, the OS principal and the exact surviving PTY; uncertain keystrokes after a disconnect are discarded, not replayed.

Current rollout ​

  • Live: purpose-bound admission (E16-06) — requests, approval, redemption and grants carry purpose, runtime and privilege; offline agents are refused with the reason.
  • Following the engine lane: endpoint-side shell qualification (E16-07) and evidence/recording (E16-08).

See Terminals for the operator path.

Hesper docs · version v0.1.152