feat(graph): settle past decisions alongside the analysts (#1428)

- a Memory Log step runs beside the analysts, settles every ticker's due decisions and loads the lessons known by the trade date for the Portfolio Manager; the run no longer settles before it starts
- a settlement failure is logged and noted in the report's header instead of ending the run
- the checkpoint signature records the new layout
This commit is contained in:
Yijia-Xiao
2026-10-03 21:27:43 +00:00
parent 5d8de36f6d
commit f65fcabb60
9 changed files with 158 additions and 43 deletions
+3 -2
View File
@@ -211,8 +211,9 @@ def run_analysis(checkpoint: bool | None = None, portfolio=None, flags=None):
)
update_display(layout, spinner_text, stats_handler=stats_handler, start_time=start_time)
# The same initial state propagate() builds: settled memory log, past
# context and resolved instrument identity.
# The same initial state propagate() builds, with the resolved
# instrument identity; the graph's Memory Log step settles past
# decisions and loads their lessons alongside the analysts.
init_agent_state = graph.create_run_state(
selections["ticker"], selections["analysis_date"], selections["asset_type"], portfolio
)