# CV6 Live QA Result
**Run:** 2026-07-02 07:26:01

```

############################################################
  CV6 AI TRADING OS — LIVE QA CHECK
  2026-07-02 07:24:55
############################################################

============================================================
  1. BACKEND HEALTH  (localhost:8000)
============================================================
  ❌ FAIL  Backend running  →  NOT RUNNING

============================================================
  2. CORE API ENDPOINTS
============================================================
  ❌ FAIL  FastAPI Swagger UI  →  HTTP 0
  ❌ FAIL  Dashboard Summary  →  HTTP 0
  ❌ FAIL  Autonomous Engine Status  →  HTTP 0
  ❌ FAIL  Autonomous Config  →  HTTP 0
  ❌ FAIL  Smart Scanner Results  →  HTTP 0
  ❌ FAIL  Capital Pools  →  HTTP 0
  ❌ FAIL  Open Positions  →  HTTP 0
  ❌ FAIL  Activity Log  →  HTTP 0
  ❌ FAIL  Risk Guard Status  →  HTTP 0
  ❌ FAIL  Risk Guard Config  →  HTTP 0
  ❌ FAIL  F&O Engine Status  →  HTTP 0
  ❌ FAIL  Learning Engine Stats  →  HTTP 0
  ❌ FAIL  AI Suggestions  →  HTTP 0
  ❌ FAIL  Trade History  →  HTTP 0
  ❌ FAIL  Broker Settings  →  HTTP 0
  ❌ FAIL  AI Model Settings  →  HTTP 0
  ❌ FAIL  Market Watchlist  →  HTTP 0
  ❌ FAIL  Alerts List  →  HTTP 0

============================================================
  3. AUTONOMOUS ENGINE API
============================================================
  ❌ FAIL  Autonomous status  →  HTTP 0
  ❌ FAIL  Scan results  →  HTTP 0
  ❌ FAIL  Capital pools  →  HTTP 0

============================================================
  4. RISK GUARD API
============================================================
  ❌ FAIL  Risk Guard status  →  HTTP 0

============================================================
  5. F&O ENGINE API
============================================================
  ❌ FAIL  F&O Engine reachable  →  HTTP 0
  ❌ FAIL  F&O lot sizes endpoint  →  HTTP 0
  ❌ FAIL  F&O OI analysis endpoint  →  HTTP 0

============================================================
  6. LEARNING ENGINE API
============================================================
  ❌ FAIL  Learning Engine stats  →  HTTP 0
  ❌ FAIL  AI suggestions endpoint  →  HTTP 0

============================================================
  7. NEW ENHANCEMENT FILES — EXISTENCE
============================================================

  New files:
  ✅ PASS  SmartRanker — Phase 3 Ranking  →  18,452 bytes
  ✅ PASS  AIContextBuilder — Phase 4 Context  →  28,050 bytes
  ✅ PASS  Validation Report  →  7,879 bytes
  ✅ PASS  Architecture Gap Report  →  18,386 bytes
  ✅ PASS  Educational PPT Generator  →  22,962 bytes

  Modified files:
  ✅ PASS  SmartScanner (wired ranker)  →  23,632 bytes
  ✅ PASS  AI Consensus (rich context)  →  12,936 bytes
  ✅ PASS  Autonomous Engine (context builder)  →  31,373 bytes
  ✅ PASS  Risk Router (prefix fix)  →  780 bytes
  ✅ PASS  FNO Engine  →  17,974 bytes
  ✅ PASS  Main FastAPI App  →  7,400 bytes

============================================================
  8. PYTHON SYNTAX VALIDATION
============================================================
  ✅ PASS  app\autonomous\smart_ranker.py  →  463 lines — syntax OK
  ✅ PASS  app\autonomous\ai_context_builder.py  →  649 lines — syntax OK
  ✅ PASS  app\autonomous\smart_scanner.py  →  507 lines — syntax OK
  ✅ PASS  app\ai\ai_consensus.py  →  341 lines — syntax OK
  ✅ PASS  app\autonomous\autonomous_engine.py  →  658 lines — syntax OK
  ✅ PASS  app\risk\risk_router.py  →  39 lines — syntax OK
  ✅ PASS  app\fno\fno_engine.py  →  478 lines — syntax OK
  ✅ PASS  main.py  →  229 lines — syntax OK

============================================================
  9. SMART RANKER — UNIT TEST (offline)
============================================================
  ✅ PASS  SmartRanker instantiates
  ✅ PASS  rank() returns list  →  got <class 'list'>
  ✅ PASS  rank() respects top_n  →  returned 3
  ✅ PASS  rank_score attached  →  <class 'app.autonomous.smart_ranker.RankScore'>
  ✅ PASS  RankScore.total in 0-100  →  61.8
  ✅ PASS  RankScore.composite in 0-100  →  66.1
  ✅ PASS  market_personality set  →  VOLATILE
  ✅ PASS  mtf_agreement_pct in 0-100  →  50.0%
  ✅ PASS  Sorted by composite desc  →  descending order ✓

============================================================
  10. AI CONTEXT BUILDER — UNIT TEST (offline)
============================================================
  ✅ PASS  AIContextBuilder instantiates
  ✅ PASS  build() returns AIContextPackage  →  <class 'app.autonomous.ai_context_builder.AIContextPackage'>
  ✅ PASS  market section populated  →  VOLATILE
  ✅ PASS  sector section populated  →  Energy
  ✅ PASS  liquidity section populated  →  69.5
  ✅ PASS  MTF agreement % in 0-100  →  50.0%
  ✅ PASS  breadth signal set  →  BULLISH
  ✅ PASS  confidence.overall_confidence ≥ 0  →  64.4
  ✅ PASS  to_prompt() returns non-empty string  →  2672 chars
  ✅ PASS  Prompt has SIGNAL instruction
  ✅ PASS  Prompt has CONFIDENCE instruction
  ✅ PASS  Prompt has RISK_LEVEL instruction
  ✅ PASS  Prompt has all 9 sections  →  all 9 headers found

============================================================
  11. AI CONSENSUS ENGINE — INTERFACE CHECK
============================================================
  ✅ PASS  AIConsensusEngine instantiates
  ✅ PASS  context_package param in consensus()  →  parameter present ✓
  ✅ PASS  _build_prompt accepts context_package  →  parameter present ✓
  ✅ PASS  Rich context overrides basic prompt  →  returned: 'TEST RICH PROMPT TEXT'
  ✅ PASS  Basic fallback prompt generated  →  Symbol: TESTSYM
LTP: 100  Change: 1.5%
OHLC: O=98 

============================================================
  12. FRONTEND (localhost:3000)
============================================================
  ⚠️  WARN  Frontend running  →  <urlopen error [WinError 10061] No connection could be made 
  ⚠️  WARN  Frontend check  →  Start with: cd frontend && npm run dev

============================================================
  FINAL SUMMARY — 07:26:01
============================================================
  Total Checks : 76
  ✅ PASS      : 46
  ❌ FAIL      : 28
  ⚠️  WARN      : 2

  Score: 46/76  (61%)

  ⚠️   28 issues found — review above sections
```
