Expand description
§Organism Pack
The public contract for Organism’s planning loop. One import — the full pipeline from intent to learning.
IntentPacket → Admission → Plan → Challenge → Simulate → Learn → Commit§Quick start
ⓘ
use organism_pack::*;
// 1. Create an intent
let intent = IntentPacket::new("Approve $2,500 expense", expires);
// 2. Check admission (4 dimensions)
let admission = my_controller.evaluate(&intent);
// 3. Plan (multi-model huddle)
let plan = Plan::new(&intent, "route to 3 approvers");
// 4. Challenge (5 skepticism kinds)
let challenge = Challenge::new(
SkepticismKind::EconomicSkepticism,
plan.id,
"entertainment spend is high",
Severity::Warning,
);
// 5. Simulate (5 dimensions)
let result = DimensionResult {
dimension: SimulationDimension::Cost,
passed: true,
confidence: 0.95,
findings: vec!["within budget".into()],
samples: vec![],
};
// 6. Learn from outcomes
let lesson = Lesson {
insight: "score 0.88 → approved".into(),
context: "expense approval".into(),
confidence: 0.9,
planning_adjustment: "none".into(),
};Structs§
- Admission
Result - Adversarial
Context - Adversarial
Signal - Adversarial
Verdict - Typed payload for adversarial agent evaluations/constraints.
Replaces
serde_json::json!({...})with compile-time structure. - Breadth
Research Suggestor - Reacts to strategies tagged with a breadth marker. Searches wide and emits signal facts.
- Capability
Requirement - A capability needed by the intent.
- Challenge
- Charter
Adjustments - Partial charter override applied during a transition.
- Collaboration
Charter - Explicit rules for how a team collaborates.
- Collaboration
Member - A collaborator in a planning or research team.
- Contradiction
Finder Suggestor - Detects conflicting claims across hypotheses on the same topic. Pure data analysis — no LLM needed.
- Convergence
Signals - Observable convergence state fed to transition evaluation.
- Cost
Estimate - DdFact
Summary - DdHooks
- Entities extracted from DD facts for knowledge graph connections.
- Declarative
Binding - Builder for declaring an intent’s resource needs explicitly. This is what apps use today.
- Default
Admission Controller - Default admission controller that evaluates all 4 feasibility dimensions.
- Depth
Research Suggestor - Reacts to strategies tagged with a depth marker. Searches deep and emits signal facts.
- Derivation
Rationale - Why each charter field was chosen.
- Derived
Charter - Result of charter derivation from an intent.
- Dimension
Result - Error
Dimension - Fact
Extractor Suggestor - Reads raw signals and extracts tagged factual claims via LLM. Organism owns the extraction prompt and parsing.
- Failover
DdLlm - Tries LLM backends in order. On retryable errors (credits exhausted, rate limited, provider unavailable), moves to the next backend. On non-retryable errors (parse failed, bad response), returns immediately — a different provider won’t fix bad output.
- Failover
DdSearch - Tries search backends in order with the same failover logic.
- Feasibility
Assessment - Finding
- Forbidden
Action - GapDetector
Suggestor - Reviews hypotheses, identifies critical gaps, proposes follow-up strategies. Organism owns the gap-detection prompt and strategy parsing.
- Hook
Patterns - Configurable patterns for hook extraction.
- HubCategory
- Huddle
Seed Suggestor - Seeds Organism planning output into Converge context as strategy facts.
- Impact
- Intent
Binding - The output of intent resolution. Tells the runtime what to wire up.
- Intent
Complexity - Quantified complexity signals extracted from the intent.
- Intent
Node - A node in the intent decomposition tree. Authority can only narrow during decomposition, never expand.
- Intent
Packet - The contract between humans and the runtime.
- KbConfig
- Controls the vault directory structure and page layout.
- Learning
Episode - Full record of a planning-to-outcome episode. Links intent, plan, predicted outcomes, governed business outcomes, engine run status, prediction errors, adversarial signals, and extracted lessons. Every field traces to converge Facts or run envelopes.
- Learning
Signal - Lesson
- Named
Plan - A plan with a stable identifier for tracking.
- Outcome
Simulation Agent - Outcome simulation as a Suggestor — participates in the convergence loop.
- Outcome
Simulator - Simulates outcome likelihood for candidate plans.
- Outcome
Simulator Config - Configuration for the outcome simulator.
- Pack
Requirement - A domain pack needed by the intent.
- Plan
- A candidate plan produced by reasoning. Plans are proposals, not commitments — authority is recomputed at the commit boundary.
- Plan
Annotation - Plan
Bundle - Plan
Contribution - Plan
Step - Prediction
Error - Prior
Calibration - Resolution
Trace - How the resolution was performed — for traceability.
- Risk
- Root
Page Def - Sample
- Search
Hit - A search hit returned by a
DdSearchimplementation. - Shape
Calibration - Historical calibration of shape performance for a problem class.
- Shape
Candidate - A candidate collaboration shape being tested.
- Shape
Competition - A competition between multiple candidate shapes.
- Shape
Observation - Observation from a completed shape trial.
- Shared
Budget - Cross-suggestor resource tracking for bounded convergence loops.
- Simulation
Report - Simulation
Result - Simulation
Verdict - Typed payload for simulation agent evaluations/constraints.
Replaces
serde_json::json!({...})with compile-time structure. - Synthesis
Suggestor - Produces final analysis when hypotheses stabilize. Organism owns the synthesis prompt.
- Team
Formation - Team formation input for a collaboration.
- Transition
Decision - The result of a matched transition rule.
- Transition
Rule - What shape to transition to, and why.
Enums§
- AgentId
- All organism agents that participate in convergence.
Used as a discriminator in evaluation/constraint payloads instead of
raw strings like
"assumption-breaker". - Collaboration
Discipline - How demanding the collaboration contract is.
- Collaboration
Role - Role a collaborator plays in the team.
- Collaboration
Topology - The overall collaboration shape.
- Collaboration
Validation Error - Complexity
- Complexity level for operational feasibility assessment.
- Consensus
Rule - Decision rule used to decide when a team is done or aligned.
- DdError
- Typed errors from DD backends. Apps classify raw provider errors into these variants. Organism uses the variant to decide whether to retry, abort, or record a constraint.
- Expiry
Action - Feasibility
Dimension - Feasibility
Kind - Intent
Error - Likelihood
- Reasoning
System - Resolution
Level - Which resolution level produced the binding.
- Reversibility
- Risk
Impact - Risk
Likelihood - Five-level risk likelihood scale with associated probabilities.
Replaces string matching like
"very_likely" | "VeryLikely" => 0.9. - Severity
- Shape
Metric - What metric determines shape quality.
- Signal
Kind - Simulation
Dimension - Simulation
Recommendation - Skepticism
Kind - Team
Formation Mode - How a team is assembled.
- Transition
Trigger - A named condition under which the collaboration shape should change.
- Turn
Cadence - How turns should be organized.
Constants§
- CONFIDENCE_
STEP_ MAJOR - CONFIDENCE_
STEP_ MEDIUM - CONFIDENCE_
STEP_ MINOR - CONFIDENCE_
STEP_ PRIMARY - CONFIDENCE_
STEP_ TINY
Traits§
- Admission
Controller - DdLlm
- Async LLM backend. Apps implement this by wrapping their LLM providers (Anthropic, OpenAI, etc.).
- DdSearch
- Async search backend. Apps implement this by wrapping their search providers (Brave, Tavily, etc.).
- Intent
Resolver - Resolves an intent to its resource binding.
- Reasoner
- A reasoning capability participating in a huddle.
Functions§
- apply_
adjustments - Apply charter adjustments to produce a new charter.
- build_
episode - Build a learning episode from a completed converge engine context.
- build_
episode_ from_ run - Build a learning episode from a completed run using both context and
queried experience events from the Converge
ExperienceStore. - calibrate_
priors - Produce prior calibrations from a learning episode. These feed into future planning runs — NOT into authority.
- calibrate_
shape - Calibrate shape priors from an observation. Feeds into planning priors, NEVER into authority.
- classify_
problem - Classify an intent into a problem class for calibration lookup.
- consolidate_
dd_ hypotheses - default_
transition_ rules - Default transition rules for common patterns.
- derive_
charter - Derive a collaboration charter from an intent’s properties.
- derive_
charter_ with_ priors - Derive a charter, biased by historical shape calibration.
- evaluate_
transitions - Evaluate transition rules against current signals. Returns the first matching rule (rules are priority-ordered).
- extract_
hooks_ from_ facts - Extract graph hooks (investors, business areas, regions, competitors) from consolidated facts.
- extract_
signals - Extract learning signals from a completed run — lightweight feedback that can be captured without waiting for human outcome reporting.
- extract_
signals_ from_ run - Extract learning signals from a completed run using both context and captured experience events.
- generate_
candidates - Generate candidate shapes for an intent.
- has_
infra_ failure - Check whether the converge context contains infrastructure failure constraints that should prevent prior calibration.
- sanitize_
filename - score_
observation - Score a shape observation against the chosen metric. Returns [0.0, 1.0].
- select_
winner - Select the winner from completed observations.
- slugify
- update_
root_ pages - Rebuild all root MOC pages by scanning the vault filesystem.
- write_
dd_ to_ vault - Write convergent DD results to an Obsidian vault.
- write_
or_ append_ hub - Create a hub page if it doesn’t exist, or append this subject to an existing one.