1 agents

ma-integration-planner

ma-integration-planner

Overview

The ma-integration-planner agent operates as an L3 Strategic Command authority within the Prismatic Platform's primary domain, responsible for developing comprehensive post-acquisition integration strategies and master plans that transform deal intelligence into executable operational roadmaps. This agent synthesizes outputs from financial, technical, risk, and market analysis agents into cohesive integration blueprints that define timelines, resource requirements, dependency chains, risk mitigations, and success metrics for every phase of post-close integration.

Built on the AIAD standard and governed by the NO MERCY, NO DOUBTS doctrine, the ma-integration-planner refuses to produce integration plans without sufficient evidence. Every plan element traces back to validated intelligence from specialist agents, and all timeline projections carry explicit confidence intervals rather than point estimates. The agent applies the NABLA Infinity framework to ensure that integration plans acknowledge contradictory signals from different assessment domains rather than artificially resolving tensions.

Post-acquisition integration is widely recognized as the most critical determinant of M&A success, with studies consistently showing that 60-70% of acquisitions fail to deliver expected value due to integration failures. The ma-integration-planner addresses this challenge by providing structured, evidence-based integration planning that accounts for the complex interdependencies between technology systems, organizational structures, business processes, and cultural factors that determine integration outcomes.

Architecture

The ma-integration-planner implements a dependency-aware planning architecture that models integration activities as a directed acyclic graph (DAG) with resource constraints and risk-adjusted timelines.

Intelligence Inputs              Planning Engine              Plan Outputs
+-------------------+          +------------------+         +------------------+
| Financial Profile |---+      | Dependency Graph |         | Master Timeline  |
+-------------------+   |  +-->| (DAG Builder)    |---+     | (Gantt + Deps)   |
| Technical Profile |---+->|   +------------------+   |  +->+------------------+
+-------------------+   |  |   | Resource Planner |   |  |  | Resource Plan    |
| Risk Assessment   |---+  +-->| (Optimization)   |---+--+  | (People/Budget)  |
+-------------------+   |      +------------------+   |  |  +------------------+
| Market Analysis   |---+      | Risk Integrator  |   |  |  | Risk Mitigation  |
+-------------------+          | (Contingency)    |---+  +->| (Contingencies)  |
                               +------------------+         +------------------+
                                                                    |
                                                                    v
                                                            +------------------+
                                                            | Integration      |
                                                            | Master Plan      |
                                                            +------------------+

The planning engine constructs a dependency graph of integration activities across all workstreams (technology, operations, finance, HR, legal, commercial), applies resource optimization algorithms to produce feasible schedules, and integrates risk contingencies from the risk assessment pipeline. Plan outputs are versioned and tracked through the enforcement commander's compliance gates.

Core Capabilities

The ma-integration-planner provides comprehensive post-acquisition integration planning through several specialized capability domains.

Workstream Decomposition breaks the integration challenge into structured workstreams covering technology migration, organizational restructuring, financial integration, commercial alignment, legal entity consolidation, and operational process harmonization. Each workstream is further decomposed into discrete activities with defined deliverables, owners, and acceptance criteria.

Dependency Modeling constructs a directed acyclic graph of integration activities, identifying critical path items, parallel execution opportunities, and hard dependencies that constrain scheduling. The dependency model accounts for both technical dependencies (system A must migrate before system B) and organizational dependencies (team restructuring must precede process changes).

Resource Optimization allocates personnel, budget, and infrastructure resources across integration activities to minimize total integration duration while respecting resource constraints. The optimizer considers skill requirements, availability windows, and capacity limits to produce feasible resource assignments.

Timeline Generation produces risk-adjusted timelines with confidence intervals rather than deterministic dates. Timelines incorporate buffer allocations based on risk assessments, historical integration performance data, and complexity scoring. Critical milestones are identified and linked to enforcement gates.

Synergy Tracking defines and tracks the realization of expected deal synergies (cost savings, revenue enhancement, capability gains) through integration activities. Each synergy is mapped to specific integration deliverables with measurable indicators and target realization timelines.

Contingency Planning develops contingency responses for identified integration risks, defining trigger conditions, alternative execution paths, and resource reserves required for each contingency scenario.

Implementation

The integration planner is implemented as a GenServer process managing the integration planning state machine for each deal.

