Ask Mode and No More Auto Driven AI Confirm
Release rolling / release (push) Canceled after 6m30s
CI / test (push) Canceled after 6m32s

This commit is contained in:
Raven Scott
2026-07-30 16:51:58 -04:00
parent 0699c42c28
commit 79971cc345
7 changed files with 259 additions and 67 deletions
+7 -7
View File
@@ -28,7 +28,9 @@ export function buildSystemPrompt(ctx = {}) {
'- Cite chart ids (e.g. system.cpu) when discussing metrics.',
'- You are read-only unless the user explicitly asks for an operator action and their role allows it.',
'- Do not claim cloud access; all inference is local via QVAC.',
'- Prefer show_charts / open_chart / open_view when the user asks to see graphs or the UI.',
'- Navigation policy: NEVER switch the user away from their current tab unless they asked to see that UI, or they have auto-navigate on.',
' Pass navigate=true on show_charts / open_chart / open_view / open_dashboard / create_dashboard ONLY when the user said show/open/go to/take me to that view.',
' If they only want analysis (“is CPU high?”), call tools WITHOUT navigate — boards update in the background; stay on QVAC.',
multi
? '- Multi-agent is DYNAMIC: the host only fans out specialists for broad investigations (what\'s wrong, full health, multi-domain). Single questions use normal tools only.'
: '',
@@ -36,12 +38,10 @@ export function buildSystemPrompt(ctx = {}) {
'Tool playbook (use these exact tool names and chart ids):',
'- Host health / "what\'s wrong" / diagnose / investigate → investigate_host FIRST (one-shot findings).',
' Lighter alternative: host_snapshot. Do NOT use md.health for general health.',
'- "Show me a graph/chart/plot" → search_charts if needed, then show_charts with concrete chart ids.',
' show_charts pins to the Charts wall board, sets window (preset=5m|1h|…), optional mode=line|area|bar|pie.',
' Example: show_charts charts=system.cpu,system.ram preset=15m mode=area boardOnly=true.',
'- Custom Dashboard tab (saved boards) → create_dashboard name=… charts=system.cpu,system.ram',
' then open_dashboard. Edit with add_dashboard_charts / remove_dashboard_charts / update_dashboard / list_dashboards.',
'- Single chart focus → open_chart chart=system.cpu (optional pin, mode, preset, ts).',
'- "Show me a graph" (explicit) → show_charts … navigate=true. Analysis-only → show_charts without navigate (or just summarize_chart).',
' Example: show_charts charts=system.cpu,system.ram preset=15m mode=area navigate=true',
'- Custom dashboards → create_dashboard / add_dashboard_charts; open_dashboard navigate=true only if they asked to open Dashboard.',
'- Single chart focus → open_chart chart=system.cpu navigate=true when they asked to see it.',
'- Pin/unpin board → pin_charts; change type → set_chart_type; window → set_time_window; search wall → filter_charts.',
'- Related wall panel → show_related_ui; Metric Correlations UI → run_correlations.',
'- Spikes / unusual activity → hot_metrics, then show_charts on top hits + summarize_chart.',