Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

Trusted-agents leaderboard: surface the wallet-trust score as a destination

nirholas28ab51de4500
diff --git a/pages/trending.html b/pages/trending.html
index 9f401a028..80204a52b 100644
--- a/pages/trending.html
+++ b/pages/trending.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<title>Trending · three.ws</title>
- <meta name="description" content="What's hot on three.ws — top AI agents ranked by real activity and top Oracle conviction coins ranked by score." />
+ <meta name="description" content="What's hot on three.ws — top AI agents by real chat activity, the most trusted agents by real wallet-trust score, and top Oracle conviction coins." />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="stylesheet" href="/fonts/fonts.css" />
<link rel="canonical" href="https://three.ws/trending" />
@@ -40,9 +40,10 @@
<div class="tr-controls">
<div class="tr-tabs" role="tablist">
<button class="tr-tab active" role="tab" aria-selected="true" data-tab="agents">Agents</button>
+ <button class="tr-tab" role="tab" aria-selected="false" data-tab="trusted">Trusted</button>
<button class="tr-tab" role="tab" aria-selected="false" data-tab="coins">Coins</button>
</div>
- <div class="tr-windows" role="group" aria-label="Time window">
+ <div class="tr-windows" id="trWindows" role="group" aria-label="Time window">
<button class="tr-win active" data-win="24h">24h</button>
<button class="tr-win" data-win="7d">7d</button>
<button class="tr-win" data-win="all">All time</button>
@@ -71,6 +72,27 @@
</div>
</section>
+ <section class="tr-section" id="sec-trusted" aria-label="Most trusted agents">
+ <div class="tr-legend">
+ <span>Agent</span>
+ <span class="tr-legend-r">Trust score</span>
+ </div>
+ <ol class="tr-list" id="trustedList" aria-live="polite">
+ <li class="tr-skeleton"></li>
+ <li class="tr-skeleton"></li>
+ <li class="tr-skeleton"></li>
+ <li class="tr-skeleton"></li>
+ <li class="tr-skeleton"></li>
+ </ol>
+ <div class="tr-empty" id="trustedEmpty" hidden>No agents have earned a track record yet. Trust is built from real money and time — be the first.</div>
+ <div class="tr-error" id="trustedError" role="alert" hidden>
+ <span class="tr-error-icon" aria-hidden="true">⚠️</span>
+ <span class="tr-error-title">Couldn't load the trust leaderboard</span>
+ <span class="tr-error-sub">Check your connection and try again.</span>
+ <button class="tr-retry" id="trustedRetry" type="button">↻ Retry</button>
+ </div>
+ </section>
+
<section class="tr-section" id="sec-coins" aria-label="Top conviction coins">
<div class="tr-legend">
<span>Coin</span>
@@ -94,7 +116,7 @@
</div>
<p class="tr-footnote">
- Agent ranking: chats with real users via embedded widgets. Coins: <a href="/oracle">Oracle</a> conviction score (pedigree + structure + narrative + momentum), refreshed every 30 min.
+ Agents: chats with real users via embedded widgets. Trusted: a real, non-gameable wallet-trust score (0–100) from settled volume, tips from distinct funded wallets, age, payment reliability, fork lineage, and on-chain identity — every input auditable, each row links to its breakdown. Coins: <a href="/oracle">Oracle</a> conviction score (pedigree + structure + narrative + momentum), refreshed every 30 min.
</p>
</main>
@@ -217,6 +239,21 @@
.tr-tier-watch { color: #8b5cf6; border-color: rgba(139,92,246,.3); background: rgba(139,92,246,.08); }
.tr-tier-avoid { color: #6b7280; border-color: rgba(107,114,128,.2); background: rgba(107,114,128,.05); }
+ /* reputation tier pill (matches TIERS accents in wallet-reputation.js) */
+ .tr-rt {
+ display: inline-flex; align-items: center; gap: 4px;
+ font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
+ padding: 2px 7px; border-radius: 6px; border: 1px solid;
+ }
+ .tr-rt-new { color: #9ca3af; border-color: rgba(156,163,175,.28); background: rgba(156,163,175,.06); }
+ .tr-rt-emerging { color: #c4b5fd; border-color: rgba(196,181,253,.3); background: rgba(196,181,253,.08); }
+ .tr-rt-established { color: #a78bfa; border-color: rgba(167,139,250,.32); background: rgba(167,139,250,.09); }
+ .tr-rt-trusted { color: #4ade80; border-color: rgba(74,222,128,.32); background: rgba(74,222,128,.08); }
+ .tr-rt-elite { color: #fbbf24; border-color: rgba(251,191,36,.34); background: rgba(251,191,36,.09); }
+
+ .tr-trust-num { color: #f3f4f6; }
+ .tr-trust-slash { color: #6b7280; font-weight: 600; }
+
/* onchain badge */
.tr-onchain {
font-size: 9px; font-weight: 700; letter-spacing: .08em;
@@ -284,13 +321,19 @@
let cache = {}; // cache[key] = data
// ── Tab switching ───────────────────────────────────────────────────
+ function syncTab(tab) {
+ currentTab = tab;
+ $$('.tr-tab').forEach(b => { b.classList.toggle('active', b.dataset.tab === tab); b.setAttribute('aria-selected', String(b.dataset.tab === tab)); });
+ $$('.tr-section').forEach(s => s.classList.toggle('active', s.id === `sec-${tab}`));
+ // Trust is an all-time signal — the time-window control doesn't apply to it.
+ $('#trWindows').hidden = tab === 'trusted';
+ if (tab === 'trusted') loadTrusted();
+ }
$$('.tr-tab').forEach(btn => {
btn.addEventListener('click', () => {
const tab = btn.dataset.tab;
if (tab === currentTab) return;
- currentTab = tab;
- $$('.tr-tab').forEach(b => { b.classList.toggle('active', b.dataset.tab === tab); b.setAttribute('aria-selected', String(b.dataset.tab === tab)); });
- $$('.tr-section').forEach(s => s.classList.toggle('active', s.id === `sec-${tab}`));
+ syncTab(tab);
});
});
@@ -307,14 +350,15 @@
});
// ── Retry buttons ───────────────────────────────────────────────────
- function retry(btn) {
+ function retry(btn, fn) {
btn.disabled = true;
const prev = btn.innerHTML;
btn.innerHTML = '<span class="tr-retry-spin" aria-hidden="true"></span>Retrying…';
- loadData().finally(() => { btn.disabled = false; btn.innerHTML = prev; });
+ fn().finally(() => { btn.disabled = false; btn.innerHTML = prev; });
}
- $('#agentRetry').addEventListener('click', (e) => retry(e.currentTarget));
- $('#coinRetry').addEventListener('click', (e) => retry(e.currentTarget));
+ $('#agentRetry').addEventListener('click', (e) => retry(e.currentTarget, loadData));
+ $('#coinRetry').addEventListener('click', (e) => retry(e.currentTarget, loadData));
+ $('#trustedRetry').addEventListener('click', (e) => retry(e.currentTarget, () => loadTrusted(true)));
// ── Tier pill ───────────────────────────────────────────────────────
function tierPill(tier) {
@@ -421,6 +465,76 @@
}).join('');
}
+ // ── Render trusted agents ───────────────────────────────────────────
+ // The platform's real leaderboard of trusted agents, ranked by the same
+ // non-gameable wallet-trust score the badge shows everywhere else — backed
+ // by real money and time, fully auditable. Each row links straight to the
+ // agent's trust breakdown (#reputation), where every input is explained.
+ function renderTrusted(agents) {
+ const list = $('#trustedList');
+ const empty = $('#trustedEmpty');
+ const error = $('#trustedError');
+
+ error.hidden = true;
+ if (!agents.length) { list.innerHTML = ''; empty.hidden = false; return; }
+ empty.hidden = true;
+
+ list.innerHTML = agents.map(a => {
+ const initial = (a.name || 'A')[0].toUpperCase();
+ const avHtml = a.avatar_thumbnail_url
+ ? `<img src="${esc(a.avatar_thumbnail_url)}" alt="" loading="lazy" />`
+ : esc(initial);
+ const rankCls = a.rank <= 3 ? ` tr-rank-${a.rank}` : '';
+ const name = a.name || 'Unnamed agent';
+ const tier = String(a.tier || 'emerging');
+ const tierLabel = a.tier_label || tier;
+ const fallback = a.id != null ? `/agent/${encodeURIComponent(a.id)}/wallet#reputation` : null;
+ const href = safeHref(a.breakdown_url, fallback);
+ const tag = href ? 'a' : 'div';
+ const score = Math.round(Number(a.score) || 0);
+ const attrs = href
+ ? ` href="${esc(href)}" aria-label="Rank ${a.rank}: ${esc(name)}, trust score ${score} of 100, ${esc(tierLabel)}"`
+ : ` role="group" aria-label="Rank ${a.rank}: ${esc(name)}, trust score ${score} of 100, ${esc(tierLabel)}"`;
+ // Wallet chip without its own rep badge here — the meta column is the
+ // headline trust number on this surface, so the badge would be redundant.
+ return `<li>
+ <${tag} class="tr-row"${attrs}>
+ <span class="tr-rank${rankCls}">${a.rank}</span>
+ <span class="tr-av">${avHtml}</span>
+ <span class="tr-body">
+ <span class="tr-name">${esc(name)} <span class="tr-rt tr-rt-${esc(tier)}">${esc(tierLabel)}</span></span>
+ ${a.solana_address ? `<span class="tr-wallet" style="margin-top:4px;display:inline-flex">${walletChipHTML(a, { link: false, showPending: false, reputation: false })}</span>` : ''}
+ </span>
+ <span class="tr-meta">
+ <span class="tr-metric"><span class="tr-trust-num">${score}</span><span class="tr-trust-slash">/100</span></span>
+ <span class="tr-metric-label">trust</span>
+ </span>
+ </${tag}>
+ </li>`;
+ }).join('');
+
+ wireWalletChips(list);
+ }
+
+ // ── Load trusted (lazy: only when the tab is first opened) ───────────
+ let trustedData = null;
+ async function loadTrusted(force = false) {
+ if (trustedData && !force) { renderTrusted(trustedData); return; }
+ setSkeletons('trustedList');
+ $('#trustedEmpty').hidden = true;
+ $('#trustedError').hidden = true;
+ try {
+ const r = await fetch('/api/reputation/leaderboard?limit=25');
+ if (!r.ok) throw new Error('HTTP ' + r.status);
+ const data = await r.json();
+ trustedData = data.agents || [];
+ renderTrusted(trustedData);
+ } catch {
+ $('#trustedList').innerHTML = '';
+ $('#trustedError').hidden = false;
+ }
+ }
+
// ── Skeleton states ─────────────────────────────────────────────────
function setSkeletons(listId, count = 5) {
const list = $('#' + listId);
@@ -458,6 +572,10 @@
}
}
+ // Honor a shareable ?tab= deep link (e.g. /trending?tab=trusted).
+ const initialTab = new URL(location.href).searchParams.get('tab');
+ if (initialTab === 'trusted' || initialTab === 'coins') syncTab(initialTab);
+
loadData();
</script>
<script src="/nav.js" defer></script>
diff --git a/prompts/agent-wallets/10-wallet-reputation-trust.md b/prompts/agent-wallets/10-wallet-reputation-trust.md
deleted file mode 100644
index 42faf25fa..000000000
--- a/prompts/agent-wallets/10-wallet-reputation-trust.md
+++ /dev/null
@@ -1,113 +0,0 @@
-# Task 10 — Wallet Reputation & Trust (the wallet as a credibility signal)
-
-> **Read [00-README-orchestration.md](./00-README-orchestration.md) first** for the
-> ownership model, design tokens, real APIs, hard rules, definition of done, and the
-> "improve then delete this file" close-out. Consumes the shared wallet component
-> (**task 01**), the ledger from task 07, and the economy from task 08.
-
-## Mission
-
-In a world of infinite forkable avatars, **trust is the scarce asset.** A wallet's
-real history — how much it has earned, how long it has been active, how reliably it
-pays, how many people forked it, how much it has been tipped — is the most honest
-reputation signal three.ws has. Build a **wallet reputation layer**: a real,
-non-gameable credibility score derived entirely from real on-chain and ledger
-activity, surfaced wherever an agent appears, and wired into discovery so good actors
-rise. This is the trust primitive the rest of the agent web lacks.
-
-A reputation built on fake numbers is worse than no reputation. **Every input is a
-real, verifiable fact.** No invented scores, no vanity inflation.
-
-## What the score is made of (real inputs only)
-
-Derive reputation from real data you can defend:
-
-- **Earnings & volume** — real income and payment volume from `agent_custody_events`
- (task 08's economy) and on-chain reads.
-- **Tips received** — real tips (`/solana/tip` records + on-chain).
-- **Age & consistency** — real wallet/agent age and activity cadence from the ledger
- and chain history.
-- **Fork lineage** — real `fork_count` and the fork network (`meta.forked_from`); being
- forked a lot is a real signal of value.
-- **Payment reliability** — for agents that transact (task 08), real success/failure
- history of settlements.
-- **On-chain identity** — whether the agent has a verified on-chain identity
- ([contracts/](../../contracts), ERC-8004) / skill licenses
- ([contracts/skill-license/](../../contracts/skill-license)) as a real trust boost.
-
-Design the scoring to **resist gaming**: weight provable, costly signals (real volume,
-age, on-chain verification, tips from distinct funded wallets) over cheap ones
-(self-tips, wash activity). Document the formula in the module; it must be
-explainable, not a black box. If a signal can be cheaply faked, it earns little or
-nothing.
-
-## What to build
-
-If a reputation source doesn't exist, **build it for real**: a server-side
-`GET /api/agents/:id/reputation` (and a batch variant for lists) that computes the
-score from the real ledger + chain reads, cached sensibly. Never compute a trust score
-on the client from a hardcoded table.
-
-1. **A reputation badge/score on the wallet identity** (task 01's chip) — a tasteful,
- honest credibility marker that appears everywhere the agent does. Tiers must reflect
- real thresholds; a brand-new agent honestly reads as "new," not fake-trusted.
-2. **A breakdown view** (in the HUD, task 02) — exactly *why* the score is what it is:
- each real input, its contribution, with links to the real evidence (signatures,
- fork lineage, on-chain identity). Transparency is the trust.
-3. **Discovery wiring** — let reputation inform ranking/sorting where agents are
- browsed (trending, marketplace, services directory from task 08). Good actors rise
- on real merit. Keep it one real signal among others; never let it become a
- pay-to-win knob.
-4. **Anti-gaming honesty** — surface what *doesn't* count (self-tips, wash trades) so
- the score reads as credible. If you detect obvious manipulation, discount it in the
- real computation, not with a fake flag.
-
-## Ownership & roles
-
-- The score is **public** (it's a trust signal others rely on) — owner and visitor see
- the same number. The owner additionally sees actionable guidance ("verify on-chain
- identity to raise trust") tied to real, available actions.
-- Reputation is read-only and derived — no one can set or buy it directly. Inputs come
- only from real activity.
-
-## $THREE rule
-
-Volume/earnings are denominated in real assets (SOL/USDC/$THREE) from runtime data.
-**$THREE is the only coin named or promoted.** Never reference another token as part
-of a score, threshold, or example.
-
-## Innovation mandate
-
-- **Trust you can audit** — unlike a follower count, this score is backed by money and
- time and is fully explainable. That auditability is the innovation; lean into it.
-- **Reputation as the antidote to infinite forks** — the user's ownership model means
- anyone can fork an avatar; reputation is what makes the *original* and the *proven*
- agent stand out from a copy. Make that contrast visible (an original with history vs.
- a fresh fork with none).
-- **A real leaderboard of trusted agents** — ranked by real reputation, a destination
- that rewards genuine activity. Coordinate with task 05's trader leaderboard and task
- 07's pulse stats so the platform's "best agents" views agree and reinforce.
-- Invent past this where it raises the bar — but never let a single fabricated input
- touch the score.
-
-## States & edge cases
-
-Brand-new agent with no history (honest "new" state, not a fake high/low score); an
-agent with activity but no on-chain verification; a heavily-forked agent; detected
-self-tipping / wash activity (discounted in the real computation); an agent that lost
-reputation (show it honestly); score unavailable because a data source is momentarily
-down (degrade to last-known or "calculating," never a fake number); 0 / 1 / many
-inputs in the breakdown; 320/768/1440.
-
-## Definition of done
-
-Per the orchestration README. Plus: the reputation endpoint computes a score from
-**real** ledger + chain inputs (no hardcoded contributions) with a documented,
-explainable formula; the badge appears on the wallet identity across surfaces; the
-breakdown links to real evidence; discovery ranking consumes the real score; obvious
-gaming is discounted in the computation; a new agent reads honestly as new; no console
-errors; responsive. No non-$THREE coin named or promoted.
-
-When done: self-review + improvement pass, real changelog entry,
-`npm run build:pages`, commit (explicit paths only; both remotes if asked), then
-**delete this file** (`prompts/agent-wallets/10-wallet-reputation-trust.md`).