Skip to main content

AgentMission

Struct AgentMission 

Source
pub struct AgentMission { /* private fields */ }
Expand description

Structured unit of Atelier agent work.

Implementations§

Source§

impl AgentMission

Source

pub fn new(id: Symbol, leased_repo: impl Into<String>) -> Self

Builds a mission scoped to one leased repository.

Source

pub fn with_capability(self, capability: GuardCapability) -> Self

Adds a granted guard capability.

Source

pub fn with_goal(self, goal: impl Into<String>) -> Self

Sets the human-readable mission goal.

Source

pub fn with_scope_summary(self, summary: impl Into<String>) -> Self

Sets a concise scope summary while preserving the primary repository.

Source

pub fn with_allowed_repo(self, repo: impl Into<String>) -> Self

Adds an allowed repository to the mission scope.

Source

pub fn with_denied_path(self, path: impl Into<String>) -> Self

Adds a denied path prefix such as .meta-workspace/.

Source

pub fn with_code_free_repo(self, repo: impl Into<String>) -> Self

Adds a repository that must stay Rust-code-free.

Source

pub fn with_lease(self, lease: WorkspaceLease) -> Self

Adds a workspace lease.

Source

pub fn with_validation(self, run: MissionRun) -> Self

Adds a required validation command.

Source

pub fn with_docs_run(self, run: MissionRun) -> Self

Adds a required docs command.

Source

pub fn with_decision_point(self, point: HumanDecisionPoint) -> Self

Adds a human decision point.

Source

pub fn with_recipe_pattern(self, recipe_pattern: Symbol) -> Self

Selects the 30-agent recipe pattern that frames this mission.

Source

pub fn with_evidence_stream(self, evidence_stream: Symbol) -> Self

Sets the deterministic Dev Cassette stream id.

Source

pub fn id(&self) -> &Symbol

Returns the mission id.

Source

pub fn goal(&self) -> &str

Returns the human-readable mission goal.

Source

pub fn scope(&self) -> &MissionScope

Returns the mission scope.

Source

pub fn leased_repo(&self) -> &str

Returns the primary leased repository.

Source

pub fn allowed_repos(&self) -> &[String]

Returns the repository allow-list.

Source

pub fn denied_paths(&self) -> &[String]

Returns the denied path prefixes.

Source

pub fn code_free_repos(&self) -> &[String]

Returns the repositories that must stay Rust-code-free.

Source

pub fn capabilities(&self) -> &[GuardCapability]

Returns the granted guard capabilities.

Source

pub fn leases(&self) -> &[WorkspaceLease]

Returns the workspace leases.

Source

pub fn validations(&self) -> &[MissionRun]

Returns the required validation commands.

Source

pub fn docs_runs(&self) -> &[MissionRun]

Returns the required docs commands.

Source

pub fn decision_points(&self) -> &[HumanDecisionPoint]

Returns the declared human decision points.

Source

pub fn recipe_pattern(&self) -> &Symbol

Returns the recipe pattern that frames this mission.

Source

pub fn roles(&self) -> &[AtelierAgentRole]

Returns the agent roles assigned to this mission.

Source

pub fn evidence_stream(&self) -> &Symbol

Returns the deterministic Dev Cassette evidence stream id.

Source

pub fn descriptor(&self) -> AgentPattern

Builds the SUP.56 agent-pattern descriptor for this mission.

Source

pub fn as_expr(&self) -> Expr

Encodes the mission as ordinary SIM expression data.

Trait Implementations§

Source§

impl Clone for AgentMission

Source§

fn clone(&self) -> AgentMission

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 AgentMission

Source§

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

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

impl Eq for AgentMission

Source§

impl PartialEq for AgentMission

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for AgentMission

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