Expand description
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.
Structs§
- Artifact
Ref - A content-addressed artifact referenced by evidence.
- Criterion
- One independently evaluable acceptance criterion.
- Criterion
Evaluation - Deterministic details of one criterion evaluation.
- Event
Envelope - One append-only, hash-chained session event.
- Evidence
- Runtime evidence that can support one or more criteria.
- Evidence
Link - Directed proof edge from evidence to a criterion.
- Evidence
Requirement - Typed rules deciding which successful observations may satisfy a criterion.
- Proof
Evaluation - Deterministic result of reducing a contract and proof graph.
- Proof
Graph - Evidence nodes and their links to contract criteria.
- Provider
Capabilities - Capabilities declared by a provider adapter.
- Provider
Request - One provider turn request.
- Provider
Turn - Normalized result of one provider turn.
- Task
Contract - A user-visible contract that defines when a task may be called complete.
- Token
Usage - Provider token usage.
- Tool
Call - Structured provider-requested tool call.
- Tool
Definition - JSON-schema-described tool visible to providers.
- Tool
Result - Structured runtime result returned to the provider.
- Waiver
- Human authorization to complete without satisfying one criterion.
Enums§
- Action
Class - Runtime-owned action classification.
- Assurance
Level - Strength of the environment in which an observation was made.
- Claim
Scope - The claim a successful completion gate is allowed to make.
- Conversation
Item - Provider-neutral conversation items retained by the session engine.
- Criterion
State - Runtime state for an acceptance criterion.
- Event
Error - Hash-chain validation failures.
- Evidence
Freshness - How tightly evidence must be bound to the final workspace state.
- Evidence
Kind - Evidence categories used by the completion gate.
- Proof
Error - Proof and contract validation errors.
- Proof
Termination - Runtime-owned reason normal criterion evaluation could not complete.
- Provider
Error - Failures visible at the provider boundary.
- Provider
Stream Event - Provider-neutral events emitted while one model turn is in progress.
- RunOutcome
- Final runtime outcome; only the first two represent completed work.
- Stop
Reason - Provider-neutral stop reasons.
Constants§
- SCHEMA_
VERSION - Current stable external schema identifier.
Functions§
- canonical_
json_ bytes - Serializes JSON deterministically by sorting object keys recursively.
- hash_
bytes - Returns a lowercase BLAKE3 digest for arbitrary bytes.
- hash_
json - Returns a lowercase BLAKE3 digest for canonical JSON.
- verify_
event_ chain - Verifies sequence numbers, session identity, previous hashes, and event hashes.