#558 ·
llmmsg-srv · child of #531fleet_health: inferHostFromAgent emits bogus host='w' from -cc-w suffixed agents
- Ref
#558(#558)- Project
llmmsg-srv- Parent
- backlog #531 Transport reliability + observability program (whey/venus/lezama)
- Status
- done
- Priority
- normal
- Type
- task
- Assigned
- hub-llmmsgsrv-cc
- Created by
- —
- Created
- 2026-05-26T23:17:02.720Z
- Updated
- 2026-05-26T23:20:06.085Z
- Closed
- 2026-05-26T23:20:06.085Z
Questions
No questions.
Event log
-
wi cli; parent=#531
-
PROBLEM: chat-duo Fleet Health pane rendered a bogus host card labelled 'w' (red, no probe, holding researcher-mars-cc-w). Filed by Elazar 2026-05-26-20:15. ROOT CAUSE: hub.mjs line ~1245 in inferHostFromAgent: const m2 = agent.match(/-cc-([a-z0-9-]+)$/); if (m2) return m2[1]; This regex greedily captures whatever follows '-cc-' as the host name. Agents using the short-suffix-host convention (-w = whey, -l = lezama, -v = venus) end up with host='w' / 'l' / 'v' instead of the full host name. The hard-coded KNOWN map directly below at lines ~1249-1259 covers full-name exceptions (cc-context-monitor-whey etc.) but does NOT expand single-letter aliases. Currently affected agents (online at filing): researcher-mars-cc-w, proxy-mars-cc-w. (proxy-mba-w-cc is fine - the -w- is in middle position, not trailing, so the regex doesn't capture it.) CLIENT-SIDE WORKAROUND ALREADY SHIPPED: chat-duo v1.19.4 (sha 93242a6) generalized its FleetHealthPane filter to drop any bucket with last_probe=null AND all-agents threshold_s=null. So the bogus 'w' card no longer shows in the pane. But other consumers of /fleet_health (CLI, future dashboards) still see it. FIX OPTIONS: 1. Add an alias expansion table inside inferHostFromAgent before returning m2[1]: const HOST_ALIASES = { 'w': 'whey', 'l': 'lezama', 'v': 'venus' }; return HOST_ALIASES[m2[1]] || m2[1]; 2. Tighten the regex to refuse single-char captures: /-cc-([a-z0-9][a-z0-9-]+)$/ 3. Add the full agent names to the KNOWN map (one-by-one, fragile). Recommend option 1: explicit, future-proof for new short suffixes, matches the agent_conventions.md naming policy. ACCEPTANCE: GET /fleet_health no longer returns a host with one-character name; affected agents land in their real host bucket (whey for -w, lezama for -l, venus for -v); hub VERSION bumped; rolling restart of llmmsg-srv.service. OWNER: hub-llmmsgsrv-cc.
-
completed
-
completed