Skip to main content

Formation

Struct Formation 

Source
pub struct Formation {
    pub label: String,
    pub budget: Budget,
    /* private fields */
}
Expand description

A team of agents assembled by Organism to run in a Converge Engine.

Formations are hypotheses: “this team, with these seeds, will converge on a good answer.” Organism may run multiple formations concurrently and pick the winner.

Fields§

§label: String

Human-readable label for logging and learning.

§budget: Budget

Execution budget for this formation’s run.

Implementations§

Source§

impl Formation

Source

pub fn new(label: impl Into<String>) -> Self

Create an empty formation with a human-readable label.

Source

pub fn agent(self, suggestor: impl Suggestor + 'static) -> Self

Add a heterogeneous agent to the team.

Source

pub fn agent_boxed(self, suggestor: Box<dyn Suggestor>) -> Self

Add a boxed agent to the team.

Source

pub fn seed( self, key: ContextKey, id: impl Into<ProposalId>, content: impl Into<String>, provenance: impl Into<Provenance>, ) -> Self

Stage an initial input with explicit provenance.

Source

pub fn with_budget(self, budget: Budget) -> Self

Set the execution budget.

Source

pub async fn run(self) -> Result<FormationResult, FormationError>

Run this formation in a fresh Converge Engine.

This is the honest execution boundary: Organism assembles the team, Converge runs it. Agents propose, the engine promotes, and the returned result is governed by Converge.

Source

pub async fn run_with_event_observer( self, observer: Arc<dyn ExperienceEventObserver>, ) -> Result<FormationResult, FormationError>

Run this formation with a run-scoped experience observer.

Organism should use this with FormationExperienceObserver when it needs tenant/correlation metadata on Converge experience envelopes.

Source§

impl Formation

Builder helpers for standard organism agent teams.

Source

pub fn with_simulation_swarm(self) -> Self

Add the standard simulation swarm (all 5 dimensions) with default configs.

Source

pub fn with_adversarial_team(self) -> Self

Add the standard adversarial team with default configs.

Source

pub fn with_learning_priors(self) -> Self

Add the planning prior agent for learning feedback.

Source

pub fn with_stress_test_pipeline(self) -> Self

Full Stage 2 pipeline: priors → adversarial → simulation.

Source

pub fn with_consensus_evaluator( self, rule: ConsensusRule, total_voters: usize, ) -> Self

Add the platform consensus evaluator: tallies Vote facts under ContextKey::Votes against rule and emits ConsensusOutcome facts under ContextKey::ConsensusOutcomes.

Use this for any team that needs collective sign-off — research huddles, vendor-selection panels, multi-agent reviews. Vote facts are authored by domain pack agents; this evaluator stays domain-agnostic.

Source

pub fn with_round_starter(self, max_rounds: u8) -> Self

Add the platform round starter: emits round:start:N signals to drive round-by-round deliberation. Round 1 fires immediately; later rounds fire when a round:continue:N marker has landed under the configured continue key. Stops at max_rounds.

Source

pub fn with_round_synthesizer<P>( self, expected_note_count: usize, producer: P, ) -> Self
where P: SynthesisProducer + 'static,

Add the platform round synthesizer: once a started round has expected_note_count notes under ContextKey::Hypotheses, invokes the supplied [SynthesisProducer] and emits a synthesis fact under ContextKey::Strategies. Producer errors route to ContextKey::Diagnostic.

Source

pub fn with_disagreement_mapper(self) -> Self

Add the platform disagreement mapper: aggregates Disagreement facts into per-topic crate::huddle::DisagreementMap payloads, emitted once per topic under ContextKey::Diagnostic.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Adaptor<()> for T

Source§

fn adapt(&self)

Adapt the type to be passed to a metric.
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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoComptime for T

Source§

fn comptime(self) -> Self

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> PlanCallbackArgs for T

Source§

impl<T> PlanCallbackOut for T