feat: introduce Agent orchestrator, AgentDaemon, federated summoning, and retry mechanics with performance indexes#13
Merged
Conversation
… and retry mechanics with performance indexes Add Managed and Federated Orchestrators to support decentralized multi-agent roundtable discussions. Introduce registered agent heartbeats, runtime daemons, inbox/delivery mechanics, Web Viewer summon updates, and performance query indexes. Key changes: 1. Orchestration Modes: - Implement ManagedOrchestrator for co-located meetings inside a single host/platform. - Implement FederatedOrchestrator for summoning remote/decentralized agents across stdio and HTTP transports using the runtime registry. 2. Agent Daemon: - Add AgentDaemon (src/roundtable/agent.py) as a small runtime component that registers agents on startup, sends periodic heartbeats, checks inbox messages, and accepts summons or invitations automatically based on configured policies. 3. Federated Summoning & Dispatch: - Expand database schema with dispatches, summons, and summon_events tables (migration v3). - Support assembling discussion status to allow agent recruitment and acceptance checks before activating the meeting. - Implement start policies: quorum-based, all, immediate, and timeout-based. - Add roundtable_summon_agents, roundtable_dispatch_status, roundtable_retry_summon, and roundtable_wait_for_turn tools to the MCP server. - Support explicit allow_terminal_retry to release the unique idempotency key on timed-out or failed dispatches and create retry dispatches. 4. Database Performance Indexes & Optimization: - Add database indexes (migration v4) for coordinator-based dispatch filtering, expired summon timeouts, and discussion-specific inbox messages (idx_dispatches_coordinator, idx_summons_timeout, idx_inbox_discussion). 5. HTTP Bridge & Web Viewer Updates: - Add authentication, metadata propagation, and auto-summon acceptance options to Codex bridge. - Update Web Viewer schema and sync logic (web_sync.py) to reflect dispatch state and summon recruitment status on the UI. 6. Robustness & Verification: - Add comprehensive tests for database index structures, federated dispatch states, orchestrators, agent daemon runtime cycles, and idempotency key release scenarios.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Managed and Federated Orchestrators to support decentralized multi-agent roundtable discussions. Introduce registered agent heartbeats, runtime daemons, inbox/delivery mechanics, Web Viewer summon updates, and performance query indexes.
Key changes:
ManagedOrchestratorfor co-located meetings inside a single host/platform.FederatedOrchestratorfor summoning remote/decentralized agents across stdio and HTTP transports using the runtime registry.AgentDaemon(src/roundtable/agent.py) as a small runtime component that registers agents on startup, sends periodic heartbeats, checks inbox messages, and accepts summons or invitations automatically based on configured policies.dispatches,summons, andsummon_eventstables (migration v3).assemblingdiscussion status to allow agent recruitment and acceptance checks before activating the meeting.roundtable_summon_agents,roundtable_dispatch_status,roundtable_retry_summon, androundtable_wait_for_turntools to the MCP server.allow_terminal_retryto release the unique idempotency key on timed-out or failed dispatches and create retry dispatches.idx_dispatches_coordinator,idx_summons_timeout,idx_inbox_discussion).web_sync.py) to reflect dispatch state and summon recruitment status on the UI.