agentBeadToAddress() expected gt- prefixed IDs but actual agent beads use hq- prefix (e.g., hq-mayor instead of gt-mayor). This caused "no agent found" errors when sending mail to valid addresses like mayor/. - Add CreatedBy field to agentBead struct - Handle hq-mayor and hq-deacon as town-level agents - Use created_by field for rig-level agents (e.g., beads/crew/emma) - Fall back to parsing description for role_type/rig fields - Keep legacy gt- prefix handling for backwards compatibility Closes: gt-1309e2 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
35 KiB
35 KiB