Boss Agent Consolidation and Frontend Integration Plan

Purpose

Unify the multiple "Boss Agent" implementations (Claude-first ADK, legacy Gemini-first backend, Pub/Sub orchestrator) into a single production-grade service that the command-center UI and all 32 cells can rely on. This plan outlines the target architecture, migration path, and delivery steps to align APIs, routing, and capabilities.

Target End-State Architecture

Key Capabilities to Preserve/Combine

Frontend Alignment

Migration Plan

  1. Select canonical runtime: adopt the Claude-first ADK as baseline; freeze changes to legacy Gemini-first backend and Pub/Sub orchestrator except for bridge shims.
  2. API unification: - Add /agents/{id}/execute handler that delegates to existing routing logic. - Keep /process for backward compatibility; ensure both paths flow through the same routing pipeline.
  3. Registry consolidation: - Merge full registry (32 cells + MOA/MOE/Coding MOA) with any additional external employee agents. - Standardize capability tags and URLs; add health-check metadata for /status.
  4. Model strategy: - Default to Anthropic Vertex (Claude); configure Gemini as always-available fallback with automatic failover so operational capacity is maintained even if the primary provider degrades. - Document model selection rules (e.g., coding tasks → Claude, data-heavy analysis → Gemini) and define fail-open policies: if the primary call fails or breaches latency/error thresholds, route the same prompt to Gemini and return a flagged fallback response with telemetry. - Add periodic synthetic probes that exercise both Claude and Gemini to ensure credentials/quotas stay warm and failover remains healthy.
  5. Persistence + memory: - Use Firestore only when conversational memory is required; decouple core routing from storage.
  6. Pub/Sub bridge: - Implement a lightweight worker that reads legacy boss-agent-sub and POSTs to /process on the consolidated service; publish responses back if consumers still expect Pub/Sub.
  7. REWOO orchestrator enablement: - Embed REWOO plan/work/observe stages inside the consolidated Boss Agent as a selectable routing mode (e.g., strategy=rewoo), so requests can opt-in without a separate binary. - Reuse the unified registry and A2A protocol for REWOO layer agents; emit evidence to the same observability stack and fallback models under the shared policy.
  8. Deprecation: - Mark legacy /api/v1/chat and standalone Pub/Sub orchestrator as deprecated; provide cutover dates and observability to detect residual traffic.

Delivery Steps

Risks and Mitigations

Success Criteria

← All docsView source on GitHub →