---
name: lockin-breaker-studio
description: 3-Stage deterministic SaaS escape studio at https://escape.fastmesh.dev — exact Decimal 3-year TCO & live SQLite benchmark, lossless Salesforce/HubSpot, Airtable, Shopify, Zapier/Make, and Notion migration with per-row SHA-256 parity proofs, and standalone Open REST + /mcp API wrapper. Zero retention; strictly $0.00 billed (charge_micros: 0) on empty/corrupt input or parity failure.
---

# Lockin-Breaker-Studio (`https://escape.fastmesh.dev`)

Lockin-Breaker-Studio escapes high-lock-in SaaS platforms (**Salesforce/HubSpot CRM**, **Airtable**, **Shopify / Shopify Plus**, **Zapier / Make**, and **Notion**) in three deterministic pure-Python stages:
1. **Stage 1 (`POST /v1/escape/tco-benchmark`)**: Exact `decimal.Decimal` 3-year SaaS lock-in TCO vs self-hosted open-stack cost, schema/automation bloat audit, and live SQLite insert/query p50/p95 & QPS benchmark scorecard.
2. **Stage 2 (`POST /v1/escape/dry-run`, `/v1/escape/migrate`, `/v1/escape/verify-parity`)**: Auto-detects format, infers PK/FK/StrongTypes (`bool != int`, `Decimal` currency, ISO-8601 UTC dates), compiles SQLite (`sqlite3`) + PostgreSQL DDL + canonical JSONL + Python 3 stdlib webhook runners, and verifies every row via canonical per-row SHA-256 + Merkle table digests.
3. **Stage 3 (`POST /v1/escape/wrap-api`, `/v1/escape/full-studio`)**: Compiles the migrated SQLite DB into a standalone runnable Python 3 stdlib REST + `/mcp` microservice with API key auth, token-bucket rate limiter, optional Creem billing guard, and `/v1/export` Zero-Lock-In dumps.

## Strict Safety, Privacy & Billing Guarantees
- **Zero Customer Data Retention**: Payloads execute strictly in memory or ephemeral request-scoped temp directories; raw exports and SQLite DBs are never retained, resold, or used for model training.
- **Strict `$0` Failure Guardrail**: Empty, whitespace, sentinel (`N/A`, `null`), corrupt exports, HTTP `400`/`422` validation errors, dropped rows, or 1-byte SHA-256 parity mismatches trigger atomic rollback with `"billable_usd": "0.00"` and `"charge_micros": 0`.
- **Automatic Credential Redaction**: Embedded API tokens or Authorization headers in Zapier/Make exports are redacted into `{{ENV:<ALIAS>_<KEY>}}` placeholders.

---

## 1. Native MCP JSON-RPC 2.0 Quickstart (`POST https://escape.fastmesh.dev/mcp`)

Protocol version: `2024-11-05`. Supported methods: `initialize`, `notifications/initialized`, `ping`, `tools/list`, `tools/call`.

### Exposed MCP Tools
1. `escape_tco_benchmark` — Stage 1 Decimal 3-year TCO + bloat audit + live SQLite benchmark
2. `escape_dry_run` — Stage 2 auto-detection, PK/FK/type inference & conflict report
3. `escape_migrate` — Stage 2 lossless SQLite + Postgres DDL + JSONL + Python webhook runner + SHA-256 parity
4. `escape_verify_parity` — Independent source vs target per-row SHA-256 & 1-byte tamper detector
5. `escape_wrap_api` — Stage 3 standalone Python REST + `/mcp` API compiler with `/v1/export`
6. `escape_full_studio` — One-shot idempotent Stage 1 + Stage 2 + Parity + Stage 3 orchestrator

### Initialize & List Tools (`curl`)
```bash
curl -sS -X POST https://escape.fastmesh.dev/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05"}}'

curl -sS -X POST https://escape.fastmesh.dev/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'
```

---

## 2. Ecosystem Escape Recipes (Exact `curl` & MCP Payloads)

