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(),
};Re-exports§
pub use pack::AgentMeta;pub use pack::InvariantClass;pub use pack::InvariantMeta;pub use pack::Pack;pub use pack::PackProfile;
Modules§
- pack
- Pack framework contract types.
Structs§
- Admission
Result - Adversarial
Context - Adversarial
Review - Aggregated outcome of an adversarial review pass.
- 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
Signal - One caller-supplied convergence signal.
- 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
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
Invocation - Domain-agnostic huddle invocation envelope.
- 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. Every
signal is a 0..=1 normalized score;
UnitIntervalenforces the invariant at the type level instead of relying on downstream clamps. - 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. Both scores are 0..=1 normalized.
- Shape
Candidate - A candidate collaboration shape being tested. Scores are 0..=1
normalized;
UnitIntervalenforces the invariant at the type level so consumers don’t have to defensively clamp. - Shape
Competition - A competition between multiple candidate shapes.
- Shape
Observation - Observation from a completed shape trial. Confidence and rate fields are 0..=1 normalized; the cycle count is integer but always positive in practice.
- 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 tally votes on a topic.
- Context
Key - Context key partitions. Re-exported from
converge_packso the pack framework and Converge share one truth — no parallel definition, no drift on which variants exist or how they serialize. This crate intentionally adds nothing here; pack metadata that needs a typed key reaches through this re-export. Typed keys for the shared context namespace. - Convergence
Criteria - Desired termination behavior for an Organism formation.
- 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 - Huddle
Invocation Kind - Huddle
Urgency - 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.
- Verdict
Constants§
- CONFIDENCE_
STEP_ MAJOR - Major confidence step — use for significant criteria (0.2).
- CONFIDENCE_
STEP_ MEDIUM - Medium confidence step — use for moderately significant criteria (0.15).
- CONFIDENCE_
STEP_ MINOR - Minor confidence step — use for supporting criteria (0.1).
- CONFIDENCE_
STEP_ PRIMARY - Primary confidence step — use for decisive or high-weight criteria (0.25).
- CONFIDENCE_
STEP_ TINY - Tiny confidence step — use for marginal or tiebreaker criteria (0.05).
Traits§
- Admission
Controller - 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 - dd_
complete - Sends a single-turn DD prompt to a
DynChatBackendand returns the response content. Provider errors are classified intoDdErrorvariants so the calling Suggestor can decide whether to retry, abort, or record a constraint. - 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.