Companies skipped by enrichment keep stale tickers and prices #44
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
epic:E1-foundation
epic:E2-correct-metrics
epic:E3-fast-jobs
epic:E4-cli
epic:E5-web-ui
epic:E6-history
good first issue
help wanted
invalid
question
sprint-tracking
story
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/screener#44
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🤖 Claude: Found while measuring the fallback rate for #40.
enrich-prices.tsonly prices companies that passisEligibleForPricing(fresh 10-K, EBIT > 0). Companies that fail are skipped entirely, so theirticker,price,liveMarketCap,sectorandindustrykeep whatever an earlier run wrote.Example after the 2026-11-06 enrichment: HPE (CIK 1645590, EBIT −$437M) still has
ticker = HPE-PCat $128.09, a preferred ticker and price from before #39.primaryTickersmaps it toHPEcorrectly 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
isEligibleanyway. But anyone readingcompany_facts.dbdirectly 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.