- Replace incremental sync with full scan for new repositories - Add initial_scan status to bypass Since parameter filtering - Implement council formation detection for Design Brief issues - Add version display to WHOOSH UI header for debugging - Fix Docker token authentication with trailing newline removal - Add comprehensive council orchestration with Docker Swarm integration - Include BACKBEAT prototype integration for distributed timing - Support council-specific agent roles and deployment strategies - Transition repositories to active status after content discovery Key architectural improvements: - Full scan approach for new project detection vs incremental sync - Council formation triggered by chorus-entrypoint labeled Design Briefs - Proper token handling and authentication for Gitea API calls - Support for both initial discovery and ongoing task monitoring This enables autonomous project kickoff workflows where Design Brief issues automatically trigger formation of specialized agent councils for new projects. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
104 lines
4.2 KiB
Go
104 lines
4.2 KiB
Go
package council
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// CouncilFormationRequest represents a request to form a project kickoff council
|
|
type CouncilFormationRequest struct {
|
|
ProjectName string `json:"project_name"`
|
|
Repository string `json:"repository"`
|
|
ProjectBrief string `json:"project_brief"`
|
|
Constraints string `json:"constraints,omitempty"`
|
|
TechLimits string `json:"tech_limits,omitempty"`
|
|
ComplianceNotes string `json:"compliance_notes,omitempty"`
|
|
Targets string `json:"targets,omitempty"`
|
|
TaskID uuid.UUID `json:"task_id"`
|
|
IssueID int64 `json:"issue_id"`
|
|
ExternalURL string `json:"external_url"`
|
|
Metadata map[string]interface{} `json:"metadata,omitempty"`
|
|
}
|
|
|
|
// CouncilComposition defines the agents that make up the kickoff council
|
|
type CouncilComposition struct {
|
|
CouncilID uuid.UUID `json:"council_id"`
|
|
ProjectName string `json:"project_name"`
|
|
CoreAgents []CouncilAgent `json:"core_agents"`
|
|
OptionalAgents []CouncilAgent `json:"optional_agents"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
Status string `json:"status"` // forming, active, completed, failed
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// CouncilDeploymentResult represents the result of council agent deployment
|
|
type CouncilDeploymentResult struct {
|
|
CouncilID uuid.UUID `json:"council_id"`
|
|
ProjectName string `json:"project_name"`
|
|
DeployedAgents []DeployedCouncilAgent `json:"deployed_agents"`
|
|
Status string `json:"status"` // success, partial, failed
|
|
Message string `json:"message"`
|
|
DeployedAt time.Time `json:"deployed_at"`
|
|
Errors []string `json:"errors,omitempty"`
|
|
}
|
|
|
|
// DeployedCouncilAgent represents a successfully deployed council agent
|
|
type DeployedCouncilAgent struct {
|
|
ServiceID string `json:"service_id"`
|
|
ServiceName string `json:"service_name"`
|
|
RoleName string `json:"role_name"`
|
|
AgentID string `json:"agent_id"`
|
|
Image string `json:"image"`
|
|
Status string `json:"status"`
|
|
DeployedAt time.Time `json:"deployed_at"`
|
|
}
|
|
|
|
// CouncilArtifacts represents the outputs produced by the council
|
|
type CouncilArtifacts struct {
|
|
CouncilID uuid.UUID `json:"council_id"`
|
|
ProjectName string `json:"project_name"`
|
|
KickoffManifest map[string]interface{} `json:"kickoff_manifest,omitempty"`
|
|
SeminalDR string `json:"seminal_dr,omitempty"`
|
|
ScaffoldPlan map[string]interface{} `json:"scaffold_plan,omitempty"`
|
|
GateTests string `json:"gate_tests,omitempty"`
|
|
CHORUSLinks map[string]string `json:"chorus_links,omitempty"`
|
|
ProducedAt time.Time `json:"produced_at"`
|
|
Status string `json:"status"` // pending, partial, complete
|
|
}
|
|
|
|
// CoreCouncilRoles defines the required roles for any project kickoff council
|
|
var CoreCouncilRoles = []string{
|
|
"systems-analyst",
|
|
"senior-software-architect",
|
|
"tpm",
|
|
"security-architect",
|
|
"devex-platform-engineer",
|
|
"qa-test-engineer",
|
|
"sre-observability-lead",
|
|
"technical-writer",
|
|
}
|
|
|
|
// OptionalCouncilRoles defines the optional roles that may be included based on project needs
|
|
var OptionalCouncilRoles = []string{
|
|
"data-ai-architect",
|
|
"privacy-data-governance-officer",
|
|
"compliance-legal-liaison",
|
|
"performance-benchmarking-analyst",
|
|
"ui-ux-designer",
|
|
"ios-macos-developer",
|
|
"engine-programmer",
|
|
"integration-architect",
|
|
"cost-licensing-steward",
|
|
} |