workspace-v1/projects/gamilit/docs/03-fase-extensiones/EXT-009-peer-challenges/historias-usuario/US-PEER-001-challenge-creation.md
Adrian Flores Cortes 967ab360bb Initial commit: Workspace v1 with 3-layer architecture
Structure:
- control-plane/: Registries, SIMCO directives, CI/CD templates
- projects/: Gamilit, ERP-Suite, Trading-Platform, Betting-Analytics
- shared/: Libs catalog, knowledge-base

Key features:
- Centralized port, domain, database, and service registries
- 23 SIMCO directives + 6 fundamental principles
- NEXUS agent profiles with delegation rules
- Validation scripts for workspace integrity
- Dockerfiles for all services
- Path aliases for quick reference

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 00:35:19 -06:00

1.1 KiB

US-PEER-001: Challenge Creation and Matching

Épica: EXT-009: Peer Challenges Prioridad: P1 Story Points: 10 Esfuerzo: 10 horas Sprint: 11


📋 User Story

Como estudiante,
Quiero desafiar a un compañero a un duelo de comprensión lectora
Para competir y hacer el aprendizaje más divertido

Criterios de Aceptación

Backend (6h)

  • Endpoint POST /api/v1/challenges (crear challenge)
    • Body: { opponent_id, exercise_id, wager_amount }
    • Validations: oponente existe, ejercicio válido, suficientes ML Coins
  • Endpoint GET /api/v1/challenges/inbox (challenges recibidos)
  • Endpoint POST /api/v1/challenges/:id/accept
  • Endpoint POST /api/v1/challenges/:id/decline
  • Auto-expiración de challenges después de 24h (cron job)

Frontend (4h)

  • Botón "Desafiar" en perfil de usuario
  • Modal de creación de challenge:
    • Selector de ejercicio
    • Slider de apuesta (0-500 ML Coins)
    • Preview de recompensa (2x wager si gana)
  • Challenge inbox con notificaciones
  • Botones Accept/Decline

Creado: 2025-11-07