Kyle Isom
6351b68ef6
Add agent registration, heartbeats, and monitoring (Phase 4)
Master side:
- Register RPC: identity-bound (agent-rift → rift), allowlist check,
max nodes limit, upserts node in registry, updates agent pool
- Heartbeat RPC: derives node name from MCIAS identity (not request),
updates container count and last-heartbeat timestamp
- HeartbeatMonitor: background goroutine checks for missed heartbeats
(90s threshold), probes agents via HealthCheck, marks unhealthy
Agent side:
- HeartbeatClient: connects to master via env vars (MCP_MASTER_ADDRESS,
MCP_MASTER_CA_CERT, MCP_MASTER_TOKEN_PATH), registers on startup
with exponential backoff, sends heartbeats every 30s
Proto: added Register and Heartbeat RPCs + messages to master.proto.
Architecture v2 Phase 4.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 12:00:31 -07:00
..
2026-03-27 02:07:42 -07:00
2026-03-27 02:07:42 -07:00
2026-04-04 11:53:11 -07:00
2026-04-04 11:53:11 -07:00
2026-03-27 13:31:11 -07:00
2026-03-27 21:45:42 -07:00
2026-03-27 16:50:48 -07:00
2026-03-29 19:28:40 -07:00
2026-03-29 18:51:53 -07:00
2026-03-29 18:51:53 -07:00
2026-03-29 18:51:53 -07:00
2026-04-02 13:13:10 -07:00
2026-03-26 12:21:18 -07:00
2026-03-27 02:07:42 -07:00
2026-04-04 12:00:31 -07:00
2026-03-30 17:26:05 -07:00
2026-03-28 18:22:38 -07:00
2026-03-26 15:13:20 -07:00
2026-03-29 17:49:49 -07:00
2026-03-27 01:04:47 -07:00
2026-03-27 13:31:11 -07:00
2026-03-29 20:44:44 -07:00
2026-03-27 02:07:42 -07:00
2026-04-02 13:13:10 -07:00
2026-03-27 02:07:42 -07:00
2026-03-27 02:07:42 -07:00
2026-04-04 11:50:31 -07:00
2026-03-27 02:07:42 -07:00
2026-03-28 19:13:02 -07:00
2026-03-27 14:39:26 -07:00
2026-03-27 02:07:42 -07:00
2026-03-27 21:45:42 -07:00