You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dashboard covers the happy path but is missing the tools a user needs for daily oversight. Trust tier changes, spend tracking, and escalation events are logged to DB but have no viewer. The undo API exists but there's no button. Decisions can only be filtered by domain. For daily use, the user needs to audit, search, undo, and understand what happened — not just see a chronological list.
New page at `/audit` — unified chronological feed of trust tier changes, spend events, escalation triggers, and preference changes. Each entry links to the decision that caused it.
2. Rollback button on executed decisions
"Undo" button on decisions where `rollback_available = true`. Modal with structured undo form. Disabled with tooltip for irreversible actions.
3. Advanced decision filtering
Date range, urgency, situation type, status, text search, sort options.
4. Decision detail page
Deep-linkable `/decisions/:id` with full explanation, candidate actions, execution result, feedback history, rollback button.
5. Skill gap visibility
Section on dashboard showing skills the twin wanted but couldn't use.
Acceptance Criteria
Navigate to `/audit` → page loads with chronological feed of events from `trust_tier_audit`, `spend_tracking`, and `preference_history` tables
Audit feed shows at least 3 event types with distinct visual indicators: tier change (shield icon or similar), spend event (dollar), preference learned (brain/lightbulb)
Each audit entry includes timestamp, human-readable description, and clickable link to related decision (link resolves to `/decisions/:id`)
Audit page supports filtering by event type (checkboxes for tier/spend/preference) and date range
Decision card with `rollback_available: true` shows enabled "Undo" button
Decision card with `rollback_available: false` shows disabled "Undo" button with tooltip "This action can't be undone"
Click "Undo" → modal opens with 4 fields: what went wrong (required text), severity (dropdown: minor/moderate/severe), which step (optional text), preferred alternative (optional text)
Submit undo form → `POST /api/feedback` called with `type: "undo"` and `undoReasoning` → success toast: "Action reversed. I'll remember this for next time." → button changes to "Undone"
Filter decisions by date range → only decisions within range shown → result count displayed
Filter decisions by situation type → dropdown shows all situation types present in data → results update immediately
Filter decisions by status (auto-executed / approved / rejected / expired / pending) → results correct
Text search across decision summaries → results highlight matching text → empty search returns all
Navigate to `/decisions/:id` directly via URL → full detail page loads with explanation, candidates, execution result, feedback history
Decision detail page shows all candidate actions that were considered with their risk assessments, not just the selected one
Skill gap section on dashboard shows "Skills I wish I had" with action type, adapter, and frequency count — or "No skill gaps detected" if empty
During implementation, maintain two sources of truth to survive context compaction:
Local context file: Write progress, decisions, and blockers to .context/issue-10-dashboard.md (gitignored). Update this file after each meaningful step. On compaction, re-read this file to restore state.
Context
The dashboard covers the happy path but is missing the tools a user needs for daily oversight. Trust tier changes, spend tracking, and escalation events are logged to DB but have no viewer. The undo API exists but there's no button. Decisions can only be filtered by domain. For daily use, the user needs to audit, search, undo, and understand what happened — not just see a chronological list.
Claude Code estimate: ~3-4h
Current State (verified 2026-04-04)
Proposed Change
1. Audit timeline page
New page at `/audit` — unified chronological feed of trust tier changes, spend events, escalation triggers, and preference changes. Each entry links to the decision that caused it.
2. Rollback button on executed decisions
"Undo" button on decisions where `rollback_available = true`. Modal with structured undo form. Disabled with tooltip for irreversible actions.
3. Advanced decision filtering
Date range, urgency, situation type, status, text search, sort options.
4. Decision detail page
Deep-linkable `/decisions/:id` with full explanation, candidate actions, execution result, feedback history, rollback button.
5. Skill gap visibility
Section on dashboard showing skills the twin wanted but couldn't use.
Acceptance Criteria
Testing Plan
Files Reference
Out of Scope
Related
Working Context Protocol
During implementation, maintain two sources of truth to survive context compaction:
.context/issue-10-dashboard.md(gitignored). Update this file after each meaningful step. On compaction, re-read this file to restore state.This ensures no quality loss across compaction events — the local file has granular state, the GitHub issue has durable history.