Skip to content

fix(markets): stabilize sector valuation coverage - #6183

Open
koala73 wants to merge 1 commit into
mainfrom
fix/sector-valuations-5903
Open

fix(markets): stabilize sector valuation coverage#6183
koala73 wants to merge 1 commit into
mainfrom
fix/sector-valuations-5903

Conversation

@koala73

@koala73 koala73 commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes #5903.

  • Add a bounded authenticated Yahoo v7 batch fallback for symbols omitted by individual responses. The local authenticated batch probe returned all 12 sector valuations, including XLK, XLV, XLY, and SMH.
  • Persist complete core valuation snapshots even when v7 return metrics are null, and reuse missing symbols only as explicit stale last-good records.
  • Publish current valuation count and stale-symbol provenance separately; MCP filtering preserves partial status and current counts.
  • Keep direct/proxy/field-level diagnostics and truthful SECTOR_VALUATIONS_PARTIAL semantics when stale data is used.

Verification

  • Focused Yahoo/sector/MCP tests: 85 passed.
  • Health classification/verdict/history tests: 123 passed.
  • npm run typecheck: passed.
  • npm run typecheck:api: passed.
  • npm run test:data: passed.
  • Pre-push gates: passed.

Production was still reporting 8/12 before this branch was deployed. After merge/deploy, verify two consecutive five-minute production cycles at 12/12 with sourceStatus: ok before closing the issue.

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Ready Ready Preview Aug 4, 2026 8:35pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(markets): restore sector valuation enrichment after Yahoo 401s

1 participant