fix (ornith-35): watchlistRepository double-encoding bug — single JSON.stringify, 13/13 tests pass

This commit is contained in:
Investor Flow Build
2026-06-30 17:54:01 -04:00
parent 97607e0bd4
commit 1007ab4ed5
62 changed files with 11617 additions and 34 deletions
@@ -0,0 +1,12 @@
# ADR-0004: Shared market cache with multi-tenant fetch dedupe
Date: 2026-06-27
Status: Accepted
## Decision
Public market data (price, filings, ownership snapshots) is shared across all users. The adapter queue dedupes concurrent cache-misses from multiple users into a single fetch.
## Consequences
- Rare public-data fetches; private user data isolated by ownerId.
- Staleness windows per data class (live quote 1min, daily OHLCV permanent, filings immutable forever, 13F per-quarter immutable).
- Report runner reconstructs from cache only; no live calls.