### Recipe 1: Escape Salesforce / HubSpot CRM (Multi-Table 15/18-Char IDs, Orphan FKs & 3-Year TCO)
```bash
# Stage 1 TCO + Live SQLite Benchmark (REST)
curl -sS -X POST https://escape.fastmesh.dev/v1/escape/tco-benchmark \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "salesforce",
    "seats": 50,
    "seat_price_monthly_usd": "175.00",
    "api_overage_monthly_usd": "3000.00",
    "addons_monthly_usd": "3500.00",
    "source_data": "\ufeffId,AccountId,OwnerId,Email,Amount,IsWon,RetryCount,CloseDate,Notes\n0065g00000Aa1Bb,0015g00000Xx9Yy,0055g00000Usr01,vp@example.com,\"$48,500.00\",true,1,2026-12-01,\"Signed MSA\nNet 15\"\n0065g00000Aa2Cc,0015g00000Xx9Yy,0055g00000Ghost,cto@example.com,\"($1,250.50)\",false,0,11/30/2026 09:15 AM,N/A"
  }'

# Stage 2 Dry-Run + Lossless Migration (MCP tools/call)
curl -sS -X POST https://escape.fastmesh.dev/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 11,
    "method": "tools/call",
    "params": {
      "name": "escape_migrate",
      "arguments": {
        "platform": "hubspot",
        "table_name": "hubspot_deals",
        "source_data": "\ufeffRecord ID,Deal Name,Owner ID,Amount,Marketing Contact,Sessions,Create Date\n401,Acme Annual,99812,\"$18,500.00\",true,1,2026-11-30T14:20:00Z\n402,Beta Renewal,99812,\"$4,250.50\",false,0,2026-12-01T09:10:00Z"
      }
    }
  }'
```

### Recipe 2: Escape Airtable (Hoist `rec...` PKs, Linked Junctions, Omitted Booleans & Expiring Attachments)
```bash
curl -sS -X POST https://escape.fastmesh.dev/v1/escape/full-studio \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "airtable",
    "table_name": "airtable_projects",
    "seats": 40,
    "seat_price_monthly_usd": "45.00",
    "addons_monthly_usd": "450.00",
    "source_data": {
      "records": [
        {
          "id": "recAlpha901",
          "createdTime": "2026-11-28T10:00:00Z",
          "fields": {
            "Project Name": "Core Escape",
            "Is Approved": true,
            "Budget USD": "14950.25",
            "Owners": ["recOwn01", "recOwn02"],
            "Tags": ["Legal, US", "SQLite"],
            "Attachments": [{"id": "att01", "filename": "spec.pdf", "size": 204800, "type": "application/pdf", "url": "https://v5.airtableusercontent.com/expiring-demo"}]
          }
        },
        {
          "id": "recBeta902",
          "createdTime": "2026-11-29T12:15:00Z",
          "fields": {
            "Project Name": "Legacy Cleanup",
            "Budget USD": "4200.00",
            "Owners": ["recOwn01"]
          }
        }
      ]
    }
  }'
```

### Recipe 3: Escape Shopify / Shopify Plus (Multi-SKU Variants, Order Line Items & Decimal Tax)
```bash
# Convert Shopify Multi-SKU Variants CSV into SQLite + Postgres DDL + Open REST & /mcp API
curl -sS -X POST https://escape.fastmesh.dev/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 12,
    "method": "tools/call",
    "params": {
      "name": "escape_full_studio",
      "arguments": {
        "platform": "shopify",
        "table_name": "shopify_catalog",
        "seats": 1,
        "seat_price_monthly_usd": "2300.00",
        "addons_monthly_usd": "850.00",
        "source_data": "Handle,Title,Vendor,Option1 Name,Option1 Value,Variant SKU,Variant Price,Variant Inventory Qty\npro-hoodie,Heavyweight Hoodie,Acme Goods,Size,M,HD-BLK-M,79.95,120\npro-hoodie,,,Size,L,HD-BLK-L,79.95,85\npro-hoodie,,,Size,XL,HD-BLK-XL,84.95,40"
      }
    }
  }'
```

### Recipe 4: Escape Zapier / Make (Compile JSON Blueprints to Self-Hosted Python 3 Stdlib Webhooks)
```bash
curl -sS -X POST https://escape.fastmesh.dev/v1/escape/migrate \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "zapier",
    "table_name": "zap_lead_router",
    "source_data": {
      "title": "Inbound Lead -> Filter -> CRM Webhook",
      "polling_interval_minutes": 5,
      "steps": [
        {"id": 1, "type": "trigger", "app": "webhook", "event": "catch_hook"},
        {"id": 2, "type": "filter", "condition": "amount > 500"},
        {"id": 3, "type": "action", "app": "http_post", "url": "https://api.example.com/leads", "headers": {"Authorization": "Bearer example_token_to_redact"}, "body": {"email": "{{1__email}}", "amount": "{{1__amount}}"}}
      ]
    }
  }'

# Make.com flow[] blueprint via MCP
curl -sS -X POST https://escape.fastmesh.dev/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 13,
    "method": "tools/call",
    "params": {
      "name": "escape_migrate",
      "arguments": {
        "platform": "make",
        "table_name": "make_order_fanout",
        "source_data": {
          "name": "Order Fanout Blueprint",
          "flow": [
            {"id": 1, "module": "gateway:CustomWebHook", "mapper": {}},
            {"id": 2, "module": "builtin:BasicFeeder", "mapper": {"array": "{{1.body.items}}"}},
            {"id": 3, "module": "http:ActionSendData", "mapper": {"url": "https://api.example.com/fulfill", "item_id": "{{2.id}}"}}
          ]
        }
      }
    }
  }'
```

