Fix Docker Swarm discovery network name mismatch

- Changed NetworkName from 'chorus_default' to 'chorus_net'
- This matches the actual network 'CHORUS_chorus_net' (service prefix added automatically)
- Fixes discovered_count:0 issue - now successfully discovering all 25 agents
- Updated IMPLEMENTATION-SUMMARY with deployment status

Result: All 25 CHORUS agents now discovered successfully via Docker Swarm API

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude Code
2025-10-10 10:35:25 +11:00
parent 2826b28645
commit 9aeaa433fc
36 changed files with 4721 additions and 2213 deletions

View File

@@ -46,7 +46,7 @@ CREATE TABLE IF NOT EXISTS council_agents (
UNIQUE(council_id, role_name),
-- Status constraint
CONSTRAINT council_agents_status_check CHECK (status IN ('pending', 'deploying', 'active', 'failed', 'removed'))
CONSTRAINT council_agents_status_check CHECK (status IN ('pending', 'deploying', 'assigned', 'active', 'failed', 'removed'))
);
-- Council artifacts table: tracks outputs produced by councils

View File

@@ -0,0 +1,7 @@
-- Revert council agent assignment status allowance
ALTER TABLE council_agents
DROP CONSTRAINT IF EXISTS council_agents_status_check;
ALTER TABLE council_agents
ADD CONSTRAINT council_agents_status_check
CHECK (status IN ('pending', 'deploying', 'active', 'failed', 'removed'));

View File

@@ -0,0 +1,7 @@
-- Allow council agent assignments to record SQL-level state transitions
ALTER TABLE council_agents
DROP CONSTRAINT IF EXISTS council_agents_status_check;
ALTER TABLE council_agents
ADD CONSTRAINT council_agents_status_check
CHECK (status IN ('pending', 'deploying', 'assigned', 'active', 'failed', 'removed'));

View File

@@ -0,0 +1,12 @@
-- Remove persona tracking and brief metadata fields
ALTER TABLE council_agents
DROP COLUMN IF EXISTS persona_status,
DROP COLUMN IF EXISTS persona_loaded_at,
DROP COLUMN IF EXISTS persona_ack_payload,
DROP COLUMN IF EXISTS endpoint_url;
ALTER TABLE councils
DROP COLUMN IF EXISTS brief_owner_role,
DROP COLUMN IF EXISTS brief_dispatched_at,
DROP COLUMN IF EXISTS activation_payload;

View File

@@ -0,0 +1,12 @@
-- Add persona tracking fields for council agents and brief metadata for councils
ALTER TABLE council_agents
ADD COLUMN IF NOT EXISTS persona_status VARCHAR(50) NOT NULL DEFAULT 'pending',
ADD COLUMN IF NOT EXISTS persona_loaded_at TIMESTAMPTZ,
ADD COLUMN IF NOT EXISTS persona_ack_payload JSONB,
ADD COLUMN IF NOT EXISTS endpoint_url TEXT;
ALTER TABLE councils
ADD COLUMN IF NOT EXISTS brief_owner_role VARCHAR(100),
ADD COLUMN IF NOT EXISTS brief_dispatched_at TIMESTAMPTZ,
ADD COLUMN IF NOT EXISTS activation_payload JSONB;