Add a deterministic research task lifecycle managed via SQLite, enabling
the agent (via heartbeat) to discover and execute pending research tasks,
and users to create/monitor tasks from both the Mini App and web management UI.
- pkg/research: SQLite store with WAL mode, Task/Document CRUD, status
transition validation (pending→active→completed/failed, reopen support)
- pkg/tools/research: agent tool with list_tasks, get_task, set_status,
add_finding actions; findings written as markdown to research/{slug}/
- pkg/miniapp/api_research: Mini App API endpoints for task management
- web/backend/api/research: management UI API accessing same research.db
- web/frontend: research list page, task detail with document accordion,
sidebar nav item, i18n (en/zh)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>