TradingAgents/docs/agent/decisions
ahmet guzererler c1194b7f77
feat: Fast-Reject [CRITICAL ABORT] short-circuit mechanism (#128)
* chore: initial commit for feat/fast-reject-short-circuits branch

* test: fix fast-reject unit tests (25/25 passing)

- Fix test_normal_flow_without_abort: expected 'Bull Researcher' not
  'Bear Researcher' — when current_response is empty the conditional
  logic routes to Bull first (conditional_logic.py line 74)
- Analyst abort-instruction tests: replace closure-attribute hacks
  (market_analyst.llm = ...) with patch() on prefetch_tools_parallel
  and run_tool_loop so the tests run without network access
- Fix co_consts substring check: system_message is compiled into one
  large string constant, so use any(...in str(c)...) instead of direct
  tuple membership
- PM tests: create mock_llm before create_portfolio_manager so the
  closure captures it and mock_llm.invoke.called assertions work; add
  missing company_of_interest key to all state dicts
- Integration tests: merge analyst/PM node outputs back into state
  ({**state, **result}) instead of replacing it, preserving keys like
  fundamentals_report and investment_debate_state; patch network calls;
  fix normal-flow routing assertions to != 'Portfolio Manager' since
  the exact next node depends on transient debate state
2026-03-27 00:19:43 +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
012-portfolio-no-orm.md docs: ADR-012 — raw supabase-py over Prisma/SQLAlchemy for portfolio data layer 2026-03-20 10:48:40 +00:00
013-agentos-websocket-streaming.md feat: finalise storage layout, run history loading & phase-level re-run (#121) 2026-03-26 11:12:16 +01:00
014-finviz-smart-money-scanner.md feat(scanner): Finviz smart money scanner + Golden Overlap strategy 2026-03-24 16:03:17 +01:00
015-mongodb-report-store-reflexion.md feat: finalise storage layout, run history loading & phase-level re-run (#121) 2026-03-26 11:12:16 +01:00
016-pr106-review-findings.md fix: graceful LLM 404 handling + per-tier fallback model config (#108) 2026-03-25 11:19:08 +01:00
017-llm-policy-fallback.md fix: graceful LLM 404 handling + per-tier fallback model config (#108) 2026-03-25 11:19:08 +01:00
018-storage-events-checkpoints.md feat: finalise storage layout, run history loading & phase-level re-run (#121) 2026-03-26 11:12:16 +01:00
019-fast-reject-short-circuits.md feat: Fast-Reject [CRITICAL ABORT] short-circuit mechanism (#128) 2026-03-27 00:19:43 +01:00