Companies skipped by enrichment keep stale tickers and prices #44

Open
opened 2026-11-06 05:26:54 +00:00 by chris-kreidl · 0 comments
chris-kreidl commented 2026-11-06 05:26:54 +00:00 (Migrated from github.com)

🤖 Claude: Found while measuring the fallback rate for #40.

enrich-prices.ts only prices companies that pass isEligibleForPricing (fresh 10-K, EBIT > 0). Companies that fail are skipped entirely, so their ticker, price, liveMarketCap, sector and industry keep whatever an earlier run wrote.

Example after the 2026-11-06 enrichment: HPE (CIK 1645590, EBIT −$437M) still has ticker = HPE-PC at $128.09, a preferred ticker and price from before #39. primaryTickers maps it to HPE correctly today; the row just wasn't touched. Same for F (F-PD), BAC (BAC-PS), WFC (WFC-PA) and MS (MS-PQ).

Impact: the ranking is not affected, because these rows fail isEligible anyway. But anyone reading company_facts.db directly sees stale tickers and prices with no way to tell they're stale. It also inflated my first fallback count for #40 (254 rows vs 21 actually priced this run).

Expected: after enrichment, every row's price columns reflect this run: priced, or cleared. The run already clears rows with no ticker mapping (#5); skipped rows could be cleared the same way.

🤖 **Claude:** Found while measuring the fallback rate for #40. `enrich-prices.ts` only prices companies that pass `isEligibleForPricing` (fresh 10-K, EBIT > 0). Companies that fail are skipped entirely, so their `ticker`, `price`, `liveMarketCap`, `sector` and `industry` keep whatever an earlier run wrote. Example after the 2026-11-06 enrichment: HPE (CIK 1645590, EBIT −$437M) still has `ticker = HPE-PC` at $128.09, a preferred ticker and price from before #39. `primaryTickers` maps it to `HPE` correctly today; the row just wasn't touched. Same for F (`F-PD`), BAC (`BAC-PS`), WFC (`WFC-PA`) and MS (`MS-PQ`). **Impact:** the ranking is not affected, because these rows fail `isEligible` anyway. But anyone reading `company_facts.db` directly sees stale tickers and prices with no way to tell they're stale. It also inflated my first fallback count for #40 (254 rows vs 21 actually priced this run). **Expected:** after enrichment, every row's price columns reflect this run: priced, or cleared. The run already clears rows with no ticker mapping (#5); skipped rows could be cleared the same way.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/screener#44
No description provided.