wiqilee.dev
← All writing
17 October 202626 min readMoveProof

A Successful Import Is Not a Correct One

How I built MoveProof: AI proposes plans, deterministic code executes approved changes, and independent checks verify staged data before commit.

Data migrationData qualityNVIDIA Nemotron
MoveProof combines NVIDIA Nemotron, Tavily-assisted review, human approval, and independent verification to make data migrations auditable.
MoveProof combines NVIDIA Nemotron, Tavily-assisted review, human approval, and independent verification to make data migrations auditable.

The bug that doesn’t crash#

Imagine a spreadsheet containing a customer ID: 00127. Someone imports it into a database. Every row arrives. The logs stay clean. The row count matches. The job reports success, and everyone moves on to the next task.

The value in the database is now 127.

Somewhere in the pipeline, an integer cast quietly stripped the leading zeros. The database accepted the converted value. No schema constraint failed. No exception was thrown. By every check the import job performed, the migration looked successful.

And yet the identifier no longer matches its source. The error could go unnoticed for weeks or months, until another system tries to reconcile a customer record, invoice, or transaction against the original ID and comes up empty.

Successful execution is not semantic preservation.

Figure 1. An integer conversion changes `00127` to `127`. MoveProof detects the identifier mismatch and blocks the commit.
Figure 1. An integer conversion changes 00127 to 127. MoveProof detects the identifier mismatch and blocks the commit.

That one sentence is why I built MoveProof. I’ll walk through the problem, the design that grew out of it, what went wrong along the way, and what I learned about using AI in workflows where silent mistakes can be costly.

The problem goes beyond leading zeros#

Organizations move data between spreadsheets, legacy applications, and databases every day. A migration can finish successfully while changing what the data means. These errors are easy to miss because the resulting values still look valid. The destination accepts them without complaint.

Figure 2. Findings from IBM, Forrester, and Syniti/UKISUG highlight data-quality priorities, reported financial losses, and migration-related data-management challenges.
Figure 2. Findings from IBM, Forrester, and Syniti/UKISUG highlight data-quality priorities, reported financial losses, and migration-related data-management challenges.

The failures I worry about most aren’t the ones that crash a migration. They’re the ones that look successful.

These are some of the failure modes I kept coming back to while designing MoveProof:

Most of these errors can slip through without an exception or a change in row count. Others, like false duplicate detection, can cause valid records to disappear. Either way, a successful job is not proof that the data survived unchanged.

The question that shaped everything#

Large language models are genuinely useful for the parts of migration planning that are difficult to capture in fixed rules. They can interpret an unfamiliar schema, flag potential risks in the limited data samples they see, and explain those risks in language an operator can act on.

But they should never have direct write access to production tables.

A model can be confidently wrong. It can misread a convention. It can also be influenced by malicious instructions embedded in untrusted data. If the same model proposes a migration plan and executes it, a mistaken interpretation can become a database change before anyone has verified what it means.

So I kept coming back to one question:

How can AI help plan a difficult migration while human approval and independent checks control what actually gets committed?

MoveProof is my answer to that question, and I built it around one principle:

AI proposes. Validated code executes. Independent evidence decides. Humans approve ambiguity.

Each clause represents an engineering boundary, not just a slogan. The model proposes a plan, but it cannot approve, execute, verify, or commit it. Validated, deterministic code executes approved changes, while mandatory verification checks determine whether the staged data can be committed.

The rest of this article explains how those boundaries work in practice.

What MoveProof actually is#

MoveProof is a verification-first workspace for structured-data migrations. It takes spreadsheet data through an explicit, reviewable migration contract before the data reaches its destination table. Along the way, it records what the operator approved, what deterministic code executed, what independent checks found, and, just as importantly, what remains unverified.

It’s equally important to explain what MoveProof is not. It isn’t a general-purpose ETL replacement or an autonomous agent with direct write access to production. Its current scope is spreadsheet-to-PostgreSQL migration through two supported destination profiles, with human approval and a database-enforced commit gate.

I’d rather build something narrow and honest than promise something broad and vague.

The workflow, from upload to proof#

