TradingAgents/docs/agent/decisions
ahmet guzererler fa8a0d56fb
feat: opt-in vendor fallback — fail-fast by default (#18)
* feat: add extract_json() utility for robust LLM JSON parsing

Handles DeepSeek R1 <think> blocks, markdown code fences, and
preamble/postamble text that LLMs wrap around JSON output.
Applied to macro_synthesis, macro_bridge, and CLI scan output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: opt-in vendor fallback — fail-fast by default (ADR 011)

Silent cross-vendor fallback corrupts signal quality when data contracts
differ (e.g., AV news has sentiment scores yfinance lacks). Only methods
with fungible data contracts (OHLCV, indices, sector/industry perf,
market movers) now get fallback. All others raise immediately.

- Add FALLBACK_ALLOWED whitelist to interface.py
- Rewrite route_to_vendor() with fail-fast/fallback branching
- Improve error messages with method name, vendors tried, and exception chaining
- Add 11 new tests in test_vendor_failfast.py
- Update ADRs 002 (superseded), 008, 010; create ADR 011

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 14:25:38 +01:00
..
.gitkeep feat: add agentic memory scaffold and migrate tracking files to docs/agent/ 2026-03-17 17:14:11 +01:00
001-hybrid-llm-setup.md feat: add agentic memory scaffold and migrate tracking files to docs/agent/ 2026-03-17 17:14:11 +01:00
002-data-vendor-fallback.md feat: opt-in vendor fallback — fail-fast by default (#18) 2026-03-18 14:25:38 +01:00
003-yfinance-etf-proxies.md feat: add agentic memory scaffold and migrate tracking files to docs/agent/ 2026-03-17 17:14:11 +01:00
004-inline-tool-execution.md feat: add agentic memory scaffold and migrate tracking files to docs/agent/ 2026-03-17 17:14:11 +01:00
005-langgraph-parallel-reducers.md feat: add agentic memory scaffold and migrate tracking files to docs/agent/ 2026-03-17 17:14:11 +01:00
006-env-var-config-overrides.md feat: add agentic memory scaffold and migrate tracking files to docs/agent/ 2026-03-17 17:14:11 +01:00
007-thread-safe-rate-limiter.md feat: add agentic memory scaffold and migrate tracking files to docs/agent/ 2026-03-17 17:14:11 +01:00
008-lessons-learned.md feat: opt-in vendor fallback — fail-fast by default (#18) 2026-03-18 14:25:38 +01:00
009-industry-deep-dive-quality.md docs: update memory files after PR #13 (Industry Deep Dive quality fix) 2026-03-17 20:20:39 +01:00
010-finnhub-vendor-integration.md feat: opt-in vendor fallback — fail-fast by default (#18) 2026-03-18 14:25:38 +01:00
011-opt-in-vendor-fallback.md feat: opt-in vendor fallback — fail-fast by default (#18) 2026-03-18 14:25:38 +01:00