2.6 KiB
2.6 KiB
Current Milestone
Smart Money Scanner added to scanner pipeline (Phase 1b). MongoDB report store + run-ID namespacing + reflexion memory added. PR#106 review findings addressed (ADR 016). 18 agent factories. All tests passing (886 passed, 14 skipped).
Recent Progress
- PR#106 review fixes (ADR 016):
- Fix 1:
save_holding_reviewiteration — was passingportfolio_idas ticker; now iterates per ticker - Fix 2:
contextvars.ContextVarreplacesthreading.localfor RunLogger — async-safe - Fix 3:
list_pm_decisions— added{"_id": 0}projection to exclude non-serializable ObjectId - Fix 4:
ReflexionMemory.created_at— nativedatetimefor MongoDB, ISO string for local JSON fallback - Fix 5:
write/read_latest_pointer— acceptsbase_dirparameter;ReportStorepasses its_base_dir - Fix 6:
RunLogger.callback— wired into all 3astream_events()calls (scan, pipeline, portfolio) - Fix 7:
MongoReportStore.__init__— callsensure_indexes()automatically docs/agent/decisions/016-pr106-review-findings.md— full writeup of all 13 findings and resolutions- Tests: 14 new tests covering all 7 fixes
- Fix 1:
- MongoDB Report Store + Run-ID + Reflexion (current branch):
tradingagents/report_paths.py— All path helpers accept optionalrun_idfor run-scoped directories;latest.jsonpointer mechanismtradingagents/portfolio/report_store.py—ReportStoresupportsrun_id+latest.jsonpointer for read resolutiontradingagents/portfolio/mongo_report_store.py— MongoDB-backed report store (same interface as filesystem)tradingagents/portfolio/store_factory.py— Factory returns MongoDB or filesystem store based on configtradingagents/memory/reflexion.py— Reflexion memory: store decisions, record outcomes, build context for agent promptsagent_os/backend/services/langgraph_engine.py— Uses store factory + run_id for all run methods; fixed run_portfolio directory iteration for run-scoped layoutstradingagents/default_config.py— Addedmongo_uriandmongo_dbconfig keyspyproject.toml— Addedpymongo>=4.12.1dependency- Tests: 56 new tests (report_paths, report_store run_id, mongo store, reflexion, factory)
docs/agent/decisions/015-mongodb-report-store-reflexion.md— ADR documenting all design decisions
- Smart Money Scanner: 4th scanner node added to macro pipeline
- AgentOS: Full-stack visual observability layer (FastAPI + React + ReactFlow)
- Portfolio Manager: Phases 1–10 fully implemented
In Progress
- None — branch ready for PR
Active Blockers
- None currently