# Context Check — Before Answering Questions About the Project

When the user asks about project state, architecture, scraper, or deployment:

## 1. Check ALL Project Layers

Don't look only at `app/` source. The project has multiple services:

| Layer | Path | Purpose |
|-------|------|---------|
| Android app | `app/` | Kotlin/Compose TV app |
| Scraper service | `services/nexstream-scraper/` | Node.js Stremio addon, port 3091 — aggregates Torrentio + Comet + MediaFusion + Jackett + Zilean |
| Config worker | `services/addon-config-worker/` | Cloudflare Worker — addon config, debrid auth, QR pairing |

## 2. Check Running State

```bash
# Is the scraper deployed and running?
docker ps --filter name=nexstream-scraper
curl -s --max-time 5 http://192.168.1.50:3091/health

# Are there other relevant containers?
docker ps

# Recent git activity
cd ~/Unspooled && git log --oneline -10 && git status --short
```

## 3. Know What's Coded vs. Deployed

The `nexstream-scraper` code is complete but **not deployed** (no Docker image, no container running). Code is not the same as running service.

## 4. Don't Confuse Legacy with Current

- **`DefaultAddonScrapers` (Kotlin)** — empty, superseded. This is the OLD scraper framework.
- **`nexstream-scraper` (Node.js)** — the ACTUAL scraper. This is the CURRENT implementation.
- **Old `*Provider.kt` files** (CometProvider, MediaFusionProvider, TorrentioProvider) — deleted from app source.

## 5. Know the Retired Addons

The following addon IDs are in `REMOVED_SYSTEM_IDS` (purged from Room on startup, not auto-installed as system addons):
- `torrentio`, `comet`, `mediafusion`, `jackettio`, `knightcrawler`, `annatar`

These are proxied server-side through nexstream-scraper. They can still be installed manually via "Add Addon by URL" but are NOT system addons anymore.

The only system stream addon is `nexstream_scraper` (priority 15, enabled by default).
