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.

fix(agora-citizens): give the dispatcher a non-zero capability bitmask so the fleet can boot

nirholas5673b7c9e6f0
diff --git a/workers/agora-citizens/engine.js b/workers/agora-citizens/engine.js
index 6fb31674a..b88ba0d5d 100644
--- a/workers/agora-citizens/engine.js
+++ b/workers/agora-citizens/engine.js
@@ -88,7 +88,16 @@ async function setupDispatcher(ctx) {
client,
ident.agentIdHex,
{
- capabilities: 0n, // the dispatcher posts work; it does none itself
+ // The AgenC program REJECTS a zero bitmask (register_agent.rs
+ // InvalidCapabilities: "Agent capabilities bitmask cannot be zero"), so a
+ // dispatcher registered with 0n could never boot the fleet: every fresh
+ // deployment died at setupDispatcher before a single citizen existed.
+ // Bit 0 is the platform's own default for a registering agent
+ // (api/agenc/[action].js) and is honest here: the dispatcher does call
+ // HTTP. It is an identity marker, not a work claim. The dispatcher is a
+ // separate identity that never runs the citizen loop, so it is never
+ // matched to a task by this bit.
+ capabilities: professionBits(['fetcher']),
endpoint: `${cfg.apiBase}/agora/dispatcher`,
metadataUri: ident.metadataUri,
stakeLamports: cfg.stakeLamports,