Skip to content

feat(personal-analytics): add incremental reports and Agent insights - #106

Merged
diodeme merged 11 commits into
mainfrom
feature_personal_data_stat
Aug 30, 2026
Merged

diodeme merged 11 commits into
mainfrom
feature_personal_data_stat

Conversation

@Kevin4234

Copy link
Copy Markdown
Collaborator

Summary

Add a Personal Analytics experience backed by a rebuildable incremental SQLite index over canonical task, run, attempt, and usage data.

What Changed

  • Add the Personal Analytics page, navigation, responsive report layout, and task drill-down.
  • Support inclusive local-date range queries without rescanning the full task history.
  • Add deterministic metrics for:
    • Direct reply completion
    • Workflow terminal success
    • AUTO outer-run terminal success
    • Retries and recovery
    • Duration, tokens, tools, agents, permissions, skills, and data coverage
  • Correct attempt identity, AUTO child/outer classification, date-scoped task activity, history bounds, deduplication, and aggregation.
  • Add bounded semantic sampling and optional Agent-generated insights.
  • Add bilingual Agent prompts under src/prompts/zh-CN and src/prompts/en.
  • Update the product design and development plan documentation.

Data Integrity and Lifecycle

  • Keep canonical task/run/attempt data as the source of truth; the SQLite analytics index remains rebuildable.
  • Add a durable AgentInsightOperation lifecycle with revision and generation ordering.
  • Handle cancellation, stale responses, repair retries, completed-cache recovery, and restart recovery.
  • Share ACP lifecycle ownership to prevent late or concurrent responses from corrupting report state.

UI

  • Add loading, error, empty, cancelled, and refresh states.
  • Add task navigation and a compact layout for desktop and narrow windows.
  • Add browser mock support and localized UI text.

Testing

  • cargo check -p gold-band -p gold-band-desktop
  • Personal analytics Rust integration tests: 18 passed, 2 ignored local-history baselines
  • Desktop analytics lifecycle tests: 14 passed
  • ACP lifecycle unit tests: 101 passed
  • Focused frontend tests: 54 passed
  • TypeScript check passed
  • Production Vite build passed
  • git diff --check passed
  • Verified /chat/personal-analytics at 1280×720 and 720×900 with no horizontal overflow, control overlap, or browser console errors

Known Baseline Issue

The full frontend suite reports 10 failures in existing Markdown/GFM editor tests. The affected implementation, tests, and dependency manifests are unchanged from origin/main; 1,592 other tests pass.

Kevin4234 and others added 11 commits August 19, 2026 14:34
Add an 8-table SQLite analytics index with atomic incremental sync, deterministic range reporting, native navigation/filtering, and an independent Agent insight lifecycle.
Unify Agent insight operations around durable JSON state and completed-cache recovery. Correct scoped task activity, canonical attempt identities, and mode-specific terminal metrics. Reject stale report and operation responses in the frontend.
Preserve the personal analytics route and API integration while adopting the latest ACP session convergence changes. Admit analytics Agent attempts through the shared durable ACP lifecycle owner contract.
# Conflicts:
#	web/src/api/desktop.ts
#	web/src/components/Shell.tsx
@diodeme
diodeme merged commit 0dffc1b into main Aug 30, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants