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.

Add sniper deploy changelog entry; close deploy-sniper task

nirholasd588ae33eae1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f40f63102..ecb3e34c2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -53,6 +53,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Sniper dashboard: your live positions now show real-time profit and loss and reconnect on their own** — The Sniper Strategies dashboard now streams your agents' open positions with live unrealized profit and loss — both the SOL figure and the percentage — instead of a blank value, and fills them in the moment the page loads rather than waiting for the next trade to land. The live feed shows its own connection state (Live / Reconnecting) and re-establishes itself automatically with backoff if it drops, so you always know whether you're watching real-time data. Closed-trade history now calls out your single best and worst trade, and there are one-tap links to the public leaderboard and sniper arena so your track record is easy to share. (`/dashboard/sniper`) `[feature]`
- **Tapping an IRL agent is now reliable — hit the body, not just the tiny label** — On three.ws/irl you can now open an agent by tapping its 3D body, not only its small floating name tag. Tapping near a name also works, with a finger-sized target that meets Apple's 44-pixel minimum, so you no longer have to pixel-hunt on a phone. When two agents stand on top of each other, the one in front wins instead of a random pick. As you move, the nearest agent you can reach lights up with a soft focus ring so you can see what you'll tap before you tap it — and if you've turned on Reduce Motion, the ring stays still. Looking and panning around no longer misfires as a tap. (`/irl`) `[improvement]`
- **The Oracle's proof pages — wins, backtest, and live activity — load again** — The conviction Oracle's evidence views had stopped responding: the Wins gallery, the accuracy Backtest, and the global Activity feed were all erroring instead of returning data, and the live activity feed failed on every request. The cause was in how those queries were assembled — optional filters (time window, tier, agent) weren't being stitched into the database query correctly, so the database rejected them. All three views now build their filters cleanly and return the Oracle's track record, hit-rate, and real-time agent actions as intended. (`/oracle`) `[fix]`
+- **The sniper now runs as an always-on service — armed strategies fire in real time** — An armed sniper strategy now has a live engine behind it. The sniper runs as a dedicated always-on worker that holds the pump.fun launch feed open continuously and acts the moment a launch matches your rules — not on a slow timer. It starts in a safe simulate mode (real scoring, zero spend) and going live is a deliberate, gated step that needs a funded agent wallet, so nothing trades real money by accident. If the launch feed ever drops, the worker reconnects on its own and pages the operators, and a public health check at /api/sniper/status reports whether it's live, reconnecting, or down — so 'is the sniper actually working right now?' is always answerable. Every safety limit you set — daily budget, per-trade size, max open positions, mandatory stop-loss, price-impact cutoff — is enforced by the running service exactly as configured. (`/dashboard/sniper`) `[infra, feature]`
- **Try x402 live — pay a tenth of a cent to call a real API from your own wallet** — There's now a live, self-contained x402 demo you can try in a browser. Pay $0.001 USDC from your own wallet — MetaMask on Base or Phantom on Solana — and call a real three.ws data API. The page reads the live HTTP 402 price the server quotes, runs the paid call once your wallet signs a gasless authorization, and shows the response next to an on-chain transaction receipt you can open on Basescan or Solscan. Nothing is mocked and there's no account or backend. The same eight-line embed it runs on — one script tag from three.ws plus any button carrying a data-x402-endpoint — is copy-pasteable into any site, so a developer can add a working pay-per-call paywall in minutes. Built with IBM as the public face of the partnership and designed to host cleanly on a strict-CSP enterprise page. (`/ibm/x402-demo`) `[feature, sdk]`
- **Your IRL agent dashboard now lights up the instant someone interacts** — When a stranger taps, messages, or pays one of your agents placed out in the real world, your dashboard now reflects it within about a second — no refresh. The agent's card flashes, the unread count ticks up live, and a payment or a new message pops a notification so you feel the moment it happens, even from the other side of the planet. A small Live indicator shows when the realtime connection is up; if it ever drops, the inbox keeps updating on a short delay instead, so you never miss an encounter. Only your agent's name and the kind of interaction are ever shared with you — never the visitor's location or wallet. (`/dashboard/irl-placements`) `[feature, improvement]`
diff --git a/data/changelog.json b/data/changelog.json
index 3936b0de2..df8927017 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,13 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-17",
+ "title": "The sniper now runs as an always-on service — armed strategies fire in real time",
+ "summary": "An armed sniper strategy now has a live engine behind it. The sniper runs as a dedicated always-on worker that holds the pump.fun launch feed open continuously and acts the moment a launch matches your rules — not on a slow timer. It starts in a safe simulate mode (real scoring, zero spend) and going live is a deliberate, gated step that needs a funded agent wallet, so nothing trades real money by accident. If the launch feed ever drops, the worker reconnects on its own and pages the operators, and a public health check at /api/sniper/status reports whether it's live, reconnecting, or down — so 'is the sniper actually working right now?' is always answerable. Every safety limit you set — daily budget, per-trade size, max open positions, mandatory stop-loss, price-impact cutoff — is enforced by the running service exactly as configured.",
+ "tags": ["infra", "feature"],
+ "link": "/dashboard/sniper"
+ },
{
"date": "2026-06-17",
"title": "IRL: place an agent at a spot you pick on a map — not your exact location",
diff --git a/public/changelog.json b/public/changelog.json
index f87e916fc..8aecab93d 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-17T12:30:50.548Z",
+ "generated_at": "2026-06-17T12:37:32.798Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -493,6 +493,17 @@
"fix"
]
},
+ {
+ "date": "2026-06-17",
+ "type": "update",
+ "title": "The sniper now runs as an always-on service — armed strategies fire in real time",
+ "summary": "An armed sniper strategy now has a live engine behind it. The sniper runs as a dedicated always-on worker that holds the pump.fun launch feed open continuously and acts the moment a launch matches your rules — not on a slow timer. It starts in a safe simulate mode (real scoring, zero spend) and going live is a deliberate, gated step that needs a funded agent wallet, so nothing trades real money by accident. If the launch feed ever drops, the worker reconnects on its own and pages the operators, and a public health check at /api/sniper/status reports whether it's live, reconnecting, or down — so 'is the sniper actually working right now?' is always answerable. Every safety limit you set — daily budget, per-trade size, max open positions, mandatory stop-loss, price-impact cutoff — is enforced by the running service exactly as configured.",
+ "link": "/dashboard/sniper",
+ "tags": [
+ "infra",
+ "feature"
+ ]
+ },
{
"date": "2026-06-17",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 8a1b59927..7c7a78d03 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -382,6 +382,14 @@
<category>fix</category>
<description>The conviction Oracle's evidence views had stopped responding: the Wins gallery, the accuracy Backtest, and the global Activity feed were all erroring instead of returning data, and the live activity feed failed on every request. The cause was in how those queries were assembled — optional filters (time window, tier, agent) weren't being stitched into the database query correctly, so the database rejected them. All three views now build their filters cleanly and return the Oracle's track record, hit-rate, and real-time agent actions as intended.</description>
</item>
+ <item>
+ <title>The sniper now runs as an always-on service — armed strategies fire in real time</title>
+ <link>https://three.ws/dashboard/sniper</link>
+ <guid isPermaLink="false">2026-06-17:The sniper now runs as an always-on service — armed strategies fire in real time</guid>
+ <pubDate>Wed, 17 Jun 2026 12:00:00 GMT</pubDate>
+ <category>infra</category>
+ <description>An armed sniper strategy now has a live engine behind it. The sniper runs as a dedicated always-on worker that holds the pump.fun launch feed open continuously and acts the moment a launch matches your rules — not on a slow timer. It starts in a safe simulate mode (real scoring, zero spend) and going live is a deliberate, gated step that needs a funded agent wallet, so nothing trades real money by accident. If the launch feed ever drops, the worker reconnects on its own and pages the operators, and a public health check at /api/sniper/status reports whether it's live, reconnecting, or down — so 'is the sniper actually working right now?' is always answerable. Every safety limit you set — daily budget, per-trade size, max open positions, mandatory stop-loss, price-impact cutoff — is enforced by the running service exactly as configured.</description>
+ </item>
<item>
<title>Try x402 live — pay a tenth of a cent to call a real API from your own wallet</title>
<link>https://three.ws/ibm/x402-demo</link>
diff --git a/tasks/agent-wallet-trading/05-deploy-sniper-worker.md b/tasks/agent-wallet-trading/05-deploy-sniper-worker.md
deleted file mode 100644
index 3a1e06d3f..000000000
--- a/tasks/agent-wallet-trading/05-deploy-sniper-worker.md
+++ /dev/null
@@ -1,104 +0,0 @@
-# Task: Deploy the agent-sniper worker to Cloud Run — simulate→live, with feed watchdog + alerting
-
-## Context
-
-The sniper engine (`workers/agent-sniper/`) is real and production-grade — it
-subscribes to the live PumpPortal feed, scores launches, signs v0 transactions
-from each agent's own wallet, enforces serious guardrails, and manages position
-exits (see README and task 03). **It is not deployed.** It is a long-lived process
-that holds a websocket feed open, so it cannot run on Vercel; a `Dockerfile`
-exists but there is no deploy pipeline, no documented production env, no cron, and
-no watchdog/alerting. Until this ships, **nothing snipes in production** — this is
-the single biggest unlock for "snipe new pump.fun tokens."
-
-Reference precedent: `world.three.ws` runs on Cloud Run (memory:
-`world-three-ws-hyperfy`), so the platform already has a Cloud Run deploy pattern
-to follow.
-
-## Goal
-
-The agent-sniper worker deployed and running on Cloud Run as a long-lived
-background service: started in `simulate` mode and verified end-to-end against the
-real feed, with `live` mode gated behind explicit config; documented env; a feed
-watchdog that auto-reconnects; and ops alerting on disconnect/error.
-
-## Files to Read First
-
-- `workers/agent-sniper/README.md` — operating model, modes, known graduation gap
-- `workers/agent-sniper/index.js:1-206` — entrypoint, feed hold-open (`:97`),
- position sweep loop (`:161`), watchdog hooks
-- `workers/agent-sniper/config.js:28-92` — `loadConfig()` required env
- (`DATABASE_URL`, `JWT_SECRET`, RPC for live, `SNIPER_MODE`)
-- `workers/agent-sniper/Dockerfile` — existing image (no HTTP port, background worker)
-- `workers/agent-sniper/executor.js:51-85` — guardrails enforced before any signature
-- `api/_lib/agent-pumpfun.js:26` — RPC selection (`SOLANA_RPC_URL`, Helius)
-- Observability: `tasks/.../observability-stack` precedent, `TELEGRAM_ALERTS_CHAT_ID`,
- `/api/client-errors` log conventions, uptime cron + `/status` page
-- `world.three.ws` Cloud Run deploy/repair notes for the house pattern
-
-## What to Build / Do
-
-1. **Deploy pipeline.** A documented, repeatable deploy of `workers/agent-sniper`
- to Cloud Run (build image → push → deploy) with `--no-cpu-throttling` (it must
- keep running between requests) and min-instances ≥ 1 so the feed stays open. Put
- the script under `scripts/` (e.g. `scripts/deploy-sniper.mjs` or a documented
- `gcloud`/`make` recipe), not in the repo root.
-2. **Production env.** Document every required var (`DATABASE_URL`, `JWT_SECRET`,
- `SOLANA_RPC_URL`/`HELIUS_API_KEY`, `SNIPER_MODE`, budget/throttle knobs) and where
- it's set (Cloud Run secret/env). `loadConfig()` already throws loudly on missing
- vars — verify it fails closed. Never commit secrets.
-3. **Simulate first.** Deploy with `SNIPER_MODE=simulate`, confirm it connects to
- the live PumpPortal feed, scores real launches, and records simulated positions —
- with no real spend. Capture evidence (logs showing scored mints + simulated buys).
-4. **Gate live mode.** `SNIPER_MODE=live` must require deliberate config + a funded
- agent wallet; the existing guardrails (budget/per-trade/concurrency/price-impact/
- kill switch) must be confirmed active in the deployed env. Document the cutover.
-5. **Feed watchdog + auto-reconnect.** Ensure the worker detects a dropped feed and
- reconnects with backoff (extend `index.js` if the watchdog is incomplete). A
- silent dead feed is the worst failure mode — it must self-heal and alert.
-6. **Alerting + health.** On feed disconnect, repeated RPC failure, or executor
- error, emit an ops alert (Telegram via `TELEGRAM_ALERTS_CHAT_ID`, matching the
- existing observability stack). Add a lightweight health signal (heartbeat
- row/log) the uptime cron / `/status` page can read so "is the sniper alive?" is
- answerable without SSHing in.
-
-## Constraints
-
-- No secrets in the repo or image. Keypairs are never baked in — the worker decrypts
- per-agent keys at runtime via the existing key module.
-- Fail closed: missing/invalid config must stop startup loudly, never silently run
- degraded or in the wrong mode.
-- Live mode is opt-in and gated; the default deploy is `simulate`. Do not flip an
- agent to live without a funded wallet and explicit config.
-- Don't weaken any guardrail to make deploy easier. The deployed worker enforces the
- same caps/breakers as code.
-- This worker is a consumer of the feed, not the missing pump.fun bot (memory:
- `pumpfun-graduations-bot`) — don't reintroduce a non-existent upstream.
-
-## Success Criteria
-
-- The worker runs on Cloud Run, stays up (min-instances ≥ 1, no CPU throttling), and
- holds the PumpPortal feed open across requests.
-- In `simulate`, logs show real new-mint scoring + simulated buys against the live
- feed, with zero real spend (evidence captured).
-- `loadConfig()` fails closed on missing env (verified). Live mode is gated and
- documented; guardrails confirmed active in-env.
-- Feed drop → auto-reconnect with backoff; disconnect/error → ops alert fires;
- a heartbeat is visible to `/status` / uptime cron.
-- Deploy is a documented, re-runnable script under `scripts/` (no root clutter, no
- committed secrets).
-- Changelog entry (tag: infra). Run the **completionist** subagent on changed files.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/agent-wallet-trading/05-deploy-sniper-worker.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.