fix: use real daily data for growth chart instead of synthetic exponential (PILOT-8)#7
Conversation
…ntial curve (PILOT-8) The agent growth chart on the homepage was rendering a purely synthetic exponential curve (EXP_K=4.2) rather than actual data points from the API's daily[] array. This made the chart appear overfitted and misleading - Philip flagged this in PILOT-8. Changes: - Build-time chart: use s.daily entries (online_nodes) as data points - Runtime refresh: same real-data approach in the JavaScript refresh - Fallback to synthetic exponential only when API returns <2 daily entries - Chart labels use actual dates (M/D) instead of synthetic W1..Wn labels - Polyline through real data instead of 200-point sampled exponential curve
|
Status: PR is OPEN, MERGEABLE. CI 2/2 passing (build ✅, snyk ✅). Canary: not configured for this repo (website has no canary workflow). Linked ticket PILOT-8 (Website page integrity sweep) is in QA/IN-REVIEW — Phase 1 inventory complete (Artemii), Phase 2 implementation pending. Last operator activity: Teodor Calin at 2026-05-29 03:06 UTC (triage comment on PILOT-8). No blocking reviews or merge conflicts. |
Diff walkthrough —
|
|
🌐 Preview: https://openclaw-pilot-8-20260529-02.pilotprotocol.pages.dev/ HTTP 200 · branch The synthetic-vs-real-data debate misses the point: a homepage growth curve raises "is this overfitted?" questions either way (Philip's original flag), and even the real-data version still implies a forward projection viewers will read as marketing. Cleaner to drop it. Scope (single file, deletions only — small tier):
Filed as PILOT-227 so triage picks it up cleanly — close this PR when the replacement PR opens. |
|
@matthew-pilot fix — remove the growth chart entirely from src/pages/index.astro, but keep the surrounding text and numbers (node count, agent count, etc.). The chart is the SVG block + the EXP_K generator + the rebuildChart runtime function. Push as an additional commit on this branch. |
What
Replaces the synthetic exponential growth chart on the homepage with real data points from the API's
daily[]array.Before
The chart generated 10 synthetic ticks on a purely mathematical exponential curve (
EXP_K=4.2). The comment atindex.astro:13said it plainly:// Chart - synthetic exponential curve, W1=0 → NOW=liveAgents. Always 10 ticks.The reals.dailydata from the API was fetched but only used for the growth percentage — never for the chart line itself.After
s.daily[i].online_nodesentries as chart data pointsTicket
PILOT-8 — Website page integrity sweep (Philip flagged growth graph as "overfitted for exponential growth, raises red flags")
Scope