Skip to main content

SpawnOverrides

Struct SpawnOverrides 

Source
pub struct SpawnOverrides {
    pub provider: SpawnOverride<AgentId>,
    pub mode: SpawnOverride<SessionMode>,
    pub terminal_size: SpawnOverride<TerminalSize>,
    pub prompt: SpawnOverride<SpawnPrompt>,
    pub bundle_id: SpawnOverride<SpawnBundleId>,
    pub context_id: SpawnOverride<SpawnContextId>,
    pub environment_profile_id: SpawnOverride<SpawnEnvironmentProfileId>,
    pub approval_level: Option<ApprovalLevel>,
    pub network_allowlist: Option<SpawnNetworkAllowlistId>,
    pub browser_profile_id: Option<SpawnBrowserProfileId>,
}
Expand description

Spawn-time overrides for an accepted SpawnSpec.

Station-profile axes (design ledger): environment_profile_id covers providerHome bindings; workspace target covers cwd; approval_level is the partial sandbox axis; optional network_allowlist + browser_profile_id are the network / dig2browser browserProfile axes (ids only). See hatchery-websession-docs plan station-network-and-browser-profile-knobs-2026-10-02.md and research station-profile-and-os-sandbox-matrix-2026-10-02.md. Secrets stay on the node; C2 carries ids/receipts only (C2 → node → drivers). Resolve echoes registered network allowlist ids onto env-profile receipts (empty- default catalog refuse); dig2browser station IPC bind / reachability refuse waits on a cheap g4a-local probe (stubbed on node).

Fields§

§provider: SpawnOverride<AgentId>§mode: SpawnOverride<SessionMode>§terminal_size: SpawnOverride<TerminalSize>§prompt: SpawnOverride<SpawnPrompt>§bundle_id: SpawnOverride<SpawnBundleId>§context_id: SpawnOverride<SpawnContextId>§environment_profile_id: SpawnOverride<SpawnEnvironmentProfileId>§approval_level: Option<ApprovalLevel>

A plain Option, not a SpawnOverride<ApprovalLevel> like every field above it: those all have a corresponding field on SpawnProfileDefaults to inherit from, so Inherit names a real third state distinct from “cleared” or “set”. A spawn profile declares no approval level of its own, so there is nothing to inherit – None already means exactly what Inherit would, “use the axis default” (ApprovalLevel::FullAuto), so this stays a two-state Option rather than adding a SpawnOverride variant that can never resolve against a profile field that does not exist.

§network_allowlist: Option<SpawnNetworkAllowlistId>

Optional station network allowlist policy id (node-local catalog). Opaque id only — never credentials. Plan: station-network-and-browser-profile-knobs-2026-10-02.md §2.1 / §4. Resolve echoes this onto ResolvedEnvironmentProfileReceipt when the id is registered in the node-local catalog (empty by default). Empty / whitespace ids refuse at type construction; unknown ids refuse with UnknownNetworkAllowlist. Dig2browser bind is separate (browser_profile_id).

§browser_profile_id: Option<SpawnBrowserProfileId>

Optional dig2browser station browserProfile id (profiles_root). Id only — never cookie/OAuth/proxy material on C2. Plan: station-network-and-browser-profile-knobs-2026-10-02.md §2.2 / §4. Resolve echoes this onto ResolvedEnvironmentProfileReceipt. Station IPC reachability refuse waits on a cheap g4a-local probe (stubbed).

Trait Implementations§

Source§

impl Clone for SpawnOverrides

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SpawnOverrides

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SpawnOverrides

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SpawnOverrides

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for SpawnOverrides

Source§

impl PartialEq for SpawnOverrides

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SpawnOverrides

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SpawnOverrides

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.