Skip to content
Joel Wallgren

Digital Transformation · AI-Assisted Engineering

AI-Assisted System Modernisation

Modernising business-critical software with AI.

I independently led the analysis, planning and migration of a complex enterprise system to .NET 10 with AI assistance. Five days to a working development build, followed by verification and production deployment.

My role
Technical Lead & AI-Assisted Implementation
Source files
800+
Data entities
164
From discovery to a working development build
5 days
Used within the organisation
In production
Conceptual foundation change

Existing business workflows

BeforeAfter
.NET Framework 4.5.2 / 4.8 .NET 10
Entity Framework 6 Entity Framework Core 10
Database schema retained

Understanding the legacy

Modernising without disrupting.

The starting point was an internal Windows system supporting established work across 12 business areas. The migration had to preserve workflows, database behaviour and shared functionality, including reporting and external integrations.

Conceptual system map

At the start of the migration
12 business areas at migration start

The migration had to preserve established work across all twelve areas.

Business areas
12
Interconnected code projects
3
Source files
804
XAML files
153
Data models
3
Data entities, 146 in the largest model
164

The Windows client used .NET Framework 4.8. Both supporting libraries used .NET Framework 4.5.2, and data access used Entity Framework 6.

A simplified, anonymised view of the layers and dependencies involved in the migration.

Context before execution

Understanding before changing.

Before changing code, I asked Codex to inventory the solution. I set three requirements: preserve existing behaviour, limit the scope of changes and verify the migration in stages. The inventories then became working inputs to the plan and the checks.

From codebase to actionable context

Existing codebase

  • Source files
  • Project definitions
  • Dependencies
  • Model definitions

Analysis with Codex

I set the constraints. Codex traced references and categorised dependencies.

Structured knowledge

  1. System inventoryDependency inventory
  2. Data model inventoryMachine-readable JSON
  3. Migration planVerification records

Decisions supported

  • Group interdependent changes and preserve required dependencies
  • Select a smaller, less interconnected model for the isolated pilot
  • Sequence changes and select workflows for targeted checks

Reused during implementation and verification

The plan was version-controlled and verification records were dated. Later query analysis added coverage records in CSV and comparison results in JSON.

Human direction

Accelerating execution. Retaining control.

Working with an established business-critical system, my priority was to maintain control over technical changes and their consequences. I used Codex to extend my implementation capacity while retaining responsibility for scope, decisions and verification.

Human-directed implementation

Structured project context

  • System inventory
  • Migration plan
  • Dependency inventory
  • Verification records
  • Technical decisions
  1. Direct & constrain

    Objectives, constraints, technical decisions and migration boundaries.

  2. AI-assisted execution

    Analysis, implementation, automated tests and documentation.

  3. Review and verify

    Review changes, run real workflows and assess remaining problems.

  4. Approve & proceed

    Authorise the next controlled stage.

Findings, decisions and verification results feed back into the project records. Each stage draws on the project context. Approval starts the next cycle.

Conceptual view of the documented working method.

What I owned

Technical direction, scope, migration boundaries, decisions, validation and accountability.

Where AI helped

Codebase analysis, documentation, planning, implementation, automated comparisons, error reproduction and regression checks.

Controlled modernisation

Modernising in controlled steps.

I established a baseline, tested EF Core in isolation and moved the projects to .NET 10 while keeping EF6 in place temporarily. That separated framework compatibility from changes in data access. I then migrated the data models individually, with the largest model last.

Stages are shown in sequence. The working development build was the five-day milestone. Broader validation and production deployment followed.

Migration timeline

Existing business workflows
Project formats and packagesOriginal
Project framework.NET Framework 4.5.2 / 4.8
Shared data accessEF6
  1. Registry modelEF6
  2. Import modelEF6
  3. Core business modelEF6
01 of 08

Baseline

Build the original solution and establish reference behaviour for selected workflows.

Verification

Compiling is not verification.

The modernised client built and started successfully. When I tested a real workflow, a business overview failed to show grouped results. To check how the system behaved, I compared versions, tested representative database operations and reports, and ran targeted regression checks.

Matching observations
13

Representative reads and saves in the main model. One additional observation reproduced the same pre-existing error in both versions.

Compared PDF exports
4

Nine pages in total. The print date was the only difference identified in those outputs.

Successful query-translation scenarios
1,545

Scenarios included repeated expressions and covered translation to SQL. The analysis documented coverage limitations.

Verification combined build checks, model validation, comparisons, manual testing and subsequent verification by colleagues.

From runtime failure to verified correction

Illustrative application · fictional records
Records workspace
Sample recordsGrouped results
Build passes

Overview has not been opened yet.

RecordCategory
R-01Aspen
R-02Birch
R-03Cedar

Grouped results could not be displayed.

Grouped results could not be displayed.

Codex reproduces and corrects
  • Old · no saved filter
  • Old · saved filter
  • New · no saved filter
  • New · saved filter
CategoryItems
Aspen18
Birch12
Cedar8

Verification log

  1. Build passes
  2. Client starts
  3. Overview fails
  4. I report the failure
  5. Codex reproduces and corrects
  6. Run regression checks
  7. Grouped results display

The modernised solution compiles successfully.

The Windows client opens in the development environment.

Opening the overview reveals a runtime failure. The data-access layer cannot translate the full grouping query into SQL.

I identify and report the behaviour while manually testing the workflow.

Codex reproduces the failure and corrects how the query is constructed.

Four checks compare the old and new implementations with and without a saved filter.

The corrected overview displays the groups. The finding also prompted a broader review of complex database queries.

Result

Modernised. Verified. In production.

The development build was the first milestone. Broader automated and manual checks followed, including verification by colleagues, before the system went into production.

Working development build

5 days

From discovery, analysis and planning to a running Windows development build.

Subsequent verification and deployment

In production

Colleagues verified the system without requiring further changes to the original framework and data-access migration. The modernised system is in production and continues to support established workflows.

All three code projects
.NET 10
All three data models
EF Core 10
Modernised project and package structure
Schema retained

A later integration expanded the system to 13 business applications. It followed the initial migration.

Reflections

What this taught me about enterprise AI.

Five principles from the project apply to other systems people already rely on.

  • Context is part of implementation.

    Structured knowledge lets AI-assisted work build on documented dependencies and prior decisions.

  • Maintain control over technical change.

    AI can extend implementation capacity. Keep the scope, constraints and approval of changes explicit.

  • Separate complexity where possible.

    Staging major changes makes problems easier to isolate and outcomes easier to verify.

  • Verify actual behaviour.

    Use both automated comparisons and real workflows, even when the code compiles and the application starts.

  • Keep human accountability explicit.

    People remain responsible for technical decisions, acceptable risk and the outcome.

Tools and technologies

AI-assisted engineering
  • Codex
Application development
  • C#
  • .NET Framework
  • .NET 10
  • WPF
  • XAML
Data access
  • Entity Framework 6
  • Entity Framework Core 10
  • SQL
Analysis and verification
  • Roslyn
  • PowerShell
  • JSON
  • CSV
Development tooling
  • Git
  • Visual Studio