docs: clarify RoleBead semantics in agent bead creation
Added comments explaining that RoleBead establishes a naming convention for the canonical location of role definitions. The referenced bead may not exist yet - this enables tooling like gt doctor to check for and scaffold missing role beads. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -518,7 +518,7 @@ type AgentFields struct {
|
|||||||
Rig string // Rig name (empty for global agents like mayor/deacon)
|
Rig string // Rig name (empty for global agents like mayor/deacon)
|
||||||
AgentState string // spawning, working, done, stuck
|
AgentState string // spawning, working, done, stuck
|
||||||
HookBead string // Currently pinned work bead ID
|
HookBead string // Currently pinned work bead ID
|
||||||
RoleBead string // Role definition bead ID
|
RoleBead string // Role definition bead ID (canonical location; may not exist yet)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FormatAgentDescription creates a description string from agent fields.
|
// FormatAgentDescription creates a description string from agent fields.
|
||||||
|
|||||||
@@ -445,6 +445,9 @@ func (m *Manager) initAgentBeads(rigPath, rigName, prefix string, isFirstRig boo
|
|||||||
continue // Already exists
|
continue // Already exists
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RoleBead establishes the canonical bead ID for this agent's role definition.
|
||||||
|
// The bead may not exist yet - this declares the naming convention so tooling
|
||||||
|
// (like gt doctor) can check for missing role beads and scaffold them.
|
||||||
fields := &beads.AgentFields{
|
fields := &beads.AgentFields{
|
||||||
RoleType: agent.roleType,
|
RoleType: agent.roleType,
|
||||||
Rig: agent.rig,
|
Rig: agent.rig,
|
||||||
|
|||||||
Reference in New Issue
Block a user