Map: core / IO & process
The byte plumbing under the evaluator’s pipelines and external commands: where a stage’s bytes come from and go, the signals and process groups that govern a foreground child, and the daemon that fires every scheduled action. Authority over the controlling terminal is carried as a value, not re-derived from process state — the foreground handoff is gated on an authorised permit reaching the session’s terminal lease.
Windows process creation immediately owns both returned handles as
OwnedHandle; failed Job Object assignment or thread resumption releases both.
The child keeps the process handle, and the spawning thread releases the thread handle.
IO — core/src/io/
io/frame.rs owns length-prefixed JSON framing for protocol channels;
marshalled parents have no inner frame (transport).
Process syscall-site declarations live in process/site.rs, beside the launch, wait and jail operations they name.
io/state.rs holds Io, the per-Shell streams (stdin / stdout / stderr),
where stdout is wherever the running computation writes — a capture buffer,
inside a capture. The terminal snapshot is the Runtime’s; interactivity and
SessionState::stage: Option<Membership> are the session’s, stated by each
child’s birth — None at the top level, the orchestrator;
Some for a stage’s own children, carrying the group an external spawned
anywhere inside that stage must join — at the stage’s own root or nested
arbitrarily deep, thread or process alike — and the stage scope whose causes
the group’s owner delivers, so the member’s own teardown opens only with a
cause that scope does not hold.
It decides pgid placement (a top-level standalone external may lead its own
group so a watchdog cancel can kill(-pgid, …) the whole subtree; anything
inside a stage joins that stage’s pgid) and says whether a child’s reader is
the caller or the next stage — never who may foreground. shell/exec/pipeline/launch.rs’s
stage_stdin resolves a stage thread’s stdin against its route — the upstream
edge, or (ByteIn::Parent) a duplicate of the parent’s own shell.io.stdin
— never taking or moving it, since Source::reader only ever hands out a
duplicate (pipeline execution).
source.rs—Source, a stage’s byte input:Terminal(fall through to fd 0),Empty(no input — immediate EOF, child stdin to/dev/null, no fall-through to fd 0), andReader(SourceReader)— a pipe (an upstream stage, a here-string) or a file (a<fileredirect), carrying the scope a blocked read samples between slices (poll.rs’spoll_slice); a cause in force reads as EOF, never as an interrupted-read error a retry loop would spin on.Source::readernever takes a source: it hands every consumer — a builtin, an external’s stdin, a nested stage — a duplicate, the scope left behind when a child inherits it, so a stage’s stdin outlives every command that reads it.Emptyis also what a child in a group of its own that cannot read the terminal gets (TerminalInput), and what an exarch tool run installs (RunStdin::Empty) so a tool command can never steal the TUI’s terminal; it is kept distinct fromTerminalprecisely so denial of byte input and denial of foreground stay separate effects. A thread stage 0 at a terminal keepsTerminal: its externals inherit it, and a reading builtin refuses it withno input(stdin_reader).sink.rs—Sink, byte output and destination identity: stdout, stderr, redirect file, in-memoryByteBuffercapture, tee, a watched worker’s line surface (Watch, each whole line handed to a line function the builtin builds aroundWatchEvent, soioknows no deferred sink), a stage thread’s pipe edge (Sink::Pipe { writer, edge, stage },stagenaming the writing stage’s node for its reader-gone stop; the scope a write polls is handed in,write_under).same_destinationsays whether two sinks deliver to one destination, deciding whether a child’s stderr may share stdout’s descriptor. AByteBufferisArc<CapturedBytes>: the prefix and its total byte count under one mutex, with a retention cap and no marker. Its readers aretake, which drains the prefix into aRetained(prefix and total, whole iff they agree), andpeek, which copies the prefix without draining (poll).new_bufferkeeps 16 MiB; the audit tee retains its caller’s smaller prefix. The write path cannot report the cap — a pump returns()from its own thread — so theRetainedis read once the writers have joined, and each reader decides what a cut means (capture).streams.rs—Streams<T> { stdout, stderr }withmap,as_ref,both,unzipandnamed: every per-stream pair (a run’s capture, a handle’s buffers andCompletedHandle, the audit tee,Captured,fact::Io,AuditIo).child.rs—Connectionborrows shell sources and sinks, or consumes a downstream writer throughto_pipe.Source::child_stdiolends stdin; output binding inherits matching standard streams, lends files and pipes, and allocates a reader/writer pair for every drain.installmoves child endpoints toLaunch;PendingDrainsretains each reader with its sink.startproducesDrainswithout inspecting a child. Shared destinations use one binding andLaunch::dup_stdout_to_stderron Unix and Windows.Drains::join_underwaits explicitly, including when the caller settlesPrepared::start’sStartFailureafter any pipeline rollback and join; dropping drains stays non-blocking and detaches them. See a-drain-owns-its-reader.poll.rs—poll_slice, the one sliced fd wait (Unix): wait for readiness for at mostPOLL_SLICE,EINTRretried against the slice’s own deadline. A blocked pipe write (Sink::write_under) or read (read_interruptible) is a loop of (read the scope; one slice), so another thread ends it by striking a scope, never by waking it. Windows cannot poll an anonymous pipe: the thread waiting on the blocked one aborts its call (interrupt,CancelSynchronousIo), the collector a thread stage’s andDrains::join_undera pump’s, and the aborted read or write (aborted) re-reads its scope and, under a shield, retries; an aborted write is never retried, since its delivered prefix is unknown (a stop under a cause, an error under a shield). Writes go a 4 KiB chunk at a time, so the sentinel’s one read lands one (cancellation).ansi.rs— terminal escape vocabulary only: SGR constants, OSC builders, and escape-sequence scanning. Whether a sequence may be emitted isterminal’s decision.terminal.rs—TerminalState: cached startup isatty / ANSI / NO_COLOR / mode bits.startup_foregroundrecords whether ral’s group owned the controlling terminal’s foreground at entry; it is not a per-handoff oracle but the lease’s mint condition (terminal-foreground-ownership). On Windows it also ownsconsole_mode_snapshot/restore_console_mode, the termios-snapshot analogue a panic hook restores a raw-mode console through.
Redirect reads and writes — < file, > file and friends — open through the
File source/sink here, and the runtime emits a byte-level I/O door at each:
the read fires eagerly when stdin is redirected, and every write at frame settle
with its target before and after — a stream committed whatever its body did,
an atomic > committed, aborted or failed. The event shapes and their card
rendering belong to io-surface.
Process — core/src/process/
-
outcome.rs:SignalandWaitOutcome.WaitOutcome::cancelled_bynames the cause for a death by one of the cause’ssignals_of(grace, key, kill), read off the one readerWaitOutcome::death, andWaitOutcome::failureis thefact::Failureof any other end, whichcommand::endingturns into the run’s stop or failure; no death mints a cause, so a torn-down child reports the cause, an expired time limit, acancel, an interrupt or a shutdown, exactly as a poll point does, while a signal from outside ral still reports its number (cancellation).cancelled_bytakescause: Option< CancelCause>, the strongest cause in force when the child ended, joined bymaxwhere two parties each ended it — a cancellation in force outranks the collector’s reader-gone kill (raised only once the sentinel hears a dead write) by that order rather than by a special case. It is the sole input to forgiveness for an external, which keeps a failure only for a death the collector did not cause; the rule is fixed in pipeline-execution, and the kill precedes the wait, so it cannot rewrite a recorded status (a-stage-ral-stopped-has-no-failure, the-cut-is-at-the-write). -
spawn_lock.rs— platform-specific process-wide spawn locks. Apple’sRwLockcloses the fork/CLOEXECrace: neitherpipe2norSOCK_CLOEXECis atomic there, so aforkracing a pipe’s create-then-fcntlwindow can hand an exec’d child a fd it should never have inherited.cloexec_pipe/cloexec_socketpairtake the shared side;spawn(cmd)is the only fork door, holding the exclusive side aroundCommand::spawnand nothing else — a.output()/.status()caller must spawn through it and wait outside the lock, or a child’s whole lifetime would block every other thread’s fd creation.clippy.toml’sdisallowed-methodsenforces both doors on this target. Windows’lock_inheritancemutex covers rawLaunchcreation and temporary inherit-flag restoration alongside helper-backedCommand::spawn; it ends before Job Object placement/resume and waits. An explicit handle list restricts the raw child only, not another inheriting child; dependency spawns outside ral’s helpers remain outside this lock. Linux has no lock. -
terminal/lease.rs— the session’sTerminalLease, run-localTerminalAccess, and affineTerminalPermit.TerminalAccess::reachrequires a session lease:Deniednever reaches it,Leasedonly with terminal-bound stdout, andExplicitLoanregardless of stdout. Only a permit can capture state.RequestedTerminalAccessis the only terminal-module type public outside core; hosts request access, while session construction mints and stores the lease internally. See shell-state and terminal-lease. -
deadline.rs— one lazily started, process-global daemon (ral-deadline) owning a min-ordered heap of(when, action)entries, firing each at itsInstant. Deadlines are data, not a thread per worker:arm_lifetime/arm_callbackpush an entry and return a#[must_use]Deadlineguard — dropped, the entry disarms;keep-consumed, it fires regardless (the fire-and-forget mode for actions that outlive their arming call). The fired action isCancel(scope) | Run(closure):Cancelcancels aScopeNodewithCancelCause::TimedOut(the foreground wall);Runinvokes an opaque host closure once, the shape a scheduled wakeup rides — exarch arms aRunthat posts a prompt and wakes its idle loop, and an agent worker arms aRunthat cancels its own token at its ceiling. The scheduler stays ignorant of prompts, cron, and sessions; recurrence is not a scheduler concept — a recurring producer re-arms from inside its ownRun, fired outside the heap lock so it cannot deadlock (scheduled-wakeups, concurrency-primitives). -
reaper.rs— the process-wide child watch, the one door onto a wait:ChildHandle::into_watchis how every spawned child reaches it,spawn_detached’s intermediate included,reaper::watchbeing private toprocess.Watch::killissignal(KILL). ASIGCHLDhandler on Unix (reaper/unix.rs), withoutSA_RESTART, whose whole body is a write to a self-pipe, and a thread that per wake asks each watched pid twowaitidquestions — a stop, consumed and answered withSIGCONTon the spot so it never reaches a subscriber and is never re-reported on every wake, and an exit, observed withWNOWAITand left as a zombie untilWatch::reap, since the pid would otherwise be free for reuse while its owner may still signal it. The exit code is masked to a byte, aswaitpidwould report it: Darwin’swaitidreturns all ofexit()’s argument, so macOS bash 3.2’s syntax-error 258 would otherwise surface as 258 instead of 2. Not reaping is the point: holding the zombie is what closes pid reuse structurally, rather than by care. Windows watches the same shape (reaper/windows.rs) viaRegisterWaitForSingleObject, where a stop cannot arise. Every subscriber names its own event type — the pipeline collector’sEvent::Ended, the standalone command’s bareWaitOutcomechannel,spawn_detached’s own — overWaitOutcome, the reaper’s one wire type. -
cancel.rs— the cause-bearing scope tree (Scoperead,ScopeNodewritten,DurableRoot,CancelCause) for structured-concurrency cancellation, polled cooperatively in hot loops (hot-path-cancellation). A scope’s cancellation is a join: one privateresolveover its chain’s flags, naming the outermost node that attains it (ScopeId) and masking at a shielded node (shielded) within the grace from the chain’s first strike.Scope::pollreturnsResult<(), Cancellation>— cause and owner, no runtime error or escape.shell/runtime/flow.rsconverts it to a non-catchableBreak::stopped, preserving both;Shell::pollis that adapter.POLL_SLICEis every sliced wait’s period. A signal handler raises an ambient cause instead —REQUESTED_ROOT, an absoluteAtomicU8, or an interrupt on theINTERRUPTScount — which no scope folds:forward_ambienthands each to a host thread, which forwards it to its engine asControl; itsAmbientForwardguard, on drop, unregisters, drains the queued causes and joins that thread, so no callback outlives it (cancellation). -
fatal.rs—Fatal<T>, a terminal failure latched once: the first cause stands. Latching cancels the boundScopeNodewithCancelledunder the lock that records the cause, so a standing cause implies an ended life. A life bound after the latch is cancelled at once;unbindreleases one unended. The carriers’ severance and exarch’s record writer are each one. -
signal.rs— signals are causes: the platform handlers raise each delivered signal as an ambient cause a host forwards — SIGINT → foreground interrupt, SIGQUIT → rootAborted, SIGTERM/SIGHUP → rootTerminated, a closedRootCauseread from theGESTURESkey table — so one cancel-aware wait loop serves user interrupts, timeouts, and termination alike (signals-are-causes). The poll point isShell::poll, scope-only;clearis the boundary acknowledgment; theESCALATIONcounter backs only the third-delivery_exitladder (escalation_pendingis the probe), whose_exitreads the signal’s cause’s code. A raw-mode frontend’s Esc drives the same non-escalating foreground cancel (esc-non-escalating-interrupt).signals_ofis one function over each platform’sgrace_signal,gesture_signalandKILL. Unix’s one install isinstall(sig, Disposition):Interrupt(a barerequest_interrupt(), with no delivery of its own, since a pipeline’s processes hear a cancellation through the collector),Shutdown(the signal’s cause, ticking the ladder),Abort(the signal’s cause, unescalated: Ctrl-\),Ignore,Default. None setsSA_RESTART, so a blocked call a handler cuts returnsEINTRand ral retries it; the first install snapshots the inherited ignored dispositions.grace_signal(cause)is the one cause→signal table the one teardown reads, and its rows are cancellation’s (one-delivery-path). Platform handlers live insignal/unix.rsandsignal/windows.rs; the Windows side carries the console-control ladder in the Unix shape (tworequest_interrupt()s, thenExitProcess), which signals no process. -
child.rs—ChildHandle, the spawned child, andinto_watch, the one door from it to the reaper, where a Linux child’sTestimonyamends the reaped outcome before any subscriber sees it (the-ending-is-amended-where-it-is-reaped). Every Unix child wait goes through the reaper’swaitid, the one funnel (total-wait-status, superseded on the pid side). -
group.rs—Pgid,Placementand the process-privateStep; Unixspawn_with_pgid(group/unix.rs) applies the step and returns only the child, while Windows prepares and registers its Job without buildingGroup.launch/landing.rsderives the direct landing once, from the request. The two facts of who signals a group areMembership(a joined pipeline group and its stage scope) andGroup(Owns(Pgid), signalled and killed whole;Enveloped(Pgid)(Linux only), a confining envelope’s payload’s, killed whole apart from every group ral addresses;Joins(Membership); orShares, ral’s own, whose children go by pid; who may signal is fixed in a-process-group-is-its-owners-to-signal). A pgid is signalled directly bykill(-pgid, …), never waited on. On Windows (group/windows.rs) a group is a Job Object andbreak_pipeline_groupis the grace an owned group’s teardown sends — the collector’sAddress::signalfor a group — before escalating tokill_pipeline_group; a pid gets the kill alone. -
terminal.rs— private implementation modules with deliberate re-exports throughprocess. Lease, permit,PreparedTerminalLoanandTerminalHoldare crate-visible opaque resources, neitherClonenorCopy. Callers cannot extract saved state or key attribution from a hold.terminal/job_control.rs—GroupOwner,Placement::commandandPlacement::input: one owner decision and one requested-input table.Source::offeredis the io-facing interpretation, replacing only a withheldSource::TerminalwithEmpty, never a pipe or file.terminal/loan.rs— infalliblePreparedTerminalLoan::capturebefore spawn;lend(&Leader)after birth returns an opaque hold, or the intact preparation with its OS error. Only a certified fresh group leader in ral’s session can receive a loan. Linuxguardis process-scoped: an envelope retains restoration responsibility without a handoff.TerminalHoldexposes only emptyDefault,hear,pressedand consumingreclaim; its representation andTerminalLoanare private.terminal/loan/unix.rs— private saved foreground and termios, captured independently. Handoff sets the foreground, then resumes the whole group: pre-handoff terminal access can stop descendants the reaper does not watch. Drop restores the foreground as found, then modes withDrain, under SIGTTOU blocking. A non-controlling tty can still save modes. Restoration failures are traced, not returned.terminal/loan/windows.rs— infallible capture of any available standard console modes, retaining duplicated handles. Drop restores those same console objects; handoff succeeds without transferring console ownership.terminal/keys.rs— terminal-internalKeyAttribution, owned only by a lent hold, strikes reported gestures on the run’s node. An envelope guard restores without attributing keys; Windowsgesturereports none because ral already hears console Ctrl-C directly.
-
limits.rs— what a child spawned under an active grant may consume: no core dump, and a process budget (macOS’s fork brake,limits/fork_brake.rs; a Windows Job Object cap; Linux sets the core limit alone). Resource-limit installation is checked; the macOS cap respects the inherited hard limit, andlimits::failure_hintoffers a conditional process-limit explanation for status 128 when no kernel denial was attributed.Launch::limit_resourcesarms the pre-exec half, whichChildSetup::installapplies after the session’s limits; on Windows the Job Object cap is set at the launch boundary (launched,set_active_process_limit), on the child’s group’s job or a job made for it alone. A budget that cannot be armed is anErr, never a warning: on macOS the launch is refused at build as sandbox-unavailable (two-enforcers). -
report.rs: a confined launch’s report socket: theRecords the trampoline writes (Witness), and the parent’sTestimony, which reads the first word under the start’s scope and amends a Linux child’s ending (a-launchs-report-is-the-trampolines-alone, a-first-word-is-waited-for-under-the-scope). -
launch.rs— the owned launch value and its platform interpreters, and the two births, returningUnstartedwhen no kept child is handed to the caller (ral-s-failure-is-never-the-programs):spawn, which hands back aSpawned<Group>(the child, itsGroup(a-child-lands-once), its opaqueTerminalHoldand any jail cgroup), and thecfg(unix)spawn_detached, a double-fork whose grandchild is reparented to init — its pid comes back but nothing else does, so there is no handle, no wait, and noJailCgroupcomes back — shared membership never owns one (below). Unix lowers tostd::process::Command: itsChildSetup(stderr merge, payload capture, limits, guest-jail entry) becomes onepre_exechook, in one order, ahead of the pgid/fd discipline, and the command is dropped right after the fork, releasing child-only descriptors before the trampoline is heard; Windows owns the rawCreateProcessWboundary, including command-line/env rendering, explicit helper-handle allow lists, theSECURITY_CAPABILITIESattribute a confined spawn attaches (its projection’s AppContainer SID and the per-path fs and network capability SIDs — capabilities), the shared inheritance mutex above, suspended create → Job Object assignment → resume, and the widenedChildHandleraw process wrapper (windows-spawn-boundary).bornis the one kept-birth body for every platform, over a per-platformcreate: it names an envelope’s payload group, hears the launcher, and lands, retaining the applied step, child, request and jail throughout. The child is held in anUnlandeduntil it lands: dropped otherwise, it kills the payload’s group and the child’s fresh group while the unreaped child pins the one it leads, then kills/reaps the child.bornthen drops the request to restore captured state and releases the jail.born_direct(launch/landing.rs) is the birth with no payload to name. A Unix launch holds at most oneLauncher(name, report, and on Linux the diagnostics file);Launcher::heardreads its first word for kept and detached births alike.forkreleases child-only descriptors and mapsSpawnError, reading an exec failure as the launcher’s where there is one, never a payload report’s errno. The shell joins already-started drains before reporting a failure.launch/landing.rs—Placement::landbuilds every directGrouponce.spawn_leaderreturnsSpawned<Leader>with an empty terminal hold;Leadercertifies fresh-group birth in ral’s session, not liveness. Its constructor is private to these two completions.launch/envelope.rs(Linux only) —EnvelopedLaunchowns its innerLaunch, whoseLauncherit fixes with the mandatoryReportand diagnostics file, and the naming of its payload’s group. Its spawn callsbornwithStep::NewLeaderand lands onGroup::Envelopedwith a restoration-only tenant hold. Direct Unix trampoline launches fix theirLauncherinLaunch::trampolined; configuration cannot add one. The whole stop-work flow — theReaderGone < Interrupted < Cancelled < TimedOut < Terminated < Abortedorder — is narrated in cancellation.
-
jail.rs— the guest spawn jail’s decision layer. Every command runs as the one unprivileged uid/gidguest_abi::layout::GUEST_ID, so tools and their caches underHOME(/tmp/home) agree on ownership;ral-guestsets Yama’sptrace_scopeto 3, so none attaches to another or opens its memory, though any may signal another or read itsenviron(guest jail).GuestJail::planmints each exec a boundedSeqfor a distinct cgroup leaf (engine-<pid>/exec-<seq>) underJailLimits(memory / pids / CPU), with no syscall in the plan. There is oneGuestJailper guest process, installed once by the Linux x86-64/aarch64--guest-engine <cgroup-root>role, named byguest_abi::layout::ENGINE_FLAG(jail::install_guest, requiring one absolute root and euid 0; the root isguest_abi::layout::EXEC_CGROUP, which the daemon makes and delegates into at boot; both uselayout::EXEC_CONTROLLERS. The jail makesengine-<pid>/exec-<seq>below it, or the shareddetachedleaf for every survivor, and the daemon removes a dead engine’s tree) and read byjail::guest(); a wire-seat child engine (agents) is its own process and installs its own, so the sequence number behind each cgroup name is minted guest-globally, not per-engine:linux::next_guest_seqlocks a counter file (/run/ral/jail.seq,O_CREAT, read-increment-write under an exclusiveflock, released when the file drops) so every booted engine’s jail mints off the one number line and two engines’ commands cannot collide on a cgroup name.Countstores the issued count: empty at birth, then ten zero-padded ASCII digits; corruption or exhaustion refuses the launch without writing. A fixed-width positional rewrite torn mid-write leaves the old, unissued count or at least the new count; a partial birth is corrupt, so neither reuses an issued sequence. The cgroup path carries the engine’s own pid as a grouping label, not a uniqueness guarantee (the sequence file already gives that):ral-exec/engine-<pid>/ exec-<seq>, so a child engine’s teardown stays scoped to its own engine’s tree (the daemon kills a dead engine’s commands throughengine-<pid>/cgroup.kill, since they leave its process group) and pid recycling can at worst hand a later engine a dead engine’s stale directory name, which its own teardown tolerates.plantakes the launch’sauthority::sandbox::Ownership: aSurrendered(detached) exec goes to the oneral-exec/detachedleaf instead, out of every engine’s tree. Every jailed exec and the shared survivor pool receiveJailLimits::default()(6 GiB memory, 1024 pids, 400% CPU). An engine’s end spares its survivors as it does on the host; the daemon’s halt reaches them. Off a real Linux guest, whereGuestJailis never actually installed,planfalls back to a bounded in-process counter so the module’s own tests stay portable;linux.rsremains the only place a decision reaches the kernel.jail/linux.rsis the thin platform edge that realises aJailPlan: the cgroup tree and limit writes; pre-exec cgroup placement, the offline network namespace with loopback up, supplementary-group clear /setresgid/setresuid/NO_NEW_PRIVS, descriptor marking above stderr withclose_range(CLOSE_RANGE_CLOEXEC), then the envelope’s seccomp deny-set; kill-whole viacgroup.kill, andEBUSY-polled removal.Launch::apply_guest_jailresolves the programs and openscgroup.procsbefore the fork (Entry::prepare);Entry::enter_checked, the last step of the launch’s one pre-exec hook, neither allocates nor locks, and any failure refuses launch. The offline-network test probes user then network namespace creation before checking isolation; it skips when unprivileged user namespaces are refused or granted without capabilities, as AppArmor can enforce. Descriptor marking needs Linux 5.11 and keeps std’s error pipe and detach’s handshake writable until exec; the later pgid and detach hooks run under the deny-set. The tree is built by descent, and the reason is a cgroup2 rule: a controller’s files appear in a child only once the parent’scgroup.subtree_controlenables it, somemory.maxat the leaf needs an unbroken chain of enabling parents up to the cgroup2 mount itself.make_delegatedtherefore climbs to the first ancestor that already exists — the mount root at the latest, which is exempt from the no-internal-process rule and so may delegate while the daemon and engine still live in it — and enables on the way back down, one level ahead of each mkdir. A parent that will not delegate is refused outright rather than tolerated: a jail whose limits cannot be written must not run the command uncapped instead.JailPlancarriesOwnership: after delegation and before fallible setup,prepare_cgroupconstructsSome(JailCgroup)only for a kept command. Dropping it kills whatever is left (cgroup.kill) and removes its leaf, so a setup, wiring or spawn failure, pipeline rollback or settled child finishes it once.Launchand an external stage carry that option uniformly (Noneoff a real guest). Shared detached membership never constructs a teardown guard: failed preparation, failed spawn and abandoned launch cannot kill existing survivors or remove their leaf. The shared limits are rewritten idempotently without delegating controllers belowdetached; there are no per-survivor cgroups to reclaim. The jail itself is process-global (aOnceLockinjail.rs), so workers, pipeline stages, and forks share one counter; only a guest engine (--guest-engine) installs it, and there it replaces the per-command fs/exec projection for the admitted utility and its descendants, while preserving offline network isolation and seccomp (guest jail boundary, runtime,docs/SPEC.md§12.11).The jail refuses
socket(AF_VSOCK)withEPERM; the daemon’s factory (synod) admits only the kernel-writtenVMADDR_CID_HOSTpeer identity as the second line behind it.
Spawning an external command is capability-checked; that in-process guard lives in capabilities, and the command/pipeline dispatch that drives this plumbing in runtime.