• Add agent registration, heartbeats, and monitoring (Phase 4)

    kyle released this 2026-04-04 19:00:31 +00:00 | 1 commits to master since this release

    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

    Downloads