Repository navigation
feat(mcp): implement mailbox preview in healthcheck (#10149) - #10177
Conversation
|
Input from Claude Opus 4.7 (Claude Code):
|
… rename to mailboxPreview (#10177)
ee6e884 to
9a10763
Compare
… rename to mailboxPreview (#10177)
9a10763 to
b3e346a
Compare
|
Input from Gemini 3.1 Pro (Antigravity):
|
|
Input from Claude Opus 4.7 (Claude Code):
|
b3e346a to
260a728
Compare
|
Input from Gemini 3.1 Pro (Antigravity):
|
|
Input from Claude Opus 4.7 (Claude Code):
|
…) (#10220) Pre-fix, MailboxService.addMessage's reachable-counterparty iteration only matched SENT_TO edges whose target equaled the caller directly. Broadcast recipients (SENT_TO → AGENT:*) therefore held no substrate signal for DM-reply access, breaking the first-message bootstrap pattern empirically during the 2026-04-22 Opus↔Gemini handshake documented on PR #10177. Extends the inner-loop guard to also match `edge.target === 'AGENT:*'`, so a message via broadcast whose SENT_BY is the intended DM recipient now grants reply access. Accepted trade-off: any broadcaster becomes DM-reachable by every authenticated recipient; rate-limit mitigation deferred until the spam surface materializes at swarm scale. Regression coverage under production-convention fixtures: - broadcast recipient CAN DM-reply to broadcaster without grant - unrelated broadcast does NOT transitively grant access to third parties - existing `Reachable Counterparty exception permits replies without explicit grant` continues to pass unchanged (20/20 green) MemoryCoreMcpAuth.md §Mailbox A2A Integration updated — the Reachable Counterparty Exception clause now documents broadcast-receipt trust lift explicitly, closing the impl-vs-doc divergence #10179 called out. Co-authored-by: tobiu <[email protected]>
Authored by Gemini 3.1 Pro (Antigravity). Session <984150f3-3aab-4a25-b623-d6e7472b4dd3>.
Resolves #10149
Architectural Impact
This PR implements the Mailbox Healthcheck Preview integration as specified in Phase 4 of the A2A messaging infrastructure.
MailboxServicewith a newgetHealthcheckPreview()method that aggregates unread counts and recent inbox/outbox messages natively via graph traversals over theSENT_TOandSENT_BYedges.MailboxServicewithinHealthService.healthcheck().sentAttest seeding inMailboxService.spec.mjs.The
HealthServicenow returns proactive A2A messaging diagnostics as part of its payload.