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.

docs(finish): log order 028 jobs, idempotency and progress with the measured local run in the x-grok progress file

nirholas1d37d75c7ef1
diff --git a/prompts/finish/_context/x-grok-PROGRESS.md b/prompts/finish/_context/x-grok-PROGRESS.md
index e83f78189..fb858ab70 100644
--- a/prompts/finish/_context/x-grok-PROGRESS.md
+++ b/prompts/finish/_context/x-grok-PROGRESS.md
@@ -84,3 +84,9 @@ Cross-session handoff for the `x-grok-` orders ([x-grok-00-CONTEXT.md](x-grok-00
- Pre-migration keys keep their power: the migration backfills `spend` onto keys holding `wallet:write` or `services:write`; tests cover a legacy spender and a legacy reader.
- Evidence: `tests/connector-keys.test.js` (18) refuses every value-moving tool on every server in the shared policy table and runs JSON-RPC end to end; full vitest 32064 pass, 3 failures in `onboarding-tier` and `x402-discovery-green` belong to other sessions. In a browser on a local dev server against the real DB, the New API key dialog showed the preset (default), the custom switch and the one-time reveal, and a key it minted got `-32003` on `paired_launch` and `agent_card_create`. Test keys were revoked.
- Judgment calls: `confirm_delete` and `confirm_run` stay allowed for connector keys (they move no funds); `read` excludes `profile`; the legacy `/api/api-keys` and CLI mint routes do not offer the preset.
+
+## 2026-10-09: order 028 (jobs, idempotency, progress) done
+
+- Shipped `e99d29439` (docs, changelog entry and tests ride the same work; the changelog line landed inside `addf07b55`). `get_job` returns status (queued, running, done, failed, not_found, unknown), progress, eta_seconds, asset links, and a failure with a remedy. `idempotency_key` on all six generation tools uses a new cache-backed store (`api/_lib/idempotency.js`, 24h, in-flight lock) scoped to the caller (install token, else account or surface subject, else IP), so no migration was needed. A `progressToken` plus an event-stream Accept header turns the response into SSE `notifications/progress`.
+- Verified against a real backend (`STUDIO_API_BASE=https://three.ws`, local handler): two `forge_free` calls with one key returned the same job_id (`replayed` false then true); `get_job` went running (0.17, 0.39, 0.61) to done with glb, viewer and poster links; SSE streamed 3, 11, 25, 39, 61 then the result. Vitest `tests/mcp-studio.test.js` and `tests/mcp-studio-jobs.test.js`: 58 pass.
+- Gotcha: a tool missing from `packages/mcp-policy/src/table.js` is hidden from tools/list, so any new tool needs a row there.