#1120 — Morty env
Repo: Twill-AI/facade State: open | Status: open Assignee: meliascosta, nadddder, Morty
Created: 2026-03-12 · Updated: 2026-03-13
Description
Morty Local Development Environment
Goal
Give Morty (AI dev agent) a fully functional local development environment with prod data, exposed via tunnel for QA by Mike/Nader — without Azure deployment or Supabase access.
Architecture (agreed in sync Mar 12, 2026)
All local, no cloud infra needed:
- Postgres: Local instance with copy of prod data (sanitized user fields)
- Facade: Running locally, connected to local Postgres
- Frontend (twill-ai-ui): Running locally
- Auth: Mock auth service (already exists —
MockAuthService) - Tunnel: Expose frontend URL via ngrok or Cloudflare tunnel for external QA access
What Morty Needs
| Component | Status | Notes |
|---|---|---|
| Local Postgres 15 | ✅ Running | Loaded with staging Supabase creds currently |
| Facade backend on localhost | ✅ Running | /tmp/facade |
| Frontend on localhost | ✅ Running | /tmp/twill-ai-ui |
| Prod DB dump (sanitized) | ❌ Blocked | Need from Martin — see steps below |
| Read-only prod DB access | 🔄 Martin creating | Separate read-only user for Morty (not shared with Sparsh) |
| Frontend tunnel (ngrok/CF) | ❌ TODO | Expose UI for anyone with @twillpayments.com email |
| Init script for test users | ✅ Available | Martin’s script creates partner + 3 user types (owner, rep, merchant) |
| Own branch per repo | ❌ TODO | Create morty/dev branches on facade + twill-ai-ui |
Branch Strategy
- Own branch:
morty/devon facade and twill-ai-ui - **Branch prot
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets