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§
- Canonical
Receipt Projection V1 - Verified ledger link to a canonical receipt artifact.
- Canonical
Receipt Record V1 - Authoritative terminal observations supplied by the host that owns the task outcome.
- Context
Balance - Four-stage token balance carried by an execution receipt.
- Context
Balance V1 - Four-stage token balance carried by an execution receipt.
- Execution
Ledger - Compatibility aggregate for the existing execution-ledger CLI commands.
- Execution
Ledger Entry V1 - Compatibility view consumed by the existing
ledger executionCLI. - Execution
Ledger Store - A process-independent handle to an execution ledger file.
- Execution
Ledger Verify Result - Execution
Projection - Read-only projection facade for callers that want to keep the store explicit.
- Legacy
Receipt Projection V1 - Non-authoritative compatibility projection derived from legacy
ReceiptSigned. - Published
Canonical Receipt - Receipt
Signer Admission V1 - Host-owned trust snapshot authorizing one receipt-signing key.
- Task
Cost Summary - Token and model-call totals for one task.
Enums§
- Execution
Event - One append-only observation in the execution ledger.
- Execution
Ledger Error - 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.