Migrate-Anything
SHA-256 MERKLE RECEIPT · LOST_ROWS_COUNT == 0

Row-Level Merkle SHA-256 Migration Verification

Row-count checks miss silent truncation, boolean-to-integer collapse, float rounding, and timezone shifts. Migrate-Anything hashes every normalized cell with an explicit strong-type tag and computes a binary Merkle root across source and target tables.

Canonical Hashing & Binary Merkle Tree Rules

StepSpecificationWhy It Prevents Silent Drift
1. Schema completeness Materialize omitted JSON keys (e.g., unchecked Airtable checkboxes → false, nullable fields → null) before hashing. Prevents row-object key omission from producing false-negative diffs.
2. Type-tagged JSON cells Sort keys lexicographically; encode each cell as {"t":"<strong_type>","v":<value>} and hash sha256(b"row:" + canonical_json). {"t":"bool","v":true} and {"t":"int","v":1} produce completely different SHA-256 digests.
3. Pairwise Merkle reduction Sort leaf digests (sort_leaves=True), duplicate odd leaves, and compute sha256(b"node:" + bytes.fromhex(left) + bytes.fromhex(right)) up to the root (sha256(b"merkle:empty") if empty). Produces a single deterministic root hash and pinpoints exact mismatched row indices via diff_pinpoints.

Independent Parity Check via /v1/verify-checksum

curl -sS -X POST https://migrate.fastmesh.dev/v1/verify-checksum \
  -H "Content-Type: application/json" \
  -d '{
    "source_rows": [{"id": 1, "active": true, "amount": "19.00"}],
    "target_rows": [{"id": 1, "active": true, "amount": "19.00"}]
  }'
Verify source vs target parity in one API or MCP call
Call migrate_verify_checksum via /mcp. Invalid requests return HTTP 422 ($0 billed).
Open 5s Try-Now Sandbox