Skip to main content

converge_pack/
lib.rs

1// Copyright 2024-2026 Reflective Labs
2
3// SPDX-License-Identifier: MIT
4
5//! # Converge Pack
6//!
7//! This crate is the strict Rust authoring contract for Converge packs.
8//! External modules implement these traits to participate in convergence:
9//!
10//! - [`Suggestor`] for pure suggestors
11//! - [`Context`] for read-only context access
12//! - [`AgentEffect`] for buffered proposal output
13//! - [`Fact`] / [`ProposedFact`] for the current context boundary
14//!
15//! Provider selection and backend capability routing do not live here.
16//! Those contracts belong to `converge-provider-api`.
17
18mod agent;
19pub mod context;
20pub mod effect;
21pub mod fact;
22pub mod suggestor {
23    pub use super::agent::Suggestor;
24}
25
26pub use agent::Suggestor;
27pub use context::{Context, ContextKey};
28pub use effect::AgentEffect;
29pub use fact::{
30    Fact, FactActor, FactActorKind, FactEvidenceRef, FactLocalTrace, FactPromotionRecord,
31    FactRemoteTrace, FactTraceLink, FactValidationSummary, ProposedFact, ValidationError,
32};