Phase 1

Legacy Migration Discovery

AI delivery runs on precise specs - legacy systems have working behaviour but no precise spec. Discovery captures that behaviour against the running system, turns it into a specification with contract tests, decides per module what to rebuild, absorb, or retire - and ends with a fixed-price offer for the rebuild before a line of new code is written.

Definition of Done

System behaviour captured against the running system, specification with contract tests delivered, migration decision map agreed, fixed-price offer accepted.

Entry criteria

  • A business-critical legacy system whose behaviour matters more than its documentation
  • A running system we can access - source code preferred (we build and run from it), VM snapshots or binaries as fallback
  • Optional accelerators, all speed the analysis: source + commit history, manuals, design specs, DB schemas, key users
  • Secure hand-over under NDA into an isolated environment

Deliverables

  • Legacy Documentation package - codebase and system analysis, module maps, domain glossary, flow maps and dependency graph, interface and data-model documentation, risk register and open questions (bookable standalone as a due-diligence / hand-over deliverable, or as the first output of a migration Discovery)
  • Behavioral specification with contract tests - what the system does, how it behaves, what must be preserved
  • Per-module migration decision map - rebuild, absorb, or retire
  • Modern-stack target architecture - for the modules being rebuilt
  • Epics, user stories, and acceptance criteria - the same spec format the build runs on
  • Fixed-price offer for the rebuild

Activities

  1. 1

    System handover under NDA

    The system is delivered into an isolated environment. Source code where possible - we build and run from it - VM snapshots or binaries where not, with decompilation where needed. Manuals, design specs, DB schemas, and key-user access accelerate the analysis but none is required to begin.

  2. 2

    System mapping

    The Legacy Module maps architecture, business rules, dependencies, and data flows against the running system. Git history - frequent changes, workarounds, reverts - reveals knowledge the current code no longer shows. Stored-procedure logic in the database is mapped end to end. The output is a documented model of what the system actually is, plus a first read on tractability and risk.

  3. 3

    Behavioral specification with contract tests

    We observe the system at work and turn its behaviour into a specification with contract tests - what it does, how it behaves, what must be preserved. This is the spec a classic migration never had, and the safety net that proves the rebuild behaves identically.

  4. 4

    Per-module decision - rebuild, absorb, retire

    Business-differentiating logic gets rebuilt under Form-Fit-Function - same behaviour, modern stack, no new features. Commodity or regulated functions (accounting, payroll, standard ERP) are absorbed into proven standard software. Dead code is retired. Business-critical special logic gets the highest attention so nothing is lost in the cut.

  5. 5

    Estimation + fixed-price offer

    The specification and decision map become the scope. We estimate the rebuild module by module against effort data from real AI-native migration runs, add a buffer for the unknown-unknowns, and roll it into one fixed price we stand behind. No open-ended retainer; no commitment until the customer accepts.

Roles

  • Legacy Migration Lead (Tech Lead)Runs the phase end to end - brings the system up, drives the Legacy Module analysis, makes the rebuild/absorb/retire call per module, owns the estimate the fixed-price offer is built on
  • Product OwnerLight touch - scope framing, risk, and the commercial side of the offer. Supports the phase, does not run it
  • CustomerDelivers the system (source and docs where they exist) into the isolated environment under NDA, names key users, and accepts the offer. Involvement is light - no discovery-session marathon

Agents & tools

  • Legacy Module - Riwers AI analysis workflow (architecture, business rules, dependencies, data flows); cross-platform, improves with every project
  • Git archaeology - mines commit history for the knowledge the current code no longer shows
  • Live verification (Chrome MCP) - interactions and data exchange become tests
  • Architectural primitives - five reference documents kept current project-wide (glossary, boundaries, data provenance, ownership, permissions) so no module drifts
  • Contract tests + DIVERGE protocol - tests derived from old behaviour; deliberate deviations require explicit sign-off
  • Data-model mapping - tables, fields, and stored-procedure logic mapped end to end
  • Decompilation toolchain for legacy binaries - for the edge case where no source exists
  • Module-level effort estimator calibrated on real AI-native migration runs, with an unknown-unknowns buffer

Exit criteria

Tick boxes to track progress. Saved locally - no server, no account.

0 / 4 complete

Next - Phase 2 Design

Want to start a new project?
Let’s talk.

Free initial consultation. 30 minutes. No sales pitch.

Book a free call