Commit Graph

34 Commits

Author SHA1 Message Date
Adrian Flores Cortes
8f0235c096 [TASK-2026-02-06-ANALISIS-INTEGRAL-DOCUMENTACION] docs: Complete 6-phase documentation analysis
- FASE-0: Diagnostic audit of 500+ files, 33 findings cataloged (7P0/8P1/12P2/6P3)
- FASE-1: Resolved 7 P0 critical conflicts (ports, paths, dedup OQI-010/ADR-002, orphan schemas)
- FASE-2: Resolved 8 P1 issues (traces, README/CLAUDE.md, DEPENDENCY-GRAPH v2.0, DDL drift, stack versions, DoR/DoD)
- FASE-3: Resolved 12 P2 issues (archived tasks indexed, RNFs created, OQI-010 US/RF/ET, AGENTS v2.0)
- FASE-4: Purged 3 obsolete docs to _archive/, fixed MODELO-NEGOCIO.md broken ref
- FASE-5: Cross-layer validation (DDL→OQI 66%, OQI→BE 72%, BE→FE 78%, Inventories 95%)
- FASE-6: INFORME-FINAL, SA-INDEX (18 subagents), METADATA COMPLETED

27/33 findings resolved (82%), 6 P3 deferred to backlog.
18 new files created, 40+ modified, 4 archived.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 10:57:03 -06:00
Adrian Flores Cortes
a201cdafc3 [TASK-2026-02-06-GOBERNANZA-DOCUMENTAL-INTEGRAL] docs: Mark docs/90-transversal as deprecated
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 10:25:34 -06:00
Adrian Flores Cortes
b9098ca91c [TASK-2026-02-05-ANALISIS-VALIDACION-MODELADO-BD] docs: Complete 6-phase database modeling analysis
Comprehensive analysis of 101 DDL tables across 11 schemas:
- Phase 1-2: Schema validation, 37 gaps cataloged (3 resolved)
- Phase 3: Integrity audit (80 FKs, 89 CHECKs, 17 issues: 2 CRIT/5 HIGH)
- Phase 4: DDL-Backend mapping (84% interfaces, 75% services, 61% controllers)
- Phase 5: Documentation purge catalog (201 files analyzed)
- Phase 6: Remediation plan (4 sprints, 204h)

Key finding: Backend uses raw SQL + pg Pool (NOT TypeORM).
13 deliverables + updated inventories to v2.0.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 16:48:45 -06:00
Adrian Flores Cortes
df43dd90cb [F0-F2] feat: Coherence analysis baseline + entity types + frontend stores
FASE 0 - Preparación y Purga:
- Archived 21 completed tasks to _archive/2026-01/
- Marked 4 docs as DEPRECATED
- Created 3 baseline coherence reports

FASE 1 - DDL-Backend Coherence:
- audit.types.ts: +4 types (SystemEvent, TradingAudit, ApiRequestLog, DataAccessLog)
- investment.types.ts: +4 types (RiskQuestionnaire, WithdrawalRequest, DailyPerformance, DistributionHistory)
- entity.types.ts: +5 types (Symbol, TradingBot, TradingSignal, TradingMetrics, PaperBalance)

FASE 2 - Backend-Frontend Coherence:
- investmentStore.ts: New Zustand store with 20+ actions
- mlStore.ts: New Zustand store with signal caching
- alerts.service.ts: New service with 15 functions

FASE 3 - Documentation:
- OQI-009: Updated to 100% coverage, added ET-MKT-004-productos.md
- OQI-010: Created full structure (STATUS.md, ROADMAP-MT4.md, ET-MT4-001-gateway.md)

Coherence Baseline Established:
- DDL-Backend: 31% (target 95%)
- Backend-Frontend: 72% (target 85%)
- Global: 39.6% (target 90%)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 22:08:04 -06:00
Adrian Flores Cortes
a01b03393f docs: Complete Sprint 4 (ARCH-001, ARCH-002) documentation
- Update PROXIMA-ACCION.md with Sprint 4 completion
- Add checkpoints for architecture unification
- Update metrics (Coherencia Backend-Frontend: 90%)
- Update inventory files with new modules