The same verification-first workflow applies to both supported destination profiles. Repair happens only when needed, and committing data always requires an explicit human action.

  1. Upload. The operator selects a destination profile and uploads a CSV, TSV, XLSX, or XLSM file. MoveProof preserves the original file bytes and their checksum, so subsequent runs can return to the actual source rather than previously transformed data.
  2. Propose. NVIDIA Nemotron, accessed through Nebius Token Factory, or a credential-free deterministic fallback generates a typed mapping proposal. The model can propose transformations, but it cannot execute them.
  3. Validate. Deterministic rules check the proposed plan against an allowlist of supported operations, destination compatibility requirements, and required acknowledgments. A plan that fails validation cannot proceed to approval.
  4. Approve. The operator reviews potentially lossy transformations, resolves ambiguous interpretations, and approves a specific, versioned plan. Date formats and decimal conventions require explicit decisions rather than unchecked model assumptions.
  5. Stage. A deterministic executor applies only the approved transformations, writing the results to isolated PostgreSQL staging tables instead of the final destination.
  6. Verify. An independent verifier reads the staged rows back from the database and checks them against the approved contract. Required verification failures block the commit, while advisory checks are reported separately.
  7. Repair. If verification fails, the operator can review the evidence and approve a revised plan. The rerun starts from the original uploaded file, never from the previous run’s transformed output.
  8. Commit. The operator explicitly requests the final write. A database-enforced commit gate checks the stored approval, contract consistency, and mandatory verification results for the corresponding run before allowing the data to reach the destination.

The most important distinction is easy to miss: a transformation can execute successfully and still fail verification. A failed or missing mandatory check blocks the commit. That protection is enforced at the database boundary, not merely by disabling a button in the interface.

Figure 3. MoveProof’s eight-step workflow, with conditional repair and commits gated by mandatory verification checks.
Figure 3. MoveProof’s eight-step workflow, with conditional repair and commits gated by mandatory verification checks.

Two destinations, one set of safeguards#

MoveProof supports two destination profiles. Both follow the same approval, staging, verification, and commit controls. That second profile matters: it tests whether the safeguards hold across different data structures instead of being tailored to a single table.

Customer records: customers_v1#

This profile handles customer identifiers, contact information, signup dates, and balances. It’s a familiar migration scenario with a less obvious lesson: preserving identifiers as text, interpreting dates according to the correct convention, and maintaining approved decimal precision are contract requirements, not cosmetic preferences.

Robot calibration records: robot_calibration_v1#

This profile handles robot and joint identifiers, zero offsets, gear ratios, firmware versions, sensor frames, and calibration dates. It turned out to be the more demanding of the two, for reasons I hadn’t fully anticipated.

Each robot has multiple joints, so robot_id repeats across rows by design. That doesn’t make the rows duplicates. Each calibration record is identified by the pair (robot_id, joint_name). Separately, robot_id must preserve its exact textual value, so 0017 cannot silently become 17. Those are two distinct requirements, and I initially treated them as the same problem. I'll come back to that mistake later.

Firmware versions are another trap. 3.08 looks like a decimal, but it’s a version label. Parse 3.10 as a number and it becomes 3.1, changing the meaning without raising an error. Gear ratios and zero offsets also need explicit precision rules. A joint’s zero offset can be negative, and neither its sign nor its approved precision should change silently.

What the robotics profile does not claim#

I want to be careful here because robotics invites overstatement. The robotics profile verifies record integrity during migration, not whether a robot is correctly calibrated or safe to operate. MoveProof doesn’t control robots, validate physical calibration, or certify hardware safety. Its evidence reports explicitly acknowledge those limitations.

The robot isn’t the product. The evidence that its calibration records passed the required migration checks is.

Where the AI fits: Nemotron 3 Super and Ultra#

MoveProof uses NVIDIA Nemotron 3 Super and Ultra through Nebius Token Factory to assist with migration planning. This is where language models are most useful: interpreting unfamiliar schemas, proposing typed mappings, identifying potentially ambiguous data representations, and explaining risks in terms an operator can act on. The models work from a schema summary and a limited sample of source rows, not the full dataset. Their role is to propose and explain, never to execute changes.

The default pass#

