Skip to main content

Module materialize

Module materialize 

Source
Expand description

Materialization: turning a DAG walk into the ordered message list a model would actually see, folding compaction ops as one more delta type rather than a special case bolted onto the walk.

Structs§

MaterializedContext
The ordered message list a model would see when checked out at head, plus a manifest of which commits currently contribute to it. Compaction ops remove entries from messages/manifest without touching the underlying DAG — the commits they replace remain reachable by id, just not part of this projection.
MaterializedMessage
One turn in a materialized context: the delta contributed by a single commit, tagged with the commit that contributed it.

Functions§

materialize
Walks the first-parent chain from head back to the root, applying deltas in order (oldest first) and folding compaction ops as it goes.