Skip to content

Push and pull of commits that drop graphs #2252

Closed

Description

@bplatz

Problem

Push and paged pull refuse any commit that drops a graph (Commit::graph_drops non-empty). The refusal is in commit_transfer::refuse_graph_drops: "drops graphs, which pushing and pulling commits does not support yet". A ledger that has dropped a graph therefore can't be replicated by push or pull from that commit on. docs/reference/compatibility.md documents this as not supported yet.

The refusal is there because commit transfer validates and applies incoming commits on its own path (apply_pushed_commits_to_state), which revives graphs but never applies a drop.

What applying a drop needs on that path

  • Apply each commit's drops before its graph delta and flakes, as replay and build_commit do: LedgerState::apply_graph_drops at the commit's t, then hide_dropped_graphs so the receiver's index stops serving the graph.
  • Keep revival at the commit's own t for a graph that the same or a later pushed commit writes again (already done there).
  • Paged pull: drops must be applied in commit order across page boundaries, because a later page can revive a graph an earlier page dropped.
  • A receiver on a release older than the drop work refuses envelope flag 0x20. That's expected, but the error it reports should name the cause.

Tests

  • Push a drop and pull a drop: the dropped graph isn't queryable on the receiver, at the head or as of an earlier t, and a graph written after the drop holds only the new facts.
  • A pull whose pages straddle a drop and its revival.

Activity

  1. added
    enhancement
    P2
    area:server
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area:serverenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions