Skip to main content

Module commit

Module commit 

Source
Expand description

The commit model: the immutable, content-addressed unit of a contextgraph DAG.

Structs§

Commit
An immutable, content-addressed node in the context DAG.
CommitId
A BLAKE3 content hash identifying a commit. Two commits with byte-identical parent_ids + author + delta + metadata always produce the same id.
Metadata
Caller-supplied, filterable metadata.
TokenUsage
Token accounting for a commit, if the caller supplies it.

Enums§

Author
Who authored a commit’s delta.
Delta
The payload of a commit: what actually changed.
MergeStrategy
How a merge commit’s materialized view is chosen between its two parents. There is no automatic content merging of divergent conversation turns — that’s not well-defined for natural language, so both strategies just pick which parent’s view “wins” by controlling parent order (materialize always follows the first parent).

Functions§

compute_commit_id
Computes the content-addressed id for a would-be commit. Pure function: identical inputs always yield the identical id.