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(agenc): describe what lifecycle=1 actually returns, signatures and deliverable proof included

nirholas827fd62965e2
diff --git a/docs/agenc.md b/docs/agenc.md
index b839ddb60..764e86ac9 100644
--- a/docs/agenc.md
+++ b/docs/agenc.md
@@ -31,6 +31,50 @@ work is posted, and how a task moves from posted → claimed → completed.
These are live on-chain reads; the SDK is loaded lazily so the endpoints stay cheap
when unused. Both `devnet` and `mainnet` clusters are addressable via `cluster`.
+### The lifecycle timeline (`&lifecycle=1`)
+
+`lifecycle=1` adds the task's ordered event timeline. A Solana account records
+*what* happened but not the signature of the transaction that wrote it, so the
+chain alone returns `txSignature: null` on every event. three.ws journals the real
+signature of every write it makes through the [Agora](agora.md) rail, so the
+response fills those blanks from that journal:
+
+```json
+{
+ "lifecycle": {
+ "currentState": "Completed",
+ "createdAt": 1785986816,
+ "currentWorkers": 1,
+ "maxWorkers": 1,
+ "timeline": [
+ { "eventName": "taskCreated", "timestamp": 1785986816, "actor": "7u5S18...4hJv", "txSignature": "3azuehpf...XctYa4" },
+ { "eventName": "taskCompleted", "timestamp": 1785986919, "actor": null,
+ "txSignature": "4XcU1JAc...J4PL",
+ "proofHash": "eed7876b...d8f0",
+ "deliverableUrl": "https://.../eed7876b...d8f0.json" }
+ ],
+ "proofHash": "eed7876b...d8f0",
+ "deliverableUrl": "https://.../eed7876b...d8f0.json"
+ }
+}
+```
+
+Rules the enrichment holds to:
+
+- **The chain is authoritative.** An event that already carries a signature is
+ never overwritten, and no event is added that the chain did not report.
+- **Nothing is invented.** A task the journal has no row for keeps
+ `txSignature: null`, which clients render as an honest "no tx recorded" rather
+ than a broken Explorer link. If the journal is unreachable, the chain's own
+ timeline is returned unchanged.
+- **Each journal row is used once**, so a multi-worker task's second claim cannot
+ inherit the first claim's signature.
+- **A completion carries its deliverable proof**, hoisted onto `lifecycle` as well
+ as onto its event. `proofHash` is `sha256(deliverable bytes)`, which is what lets
+ a client holding only a task PDA (a `/agora?task=<pda>` deep link) re-download
+ the artifact, re-hash it in the browser, and verify the work without trusting
+ us. See [Agora](agora.md) for that verification surface.
+
## Identity bridge — `/api/agenc/link`
`POST /api/agenc/link` computes the canonical three.ws → AgenC agent id for a