Skip to content

warp-core: edge reverse index for tick patch replay #152

@flyingrobots

Description

@flyingrobots

Tick patch replay currently needs to locate an existing edge by EdgeId when applying an UpsertEdge. Today this is implemented as an O(total_edges) scan across all outbound buckets.

Implement a reverse index in GraphStore (e.g., EdgeId -> from NodeId) so patch replay can migrate edges in O(bucket_edges) instead of O(total_edges).

Acceptance:

  • No behavioral change for state_root / commit_id semantics.
  • Clippy/tests/rustdoc gates remain green.
  • Tick patch apply no longer performs a full scan for UpsertEdge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions