ModelRefs / Code Migration — Architecture Blueprint

Code Migration — Architecture Blueprint

Production architecture blueprint for Code Migration: components, deployment, cost and latency, failure modes, evaluation and governance.

Overview

This is the implementation view of Code Migration: the components it requires, where it can run, what it costs in latency and spend, how it fails, and what you must measure before putting it in front of users.

5 components to assemble, 5 documented failure modes, high implementation complexity. Every statement below comes from the canonical workflow record with its sources and review date; where the evidence does not settle a question, the page says so rather than filling the gap.

Implementation complexity
high
Components
5
Failure modes
5
Evaluation readiness
documented
Sources
2read 2026-11-20

What this workflow takes in and produces

Takes in

  • source code and build configuration
  • migration rules and target API documentation
  • existing tests and CI results
  • ownership and review maps

Produces

  • migration plans
  • code changes split into reviewable units
  • test and build results per unit
  • exception lists for manual work

Applied to

  • planning large mechanical migrations
  • generating migration changes for human review
  • verifying migrated code with tests

Components you need to assemble

A working implementation needs 5 distinct components. Each is a build-or-buy decision in its own right.

  • source-control and code-search integration
  • automated change splitting and submission
  • build and test runners
  • reviewer routing
  • rollback and audit log

Implementation complexity: high. This describes the integration and evaluation effort, not the difficulty of any single component.

Deployment patterns

Deployment options recorded for this workflow: managed-api, hybrid.

Topologies it has been recorded against: serverless-api, managed-container, self-hosted-cluster. Each changes the data-residency, scaling and cost profile, so confirm the one you need against current provider documentation.

Cost and latency

  • Cost is dominated by the number of units, build and test time, and review effort, not model tokens alone.
  • Measure cost per accepted unit and the share needing manual repair.

How this workflow fails

Observed failure modes for this class of workflow. Design a check for each one before shipping, not after.

  • change compiles but alters behaviour
  • migration applied where tests are weak
  • partial migration left inconsistent
  • reviewer fatigue on large volumes
  • generated code ignores local conventions

Risk areas the evidence covers

  • behavioural equivalence
  • test strength
  • review burden
  • rollback
  • convention adherence

Proving it works before you ship

Evaluation readiness: Documented — Change correctness, test pass, review-edit rate and rollback measures are defined; codebase-specific test strength and migration rules remain required.

Worked evaluation case: Pilot migration of a bounded subset

Migrate a bounded, well-tested subset of the codebase, run the affected tests for each unit and have owners review a sample.

What to measure

  • units that build and pass tests
  • behavioural differences found in review
  • reviewer edit rate
  • units reverted
  • time and cost per accepted unit

Governance and data handling

  • Migrating many repositories needs a decision on which code a model provider may read, and on who approves changes to code the author does not own.
  • Keep human review and the ability to revert each unit independently.

Implementation notes

  • Split migrations into independently reviewable and revertible units and run the affected tests for each.
  • Start where tests are strong and send the remainder to a manual list instead of forcing coverage.

What this blueprint does not establish

  • The migration paper is an experience report from one company and does not compare against other approaches.
  • The Large-Scale Changes chapter describes human-authored automation at one company, not language-model changes.
  • No codebase, migration type, test-strength requirement, review policy or acceptance threshold is registered for a target deployment.
  • No measured behavioural equivalence, test pass rate, review-edit rate or rollback rate for a target migration is attached.

Source coverage: Documented — Google's account of internal AI-assisted migrations supports that language models can be applied to migration cases and are reported to reduce migration time, as an experience report with no comparison against other methods. The Large-Scale Changes chapter supports the surrounding process: tooling that shards changes, lightweight approval, strong tests and handling of anomalies by people. Neither measures behaviour preservation on your code.

Sources read on 2026-11-20. Revalidate with current models and the target codebase's own tests.

Sources

Candidate models and benchmarks

Candidate models with published references, the providers behind them, and the benchmarks whose task shape bears on this workflow are on the Code Migration workflow reference. This blueprint covers implementation; that page covers selection.

Continue your research

Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to Code Migration — Architecture Blueprint.