Reference Observability & evals

Observability, Evals & Auto-Tune

Language: English · 简体中文

CrewDesk records structured execution telemetry for every Agent Run without polluting the canonical conversation_ledger — then pairs attention-first anomaly compression with an AI-native evaluation and Auto-Tune loop.

Observability Dashboard (/system) — Zero-Log Attention Management

Observability Dashboard

Open System → Observability to monitor team health without scanning raw logs:

  • AI Health Brief: compresses the selected telemetry window into the Top 1–3 actionable anomalies (spinning runs, repeated failure causes, high-error tools, or routing quality signals) with one-click Ask PA to diagnose / tune — healthy windows collapse to a single green summary line.
  • Active Latency & Real Signals: tracks active run latency with human HITL wait stripped out, Prompt Cache Hit Rate, TTFT (p50 / p95), Quality Signals (unasked, unrouted, corrected), 7-Day Success Rate, and 24h Token Activity (toggleable raw charts).
  • Scope & Filters: isolate Production runs from Eval runs (scope=production|eval|all), filter by member, model, or time window (1h / 24h / 7d / 30d).
  • Run Trace Tree & Root-Cause Diagnosis (/system/runs/<runId>): inspect recursive parent/child dispatch trees, tool latencies, and run one-click heuristic + AI diagnosis (run_diagnose) to pinpoint why a run spun, errored, or drifted.
  • Honest Token & Cost Accounting: tracks inputTokens, outputTokens, cacheReadTokens, and cacheWriteTokens; custom or unpriced models display — rather than misleading $0.0000.

Functional Evals & Auto-Tune (/system/evals)

Functional Evals

Open System → Evals to close the self-improving AI-native engineering loop over Git-versioned <dataDir>/evals/*.eval.json suites:

  • Visual Suite Builder & 3-Layer Graders: target a Member, Skill, or Workflow with deterministic graders (tool_called, tool_forbidden, skill_activated, workflow_outcome, output_match, command_check) and rubric-based llm_judge.
  • Tool Sandbox Interception & mockAnswers: eval runs intercept mutating tools cleanly so production state is never touched, and simulate multi-turn human replies to ask_question via case fixture.mockAnswers.
  • Experiment Pass-Rate Trend & P95 Latency Charts: track pass-rate gains (e.g. 63% → 88% → 100%) and p95 latency across model, prompt, and reasoning-effort knob experiments, and compare any two runs side-by-side in A/B Diff.
  • Auto-Tune Proposals & Regression Gate: invoke eval_auto_tune (or click Tune & rerun) so the AI Knob Advisor proposes concrete prompt/model/effort changes as a Proposal Card (Propose ≠ Save), guarded by the Proposal Eval Regression Gate before you adopt it.

PA Product Tools for Evals & Diagnostics

Your PA can operate the entire diagnostics and evaluation loop directly from chat via Product MCP:

  • run_diagnose — diagnose a failing, slow, or spinning production run.
  • eval_list / eval_inspect / eval_run / eval_diff — inspect suites, launch experiments, and compare baseline vs. candidate runs.
  • eval_case_add — promote a real production failure or Rewind/Replay experiment into a versioned regression case.
  • eval_auto_tune — propose knob/prompt improvements backed by regression verification.

Authority & Settings (/system/authority, /system/settings)

  • Authority (/system/authority): review active permission boundaries, escalated actions, and approval history across all teammates.
  • Settings (/system/settings): manage provider API keys (masked on read), default model configurations, and Web console login password rotation.