Skip to content

Live Manager Ingress Live6D4 2

Chris Sutton edited this page Dec 2, 2026 · 2 revisions

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

LIVE6D.4.2 — Independently authorized manager ingress

Scoped candidate for actual foreground manager-side TCP/TLS reception, using LIVE6A durable receipt, LIVE6B.1 connected transport and LIVE6D.4.1 pending indexing. It does not activate the outbound agent executable. The independently approved ingress profile is not an M3.4 agent egress grant. Ordinary desktop and installed lifecycle-only manager startup remain unchanged.

Startup authority

An operator must supply --ingress-profile ABS_DIR together with the existing --index-pending yes, --event-store-dir, --enrollment-dir, --ipc-dir and --audit-dir options. All five directories must already exist and resolve to distinct filesystem objects. The existing store must be schema v4, the audit directory fresh, and the registry must already contain the approved endpoint. No alert scope may be configured concurrently. Non-root execution only.

The profile is an explicitly approved ordinary-user-owned directory (0700) containing ingress.conf, manager.key (existing identity PKCS#8 DER format), manager.der (manager certificate DER), and root.der (explicit trusted root certificate DER). All four files must be regular, owned by the manager user, 0600, single-link files; no symlink or special file is accepted. The existing identity loader supplies the key; the existing TLS engine validates the local credential and pinned enrolled peer. No certificate generation, root-store fallback, discovery, DNS or enrollment mutation is performed by the manager.

The bounded ASCII profile contains exactly eight whitespace-separated fields:

KSI1 INTERFACE LOCAL_IPV4 NETMASK PORT PEER_IPV4 ENDPOINT_ID UNIT

ENDPOINT_ID is the existing 32-character lowercase hexadecimal enrollment ID; UNIT is the exact metadata journal unit. The listener accepts one configured numeric peer on the same private IPv4 subnet, excluding self, network and broadcast addresses. It requires an exact currently present interface and address, a contiguous private prefix, and port 1024–65535. It binds the exact interface with SO_BINDTODEVICE, verifies kernel readback and binds the local numeric address. No wildcard, reuse, privilege elevation or fallback. This manager-side inbound policy permits a current private veth attachment in the isolated qualification environment; it does not relax the existing stricter outbound agent topology policy.

Serialized ingress and evidence

The foreground manager owns one listener, requests backlog 1, requests 16 KiB send/receive socket buffers and permits one accept attempt per second when no connection is active. One application session is active at a time; the accepted socket must have the exact approved source address and inherited interface binding. The connected driver checks both socket tuples independently, with existing 20-second lifetime, fixed buffers and 512 KiB ciphertext budget per direction. DeliveryReceiver applies current enrollment and the existing 5-second application delivery window. The approved endpoint pin is captured at startup; rotation or revocation stops the owner, not an automatic trust update.

The owner rechecks profile bytes, credential files, key metadata, directory identity, registry pin and current binding before acceptance and each transport turn and again before application admission. A removed/changed policy or failed current check closes the listener and ends the manager. A failed individual peer connection closes that session; it does not authorize another peer. A completed receiver remains owned until transport termination, so its authenticated ACK can be drained under current authority. The existing serialized SQLite owner is shared with index publication and local queries. No new database or thread.

Persistent ingress_authorized precedes listener creation. Each validated receipt attempt requires ingress_receipt_authorized before durable storage, and ingress_receipt_committed after durable acceptance (including exact retry) before the successful ACK may be written to TLS. These fixed audit events contain no peer address, credential, source unit or raw row. The audit and SQLite commits are separate durability boundaries; a record can survive a failed completion audit or lost ACK. Retry remains idempotent under existing evidence rules. Audit failure terminates the owner; an individual rejected receipt closes its connection. No receipt success is inferred from transport connectivity.

Qualification and limitations

TB-04/TB-05/TB-06/TB-07 and existing LAN scope, TLS, enrollment, admission and persistent audit controls apply. No public Internet monitoring, new privilege, automatic firewall change, agent deployment or new IPC operation is introduced. The manager polls at 20 ms while ingress is configured, prioritizes signal readiness and retains one-second serialized index turns. Filesystem, kernel and audit operations are synchronous and may delay IPC, withdrawal and shutdown. Checks are sampled, not atomic; a previously authorized durable transaction may complete during withdrawal, without a subsequent successful ACK. The backlog and requested buffers are kernel hints rather than hard global memory limits. One source address is not cryptographic identity or spoof protection; TLS pinning and current enrollment are mandatory. Kernel queue saturation, long-duration throughput and independent freshness supervision remain open. The pre-existing one-second indexing authority remains separate from ingress; a scheduled index turn may finish before the next ingress withdrawal check. No automatic rotation, retention deletion or external integrity anchor is added.

The existing M6.8 runtime test includes incomplete ingress startup refusal. The explicit administrator fixture creates two disposable network namespaces with no default routes; the manager and the native TLS fixture sender run as the ordinary sudo caller. It creates disposable private PKI and an empty store, rejects a connection from another numeric source, sends one authenticated metadata record, requires sender ACK/dequeue, queries the new index through manager IPC, and withdraws the profile. It does not use the real agent executable or production topology policy. Require 103 structural verifiers, 682 existing configured CTests and 236 full acceptance gates (237 with optional visual review). The actual namespace fixture is a mandatory target-host gate and is not claimed executed in the implementation environment. Use --full --refresh-installed-manager; installed service arguments are unchanged. No real LAN ports or router forwarding should be configured for this candidate.

Remaining: agent executable delivery and credential provisioning, physical-LAN qualification, multi-endpoint scheduling, durable gateway evidence, continuous manager detection, freshness, production retention and long-duration testing. M10 remains deferred.

Maintainer acceptance: 236 local gates, 103 verifiers, 682 configured CTests, positive isolated manager ingress, nine hosted checks on f025eed and reported manual review/merge. See LIVE6D.4.3 for the explicit foreground agent candidate.

UX18-H extension (candidate)

KSI1/KSI2 remain single-peer compatible. KSI3 explicitly lists two to four independent peer addresses, endpoint IDs, modes and units; each has a distinct enrolled pin and bounded TLS/receipt state. See UX18-H. The original authorization and ordinary-user constraints remain applicable; no automatic discovery or additional monitoring scope is granted.

Clone this wiki locally