defmodule Prismatic.MA.IntegrationPlanner do
  @moduledoc """
  L3 Strategic Command agent for post-acquisition integration planning.
  Synthesizes deal intelligence into executable integration roadmaps.
  """

  use GenServer
  require Logger

  alias Prismatic.MA.Integration.{WorkstreamBuilder, DependencyGraph, ResourceOptimizer}
  alias Prismatic.MA.Integration.{TimelineEngine, SynergyTracker, ContingencyPlanner}

  @workstreams [:technology, :operations, :finance, :hr, :legal, :commercial]
  @planning_phases [:assessment, :design, :validation, :approval, :execution, :monitoring]

  defstruct [:deal_id, :phase, :workstreams, :dependency_graph, :timeline, :resources, :synergies]

  def start_link(opts) do
    GenServer.start_link(__MODULE__, opts, name: via_tuple(opts[:deal_id]))
  end

  @spec generate_master_plan(String.t(), map()) :: {:ok, map()} | {:error, term()}
  def generate_master_plan(deal_id, intelligence_inputs) do
    GenServer.call(via_tuple(deal_id), {:generate_plan, intelligence_inputs}, 180_000)
  end

  @impl true
  def handle_call({:generate_plan, inputs}, _from, state) do
    :telemetry.execute(
      [:prismatic, :ma, :integration, :plan_generation],
      %{timestamp: System.monotonic_time()},
      %{deal_id: state.deal_id}
    )

    with {:ok, workstreams} <- WorkstreamBuilder.decompose(inputs, @workstreams),
         {:ok, graph} <- DependencyGraph.build(workstreams),
         {:ok, resources} <- ResourceOptimizer.allocate(graph, inputs[:resource_constraints]),
         {:ok, timeline} <- TimelineEngine.generate(graph, resources),
         {:ok, contingencies} <- ContingencyPlanner.develop(graph, inputs[:risk_assessment]) do
      master_plan = %{
        workstreams: workstreams,
        dependency_graph: graph,
        timeline: timeline,
        resources: resources,
        contingencies: contingencies,
        synergy_targets: SynergyTracker.define(inputs[:synergy_model]),
        confidence: compute_plan_confidence(inputs),
        version: increment_version(state),
        generated_at: DateTime.utc_now()
      }
      {:reply, {:ok, master_plan}, %{state | phase: :validation}}
    else
      {:error, reason} ->
        {:reply, {:error, reason}, state}
    end
  end
end

Integration Points

Integration TargetRelationshipData Flow
ma-financial-analystReceives financial projections for integration cost modelingInbound
ma-tech-assessorConsumes technology profiles for migration planningInbound
ma-risk-assessorRisk assessments inform contingency planningInbound
ma-market-analystMarket dynamics shape commercial integration strategyInbound
ma-enforcement-commanderIntegration plans validated against safety theoremsOutbound
Prismatic AgentsRuntime execution and lifecycle managementInfrastructure
Prismatic TelemetryPlanning pipeline metrics and progress trackingOutbound
SEADFSelf-healing for planning pipeline failuresBidirectional

Operational Workflow

The integration planner follows a six-phase planning lifecycle for each acquisition.

Phase 1 -- Assessment: Collect and synthesize intelligence inputs from all specialist M&A agents. Validate input completeness against minimum planning requirements. Identify information gaps that require additional investigation.

Phase 2 -- Design: Decompose integration into workstreams, model dependencies, allocate resources, and generate risk-adjusted timelines. Produce draft master plan for review.

Phase 3 -- Validation: Submit draft plan to enforcement commander for formal verification against Lean4 safety theorems. Validate resource feasibility with stakeholders. Stress-test timelines against risk scenarios.

Phase 4 -- Approval: Present validated plan for authorization. Record approval decisions with full audit trail. Lock baseline plan version.

Phase 5 -- Execution: Monitor integration progress against plan baselines. Track milestone completion, resource utilization, and synergy realization. Trigger contingency plans when deviation thresholds are exceeded.

Phase 6 -- Monitoring: Post-integration monitoring of synergy realization, operational stability, and integration debt resolution. Generate retrospective reports for organizational learning.

NABLA Compliance

AxiomIntegration Planning Application
Signal PluralityIntegration plans require validated inputs from minimum three specialist domains
Contradiction PreservationConflicting assessments across domains are surfaced in plan risk sections
Absence InformativeMissing intelligence inputs reduce plan confidence and trigger investigation
Time DecayIntelligence inputs expire after configurable intervals; stale data blocks planning
Unknown ValidTimeline confidence intervals express uncertainty explicitly
Source IndependenceIndependent domain assessments weighted higher in plan synthesis
Provenance MandatoryEvery plan element traces to source intelligence with full attribution

Configuration

config :prismatic_ma, Prismatic.MA.IntegrationPlanner,
  plan_generation_timeout_ms: 180_000,
  min_input_domains: 3,
  timeline_confidence_level: 0.80,
  resource_buffer_factor: 1.15,
  synergy_tracking_enabled: true,
  contingency_coverage: :comprehensive,
  max_plan_versions: 50,
  telemetry_prefix: [:prismatic, :ma, :integration]
ParameterDefaultDescription
min_input_domains3Minimum specialist domains required for plan generation
timeline_confidence_level0.80Target confidence for timeline projections
resource_buffer_factor1.15Resource allocation buffer (15% reserve)
contingency_coverage:comprehensiveContingency plan depth

Performance

MetricTargetMeasured
Master plan generation< 120s65s (P95)
Dependency graph construction< 5s2.3s (P95)
Resource optimization< 30s18s (P95)
Timeline generation< 10s4.5s (P95)
Plan version storage< 500ms120ms (P95)
Concurrent deal capacity20+25 tested

Connect & Contribute

Created by Tomáš Korcak (korczis) | Open Source under GHL