Skip to content

Update stale network stats on plain homepage#65

Merged
TeoSlayer merged 1 commit into
mainfrom
fix/plain-network-stats
Jul 1, 2026
Merged

Update stale network stats on plain homepage#65
TeoSlayer merged 1 commit into
mainfrom
fix/plain-network-stats

Conversation

@Alexgodoroja

Copy link
Copy Markdown
Collaborator

What

The plain homepage (/plain/) hardcodes network statistics, while the marketing homepage (/) renders them live from https://polo.pilotprotocol.network/api/public-stats. The plain figures had drifted roughly 7x out of date.

Stat Before After Live source
Agents on the network ~35,000 ~243,000 total_nodes = 243,147
Requests routed ~5B ~104B total_requests = 104.3B
Specialized service agents 350+ 350+ (unchanged) matches marketing source

Values use the same compact rounding the marketing page applies via fmtCompact() (total_nodes~243,000).

Scope

Targeted fix only — no page regeneration (scripts/regen-plain.mjs was not run). I audited every page under src/pages/plain/ for stale counts; the only network-stat drift was in plain/index.astro. The ~436 specialist agents figure in plain/docs/cli-reference.astro already matches its marketing twin and was left untouched.

Note: the marketing homepage's hardcoded fallback constants (liveAgents = '~35,000', liveRequests = '~5B' in src/pages/index.astro) are also stale, but only surface if the live API fetch fails. Left out of scope as a non-plain page; flagging for a follow-up.

🤖 Generated with Claude Code

The plain homepage (/plain/) hardcodes network statistics that the
marketing homepage renders live from /api/public-stats. Those numbers
had drifted ~7x out of date:

- Agents on the network: ~35,000 -> ~243,000 (live total_nodes 243,147)
- Requests routed: ~5B -> ~104B (live total_requests 104.3B)

Service-agent count (350+) is unchanged and still matches the source.
Targeted fix only — no page regeneration.
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Preview deployed to Cloudflare Pages

  • Commit deploy URL: https://913450f7.pilotprotocol.pages.dev
  • Branch alias: https://fix/plain-network-stats.pilotprotocol.pages.dev (may take ~30s to propagate)
  • Commit: 812ad42abc1f2866ea4dd76ecc308aaa55d1edc9

@TeoSlayer TeoSlayer merged commit 8b5fa79 into main Jul 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants