openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Per-integration health list under Memory Tree status panel

Open CodeGhost21 opened this issue 6 months ago • 0 comments

Summary

Add a per-integration health list directly under the Memory Tree status panel, so operators can see, per connected integration, whether it is actively contributing chunks, when it last synced, and how much data it has produced.

Problem

PR #2719 (feat(memory-tree): status panel + on/off toggle (#1856 Part 1)) ships the four-tile pipeline-health overview and the auto-sync toggle, but does not surface the per-integration breakdown that #1856 calls out as Part 3:

Integration health list — below the summary metrics, the panel lists every connected integration with: integration name and icon, last fetched timestamp, chunk count contributed, status (Active / Stale / Error).

Without it, an operator who sees a stalled or low-volume Memory Tree has no quick way to see whether the cause is one specific integration (e.g. Gmail) and not the pipeline as a whole.

This is split out from #1856 so #2719's tighter scope can merge cleanly first, and the per-integration work can sit on top of it without expanding #2719's diff. The other unshipped part of #1856 (team-scoped wiki silos) is not filed here — it's blocked on FR9 (Teams and agents management panel) which doesn't have its own tracking issue yet.

Solution

Scope: app (new sub-component under MemoryTreeStatusPanel) + small core extension on top of the RPC introduced by #2719.

The data sources are already in main — this is mostly a UI scope:

Sketch:

  1. Extend memory_tree_pipeline_status (introduced by #2719) — or add a sibling RPC — to also return integrations: Vec<IntegrationHealth>, where each entry covers id, name, icon_kind, last_fetched_at, chunk_count, status (Active / Stale / Error).
  2. Render a new MemoryTreeIntegrationList.tsx directly below MemoryTreeStatusPanel in MemoryWorkspace.tsx.
  3. Reuse the parent panel's adaptive polling (no second poll loop).
  4. i18n strings co-located with the parent panel's chunk so all locales remain in sync (per CLAUDE.md i18n rules).

Status classification (proposed defaults; up for discussion):

  • Active — last sync ≤ 2× auto_fetch_interval_minutes
  • Stale — between 2× and 5× the interval
  • Error — last sync errored, or no sync within 5× the interval

Acceptance criteria

  • [ ] Per-integration RPC field — memory_tree_pipeline_status (or a sibling) returns an integrations array with id, name, icon_kind, last_fetched_at, chunk_count, status.
  • [ ] Status classification — Active / Stale / Error follows the rule above and is deterministic given the configured auto_fetch_interval_minutes.
  • [ ] List renders below MemoryTreeStatusPanel — MemoryTreeIntegrationList.tsx mounted in MemoryWorkspace.tsx, visible from both /intelligence and Settings → Memory data.
  • [ ] Empty state — clear "No integrations connected" copy matches the existing MemorySources.tsx convention.
  • [ ] Polling shares parent — re-uses the existing adaptive poll in MemoryTreeStatusPanel rather than double-polling.
  • [ ] i18n parity — strings live in the same chunk file as the parent panel's i18n; all 14 locales covered per the CLAUDE.md i18n rule.
  • [ ] Diff coverage ≥ 80% — the implementing PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by .github/workflows/coverage.yml).

Related

  • Parent umbrella: #1856 (covers Parts 1–3; this is Part 3, split out per audit comment).
  • Must land first: #2719 — feat(memory-tree): status panel + on/off toggle (#1856 Part 1) — supplies the parent panel + base RPC this builds on.
  • Per-source sync metadata source: #1250 — feat(memory): per-source memory sync status (#1136).
  • chunk_count per source: memory/read_rpc.rs:109.
  • Sibling, deferred: team-scoped wiki silos (Part 2 of #1856) — not filed here because it depends on FR9 (Teams and agents management panel) which doesn't have its own tracking issue yet. Will be filed once FR9 lands.

CodeGhost21 avatar May 27 '26 13:05 CodeGhost21