learning_ai_invt_trdg/docs
Saravana Achu Mac 83bc3af260 docs: add comprehensive documentation for coding agents
Created detailed documentation files to guide coding agents in implementing
the fixes and improvements identified in the functionality review:

1. API_DOCUMENTATION_GUIDE.md
   - Complete API endpoint catalog
   - Authentication documentation
   - REST API endpoints (health, user, trading, orders, market data, research, backtesting, feature flags, admin)
   - WebSocket namespaces (/trading, /admin, /)
   - Error responses and error codes
   - Rate limiting recommendations
   - Request ID propagation
   - Deprecation policy
   - OpenAPI/Swagger generation guide
   - Documentation maintenance process

2. ARCHITECTURE_DOCUMENTATION.md
   - System overview and high-level architecture
   - Monorepo structure and directory layout
   - Backend architecture (component structure, data flow, trading loop)
   - Web architecture (component structure, data flow, UI architecture)
   - Mobile architecture (component structure, data flow)
   - Shared code architecture (shared modules, platform integration)
   - Data architecture (Cosmos DB containers, data flow)
   - Service boundaries (backend, platform-service, web, mobile responsibilities)
   - Integration points (backend ↔ platform-service, web ↔ backend, mobile ↔ backend, etc.)
   - Security architecture (authentication, authorization, tenant isolation)
   - Monitoring & observability (telemetry, logging)
   - Deployment architecture (Docker, environment variables)
   - Scalability considerations (horizontal scaling, WebSocket scaling)

3. TROUBLESHOOTING_GUIDE.md
   - Backend issues (won't start, health check failing, trading loop not running, orders not executing, reconciliation failures)
   - Web issues (won't load, authentication failing, WebSocket connection failing, data not updating)
   - Mobile issues (won't launch, authentication failing, WebSocket connection failing, data not updating)
   - Database issues (Cosmos DB connection failing, slow performance, data inconsistency)
   - Authentication issues (platform-service unreachable, JWT token invalid)
   - WebSocket issues (connection drops, not receiving events)
   - Performance issues (backend slow response times, web slow load times)
   - Deployment issues (Docker build failing, container won't start)
   - Escalation procedures (when to escalate, escalation steps, on-call contact, incident response)
   - Common error messages (backend, web, mobile)
   - Monitoring and alerts (key metrics, alert thresholds, monitoring tools)

4. ONBOARDING_GUIDE.md
   - Project overview (what is the trading dashboard, tech stack, key concepts)
   - Prerequisites (required software, required accounts, optional tools)
   - Development setup (clone repo, install dependencies, configure environment, verify setup)
   - Project structure (monorepo layout, key files)
   - Development workflow (starting development, making changes, commit message format, pushing changes)
   - Testing (backend tests, web tests, mobile tests, verification script)
   - Code review process (PR process, PR checklist, code review guidelines)
   - Common tasks (adding backend endpoint, adding web component, adding mobile screen, adding feature flag)
   - Resources (documentation, external documentation, tools)
   - Getting help (internal resources, common issues, asking questions)
   - Best practices
   - Next steps (first week, first month, ongoing)

These documentation files provide detailed guidance for coding agents to implement
the fixes and improvements identified in FUNCTIONALITY_REVIEW.md without needing
to understand the entire codebase from scratch.
2026-05-09 17:02:05 -07:00
..
completed docs(ui): clarify remaining product-specific layout containers 2026-05-09 13:04:07 -07:00
inprogress test(ui): add comprehensive Playwright E2E test suite 2026-05-09 13:28:20 -07:00
planned docs: add comprehensive documentation for coding agents 2026-05-09 17:02:05 -07:00
AUDIT_REDESIGN.md docs(E3): mark Monaco workers complete 2026-05-04 18:15:28 -07:00
AZURE_INFRASTRUCTURE.md feat(backend): WebSocket namespaces, audit persistence, tab flags, telemetry 2026-04-29 19:35:00 -04:00
BACKEND_API_DEPRECATION.md feat(contracts): shared socket namespaces, tab flags, cutover docs, README 2026-04-29 19:35:53 -04:00
BACKEND_AUDIT_SCHEMA.md feat(contracts): shared socket namespaces, tab flags, cutover docs, README 2026-04-29 19:35:53 -04:00
BACKEND_LEGACY_SUPABASE_SCRIPTS.md docs: list backend root scripts still importing SupabaseService 2026-04-04 20:44:26 -07:00
CHAT_BOT_CAPABILITY_AUDIT.md docs(chat): record structured insight support 2026-05-07 08:03:23 +00:00
CODEX_RESUME_PROMPT.md docs: add CODEX_RESUME_PROMPT.md for agent hand-off 2026-05-04 14:36:54 -07:00
COMPLETION_CHECKLIST.md docs(E3): mark Monaco workers complete 2026-05-04 18:15:28 -07:00
CONVENTIONS.md feat(contracts): shared socket namespaces, tab flags, cutover docs, README 2026-04-29 19:35:53 -04:00
CUTOVER_MOBILE.md feat(contracts): shared socket namespaces, tab flags, cutover docs, README 2026-04-29 19:35:53 -04:00
CUTOVER_WEB.md feat(contracts): shared socket namespaces, tab flags, cutover docs, README 2026-04-29 19:35:53 -04:00
HANDOVER.md chore(build): add switchable bytelyst package source 2026-05-05 19:47:41 +00:00
OPERATIONS.md chore: enforce local ByteLyst package resolution 2026-05-08 21:09:14 -07:00
PRD.md docs: clarify mobile v1 scope and trading control ownership 2026-04-04 02:28:21 -07:00
ROADMAP.md feat(backend): WebSocket namespaces, audit persistence, tab flags, telemetry 2026-04-29 19:35:00 -04:00
UX_TESTING_SETUP_GUIDE.md docs: add local package resolution section to UX guide 2026-05-09 14:21:46 -07:00
UX_THEME_NORMALIZATION_HANDOFF.md refactor(web): normalize entry form theme surface 2026-05-05 22:20:58 -07:00