Repository navigation
Description
Summary
Redesign the Agent Detail page so the default landing tab is a glanceable, fully-deterministic "Overview" that emphasizes trends over the last several days — charts of execution volume, success rate, duration, executions-by-type, and context consumption over time — not just the current state. In the same pass, rework the Info tab so it leads with the agent's description/"about" narrative and tucks the exhaustive template.yaml metadata behind expandable sections.
Everything is deterministic (DB time-series, config flags, git/sync state, health rollups) — no LLM-generated content.
Updated 2026-06-09: reoriented from point-in-time stat cards to continuous multi-day charts; added success rate, duration stats, and executions-by-type breakdowns; the "needs attention" zone is now a count + link to the ops page, not an inline list.
⚠️ Non-duplication constraint (key requirement)
The persistent AgentHeader (src/frontend/src/components/AgentHeader.vue) renders above the tabs and is always visible. It owns the live/instant signals and cost:
| Header owns | |
|---|---|
| Live CPU% + sparkline, MEM + sparkline, uptime-since-start | Row 2 (agentStats) |
| Cost: today, 7-day sparkline, trend vs avg, lifetime cost + run count | Token-usage row (tokenStats) |
| Git repo/branch/commit + Pull/Push, circuit-open badge, autonomy/read-only/auth chips | Rows 1–3 |
Clean split: the header = "now + cost", the Overview = "trend over the last few days" (operational time-series + compact pointers). The Overview must not re-render the header's live gauges, cost cards, git controls, autonomy/read-only/auth chips, or circuit badge; where it needs to reference one (e.g. circuit open), it links to the header control.
Design — "Overview" as the new default tab
1. About (lead)
- Agent description + tagline, with a "Full details →" link to the redesigned Info tab.
- A one-line task-entry that deep-links into Tasks (preserves the action surface).
2. Needs attention (compact — count + link only)
- Show only the number of active alerts — a single badge combining pending operator-queue items + active notifications + sync-failing.
- Link to the Operating Room / alerts page (or a specific alert) to see details.
- Do not render an inline list or per-item details.
- Hidden when the count is zero.
3. Trend charts (the core) — multi-day history
Charts over a selectable window (default 7d; selector 7 / 14 / 30d):
- Executions per day, stacked by type — grouped into user-facing buckets: Chat, MCP calls, Channels (Telegram/Slack/WhatsApp), Public link (public/paid), Scheduled (schedule/webhook), Agent-to-agent (agent/fan-out), Voice (voip). Volume + type mix + trend in one chart, with per-type totals for the window.
- Success rate over time — a success-rate % line (0–100%) per day across the window, plus a headline % for the window. This is a separate series from the by-type stack (outcome and type are orthogonal — a single bar can't stack by both).
- Duration statistics — avg + p95 (server-computed) + a duration trend line.
- Context-window consumption over time.
- A small live readout of running + queued can sit alongside the charts.
These replace the single-number stat cards — the point is to show the shape of recent activity, not just the latest value.
4. Health & reliability — trends + current flags
- Aggregate health (healthy / degraded / unhealthy) + heartbeat liveness.
- Trend lines for 24h→Nd uptime% and avg latency over the window (from monitoring history).
- Restart count + OOM flag as current indicators.
5. Recent activity (secondary drill-in)
- Recent-executions mini-list (last ~5, status dots + type) → deep-links into the Tasks tab. Sits below the charts (charts lead; the list is the drill-in).
6. Footprint (compact, static)
- Sharing (count + access policy, owner-gated), sync-health (status + last sync), skills/playbooks (counts) — small status chips. Point-in-time, not charted.
7. Info tab redesign (drill-down detail)
- Lead with About (description, tagline, use cases — keep "What You Can Ask" above the fold).
- Move exhaustive technical metadata (sub-agents, commands, MCP servers, tools, capabilities, platforms) into collapsible "Technical details" sections.
Layout & behaviour
- A time-window selector (7 / 14 / 30d) controls all charts.
- Responsive card grid; attention badge pinned only when count > 0.
- Graceful degradation when stopped: charts still render historical data from the DB; live readouts show "offline".
Acceptance Criteria
- Overview is the default tab and emphasizes multi-day trend charts, not just current state.
- Over the selectable window (7 / 14 / 30d), the Overview charts show, each as a multi-day trend (not a single value): executions by type (chat / MCP / channels / public / scheduled / agent / voice), success rate (a 0–100% line over time), duration (avg + p95), and context consumption.
- Executions-by-type groups the raw
triggered_byvalues into the user-facing buckets above (incl. per-channel tagging) + shows per-type totals for the window. - "Needs attention" shows only a count of active alerts + a link to the ops/alert page — no inline list or details; hidden when zero.
- No element duplicates
AgentHeader(live CPU/MEM, cost, git, autonomy/read-only/auth chips, circuit badge). - Overview leads with the About narrative + a task-entry that deep-links to Tasks.
- Health panel shows aggregate status + heartbeat + uptime/latency trends + restart count + OOM.
- Recent-executions mini-list deep-links into the Tasks tab.
- Info tab redesigned: About leads; exhaustive
template.yamlmetadata behind expandable sections. - Degrades gracefully when the agent is stopped; all content is deterministic (no LLM-generated content).
- Existing tabs (Chat, Session, Dashboard, Schedules, …) and
AgentHeaderare unchanged.
Technical Notes
The execution metrics all come from schedule_executions (triggered_by, duration_ms, status, started_at):
- Executions by type / success rate / duration: GROUP BY
triggered_by, day buckets, success/total, duration percentiles.⚠️ Channel executions are tagged with the channel name (triggered_by=telegram/slack/whatsapp, seeadapters/message_router.py:431), and there are ~17 distinct raw values (chat,session,mcp,public,paid,schedule,webhook,manual,agent,fan_out,loop,voip, …). The by-type view must group these into the user-facing buckets, not show raw values.
- Context / latency / uptime trends:
GET /api/monitoring/agents/{name}/history?hours=&check_type=business|aggregate(already returns historical metrics). - Attention count:
GET /api/agents/{name}/notifications/count+ pending operator-queue count + sync-stateconsecutive_failures— counts only, no full lists. - About / Info:
GET /api/agents/{name}/info. Footprint:/schedules,/shares,/access-policy,/git/sync-state,/skills,/playbooks.
Build a per-agent analytics endpoint — generalize the #868 per-schedule analytics (/schedules/{id}/analytics: duration p50/p95/p99, success rate, daily timeline, tool-call breakdown) to agent scope with a triggered_by breakdown: GET /api/agents/{name}/analytics?window=. Duration percentiles + type grouping + day buckets are best computed server-side (router→service→db, invariants #1/#4/#14) — this resolves the earlier "consolidation endpoint" open question (build it; don't client-bucket thousands of rows). The same query can back the Overview charts and a future audit/billing rollup.
Charting: reuse/extend the SparklineChart.vue pattern or a small labeled line/area + stacked-bar chart (day axis + tooltip + legend) — richer than the header's compact cost sparkline, since trends are now the focal content.
Key files: src/frontend/src/views/AgentDetail.vue (default activeTab, visibleTabs), src/frontend/src/components/InfoPanel.vue (Info redesign), src/frontend/src/components/AgentHeader.vue (non-duplication reference), new OverviewPanel.vue, new analytics endpoint (routers/ → services/ → db/schedules.py alongside the #868 query). Frontend invariants #6 / #7.
Activity
vybe commentedon Jun 9, 2026
/claim
github-actions commentedon Jun 9, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/1107-<short-slug>Fixes #1107vybe commentedon Jun 9, 2026
/claim
github-actions commentedon Jun 9, 2026
@vybe This issue is already assigned to vybe. Use
/unclaimfirst if you want to take over.feat(ui): Agent Detail Overview dashboard as default tab + Info redes…
docs(user-docs): sync to post-v0.6.0 platform state
3 remaining items
test(db/schedules): edge cases + Hypothesis properties for analytics …
test(db/schedules): edge cases + Hypothesis properties for analytics …
test(db/schedules): edge-case + property coverage for CAS status writ…
feat(eval): behavioral-eval foundation — referee surface + completion…
feat(eval): behavioral-eval foundation — referee surface + completion…
feat(eval): behavioral-eval foundation — referee surface + completion…
docs(screenshots): refresh the numbered set to the current UI and IA (#…
refactor(executions): fold and gap-fill in the db layer, with the sha…
feat(executions): GET /api/executions/timeline — bucketed fleet rollu…
fix(workspace): the agent page built the whole roster to render one a…
fix(workspace): agent page UX — shared chart, live Start-a-chat, name…
fix(workspace): agent page UX — shared chart, live Start-a-chat, name…
fix(analytics): give room turns their own bucket; keep them out of th…
fix(stats): 7d cost sparkline was flat on PostgreSQL — DATE() bucket …