Skip to content

Monte Carlo candles: log failed scenarios to the session - #649

Merged
saleh-mir merged 1 commit into
masterfrom
fix/mc-candles-log-failed-scenarios
Nov 6, 2026
Merged

saleh-mir merged 1 commit into
masterfrom
fix/mc-candles-log-failed-scenarios

Conversation

@saleh-mir

Copy link
Copy Markdown
Member

Scenario errors only reached the session log when the global app mode and session id matched, so dashboard and MCP sessions dropped them silently and the percentiles were computed on the survivors with no trace of the failures. The runner now passes a log callback bound to its session, logs a summary of failed and filtered scenarios, and the result reports both counts.

Fixes the second part of #630 (the bootstrap part is #631). Test: tests/test_monte_carlo_failed_scenarios.py.

🤖 Generated with Claude Code

Scenario errors only reached the session log when the global app mode and
session id matched, so dashboard and MCP sessions dropped them silently, and
the percentiles were computed on the survivors with no trace of the failures.
The runner now passes a log callback bound to its session, logs a summary of
failed and filtered scenarios, and the result reports both counts.
Refs #630.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@saleh-mir
saleh-mir force-pushed the fix/mc-candles-log-failed-scenarios branch from 772748e to 9e6123b Compare November 6, 2026 18:43
@saleh-mir
saleh-mir merged commit c7bbb18 into master Nov 6, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant