Skip to main content

Launch

Enum Launch 

Source
pub enum Launch {
    Dispatch {
        task_id: i64,
        title: String,
    },
    Refine {
        task_id: i64,
    },
    Plan {
        project: String,
    },
    Propose {
        project: String,
    },
}
Expand description

What a launch is (DESIGN.md §8): the one place a backgrounded or foreground agent session’s identity is composed. A launch names its session, its prompt and log files, and its line in the launch log from this single value, so a new flavour of launch cannot inherit one of those and forget another — which is exactly how a refine came to be named voro-{task_id}, literally, on every task at once.

The invariant it carries: every session Voro launches has a Voro-composed name starting voro-<id> — a dispatch continues into a slug of the task’s title, anything else pointed at that task into its kind — so nothing Voro starts shows up anonymous or duplicately named in the agent’s own session listing. A launch that belongs to no task is named for its project — by name, not id, since a bare number there would read as a task id.

Variants§

§

Dispatch

A task dispatched to a headless session (DESIGN.md §8), carrying the task’s title so the session name can say what it is working on.

Fields

§task_id: i64
§title: String
§

Refine

A proposed task’s body rewritten by an agent (DESIGN.md §6), at either intensity — the headless note-driven one and the interactive one are the same operation, and only one of them is ever backgrounded.

Fields

§task_id: i64
§

Plan

An interactive planning session drafting a new task for a project, carrying the project’s name. Project names are unique (schema §5), so two projects cannot claim one session name.

Fields

§project: String
§

Propose

A headless agent expanding the operator’s one-line intent into a task it files itself (DESIGN.md §6/§8). Like a planning session it belongs to no task — it is drafting one — so it names its project, by name, and the two task-less launches share that one convention: a bare number in a Voro-composed session name is always a task id.

Fields

§project: String

Implementations§

Source§

impl Launch

Source

pub fn session_name(&self) -> String

The name the agent’s session carries, filling SESSION_NAME_PLACEHOLDER. voro-<id>-<slug> for a dispatch is the published contract (docs/agent-integration.md) and what attach and the /resume picker are read by, so anything else pointed at the same task suffixes a kind rather than colliding with it. The slug says what the task is, which is all the operator gets in the agents view and on the phone; a title that survives sanitization to nothing leaves the bare voro-<id>.

Source

pub fn slug(&self) -> String

The stem of this launch’s prompt and log files, and the label its launch-log lines carry.

Source

pub fn task_id(&self) -> Option<i64>

The task this launch is pointed at, if any — None for the two launches that draft a task rather than naming one, and why TASK_ID_PLACEHOLDER is refused on the plan verb.

Trait Implementations§

Source§

impl Clone for Launch

Source§

fn clone(&self) -> Launch

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 Launch

Source§

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

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

impl Eq for Launch

Source§

impl PartialEq for Launch

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Launch

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.