canina/.ai_agency/memory/scratchpad.md
parsa aghaei f437f46e2e feat: AI Software Agency v3 — complete overhaul
- Add AGENCY.md: master orchestration protocol (universal AI editor entry point)
- Add 00_intake.md: user requirements & intent detection agent
- Add 10_deploy.md: production deployment agent
- Add 11_seo_content.md: SEO specialist & content writer agent (dual mode)
- Add specs/reviews/: directory for specialist review reports

REVIEW PIPELINE (new):
- Each specialist reviews ONLY their own domain:
  - 04_dev_backend: API, services, DB, auth, DTOs
  - 05_dev_frontend: components, state, UX code, performance
  - 07_visual_qa: UX patterns, a11y, responsive, design system
  - 08_devops_security: secrets, Docker, CVEs, CI/CD
  - 11_seo_content: meta tags, content quality, structured data
- 02_product_manager: synthesis mode reads all findings, deduplicates,
  creates unified prioritized backlog

All agents now support dual modes (REVIEW + IMPLEMENT/ENFORCE/CREATE/INSPECT)
state.json v3: adds project_intent, review_phase tracking, resume_context
backlog.json: fixed structure {tasks: [...]}, added sub_steps per task
orchestrate.py: simplified to state management utility (no fake AI calls)
2026-07-26 17:30:05 +03:30

64 lines
1.9 KiB
Markdown

# 📝 Active Agent Working Scratchpad
## Project: Canina Veterinary E-Commerce System
**Mode**: BROWNFIELD | **Status**: IN_PROGRESS
---
## 📋 Requirements (from Intake)
- **Type**: Full-stack veterinary e-commerce platform
- **Target**: Iranian veterinary clinics + B2B wholesale buyers
- **Stack**: NestJS + Next.js + PostgreSQL + Prisma + TypeScript
- **Deployment**: Docker + VPS
- **Auth**: Required (JWT, role-based: User / User_Wholesale / ADMIN)
- **B2B**: Wholesale approval flow with document verification
- **Catalog**: 30 official Canina Germany products with dual pricing (retail + wholesale)
---
## 🏗️ CEO Strategic Direction
- **Health Score**: ~70/100 (missing tests, monolithic components flagged)
- **Direction**: INCREMENTAL_EXPANSION — complete backend first, then frontend polish
- **Priority Order**: DB → Validation → Auth Guards → Admin → Tests → Frontend → Deploy
---
## 🔄 Current Active Context
- **Active Ticket**: TASK-102 (Seed Data)
- **Active Agent**: 04_dev_backend
- **Blocked By**: Nothing — TASK-101 completed, dependencies clear
- **Next Focus**: Write backend/prisma/seed.ts with 30 Canina catalog products
---
## 📌 Inter-Agent Notes
### From 04_dev_backend (TASK-101 completion):
- Prisma schema now has indexes on `categorySlug`, `suitableFor`, `price`, `wholesalePrice`
- B2B fields confirmed: `wholesalePrice`, `wholesaleMinQty`, `isWholesaleOnly`
- Schema migration run successfully
### Architecture Decisions (from 03_architect):
- API prefix: `/api/v1`
- Auth: JWT + Passport.js (NestJS)
- Admin panel: separate NestJS module at `/api/v1/admin`
- Frontend: Next.js App Router with React Server Components
- B2B portal: client-side component (requires auth context)
---
## 🐛 Active Bug Traces / Stack Traces
*None currently recorded.*
---
## ✅ Completed Task Log
| Task | Agent | Result |
|------|-------|--------|
| TASK-101 | 04_dev_backend | Prisma schema indexes added, B2B fields validated |