# 2026-06-12-completed-changes-archive/backend-frontend-refactoring dir: 2026-06-12-completed-changes-archive/backend-frontend-refactoring index: 2026-06-12-completed-changes-archive/backend-frontend-refactoring/.pi-map.index.md ## role This package serves as an archived planning and specification artifact for a completed structural refactoring that decomposed a monolithic Python/FastAPI backend and TypeScript frontend into domain-based modular subpackages. ## files - .openspec.yaml | Defines an OpenSpec configuration file with schema type and creation date metadata - design.md | Architecture design document for a large-scale backend/frontend refactoring to decompose monolithic modules into domain-based subpackages while preserving API contracts and behavior | dep: FastAPI, Pydantic, SQLAlchemy, Docker, cloudflared, React/TypeScript - proposal.md | This file is a technical proposal document outlining a pure structural refactoring to split monolithic backend files and reorganize frontend code without changing any behavior. - spec.md | Defines a pure structural refactoring specification for extracting schemas, splitting monolithic services, reorganizing frontend features, and standardizing naming conventions without changing any behavior or API contracts. | dep: Pydantic, FastAPI (implied by Depends, API routers), SQLAlchemy AsyncSession, React/TypeScript frontend, Docker, ruff, npm - tasks.md | Defines a multi-phase refactoring plan to reorganize a Python/FastAPI backend and TypeScript frontend codebase into modular subpackages with verification steps | dep: FastAPI, Docker, pytest, ruff, py_compile, npm, TypeScript, React Router ## arch Document-driven waterfall planning architecture using OpenSpec schema configuration, multi-phase task breakdown (design → proposal → specification → implementation), and strict behavior-preserving refactoring patterns with API contract immutability and verification gates. ## tags frontend, refactoring, defines, design, backend, monolithic, behavior, fastapi ## symbols - ## workflows - ## dirty -