Intelligence, Advanced Charting & Trading Platform
feature/paper-trading-risk-controls-2026-10-14
diagnostics/chartnova-blank-screen-2026-10-15
diagnostics/chartnova-stage2-v27-preview-2026-10-15
docs/chartnova-stage1-reconcile-manifest-2026-10-15
feature/chartnova-ios-widget
feature/chartnova-light-catalog-lazy-series-2026-10-15
feature/chartnova-market-terminal
feature/chartnova-multimarket-chart-ws-foundation
feature/chartnova-neon-direct-history
feature/chartnova-neon-history
feature/paper-trading-risk-controls-2026-10-14
fix/alpha-vantage-live-payload
fix/chartnova-progressive-loading-2026-10-15
fix/live-proof-runner-cwd-2026-10-14
foundation/phase-0
foundation/postgres-core
main
ops/chartnova-emergency-rollback-2026-10-15
phase-1/candle-builder
phase-1/data-proof-artifact
phase-1/data-proof-metrics
phase-1/data-proof-report
phase-1/external-gates-state
phase-1/gold-api-fallback
phase-1/ingestion-pipeline
phase-1/live-proof-runner
phase-1/market-calendar
phase-1/market-domain
phase-1/neon-live-proof
phase-1/persistence-contract
phase-1/postgres-ci
phase-1/provider-adapters
phase-1/provider-recovery
phase-1/quality-propagation
phase-1/spike-detection
phase-1/xau-provider-adapter
risk/chartnova-alert-runtime-atomic-2026-10-22
risk/chartnova-atomic-outbox-2026-10-22
risk/chartnova-seven-track-safety-2026-10-21
safety/p0-triage-2026-10-13
| 1 | # ChartNova — API v2 ECB adapter & WebSocket resilience checkpoint |
| 2 | |
| 3 | Date: 2026-10-12 |
| 4 | Development branch: `feature/chartnova-multimarket-chart-ws-foundation` |
| 5 | Draft PR: https://github.com/davoodmehraban89/VELYQOR/pull/24 |
| 6 | |
| 7 | ## Completed in source (NOT deployed) |
| 8 | |
| 9 | - `packages/market-feed/src/neon-ecb-history.mjs`: read-only, query-parameterized and allowlisted ECB history adapter. Accepts only `EUR_USD_ECB`, `EUR_GBP_ECB`, `EUR_CHF_ECB`, 1-day `reference_point`, and a PostgreSQL URL for *exactly* `chartnova_history_ro` on an approved `*.neon.tech` host. |
| 10 | - SQL queries only `public.chartnova_history_public`; uses bounded `LIMIT`, two UTC date bounds and optional cursor. Validates exact ECB source, published series ID, observation_date, quality, price and licensing/attribution flags before providing public results. No OHLC inference or provider table-name interpolation. |
| 11 | - `deploy/chartnova/worker.mjs`: adds a gated `GET /api/v2/history` path using this server-only repository. With no `CHARTNOVA_HISTORY_DATABASE_URL` bound, it deliberately returns HTTP 503. Existing `GET /api/history` still supports the verified KV fallback and was regression-tested. The new route exists only in the **unmerged branch**, not in the deployed Worker. |
| 12 | - `deploy/chartnova/market-stream-worker.mjs`: closes slow WebSocket consumers whose buffered outgoing bytes exceed 1 MiB; normal subscribers remain unaffected and can reconcile missed events via REST on reconnect. |
| 13 | - New tests: `packages/market-feed/test/neon-ecb-history.test.mjs`, `packages/market-feed/test/websocket-room.test.mjs`, `deploy/chartnova/history-v2-worker.test.mjs`. All price numbers and credentials in these tests are clearly **fictional fixtures** and are never inserted into Neon. |
| 14 | |
| 15 | ## Verified actual state |
| 16 | |
| 17 | - PostgreSQL direct SELECT: **762** ECB reference observations, **0** real OHLC candles, `chartnova_history_ro` present but **NOLOGIN**, former `chartnova_history_reader` absent. |
| 18 | - Deployed Cloudflare `velyqor-preview` binding names remain `MARKET_CACHE`, `NAVASAN_API_KEY`, `OANOR_API_KEY`. No Neon history URL or Durable Object secret/binding was installed. |
| 19 | - Isolated Windows worktree: **126 / 126** domain+market-feed tests PASS, **18 / 18** Worker/history tests PASS, both Worker syntax checks PASS and standalone React + Lightweight Charts Vite production build PASS. |
| 20 | - Original working tree's uncommitted files and untracked `0005_navasan_private_daily_ohlc.sql` remained untouched. |
| 21 | |
| 22 | ## Unresolved release gates |
| 23 | |
| 24 | 1. Actual authorized credential setup for restricted Neon role, through Neon and Cloudflare secret managers. No database secret can be committed to GitHub or placed in Vite client environment. A real Worker↔Neon HTTP SQL call is **still not verified**. |
| 25 | 2. **CI red:** GitHub Actions run `38197941929`, run #93, both `verify` and `postgres-invariants` failed. Both GitHub job log API requests failed with `404 BlobNotFound`; root cause **not established**. These unresolved jobs block merging and production release. https://github.com/davoodmehraban89/VELYQOR/actions/runs/38197941929 |
| 26 | 3. Licensed OHLC archives (Iran markets, cryptocurrencies, forex, equity indices and XAU) are **not** ingested. The ECB data cannot serve as candlestick candles. |
| 27 | 4. WebSocket Durable Object staging and provider publisher are **not** deployed; no WebSocket real-time latency or browser reconnection test has been performed. Deployment/billing and provider rights still require authorization. |
| 28 | 5. Navasan unit conflict (local proposed migration IRT vs adapter IRR) must be verified against original provider contract/payload before running any migration. |
| 29 | 6. Modeling/prediction and backtests need genuine source candles, temporal holdout, no lookahead and quality audits before user-facing forecast claims. |
| 30 | |
| 31 | ## Safe rollback |
| 32 | |
| 33 | No production changes were made. To discard this v2 experiment, revert just its commits in the feature branch. Live `/api/history`, KV, Neon data and current Worker remain in place. Do not activate the optional secret or DO route until CI and explicit security/deployment gates are passed. |