Every AI-assisted migration proposal starts with nvidia/nemotron-3-super-120b-a12b. Super performs the initial reasoning pass, interpreting the source schema and proposing a typed migration plan. Its response is parsed against a strict, typed schema and then checked by deterministic validators. If the proposal contains an operation outside the supported allowlist, it fails validation and cannot proceed to human approval. The model can suggest a transformation, but it cannot bypass the rules that determine whether that transformation is allowed.

When a second, deeper pass is justified#

Not every migration needs a second model pass. Mapping a column named email to email rarely requires deeper reasoning, and sending every proposal to a larger model would add cost and latency without necessarily improving the result.

That’s why MoveProof makes escalation a deterministic decision, not a model preference. A small routing module inspects the validation findings and counts concerns. Each concern is either a mapping that requires an explicit, named acknowledgment because it may lose information, or a non-fatal validation issue that suggests the proposed interpretation deserves closer review.

concerns = mappings requiring acknowledgment
         + non-fatal validation issues
if concerns >= 2:
    request a second proposal from Nemotron 3 Ultra
    validate the second proposal
    fall back to validated Super if needed
else:
    keep the validated Super proposal

A date-format mapping that requires explicit human acknowledgment, combined with a non-fatal mixed-decimal warning, is enough to trigger a second pass with Ultra. A straightforward mapping, or a single leading-zero concern on its own, doesn’t meet that threshold.

Two things are deliberately absent from this routing rule. First, there is no self-reported AI confidence score. The reply schema doesn’t include one, and relying on an uncalibrated number to decide when to escalate would make the decision harder to explain and audit.

Second, there is no dependence on dataset size. Row count tells me how much data is being moved, not how ambiguous the proposed mapping is. A small file can contain several interpretation hazards, while a much larger file can have none.

Capability without authority#

This is the design decision I feel most strongly about. Both models receive the same schema summary and the same bounded sample of at most five rows. Ultra gets no additional source records or privileges. Neither model can execute SQL, approve a migration plan, alter verification results, invoke the commit gate, or write to a destination table. The routing module also has no direct imports of the repository, database driver, or executor, and an automated test checks that boundary.

Model capability may increase. Model authority does not.

If Ultra is unavailable, its request fails, or its response cannot pass validation, MoveProof falls back to the validated Super proposal. The same human review and commit requirements still apply, and the fallback is recorded rather than presented as a successful Ultra pass.

Every routing decision produces a structured model_routing_decided audit event recording the default model, the selected model, whether escalation occurred, and the reasons behind it. Months later, a reviewer can understand why a migration used the larger model without having to reconstruct the decision from application code. I also exercised the full Super → deterministic validation → Ultra path through automated testing and confirmed that the routing decision was recorded.

One important caveat: I haven’t published comparative latency or cost benchmarks. Selective escalation is a deliberate architectural choice, not a measured performance improvement I’m claiming.

The small module that catches what plan validation misses#

While building the model router, I ran into a subtle problem. Plan validation can determine whether a proposed transformation is allowed, but it cannot, by itself, detect inconsistent numeric conventions in the sampled data. That left a class of interpretation risks invisible to the routing decision.

I addressed this with a small deterministic module. When a mapping proposes a decimal conversion and the planning sample contains both dot-decimal values like 1,250.00 and comma-decimal values like 1250,00, the module raises a single non-fatal advisory for that column.

The check is deliberately narrow. It examines only the rows already sampled for planning, never requests additional source data, and makes its decision independently of the model’s free-text risk assessment. Its advisory message contains no sampled values, and the warning cannot invalidate a plan on its own. A column that consistently follows either decimal convention is not flagged.

The advisory contributes to the deterministic concern count used for model routing. It can help justify a second pass with Ultra, but it never grants the model additional authority or replaces human approval.

Human decisions that actually matter#

There’s a failure mode in review tools I wanted to avoid: ask operators to approve every minor transformation, and eventually they stop paying attention. Approval becomes another button to click rather than a meaningful decision.

MoveProof focuses human review on decisions that deterministic rules cannot safely make, along with explicit acknowledgment of potentially lossy transformations. In the robotics profile, two kinds of interpretation require particular attention:

Each option is presented with a worked example showing how the choice affects the resulting value. The goal is to make the consequences visible before the operator approves anything.

