Intelligence, Advanced Charting & Trading Platform
feature/chartnova-light-catalog-lazy-series-2026-10-15
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 | # VELYQOR Project State |
| 2 | |
| 3 | ## 2026-10-15 — Current confirmed state: stable v26 + light-market Stage 1 in Draft PR #30 |
| 4 | |
| 5 | - **LIVE production:** The prior Cloudflare v27 initial-loading performance hotfix was **rolled back** after the user reported failure to open the site. The most recent checked active deployment is **v26** `85177f9d-09c0-4763-b28c-2c6ba5ae5be5` at 100%, rollback deployment `78155d6f-11fc-4d1b-ab4f-7c0a97474406`, UTC 2026-10-15 05:59. The user later confirmed `https://chartnova.ir/` opens and its speed is better. This current checkpoint supersedes the time-specific v27 deployment description below. |
| 6 | - **Development:** Draft [PR #30](https://github.com/davoodmehraban89/VELYQOR/pull/30) adds new read-only `/api/markets/summary` projection and lazy source-verified per-symbol series, without changing legacy `/api/markets`. **Not merged or deployed**; the stable production Worker stays v26. |
| 7 | - **Data-size evidence:** Actual verified live 58-market response ~85,202 bytes; projected read-only summary 15,898 bytes (about 81% smaller). No synthesis/conversion of price units, no OHLC or execution-feed claims. |
| 8 | - **Tests:** 10 domain tests, 5 fail-closed patcher/integration tests, plus a real-public-v26-HTML browser simulation using actual live catalog and on-demand USD/EUR symbol endpoints; 58 cards and both charts displayed in **Chromium and WebKit** (Safari-like), zero JS errors. Workflow [38727115977](https://github.com/davoodmehraban89/VELYQOR/actions/runs/38727115977) succeeded. This test **did not deploy any Worker version**. |
| 9 | - **Technical blocker before staged rollout:** Cloudflare's Worker Script Download currently returns the **last uploaded** v27 code, not the **currently deployed** v26. Source/etag provenance of v26 must be established and stage-only Cloudflare upload with binding/cron parity verified. Do not substitute the v27 source or auto-apply an incompatible patch. |
| 10 | - **Next action:** maintain the user-confirmed stable site; expand browser tests and monitor provider rights/freshness. The owner must separately authorize any production release. No real trading, no Neon migration, no credential mutation. |
| 11 | - **Proof:** `docs/operations/chartnova-compact-catalog-stage1-2026-10-15.md`; open PR #30. |
| 12 | |
| 13 | --- |
| 14 | |
| 15 | |
| 16 | |
| 17 | ## 2026-10-15 — ChartNova production performance hotfix (deployed, verified) |
| 18 | |
| 19 | - **User request:** fix delayed/blank-to-loaded ChartNova initial data, prioritizing visible quote cards and avoiding unnecessary waiting. |
| 20 | - **Actual live Worker fixed:** `velyqor-preview` Cloudflare **v27** `2cbeb4e2-4a3e-414f-b3ad-035e2378650b`, deployment `c68b8340-398a-462b-9fe0-c635aba405fe`, rolled out at 100% on `2026-10-15T05:22:32Z`. Original v26 `85177f9d-09c0-4763-b28c-2c6ba5ae5be5` is retained for immediate rollback. |
| 21 | - **Change scope:** only production homepage inline JavaScript; progressive main-card render; explicit partial loading; lazy hidden market/technical rendering and de-duplicated refresh. **No change to API response contracts, data prices/units, provider licensing, KV namespace, secrets, cron, DNS, database, trades or Worktrees.** |
| 22 | - **Verification:** 4/4 isolated JS patch tests passed. Staged mobile browser found 58/58 cards and working technical chart; quotes exactly matched previous production and no JS/network failures. Under intentionally delayed 10-second `/api/markets`, main USD/Gold cards and partial status appeared before the slow feed finished. Following deployment, public `/`, `/api/domestic`, `/api/markets` (58), `/api/xau`, `/api/widget` all responded successfully. |
| 23 | - **Risk controls:** Cloudflare API verified full binding/handler parity between versions. No secret values were read. Keep old version for one-step rollback if post-deploy errors appear. User's actual device experience still requires confirmation. |
| 24 | - **Traceability:** [PR #29](https://github.com/davoodmehraban89/VELYQOR/pull/29) and [operations/rollback guide](docs/operations/chartnova-production-progressive-loading-2026-10-15.md). GitHub `main` was not changed during the direct Cloudflare rollout; PR #29 is reviewed independently. |
| 25 | - **Not completed:** universal network speed guarantee; shrink of 85KB full market-history payload; new Paper Trading live deployment; Neon/WS real trading/feeds. These are separate staged milestones. |
| 26 | |
| 27 | --- |
| 28 | |
| 29 | |
| 30 | Last updated: 2026-10-07 |
| 31 | |
| 32 | Last checked (GitHub-only): 2026-10-14 |
| 33 | |
| 34 | > **IMPORTANT — review-branch status overlay (not yet merged into main).** The detailed sections below preserve the 2026-10-07 Phase-1 baseline. Its claims about disconnected provider keys and CI do **not** reflect a 2026-10-14 live runtime revalidation. Cloudflare previously exposed a `NAVASAN_API_KEY` secret name (not a verified end-to-end data proof); the current connected secret values were not read. |
| 35 | |
| 36 | ## Current safety checkpoint — 2026-10-14 |
| 37 | |
| 38 | - Working source of truth remains `main` at `29a45cff094658c7a2722fa6fa712bef061abb8c` until explicitly merged; review branch: `safety/p0-triage-2026-10-13`. |
| 39 | - Open PRs [#21](https://github.com/davoodmehraban89/VELYQOR/pull/21), [#22](https://github.com/davoodmehraban89/VELYQOR/pull/22), [#23](https://github.com/davoodmehraban89/VELYQOR/pull/23), [#24](https://github.com/davoodmehraban89/VELYQOR/pull/24), [#25](https://github.com/davoodmehraban89/VELYQOR/pull/25), and [#26](https://github.com/davoodmehraban89/VELYQOR/pull/26). PR #23 is based on the history feature branch; PR #24 is based on #23. PR #25 and #26 are isolated reviews from `main`. |
| 40 | - GitHub CI: #21, #22, #23 succeeded on second attempts 2026-10-14; #24 succeeded on its latest verified attempt 2026-10-12; #25 and #26 succeeded on 2026-10-14. A green CI does **not** establish data licensing, provider uptime, a real production Neon→Worker connection, or deployed streaming. |
| 41 | - **P0 PROTECT:** last verified Windows evidence included 9 tracked modifications, 1085 untracked paths and 5 worktrees. Desktop Commander was offline on 2026-10-14. No cleaning, overwriting or migration applied. |
| 42 | - **P0 BLOCK_IMPORT:** untracked `db/migrations/0005_navasan_private_daily_ohlc.sql` conflicts with existing adapter IRR→IRT assumptions. No import or migration before source-confirmed units/quote side, rights and reviewed dry-run. |
| 43 | - **P0 BLOCK_REDISTRIBUTION:** commercial source-OHLC storage and public redistribution rights remain unverified. ECB observations are reference points, not OHLC candles. |
| 44 | - **P0 NO_LIVE_ORDERS:** AI/signals cannot place live orders; independent order/risk controls and separate approval are required before any trading layer. |
| 45 | - Next actions: review independent #21/#22/#25/#26 for prospective merges; preserve #23/#24 as Draft until dependency, license, Neon reader, staging and end-to-end gates pass; verify Windows and provider documentation when available. |
| 46 | - Auditable details and ownership: [P0 triage](docs/security/P0_TRIAGE_2026-10-12_FA.md), [release safety gates](docs/security/P0_RELEASE_GATES.md), [PR readiness](docs/security/PR_READINESS_2026-10-14_FA.md). |
| 47 | - **Status of this checkpoint:** documentation and CI pass on review branches; **no merge to `main`, no operational deployment, no credential changes, no trade**. |
| 48 | |
| 49 | --- |
| 50 | |
| 51 | ## Current phase |
| 52 | Phase 1 — Market Data Integrity & Data Proof. |
| 53 | |
| 54 | ## Product scope locked for MVP |
| 55 | - Iran free-market USD/IRT |
| 56 | - Iran 18K gold/IRT market price |
| 57 | - Global XAU/USD |
| 58 | - Theoretical 18K gold/IRT |
| 59 | - Gold market premium/discount absolute and percentage series |
| 60 | - Professional charting, drawing tools, technical indicators, overlays, and persistent user workspaces |
| 61 | |
| 62 | ## Architecture baseline |
| 63 | - Modular monolith for MVP, with independently schedulable ingestion workers. |
| 64 | - TypeScript/React/Next.js web application. |
| 65 | - PostgreSQL is the canonical database contract; hosting is replaceable through `DATABASE_URL`. |
| 66 | - Neon is the current zero-cost Phase 1 PostgreSQL host; it is infrastructure, not a product dependency. |
| 67 | - Cloudflare is edge/runtime/cache/protection. Hyperdrive is configured only when justified by the deployment path. |
| 68 | - Provider adapters feed immutable raw observations, normalization, quality gates, candle construction, and derived-series calculation. |
| 69 | - UTC canonical storage; Asia/Tehran presentation. |
| 70 | - No UI timeframe may imply precision not supported by observed source cadence. |
| 71 | |
| 72 | ## Completed |
| 73 | - Phase 0 foundation and provider-neutral PostgreSQL schema merged. |
| 74 | - Canonical instruments, raw observations, ticks, candles, derived values, quality events, workspaces and drawings schema defined. |
| 75 | - Deterministic theoretical 18K gold and premium calculations implemented. |
| 76 | - Timestamp alignment, staleness, provider normalization and provider health implemented. |
| 77 | - Deterministic multi-timeframe candle builder implemented with no synthetic gap filling. |
| 78 | - Numeric quality scoring and propagation into candles/derived data implemented. |
| 79 | - GOOD / DEGRADED / STALE / INVALID quality classification implemented. |
| 80 | - Provider-neutral ingestion and derived-gold pipeline implemented. |
| 81 | - Navasan adapters implemented for USD_IRT_FREE and GOLD18_IRT, including IRR→IRT normalization and historical daily OHLC parsing. |
| 82 | - Alpha Vantage XAU/USD spot adapter implemented. |
| 83 | - Data Proof metrics and aggregate evidence artifact implemented for cadence, freshness, gaps, duplicates and out-of-order observations. |
| 84 | - Market calendar, price-spike detection, provider failure/recovery state machine and persistence hardening implemented. |
| 85 | - Provider source matrix documented, including unresolved domestic redundancy risk. |
| 86 | - PostgreSQL 18 persistence invariants execute successfully in CI. |
| 87 | - Reachable Neon PostgreSQL provisioned for VELYQOR. |
| 88 | - All three database migrations executed successfully against live Neon PostgreSQL. |
| 89 | - Both SQL invariant suites executed successfully against live Neon PostgreSQL. |
| 90 | - Live database proof recorded in `docs/data/phase1-live-postgres-proof.md`. |
| 91 | - Domain regression suite passes: 66/66 tests. |
| 92 | |
| 93 | ## In progress |
| 94 | - Live Data Proof for USD_IRT_FREE, GOLD18_IRT and XAU_USD. |
| 95 | - Secondary legally usable Iranian source research for cross-check/failover. |
| 96 | |
| 97 | ## External blockers |
| 98 | 1. `NAVASAN_API_KEY` is not connected to the runtime, so live USD_IRT_FREE and GOLD18_IRT cadence/quota/freshness proof cannot yet execute. |
| 99 | 2. `ALPHAVANTAGE_API_KEY` is not connected to the runtime, so live XAU_USD proof cannot yet execute. |
| 100 | 3. Cloudflare Hyperdrive is not configured yet. The Cloudflare account currently has zero Hyperdrive configs, and creating one requires the live database credential to be entered through a secure channel without exposing it in repository history or chat. |
| 101 | |
| 102 | ## Phase 1 exit gates |
| 103 | 1. PostgreSQL migrations and invariants execute successfully against a live reachable PostgreSQL instance. **PASS** |
| 104 | 2. USD_IRT_FREE, GOLD18_IRT and XAU_USD each have a live tested ingestion path. **BLOCKED — provider credentials** |
| 105 | 3. Observed cadence, latency, gaps, duplicates, out-of-order behavior and failure/recovery are recorded for each source. **BLOCKED — provider credentials** |
| 106 | 4. Candle construction is deterministic and never invents missing observations. **PASS** |
| 107 | 5. Quality state/score propagates into candles and derived values. **PASS** |
| 108 | 6. At least one secondary legally usable reference is identified for Iranian market cross-check, or the lack of one is explicitly accepted as a launch risk. **PASS as documented unresolved launch risk** |
| 109 | 7. Secrets are runtime-only and absent from the repository. **PASS** |
| 110 | 8. CI is green for all Phase 1 domain behavior. **PASS** |
| 111 | 9. Cloudflare Hyperdrive is configured against the reachable PostgreSQL endpoint. **BLOCKED — secure database credential handoff** |
| 112 | |
| 113 | ## Risks |
| 114 | - Iranian market-data licensing, timestamp quality, anti-bot restrictions, history and reliability. |
| 115 | - Free source cadence may be insufficient for intraday timeframes; unsupported timeframes must stay disabled. |
| 116 | - The current domestic-source stack does not yet have a second zero-cost legally usable failover source. |
| 117 | - Free database hosting is temporary infrastructure and must not become a product dependency. |
| 118 | |
| 119 | ## Next checkpoint |
| 120 | Securely connect the Navasan and Alpha Vantage runtime credentials and the Neon database credential to Cloudflare Hyperdrive without committing or exposing secrets; execute continuous live Data Proof for all three required instruments; record provider and Hyperdrive evidence; then close Phase 1 only if all external gates pass. |