Fix council formation broadcast and reduce core roles
Two critical fixes for E2E council workflow: 1. Reduced core council roles from 8 to 2 (tpm + senior-software-architect) - Faster council formation - Easier debugging - Sufficient for initial project planning 2. Added broadcast to monitor path - Monitor now broadcasts council opportunities to CHORUS agents - Previously only webhook path had broadcast, monitor path missed it - Added broadcaster parameter to NewMonitor() - Broadcast sent after council formation with 30s timeout Verified working: - Council formation successful - Broadcast to CHORUS agents confirmed - Role claims received (TPM claimed and loaded) - Persona status "loaded" acknowledged Image: anthonyrawlins/whoosh:broadcast-fix Council: 2dad2070-292a-4dbd-9195-89795f84da19 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -35,14 +35,18 @@ type CouncilComposition struct {
|
||||
|
||||
// CouncilAgent represents a single agent in the council
|
||||
type CouncilAgent struct {
|
||||
AgentID string `json:"agent_id"`
|
||||
RoleName string `json:"role_name"`
|
||||
AgentName string `json:"agent_name"`
|
||||
Required bool `json:"required"`
|
||||
Deployed bool `json:"deployed"`
|
||||
ServiceID string `json:"service_id,omitempty"`
|
||||
DeployedAt *time.Time `json:"deployed_at,omitempty"`
|
||||
Status string `json:"status"` // pending, deploying, active, failed
|
||||
AgentID string `json:"agent_id"`
|
||||
RoleName string `json:"role_name"`
|
||||
AgentName string `json:"agent_name"`
|
||||
Required bool `json:"required"`
|
||||
Deployed bool `json:"deployed"`
|
||||
ServiceID string `json:"service_id,omitempty"`
|
||||
DeployedAt *time.Time `json:"deployed_at,omitempty"`
|
||||
Status string `json:"status"` // pending, assigned, deploying, active, failed
|
||||
PersonaStatus *string `json:"persona_status,omitempty"` // pending, loading, loaded, failed
|
||||
PersonaLoadedAt *time.Time `json:"persona_loaded_at,omitempty"`
|
||||
EndpointURL *string `json:"endpoint_url,omitempty"`
|
||||
PersonaAckPayload map[string]interface{} `json:"persona_ack_payload,omitempty"`
|
||||
}
|
||||
|
||||
// CouncilDeploymentResult represents the result of council agent deployment
|
||||
@@ -81,15 +85,10 @@ type CouncilArtifacts struct {
|
||||
}
|
||||
|
||||
// CoreCouncilRoles defines the required roles for any project kickoff council
|
||||
// Reduced to minimal set for faster formation and easier debugging
|
||||
var CoreCouncilRoles = []string{
|
||||
"systems-analyst",
|
||||
"senior-software-architect",
|
||||
"tpm",
|
||||
"security-architect",
|
||||
"devex-platform-engineer",
|
||||
"qa-test-engineer",
|
||||
"sre-observability-lead",
|
||||
"technical-writer",
|
||||
"senior-software-architect",
|
||||
}
|
||||
|
||||
// OptionalCouncilRoles defines the optional roles that may be included based on project needs
|
||||
|
||||
Reference in New Issue
Block a user