Title: [A2A] Discovery Mechanism (Local + Network) · Issue #333 · github/squad · GitHub
Open Graph Title: [A2A] Discovery Mechanism (Local + Network) · Issue #333 · github/squad
X Title: [A2A] Discovery Mechanism (Local + Network) · Issue #333 · github/squad
Description: Overview Build discovery system for squads to find each other locally (file-based) and optionally on network (mDNS). Reference PRD: See tamresearch1 repo, branch squad/296-cross-repo-a2a, file .squad/research/cross-repo-a2a-prd.md Relate...
Open Graph Description: Overview Build discovery system for squads to find each other locally (file-based) and optionally on network (mDNS). Reference PRD: See tamresearch1 repo, branch squad/296-cross-repo-a2a, file .squ...
X Description: Overview Build discovery system for squads to find each other locally (file-based) and optionally on network (mDNS). Reference PRD: See tamresearch1 repo, branch squad/296-cross-repo-a2a, file .squ...
Opengraph URL: https://github.com/github/squad/issues/333
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[A2A] Discovery Mechanism (Local + Network)","articleBody":"## Overview\r\nBuild discovery system for squads to find each other locally (file-based) and optionally on network (mDNS).\r\n\r\n## Reference\r\n- PRD: See tamresearch1 repo, branch `squad/296-cross-repo-a2a`, file `.squad/research/cross-repo-a2a-prd.md`\r\n- Related Issue: tamirdresher_microsoft/tamresearch1#296\r\n- Depends on: #332 (Core A2A protocol)\r\n\r\n## Phase 1: Local Discovery (MVP)\r\n**Registry:** File-based at `~/.squad/registry/active-squads.json`\r\n\r\n**Operations:**\r\n- Register on squad serve\r\n- Heartbeat every 30s\r\n- Auto-cleanup stale entries (lastSeen >2 min OR PID dead)\r\n- Query registry for discovery\r\n\r\n## Phase 2: Network Discovery (Optional)\r\n- mDNS/Bonjour for LAN discovery\r\n- DNS-SD for enterprise\r\n- Service type: _squad._tcp.local.\r\n- Opt-in via squad serve --network\r\n\r\n## Deliverables\r\n- Registry manager (src/discovery/registry.ts)\r\n- File-based storage with atomic writes\r\n- Heartbeat mechanism\r\n- Stale entry cleanup (cron job)\r\n- mDNS integration (bonjour-service library)\r\n- CLI: squad discover command\r\n- Unit + integration tests\r\n- Documentation\r\n\r\n## Technical Requirements\r\n- File Locking: Prevent concurrent write corruption\r\n- Performance: Scan registry \u003c50ms for 100 squads\r\n- Reliability: Handle crashed squads (PID check)\r\n- Security: Per-user registry (~/.squad/), file permissions\r\n\r\n## Success Criteria\r\n- Two squads auto-register on startup\r\n- Stale squads removed within 2 minutes\r\n- squad discover returns all active squads \u003c1s\r\n- Network discovery finds LAN squads \u003c5s\r\n\r\n## Timeline\r\nPhase 1: 2 weeks\r\nPhase 2: 2 weeks\r\n","author":{"url":"https://github.com/tamirdresher","@type":"Person","name":"tamirdresher"},"datePublished":"2026-03-10T21:05:54Z","url":"https://github.com/github/squad/issues/333"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d0cac97d-84b3-95fa-412c-f90378fcdc95 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90CC:313081:13EC57:1A9D3E:6B01856E |
| html-safe-nonce | 13c8c9b3355f4fe9d92d2de347265731f93a0845dc0cfaf781ae5bd5039fbfa9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MENDOjMxMzA4MToxM0VDNTc6MUE5RDNFOjZCMDE4NTZFIiwidmlzaXRvcl9pZCI6IjM1NDQyMzg3MzI3ODc5NDI3NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 60ce4207f54a6f1d1006ff0054df0f75af7b411c65c5334f29ac802ba3195e9c |
| hovercard-subject-tag | issue:4054223009 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/333/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b594ce8ff4c3a910a4f9a93da96a218ac622b275524ef8ca237b51ff947cd4fc/github/squad/issues/333 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b594ce8ff4c3a910a4f9a93da96a218ac622b275524ef8ca237b51ff947cd4fc/github/squad/issues/333 |
| og:image:alt | Overview Build discovery system for squads to find each other locally (file-based) and optionally on network (mDNS). Reference PRD: See tamresearch1 repo, branch squad/296-cross-repo-a2a, file .squ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tamirdresher |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/squad git https://github.com/github/squad.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151205052 |
| octolytics-dimension-repository_nwo | github/squad |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151205052 |
| octolytics-dimension-repository_network_root_nwo | github/squad |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width