# 2026-02-03 Session Notes

## Symph Agency UI Improvements

### Performance Fix: Redundant Polling
- **Problem:** 134 requests piling up - sidebar polling every 5s, phase page with multiple overlapping intervals
- **Solution:**
  - Sidebar: 5s → 30s polling
  - Dashboard: 5s → 30s polling  
  - Phase page: Poll only when SSE disconnected, 15s interval
  - Batched artifact HTML fetching (single request instead of 5 separate)
  - API updated: `/api/products/[slug]/[phase]/artifact-html?files=brief.html,competitors.html,...`

### UI Enhancement: Floating Navigation
- Removed `maxHeight: 600px` from iframe cards (no more internal scrollbars)
- Added floating nav on right side (xl screens) to jump between cards
- Cards now expand to full content height
- Smooth scroll with anchor IDs (`#card-brief`, `#card-competitors`, etc.)

### Auto-Complete Detection
- **Problem:** Subagents generate artifacts but sometimes don't update workflow.json
- **Solution:** Added auto-detection in `workspace.ts`:
  - When loading a phase, checks if all required HTMLs exist
  - If yes but status is "in-progress", auto-updates to "complete"
  - Self-healing - no more stuck statuses

## Discord Notifications Routing
- **#aria channel:** 1467744183803580548 — for notifications (job completions, alerts)
- **DM with Raven:** Discussion and direct requests only
- Updated TOOLS.md with channel routing

## GitHub Token Updated
- New PAT for symphco org (old one had lifetime >366 days, blocked by org policy)
- Set reminder for January 3, 2027 (1 week before expiry)
- Org: `symphco` (not symphdevtools for repos)
- Repo creation: `gh repo create symphco/<name> --private`

## Products Created Today
- **KYB Compliance Hub** — Full discovery + design complete
  - Blue ocean opportunity: business-side compliance (vs provider-side like Onfido/Middesk)
  - $15.8B market, SMB pricing ($99-299/mo vs $10K+)
  - 10-week MVP, 42 user stories
  - 9 screens designed

## Service Management Note
- Next.js process often gets stuck in "deactivating" state
- Fix: `sudo pkill -9 -f "next-server"` then `sudo systemctl start symph-agency`
- Or: `sudo kill -9 <PID>` from `systemctl status`

## API Issues
- Anthropic API returned 500 errors during subagent spawns (intermittent)
- Workaround: Run pipelines directly in main session when subagents fail
