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(spec): state the escrow-only, per-signature retirement rule for net conviction
nirholas9ffc91dc8252
diff --git a/specs/REPUTATION_STAKING_MARKET.md b/specs/REPUTATION_STAKING_MARKET.mdindex df33b5d00..b039676f3 100644--- a/specs/REPUTATION_STAKING_MARKET.md+++ b/specs/REPUTATION_STAKING_MARKET.md@@ -126,6 +126,27 @@ non-revoked `threews.stake.v1` lamports minus the principal of every verified`threews.unstake.v1` that names one of them. Withdrawn conviction is notconviction.+A settlement only retires conviction when its attester is the market escrow of+§2. Settlements are escrow-signed by construction (§3.2), so honouring any+structurally valid unstake memo would let a stranger deflate an agent's standing+with a memo naming somebody else's stake signature. A deployment with no escrow+configured retires nothing and reports the gross figure.++Retirement is applied per stake signature and clamped to that stake's own+principal, so an over-stated `principal` can never consume a different staker's+conviction and net stake can never go negative. Two settlements naming one stake+retire it once, at the larger of the two, never at their sum.++The endpoint reports the retired history alongside the net figure rather than+erasing it: `stake.total_lamports` is net, `stake.gross_lamports` is everything+ever staked, and `stake.retired_lamports` / `stake.retired_count` are what+settlement gave back. `stake.count`, `stake.unique_stakers` and+`stake.top_stakers` all count net conviction, so a fully withdrawn staker is not+listed as backing the agent.++Implemented by `netConviction` in `api/_lib/reputation-market.js`, which is pure+and reproduces this rule without a database (`tests/reputation-net-conviction.test.js`).+## 4. EpochsAn epoch is one UTC day: `epoch = floor(unixSeconds / 86400)`. Epoch `e` spans