"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
Merge branch 'main' into feat/email-websocket-web-config
shadowinlifec67af9075232
diff --cc CHANGELOG.mdindex 69c1afb55,e8b94b37a..609e50350--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -161,27 -163,21 +189,42 @@@ This project adheres to [Semantic Versi### Fixed+- **The Email channel verifies TLS certificates by default** (a follow-up+ to #1544). The implicit-SSL paths (`IMAP4_SSL` / `SMTP_SSL`) in both the+ connection probe and the polling/send adapter used Python's default+ unverified context (`CERT_NONE`, no hostname check), so the mailbox+ password travelled to a server whose certificate was never checked — an+ active network attacker between the operator and their mail provider could+ harvest it. All four call sites now build their context through a shared+ `email_tls_context()` that verifies the certificate and hostname against+ the system CA bundle, matching the STARTTLS path, which already did. A new+ `verify_tls` field (default `true`, surfaced in the guided Email setup in+ all nine locales) is the documented opt-out for self-signed or internal-CA+ servers.+- **Settings-write routes reject cross-site browser requests** (a follow-up+ to #1544). `require_settings_write_auth` did not apply the cross-site guard+ that its siblings `require_auth` and `require_event_stream_auth` enforce on+ unsafe methods, so a malicious web page could attempt a CSRF write against+ any settings route — including the new `POST /channels/email/test`, which+ merges stored credentials with a caller-supplied patch and could be steered+ to send the stored mailbox password to an attacker-chosen host. The guard+ now runs first on every settings-write route; same-origin Web UI calls and+ non-browser clients (CLI/curl, no `Origin`) are unaffected.+ - **Read-only results lost to context compaction are restored, not refetched**+ (#1488). A successful read-only call whose payload compaction removed is+ replayed from the run's own cache, at most six times a run; past the cap it+ runs again, as it did before, instead of being refused with "use the+ previous result" for a payload the model cannot see. The cap is checked per+ restore, and any successful write empties the cache, so a regenerated file+ is read afresh. `read_url` opts in; `no_cache=true` always fetches.+ - **Tail-risk figures keep their identity under a field ref** (#1444). A+ declared `ref` may name an evidence field by its full path+ (`data.tail_risk.var_95`) or trailing part (`var_95`), or one call's field+ (`q1::historical_var`); a VaR 99% quoting the 95% value, or ES quoting VaR,+ is rejected under such a ref. A field two calls returned with different+ values is ambiguous and the correction names the refs to choose from. A+ claim scoped to a whole call or not declared is still matched against every+ tail-risk value it can see (#1425 stays open).- **A backtest aborted when a funding debit left cash below zero** (#1542).CompositeEngine and CryptoEngine subtract crypto funding from capital withno floor, and the next open then fitted at no scale, not even an empty plan: