Closes #023-warn - Implement PEAD fallback transparency warning badge

This commit is contained in:
Antigravity Agent
2026-06-14 16:05:06 +02:00
parent 8ffe8de06a
commit 776a41f159
5 changed files with 88 additions and 12 deletions

View File

@@ -136,3 +136,33 @@ Indicators in the cockpit cards use HSL-tailored status lights (Emerald-Green, A
}
}
```
### PEAD Drift Radar API Response Schema (`/api/scanner`)
```json
{
"results": [
{
"ticker": "NVDA",
"name": "NVIDIA Corporation",
"peadSector": "Technology",
"announcementDate": "2026-05-20",
"daysElapsed": 25,
"epsActual": 6.12,
"epsConsensus": 5.58,
"surprisePercent": 9.68,
"driftStatus": "Active Drift",
"isLiveApi": true
}
],
"isShieldActive": false
}
```
---
## 4. Fallback Protection & Operational Transparency Levels
The workstation enforces zero silent caching or historical data ingestion:
* **PEAD Drift Radar**: Uses a dynamic state flag `isLivePeadApi` to toggle status rendering.
* *Green Badge (`🟢 LIVE EPS FEED`)*: FMP API endpoint responded with real-world quarterly reports (`isLiveApi: true`).
* *Amber Badge (`⚠️ ARCHIV-DATEN (API OFFLINE)`)*: Live API timeout, failure, or developer shield fallback active (`isLiveApi: false`).