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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
Add new x402 endpoints for health checks, notifications, and schema validation
nirholasaeb19bea1b59
diff --git a/.env.example b/.env.exampleindex 8c33b1da2..51e86c61d 100644--- a/.env.example+++ b/.env.example@@ -330,6 +330,13 @@ SDP_API_BASE=https://api.solana.com# Per-network payTo wallets that receive USDC for paid MCP calls.X402_PAY_TO_SOLANA=BUrwd1nK6tFeeJMyzRHDo6AuVbnSfUULfvwq21X93nSNX402_PAY_TO_BASE=0x4022de2d36c334e73c7a108805cea11c0564f402+# Dedicated EIP-712 signing key for signed offers and payment receipts (USE-17).+# This is a dedicated signing key, NOT a wallet that holds funds. Generate with:+# node -e "console.log(require('viem/accounts').generatePrivateKey())"+# Never reuse an X402_PAY_TO_* address here — the issuer module rejects it on boot.+# Rotate by changing the value and bumping `#key-1` -> `#key-2` in code if needed.+# When unset, signed offers/receipts are silently disabled (rollback without redeploy).+X402_RECEIPT_SIGNING_KEY=0xREPLACE_WITH_DEDICATED_SIGNING_KEY_HEX_64_CHARS# Prepaid credits (POST /api/credits/deposit): the Solana wallet users send SOL or# $THREE to when topping up their balance. Defaults to X402_PAY_TO_SOLANA, then the# $THREE treasury, if unset — set it to route deposits to a dedicated wallet.diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 782c84355..6b2177f0f 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,12 +6,17 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-06-28+- **API Key Validity Health — the platform verifies its own access keys every hour** — A lapsed or missing access key for the autonomous loop means every self-call in the pipeline hits the paywall cold — legitimate tool calls start failing, recovery is manual, and the outage is invisible until someone investigates why the spend log went quiet. The platform now detects this automatically. Every hour an autonomous agent makes a real on-chain payment to a new /api/x402/api-key-health endpoint with body { scope: "autonomous_loop" }. The endpoint checks whether any active subscription key covers the requested scope, falling back to the INTERNAL_API_KEY env var, and returns { valid, scopes, expires_at }. The extracted signal surfaces hours_until_expiry in x402_autonomous_log.signal_data. When expiry is within 24 hours the storeValue hook writes a Redis alert (x402:api-key-health:expiry-alert) so the ops surface can surface the warning before the key lapses. `[infra, feature]`+- **Auth Session Lifecycle Health — the platform canaries its own JWT auth pipeline every 30 minutes** — A broken auth subsystem — a JWT signer that stops working, a verifier that accepts expired tokens, or a misconfigured issuer — can lock users out silently or, worse, leave a security hole open. The platform now detects both within 30 minutes. Every half-hour an autonomous agent makes a real on-chain payment to a new /api/x402/auth-health endpoint and runs a four-step session lifecycle canary: mint a canary access token, verify it with the full JWT verifier, issue a replacement token and re-verify it (the rotation path), and confirm that an already-expired token is rejected. Each step is timed independently; a failure names exactly which step broke and why. The result — all_pass, failed_step, and per-step latency — is recorded as an actionable signal so ops can read auth health off a single log row without a separate query. `[infra, security]`+- **Changelog Telegram bot health check** — The autonomous x402 loop now pings the changelog Telegram bot every 5 minutes by paying $0.001 USDC to the new /api/x402/telegram-health endpoint. It verifies the bot can reach the Telegram API, measures round-trip latency, and raises a Redis alert when it can't — so ops knows immediately when $THREE holders would miss a changelog entry. `[infra, feature]`- **Club Social Activity — the platform tracks its own nightlife economy on-chain** — The autonomous loop now pays /api/x402/analytics every 30 minutes with { report: "clubs", period: "24h" } for a live snapshot of the Pole Club's social economy. The report reads straight from the real ledgers — settled tips (club_tips), the stage roster (club_dancer_wallets) and settled door cover charges (x402_audit_log) — and returns how many stages are active, how many distinct patrons showed up, the tip count and USDC volume, the cover charges collected at the door, and a fastest-growing-stage leaderboard. Every snapshot is appended to a club_social_analytics time series so a dashboard can chart whether the nightlife is heating up or cooling down and spot which stages are on the rise. `[feature, infra]`- **Forge Content Health — the platform canaries its own generation engine every 10 minutes** — Every 3D generation the Forge produces begins by running a prompt through the platform's generative AI lane, so if that lane slows down or goes dark, creations stall before a mesh is ever built. The platform now watches for this automatically. Every ten minutes an autonomous agent makes a real on-chain payment to a new lightweight health_check mode on /api/x402/forge, which runs one fast text completion over the same free-first model chain Forge depends on — no expensive 3D reconstruction — and reports back whether content was generated, how long it took, and the token count. A completion slower than five seconds, or an outright generator outage, raises a Forge performance alert that an on-call dashboard reads in a single lookup and that clears itself once generation is healthy again. The new health_check mode is also available to any x402 agent on the bazaar for a fraction of a cent, far cheaper than a full generation, for callers that just want to confirm the engine is live. `[infra, feature]`- **Marketplace Catalog Stats — live listing count, pricing, and engagement via x402** — The autonomous loop now pays /api/x402/analytics every 5 minutes with { report: "marketplace", period: "7d" } to confirm the public agent marketplace is alive and measure its health. The report returns the total active listing count split into priced vs free, the price distribution normalised to both USD and SOL at the live Jupiter rate, the count of new listings in the selected window, and the most-viewed and most-forked listing by ID and name. The extracted signal — listing_count, avg_price_sol, most_viewed_id — is recorded to x402_autonomous_log so a health dashboard can read marketplace vitals without querying the catalog tables directly. A listing_count of 0 trips an ops alert within one 5-minute window; a null avg_price_sol flags a SOL oracle outage. `[feature, infra]`- **MCP Tool Discovery — the platform notices the moment a new agent capability ships** — The three.ws MCP server exposes a growing catalog of tools agents can call — render and inspect 3D models, query live pump.fun market data, read Oracle conviction signals, and more — and that catalog changes as new capabilities ship. Until now, an agent wanting to use a brand-new tool had to keep re-fetching the full tool list and diffing it by hand to notice anything had changed. The platform now does that watching for them. Every two hours an autonomous agent makes a real on-chain payment to a new paid endpoint that fingerprints the live tool catalog and compares it to a durable registry, then reports exactly what changed since the last check: tools that are newly registered, tools whose price or input shape changed, and tools that were removed. New tools are recorded the instant they appear, giving agents a single feature-flag source to light up a new capability without polling. The diff is logged like every other autonomous payment, and the same endpoint is available to any agent on the x402 bazaar for a fraction of a cent. `[feature, infra]`- **Pay-By-Name Resolution Health — the platform watches its own name registry every 10 minutes** — Every 'send USDC to a name' flow on three.ws — the SDK's payByName(), the /pay studio, the profile pay button, and any agent routing a payment to @username or a .sol domain — resolves the recipient through the same name registry before a single lamport moves. If that registry breaks (a Bonfida SNS regression, the parent domain de-registering, or the platform domain repointing to a different wallet), the failure is silent and every downstream send either pays the wrong place or throws an error. The platform now watches for this automatically. Every 10 minutes an autonomous agent makes a free call to the resolve endpoint with the platform's own known SNS name and checks that it comes back with a valid, on-curve Solana wallet address. If an expected wallet is configured, it additionally asserts the resolution still matches that specific wallet — an anti-poisoning check that catches a domain repoint between deploys before any user is affected. Results are recorded to a time-series log and cached in Redis so a health dashboard can read the latest verdict without a database round-trip. A failed or mismatched resolution raises an alert flag that lingers until the next clean run. The monitor is a read-only, free call — it moves no funds — and it replaces a prior registry entry that was calling the wrong endpoint method and would have silently recorded every 404 as healthy. `[feature, infra]`- **Pump Launch Monitor: live snipe-candidate screening** — The autonomous x402 agent now pays to audit the 10 most recently launched pump.fun tokens every 5 minutes, extracting each cohort's average and peak initial bonding-curve liquidity. New launches with initial liquidity well above the rolling cohort average are surfaced as high-conviction snipe candidates; the signal is upserted into the oracle feed so the sniper gate can act on it immediately. `[feature, infra]`+- **RSS Feed Health — the platform validates its own changelog XML feed every 5 minutes** — A broken RSS feed is invisible — the feed URL returns 200, but the XML inside is malformed, the item count drifted after a skipped build step, or the latest entry title diverged from the canonical record. The platform now catches all three failure modes automatically. Every five minutes an autonomous agent makes a real on-chain payment to a new /api/x402/feed-health endpoint with body { feed: "changelog_rss" }. The endpoint fetches three.ws/changelog.xml, parses it as RSS 2.0 with fast-xml-parser, counts the <item> elements, and cross-checks the latest item title against the canonical public/changelog.json compiled output. If any of those checks fail — invalid XML, unreachable URL, title mismatch — the { valid: false } verdict is recorded as an actionable signal in x402_autonomous_log.signal_data so the status surface can read feed health in a single lookup. The same endpoint is available on the x402 bazaar for $0.001 per check. `[infra, feature]`+- **Skill Marketplace: most-purchased skills signal** — The autonomous x402 loop now pays every 30 minutes to retrieve the 5 most-purchased agent skills over the past 7 days from the real hire ledger. The top skill and full ranked list land in the autonomous log as actionable signal for featured-listing curation — a shift in the top skill across runs surfaces emerging high-demand capabilities automatically. `[feature, infra]`- **User Activity Analytics — DAU, WAU, and top features now tracked every 6 hours via x402** — The platform now monitors its own engagement metrics automatically. Every six hours an autonomous agent pays the /api/x402/analytics endpoint for a live user_activity report — computing DAU, WAU, stickiness (DAU/WAU ratio), the top ten features by event volume, the platform error rate, and session-length distribution (average, median, and p90). All figures are read live from the real metered tables; an empty window returns zeros, never fabricated numbers. The extracted signal — dau, wau, top_feature — is recorded to x402_autonomous_log for the status surface to read, and every snapshot is persisted to a user_activity_snapshots time series for trend alerting and the engagement dashboard. The same report is available to any x402 agent on the bazaar for $0.005 per call. `[feature, infra]`- **x402 Volume Analytics — the platform measures its own payment economy every 30 minutes** — The autonomous loop now pays /api/x402/analytics every 30 minutes with { report: "x402_volume", period: "24h" } for a live read of x402 transaction volume across every paid endpoint. The report comes straight from the settled-payment ledger and returns the totals that prove ecosystem growth — total settled calls, total USDC paid, and unique paying wallets — alongside a per-endpoint breakdown and the least-active ("underused") endpoints, so the platform can see at a glance which services are thriving and which need a push or a rethink. The headline totals and the underused-endpoint list are recorded as an actionable signal, and the same report is available to any x402 agent on the bazaar for $0.005 per call. `[feature, infra]`diff --git a/api/_lib/env.js b/api/_lib/env.jsindex af317f747..ae7e621e2 100644--- a/api/_lib/env.js+++ b/api/_lib/env.js@@ -755,6 +755,14 @@ export const env = {// receiver contract address must be set explicitly per deploy.return addr(opt('X402_PAY_TO_BSC'));},+ // Dedicated EIP-712 signing key for the offer-receipt extension (USE-17).+ // MUST NOT be any X402_PAY_TO_* key — those receive funds; this one only+ // signs off-chain commitments. When unset, api/_lib/x402-offer-receipt.js+ // exports a no-op issuer (null) and signed offers/receipts are not emitted.+ // Unset is the rollback toggle — no redeploy needed.+ get X402_RECEIPT_SIGNING_KEY() {+ return opt('X402_RECEIPT_SIGNING_KEY');+ },// ── AWS Marketplace ──────────────────────────────────────────────────────// IAM credentials with marketplaceMetering:ResolveCustomer,// marketplaceMetering:MeterUsage, and aws-marketplace:GetEntitlements.diff --git a/api/_lib/trust/solana-bouncer.js b/api/_lib/trust/solana-bouncer.jsindex 35e76cbee..0e6b6b86a 100644--- a/api/_lib/trust/solana-bouncer.js+++ b/api/_lib/trust/solana-bouncer.js@@ -392,74 +392,166 @@ export async function leaderboardAgentReputation({};}+// ── Reputation Score History (for decay detection) ───────────────────────────+// Snapshots each agent's current trust score into agent_reputation_score_history+// on every decay_report call. The decay query compares the latest snapshot+// against the most recent baseline that is ≥ 5 days old. Meaningful decay+// comparisons are only possible once 5 days of history exist; earlier calls+// return decayed_count: 0 with has_baseline: false.++let _decayHistorySchemaReady = false;+async function ensureDecayHistorySchema() {+ if (_decayHistorySchemaReady) return;+ await sql`+ CREATE TABLE IF NOT EXISTS agent_reputation_score_history (+ id bigserial PRIMARY KEY,+ agent_id uuid NOT NULL,+ score numeric(5,1) NOT NULL,+ snapshotted_at timestamptz NOT NULL DEFAULT now()+ )+ `;+ await sql`+ CREATE INDEX IF NOT EXISTS arshl_agent_snap+ ON agent_reputation_score_history (agent_id, snapshotted_at DESC)+ `;+ await sql`+ CREATE INDEX IF NOT EXISTS arshl_snapshotted+ ON agent_reputation_score_history (snapshotted_at DESC)+ `;+ _decayHistorySchemaReady = true;+}++// Copy rows from agent_reputation_scores (fresh within 24 h) into the history+// table so the decay query has a time series to compare against. Silently+// skips when the source table doesn't exist yet (cold deploy before the cron+// has run for the first time).+async function snapshotCurrentScores() {+ try {+ await sql`+ INSERT INTO agent_reputation_score_history (agent_id, score)+ SELECT agent_id, score+ FROM agent_reputation_scores+ WHERE computed_at >= now() - INTERVAL '24 hours'+ `;+ } catch (err) {+ if (!err?.message?.includes('does not exist')) {+ console.warn('[solana-bouncer] snapshotCurrentScores failed:', err?.message || err);+ }+ }+}+/*** Report agents whose behavioral reputation score has declined by more than 10* points since the last stored snapshot. Detects coordinated abuse, score* manipulation, or legitimately degrading on-chain track records.*- * Compares current live scores against the most recent row in- * agent_reputation_leaderboard_snapshots. When no prior snapshot exists (first- * run), returns an empty report — there is no baseline to compare against.+ * Each call snapshots current scores into agent_reputation_score_history and+ * compares against the most recent baseline ≥ 5 days old. Returns+ * has_baseline: false until that window is filled (typically after 5 days).*- * @param {object} [opts]- * @param {(id:string)=>Promise<object>} [opts.read]- * @param {(limit:number)=>Promise<Array>} [opts.list]+ * @returns {Promise<object>} decay report*/-export async function decayReportAgentReputation({- read = loadAgentReputation,- list = listRecentlyActiveAgents,-} = {}) {- const active = await list(50);+export async function decayReportAgentReputation() {+ await ensureDecayHistorySchema();+ await snapshotCurrentScores();- // Load prior snapshot from agent_reputation_leaderboard_snapshots (if any).- let priorByAgent = {};let hasBaseline = false;try {- const [snapshot] = await sql`- SELECT leaderboard FROM agent_reputation_leaderboard_snapshots- ORDER BY ts DESC LIMIT 1+ const [bc] = await sql`+ SELECT count(*)::int AS cnt+ FROM agent_reputation_score_history+ WHERE snapshotted_at <= now() - INTERVAL '5 days'`;- if (snapshot?.leaderboard) {- const rows = Array.isArray(snapshot.leaderboard) ? snapshot.leaderboard : [];- for (const r of rows) {- if (r?.agent_id) priorByAgent[r.agent_id] = r.score ?? 0;- }- hasBaseline = rows.length > 0;- }- } catch { /* table may not exist yet — no prior baseline */ }+ hasBaseline = (bc?.cnt || 0) > 0;+ } catch { /* table not yet visible on this instance */ }- const scored = await Promise.all(- active.map(async (row) => {- const rep = await read(row.id);- const s = scoreAgentReputation(rep);- const prior = priorByAgent[rep.agent_id || row.id] ?? null;- const decay = prior !== null ? prior - s.score : null;- return {- agent_id: rep.agent_id || row.id,- name: rep.name ?? row.name ?? null,- score: s.score,- prior_score: prior,- decay,- };- }),- );+ if (!hasBaseline) {+ return {+ mode: 'decay_report',+ decayed_count: 0,+ fastest_decline_agent: null,+ avg_decay: 0,+ agents: [],+ has_baseline: false,+ report_at: new Date().toISOString(),+ };+ }- const decayed = scored.filter((a) => a.decay !== null && a.decay > 10);- decayed.sort((a, b) => b.decay - a.decay);- const top = decayed[0] || null;+ // h_now = latest snapshot within 2 h (current score after this call's snapshot).+ // h_old = nearest baseline that is ≥ 5 days old.+ // decay = baseline_score − current_score (positive = score dropped).+ let rows = [];+ try {+ rows = await sql`+ SELECT+ h_now.agent_id,+ ai.name,+ h_now.score AS current_score,+ h_old.score AS baseline_score,+ (h_old.score - h_now.score)::numeric(5,1) AS decay,+ h_old.snapshotted_at AS baseline_at+ FROM (+ SELECT DISTINCT ON (agent_id) agent_id, score+ FROM agent_reputation_score_history+ WHERE snapshotted_at >= now() - INTERVAL '2 hours'+ ORDER BY agent_id, snapshotted_at DESC+ ) h_now+ JOIN agent_identities ai ON ai.id = h_now.agent_id AND ai.deleted_at IS NULL+ JOIN LATERAL (+ SELECT score, snapshotted_at+ FROM agent_reputation_score_history h+ WHERE h.agent_id = h_now.agent_id+ AND h.snapshotted_at <= now() - INTERVAL '5 days'+ ORDER BY h.snapshotted_at DESC+ LIMIT 1+ ) h_old ON true+ WHERE (h_old.score - h_now.score) > 10+ ORDER BY decay DESC+ `;+ } catch (err) {+ console.warn('[solana-bouncer] decayReport query failed:', err?.message || err);+ }++ const decayedCount = rows.length;+ if (!decayedCount) {+ return {+ mode: 'decay_report',+ decayed_count: 0,+ fastest_decline_agent: null,+ avg_decay: 0,+ agents: [],+ has_baseline: true,+ report_at: new Date().toISOString(),+ };+ }++ const top = rows[0];+ const avg_decay =+ Math.round(+ (rows.reduce((s, r) => s + Number(r.decay), 0) / decayedCount) * 10,+ ) / 10;return {mode: 'decay_report',- has_baseline: hasBaseline,- decayed_count: decayed.length,- fastest_decline_agent: top- ? { agent_id: top.agent_id, name: top.name, decay: top.decay }- : null,- avg_decay:- decayed.length- ? Math.round(decayed.reduce((s, a) => s + a.decay, 0) / decayed.length)- : 0,- agents: decayed,+ decayed_count: decayedCount,+ fastest_decline_agent: {+ agent_id: top.agent_id,+ name: top.name || null,+ current_score: Number(top.current_score),+ baseline_score: Number(top.baseline_score),+ decay: Number(top.decay),+ },+ avg_decay,+ agents: rows.map((r) => ({+ agent_id: r.agent_id,+ name: r.name || null,+ current_score: Number(r.current_score),+ baseline_score: Number(r.baseline_score),+ decay: Number(r.decay),+ baseline_at:+ r.baseline_at instanceof Date ? r.baseline_at.toISOString() : r.baseline_at,+ })),+ has_baseline: true,report_at: new Date().toISOString(),};}diff --git a/api/_lib/x402-offer-receipt.js b/api/_lib/x402-offer-receipt.jsindex 306ba34c5..c06aae120 100644--- a/api/_lib/x402-offer-receipt.js+++ b/api/_lib/x402-offer-receipt.js@@ -42,7 +42,7 @@ export function offerReceiptDeclaration() {let _sdkIssuer = null;function buildIssuer() {- const raw = process.env.X402_RECEIPT_SIGNING_KEY;+ const raw = env.X402_RECEIPT_SIGNING_KEY;if (!raw) return null;const trimmed = raw.trim();diff --git a/api/_lib/x402-paid-endpoint.js b/api/_lib/x402-paid-endpoint.jsindex d2c4502ff..13c70b31c 100644--- a/api/_lib/x402-paid-endpoint.js+++ b/api/_lib/x402-paid-endpoint.js@@ -66,6 +66,7 @@ import {import { authenticateSiwx, declareSiwxExtensionFor, recordSiwxPayment } from './siwx-server.js';import { normalizeAddress } from './siwx-storage.js';import { buildOffersExtension, buildReceiptExtension } from './x402/offer-receipt-server.js';+import { signReceipt } from './x402-offer-receipt.js';import { recordReceipt } from './x402/receipt-storage.js';import {authenticateAuthHintsRequest,@@ -924,6 +925,29 @@ export function paidEndpoint(spec) {}}+ // New-stack receipt: keyed by X402_RECEIPT_SIGNING_KEY. Returns null when+ // unset (byte-identical to current behaviour) or when payer/network absent+ // (e.g. BSC direct with no decoded event payer). Merged as `signedReceipt`+ // alongside any `info.receipt` produced by the old-stack above.+ try {+ const sr = await signReceipt({+ resourceUrl,+ payer: settled.payer || verified.payer || null,+ network: settled.network || verified.requirement?.network || null,+ txHash: settled.transaction,+ includeTxHash: offerReceipt?.includeTxHash === true,+ });+ if (sr) {+ responseExtensions = responseExtensions ?? {};+ const existing = responseExtensions['offer-receipt'];+ responseExtensions['offer-receipt'] = existing+ ? { ...existing, signedReceipt: sr }+ : { signedReceipt: sr };+ }+ } catch (err) {+ console.error('x402_receipt_sign_failed', err);+ }+const paymentResponseHeader = encodePaymentResponseHeader(settled, responseExtensions);const contentType = `${mimeType}; charset=utf-8`;const body = typeof result === 'string' ? result : JSON.stringify(result);diff --git a/public/changelog.json b/public/changelog.jsonindex 4ce967e5c..95bbd7ca0 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,11 +1,44 @@{- "generated_at": "2026-06-28T02:08:28.447Z",+ "generated_at": "2026-06-28T03:15:21.465Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws","url": "https://three.ws"},"entries": [+ {+ "date": "2026-06-28",+ "type": "update",+ "title": "API Key Validity Health — the platform verifies its own access keys every hour",+ "summary": "A lapsed or missing access key for the autonomous loop means every self-call in the pipeline hits the paywall cold — legitimate tool calls start failing, recovery is manual, and the outage is invisible until someone investigates why the spend log went quiet. The platform now detects this automatically. Every hour an autonomous agent makes a real on-chain payment to a new /api/x402/api-key-health endpoint with body { scope: \"autonomous_loop\" }. The endpoint checks whether any active subscription key covers the requested scope, falling back to the INTERNAL_API_KEY env var, and returns { valid, scopes, expires_at }. The extracted signal surfaces hours_until_expiry in x402_autonomous_log.signal_data. When expiry is within 24 hours the storeValue hook writes a Redis alert (x402:api-key-health:expiry-alert) so the ops surface can surface the warning before the key lapses.",+ "link": null,+ "tags": [+ "infra",+ "feature"+ ]+ },+ {+ "date": "2026-06-28",+ "type": "update",+ "title": "Auth Session Lifecycle Health — the platform canaries its own JWT auth pipeline every 30 minutes",+ "summary": "A broken auth subsystem — a JWT signer that stops working, a verifier that accepts expired tokens, or a misconfigured issuer — can lock users out silently or, worse, leave a security hole open. The platform now detects both within 30 minutes. Every half-hour an autonomous agent makes a real on-chain payment to a new /api/x402/auth-health endpoint and runs a four-step session lifecycle canary: mint a canary access token, verify it with the full JWT verifier, issue a replacement token and re-verify it (the rotation path), and confirm that an already-expired token is rejected. Each step is timed independently; a failure names exactly which step broke and why. The result — all_pass, failed_step, and per-step latency — is recorded as an actionable signal so ops can read auth health off a single log row without a separate query.",+ "link": null,+ "tags": [+ "infra",+ "security"+ ]+ },+ {+ "date": "2026-06-28",+ "type": "update",+ "title": "Changelog Telegram bot health check",+ "summary": "The autonomous x402 loop now pings the changelog Telegram bot every 5 minutes by paying $0.001 USDC to the new /api/x402/telegram-health endpoint. It verifies the bot can reach the Telegram API, measures round-trip latency, and raises a Redis alert when it can't — so ops knows immediately when $THREE holders would miss a changelog entry.",+ "link": null,+ "tags": [+ "infra",+ "feature"+ ]+ },{"date": "2026-06-28","type": "update",@@ -72,6 +105,28 @@"infra"]},+ {+ "date": "2026-06-28",+ "type": "update",+ "title": "RSS Feed Health — the platform validates its own changelog XML feed every 5 minutes",+ "summary": "A broken RSS feed is invisible — the feed URL returns 200, but the XML inside is malformed, the item count drifted after a skipped build step, or the latest entry title diverged from the canonical record. The platform now catches all three failure modes automatically. Every five minutes an autonomous agent makes a real on-chain payment to a new /api/x402/feed-health endpoint with body { feed: \"changelog_rss\" }. The endpoint fetches three.ws/changelog.xml, parses it as RSS 2.0 with fast-xml-parser, counts the <item> elements, and cross-checks the latest item title against the canonical public/changelog.json compiled output. If any of those checks fail — invalid XML, unreachable URL, title mismatch — the { valid: false } verdict is recorded as an actionable signal in x402_autonomous_log.signal_data so the status surface can read feed health in a single lookup. The same endpoint is available on the x402 bazaar for $0.001 per check.",+ "link": null,+ "tags": [+ "infra",+ "feature"+ ]+ },+ {+ "date": "2026-06-28",+ "type": "update",+ "title": "Skill Marketplace: most-purchased skills signal",+ "summary": "The autonomous x402 loop now pays every 30 minutes to retrieve the 5 most-purchased agent skills over the past 7 days from the real hire ledger. The top skill and full ranked list land in the autonomous log as actionable signal for featured-listing curation — a shift in the top skill across runs surfaces emerging high-demand capabilities automatically.",+ "link": null,+ "tags": [+ "feature",+ "infra"+ ]+ },{"date": "2026-06-28","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 54f470d8d..22dffe9a3 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -6,6 +6,30 @@<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/><description>What's new on three.ws — features, improvements, and releases, newest first.</description><language>en</language>+ <item>+ <title>API Key Validity Health — the platform verifies its own access keys every hour</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-28:API Key Validity Health — the platform verifies its own access keys every hour</guid>+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>+ <category>infra</category>+ <description>A lapsed or missing access key for the autonomous loop means every self-call in the pipeline hits the paywall cold — legitimate tool calls start failing, recovery is manual, and the outage is invisible until someone investigates why the spend log went quiet. The platform now detects this automatically. Every hour an autonomous agent makes a real on-chain payment to a new /api/x402/api-key-health endpoint with body { scope: "autonomous_loop" }. The endpoint checks whether any active subscription key covers the requested scope, falling back to the INTERNAL_API_KEY env var, and returns { valid, scopes, expires_at }. The extracted signal surfaces hours_until_expiry in x402_autonomous_log.signal_data. When expiry is within 24 hours the storeValue hook writes a Redis alert (x402:api-key-health:expiry-alert) so the ops surface can surface the warning before the key lapses.</description>+ </item>+ <item>+ <title>Auth Session Lifecycle Health — the platform canaries its own JWT auth pipeline every 30 minutes</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-28:Auth Session Lifecycle Health — the platform canaries its own JWT auth pipeline every 30 minutes</guid>+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>+ <category>infra</category>+ <description>A broken auth subsystem — a JWT signer that stops working, a verifier that accepts expired tokens, or a misconfigured issuer — can lock users out silently or, worse, leave a security hole open. The platform now detects both within 30 minutes. Every half-hour an autonomous agent makes a real on-chain payment to a new /api/x402/auth-health endpoint and runs a four-step session lifecycle canary: mint a canary access token, verify it with the full JWT verifier, issue a replacement token and re-verify it (the rotation path), and confirm that an already-expired token is rejected. Each step is timed independently; a failure names exactly which step broke and why. The result — all_pass, failed_step, and per-step latency — is recorded as an actionable signal so ops can read auth health off a single log row without a separate query.</description>+ </item>+ <item>+ <title>Changelog Telegram bot health check</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-28:Changelog Telegram bot health check</guid>+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>+ <category>infra</category>+ <description>The autonomous x402 loop now pings the changelog Telegram bot every 5 minutes by paying $0.001 USDC to the new /api/x402/telegram-health endpoint. It verifies the bot can reach the Telegram API, measures round-trip latency, and raises a Redis alert when it can't — so ops knows immediately when $THREE holders would miss a changelog entry.</description>+ </item><item><title>Club Social Activity — the platform tracks its own nightlife economy on-chain</title><link>https://three.ws/changelog</link>@@ -54,6 +78,22 @@<category>feature</category><description>The autonomous x402 agent now pays to audit the 10 most recently launched pump.fun tokens every 5 minutes, extracting each cohort's average and peak initial bonding-curve liquidity. New launches with initial liquidity well above the rolling cohort average are surfaced as high-conviction snipe candidates; the signal is upserted into the oracle feed so the sniper gate can act on it immediately.</description></item>+ <item>+ <title>RSS Feed Health — the platform validates its own changelog XML feed every 5 minutes</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-28:RSS Feed Health — the platform validates its own changelog XML feed every 5 minutes</guid>+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>+ <category>infra</category>+ <description>A broken RSS feed is invisible — the feed URL returns 200, but the XML inside is malformed, the item count drifted after a skipped build step, or the latest entry title diverged from the canonical record. The platform now catches all three failure modes automatically. Every five minutes an autonomous agent makes a real on-chain payment to a new /api/x402/feed-health endpoint with body { feed: "changelog_rss" }. The endpoint fetches three.ws/changelog.xml, parses it as RSS 2.0 with fast-xml-parser, counts the <item> elements, and cross-checks the latest item title against the canonical public/changelog.json compiled output. If any of those checks fail — invalid XML, unreachable URL, title mismatch — the { valid: false } verdict is recorded as an actionable signal in x402_autonomous_log.signal_data so the status surface can read feed health in a single lookup. The same endpoint is available on the x402 bazaar for $0.001 per check.</description>+ </item>+ <item>+ <title>Skill Marketplace: most-purchased skills signal</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-28:Skill Marketplace: most-purchased skills signal</guid>+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The autonomous x402 loop now pays every 30 minutes to retrieve the 5 most-purchased agent skills over the past 7 days from the real hire ledger. The top skill and full ranked list land in the autonomous log as actionable signal for featured-listing curation — a shift in the top skill across runs surfaces emerging high-demand capabilities automatically.</description>+ </item><item><title>User Activity Analytics — DAU, WAU, and top features now tracked every 6 hours via x402</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex d6e14a6f3..6277ad287 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-28T02:08:28.416Z",+ "generated_at": "2026-06-28T03:15:21.235Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",