{"id":"XE-13257","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"393","source_url":"https://github.com/xeprotocol/xe/issues/393","reporter_id":2479,"title":"Volume test pre-notice: bounded SSE connection-holding measurement on testnet-0005","area":"ops-testnet","claimed_tier":null,"assessed_tier":null,"verdict":"notice","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"answered","github_state":"closed","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-14T20:42:04.553797+00:00","updated_at":"2026-11-20T00:25:42.246854+00:00","source_created_at":"2026-11-11T15:37:23+00:00","told_at":"2026-11-20T00:24:36+00:00","status_changed_at":"2026-11-20T00:08:43.527505+00:00","url":"https://bounty.xe.network/XE-13257","body":"This is a campaign notice, not a bug report. I am pre-notifying a bounded volume measurement against the public testnet, as required, so the team can watch and attribute the traffic. If the measurements show nothing, I will close this issue with the numbers attached. If they show reproducible degradation, I will file a separate finding with the measurements as evidence.\n\nAttribution: blacktokyo (X @_blacktokyo_).\n\nAlready known — NOT what this campaign claims:\n- Issue #383: the T2-B sync-stream campaign under this same program — clean negative, closed with the numbers attached. Distinct: it measured sync streams. This campaign sends no sync traffic and measures only SSE connection holding.\n- PR #343 / issue #297: chat PoW difficulty floor. Not touched — no chat messages are sent and no PoW is computed; this campaign holds connections only.\n- XE-1624 (filed by another researcher): the sync client resets its 10 MiB response cap per page. Not touched — no sync traffic at all in this campaign.\n- Issue #70: GET /accounts does full-lattice work regardless of ?limit=. Not touched (no /accounts traffic beyond a handful of baseline reads).\n- Issue #59: net/sync no in-flight guard on sync rounds (client-side first-sync memory/CPU). Not touched — no sync traffic in this campaign.\n- The 60 s WriteTimeout cap itself is a known constant (cmd/xe/main.go:1458). The campaign measures what happens when many streams are held under continuous re-open beneath that cap, not the cap's existence.\n\nWhat the campaign measures:\n- The concurrency ceiling for SSE streams: how health (/health latency), readiness (/ready), and finality advancement (finality_advances, block_count from /node) respond as concurrent SSE streams step from 10 → 50 → 100 → 250 → 500 → 1000, held by continuous re-open (each stream is killed by the server at ~60 s).\n- Per-stream server cost at scale: open success rate, time-to-first-: connected, time-to-first-ping, and the achieved concurrent count (streams actually open, measured from open/close timestamps — not just the attempted number).\n- Whether any degradation is reproducible and clears after the run (cool-down check).\n\nBaseline already measured (light probes, no degradation): a single SSE stream opened in 0.157 s (: connected at 0.2 s, pings at 20.3 s and 40.2 s) and was killed by the server at 60.156 s; /health 0.155–0.176 s during the stream; /ready true throughout. A local control node with no proxy in the path killed its own stream at 60.002 s — the 60 s cap is the node's own WriteTimeout, not a proxy. Per-stream cost measured locally: +2 goroutines, +1 file descriptor, ~+1.1 MB heap at open, released cleanly on stream death.\n\nHard bounds (this campaign will not exceed any of these):\n\n- Source: Single client, single IP, plain HTTPS (SSE is not a libp2p protocol — no peer identity applies); 10 fresh ephemeral probe accounts (ed25519 keypairs, no funds), streams distributed across them; account IDs recorded in the run log\n- Target: https://ldn.core.test.network node 12D3KooWJg4PQYGSfNCupBWZdEWbKj7pgdp5MmmUXbPdBcp6YDtT (testnet-0005, xe/3019b76)\n- Endpoints: GET /chat/auth/challenge + GET /chat/events?account=… (SSE); plus read-only GET /health, /ready, /node, /supply (1 Hz sampling during runs)\n- Stream shape: Fixed — one probe account per stream, fresh challenge + ed25519 signature per open, no messages sent; each stream lives ≤~60 s by the server's own WriteTimeout, re-opened on death to hold N\n- Concurrency: ≤ 1000 concurrent SSE streams (attempted ceiling); steps 10 → 50 → 100 → 250 → 500 → 1000, separate runs; achieved concurrency measured and reported\n- Stream rate: ≤ ~17 opens/s at the top step (N/60 per second, replacing streams the server kills); ≤ 2 read tokens per open — ≤ ~34 tokens/s at N=1000, inside the 200/s read bucket\n- Duration: ≤ 10 min per run (5 min target); 2-min cool-down + baseline re-check between runs\n\n- Total volume: ≤ 10,000 stream opens per run (10-min max at N=1000); ≤ ~20,000 opens across the whole campaign; per-stream traffic is only : connected + 20 s pings (a few hundred bytes), so total egress is a few MB\n- Writes: None — read-only SSE streams; no chat messages sent, no blocks submitted, no state changed, no faucet, no funds, no directory registration\n- Out of scope (never touched): Hosting layer (nginx/DNS/website/faucet), /accounts, sync streams (/xe/sync/1.0.0), any other node, the unfiltered firehose (admin-only, no account param), X-Forwarded-For spoofing / IP rotation, the chat PoW difficulty floor (PR #343)\n\nAbort criteria (any one stops the run immediately): /ready returns false; /health p95 > 5 s sustained 60 s; finality_advances stalls > 60 s; stream open failure rate > 10% (an open failure is a non-200 response, an open timeout, or a stream dying <50 s after open — a death at ~60 s is the expected WriteTimeout kill, not a failure); /health or /ready unreachable for >60 s sustained.\n\nWhat counts as a finding vs noise: a finding is reproducible, monotonic degradation with concurrency (health-latency growth, readiness flip, finality stall, open-failure growth) that clears on cool-down. Noise is single-sample latency spikes, first-sample cold effects (~1 s), Caddy/proxy variance, the expected ~60 s stream deaths, and transient dial/read errors.\n\nIf nothing is found: I will close this issue with the full measurements attached.","patch_refs":[],"thread":[{"id":13023,"source":"github","source_ref":"7026257814","author":"XE desk","team":true,"body":"Thanks for the report. We have read it and answered what it raises.\n\nThis report is closed as answered. If there is more to it, file a new report that links\nhttps://bounty.xe.network/XE-13257; it is read like any other.","created_at":"2026-11-20T00:24:36+00:00"}]}