feat(CORE-001D2B): normalize options cache boundaries

This commit is contained in:
Bu5hm4nn
2026-03-25 19:05:00 +01:00
parent 442a0cd702
commit 5217304624
5 changed files with 566 additions and 21 deletions

View File

@@ -0,0 +1,21 @@
id: CORE-001D2B
title: Options Chain and Expiration Boundary Normalization
status: done
priority: P1
effort: S
depends_on:
- CORE-001D2A
tags:
- core
- decimal
- options
- cache
- provider
summary: Option expirations and options-chain payloads now use explicit cache/provider normalization boundaries with malformed cached payload discard rules.
completed_notes:
- Added named normalization adapters for option expirations and options-chain payloads in `app/services/data_service.py`.
- Cached payload symbol mismatches are discarded instead of being silently reused.
- Malformed cached list-shape payloads are discarded and refreshed rather than being treated as valid empty results.
- Fresh provider payloads are normalized before caching.
- Added focused coverage in `tests/test_options_normalization.py`.
- Validated with focused pytest coverage, `make build`, and a targeted browser-visible `/options` check on `main`.