Approval is tied to a server-generated, stored proposal version and its contract hash. The browser doesn’t supply replacement mappings for execution. Instead, the server reloads and revalidates the stored plan, ensuring that the approved version is the one used for execution. Potentially lossy transformations also require explicit, field-specific acknowledgments.

There’s another safeguard behind the review interface. The backend can inspect the entire persisted source deterministically without exposing additional rows to either model. For date fields, it automatically selects the canonical ISO convention only when every non-empty value is already a valid YYYY-MM-DD date. Otherwise, the interpretation remains a human decision. A five-row sample is useful for AI-assisted planning, but it never replaces deterministic checks against the full source.

One limitation is worth making explicit: recorded approvals are audit entries, not cryptographic signatures or independently verified enterprise identities. MoveProof doesn’t claim otherwise. Stronger approval provenance remains future work.

Verification independent of the planner#

This is where MoveProof differs from a typical AI-assisted transformation workflow. Asking a model to confirm its own output isn’t independent verification. Neither is using the same transformation logic to decide whether that transformation was correct.

After the approved plan runs, MoveProof reads the actual staged rows back from PostgreSQL. A separate verifier checks what the database actually stored against the approved migration contract, rather than relying on the model’s reasoning or the executor’s success status.

That distinction matters: a transformation can execute without errors and still produce data that fails a mandatory verification check.

Four results, never one score#

MoveProof doesn’t reduce verification to a single reassuring score. Each check reports one of four distinct outcomes:

Not verified is never reported as passed.

That rule sounds small, but it shapes how I think about evidence. A report that lists only passing checks makes it easy to assume everything else was verified too. I wanted MoveProof to distinguish what it can prove from what remains unresolved.

The distinction also matters at commit time. Failed or missing mandatory checks block the commit. Unavailable advisory checks remain explicitly marked as Not verified. They don’t silently become passes, and they don’t block a commit unless the approved contract requires them.

Mandatory and advisory checks#

Not every verification result carries the same authority. Mandatory checks determine whether a migration is eligible for commit. They cover row accounting, identifier preservation, duplicate detection, required fields, uniqueness, decimal precision, date parsing, and rejected transformations. If a mandatory check fails or lacks a passing result, the database-enforced commit gate stays closed.

Advisory checks provide additional evidence without independently blocking a commit. Their outcomes are still recorded and reported, including Not verified when a check cannot establish the property it was meant to test.

I kept these categories separate for a reason. Treating every advisory finding as a fatal error would block migrations that satisfy their mandatory requirements. Ignoring advisory findings altogether would hide information a reviewer should see. Neither approach would give an honest picture of what was actually verified.

Why Rust is in the verification path#

A Rust component performs canonical whole-row reconciliation, making it possible to compare records consistently across different representations. Under its documented rules, 00127 and 127 are different identifiers, while 1200.50 and 1200.5 represent the same decimal value. Null and the empty string remain distinct. Unicode normalization follows explicit rules, and field order doesn't change a row's canonical identity.

I built a Python reference implementation alongside Rust to test those canonicalization rules independently. Parity tests compare their results and fail when the two implementations disagree. Python is there to test Rust, not to replace it at runtime.

There’s an important distinction here: canonical reconciliation is advisory under the current contract. It provides additional evidence and can expose discrepancies, but it doesn’t independently determine commit eligibility. That decision belongs to the mandatory verification checks and the database-enforced commit gate.

If the Rust binary is unavailable, the reconciliation result is explicitly marked Not verified, with a reason. It never silently becomes Passed, and MoveProof doesn’t substitute the Python implementation to make it appear that Rust ran. A migration can still be committed if all mandatory requirements are satisfied.

That’s the boundary I wanted: additional verification evidence without pretending an unavailable check succeeded or allowing an advisory dependency to block an otherwise eligible migration.

A commit gate the interface cannot bypass#

User interfaces have bugs. A button can be enabled when it shouldn’t be. That’s why MoveProof doesn’t rely on the interface to enforce commit eligibility.

When an operator requests a commit, the backend checks persisted records, not what the browser reports. It verifies that the execution belongs to the correct migration, that the executed plan is still the latest approved version, and that the stored contract hashes match. It also requires current verification results for that exact execution, with every mandatory check present and passed and no unresolved review decisions.

