Before canceling an Airtable, Notion, HubSpot, Shopify, Zapier, or legacy billing account, run this deterministic 5-gate verification workflow so no foreign key, decimal cent, timezone, or attachment metadata is left behind.
| Gate | Action | Pass Criterion |
|---|---|---|
| 1. Export & Encoding Check | Run POST /v1/infer-schema on full JSON/CSV/SQL exports. |
BOM stripped cleanly; zero broken CP1252 sequences; all foreign keys identified. |
| 2. Coercion & Ambiguity Audit | Run POST /v1/dry-run and inspect coercion_warnings. |
Verify boolean_vs_int_strict_guard, naive_timestamp_assumed_utc, and unresolved_fk_display_name. |
| 3. Secret Redaction | Enable redact: true on automation/CRM exports. |
All tokens converted to {{ENV:...}}; zero raw secrets in generated Python scripts. |
| 4. Local Execution & Rollback | Run generated migration_script_py against a staging SQLite/Postgres DB. |
PRAGMA foreign_keys = ON succeeds and rollback_verifier_py --verify exits 0. |
| 5. Merkle Root Sign-Off | Compare source vs target rows via /v1/verify-checksum. |
source_row_merkle_sha256 == target_row_merkle_sha256 and lost_rows_count == 0. |
/v1/infer-schemacurl -sS -X POST https://migrate.fastmesh.dev/v1/infer-schema \
-H "Content-Type: application/json" \
-d '{"source_format":"auto","target_format":"postgres_ddl","table_name":"escape_audit","source_data":"id,active,amount\n1,true,$19.00"}'