Architectural drift prevention Architectural governance Maintaining architectural intent AI coding agents Agent infrastructure Engineering performance Software migrations & modernization All
Software migrations and modernization — keeping AI coding agents inside the target architecture while a migration is under way. During a migration a repository contains more examples of the architecture you are leaving than the one you are moving toward, so agents infer the wrong pattern from frequency. These essays cover why that happens, the decision states a migration needs, and how path-scoped enforcement resolves them.
Insights / Topics

Software migrations and modernization

Legacy and migrated code share one repository for the length of the project, and the legacy side is better represented. These essays cover why agents copy the architecture you are removing and what makes the distinction enforceable. See the migrations use case.

A migration is the one situation where following the surrounding code is the wrong instinct. For as long as the project runs, the repository demonstrates two architectures, and the one being removed is almost always the better represented of the two. An agent that infers house style by looking at what is already there will infer the architecture you are paying to eliminate, and it will do so while every individual change looks locally reasonable.

These essays cover why that happens, why better retrieval makes it worse rather than better, and what a decision corpus needs in order to describe a system in transition: states for legacy, target, transitional and superseded patterns, and path applicability so a rule can govern migrated modules while staying silent where migration has not reached.

If you want to see the enforcement path before reading the argument, the migration demo traces an agent copying the legacy pattern into a migrated module: denied there, and silently skipped in the legacy tree where the same pattern is still correct.

Guide8 min read

AngularJS to Angular Migration with AI: How to Preserve Architecture

time cockpit moved AngularJS to Angular with Claude Code in 233 commits over 25 days. What the agent sped up, what broke silently, and a migration checklist.

Perspective7 min read

When Not to Rewrite: Modern Java, Node.js and the Economics of Migration

Java virtual threads, GraalVM native images and Node.js type stripping remove old reasons to rewrite. Agents cut the cost of writing a rewrite, not checking it.

Perspective8 min read

When Agents Translate Code to Go, Do They Bring the Source Language With Them?

In the 2025 Go survey, 33% named Go idioms a top frustration. Our hypothesis: agents translating Java or Python to Go keep exceptions and thread-local state.

Comparison8 min read

Strangler vs Big-Bang Migration: How to Choose

Stripe converted 3.7 million lines to TypeScript in one pull request; Twitch moved to Go endpoint by endpoint. Four factors help explain which to choose.

Perspective8 min read

Behavioral Equivalence Is Not Architectural Compliance: Verifying an AI-Assisted Migration

GitHub's 800,000-line Copilot Rust port compiled and passed its tests, yet shipped regressions. Acceptance needs behavioral evidence and decision compliance.

Perspective8 min read

Migrating from Node.js to Go: The Architectural Decisions That Must Survive the Rewrite

Uber's Go gateway migration took two years; Grab cut over one endpoint at a time. The decisions a Node.js to Go rewrite must keep: scope, authority, evidence.

Perspective9 min read

AI Legacy Modernization: What Must Survive the Rewrite?

AI tools now extract business rules from legacy code. Before a rewrite, decide which recovered behavior is observed, inferred or approved, and who approves it.

Analysis6 min read

Advancing Coding in Low-Resource Programming Languages: What OpenAI's COBOL Benchmark Does Not Measure

OpenAI reports 97.9% on a COBOL migration evaluation requiring byte-for-byte output parity. Passing it does not settle which decisions must survive the rewrite.

Perspective 7 min read

Why AI Coding Agents Copy Legacy Architecture During Migrations

The agent is not forgetting the plan. It is reading the repository correctly, and the repository is mostly the architecture you are removing.

Guide 7 min read

ADRs for Software Migrations: Legacy, Target and Transitional Decisions

Classic ADR practice assumes one architecture at a time. A migration needs states that expire and decisions scoped to the paths they govern.

Guide 6 min read

Strangler-Fig Migrations: Preventing Architectural Drift at the Boundary

A strangler migration works because only the adapter depends on the legacy system. Here is why agents break that guarantee, and how to stop them.

Perspective 6 min read

Why Codebase Memory Goes Stale During a Migration

A memory layer is most confident about the code you are removing and most out of date about the code you are moving toward, and cannot express which is which.

Guide 6 min read

How to Encode Migration Guardrails for AI Coding Agents

Five path-scoped rules cover most migration guardrails an AI coding agent needs: persistence, adapter boundaries, freezes, deprecated APIs, legacy imports.

Perspective 6 min read

Architectural Drift During Cloud and Platform Migrations

AWS to Azure, VM to Kubernetes, monolith to services: five common platform migrations, and why each needs the same path-scoped decision as any other.

Analysis6 min read

Collective Cyber Defense: AI Is Accelerating the Cybersecurity Migration Problem

OpenAI, Anthropic, Google, Microsoft and 110+ organizations named legacy technical debt as AI-attack exposure. Fixing it means migrations agents now run.