#trace #process-fork #model #engine #merge #three-way #ancestor #agent-docs #lca #summarizer

pf-merge

ProcessFork three-way merge engine: trace + world + effects + model layers

16 stable releases

Uses new Rust 2024

1.0.15 May 10, 2026
1.0.14 May 8, 2026
1.0.9 May 6, 2026
1.0.0 May 5, 2026

#6 in #summarizer

28 downloads per month
Used in processfork

MIT license

250KB
5K SLoC

pf-merge

Typed three-way merge across all four ProcessFork layers + the trace. See agent_docs/merge-protocol.md for the spec.

What ships in Phase 6 (this commit)

  • ancestor::find_lca: BFS lowest-common-ancestor on the manifest parents DAG. Multi-parent (octopus) merges error in v1.
  • trace::merge_trace: pluggable trace::Summarizer interface + StubSummarizer test impl. Live Claude API call gated by the live-summarizer feature flag.
  • world::merge_world: three-way file diff over the pf_world::FsTree format. Conflicts produce real <<<<<<<-marker blobs and a structured world::WorldConflict list.
  • effects::merge_effects: emits an effects.merged.v1 blob that references both parent ledgers + the replay-class policy. Honours the strict default (never replay irreversible).
  • model::merge_model: variant-dispatch wrapper around pf_model::ties_merge + pf_model::dare. LoRA merges by (layer_id, matrix); Full merges by parameter name; IA³ merges by (layer, matrix); InPlaceTtt is concatenated.
  • engine::merge: top-level orchestrator producing a new manifest.

Dependencies

~24–43MB
~684K SLoC