# Configuracion del Sistema de Planificacion Trading Platform (Trading Platform)
# Basado en: Estandar-SCRUM.md (Principio SIMCO)
# Version: 1.0
# Fecha: 2026-01-04

project:
  name: "Trading Platform"
  description: "Plataforma de Trading con IA - Trading Platform"
  version: "1.0.0"
  repository: "trading-platform"

# Estados validos para elementos de trabajo
states:
  user_story:
    - "Backlog"
    - "To Do"
    - "In Progress"
    - "In Review"
    - "Done"
  task:
    - "To Do"
    - "In Progress"
    - "Blocked"
    - "Done"
  bug:
    - "Open"
    - "In Progress"
    - "Fixed"
    - "Done"
    - "Won't Fix"

# Prioridades
priorities:
  - id: "P0"
    name: "Critico"
    description: "Bloqueante para produccion o seguridad"
    sla_hours: 4
  - id: "P1"
    name: "Alto"
    description: "Funcionalidad core, deadline cercano"
    sla_hours: 24
  - id: "P2"
    name: "Medio"
    description: "Mejoras importantes, puede esperar"
    sla_hours: 72
  - id: "P3"
    name: "Bajo"
    description: "Nice-to-have, mejoras menores"
    sla_hours: null

# Prefijos de nomenclatura
naming:
  epic_prefix: "OQI"
  user_story: "US"
  task: "TASK"
  bug: "BUG"
  requirement: "RF"
  specification: "ET"
  adr: "ADR"

# Subcategorias de User Stories por modulo
us_categories:
  - prefix: "AUTH"
    epic: "OQI-001"
    description: "Autenticacion"
  - prefix: "EDU"
    epic: "OQI-002"
    description: "Educacion"
  - prefix: "TRD"
    epic: "OQI-003"
    description: "Trading Charts"
  - prefix: "INV"
    epic: "OQI-004"
    description: "Investment Accounts"
  - prefix: "PAY"
    epic: "OQI-005"
    description: "Payments Stripe"
  - prefix: "ML"
    epic: "OQI-006"
    description: "ML Signals"
  - prefix: "LLM"
    epic: "OQI-007"
    description: "LLM Agent"
  - prefix: "PFM"
    epic: "OQI-008"
    description: "Portfolio Manager"

# Configuracion de sprints
sprint:
  duration_days: 14
  velocity_target: 40
  current_sprint: 1
  current_phase: 1

# Agentes disponibles
agents:
  - id: "@Backend-Agent"
    specialization: "Express, PostgreSQL, APIs"
  - id: "@Frontend-Agent"
    specialization: "React, TypeScript, UI/UX"
  - id: "@Database-Agent"
    specialization: "PostgreSQL, Migrations, Seeds"
  - id: "@ML-Agent"
    specialization: "Python, TensorFlow, Trading Signals"
  - id: "@Integration-Agent"
    specialization: "Testing, Validacion, CI/CD"
  - id: "@DevOps-Agent"
    specialization: "Docker, Kubernetes, Deployment"

# Columnas del tablero Kanban
kanban_columns:
  - id: "backlog"
    name: "Backlog"
    description: "Items no planificados"
  - id: "todo"
    name: "Por Hacer"
    description: "Planificado para sprint actual"
  - id: "in_progress"
    name: "En Progreso"
    description: "Trabajo activo"
  - id: "blocked"
    name: "Bloqueado"
    description: "Esperando dependencias"
  - id: "review"
    name: "En Revision"
    description: "Pendiente de validacion"
  - id: "done"
    name: "Hecho"
    description: "Completado y validado"

# Campos requeridos por tipo de documento
required_fields:
  user_story:
    - "id"
    - "title"
    - "status"
    - "epic"
    - "story_points"
  task:
    - "id"
    - "title"
    - "status"
    - "priority"
  bug:
    - "id"
    - "title"
    - "status"
    - "severity"
    - "affected_module"
  requirement:
    - "id"
    - "title"
    - "status"
    - "module"
  specification:
    - "id"
    - "title"
    - "status"
    - "rf_parent"

# Rutas importantes
paths:
  planning: "/docs/planning/"
  tasks: "/docs/planning/tasks/"
  bugs: "/docs/planning/bugs/"
  board: "/docs/planning/Board.md"
  backlog: "/docs/04-fase-backlog/"
  modules: "/docs/02-definicion-modulos/"
  adr: "/docs/97-adr/"

# Metricas del proyecto
metrics:
  total_epics: 8
  total_user_stories: 90
  total_requirements: 47
  total_specifications: 50
  compliance_target: 100
  current_compliance: 0

# Configuracion de validacion
validation:
  require_yaml_frontmatter: true
  require_acceptance_criteria: true
  require_story_points: true
  max_file_lines: 400
  enforce_naming_convention: true
