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.
- Commit
Id - A BLAKE3 content hash identifying a commit. Two commits with byte-identical
parent_ids+author+delta+metadataalways produce the same id. - Metadata
- Caller-supplied, filterable metadata.
- Token
Usage - 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.
- Merge
Strategy - 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 (
materializealways 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.