learning_ai_common_plat/services
saravanakumardb1 2191427605 fix(cowork-service): 3 bugs — flag names, IPC call guard, health status
BUG 1: feature-flags.ts had 3 wrong flag names + missing 3 from seed.ts
  - Removed: browser_extension_enabled, institutional_knowledge_enabled
  - Renamed: connectors_enabled → mcp_connectors_enabled
  - Added: llm_multi_model_enabled, telemetry_enabled, platform_auth_required
  - Fixed defaults to match seed.ts (marketplace_enabled=true, dispatch_api_enabled=true)
  - Now 13 flags exactly matching platform-service/src/modules/flags/seed.ts

BUG 2: ipc-bridge.ts call() had 'initialize' exemption that allowed null deref
  - If call('initialize') was invoked externally without start(), the guard
    passed but this.child!.stdin!.write() would crash with null dereference
  - During normal start(), child.stdin.writable is true so no exemption needed
  - Removed the method !== 'initialize' exemption

BUG 3: health routes didn't factor IPC bridge into overall health status
  - allOk only checked platform-service reachability
  - Now allOk = depsOk && ipcConnected — service reports 503 when bridge is down
  - IPC bridge disconnection makes health 'degraded' (correct — fallback mode works)

24 tests passing, typecheck clean.
2026-04-02 22:20:52 -07:00
..
cowork-service fix(cowork-service): 3 bugs — flag names, IPC call guard, health status 2026-04-02 22:20:52 -07:00
extraction-service feat(extraction): back product rate limits with valkey 2026-03-31 08:08:53 +00:00
mcp-server fix(mcp): align ChronoMind type enums with actual backend schema 2026-03-31 23:57:24 -07:00
monitoring feat(observability): add phase 2 monitoring and valkey services 2026-03-31 06:57:12 +00:00
platform-service feat(cowork-service): scaffold Fastify bridge + seed clawcowork feature flags (H.1 + H.2) 2026-04-02 20:39:22 -07:00