Skip to main content

Module edit_delta

Module edit_delta 

Source
Expand description

Cell-grid-specific edit delta — the input contract for incremental matrix rebuilds (S2.4.b).

EditDelta is the substrate’s compact view of a single applied edit. The protocol’s lattice_protocol::edit::EditDelta carries tree-sitter-shaped byte + position fields for incremental reparse; for cell-matrix incremental rebuild the worker only needs line-granular shift info.

The cell-builder uses this to:

  • Identify which chunks intersect the edit’s affected range.
  • Shift downstream chunks (lines past the edit) by lines_added - lines_removed without rebuilding their cells.

Structs§

EditDelta
One applied edit’s line-shift impact on the cell matrix.