This folder is the project memory for the AI Product Assistant prototype. Every AI agent and new contributor should read this file first.
| File | Source of truth for | Read it when |
|---|---|---|
| PROJECT_BRIEF.md | Product intent, architectural invariant, non-goals | Before any feature work |
| ARCHITECTURE.md | Layers, client/server boundary, folder layout, orchestration flow | Before changes that cross layers |
| MVP_ARCHITECTURE.md | Production-shaped MVP stack, data plan, retrieval/RAG boundaries | Before adding deploy, database, or RAG infrastructure |
| DEPLOYMENT.md | Deployment handoff checklist, server-side env vars, preview/production smoke checks | Before connecting or verifying a Vercel deployment |
| IMPLEMENTATION_PLAN.md | Current issue-writing plan and dependency order for MVP follow-up work | Before creating follow-up implementation issues; do not implement directly from it |
| API_CONTRACTS.md | ChatRequest/ChatResponse/Product/intent types and their semantics |
Before changing any of those types |
| DECISIONS.md | Append-only mini-ADRs (date, context, decision, consequences) | When making any non-trivial judgment call |
| DEFERRED_SCOPE.md | Things explicitly chosen not to build yet, and why | When tempted to add infra, auth, DB, RAG, etc. |
| AGENT_GUIDE.md | Operating rules for AI agents in this repo | At the start of every agent session |
These rules apply to every agent and human contributor:
- Changing a type in
shared/types/**→ updateAPI_CONTRACTS.mdin the same change. - Changing folders or layer boundaries → update
ARCHITECTURE.md. - Saying "no" to a tempting addition → append a one-liner to
DEFERRED_SCOPE.md. - Making any judgment call → append a dated entry to
DECISIONS.md. - Commit/PR descriptions must list docs touched, or explicitly state "docs N/A".
Docs must not restate each other. One doc owns each topic; others link instead of copy.
- MVP production stack and data migration plan →
MVP_ARCHITECTURE.mdonly. - MVP implementation issue sequence →
IMPLEMENTATION_PLAN.mdonly. - Type definitions →
API_CONTRACTS.mdonly. - Folder layout →
ARCHITECTURE.mdonly.