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§
- Agent
Authority - Secret-free, content-addressed authority assigned to one agent session.
- Agent
Authority Template - Secret-free provider/model material used to mint one runtime-owned authority.
- Agent
Budget - Hard runtime budget propagated from parent to child.
- Agent
Graph Budget - Hard aggregate limits reserved before an agent graph may execute.
- Agent
Graph Node - Immutable recipe for one worker, reviewer, or adversary node.
- Agent
Graph Node Template - Parent-independent recipe for one worker, reviewer, or adversary node.
- Agent
Graph Plan - Immutable, content-addressed decomposition and authority graph.
- Agent
Graph Template - Versioned graph topology that can be bound to one exact verified parent.
- Artifact
Ref - A content-addressed artifact referenced by evidence.
- Compaction
Budget - Hard provider-context boundary used by one compaction decision.
- Compaction
Plan - Complete deterministic decision before provider context is rewritten.
- Compaction
Receipt - Durable proof that one validated plan produced one exact provider input.
- Compaction
Usage - Prompt-category accounting measured by the versioned deterministic fallback estimator.
- Context
Authority - Authority that produced a context statement.
- Context
Invalidation - Durable invalidation receipt.
- Context
Item - Immutable, content-addressed context statement.
- Context
Scope - Scope in which a context statement may be retrieved.
- Context
Selection - One content-addressed, provenance-preserving selection decision.
- Context
Source - Provenance anchor for one context statement.
- Criterion
- One independently evaluable acceptance criterion.
- Criterion
Evaluation - Deterministic details of one criterion evaluation.
- Delegation
Invalidation - Versioned receipt proving why an active delegation was invalidated.
- Delegation
Plan - Proof-carrying plan for exactly one parent-to-child delegation.
- 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.
- Handoff
Change - One content-addressed path change proposed by a child.
- Handoff
Receipt - Proof-carrying worker output, bound to one delegation plan and child session.
- Memory
Item - Persisted context plus its runtime-owned lifecycle state.
- Merge
Receipt - Runtime-owned receipt for an atomically accepted handoff.
- Model
Catalog - Versioned, content-addressed catalog embedded in every routing plan.
- Model
Descriptor - One content-addressed model description in the local catalog.
- Model
Pricing - Immutable local pricing used only for deterministic preflight estimates.
- 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.
- Review
Finding - One reviewer finding with explicit criterion/path scope.
- Review
Receipt - Review receipt produced by a separately authorized reviewer session.
- Routing
Attempt Receipt - One secret-free attempt in exact execution order.
- Routing
Bindings - State and authority bindings that make a routing decision non-replayable.
- Routing
Candidate - Executable candidate bound to a catalog descriptor and runtime authority.
- Routing
Plan - Proof-carrying deterministic route plan for exactly one provider step.
- Routing
Receipt - Deterministic execution receipt bound to exactly one routing plan.
- Routing
Requirements - Runtime-owned requirements and hard budgets for one model decision.
- Routing
Selection - Deterministic reducer output for one candidate.
- Scheduler
Decision - One hash-chained scheduler state transition.
- Scheduler
Receipt - Offline-verifiable terminal scheduler receipt.
- 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.
- Workspace
Lease - Read/write scope delegated from one immutable parent workspace generation.
Enums§
- Action
Class - Runtime-owned action classification.
- Agent
Error - Fail-closed delegation or handoff validation error.
- Agent
Graph Error - Fail-closed graph planning, scheduling, or receipt validation error.
- Agent
Graph Outcome - Terminal outcome of one complete agent graph.
- Agent
Node State - Durable state of one scheduler node.
- Agent
Role - Runtime role of one authority in a delegated task.
- Assurance
Level - Strength of the environment in which an observation was made.
- Claim
Scope - The claim a successful completion gate is allowed to make.
- Compaction
Context Kind - Semantic class of one item considered by compaction.
- Compaction
Decision - Final disposition of one considered context item.
- Compaction
Error - Compaction contract or receipt validation failure.
- Compaction
Priority - Deterministic priority class. Lower classes are selected first.
- Compaction
Selection Reason - Runtime-owned reason for a deterministic selection decision.
- Context
Error - Context contract validation failure.
- Context
Invalidation Reason - Runtime-owned reason a memory item ceased to be current.
- Context
Kind - Semantic category of one provenance-bound context statement.
- Conversation
Item - Provider-neutral conversation items retained by the session engine.
- Criterion
State - Runtime state for an acceptance criterion.
- Delegation
Invalidation Reason - Runtime-owned reason that an unmerged delegation became unusable.
- 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.
- Handoff
Change Kind - Kind of one deterministic child-workspace change.
- Memory
Status - Durable retrieval lifecycle of one context item.
- 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.
- Review
Decision - Independent reviewer disposition for one handoff.
- Routing
Attempt Outcome - Outcome of one provider attempt committed by a routing receipt.
- Routing
Capability - Portable capability that a route may require from a provider adapter.
- Routing
Context Source - Provenance of the context-window value used by routing.
- Routing
Error - Routing contract or deterministic reduction failure.
- Routing
Exclusion Reason - Stable reason why a candidate cannot execute.
- Routing
Receipt Outcome - Terminal reducer state for one provider step.
- RunOutcome
- Final runtime outcome; only the first two represent completed work.
- Scheduler
Decision Kind - Runtime-owned reason for one persisted state transition.
- Secret
Taint - Public indication that sensitive input was removed before persistence.
- Stop
Reason - Provider-neutral stop reasons.
Constants§
- AGENT_
GRAPH_ PROTOCOL_ VERSION - Version of the proof-carrying multi-agent graph protocol.
- AGENT_
PROTOCOL_ VERSION - Version of the proof-carrying parent/child delegation protocol.
- COMPACTION_
ALGORITHM_ VERSION - Version of the deterministic context-compaction algorithm.
- COMPACTION_
TOKEN_ ESTIMATOR - Deterministic fallback estimator used when an adapter exposes no model tokenizer.
- MODEL_
CATALOG_ VERSION - Version of the proof-carrying local model-catalog contract.
- ROUTING_
ALGORITHM_ VERSION - Deterministic routing reducer understood by this release.
- ROUTING_
PRICE_ TOKEN_ SCALE - Pricing is expressed in micro-US-dollars per one million tokens.
- 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.