Skip to content

Conversation

@rhymiz
Copy link
Contributor

@rhymiz rhymiz commented Jan 1, 2026

No description provided.

rhymiz added 8 commits January 1, 2026 17:12
- Add instance_id to Agent for unique instance identification
- Update AgentRegistry for idempotent registration with instance tracking
- Add per-instance heartbeats (agent:{id}:heartbeat:{instance_id})
- Route request-response replies to specific instance streams
- Update MASService health monitoring for multi-instance agents
- Add sender_instance_id to MessageMeta for reply routing
- Add incr/decr to AsyncRedisProtocol and PipelineProtocol

Multi-instance behavior:
- Each Agent instance gets a unique instance_id
- Multiple instances share workload via Redis consumer groups
- Request-response replies route to originating instance
- State is shared across all instances of same agent_id
- REGISTER/DEREGISTER events fire only for first/last instance

Tests:
- Add comprehensive multi-instance test suite (16 tests)
- Update registry regression tests for new API
- Update efficiency tests for new API
- Fix flaky audit compliance tests (timing issue)
- Improve test isolation in conftest.py
@rhymiz rhymiz merged commit 3e75aa7 into main Jan 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants