Files
gastown/internal/mail
mayor 75739cbaaf fix(mail): handle hq- prefixed agent IDs in recipient validation
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>
2026-01-25 16:00:47 -08:00
..