Implement initial scan logic and council formation for WHOOSH project kickoffs

- 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>
This commit is contained in:
Claude Code
2025-09-12 09:49:36 +10:00
parent b5c0deb6bc
commit 56ea52b743
74 changed files with 17778 additions and 236 deletions

View File

@@ -0,0 +1,32 @@
-- Rollback council-related tables
-- Drop triggers first
DROP TRIGGER IF EXISTS update_councils_updated_at ON councils;
DROP TRIGGER IF EXISTS update_council_agents_updated_at ON council_agents;
-- Drop function
DROP FUNCTION IF EXISTS update_updated_at_column();
-- Drop indexes
DROP INDEX IF EXISTS idx_councils_status;
DROP INDEX IF EXISTS idx_councils_created_at;
DROP INDEX IF EXISTS idx_councils_task_id;
DROP INDEX IF EXISTS idx_councils_repository;
DROP INDEX IF EXISTS idx_council_agents_council_id;
DROP INDEX IF EXISTS idx_council_agents_status;
DROP INDEX IF EXISTS idx_council_agents_role_name;
DROP INDEX IF EXISTS idx_council_agents_deployed;
DROP INDEX IF EXISTS idx_council_artifacts_council_id;
DROP INDEX IF EXISTS idx_council_artifacts_type;
DROP INDEX IF EXISTS idx_council_artifacts_status;
DROP INDEX IF EXISTS idx_council_decisions_council_id;
DROP INDEX IF EXISTS idx_council_decisions_type;
-- Drop tables in reverse dependency order
DROP TABLE IF EXISTS council_decisions;
DROP TABLE IF EXISTS council_artifacts;
DROP TABLE IF EXISTS council_agents;
DROP TABLE IF EXISTS councils;