@davoodmehraban89 / VELYQOR / commits / 9e74478
Fork 0

Intelligence, Advanced Charting & Trading Platform

docs(checkpoint): capture GitHub CI pre-run failure and real local WSS smoke evidence

davoodmehraban89 committed Oct 12, 2026 at 07:54 UTC 9e7447893476f0ae3efe96afb80a1742d685fc54
1 file changed +40
docs/operations/chartnova-ci-local-ws-smoke-2026-10-12.md new
+40
@@ -0,0 +1,40 @@
1 +# ChartNova staging checkpoint — CI and local WebSocket evidence (2026-10-12)
2 +
3 +## CI diagnosis (verified)
4 +
5 +The GitHub Actions run at https://github.com/davoodmehraban89/VELYQOR/actions/runs/38198123692 failed **before runner allocation**, not in a test step. Direct GitHub jobs API returned **no runner names and empty steps arrays** for both verify and postgres-invariants, both completed in about 3 seconds. No code or migration test executed in this CI run. Root cause of runner non-allocation is unconfirmed; check the repository's Actions General policy and account Actions billing/quota/budgets before trying to fix source code. See `docs/operations/github-actions-pre-run-failure-2026-10-12.md`.
6 +
7 +## Cloudflare Worker compilation
8 +
9 +Ran from isolated development worktree on authorized Windows host:
10 +
11 +`npx --yes wrangler@4 deploy --dry-run --config deploy/chartnova/wrangler.realtime.example.toml`
12 +
13 +Result: **PASS** with Wrangler 4.149.0, local script bundle 15.88 KiB, and expected bindings `STREAM_ROOMS` Durable Object, `STREAM_SYMBOL_ALLOWLIST`, and `STREAM_ALLOWED_ORIGINS`. The command exited on dry-run and did NOT deploy or create billed resources.
14 +
15 +## Actual local WebSocket publish/receive
16 +
17 +Ran a local Worker and Durable Object instance using Wrangler and a **fictional localhost-only test token**. Then executed `node scripts/smoke-local-stream.mjs` (the script explicitly rejects non-localhost origins).
18 +
19 +Observed:
20 +- `GET /stream?symbol=EUR_USD_ECB` returned **101 Switching Protocols**.
21 +- A version-1 `stream.subscribe` received `session.ready`.
22 +- An authenticated **fictional test-only reference-price event** posted to `/internal/market-update` returned **HTTP 200**.
23 +- A connected WebSocket received `market.update` with `sequence=1` and `delivered=1`, without revealing the test publisher token or license evidence.
24 +- The local Worker and child workerd process were stopped after the test. No real vendor market price, live public WebSocket, Neon insert, paid Cloudflare deployment, or public website change occurred.
25 +
26 +## Prior local checks
27 +
28 +- **126/126** domain / feed tests passed; **18/18** Worker / history tests passed.
29 +- Existing standalone React + Vite + Lightweight Charts build passed.
30 +- Production Neon still recorded 762 ECB reference observations, zero OHLC candles, and an unactivated `chartnova_history_ro` database role at the start of this checkpoint.
31 +
32 +## Remaining production gates
33 +
34 +1. Obtain precise GitHub pre-run failure annotation from administrator; fix account/Actions policy or runner provisioning; require green CI after jobs actually run.
35 +2. Acquire documented licensed source for commercial redistribution of each intended market; validate quote units/timezones. Neither research-only Yahoo/yfinance data nor point observations may be converted into fake OHLC.
36 +3. Securely activate least-privileged Neon reader via approved secret flow, and prove live read-only Worker→Neon connectivity on staging.
37 +4. Approve any billable Durable Object / production deployment; configure true publisher credentials and edge rate limits.
38 +5. Perform sustained staging real-time load/latency/sequence-gap, browser rendering, and failure/recovery tests before public launch.
39 +
40 +The original Windows Git working tree was preserved, including its uncommitted Navasan migration.