Skip to main content
MergeEngine is the central orchestrator for all model merging operations in EMEP. This page defines its purpose, interface, pipeline stages, and the exact flow from two or more source models to a registered candidate.

Purpose

MergeEngine takes validated, compatible models and produces a merged candidate. It delegates architecture and compatibility checks to ModelCompatibilityAnalyzer, tensor operations to TensorEngine, and strategy selection to MergeStrategy plug-ins.

Interface

Returns a CandidateManifest with status, artifact URI, and merge provenance.

Full Merge Pipeline

MergeStrategy Plug-In System

MergeEngine loads strategies as plug-ins. Each strategy implements:
Strategies declare their required compatibility level. A strategy requiring COMPATIBLE will reject CONDITIONALLY_COMPATIBLE pairs. A strategy accepting CONDITIONALLY_COMPATIBLE must handle the discrepancy internally.

Failure Modes