Skip to main content

proofborne_core/
lib.rs

1//! Stable, serializable primitives shared by every Proofborne surface.
2//!
3//! The JSON shapes in this crate form the v0.1 compatibility boundary. Internal
4//! orchestration APIs may change while the project is pre-1.0.
5
6mod canonical;
7mod contract;
8mod event;
9mod provider;
10mod tool;
11
12pub use canonical::{canonical_json_bytes, hash_bytes, hash_json};
13pub use contract::{
14    ArtifactRef, AssuranceLevel, ClaimScope, Criterion, CriterionEvaluation, CriterionState,
15    Evidence, EvidenceFreshness, EvidenceKind, EvidenceLink, EvidenceRequirement, ProofError,
16    ProofEvaluation, ProofGraph, ProofTermination, RunOutcome, TaskContract, Waiver,
17};
18pub use event::{EventEnvelope, EventError, SCHEMA_VERSION, verify_event_chain};
19pub use provider::{
20    ConversationItem, ProviderCapabilities, ProviderError, ProviderRequest, ProviderStreamEvent,
21    ProviderTurn, StopReason, TokenUsage,
22};
23pub use tool::{ActionClass, ToolCall, ToolDefinition, ToolResult};