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:
@@ -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
|
||||
|
||||
@@ -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'));
|
||||
7
migrations/008_update_council_agent_status_check.up.sql
Normal file
7
migrations/008_update_council_agent_status_check.up.sql
Normal 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'));
|
||||
12
migrations/009_add_council_persona_columns.down.sql
Normal file
12
migrations/009_add_council_persona_columns.down.sql
Normal 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;
|
||||
12
migrations/009_add_council_persona_columns.up.sql
Normal file
12
migrations/009_add_council_persona_columns.up.sql
Normal 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;
|
||||
Reference in New Issue
Block a user