The database locks the migration record before evaluating commit eligibility, preventing concurrent attempts from racing through the gate. Conflict handling fails closed by default. Idempotent request handling protects against duplicate writes during retries, while rollback is scoped to the rows written by the specific migration.

A mandatory check that never ran blocks the commit just as firmly as one that failed. Missing evidence is not permission to proceed.

Repair starts from the source#

Repair follows the same principle: don’t pretend to recover information that has already been lost. Each repair creates a new, immutable plan version for human review and approval, then reparses the original uploaded bytes instead of reusing previously transformed data.

If an integer cast turns 00127 into 127, the damaged value alone cannot tell us how many leading zeros were lost. Guessing would only introduce another potentially incorrect transformation. That’s why MoveProof returns to the preserved source and executes the revised, approved plan from there.

Repair is a new verified attempt, not a reconstruction from damaged output.#

External evidence, deliberately kept off the authority path#

Some migration questions cannot be settled by an AI model or deterministic validation alone. 00127 might be a zero-padded identifier, but only the source system’s rules or someone familiar with them can establish whether those zeros are significant. Date formats and decimal conventions can be just as dependent on context.

For those situations, MoveProof includes an External Evidence Check powered by Tavily. It retrieves relevant public references for a flagged mapping and presents them in the existing review step, alongside the decision the operator needs to make. Those references can inform the review, but they cannot establish the source system’s conventions on their own.

The boundary around this feature is deliberate:

Each lookup produces a structured external_evidence_checked audit event containing sanitized query and source metadata, without raw records or credentials.

This is the distinction I wanted to preserve: external context can help a person make a better-informed decision, but it cannot make that decision for them. Tavily does not independently verify the migrated dataset, and MoveProof never presents its search results as proof of data integrity.

Figure 4. MoveProof separates AI planning, human approval, deterministic execution, and mandatory verification, while Tavily and Rust reconciliation remain advisory.
Figure 4. MoveProof separates AI planning, human approval, deterministic execution, and mandatory verification, while Tavily and Rust reconciliation remain advisory.

What you get at the end: evidence, not a green tick#

A migration can finish with a reassuring “completed successfully” message and still leave important questions unanswered. I wanted MoveProof to produce something a reviewer could actually inspect. That’s why it provides two distinct outputs.

The verified CSV contains the transformed rows exported from the stored, verified result, rather than simply reproducing what the executor claims to have written.

The evidence report, available in JSON, HTML, and PDF, explains what happened and what was verified. It includes the original source checksum, destination contract, approved plan and acknowledgments, executed transformations, row-accounting arithmetic, verification results and supporting evidence, detected discrepancies, rejected rows, recorded human approvals, and explicit limitations, including properties marked Not verified.

All three report formats are generated from a single canonical evidence object, keeping the reported findings consistent across formats. A successful verification means that the mandatory invariants checked against the approved contract held for that execution. It does not mean every possible semantic error has been ruled out.

That’s the distinction I wanted the evidence to make clear: what MoveProof verified, what it found, and what it cannot claim to have proven.

What happened when it ran for real#

Unit tests tell me whether individual rules behave as expected. They don’t, on their own, prove that the deployed workflow behaves correctly across upload, approval, staging, verification, and the commit gate.

So I ran MoveProof end to end and recorded what actually happened. The results below come from documented runs, not assumptions about how the system would behave on arbitrary datasets.

A successful import that had to be rejected#

In a deployed end-to-end test, I deliberately reproduced a legacy import that cast zero-padded customer identifiers to integers. All four of four identifiers lost their leading zeros. The import completed without an execution error, but independent verification caught the identifier mismatches and blocked the commit.

I then approved a repair plan that reprocessed the original uploaded bytes rather than the damaged output. The corrected run reported 9 passed checks, 0 failed checks, 0 outstanding reviews, and 2 advisory checks marked Not verified.

All four corrected rows were committed, with none skipped under the fail-closed conflict policy. After confirming the result, I rolled back the test migration.

Figure 5. MoveProof blocks a commit after four customer IDs lose their leading zeros, then verifies an approved repair using the original source.
Figure 5. MoveProof blocks a commit after four customer IDs lose their leading zeros, then verifies an approved repair using the original source.

That sequence is the heart of the product: an import that looked successful did not earn a pass simply because it finished.

