High/Medium priority fixes:
- FIX-1: RAG session isolation — session-scoped embeddings.json, no cross-session collisions
- FIX-2: SessionManager.active_sessions_with_positions() + registry.json + monitor loop fix
- FIX-3: parse_proposals_block() in routing.py; QuantStrategist structured JSON proposals; _parse_proposal_block removed
- FIX-4: version 4.4.0 in __init__.py, pyproject.toml, app.py, /health response
- FIX-5: _fetch_ohlcv_yfinance returns None on failure; DataFetcher routes @human on all-OHLCV-fail; yfinance_alert in state_patch
- FIX-6: module docstrings in agent/__init__.py and agents/__init__.py; README Two Execution Models section
- FIX-7: POLYHEDRA_ENABLE_RESEARCH env var gates research agent imports
- FIX-8: _is_valid_ticker() replaces _SKIP_TOKENS; POLYHEDRA_VALID_TICKERS env var
Structural improvements:
- STRUCT-1: CoordinatorService decomposed into AgentRouter, TemplateBuilder, StatePatcher, CostGate
- STRUCT-2: Typed AgentOutput Pydantic models for all 7 quant agen…
fix: break circular import between core and agents packages
yf176
0e9ad48
core/__init__ was eagerly importing MentionParser, which imported
agents.base, which triggered agents/__init__, which imported
CoordinatorAgent, which imported MentionParser again → circular.
Fix: remove MentionParser from core/__init__ and CoordinatorAgent
from agents/__init__. Both are only ever imported via direct module
path (polyhedra.core.mention_parser / polyhedra.agents.coordinator)
so the package-level re-exports were unnecessary.