Skip to content

Live Endpoint Tcp Live6B1

Chris Sutton edited this page Nov 30, 2026 · 1 revision

Published documentation mirror. Edit the source through a repository PR. See Project status.

LIVE6B.1 — Connected TCP ciphertext transport

Status: accepted; LIVE6A accepted. LIVE6B is split into this connected-socket foundation and subsequent manager / agent operational ownership. This is not deployment authorization.

Boundary and scheduling

TcpCiphertext exclusively owns an already connected IPv4 TCP descriptor and borrows a fresh telemetry TLS Session, which must outlive it. The trusted serialized caller supplies the exact numeric local and peer tuples and explicit current authorization. The driver checks the kernel socket type, protocol and both tuples, requires close-on-exec, and rejects missing authorization. It does not create, bind, listen, dial, resolve DNS or grant network permission. A true boolean is not a security credential; the future owner must obtain and revalidate real administrative network authorization and live topology before socket creation, every drive turn and application admission. Loopback fixtures are a separate test authority, not LAN policy exceptions. No manager or agent runtime starts a socket using this driver today.

The owner alternates transport turns and application delivery steps. Each turn performs at most one nonblocking send and one nonblocking receive with fixed 16 KiB buffers in each direction; partial sends and BIO writes retain unconsumed bytes. Transient EAGAIN/EWOULDBLOCK/EINTR return to the caller; MSG_NOSIGNAL prevents a broken pipe from terminating the process. The TLS handshake is driven by the existing pinned TLS state machine. An absolute monotonic 20-second connection lifetime and 512 KiB ciphertext budget per direction bound each connection; the existing TLS handshake and delivery deadlines still apply. Authorization withdrawal, terminal TLS state, socket error, EOF or budget violation aborts the TLS state and closes the descriptor. No transparent retry or implicit permission recovery is provided. Deadlines are checked on drive turns, not by an independent watchdog. The trusted owner must serialize work, call turns at a bounded cadence, revalidate identity and authorization before application steps and ACK flush, and destroy delivery objects only after ACK ciphertext has been drained and sent or the connection has failed. Transport success is not an authenticated receipt. A completed receiver write is not proof of sender dequeue; abrupt EOF is never treated as an ACK or a clean TLS close.

Qualification

The existing M6.9/LIVE6A ingestion recovery contract retains all prior checks and additionally opens a disposable IPv4 TCP listener bound exclusively to loopback and an ephemeral port. It accepts one peer, closes the listener, and runs the same genuine mutually authenticated TLS and durable sender/receiver pipeline over actual TCP. It checks initial consent, wrong tuple and wrong TLS protocol rejection, sticky withdrawal and EOF, durable admission with a lost ACK, exact retry with unchanged evidence and timestamp, authenticated dequeue, explicit index publication and revoked endpoint refusal. Fixture PKI, queues, registry and evidence are private disposable data. No real LAN telemetry or credentials are needed. The fixed buffer and lifetime controls are source reviewed; exhaustive backpressure, deadline and global saturation qualification remain future work. Existing native and GUI regressions remain required.

Initial target-host qualification and corrective follow-up

On 2026-11-30 UTC, the maintainer's initial LIVE6B.1 qualification at revision 2927cb92d861a16b93357b3f050359bb3ca05dc0 passed all seven build and CTest configurations (682 configured CTests), five repeated Release and five repeated sanitized composed TCP receipt tests, all 96 individual structural verifiers, and official REUSE lint. All six repeated GUI navigation workloads remained within the unchanged 200 ms p95 budget (133.941–146.799 ms).

The overall run nevertheless failed (217 PASS, 1 FAIL, 4 SKIPPED, 0 BLOCKED): the untracked local acceptance runner still expected 95 structural verifiers instead of the required 96. Its exact inventory check correctly refused the mismatch; subsequent privileged qualification was not authorized. The corrected local runner retains the exact count of 96, checks it before administrator authentication or builds, and rechecks it at the original verifier stage. The early mismatch path reports failure and skips remaining qualification; no extra successful gate is counted. The full matrix and expected 225 gates (226 with optional synthetic GUI review) are unchanged. No production code, transport contract, privileges, tests, or performance limits are changed by this documentation-only public follow-up. Full corrected target-host acceptance, manual review and hosted CI were subsequently completed. On 2026-11-30 UTC, the corrected runner passed 225 gates with zero failures, skips or blocks; all nine hosted checks passed on 1a2edaf, and the maintainer reported manual review and merge.

Remaining LIVE6B requirements

LIVE6B is not complete. Subsequent work must implement manager-owned listener and agent dialer lifecycle, explicit local address/interface binding and current on-link policy, credential provisioning, global connection and handshake rate budgets, bounded retry scheduling, serialized storage ownership and pending-index scheduling, and actual isolated-LAN and physical endpoint qualification. The existing manager query path remains read-only. LIVE6C gateway/agentless device admission and LIVE6D background evidence, retention, alerts and long-duration qualification remain outstanding. M10 stays deferred.

Existing TB-04/TB-06/TB-07, M3.4 and M6.1 boundaries remain applicable. No new privileges, dependencies, schema changes or network egress are enabled by default.

Clone this wiki locally