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
docs(architecture): name the i18n provider ladder the config actually uses
nirholasd3b18188ed04
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.mdindex df33ba072..d1d794fee 100644--- a/ARCHITECTURE.md+++ b/ARCHITECTURE.md@@ -1588,11 +1588,11 @@ Detailed above; the production hosted sniper. Its open-source, embeddable twin i| `avatar-pipeline-controller` | Python/FastAPI (**CPU**) | Reconstruction orchestrator: fans out to a mesh model + the rig worker and returns one rigged GLB behind a single job id. Speaks the same contract as `avatar-reconstruction`, so `GCP_RECONSTRUCTION_URL` can point at either; it currently points at `avatar-reconstruction` and this controller is not deployed. || `model-hunyuan3d` | Python/FastAPI + CUDA | Image → 3D mesh (Hunyuan3D-2.1, HF license-gated — needs `HF_TOKEN`) || `model-trellis` | Python/FastAPI + CUDA | Image → 3D mesh (TRELLIS) |-| `model-triposr` | Python/FastAPI + CUDA | Fast single-image → 3D mesh (TripoSR, VAST-AI MIT; 5–15s, baked texture; fast-path/fallback) |+| `model-triposr` | Python/FastAPI + CUDA | Fast single-image → 3D mesh (TripoSR, VAST-AI MIT; 5-15s, baked texture; fast-path/fallback) || `model-triposg` | Python/FastAPI + CUDA | High-fidelity image/sketch → 3D shape (TripoSG, VAST-AI MIT; 1.5B rectified-flow). Two modes: `image` (mesh) + `scribble` (sketch+text → mesh, CFG-distilled 16-step) powering `/forge` sketch→3D. Geometry only — pair with `texture`. || `model-text2motion` | Python/FastAPI + CUDA | Text → SMPL motion (MDM) → canonical three.js AnimationClip JSON (`mdm_sampler.py`, `smpl_to_clip.py`) || `model-video2scene` | Python/FastAPI + CUDA | Phone video → explorable 3D point cloud. Wraps LingBot-Map (Apache-2.0) feed-forward monocular reconstruction (~20 FPS), unprojecting the predicted depth with the predicted camera and fusing those points + RGB into one coloured binary PLY on GCS. Built and weights staged; not deployed as its own service yet. `POST /infer` · `GET /tasks/:id`. Backs the [Scene Capture](#diorama--scene-capture) page `/capture` via `api/scene-capture.js` (`GCP_VIDEO2SCENE_URL`). |-| `avatar-reconstruction` | Python/FastAPI + CUDA | "Scan yourself to 3D" — 1–6 face photos → Zero123++ 6-view synthesis → InstantMesh textured GLB → GCS (`face_pipeline.py`, `glb_ops.py`, `precompute_uv.py`, `templates/`). Output bucket `gs://three-ws-avatar-reconstructions`. |+| `avatar-reconstruction` | Python/FastAPI + CUDA | "Scan yourself to 3D" — 1-6 face photos → Zero123++ 6-view synthesis → InstantMesh textured GLB → GCS (`face_pipeline.py`, `glb_ops.py`, `precompute_uv.py`, `templates/`). Output bucket `gs://three-ws-avatar-reconstructions`. || `longcat` | Python/FastAPI + CUDA | LongCat-Video-Avatar-1.5 (MIT) — reference image + audio URL → lip-synced talking-avatar MP4 → `gs://three-ws-avatar-videos`. `POST /generate` · `GET /jobs/:id` · `GET /health`. || `model-rig` | Python/FastAPI + CUDA | Skeleton + skinning + ARKit-52 blendshapes (Make-It-Animatable, MIT; ICT-FaceKit expression transfer). Reached via `GCP_UNIRIG_URL`, an env name that predates the engine swap. |@@ -2496,7 +2496,7 @@ A single canonical design vocabulary. **Source of truth: the `:root` block in `p| `--font-body` | `'Inter', system-ui` | Product UI, body copy, controls || `--font-mono` | `'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace` | Code, addresses, numeric readouts |-Type scale: dense UI band (`--text-2xs` 11px → `--text-md` 13px → `--text-ui` 14px) + phi-spaced (×1.618) display band (`--text-base` 16px → `--text-3xl` ~67.8px). Weights `--weight-regular/medium/semibold/bold`; line-heights `--leading-tight/normal/loose`. Classes: `.h1`–`.h4`, `.display` (fluid clamp), `.body-lg/.body/.body-sm`, `.label/.label-sm`, `.eyebrow`, `.mono`.+Type scale: dense UI band (`--text-2xs` 11px → `--text-md` 13px → `--text-ui` 14px) + phi-spaced (×1.618) display band (`--text-base` 16px → `--text-3xl` ~67.8px). Weights `--weight-regular/medium/semibold/bold`; line-heights `--leading-tight/normal/loose`. Classes: `.h1`-`.h4`, `.display` (fluid clamp), `.body-lg/.body/.body-sm`, `.label/.label-sm`, `.eyebrow`, `.mono`.**Color, spacing, radii** — monochrome glass on near-black: `--bg`, `--surface-1/2/3`, `--surface-glass`; borders `--stroke`/`--stroke-strong`; text `--ink`/`--ink-dim`; `--accent`/`--accent-soft`; semantic `--success`/`--danger`/`--warn`. Phi spacing `--space-3xs`→`--space-2xl`; radii `--radius-sm/md/lg`, `--radius-card`, `--radius-control`, `--radius-pill`.@@ -2637,7 +2637,7 @@ The worker and `api/sniper/*` are separate processes that **communicate only thr"Agent screen casting" streams a live view of an agent working — a real Chromium screenshot feed plus a structured activity log — so a spectator can *watch an agent do real web work* in real time. Every agent gets a **zero-cost baseline screen 24/7** (the SSE stream synthesizes a feed from the agent's real `agent_actions` DB rows when no browser is running); on top of that, an *optional* real-browser pixel feed spins up only for agents people are actively watching and is torn down when the last viewer leaves. Consumers: the 2D viewer `/agent-screen`, the live wall `/agents-live`, and in-world 3D "agent desk" surfaces.-**Transport:** plain HTTP POST of base64 JPEG/PNG frames + **Server-Sent Events** polling Redis (~250–500ms) — no WebRTC/WebSocket/HLS. Capture is headless Chromium via Playwright (Stagehand for the per-agent worker; optional Browserbase cloud). One frame convention serves every surface (wall, 2D viewer, and 3D desk): `POST /api/agent-screen-push` → Redis `agent:screen:{id}:frame` TTL 90s → `GET /api/agent-screen-stream`.+**Transport:** plain HTTP POST of base64 JPEG/PNG frames + **Server-Sent Events** polling Redis (~250-500ms) — no WebRTC/WebSocket/HLS. Capture is headless Chromium via Playwright (Stagehand for the per-agent worker; optional Browserbase cloud). One frame convention serves every surface (wall, 2D viewer, and 3D desk): `POST /api/agent-screen-push` → Redis `agent:screen:{id}:frame` TTL 90s → `GET /api/agent-screen-stream`.**Producers:** `workers/agent-screen-worker` (per-agent, owner-run; Stagehand `act()`/`extract()` runs user-queued tasks, rests on the agent's home when idle), `workers/agent-screen-pool` (on-demand multi-agent caster; polls `GET /api/agent/watch-wanted`, keeps ≤`MAX_BROWSERS` pages, screenshots every `FRAME_MS`, runs a real multi-step web task or a "Coin World Tour"), and `services/agent-screen-caster` (self-hosted library+CLI, above).@@ -2660,7 +2660,7 @@ Two coupled surfaces for minting pump.fun coins, both backed by one declarativeTwo distinct text/media → 3D pipelines.-- **Diorama** ("speak a little 3D world into being") — `pages/diorama.html` → `/diorama`; API `api/diorama.js` + `api/_lib/diorama-store.js`; frontend `src/diorama/*` (`main.js`, `schema.js`, `renderer.js`, `compose.js`, `gallery.js`, `share.js`). `POST /api/diorama {action:'compose', prompt}` sends one sentence to the free-first LLM chain acting as a "3D set designer", which returns a JSON **plan** (title, mood, ground, island shape, palette, 4–N placed single-object **Forge prompts** with transforms). The browser forges each object via `/api/forge` and watches the world assemble object-by-object on a floating island you can orbit; `{action:'save'}` persists a permalink + gallery slot (`?id=<uuid>` deep-links read-only + remix). No mocks — LLM-down returns 503 with a designed retry state. (Input is typed text; "speak" is figurative.) An agent-driven variant lives in `workers/agora-citizens/work/cartographer.js`.+- **Diorama** ("speak a little 3D world into being") — `pages/diorama.html` → `/diorama`; API `api/diorama.js` + `api/_lib/diorama-store.js`; frontend `src/diorama/*` (`main.js`, `schema.js`, `renderer.js`, `compose.js`, `gallery.js`, `share.js`). `POST /api/diorama {action:'compose', prompt}` sends one sentence to the free-first LLM chain acting as a "3D set designer", which returns a JSON **plan** (title, mood, ground, island shape, palette, 4-N placed single-object **Forge prompts** with transforms). The browser forges each object via `/api/forge` and watches the world assemble object-by-object on a floating island you can orbit; `{action:'save'}` persists a permalink + gallery slot (`?id=<uuid>` deep-links read-only + remix). No mocks — LLM-down returns 503 with a designed retry state. (Input is typed text; "speak" is figurative.) An agent-driven variant lives in `workers/agora-citizens/work/cartographer.js`.- **Scene Capture** — `pages/capture.html` → `/capture`; API `api/scene-capture.js` (+ `api/scene-upload.js`) → the `workers/model-video2scene` GPU worker (LingBot-Map). Turns a phone video of a space into an explorable coloured 3D point cloud (`.ply`) rendered in-browser via WebGL. Env `GCP_VIDEO2SCENE_URL` / `GCP_RECONSTRUCTION_KEY`; queue processor `api/_lib/x402/scene-capture-processor.js`.---@@ -3296,7 +3296,7 @@ three.ws exposes MCP tools across **8 remote HTTP servers** + **34 stdio/npm ser**stdio / npm servers:**- **`@three-ws/mcp-server`** (x402 USDC, mostly Solana): `forge_free`(free), `mesh_forge`($0.25), `rig_mesh`($0.20), `forge_avatar`($0.45), `text_to_avatar`($0.15), `get_pose_seed`($0.001), `pump_snapshot`($0.005), `sentiment_pulse`($0.003), `aixbt_intel`($0.01), `aixbt_projects`($0.01), `ens_sns_resolve`($0.0005), `vanity_grinder`($0.05), `agent_reputation`($0.01), `agent_delegate_action`($0.01), `agent_hire_discover`($0.01), `agent_hire`($0.05), `agenc_get_agent`($0.001), `agenc_get_task`($0.001), `agenc_list_tasks`($0.001) (19).-- **`@three-ws/mcp-bridge`** (x402 universal payer): `call_paid_endpoint`, `list_bazaar_tools`, `refresh_bazaar`, + 0–N dynamic `paid_<slug>` (cap `MCP_BRIDGE_DISCOVER_LIMIT`=20).+- **`@three-ws/mcp-bridge`** (x402 universal payer): `call_paid_endpoint`, `list_bazaar_tools`, `refresh_bazaar`, + 0-N dynamic `paid_<slug>` (cap `MCP_BRIDGE_DISCOVER_LIMIT`=20).- **`@three-ws/activity-mcp`**: `get_trending_agents`, `get_trending_coins`, `get_holder_leaderboard`, `get_tier_info`, `get_feed_events`.- **`@three-ws/agenc-mcp`**: `get_agent`, `get_task`, `link_agent`, `list_tasks`, `query_x402_services`.- **`@three-ws/agora-mcp`**: `agora_board`, `agora_citizens`, `agora_passport`, `agora_professions`, `agora_pulse`, `agora_register`, `agora_claim_task`, `agora_complete_task`, `agora_post_task`.@@ -3375,9 +3375,9 @@ Tiers: **CRITICAL** = `req()` in `api/_lib/env.js` (cold-start throw) or prod-fa**2. Bone canonicalization (`src/glb-canonicalize.js`).** `canonicalizeBoneName` → one of 52 canonical bones: strip namespaces (`Character1:`), strip vendor prefixes (`mixamorig`, `Armature_`, Rigify `DEF/ORG/MCH`, `CC_Base_`, `Bip001`), collapse separators+lowercase, resolve against LOOKUP → UNREAL_ALIASES → EXTRA_ALIASES (lower tables never shadow canonical). De-dup retry strips trailing `_NN`/`.NNN` only if the full name didn't resolve. **Mixamo armature fix:** Mixamo bakes +90°X on armature / −90°X on Hips; the fix folds armature rotation into children, zeroes it, collapses Hips to identity — only when armature scale is uniform, and **verified by comparing every joint's world matrix before/after within `1e-4`** (reverts entirely on mismatch). GLB rewrite re-pads the JSON chunk to 4 bytes and repacks BIN verbatim.-**3. Coin intelligence scoring (`workers/agent-sniper/intel/`).** `computeSignals` is pure/deterministic (missing data → `null`, never fabricated). `bundleScore` = `(density·0.5 + clustering·0.5)·(0.6 + 0.4·walletMult)` over a 3s burst; `snipeRatio` = buy-volume share in first 5s; concentration ranks per-wallet net buys (top-1/5/10 share); organic score blends buyer diversity, arrival-time Shannon entropy, (1−bundle), (1−snipe), (1−whale), penalized for dev-sell + fresh-wallet swarms. `summarizeRisk` → transparent 0–100. Classification is 3-layered (ordered-keyword heuristic seed → `matchNewsHeadline` → LLM refinement with XML-delimited fields), never fails. **Online learning** (`learn.js`): `labelOutcomes` derives ground truth (`graduated`/`pumped ≥3×`/`rugged ≤0.25×`/`flat`) after a min age; `trainWeights` computes per-signal **Pearson correlation** vs binary good-label (≥50 samples) and persists weights + conditional win-rates; `learnedScore` = logistic squash `1/(1+e^(−Σwᵢvᵢ))` (null → fall back to baseline).+**3. Coin intelligence scoring (`workers/agent-sniper/intel/`).** `computeSignals` is pure/deterministic (missing data → `null`, never fabricated). `bundleScore` = `(density·0.5 + clustering·0.5)·(0.6 + 0.4·walletMult)` over a 3s burst; `snipeRatio` = buy-volume share in first 5s; concentration ranks per-wallet net buys (top-1/5/10 share); organic score blends buyer diversity, arrival-time Shannon entropy, (1−bundle), (1−snipe), (1−whale), penalized for dev-sell + fresh-wallet swarms. `summarizeRisk` → transparent 0-100. Classification is 3-layered (ordered-keyword heuristic seed → `matchNewsHeadline` → LLM refinement with XML-delimited fields), never fails. **Online learning** (`learn.js`): `labelOutcomes` derives ground truth (`graduated`/`pumped ≥3×`/`rugged ≤0.25×`/`flat`) after a min age; `trainWeights` computes per-signal **Pearson correlation** vs binary good-label (≥50 samples) and persists weights + conditional win-rates; `learnedScore` = logistic squash `1/(1+e^(−Σwᵢvᵢ))` (null → fall back to baseline).-**4. Oracle conviction (`workers/oracle/score-loop.js` → `api/_lib/oracle/conviction.js`).** `convict()` is pure: four pillars scored 0–100 with weights **pedigree 0.34 · structure 0.30 · narrative 0.18 · momentum 0.18**. Pedigree anchors on smart-money composite ± proven/flagged-wallet adjustments; structure anchors on `30 + organic·0.55` minus bundle/concentration/dev-sold/cluster, several imposing a **hard cap** on the final score; narrative blends classifier virality with category prior weighted by confidence; momentum from buy/sell share + dev-buy sizing. Final `score = min(weightedSum, structure.cap)` — pedigree/narrative can't paper over a bundle. Tiers: `prime ≥86, strong ≥72, lean ≥56, watch ≥34, avoid`. History row only when score moves ≥3.+**4. Oracle conviction (`workers/oracle/score-loop.js` → `api/_lib/oracle/conviction.js`).** `convict()` is pure: four pillars scored 0-100 with weights **pedigree 0.34 · structure 0.30 · narrative 0.18 · momentum 0.18**. Pedigree anchors on smart-money composite ± proven/flagged-wallet adjustments; structure anchors on `30 + organic·0.55` minus bundle/concentration/dev-sold/cluster, several imposing a **hard cap** on the final score; narrative blends classifier virality with category prior weighted by confidence; momentum from buy/sell share + dev-buy sizing. Final `score = min(weightedSum, structure.cap)` — pedigree/narrative can't paper over a bundle. Tiers: `prime ≥86, strong ≥72, lean ≥56, watch ≥34, avoid`. History row only when score moves ≥3.**5. Tiered agent memory (`api/_lib/memory-store.js`).** Letta/MemGPT model: working (pinned + `tier='working'`, `WORKING_TOKEN_BUDGET=2000`), recall, archival. Embeddings free-first: NVIDIA NIM `nv-embedqa-e5-v5@1024` ingest default, OpenAI `text-embedding-3-small@256` backstop — stored as **JSONB arrays tagged with the embedder** (not a pgvector column), cosine computed in JS **strictly within each embedder space** (`cosine` returns 0 on dimensionality mismatch — guards silent cross-space comparison). Search lazily embeds ≤24 rows/call, filters `minScore≥0.25`, fills shortfall with salience-ranked substring matches (never empty). Every surfaced row bumps `access_count`, `last_accessed_at=now()`, `salience=LEAST(1.0, salience+0.02)`; a Zep/Graphiti temporal KG mines entities into nodes + co-occurrence edges.@@ -3421,14 +3421,14 @@ Hard, load-bearing specifics from `specs/` and `docs/`. (The $THREE hold-to-acce**x402 wire constants** — `X402_VERSION=2`, scheme `exact`. USDC: Solana `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`, Base `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`, Arbitrum `0xaf88d065e77c8cC2239327C5EDb3A432268e5831`. Facilitators: PayAI `https://facilitator.payai.network`, Coinbase CDP `https://api.cdp.coinbase.com/platform/v2/x402` (Base+Arbitrum). CAIP-2: Base `eip155:8453`, Arbitrum `eip155:42161`, BSC `eip155:56`, Solana `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`. $THREE accepted as second Solana settlement asset (`acceptThree:true`, opt-in `X402_ACCEPT_THREE_SOLANA`).-**AI model IDs.** NVIDIA (`NVIDIA_API_KEY`, NIM base `integrate.api.nvidia.com/v1`): text→3D `microsoft/trellis` (steps 10–50, prompt ≤77 chars), text→image `black-forest-labs/flux.1-schnell`, default LLM `meta/llama-3.3-70b-instruct`, vision `nvidia/nemotron-nano-12b-v2-vl`→`meta/llama-3.2-11b-vision-instruct`, embeddings `nvidia/nv-embedqa-e5-v5` (1024-dim, ≤512 tok)→`baai/bge-m3`, rerank `nvidia/rerank-qa-mistral-4b`, safety `nvidia/llama-3.1-nemoguard-8b-content-safety`→`meta/llama-guard-4-12b`, TTS `magpie-tts-multilingual`. IBM watsonx: chat `ibm/granite-3-8b-instruct`, embeddings `ibm/granite-embedding-278m-multilingual`, forecast `ibm/granite-ttm-{512|1024|1536}-96-r2`, vision `ibm/granite-vision-3-2-2b`, governance `ibm/granite-guardian-3-8b`; Identity Firewall similarity ≥93% = block, 86–93% = review. i18n provider ladder: groq (default) → gemini (CJK) → openrouter → nvidia → openai → anthropic; glossary `doNotTranslate` includes `$THREE`, contract address, `x402`, `USDC`, `Solana`, `IBM watsonx.ai`.+**AI model IDs.** NVIDIA (`NVIDIA_API_KEY`, NIM base `integrate.api.nvidia.com/v1`): text→3D `microsoft/trellis` (steps 10-50, prompt ≤77 chars), text→image `black-forest-labs/flux.1-schnell`, default LLM `meta/llama-3.3-70b-instruct`, vision `nvidia/nemotron-nano-12b-v2-vl`→`meta/llama-3.2-11b-vision-instruct`, embeddings `nvidia/nv-embedqa-e5-v5` (1024-dim, ≤512 tok)→`baai/bge-m3`, rerank `nvidia/rerank-qa-mistral-4b`, safety `nvidia/llama-3.1-nemoguard-8b-content-safety`→`meta/llama-guard-4-12b`, TTS `magpie-tts-multilingual`. IBM watsonx: chat `ibm/granite-3-8b-instruct`, embeddings `ibm/granite-embedding-278m-multilingual`, forecast `ibm/granite-ttm-{512|1024|1536}-96-r2`, vision `ibm/granite-vision-3-2-2b`, governance `ibm/granite-guardian-3-8b`; Identity Firewall similarity ≥93% = block, 86-93% = review. i18n provider ladder: vertex (default, billed to GCP credits) → gemini (CJK) → groq → openrouter → nvidia → mistral → openai → anthropic → threews (we-pay proxy); every run also falls over to OpenRouter mid-chunk; glossary `doNotTranslate` includes `$THREE`, contract address, `x402`, `USDC`, `Solana`, `IBM watsonx.ai`.**Pump platform fee** (`docs/pump-platform-fee.md`) — `PUMP_PLATFORM_FEE_BPS` default 0 (off), hard-capped 500 (5%); recipient `PUMP_PLATFORM_FEE_WALLET` → treasury fallback; buy fee added on top, sell fee from proceeds.**Distribution / syndication**: Listings (live): AWS Marketplace, Alibaba Cloud Intl, BNB Chain Dappbay (`dappbay.bnbchain.org/detail/three`). News syndication: WebSub hub, Dev.to (`DEV_TO_API_KEY`), Medium (`MEDIUM_INTEGRATION_TOKEN`, create-only), HackerNoon (RSS auto-import), CoinMarketCap (manual); store `data/rss/items.json`. **X Spaces agent** (`xspace-agent`): Puppeteer+CDP headless Chromium → WebRTC audio → STT→LLM→TTS; presets agent-zero/comedian/crypto-degen/educator/interviewer/tech-analyst; Docker `ghcr.io/nirholas/xspace-agent`.-**Agora / AgenC** (`docs/agora.md`) — AgenC agent PDA `["agent",agentId]`: `reputation` u16 (start 5000), `stake` u64 (≥0.001 SOL), `capabilities` bitmask. Professions (bits 0–7): Fetcher, Sculptor, Scribe, Cartographer, Crier, Appraiser, Verifier, Namekeeper — each WORK module emits `proofHash=sha256(deliverable)`. Task types Exclusive/Competitive/Collaborative; loop IDLE→SEEK→CLAIM→BUSY/WORK→PROVE→SPEND. On-chain currency = $THREE on mainnet (devnet uses SOL/synthetic). Identity bridge `sha256` namespaces `AgenC/three.ws/{erc8004|mpl-core|handle|composite}/v1`.+**Agora / AgenC** (`docs/agora.md`) — AgenC agent PDA `["agent",agentId]`: `reputation` u16 (start 5000), `stake` u64 (≥0.001 SOL), `capabilities` bitmask. Professions (bits 0-7): Fetcher, Sculptor, Scribe, Cartographer, Crier, Appraiser, Verifier, Namekeeper — each WORK module emits `proofHash=sha256(deliverable)`. Task types Exclusive/Competitive/Collaborative; loop IDLE→SEEK→CLAIM→BUSY/WORK→PROVE→SPEND. On-chain currency = $THREE on mainnet (devnet uses SOL/synthetic). Identity bridge `sha256` namespaces `AgenC/three.ws/{erc8004|mpl-core|handle|composite}/v1`.-**zauth suite** (`docs/zauth/*`, vendored 2026-06-10) — API host `api.zauth.inc`. RepoScan x402 $0.05/scan (trust score 0–100), `GET /api/bot/scan`, `GET /api/bot/progress/:scanId` (SSE), `POST /x402/reposcan`. Provider Hub `@zauthx402/sdk` Express middleware `zauthProvider(apiKey)` with auto-refunds (per-refund/daily/monthly caps). Free directory `GET https://api.zauth.inc/api/directory`.+**zauth suite** (`docs/zauth/*`, vendored 2026-06-10) — API host `api.zauth.inc`. RepoScan x402 $0.05/scan (trust score 0-100), `GET /api/bot/scan`, `GET /api/bot/progress/:scanId` (SSE), `POST /x402/reposcan`. Provider Hub `@zauthx402/sdk` Express middleware `zauthProvider(apiKey)` with auto-refunds (per-refund/daily/monthly caps). Free directory `GET https://api.zauth.inc/api/directory`.-**Spec schema snippets** (`specs/schema/*.sql`) — `agent_subscriptions`(`period_seconds>0`, `status active|canceled|paused`), `dca_strategies`(`dca/0.1`, `chain_id` default 84532, `period_seconds IN (86400,604800)`, `slippage_bps` 1–500), `indexer_state`(`(contract,chain_id)` unique, `last_indexed_block`), `voice-cloning`(`agent_identities.voice_provider/voice_id/voice_cloned_at`), `embed-policy`(`agent_identities.embed_policy` JSONB).+**Spec schema snippets** (`specs/schema/*.sql`) — `agent_subscriptions`(`period_seconds>0`, `status active|canceled|paused`), `dca_strategies`(`dca/0.1`, `chain_id` default 84532, `period_seconds IN (86400,604800)`, `slippage_bps` 1-500), `indexer_state`(`(contract,chain_id)` unique, `last_indexed_block`), `voice-cloning`(`agent_identities.voice_provider/voice_id/voice_cloned_at`), `embed-policy`(`agent_identities.embed_policy` JSONB).