Sprint 4 completed:
- ARCH-001: Express proxy gateway (1,132 LOC backend)
- ARCH-002: Frontend services migration (4 services, 32 endpoints)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 15:44:39 -06:00
Adrian Flores Cortes
090fe5d278 feat: Add Trading Agents types for frontend
Create comprehensive TypeScript type definitions for Trading Agents (Atlas, Orion, Nova) in the frontend.

- Align with backend trading-agents.client.ts interfaces
- Export AgentType, AgentStatus, BotStatus types
- Define TradingBot, AgentMetrics, AgentPosition, AgentTrade interfaces
- Include utility functions for status mapping and display names
- Full JSDoc documentation for all types
- Export from main types/index.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 15:40:04 -06:00
Adrian Flores Cortes
bae221db5f docs: Move SECURITY.md to transversal location
Moved docs/SECURITY.md to docs/90-transversal/security/SECURITY.md
to organize security documentation with other transversal docs.

Part of ST3.2 Documentation Purge.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 19:03:25 -06:00
Adrian Flores Cortes
c5e33555be docs: Move service integration to transversal location
Moved docs/api-contracts/SERVICE-INTEGRATION.md to
docs/90-transversal/integraciones/INT-SERVICES-INTEGRATION.md

Part of ST3.2 Documentation Reorganization.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 18:58:33 -06:00
Adrian Flores Cortes
997c138451 [OQI-003] docs: Update inventories with advanced trading components
- FRONTEND_INVENTORY: +4 components (90 total)
- MASTER_INVENTORY: OQI-003 progress 40% -> 45%, 37 -> 41 components
- New components: OrderBookDepthVisualization, MarketDepthPanel, SymbolComparisonChart, TradingScreener

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 14:25:28 -06:00
Adrian Flores Cortes
8eee9b9d1c [OQI-007] docs: Update inventories with LLM strategy agent components
- FRONTEND_INVENTORY: Add 4 new assistant components (18 total for OQI-007)
- MASTER_INVENTORY: Update OQI-007 progress 80% -> 90%
- Added: AnalysisRequestForm, StrategyTemplateSelector, LLMConfigPanel, ContextMemoryDisplay

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 12:31:18 -06:00
Adrian Flores Cortes
fb142a68d2 [OQI-004] docs: Update inventories with investment account components
- FRONTEND_INVENTORY: Add 6 investment components (4 new + 2 existing)
- MASTER_INVENTORY: Update OQI-004 progress 75% -> 85%
- Added: AccountSummaryCard, ProductComparisonTable, PerformanceWidgetChart, AccountSettingsPanel

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 12:24:18 -06:00
Adrian Flores Cortes
26299b3f1d [OQI-006] docs: Update inventories with ML confidence and performance components
- FRONTEND_INVENTORY: Add ML feature section with 11 components
- MASTER_INVENTORY: Update OQI-006 progress 70% -> 85%
- Added: ConfidenceMeter, SignalPerformanceTracker, ModelAccuracyDashboard, BacktestResultsVisualization

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 12:17:39 -06:00
Adrian Flores Cortes
c52cfab6ab [OQI-002] docs: Update inventories with education components
- FRONTEND_INVENTORY: Add 4 education components (85%)
- MASTER_INVENTORY: Update component count and OQI-002 progress 70% -> 85%

Components added:
- CourseProgressTracker
- LearningPathVisualizer
- VideoProgressPlayer
- AssessmentSummaryCard

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 12:07:31 -06:00
Adrian Flores Cortes
60c0e611fb [OQI-003] docs: Update inventories with chart analysis components
- FRONTEND_INVENTORY: Add 4 new chart/trading components (80%)
- MASTER_INVENTORY: Update component count and OQI-003 progress 65% -> 80%

