Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/attach/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//! (not the `Event` NDJSON control plane) because full-screen repaints are
//! high-volume and base64-in-JSON would hurt — the same data/control split
//! orca uses. See `docs/attach-transport.md` for the frame table.
// Context: doc://pillbox/attach-frame-protocol@0001#attach-frame-protocol

use std::io::{self, Read, Write};

Expand Down
1 change: 1 addition & 0 deletions src/commands/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
//! precisely for this. The loop sits behind [`WorkerDriver`] so the selection /
//! retry **policy** is unit-tested over a mock, while the live [`CliDriver`] is
//! exercised by the GHOST-004 smoke.
// Context: doc://pillbox/adr-008-ghost-extraction-trigger@0001#ghost-extraction-trigger

use std::path::PathBuf;
use std::process::Command;
Expand Down
2 changes: 2 additions & 0 deletions src/commands/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
//!
//! Lives in `commands/` (not the registry-storage `session.rs`) so
//! the CLI surface stays decoupled from the on-disk record format.
// Context: doc://pillbox/dx-zero-config-local@0001#dx-zero-config-local
// Context: doc://pillbox/optimization-external-substrate-primitives@0001#optimization-external-substrate-primitives

use anyhow::Result;

Expand Down
1 change: 1 addition & 0 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//! `pillbox sandbox` runtime (`commands::sandbox`) is the per-emitter producer
//! today; the per-session [`crate::events::log::SessionLog`] is the durable
//! spine new producers target (see docs/session-event-log.md).
// Context: doc://pillbox/agent-io-pty-free-contract@0001#agent-io-pty-free-contract

// Contract surface lands ahead of its first producer (contract-first).
#![allow(dead_code)]
Expand Down
1 change: 1 addition & 0 deletions src/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
//! Lifetime: serves until Ctrl-C. An ephemeral exit-when-the-session-ends
//! (watching the log for a terminal event) is a follow-up, as is auth — today
//! it binds localhost only.
// Context: doc://pillbox/gateway-no-daemon@0001#gateway-no-daemon

use std::net::{TcpListener, TcpStream};
use std::sync::atomic::AtomicBool;
Expand Down
1 change: 1 addition & 0 deletions src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
//! - **Sessions' no-inheritance** is encoded by not implementing
//! [`InheritedRegistry`], so the project→global `read_inherited`
//! walk never applies to them.
// Context: doc://pillbox/adr-007-runner-image-tags-name-roles@0001#runner-image-tags-name-roles

use std::{
fs,
Expand Down
1 change: 1 addition & 0 deletions src/sandbox/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//! state come from the right scope. Auth currently always resolves to
//! global; vault state lives per-pillbox so a project's leases never
//! collide with another's.
// Context: doc://pillbox/adr-002-docker-backend-deleted@0001#docker-backend-deleted

use std::time::SystemTime;

Expand Down
1 change: 1 addition & 0 deletions src/sandbox/libkrun/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
//! ```
//! Re-codesign after every build (cargo invalidates the signature). Select at
//! runtime with `PILLBOX_BACKEND=libkrun`.
// Context: doc://pillbox/adr-001-libkrun-is-the-backend@0001#libkrun-is-the-backend

use std::ffi::CString;
use std::os::raw::{c_char, c_int};
Expand Down
1 change: 1 addition & 0 deletions src/sandbox/libkrun/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//! `--detach`, and the opencode server path), reattach/kill, and the §0/opencode
//! accessors `commands::session` calls. The VMM child entry, the spec types, and
//! the CoW/stub/rootfs helpers stay in [`super`] (shared with `vmm_child_main`).
// Context: doc://pillbox/libkrun-env-fork-substrate@0001#libkrun-env-fork-substrate

use std::os::unix::net::{UnixListener, UnixStream};
use std::path::{Path, PathBuf};
Expand Down
2 changes: 2 additions & 0 deletions src/sandbox/managed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
//! - **Token provisioning / trust.** Where a real user's token/secret comes
//! from (vs the spike's `/tmp` file) is unresolved; the env config above is
//! the interim surface.
// Context: doc://pillbox/managed-store-of-record@0001#managed-store-of-record
// Context: doc://pillbox/managed-tier-do-gateway@0001#managed-tier-do-gateway

use std::path::PathBuf;

Expand Down
1 change: 1 addition & 0 deletions src/sandbox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//! `libkrun`; the default on that build).
//! - [`docker::DockerBackend`] — host Docker daemon (the no-KVM compat
//! backend; opt in via `PILLBOX_BACKEND=docker`).
// Context: doc://pillbox/adr-003-qemu-parked@0001#qemu-parked

pub(crate) mod appserver;
pub(crate) mod appserver_client;
Expand Down
1 change: 1 addition & 0 deletions src/sandboxes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
//! `<pillbox>/sandboxes/<id>.toml`, single-scope (no inheritance — a sandbox
//! is concrete runtime state tied to the pillbox that spawned it), via the
//! shared [`crate::registry::Registry`] plumbing.
// Context: doc://pillbox/remote-backend-plane-removed@0001#remote-backend-plane-removed

use anyhow::Result;
use serde::{Deserialize, Serialize};
Expand Down
1 change: 1 addition & 0 deletions src/vault/egress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
//! leaving for the wrong host is never swapped (it ships as a worthless stub) —
//! and under default-deny that wrong-host request is blocked outright. The
//! credential is released only on the host it's bound to.
// Context: doc://pillbox/vault-egress-default-deny@0001#vault-egress-default-deny

use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};

Expand Down
Loading