Skip to main content

Module execution_ledger

Module execution_ledger 

Source
Expand description

Append-only, task-aware execution ledger.

The execution ledger is an additive projection beside the Savings Ledger. It shares the Savings Ledger’s SHA-256 chain primitive, but stores execution identity and lifecycle observations keyed by task and trace IDs.

Modules§

canonical_receipt
Durable publication of canonical receipt artifacts before ledger append.
event
Task-aware execution events.
host
Trusted host authority for native Engine receipt publication.
migration
One-way migration helpers for legacy Savings Ledger observations.
producer
Production composition of the protocol Engine spine into a canonical receipt.
projection
Read-only projections over execution-ledger events.
store
File-backed append-only execution ledger. The append journal proves local crash continuity; signed canonical receipts, not this unkeyed sidecar, provide adversarial authenticity.
verify
Deterministic execution-ledger hashing and chain verification.

Structs§

CanonicalReceiptProjectionV1
Verified ledger link to a canonical receipt artifact.
CanonicalReceiptRecordV1
Authoritative terminal observations supplied by the host that owns the task outcome.
ContextBalance
Four-stage token balance carried by an execution receipt.
ContextBalanceV1
Four-stage token balance carried by an execution receipt.
ExecutionLedger
Compatibility aggregate for the existing execution-ledger CLI commands.
ExecutionLedgerEntryV1
Compatibility view consumed by the existing ledger execution CLI.
ExecutionLedgerStore
A process-independent handle to an execution ledger file.
ExecutionLedgerVerifyResult
ExecutionProjection
Read-only projection facade for callers that want to keep the store explicit.
LegacyReceiptProjectionV1
Non-authoritative compatibility projection derived from legacy ReceiptSigned.
PublishedCanonicalReceipt
ReceiptSignerAdmissionV1
Host-owned trust snapshot authorizing one receipt-signing key.
TaskCostSummary
Token and model-call totals for one task.

Enums§

ExecutionEvent
One append-only observation in the execution ledger.
ExecutionLedgerError
Errors returned while reading, serializing, or validating the execution ledger.
TriState
Tri-state acceptance prevents an absent observation from being treated as a rejection.

Constants§

GENESIS
Hash-chain anchor shared with the Savings Ledger.

Functions§

canonical_receipt_for_task_from_store
Compatibility projection that maps unavailable ledger state to no receipt.
canonical_receipt_for_task_verified_from_store
Projects authoritative receipt metadata from a verified, available snapshot.
default_path
Default execution-ledger location: <data_dir>/execution/ledger.jsonl.
hash_event
Hashes one event using the Savings Ledger’s SHA-256 primitive.
legacy_receipt_for_task
Builds a non-authoritative compatibility receipt from legacy observed events.
legacy_receipt_for_task_from_store
Builds a non-authoritative compatibility receipt from an explicit store.
migrate_from_savings_ledger
Migrates the configured Savings Ledger into the configured execution ledger.
migrate_from_savings_ledger_at
Migrates one source file into an explicitly selected destination store.
publish_canonical_receipt
Persist exact canonical bytes, then append their immutable ledger reference.
record_canonical_engine_receipt
Join, sign, durably publish, and ledger-project one real Engine observation.
task_cost_summary
Projects the default execution ledger for task_id.
task_cost_summary_from_store
Projects an explicitly selected execution ledger for task_id.
verify_events
Verifies an ordered in-memory event sequence.

Type Aliases§

Result
Result type shared by execution-ledger operations.