Skip to content

Live Endpoint Owner Live6B2

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

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

LIVE6B.2 — Outbound connection ownership (accepted scoped increment)

LIVE6B.1 is accepted. This accepted scoped increment adds an actual native outbound socket owner, not deployed endpoint transport. The M3.4 authorization policy covers agent egress only; it is not an inbound manager authorization or a listener permit. The existing production topology policy denies loopback and known virtual attachments, including veth. Neither restriction is relaxed for testing.

Native ownership

AuthorizedAgentTransport is a single-use, single-owner native object. The trusted caller supplies a current administrative NetworkAuthorization, an existing bound journal queue, endpoint ID, approved manager fingerprint, private IPv4 source binding, numeric destination and policy generation. The owner copies the binding and derives the policy identity labels from the existing canonical delivery binding (32 lowercase hex characters for endpoint ID and 64 for manager fingerprint). The policy must use those labels. The caller retains ownership of the gate and queue, serializes all operations and supplies the currently approved manager pin on each turn. No policy activation or credential provisioning is performed by this object.

Before creating a socket the owner checks role, telemetry protocol, pin, queue binding and pending row, current gate generation and locally acquired on-link route evidence, and exact current private IPv4 interface/address/mask. The remote address must be a different usable host in the approved private subnet; only ports 1024 through 65535 are accepted. The owner creates one nonblocking, close-on-exec TCP socket, sets and reads back SO_BINDTODEVICE, binds the source address, revalidates authorization and connects. If interface binding is refused there is no fallback or privilege elevation. Pending connection completion is checked by a zero-timeout poll and SO_ERROR, with local tuple verification. The connected descriptor is transferred to the existing TcpCiphertext driver, which independently verifies both tuples. The owned TLS session must authenticate before the DeliverySender is created. Current authorization and pin are checked before the drive turn and again before application delivery. Authenticated ACK validation and durable dequeue remain the existing sender's responsibility. The outer 20-second elapsed deadline includes connection establishment; existing TLS, ciphertext and delivery bounds remain applicable. Stop/failure closes the socket and releases all owned objects; a terminated owner cannot restart.

Qualification and limitations

The existing ingestion-recovery test adds unconfigured, stale generation, missing pin, incorrect role/protocol, outside-prefix, unapproved port, unsupported loopback attachment and withdrawn-policy rejection. It checks sticky refusal and queue count invariance. The existing genuine loopback TCP/TLS integration remains separate and uses fixture authority only. Positive physical-interface dialing, connection completion, backpressure, deadline expiry and mid-session withdrawal through this new owner are not qualified by these negative tests. Current kernel topology queries are synchronous and may delay the caller. No independent watchdog, retry scheduler, aggregate connection budget or runtime service is added. The trusted caller must not create competing owners for the same queue.

The next completion work within LIVE6B.2 must establish independent inbound manager authorization, exact listener/interface and peer binding, global connection and handshake scheduling, operational credential provisioning and current enrollment checks, actual agent and manager executable ownership, serialized durable admission and pending-index scheduling. Qualification must exercise approved and refused ingress and egress and actual delivery on an approved physical LAN without weakening the existing virtual-link denial. The isolated fixture may establish negative production-policy behavior and exercise separate test-authorized transport; it is not production authorization evidence. No network listener, executable activation, firewall change, remote discovery, new dependency or privilege is introduced here. LIVE6B.2 is not complete; LIVE6D and M10 remain deferred. TB-04/TB-06/TB-07 and M3.4/M6.1 remain applicable.

Maintainer qualification (2026-11-30 UTC, hosted checks on 059116b): 226 local gates, 682 configured CTests, 97 structural verifiers, nine hosted checks and reported manual verification and merge. Outbound ownership is accepted as a scoped foundation only. Manager ingress, executable integration and positive physical-LAN operation remain outstanding; see LIVE6C for the separate unauthenticated device ingress work.

Clone this wiki locally