Architecture: How to unify connectivity, URL resolution, reconnect, and ci...

Documentation for Sessions

🏗️ Architecture: How to unify connectivity, URL resolution, reconnect, and ci...

Date: 2026-02-21
Time: 05:31:00 UTC
Session: gspace1-131.4
Agent: angular
Confidence: 92%
Status: ✅ Documented


📋 Decision Context

Question:

How to unify connectivity, URL resolution, reconnect, and circuit breaker across all platform systems?

Task: Not specified


🎯 Decision Made

Chosen:

Created @libs-foundational/connectivity-core — a pure TypeScript, zero-dependency library with tier-based URL resolution (local → staging → production), three-phase reconnect (fast/slow/sentinel), circuit breaker, and observable state machine

Options Considered:


💭 Reasoning

All 5 systems (MCP, VSCode ext, Chrome ext, backends, frontends) independently implemented their own URL detection, health checking, and reconnect logic with no fallback to production. Extracting to a shared core library with platform adapters eliminates duplication and ensures consistent behavior. Used type aliases instead of interfaces for event types to satisfy TypeScript index signature constraints.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation