proofborne-core 0.2.0

Versioned contracts, events, provider types, and proof graph for Proofborne
Documentation
//! Stable, serializable primitives shared by every Proofborne surface.
//!
//! The JSON shapes in this crate form the v0.1 compatibility boundary. Internal
//! orchestration APIs may change while the project is pre-1.0.

mod agent;
mod agent_graph;
mod auth;
mod canonical;
mod compaction;
mod context;
mod contract;
mod event;
mod provider;
mod routing;
mod tool;

pub use agent::{
    AGENT_PROTOCOL_VERSION, AgentAuthority, AgentBudget, AgentError, AgentRole,
    DelegationInvalidation, DelegationInvalidationReason, DelegationPlan, HandoffChange,
    HandoffChangeKind, HandoffReceipt, MergeReceipt, ReviewDecision, ReviewFinding, ReviewReceipt,
    WorkspaceLease,
};
pub use agent_graph::{
    AGENT_GRAPH_PROTOCOL_VERSION, AgentAuthorityTemplate, AgentGraphBudget, AgentGraphError,
    AgentGraphNode, AgentGraphNodeTemplate, AgentGraphOutcome, AgentGraphPlan, AgentGraphTemplate,
    AgentNodeState, SchedulerDecision, SchedulerDecisionKind, SchedulerReceipt,
};
pub use auth::{
    AUTH_PROTOCOL_VERSION, AuthBindings, AuthError, AuthReceipt, AuthReceiptOutcome,
    TokenLifecycleEvent, TokenStatus, resolve_token_status, transition_token,
};
pub use canonical::{canonical_json_bytes, hash_bytes, hash_json};
pub use compaction::{
    COMPACTION_ALGORITHM_VERSION, COMPACTION_TOKEN_ESTIMATOR, CompactionBudget,
    CompactionContextKind, CompactionDecision, CompactionError, CompactionPlan, CompactionPriority,
    CompactionReceipt, CompactionSelectionReason, CompactionUsage, ContextSelection,
};
pub use context::{
    ContextAuthority, ContextError, ContextInvalidation, ContextInvalidationReason, ContextItem,
    ContextKind, ContextScope, ContextSource, MemoryItem, MemoryStatus, SecretTaint,
};
pub use contract::{
    ArtifactRef, AssuranceLevel, ClaimScope, Criterion, CriterionEvaluation, CriterionState,
    Evidence, EvidenceFreshness, EvidenceKind, EvidenceLink, EvidenceRequirement, ProofError,
    ProofEvaluation, ProofGraph, ProofTermination, RunOutcome, TaskContract, Waiver,
};
pub use event::{EventEnvelope, EventError, SCHEMA_VERSION, verify_event_chain};
pub use provider::{
    ConversationItem, ProviderCapabilities, ProviderError, ProviderRequest, ProviderStreamEvent,
    ProviderTurn, StopReason, TokenUsage,
};
pub use routing::{
    MODEL_CATALOG_VERSION, ModelCatalog, ModelDescriptor, ModelPricing, ROUTING_ALGORITHM_VERSION,
    ROUTING_PRICE_TOKEN_SCALE, RoutingAttemptOutcome, RoutingAttemptReceipt, RoutingBindings,
    RoutingCandidate, RoutingCapability, RoutingContextSource, RoutingError,
    RoutingExclusionReason, RoutingPlan, RoutingReceipt, RoutingReceiptOutcome,
    RoutingRequirements, RoutingSelection,
};
pub use tool::{ActionClass, ToolCall, ToolDefinition, ToolResult};