Intelligence, Advanced Charting & Trading Platform
docs(state): record safe Neon v2 REST route and WS backpressure test evidence
davoodmehraban89 committed
Oct 12, 2026 at 06:31 UTC
1397748d98aa597dd6f0662296dcb5a2cf271885
1 file changed
+8
PROJECT_STATE.md
+8
@@ -125,3 +125,11 @@ With explicit user approval, the unused overprivileged Neon role `chartnova_hist
125
- Selected gateway hardened with origin allowlist, bounded streamed request payload and per-symbol connection limits; still requires Cloudflare Access/WAF/rate limits and real E2E before any publication.
126
- Final local `npm test`: **117/117 PASS**; gateway syntax PASS; `npm ci && npm run build` PASS. `scripts/research-yfinance.py` not runtime-tested because no Windows Python installation.
127
- **Release remains blocked**: GitHub CI remote still RED, no privileged DB credentials used, no DO deployed, no paid plan authorized, no licensed OHLC backfilled, no live WSS source established. Neon 762 ECB points and zero candles preserved. Full handoff: `docs/operations/chartnova-multimarket-checkpoint-2026-10-12.md`.
128
+
129
+## 2026-10-12 — Restricted Neon v2 query + WS room load-shedding (review branch)
130
+- Added `packages/market-feed/src/neon-ecb-history.mjs` with a parameterized ECB-only read adapter using the existing `public.chartnova_history_public` view and accepting only `chartnova_history_ro` credentials server-side. A new `GET /api/v2/history` route is mounted **in the feature branch's Worker source only**; without the optional Cloudflare secret it fails closed with 503. Live Worker remains unchanged and retains its verified KV-backed `/api/history`.
131
+- New server/adapter tests verify cursor and limit, exact ECB provenance, no secret leaks, zero OHLC misclassification; no live direct Neon connection yet. New WebSocket Durable Object tests verify monotonic sequence, room authorization and slow-client disconnect after >1 MiB outgoing buffer; no deployed DO yet.
132
+- Latest isolated local checks: **126/126** domain+feed tests, **18/18** Worker/history tests, both Worker syntax checks and standalone React production build **PASS**.
133
+- Real Neon still has **762** ECB reference points, **0** OHLC candles; `chartnova_history_ro` remains NOLOGIN, former privileged reader absent. Cloudflare bindings still only MARKET_CACHE, NAVASAN_API_KEY, OANOR_API_KEY.
134
+- PR #24 remains draft and GitHub CI **RED**: run **38197941929** (#93) reported both `verify` and `postgres-invariants` failing. The job logs return 404 BlobNotFound, so no root cause is verified. No provider permissions, staging deployment, paid Cloudflare Durable Objects, or production publication approved or attempted.
135
+- Full handoff: `docs/operations/chartnova-neon-v2-ws-quality-2026-10-12.md`.