Robotics on the deployed stack#

I also tested all three robotics fixtures against the deployed MoveProof stack, each designed to exercise a different part of the migration workflow:

The verified exports preserved zero-padded robot identifiers, firmware versions as text, ISO dates, and exact decimal values, including negative zero offsets.

I also tested the commit boundary. An existing destination identity triggered the fail-closed conflict policy, preventing the write. Rollback was scoped to the rows created by the relevant migration, leaving unrelated records untouched.

The parts that went wrong#

Not everything worked the first time. Some of the most useful lessons came from discovering where my initial assumptions fell short. Here are the problems that taught me the most.

Testing a rule is not testing a workflow#

My first routing test on the deployed stack didn’t escalate to Ultra. The routing logic was correct, and every unit test passed. The problem was the test fixture: its columns didn’t match the destination schema, so validation returned fatal errors instead of the non-fatal interpretation concerns needed to trigger a second pass.

Once I corrected the fixture to match the actual destination schema, the deployed workflow surfaced the expected concerns and escalated to Ultra under the two-concern rule.

The lesson was simple: my unit tests had verified the routing rule, but they hadn’t verified the workflow needed to reach it.

One robot, several valid rows#

My first robotics fixture used a different robot on every row. That hid a bug in my uniqueness logic. When I added a fixture with multiple joints belonging to the same robot, the problem became obvious: using robot_id alone as the row key caused valid calibration records to be treated as duplicates or conflicts.

The fix was to separate two requirements I had mistakenly combined. (robot_id, joint_name) identifies each calibration record, while robot_id must retain its exact textual value. One robot can have several valid joint records, and an identifier like 0017 must never silently become 17.

The bug wasn’t in the data. It was in my assumption about what made a record unique.

When a commit’s outcome is unknown#

A database transaction can commit successfully even if the response never makes it back to the browser. Earlier in development, my interface treated a missing response as proof that nothing had been written. That was a dangerous assumption. A lost response doesn’t tell you whether the transaction succeeded or failed.

MoveProof now reports the outcome as unconfirmed, prevents further commit attempts until the operator refreshes the recorded state, and relies on persisted backend records to establish what actually happened.

An unknown outcome is not the same as a failed transaction.#

What I learned#

The stack, and why each part exists#

I built MoveProof around a simple rule: each technology has a defined responsibility, and no AI component controls the entire migration workflow.

The repository also includes deterministic synthetic fixtures covering 12 planted hazard categories, including identifier loss, conflicting keys, missing fields, ambiguous dates, decimal errors, Unicode differences, formula-like cells, and prompt-injection text. A separate test manifest defines the expected outcomes, but the application never reads it to generate results.

What comes next#

MoveProof is intentionally narrow in its current scope. There are several directions I want to explore next, but everything below is planned work, not functionality available today:

I want to expand what MoveProof can verify without weakening the boundaries that make its current results trustworthy.

Closing thought#

As language models become more capable, it’s tempting to give them more authority. Building MoveProof convinced me that the better approach is often the opposite: let a model do deeper reasoning over the same bounded input without expanding what it can access or change.

The goal remains deliberately narrow and testable: migrate data under an approved contract, verify the rows actually stored in staging, report what the checks established and what remains unverified, and block commits whenever mandatory verification requirements aren’t met.

A model’s proposal should never become permission to write.#

Move data. Prove what changed.

Try MoveProof#

Figure 6. Recreated MoveProof landing page illustrating how independent verification catches an ID mismatch (00127 → 127). The demo URL appears in the address bar.
Figure 6. Recreated MoveProof landing page illustrating how independent verification catches an ID mismatch (00127 → 127). The demo URL appears in the address bar.

Curious to try MoveProof? The live app URL appears in Figure 6. Watch the full demo below to see the complete migration workflow, from AI-assisted planning through independent verification to controlled commit. You can also explore my Devpost submission for more details.

I built MoveProof independently. If you’ve encountered a data migration error that went unnoticed despite a successful import, I’d love to hear about it. Feel free to connect with me on X (@wiqi_lee).

Also on Medium

I publish every article on Medium too. Follow me there to get new posts in your feed, or leave a clap if this one helped.

Wiqi LeeData scientist, AI/ML researcher and software engineer. More about me.