• A bounded, most-recent-first projection of the engine's commit log, shaped as a DerivedNode.

    The returned node is registered through Graph.commitMetadataDerived so its compute reads the just-completed commit on the same commit that produced it. UIs subscribe and compose the result like any other derived: subscribe(node, …) fires on every commit, read(node) returns the current bounded projection, explain(node) traces lineage back to graph.commitLog, and readAt(node, t) projects historical bounded views.

    Repeated calls with the same (graph, id) return the same handle (memoised) — registering the underlying derived twice would throw DuplicateNodeError, and stable identity lets a UI compose the result into downstream derived(...) without juggling handles.

    Parameters

    Returns DerivedNode<readonly Commit[]>

    A DerivedNode carrying the bounded, most-recent-first commit window.

    If options.capacity is non-positive.

    const log = commitLog(graph, { capacity: 200 })
    graph.subscribe(log, ({ value }) => render(value))
    const entries = graph.read(log) // most-recent first