# Phase 2: Opportunity and Stale Winner hunting

Goal: turn the shortlist into at most 8 ranked candidates, each with a score you can explain in one line.

## 1. Score every chart

Call `app_tracker_opportunities` once per chart in scope (`min_score: 0`, so you see the whole spread).
The call scans all 100 chart entries and deep-reads the top 8 by quick score: IAP tiers, the 1 to 5 star rating split and, on Google Play, exact installs.
`deep: true` on an entry means those facts were read; on other entries `oneStarShare` and `estimate` may be null.

Add shortlisted apps from search that are not on a chart with `app_tracker_lookup`; its `score` uses no chart rank, so demand rests on rating volume alone.

## 2. How the score works

**Demand** (0 to 1) is the mean of two parts:

- chart position: rank 1 is 1.00, rank 100 is 0.01, no rank is 0.30;
- rating volume on a log scale: about 30 ratings is 0, about 1 million is 1.

**Weakness** (0 to 1) combines three signals like independent odds, so one strong signal is enough:

| Signal | Flag | None at | Full at |
| --- | --- | --- | --- |
| Rating gap | `low_rating` (under 4.2) | 4.2 | 3.0 |
| No update | `stale` (over 180 days) | 90 days | 365 days (half at 180) |
| 1-star share | `one_star_heavy` (15 percent or more) | 8 percent | 25 percent |

weakness = 1 - (1 - rating gap) x (1 - staleness) x (1 - 1-star share)

**Score** = round(100 x sqrt(demand x weakness)). An app needs both demand and weakness to score.

| Score | Meaning |
| --- | --- |
| 75 to 100 | High opportunity; carry to Phase 3 first |
| 60 to 74 | Worth a teardown; say it is below the high bar |
| under 60 | Not a candidate unless the user asks for a wide net |

`reasons` gives the score in words (rank, rating count, each flag); quote it instead of rewriting it.

## 3. Estimates

**Downloads per month.**
App Store: new ratings per day times 30 to 50 downloads per rating.
`velocitySource: "snapshot"` means the rate came from two snapshots; `"lifetime"` means lifetime ratings over app age, which understates fast-growing apps; `"installs"` means Google Play's install count over app age, the only source for Play apps.
Google Play: exact lifetime installs over app age, plus or minus 30 percent.

**MRR.**
Low case: 1.5 percent of monthly downloads pay the median subscription price per month for 3.5 months.
High case: 3.5 percent pay for 4.5 months.
Paid apps without IAP use downloads times price. `mrr` is null when there is no price to read.

Always write both ends and the word estimate: "about 6,500 to 10,800 downloads a month and 1,400 to 7,100 USD MRR (estimate)".

## 4. Rank and cut

1. Sort by score, high first.
2. Remove apps from platform owners and household brands (the store owner, a large bank, a carrier, a funded AI lab): their weakness is rarely open to a small team. Keep them as `rejected` with reason `incumbent_strong` so the next run does not hunt them again.
3. Prefer, at equal score, the app whose weakness is `stale` or a fixable complaint over one whose weakness is only a low rating.
4. Keep at most 8.

## Pitfalls

- A new app with few ratings can score on rank alone; check `ratingCount` before you believe the demand.
- A rating can drop for a week after a bad release. If `daysSinceUpdate` is small and the rating gap is the only flag, Phase 3 must check whether the complaints are about that one release.
- Scores differ by country; a score from `us` says nothing about `de`.