Components added:
- IndicatorConfigPanel
- ChartDrawingToolsPanel
- SymbolInfoPanel
- TradeJournalPanel

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 11:59:31 -06:00
Adrian Flores Cortes
acce97c976 [OQI-009] docs: Update inventories with MT4 dashboard components
- FRONTEND_INVENTORY: Add 4 new MT4 components (85%)
- MASTER_INVENTORY: Update component count and OQI-009 progress

Components added:
- MT4LiveTradesPanel
- PositionModifierDialog
- RiskBasedPositionSizer
- TradeAlertsNotificationCenter

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 11:50:34 -06:00
Adrian Flores Cortes
910d12ad01 [OQI-005] docs: Update inventories with payment management components
- Add InvoiceList, InvoiceDetail, PaymentMethodsList, SubscriptionUpgradeFlow
- Update OQI-005 progress 75% -> 85%
- Update total_components 58 -> 62

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 11:39:52 -06:00
Adrian Flores Cortes
2b34fc3693 [OQI-007] docs: Update inventories with assistant components
- Add MessageList, ChatHeader, MessageSearch, MarkdownRenderer
- Update OQI-007 progress 70% -> 80%
- Update total_components 54 -> 58

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 11:32:51 -06:00
Adrian Flores Cortes
ae76f63dcb [OQI-009] docs: Update inventories with MT4 components
- Add QuickOrderPanel, TradeExecutionHistory, TradingMetricsCard
- Add useMT4WebSocket hook
- Update OQI-009 progress 60% -> 75%
- Update total_components 51 -> 54, total_hooks 2 -> 3

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 11:23:59 -06:00
Adrian Flores Cortes
7523cbd0d8 [OQI-005] docs: Update inventories with payment form components
- Add CouponForm, PaymentMethodForm, BillingInfoForm, TransactionHistory
- Update OQI-005 progress 60% -> 75%
- Update total_components 47 -> 51 (frontend), 70 -> 74 (master)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 11:15:39 -06:00
Adrian Flores Cortes
92474bb75e [OQI-007] docs: Update inventories with hooks and utilities
- FRONTEND_INVENTORY: Added hooks (2), utils (1), SignalExecutionPanel
- MASTER_INVENTORY: Updated OQI-007 progress to 70%

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 11:06:16 -06:00
Adrian Flores Cortes
d60d8cae7d [OQI-009] docs: Update inventories with advanced MT4 components
- FRONTEND_INVENTORY: Added 3 new MT4 components, OQI-009 at 60%
- MASTER_INVENTORY: Updated component count (69) and progress

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 10:57:02 -06:00
Adrian Flores Cortes
ae863f4e36 [OQI-007] docs: Update inventories with LLM assistant components
- FRONTEND_INVENTORY: Added 4 new assistant components, OQI-007 at 55%
- MASTER_INVENTORY: Updated component count and OQI-007 progress

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 10:49:06 -06:00
Adrian Flores Cortes
100bae9129 [OQI-009] docs: Update inventories with MT4 trading components
- FRONTEND_INVENTORY: Added 3 MT4 components, OQI-009 section
- MASTER_INVENTORY: Updated component count and OQI-009 progress to 45%

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 10:41:16 -06:00
Adrian Flores Cortes
a8337b071e [OQI-002] docs: Update inventories for Education module
- Add 4 new components: CertificatePreview, CourseReviews, LessonNotes, RecommendedCourses
- Update OQI-002 progress to 70%
- Update component counts (36 total)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 10:27:48 -06:00
Adrian Flores Cortes
9385ea238e [OQI-007] docs: Update inventories for LLM Strategy Agent module
- Add chatStore to implemented stores
- Update OQI-007 progress to 40%
- Add assistant feature with 5 components
- Update component counts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 10:18:14 -06:00
Adrian Flores Cortes
befc593c9b [OQI-005] docs: Update inventories for payments module
- Add payments feature section to FRONTEND_INVENTORY
- Add routes for payment pages
- Update OQI-005 progress to 60%
- Update component and page counts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 10:07:33 -06:00
Adrian Flores Cortes
ffee1900f9 docs: Update inventories for PostgreSQL data migration
- DATABASE_INVENTORY: Added data_status section with 469K+ bars loaded
- ML_INVENTORY: Documented MySQL deprecation and PostgreSQL migration
- 6 tickers loaded with 365 days of 5-minute data from Polygon API

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 05:51:39 -06:00
Adrian Flores Cortes
9c2fce0083 docs: Complete documentation for notifications system implementation
- Create TASK-2026-01-25-NOTIFICACIONES-COMPLETAS with full CAPVED docs
- Update DATABASE_INVENTORY with auth.notifications, auth.user_push_tokens,
  investment.distribution_history, investment.distribution_runs tables