### Recipe 5: Escape Notion (UTF-8/Emoji Headers, 32-Char Relation UUIDs & Nested Markdown)
```bash
curl -sS -X POST https://escape.fastmesh.dev/v1/escape/full-studio \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "notion",
    "table_name": "notion_roadmap",
    "seats": 60,
    "seat_price_monthly_usd": "20.00",
    "addons_monthly_usd": "200.00",
    "source_data": "\ufeff🚀 Task,Owner 👤,Sprint Relation,Budget 💰,Empty Legacy Col\nShip Open API,ops@example.com,Sprint Alpha (https://www.notion.so/Sprint-Alpha-9f8e7d6c5b4a3210fedcba9876543210),$2450.00,\nVerify Parity,dev@example.com,Sprint Alpha (https://www.notion.so/Sprint-Alpha-9f8e7d6c5b4a3210fedcba9876543210),$1200.50,"
  }'
```

---

## 3. Independent Per-Row SHA-256 Parity & Stage 3 Open API Wrapper

### Independent 1-Byte Tamper Check (`POST /v1/escape/verify-parity`)
```bash
curl -sS -X POST https://escape.fastmesh.dev/v1/escape/verify-parity \
  -H "Content-Type: application/json" \
  -d '{
    "source_rows": [
      {"id": "rec01", "active": true, "amount": "1250.50"},
      {"id": "rec02", "active": false, "amount": "499.00"}
    ],
    "target_rows": [
      {"id": "rec01", "active": true, "amount": "1250.50"},
      {"id": "rec02", "active": false, "amount": "499.01"}
    ]
  }'
# Expect: parity_ok: false, mismatched row_index 1 flagged, billable_usd: "0.00", charge_micros: 0
```

### Wrap Migrated SQLite DB into Standalone REST + `/mcp` API (`POST /v1/escape/wrap-api`)
```bash
curl -sS -X POST https://escape.fastmesh.dev/v1/escape/wrap-api \
  -H "Content-Type: application/json" \
  -d '{
    "service_name": "open_crm_api",
    "table_name": "hubspot_deals",
    "rate_limit_rps": 25,
    "enable_creem_billing_guard": true,
    "source_data": "deal_id,amount_usd,stage\nD-101,18500.00,closedwon\nD-102,4250.50,proposal"
  }'
# Emits zero-dependency Python 3 stdlib REST + /mcp microservice with API key auth,
# token-bucket rate limiter, optional Creem billing guard, and /v1/export zero-lock-in dumps.
```

---

## 4. Treg Hub CLI (`0%` Seller Commission) & Causal Bazaar
```bash
treg call lockin-breaker-studio --data '{
  "platform": "airtable",
  "mode": "full_studio",
  "table_name": "airtable_projects",
  "seats": 40,
  "monthly_seat_usd": "45.00",
  "source_data": "record_id,project_name,budget_usd,is_active\nrecA1001,Warehouse Exit,$14500.50,true"
}'
```
- **Causal Bazaar Hand ID**: `lockin_breaker_studio_f10_v1` (`is_public: 1`, `max_price_micros: 2000000` / `$2.00` cap, `$0` on empty/corrupt/parity failure).
- **Creem One-Time Flat-Fee Packs** (`https://escape.fastmesh.dev/#pricing`):
  - **Single Escape Pack (`sku_f10_single_escape_149`)**: `$149` (`150` non-expiring studio runs)
  - **Multi-App Migration Pack (`sku_f10_multi_app_399`)**: `$399` (`600` non-expiring studio runs)
  - **Enterprise Break-Free Studio (`sku_f10_enterprise_studio_999`)**: `$999` (`2,500` non-expiring studio runs)

Support: `escape@fastmesh.dev` | Ops: `ops@fastmesh.dev`
