b5c695075a
Agent identity fields on Issue struct: - HookBead: reference to current work (0..1 cardinality) - RoleBead: reference to role definition bead - AgentState: self-reported state (idle|spawning|running|working|stuck|done|stopped|dead) - LastActivity: timestamp for heartbeat/timeout detection - RoleType: agent type (polecat|crew|witness|refinery|mayor|deacon) - Rig: rig name (empty for town-level agents) Also adds: - AgentState type with IsValid() method - Validation for agent state in Issue.Validate() - Agent fields included in content hash This enables the agent-as-bead architecture where agents are tracked as first-class beads with self-reported state. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>