- Update BACKEND_INVENTORY with push-token endpoints, firebase.client,
  and unit tests
- Update FRONTEND_INVENTORY with notification components, store, service
- Update MASTER_INVENTORY with updated totals
- Update _INDEX.yml with new task entry

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 04:10:09 -06:00
Adrian Flores Cortes
07dc847096 [TASK-2026-01-25-FRONTEND-ANALYSIS] docs: Complete pending deliverables
- Update FRONTEND_INVENTORY.yml with componentes_modulos section (32 components)
- Add FILE-GENERATION-SPEC.md for PDF/Excel/multimedia handling

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 02:05:14 -06:00
Adrian Flores Cortes
c7db687eb2 docs: Create API-Frontend coverage matrix for trading-platform
Adds comprehensive coverage analysis document mapping all API endpoints
to their frontend implementations across 9 modules (OQI-001 through OQI-009).
Identifies 8 critical gaps and prioritizes implementation roadmap.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 02:04:08 -06:00
8c96efb048 docs(ml): Complete ML Engine alignment validation (7 phases)
Documentation alignment validation completed:
- ET-ML-004-api.md: Updated to v2.0.0 with 15 real endpoints documented
- ML_INVENTORY.yml: Updated to v2.1.0, added 11 models (ML-008 to ML-018)
- TRACEABILITY.yml: Updated to v1.7.0, fixed US-ML-004 mapping
- Added VALIDACION-ALINEACION-ML-2026-01-07.md validation report

Discrepancies resolved: 10/11 (91%)
- All critical and high priority discrepancies fixed
- M2 (incompatible ML clients) requires code changes

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 09:58:02 -06:00
c1b5081208 feat(ml): Complete FASE 11 - BTCUSD update and comprehensive documentation alignment
ML Engine Updates:
- Updated BTCUSD with Polygon API data (2024-2025): 215,699 new records
- Re-trained all ML models: Attention (R²: 0.223), Base, Metamodel (87.3% confidence)
- Backtest results: +176.71R profit with aggressive_filter strategy

Documentation Consolidation:
- Created docs/99-analisis/_MAP.md index with 13 new analysis documents
- Consolidated inventories: removed duplicates from orchestration/inventarios/
- Updated ML_INVENTORY.yml with BTCUSD metrics and training results
- Added execution reports: FASE11-BTCUSD, correction issues, alignment validation

Architecture & Integration:
- Updated all module documentation with NEXUS v3.4 frontmatter
- Fixed _MAP.md indexes across all folders
- Updated orchestration plans and traces

Files: 229 changed, 5064 insertions(+), 1872 deletions(-)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 09:31:29 -06:00
a7cca885f0 feat: Major platform documentation and architecture updates
Changes include:
- Updated architecture documentation
- Enhanced module definitions (OQI-001 to OQI-008)
- ML integration documentation updates
- Trading strategies documentation
- Orchestration and inventory updates
- Docker configuration updates

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 05:33:35 -06:00
ef42f5353a Initial commit - trading-platform 2026-01-04 06:12:13 -06:00