Phase 1: Repository Architecture & Standalone Package Setup
- [x] Create standalone package directory
mlazy_engine/
- [x] Configure
.gitignore for Python cache, .env secrets, and database exclusions
- [x] Create GitHub Repository (
https://github.com/NiranjanKumar001/MLazy.git)
- [x] Setup GitHub Actions CI Workflow (
.github/workflows/test.yml)
- [x] Create Master System Architecture Blueprint (
CHATGPT_MASTER_PROMPT.md)
Phase 2: Database Layer & ORM Models (mlazy_engine/)
- [x]
config.py: Environment loader & strict secret checks (DATABASE_URL, JWT_SECRET, GOOGLE_CLIENT_ID)
- [x]
.env: Local secret configuration
- [x]
db.py: Async SQLAlchemy 2.0 connection pool supporting PostgreSQL (Supabase) with local SQLite (mlazy.db) fallback
- [x]
models.py: 6 ORM Database Schemas (User, TopicQueue, Story, VideoJob, YouTubeUpload, StyleProfile)
- [x]
README.md: Entity-Relationship (ER) Diagram (Mermaid & ASCII formats)
- [x]
tests/test_db.py: Pytest test suite for database tables and async session lifecycle (PASSED)
Phase 3: LLM Script & Scene Prompt Generator (mlazy_engine/script_engine.py)
- [x]
script_engine.py: Google Gemini 2.0 AI script & scene prompt generator
- [x]
Pydantic Validation Schemas (ScriptPackageSchema & SceneSchema)
- [x] Style DNA prompt injector (Zack D Films style prompt suffix)
- [x] Strict production error handling (
ValueError / RuntimeError) + CI mock test mode
- [x]
tests/test_script_engine.py: Pytest test suite for script engine & Pydantic validation (PASSED)