ContentsAI data migration

Guide · AI data migration

AI data migration

This guide is a method for data migration with AI. This part says how an AI is used in it: what the AI builds, where it works, what it can take on, and how people direct and check it. A person can follow every page of the part with no AI.

The workspaceone folder for one migration, open in an editor such as VS Code

What is managed

The project

Project and timelineMeetingsRequirementsDecisionsPackages

The build

SourceTargetMappingsTransformationsChecks

The proof

TestsValidationRunsProblemsTotals

The developer workspace

The filethe SQL of one table, open to read and to change
SELECT
  s.customer_no               AS No,
  trim(s.name)                AS Name,
  map_value('terms', s.terms) AS Payment_Terms
FROM source.customers s
The AI
  • Builds the SQL.
  • Proposes the mappings.
  • Reports each run.
The run

rows in scope 45,000loaded 44,800rejected 200

AI builds the migration. You direct it.

The same picture, as text
 THE WORKSPACE: one folder for one migration, open in an editor such as VS Code

 WHAT IS MANAGED                      THE DEVELOPER WORKSPACE

 THE PROJECT                          THE FILE     the SQL of one table, open to read and to change
   project and timeline               THE AI       builds the SQL, proposes the mappings, reports each run
   meetings                           THE RUN      rows in scope 45,000 · loaded 44,800 · rejected 200
   requirements
   decisions
   packages

 THE BUILD
   source · target · mappings · transformations · checks

 THE PROOF
   tests · validation · runs · problems · totals

 AI builds the migration. You direct it.
With AI

An AI does not migrate the data. It builds the migration, and people make the decisions and maintain control.

For people

Nothing in this part needs an AI. A person can follow the same method, with the same commands of the tool, and do every step by hand.

The picture shows the workspace of a migration as a window. At the left is what is managed: the project, the build, and the proof that the build is right. In the middle is where the work is done. A file is open, the AI builds and reports beside it, and the run below shows the result.

In this part

What an AI needs

An AI that is given a migration and no rules will build something, and it will build it differently each time. The same is true of a person. A new developer, however able, works inside the rules of the project: how a table is built, where a value is mapped, what is counted, and who decides. Those rules are what make the work of one person usable by the next. An AI needs the same, and it comes as three things.

  • A pattern to build toThe pattern of this guide, which the instructions in the migration folder give to the AI, tells it how every table is built. So each table that it builds looks like the others.
  • A tool that runs the buildThe tool runs each file and returns the checks and the counts, and the rows where the AI is permitted to read them. So the AI can measure its own work. Convago is that tool for this guide.
  • People who decideThe business says what the data means, and the project says what is in scope and when to go live. The AI proposes, and a person approves.

A more capable AI still needs these rules, as a senior developer still works to the rules of the project.

More