Repository navigation
feat: Phase 1 + Phase 2 - Registry, Discovery, Tasks, Routing, Streaming - #1
Merged
Merged
Conversation
Phase 1 - Agent Registry & A2A Discovery: - Add SSRF protection in @agentmesh/core (security.ts) - blocks private IPs, metadata, etc. - Add Agent Card fetcher in @agentmesh/a2a-protocol (fetcher.ts) with timeout, validation, discovery URLs - Add Postgres initial migration (0000_phase0_init.sql) with full schema - Implement Registry module: repository (InMemory + Postgres), cache (Redis with fallback), service (CRUD, card fetch, health) - Implement Discovery: LocalRegistry, DirectUrl, WellKnown, Manual, Composite providers - Implement Control Plane routes: real CRUD for /v1/agents, /v1/agents/discover, /v1/agents/:id/card, heartbeat, health - Implement Gateway: registry-client (Redis + HTTP fallback), a2a-proxy with SSRF, /v1/agents discovery, /v1/route preview, /v1/a2a/:id/* proxy - Add health-checker worker (TTL, marks unhealthy) - Fix Redis adapter to fallback to in-memory when Redis unavailable (no max retries error) Phase 2 - Task Orchestration & Routing & Streaming: - Implement Task module: repository (InMemory + Postgres), service (create, get, list, transition, cancel, complete, fail, retry, history, delegation graph) - Task lifecycle: SUBMITTED -> WORKING -> COMPLETED/FAILED/CANCELED with history append-only - Implement Control Plane tasks routes: real CRUD, /v1/tasks/:id/history, /v1/tasks/:id/graph, SSE streaming via /v1/tasks/:id/stream - Implement Gateway tasks routes: proxy to control-plane, routing integration (create task with skill -> auto route via routing engine), SSE streaming proxy - Routing engine integration: gateway /v1/route and /v1/tasks with skill routing - Tested: agent registration, discovery by skill, task creation, task lifecycle, gateway skill-based routing, delegation graph Build: 18 packages successful, health endpoints ok, registry and tasks flow verified
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.
Phase 1 + Phase 2 Implementation
Phase 1 - Agent Registry & A2A Discovery
Phase 2 - Task Orchestration & Routing & Streaming
Build & Test
Notes
Ready for review and merge to main.