#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

ComponentStatusNotes
Local Postgres 15✅ RunningLoaded with staging Supabase creds currently
Facade backend on localhost✅ Running/tmp/facade
Frontend on localhost✅ Running/tmp/twill-ai-ui
Prod DB dump (sanitized)❌ BlockedNeed from Martin — see steps below
Read-only prod DB access🔄 Martin creatingSeparate read-only user for Morty (not shared with Sparsh)
Frontend tunnel (ngrok/CF)❌ TODOExpose UI for anyone with @twillpayments.com email
Init script for test users✅ AvailableMartin’s script creates partner + 3 user types (owner, rep, merchant)
Own branch per repo❌ TODOCreate morty/dev branches on facade + twill-ai-ui

Branch Strategy

  • Own branch: morty/dev on facade and twill-ai-ui
  • **Branch prot

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets