Skip to content

"Vibe-Trading: Your Personal Trading Agent"

docs(readme): add 2026-08-28 news entry across all six READMEs

Haozhe Wue69626ad7ed3
diff --git a/README.md b/README.md
index fbb271a1d..e7853f326 100644
--- a/README.md
+++ b/README.md
@@ -52,12 +52,13 @@
> ⚠️ **Security warning:** The X account `VibeTrading_HKU`, Virtuals project `101845`, and token contract `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` are not official Vibe-Trading assets. We have never launched or endorsed any token or memecoin. Do not buy, connect a wallet, or sign anything. [Details](SECURITY.md#official-channels--impersonation).
+- **2026-08-28** 📏 **Backtests that crashed, and backtests that quietly graded a year you never asked for**: every cross-market backtest died on v0.1.14 — the runner deliberately passes `bars_per_year=None` for a basket spanning markets, and the new risk x-ray called `math.sqrt` on it. Two more consumers had the same gap; all four now resolve `None` through one shared span-derived factor ([#1239](https://github.com/HKUDS/Vibe-Trading/pull/1239), closes [#1237](https://github.com/HKUDS/Vibe-Trading/issues/1237)). The quieter one: a long-lookback strategy needs bars from *before* the period you asked about, so the agent moved `start_date` back a year to feed MA200 — and then graded that year. A run billed as ten years reported eleven, with the extra year's trades, CAGR and benchmark folded in, nothing raised, and the metrics internally consistent. `warmup_bars` (or `evaluation_start_date`) now separates the data window from the evaluation window: warm-up bars prime the indicators and reach nothing else ([#1240](https://github.com/HKUDS/Vibe-Trading/issues/1240)). **New:** `quantlib` gains Heston (1993) stochastic-volatility pricing, Hierarchical Risk Parity, Gaussian and Archimedean copulas, microstructure estimators (VPIN, Roll, Amihud, Kyle) and finite-difference barrier Greeks — 306 tested functions across 23 modules ([#1195](https://github.com/HKUDS/Vibe-Trading/pull/1195)–[#1198](https://github.com/HKUDS/Vibe-Trading/pull/1198), [#1203](https://github.com/HKUDS/Vibe-Trading/pull/1203)). **Fixed:** eight skill reference links pointed at paths `read_file` cannot open, so those documents silently failed to load. Thanks [@cgycorey](https://github.com/cgycorey), [@santhreal](https://github.com/santhreal), [@turtle696966969696](https://github.com/turtle696966969696), and [@wanderkiller](https://github.com/wanderkiller)!
- **2026-08-27** 🛑 **The kill-switch sweep now survives restarts and stops trusting a flaky broker**: during a halt, the cancel-and-flatten sweep counted any broker response as success — but the MCP adapter turns a failed call into a `{"status": "error"}` envelope, so a dropped connection produced a compliant-looking audit trail while the resting order stayed live; error envelopes now fail closed in both passes ([#1232](https://github.com/HKUDS/Vibe-Trading/pull/1232)). The sweep's fired-once latch also lived only in memory: a restart with flatten orders still working replayed the whole sweep — a fresh market order per position, enough to flip a long book net short; the latch is now persisted next to the HALT sentinel and bound to its halt episode, so clearing and re-tripping still re-arms it ([#1233](https://github.com/HKUDS/Vibe-Trading/pull/1233)). **New:** every market's data-source fallback order is visible and reorderable in *Settings → Data Source Priority* — hot-applied, persisted per market (`MARKET_DATA_ORDER_*`), and strictly a reordering: adding or dropping sources is refused, and without an override the defaults are untouched ([#1231](https://github.com/HKUDS/Vibe-Trading/pull/1231)); Binance USD-M reconciliation results now land as tamper-evident drift evidence artifacts — strict JSON, fail-closed on incomplete or unsupported snapshots, no order surface ([#1230](https://github.com/HKUDS/Vibe-Trading/pull/1230), toward [#1030](https://github.com/HKUDS/Vibe-Trading/issues/1030)). Thanks [@he-yufeng](https://github.com/he-yufeng), [@sambazhu](https://github.com/sambazhu), and [@honginp](https://github.com/honginp)!
- **2026-08-26** ♻️ **A live Alpaca order that loses its broker response stops being a mystery, and gold backtests stop being frictionless**: the order gate now durably owns every Alpaca submission before the broker write, recovers the outcome by exact `client_order_id` only, attributes fills against the signed position delta, and HALTs on any contradiction — recovery never resubmits ([#1213](https://github.com/HKUDS/Vibe-Trading/pull/1213), [#1221](https://github.com/HKUDS/Vibe-Trading/pull/1221), [#1222](https://github.com/HKUDS/Vibe-Trading/pull/1222)). **Fixed:** metals used FX pip/lot conventions, making gold's spread ~1,460× too cheap and rounding positions under 1,000 oz to zero ([#1226](https://github.com/HKUDS/Vibe-Trading/pull/1226)); Futu HKD holdings were valued as USD, overstated by roughly the USD/HKD rate ([#1228](https://github.com/HKUDS/Vibe-Trading/pull/1228)); Shadow Account read PnL keys the runner never emits, so every successful backtest reported PnL = 0.00 ([#1217](https://github.com/HKUDS/Vibe-Trading/pull/1217)); streamed LLM calls never requested usage, under-reporting swarm output tokens ~18–36× ([#1225](https://github.com/HKUDS/Vibe-Trading/pull/1225)). **New:** opt-in read-only Binance USD-M account snapshots — two allowlisted signed reads, no order surface ([#1229](https://github.com/HKUDS/Vibe-Trading/pull/1229), toward [#1030](https://github.com/HKUDS/Vibe-Trading/issues/1030)); portfolio OAuth reconnects run in a bounded subprocess that cannot strand the web process or the callback port ([#1211](https://github.com/HKUDS/Vibe-Trading/pull/1211)). Thanks [@Elfsa-Miranda](https://github.com/Elfsa-Miranda), [@P1Piyush](https://github.com/P1Piyush), [@JaxonHu1024](https://github.com/JaxonHu1024), [@he-yufeng](https://github.com/he-yufeng), [@honginp](https://github.com/honginp), and [@goatyyc](https://github.com/goatyyc)!
-- **2026-08-25** 🛡️ **Two live-gate fail-opens closed, and purged CV stops wiping the training set between test blocks**: Alpaca shorts booked as *positive* exposure (`qty` is a magnitude, direction lives in `side`), so selling more loosened `max_total_exposure_usd` instead of tightening it — quantity is now signed on both the TAP JSON and direct-SDK paths ([#1209](https://github.com/HKUDS/Vibe-Trading/pull/1209)); OKX/Futu reads flattened a rejected API call into "empty book, `status: ok`", letting the mandate gate evaluate limits against nothing — they now return the error envelope the gate fails closed on ([#1212](https://github.com/HKUDS/Vibe-Trading/pull/1212)). Both are Phase 0 of the audit roadmap in [#1207](https://github.com/HKUDS/Vibe-Trading/issues/1207). **Fixed:** combinatorial purged CV treated non-contiguous test blocks as one span, purging every training observation between them; segments now purge individually and an emptied fold raises ([#1204](https://github.com/HKUDS/Vibe-Trading/pull/1204)); the credit-risk functions refuse NaN/inf inputs instead of returning NaN scores or a "grey" verdict ([#1215](https://github.com/HKUDS/Vibe-Trading/pull/1215), closes [#1214](https://github.com/HKUDS/Vibe-Trading/issues/1214)). **New:** swarm workers retry with capped equal-jitter backoff ([#1210](https://github.com/HKUDS/Vibe-Trading/pull/1210), toward [#1208](https://github.com/HKUDS/Vibe-Trading/issues/1208)), and `vibe-trading --swarm-retry <run_id>` / `/swarm retry` reruns a failed run, keeping completed tasks with `--resume` ([#1194](https://github.com/HKUDS/Vibe-Trading/pull/1194)). Thanks [@he-yufeng](https://github.com/he-yufeng), [@santhreal](https://github.com/santhreal), [@Robin1987China](https://github.com/Robin1987China), [@pengpengyi92](https://github.com/pengpengyi92), and [@SiMinus](https://github.com/SiMinus)!
<details>
<summary>Earlier news</summary>
+- **2026-08-25** 🛡️ **Two live-gate fail-opens closed, and purged CV stops wiping the training set between test blocks**: Alpaca shorts booked as *positive* exposure (`qty` is a magnitude, direction lives in `side`), so selling more loosened `max_total_exposure_usd` instead of tightening it — quantity is now signed on both the TAP JSON and direct-SDK paths ([#1209](https://github.com/HKUDS/Vibe-Trading/pull/1209)); OKX/Futu reads flattened a rejected API call into "empty book, `status: ok`", letting the mandate gate evaluate limits against nothing — they now return the error envelope the gate fails closed on ([#1212](https://github.com/HKUDS/Vibe-Trading/pull/1212)). Both are Phase 0 of the audit roadmap in [#1207](https://github.com/HKUDS/Vibe-Trading/issues/1207). **Fixed:** combinatorial purged CV treated non-contiguous test blocks as one span, purging every training observation between them; segments now purge individually and an emptied fold raises ([#1204](https://github.com/HKUDS/Vibe-Trading/pull/1204)); the credit-risk functions refuse NaN/inf inputs instead of returning NaN scores or a "grey" verdict ([#1215](https://github.com/HKUDS/Vibe-Trading/pull/1215), closes [#1214](https://github.com/HKUDS/Vibe-Trading/issues/1214)). **New:** swarm workers retry with capped equal-jitter backoff ([#1210](https://github.com/HKUDS/Vibe-Trading/pull/1210), toward [#1208](https://github.com/HKUDS/Vibe-Trading/issues/1208)), and `vibe-trading --swarm-retry <run_id>` / `/swarm retry` reruns a failed run, keeping completed tasks with `--resume` ([#1194](https://github.com/HKUDS/Vibe-Trading/pull/1194)). Thanks [@he-yufeng](https://github.com/he-yufeng), [@santhreal](https://github.com/santhreal), [@Robin1987China](https://github.com/Robin1987China), [@pengpengyi92](https://github.com/pengpengyi92), and [@SiMinus](https://github.com/SiMinus)!
- **2026-08-24** 🔗 **IBKR's official MCP goes from "lists tools" to a working read-only portfolio source, and scheduling gets an agent tool that cannot act alone**: [#1178](https://github.com/HKUDS/Vibe-Trading/pull/1178) fixed the URL, but IBKR's gateway still rejected FastMCP's stock OAuth client registration before login. An IBKR-scoped OAuth provider — browser-profile headers, `token_endpoint_auth_method: none`, a stable callback port, and stale-registration recovery, applied only when the MCP host is `api.ibkr.com` — completes authorization ([#1186](https://github.com/HKUDS/Vibe-Trading/pull/1186)), and the live-account-verified `get_account_summary` / `get_account_positions` tools now back the generic account/position reads, making `ibkr-live-official-mcp-readonly` an eligible `/portfolio` source ([#1190](https://github.com/HKUDS/Vibe-Trading/pull/1190), closes [#1126](https://github.com/HKUDS/Vibe-Trading/issues/1126)). **New:** the agent sees exactly one scheduling tool, `scheduled_research` — its `propose_create`/`propose_cancel` never touch the job store until you confirm on the surface you are on (Web card, CLI `y/N`, or an exact `confirm`/`确认` reply in IM), delivery targets are opaque operator-configured refs that never expose a raw chat/user id, and a job past its `end_at` expires instead of firing again ([#1187](https://github.com/HKUDS/Vibe-Trading/pull/1187)). **Fixed:** the comps and three-statement engines now refuse non-finite inputs everywhere they enter the arithmetic — a NaN peer metric had been *included* in the multiple distribution and dragged the median to NaN, and `abs(nan) > tolerance` is `False`, so a NaN balance sheet sailed through the hard balance check ([#1184](https://github.com/HKUDS/Vibe-Trading/pull/1184), closes [#1183](https://github.com/HKUDS/Vibe-Trading/issues/1183)); `get_market_data` validates codes, dates, source and interval before burning the loader fallback chain on a malformed call, and its source enum stopped silently rejecting six registered loaders ([#1185](https://github.com/HKUDS/Vibe-Trading/pull/1185)); Feishu QR login now persists the app credentials it receives exactly once — atomically, owner-only — instead of reporting a success that did not survive the process ([#1188](https://github.com/HKUDS/Vibe-Trading/pull/1188)); the risk-analysis skill doc's historical-VaR order statistic now matches the code ([#1189](https://github.com/HKUDS/Vibe-Trading/pull/1189)). Thanks [@sykuang](https://github.com/sykuang), [@goatyyc](https://github.com/goatyyc), [@AirHua-byte](https://github.com/AirHua-byte), [@Robin1987China](https://github.com/Robin1987China), [@cgycorey](https://github.com/cgycorey), and [@youngjincho02-arch](https://github.com/youngjincho02-arch)!
- **2026-08-23** 🔌 **The IBKR MCP seed named the wrong URL, and closing one LLM adapter closed them all**: The seeded official IBKR read-only MCP profile, the README and `SKILL.md` all pointed at `https://api.ibkr.com/v1/api/mcp`; IBKR's own AI-integration page publishes `https://api.ibkr.com/v1/api/mcp-public`, and the seed, all six READMEs and `SKILL.md` now name it — re-run `vibe-trading connector configure ibkr-live-official-mcp-readonly --yes` if your `agent.json` still carries the old URL. The OAuth client-registration step that IBKR's gateway rejects is still open in [#1126](https://github.com/HKUDS/Vibe-Trading/issues/1126) ([#1178](https://github.com/HKUDS/Vibe-Trading/pull/1178)). **Fixed:** `ChatLLM.close()` closed LangChain's process-wide cached HTTPX clients, so one finished title-generation or image-vision call left every later request failing with "client has been closed" until a restart — only transports Vibe-Trading created itself are closed now ([#1182](https://github.com/HKUDS/Vibe-Trading/pull/1182)); a service restart mid-reply dropped the streamed text and left the attempt *running* forever — partial replies are now checkpointed and reconciled as an explicit *interrupted* transcript entry on the next start ([#1180](https://github.com/HKUDS/Vibe-Trading/pull/1180)). **New:** Web chat attaches up to five files per turn through the picker, drag-and-drop, or clipboard paste ([#1179](https://github.com/HKUDS/Vibe-Trading/pull/1179)). Thanks [@c020627](https://github.com/c020627) and [@AirHua-byte](https://github.com/AirHua-byte)!
- **2026-08-22** 💼 **A Portfolio page — your holdings across brokers, read-only**: Pick any read-only connector profiles (connection instances over `account.read` + `positions.read`; the IBKR official-MCP profile is not yet eligible) and the new `/portfolio` page aggregates them into immutable snapshots with per-source provenance, USD/CNY valuation, CSV export and a history chart. A source that fails to refresh is reported as an **error and excluded from the totals** — never carried forward — and the snapshot is marked incomplete. The `portfolio_summary` agent tool returns `risk_xray_args` that feed the existing `portfolio_risk_xray`, and `vibe-trading portfolio show|refresh|sources` prints the same snapshot in the terminal. Read-only connector plugins you write yourself live under `~/.vibe-trading/connectors/` (a manifest declaring any write capability is rejected; secrets go to the OS keyring via the `[keyring]` extra), and nothing on this path can place an order ([#1072](https://github.com/HKUDS/Vibe-Trading/pull/1072), toward [#1171](https://github.com/HKUDS/Vibe-Trading/issues/1171)). **Fixed:** thirteen Alpha Zoo factors forward-filled a missing close before computing returns, turning a data gap into a finite "0% return" — the gap now stays `NaN` ([#1172](https://github.com/HKUDS/Vibe-Trading/pull/1172)); independent MCP clients on one http/sse server shared a single fallback research-goal session ([#1173](https://github.com/HKUDS/Vibe-Trading/pull/1173)); memory GC and compression left stale FTS rows and orphaned relation sidecars ([#1174](https://github.com/HKUDS/Vibe-Trading/pull/1174)); `cancel_run()` never reached a swarm worker already streaming — the stop now interrupts the stream, skips that turn's tool calls and lands as a *cancelled* task ([#1175](https://github.com/HKUDS/Vibe-Trading/pull/1175)); MCP `get_research_reports` dropped `beginTime`/`endTime` ([#1176](https://github.com/HKUDS/Vibe-Trading/pull/1176)); `get_options_chain` answered a wrong-cycle expiration with `ok: true` and another date's contracts ([#1177](https://github.com/HKUDS/Vibe-Trading/pull/1177)). Thanks [@goatyyc](https://github.com/goatyyc), [@Shizoqua](https://github.com/Shizoqua) and [@cgycorey](https://github.com/cgycorey)!
diff --git a/README_ar.md b/README_ar.md
index 2310e6603..f37d0c326 100644
--- a/README_ar.md
+++ b/README_ar.md
@@ -52,12 +52,13 @@
> ⚠️ **تحذير أمني:** حساب X باسم `VibeTrading_HKU`، ومشروع Virtuals رقم `101845`، وعقد التوكن `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` كلّها غير رسمية ولا تتبع Vibe-Trading. لم نُطلق أو نؤيد مطلقًا أي توكن أو عملة ميم. لا تشترِ هذا التوكن، ولا تربط محفظتك، ولا توقّع أي شيء. [التفاصيل](SECURITY.md#official-channels--impersonation).
+- **2026-08-28** 📏 **اختبارات رجعية كانت تنهار، وأخرى كانت تقيّم بصمت سنةً لم تطلبها**: في v0.1.14 كان كل اختبار رجعي عابر للأسواق ينهار — إذ يمرّر المشغّل عمدًا `bars_per_year=None` لسلّة تمتد عبر أسواق، ثم يستدعي فحص المخاطر الجديد `math.sqrt` عليها. وُجدت الثغرة نفسها في موضعين آخرين؛ والمواضع الأربعة تحسم `None` الآن عبر معامل واحد مشتقّ من المدى ([#1239](https://github.com/HKUDS/Vibe-Trading/pull/1239)، closes [#1237](https://github.com/HKUDS/Vibe-Trading/issues/1237)). أمّا الأهدأ: استراتيجية ذات نظرة خلفية طويلة تحتاج شموعًا **قبل** الفترة التي طلبتها، فكان الوكيل يُرجِع `start_date` سنةً كاملة لتغذية MA200 — ثم يقيّم تلك السنة. تشغيل يُقدَّم على أنه عشر سنوات كان يُبلغ عن إحدى عشرة، وقد أُدخلت صفقات السنة الزائدة ومعدّل النمو السنوي والمؤشر المرجعي في الحساب، دون أي خطأ، ومع اتساق المقاييس فيما بينها. الآن يفصل `warmup_bars` (أو `evaluation_start_date`) نافذة البيانات عن نافذة التقييم: شموع الإحماء تُهيّئ المؤشرات ولا تصل إلى شيء آخر ([#1240](https://github.com/HKUDS/Vibe-Trading/issues/1240)). **جديد:** يكتسب `quantlib` تسعير التقلب العشوائي وفق Heston (1993)، وتكافؤ المخاطر الهرمي، وروابط غاوسية وأرخميدية، ومقدّرات البنية الدقيقة (VPIN وRoll وAmihud وKyle)، وحساسيات الحواجز بالفروق المنتهية — 306 دالة مختبَرة عبر 23 وحدة ([#1195](https://github.com/HKUDS/Vibe-Trading/pull/1195)–[#1198](https://github.com/HKUDS/Vibe-Trading/pull/1198)، [#1203](https://github.com/HKUDS/Vibe-Trading/pull/1203)). **إصلاح:** ثمانية روابط مرجعية في المهارات كانت تشير إلى مسارات لا يستطيع `read_file` فتحها، فكانت تلك المستندات تفشل في التحميل بصمت. شكرًا [@cgycorey](https://github.com/cgycorey) و[@santhreal](https://github.com/santhreal) و[@turtle696966969696](https://github.com/turtle696966969696) و[@wanderkiller](https://github.com/wanderkiller)!
- **2026-08-27** 🛑 **مسح مفتاح الإيقاف يصمد أمام إعادة التشغيل ويتوقف عن الوثوق باتصال وسيط متقلّب**: أثناء الإيقاف، كان مسح الإلغاء والتسييل يعدّ أي ردّ من الوسيط نجاحًا — لكن محوّل MCP يحوّل الاستدعاء الفاشل إلى مغلّف `{"status": "error"}`، فكان انقطاع اتصال واحد يترك سجلّ تدقيق يبدو سليمًا بينما الأمر المعلّق ما يزال حيًّا؛ الآن تفشل المرحلتان بشكل مغلق عند مغلّف الخطأ ([#1232](https://github.com/HKUDS/Vibe-Trading/pull/1232)). كما كان مزلاج «الإطلاق مرة واحدة» في الذاكرة فقط: إعادة تشغيل وأوامر التسييل ما تزال قيد التنفيذ كانت تعيد المسح كاملًا — أمر سوق جديد لكل مركز، بما يكفي لقلب حساب شراءٍ إلى صافي بيع؛ المزلاج الآن مثبَّت بجوار حارس HALT ومربوط بحلقة الإيقاف نفسها، فإلغاء الإيقاف وإعادة إطلاقه يعيدان تسليحه ([#1233](https://github.com/HKUDS/Vibe-Trading/pull/1233)). **جديد**: ترتيب التراجع لمصادر بيانات كل سوق أصبح مرئيًا وقابلًا لإعادة الترتيب في *Settings → Data Source Priority* — تطبيق فوري، حفظ لكل سوق (`MARKET_DATA_ORDER_*`)، وإعادة ترتيب فقط: إضافة مصدر أو حذفه مرفوضة، وبدون تجاوز يبقى الترتيب الافتراضي كما هو ([#1231](https://github.com/HKUDS/Vibe-Trading/pull/1231))؛ ونتائج مطابقة Binance USD-M تُسجَّل الآن كأدلة انحراف مقاومة للتلاعب — JSON صارم، فشل مغلق عند اللقطات الناقصة أو غير المدعومة، بلا أي سطح أوامر ([#1230](https://github.com/HKUDS/Vibe-Trading/pull/1230)، باتجاه [#1030](https://github.com/HKUDS/Vibe-Trading/issues/1030)). شكرًا [@he-yufeng](https://github.com/he-yufeng) و[@sambazhu](https://github.com/sambazhu) و[@honginp](https://github.com/honginp)!
- **2026-08-26** ♻️ **أمر Alpaca حي يفقد ردّ الوسيط لم يعد لغزًا، وتوقّفت اختبارات الذهب الرجعية عن كونها بلا احتكاك**: تسجّل بوابة الأوامر ملكية كل إرسال بشكل دائم قبل الكتابة إلى الوسيط، وتستعيد النتيجة عبر `client_order_id` الدقيق فقط، وتنسب التنفيذات إلى فرق المركز المُوقَّع، وتُفعِّل HALT عند أي تناقض — ومسار الاستعادة لا يعيد الإرسال أبدًا ([#1213](https://github.com/HKUDS/Vibe-Trading/pull/1213)، [#1221](https://github.com/HKUDS/Vibe-Trading/pull/1221)، [#1222](https://github.com/HKUDS/Vibe-Trading/pull/1222)). **إصلاحات:** كانت المعادن تتبع أعراف pip والعقود الخاصة بالفوركس فصارت كلفة سبريد الذهب أصغر بنحو 1,460 مرة وتُقرَّب المراكز دون 1,000 أونصة إلى الصفر ([#1226](https://github.com/HKUDS/Vibe-Trading/pull/1226))؛ وكانت حيازات Futu بدولار هونغ كونغ تُقيَّم كدولار أمريكي فتتضخم بنحو سعر صرف USD/HKD ([#1228](https://github.com/HKUDS/Vibe-Trading/pull/1228))؛ وكان Shadow Account يقرأ مفاتيح مقاييس لا يُصدرها المشغّل فيُبلغ كل اختبار ناجح عن PnL = 0.00 ([#1217](https://github.com/HKUDS/Vibe-Trading/pull/1217))؛ ولم تكن استدعاءات LLM المتدفقة تطلب بيانات الاستخدام فتُبخس توكنات إخراج الـ swarm بنحو 18–36 مرة ([#1225](https://github.com/HKUDS/Vibe-Trading/pull/1225)). **جديد:** لقطات حساب Binance USD-M للقراءة فقط (اختياريًا) — قراءتان موقَّعتان ضمن قائمة السماح فقط وبلا سطح أوامر ([#1229](https://github.com/HKUDS/Vibe-Trading/pull/1229)، باتجاه [#1030](https://github.com/HKUDS/Vibe-Trading/issues/1030))؛ وإعادة اتصال OAuth للمحفظة تعمل في عملية فرعية محدودة فلا تعطّل عملية الويب ولا تحتجز منفذ الاستدعاء ([#1211](https://github.com/HKUDS/Vibe-Trading/pull/1211)). شكرًا [@Elfsa-Miranda](https://github.com/Elfsa-Miranda) و[@P1Piyush](https://github.com/P1Piyush) و[@JaxonHu1024](https://github.com/JaxonHu1024) و[@he-yufeng](https://github.com/he-yufeng) و[@honginp](https://github.com/honginp) و[@goatyyc](https://github.com/goatyyc)!
-- **2026-08-25** 🛡️ **إغلاق حالتي fail-open في بوابات التداول الحي؛ وتوقُّف الـ purged CV عن مسح التدريب بين كتل الاختبار**: كان شورت Alpaca يُسجَّل كتعرُّض *موجب* (`qty` قيمة مطلقة والاتجاه في `side`) فكلما بعت أكثر ارتخى `max_total_exposure_usd` — أصبحت الكمية مُوقَّعة على مساري TAP JSON وSDK المباشر ([#1209](https://github.com/HKUDS/Vibe-Trading/pull/1209))؛ وكانت قراءات OKX/Futu تحوِّل استدعاء API مرفوضًا إلى «دفتر فارغ، `status: ok`» فتقيِّم بوابة التفويض الحدود على لا شيء — الآن تعيد مظروف خطأ صريحًا تُغلق البوابة عنده ([#1212](https://github.com/HKUDS/Vibe-Trading/pull/1212)). كلاهما ضمن المرحلة 0 من خارطة طريق التدقيق في [#1207](https://github.com/HKUDS/Vibe-Trading/issues/1207). **إصلاحات:** كان الـ purged CV التوافقي يعامل كتل الاختبار غير المتجاورة كامتداد واحد ويمسح كل مشاهدات التدريب بينها؛ الآن تُنقَّى المقاطع كلٌّ على حدة وترفع الطيّةُ الفارغةُ خطأً ([#1204](https://github.com/HKUDS/Vibe-Trading/pull/1204))؛ ودوال مخاطر الائتمان ترفض مدخلات NaN/inf بدل إعادة درجات NaN أو حكم «المنطقة الرمادية» ([#1215](https://github.com/HKUDS/Vibe-Trading/pull/1215)، يغلق [#1214](https://github.com/HKUDS/Vibe-Trading/issues/1214)). **جديد:** إعادة محاولة عمال swarm صارت بتراجع equal-jitter مسقوف ([#1210](https://github.com/HKUDS/Vibe-Trading/pull/1210)، باتجاه [#1208](https://github.com/HKUDS/Vibe-Trading/issues/1208))؛ و`vibe-trading --swarm-retry <run_id>` / `/swarm retry` يعيد تشغيل تشغيلٍ فاشل مع الاحتفاظ بالمهام المكتملة عبر `--resume` ([#1194](https://github.com/HKUDS/Vibe-Trading/pull/1194)). شكرًا [@he-yufeng](https://github.com/he-yufeng) و[@santhreal](https://github.com/santhreal) و[@Robin1987China](https://github.com/Robin1987China) و[@pengpengyi92](https://github.com/pengpengyi92) و[@SiMinus](https://github.com/SiMinus)!
<details>
<summary>أخبار سابقة</summary>
+- **2026-08-25** 🛡️ **إغلاق حالتي fail-open في بوابات التداول الحي؛ وتوقُّف الـ purged CV عن مسح التدريب بين كتل الاختبار**: كان شورت Alpaca يُسجَّل كتعرُّض *موجب* (`qty` قيمة مطلقة والاتجاه في `side`) فكلما بعت أكثر ارتخى `max_total_exposure_usd` — أصبحت الكمية مُوقَّعة على مساري TAP JSON وSDK المباشر ([#1209](https://github.com/HKUDS/Vibe-Trading/pull/1209))؛ وكانت قراءات OKX/Futu تحوِّل استدعاء API مرفوضًا إلى «دفتر فارغ، `status: ok`» فتقيِّم بوابة التفويض الحدود على لا شيء — الآن تعيد مظروف خطأ صريحًا تُغلق البوابة عنده ([#1212](https://github.com/HKUDS/Vibe-Trading/pull/1212)). كلاهما ضمن المرحلة 0 من خارطة طريق التدقيق في [#1207](https://github.com/HKUDS/Vibe-Trading/issues/1207). **إصلاحات:** كان الـ purged CV التوافقي يعامل كتل الاختبار غير المتجاورة كامتداد واحد ويمسح كل مشاهدات التدريب بينها؛ الآن تُنقَّى المقاطع كلٌّ على حدة وترفع الطيّةُ الفارغةُ خطأً ([#1204](https://github.com/HKUDS/Vibe-Trading/pull/1204))؛ ودوال مخاطر الائتمان ترفض مدخلات NaN/inf بدل إعادة درجات NaN أو حكم «المنطقة الرمادية» ([#1215](https://github.com/HKUDS/Vibe-Trading/pull/1215)، يغلق [#1214](https://github.com/HKUDS/Vibe-Trading/issues/1214)). **جديد:** إعادة محاولة عمال swarm صارت بتراجع equal-jitter مسقوف ([#1210](https://github.com/HKUDS/Vibe-Trading/pull/1210)، باتجاه [#1208](https://github.com/HKUDS/Vibe-Trading/issues/1208))؛ و`vibe-trading --swarm-retry <run_id>` / `/swarm retry` يعيد تشغيل تشغيلٍ فاشل مع الاحتفاظ بالمهام المكتملة عبر `--resume` ([#1194](https://github.com/HKUDS/Vibe-Trading/pull/1194)). شكرًا [@he-yufeng](https://github.com/he-yufeng) و[@santhreal](https://github.com/santhreal) و[@Robin1987China](https://github.com/Robin1987China) و[@pengpengyi92](https://github.com/pengpengyi92) و[@SiMinus](https://github.com/SiMinus)!
- **2026-08-24** 🔗 **انتقل MCP الرسمي لـ IBKR من «سرد الأدوات» إلى مصدر محفظة فعلي للقراءة فقط؛ وحصلت الجدولة على أداة وكيل لا تستطيع التصرف وحدها**: أصلح [#1178](https://github.com/HKUDS/Vibe-Trading/pull/1178) عنوان URL، لكن بوابة IBKR ظلت ترفض تسجيل عميل OAuth الافتراضي في FastMCP قبل تسجيل الدخول. موفّر OAuth مخصص لـ IBKR — ترويسات بنمط المتصفح و`token_endpoint_auth_method: none` ومنفذ رد نداء ثابت واستعادة التسجيلات البائتة، ولا يُطبَّق إلا عندما يكون مضيف MCP هو `api.ibkr.com` — يُكمل التفويض ([#1186](https://github.com/HKUDS/Vibe-Trading/pull/1186))، وأداتا `get_account_summary` / `get_account_positions` المتحقق منهما على حساب حقيقي تدعمان الآن قراءات الحساب/المراكز العامة، فأصبح `ibkr-live-official-mcp-readonly` مصدرًا مؤهلاً لصفحة `/portfolio` ([#1190](https://github.com/HKUDS/Vibe-Trading/pull/1190)، يغلق [#1126](https://github.com/HKUDS/Vibe-Trading/issues/1126)). **جديد:** يرى الوكيل أداة جدولة واحدة فقط `scheduled_research` — لا تمسّ `propose_create`/`propose_cancel` مخزن المهام حتى تؤكد على الواجهة التي أنت عليها (بطاقة تأكيد الويب، `y/N` في سطر الأوامر، أو ردّ حرفي `confirm`/`确认` في المراسلة)، وأهداف التسليم مراجع معتمة يهيّئها المشغّل ولا تكشف أبدًا معرّف الدردشة/المستخدم الخام، والمهمة التي تجاوزت `end_at` تنتهي صلاحيتها ولا تُنفَّذ مجددًا ([#1187](https://github.com/HKUDS/Vibe-Trading/pull/1187)). **تم الإصلاح:** يرفض محرّكا comps والقوائم الثلاث الآن المدخلات غير المنتهية عند كل نقطة تدخل فيها الحساب — كان مؤشر نظير NaN *يُحتسب* في توزيع المضاعفات فيجرّ الوسيط إلى NaN، و`abs(nan) > tolerance` تساوي `False` فكانت ميزانية NaN تجتاز الفحص الصارم ([#1184](https://github.com/HKUDS/Vibe-Trading/pull/1184)، يغلق [#1183](https://github.com/HKUDS/Vibe-Trading/issues/1183))؛ وتتحقق `get_market_data` من الرموز والتواريخ والمصدر والفاصل قبل استهلاك سلسلة التراجع بين المحمّلات على استدعاء مشوّه، وتوقف تعداد المصادر عن الرفض الصامت لستة محمّلات مسجّلة ([#1185](https://github.com/HKUDS/Vibe-Trading/pull/1185))؛ ويحفظ تسجيل دخول Feishu عبر QR الآن بيانات الاعتماد التي تُسلَّم مرة واحدة فقط حفظًا ذريًّا بأذونات المالك وحده ([#1188](https://github.com/HKUDS/Vibe-Trading/pull/1188))؛ وصارت صيغة إحصاء الترتيب لـ VaR التاريخي في وثيقة مهارة risk-analysis مطابقة للكود ([#1189](https://github.com/HKUDS/Vibe-Trading/pull/1189)). شكرًا [@sykuang](https://github.com/sykuang) و[@goatyyc](https://github.com/goatyyc) و[@AirHua-byte](https://github.com/AirHua-byte) و[@Robin1987China](https://github.com/Robin1987China) و[@cgycorey](https://github.com/cgycorey) و[@youngjincho02-arch](https://github.com/youngjincho02-arch)!
- **2026-08-23** 🔌 **كان إعداد IBKR MCP الافتراضي يشير إلى عنوان URL خاطئ، وإغلاق محوّل LLM واحد كان يغلقها جميعًا**: كان الإعداد الافتراضي لملف IBKR الرسمي للقراءة فقط عبر MCP وملف README و`SKILL.md` تشير جميعها إلى `https://api.ibkr.com/v1/api/mcp`، بينما تنشر صفحة تكامل الذكاء الاصطناعي الخاصة بـ IBKR نفسها نقطة النهاية `https://api.ibkr.com/v1/api/mcp-public` — وأصبح الإعداد الافتراضي وملفات README الستة و`SKILL.md` تشير إليها الآن. أعد تشغيل `vibe-trading connector configure ibkr-live-official-mcp-readonly --yes` إذا كان `agent.json` لديك لا يزال يحمل العنوان القديم. خطوة تسجيل عميل OAuth التي ترفضها بوابة IBKR لا تزال مفتوحة في [#1126](https://github.com/HKUDS/Vibe-Trading/issues/1126) ([#1178](https://github.com/HKUDS/Vibe-Trading/pull/1178)). **تم الإصلاح:** كانت `ChatLLM.close()` تغلق عملاء HTTPX المخزّنين مؤقتًا على مستوى العملية في LangChain، فبعد انتهاء استدعاء واحد لتوليد العنوان أو تحليل الصور تفشل كل الطلبات اللاحقة بـ "client has been closed" حتى إعادة التشغيل — الآن تُغلق فقط وسائط النقل التي أنشأها Vibe-Trading بنفسه ([#1182](https://github.com/HKUDS/Vibe-Trading/pull/1182))؛ كانت إعادة تشغيل الخدمة أثناء بثّ الرد تُسقط النص المُرسَل وتترك المحاولة في حالة *running* إلى الأبد — الآن تُحفظ الردود الجزئية كنقاط تحقق وتُستعاد عند التشغيل التالي كإدخال *interrupted* صريح في السجل ([#1180](https://github.com/HKUDS/Vibe-Trading/pull/1180)). **جديد:** تتيح محادثة الويب إرفاق ما يصل إلى خمسة ملفات في كل دور عبر منتقي الملفات أو السحب والإفلات أو اللصق من الحافظة ([#1179](https://github.com/HKUDS/Vibe-Trading/pull/1179)). شكرًا [@c020627](https://github.com/c020627) و[@AirHua-byte](https://github.com/AirHua-byte)!
- **2026-08-22** 💼 **صفحة المحفظة: حيازاتك عبر الوسطاء، للقراءة فقط**: اختر ملفات تعريف موصّلات للقراءة فقط (مثيلات اتصال فوق `account.read` + `positions.read`؛ ملف IBKR الرسمي عبر MCP ليس مؤهلًا بعد) فتجمعها صفحة `/portfolio` الجديدة في لقطات غير قابلة للتغيير مع مصدر لكل حيازة وتقييم بالدولار/اليوان وتصدير CSV ورسم تاريخي. المصدر الذي يفشل تحديثه يُبلَّغ عنه **كخطأ ويُستبعد من الإجماليات** — ولا يُستبدل أبدًا بذاكرة مؤقتة سابقة — وتُعلَّم اللقطة بأنها غير مكتملة. تُعيد أداة الوكيل `portfolio_summary` قيمة `risk_xray_args` التي تُغذّي أداة `portfolio_risk_xray` القائمة، ويطبع `vibe-trading portfolio show|refresh|sources` اللقطة نفسها في الطرفية. موصّلات القراءة فقط التي تكتبها بنفسك تُوضع في `~/.vibe-trading/connectors/` (أي بيان يُعلن قدرة كتابة يُرفض؛ وتذهب الأسرار إلى سلسلة مفاتيح النظام عبر الإضافة `[keyring]`)، ولا شيء على هذا المسار يمكنه إرسال أمر تداول ([#1072](https://github.com/HKUDS/Vibe-Trading/pull/1072)، باتجاه [#1171](https://github.com/HKUDS/Vibe-Trading/issues/1171)). **أُصلح:** كانت 13 من عوامل Alpha Zoo تملأ الإغلاق المفقود للأمام قبل حساب العوائد فتحوّل فجوة البيانات إلى «عائد 0%» محدود — تبقى الفجوة الآن `NaN` ([#1172](https://github.com/HKUDS/Vibe-Trading/pull/1172))؛ وكان عملاء MCP المستقلّون على خادم http/sse واحد يتشاركون جلسة هدف بحثي احتياطية واحدة ([#1173](https://github.com/HKUDS/Vibe-Trading/pull/1173))؛ وكان جمع قمامة الذاكرة والضغط يتركان صفوف FTS قديمة وملفات علاقات يتيمة ([#1174](https://github.com/HKUDS/Vibe-Trading/pull/1174))؛ ولم يكن `cancel_run()` يصل إلى عامل swarm يبثّ بالفعل — يقطع الإيقاف الآن البثّ ويتخطّى استدعاءات تلك الجولة ويُسجَّل كمهمة *ملغاة* ([#1175](https://github.com/HKUDS/Vibe-Trading/pull/1175))؛ وكان `get_research_reports` عبر MCP يُسقط `beginTime`/`endTime` ([#1176](https://github.com/HKUDS/Vibe-Trading/pull/1176))؛ وكان `get_options_chain` يجيب عن تاريخ انتهاء من دورة أخرى بـ `ok: true` وعقود تاريخ آخر ([#1177](https://github.com/HKUDS/Vibe-Trading/pull/1177)). شكرًا [@goatyyc](https://github.com/goatyyc)، [@Shizoqua](https://github.com/Shizoqua)، [@cgycorey](https://github.com/cgycorey)!
diff --git a/README_es.md b/README_es.md
index 00fee6cdc..c743a12e1 100644
--- a/README_es.md
+++ b/README_es.md
@@ -52,12 +52,13 @@
> ⚠️ **Advertencia de seguridad:** la cuenta de X `VibeTrading_HKU`, el proyecto de Virtuals `101845` y el contrato de token `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` no son activos oficiales de Vibe-Trading. Nunca hemos lanzado ni respaldado ningún token o memecoin. No compres, conectes una wallet ni firmes nada. [Detalles](SECURITY.md#official-channels--impersonation).
+- **2026-08-28** 📏 **Backtests que reventaban, y backtests que calificaban en silencio un año que nunca pediste**: en v0.1.14 todo backtest multi-mercado moría — el runner pasa deliberadamente `bars_per_year=None` para una cesta que abarca varios mercados, y la nueva radiografía de riesgo le aplicaba `math.sqrt`. Otros dos consumidores tenían el mismo hueco; los cuatro resuelven ahora `None` mediante un único factor derivado del período ([#1239](https://github.com/HKUDS/Vibe-Trading/pull/1239), closes [#1237](https://github.com/HKUDS/Vibe-Trading/issues/1237)). El más silencioso: una estrategia de lookback largo necesita barras *anteriores* al período que pediste, así que el agente retrasaba `start_date` un año para alimentar la MA200 — y luego calificaba ese año. Una ejecución presentada como diez años reportaba once, con las operaciones, el CAGR y el benchmark del año extra incluidos, sin error alguno y con métricas coherentes entre sí. Ahora `warmup_bars` (o `evaluation_start_date`) separa la ventana de datos de la ventana de evaluación: las barras de calentamiento ceban los indicadores y no llegan a nada más ([#1240](https://github.com/HKUDS/Vibe-Trading/issues/1240)). **Nuevo:** `quantlib` incorpora la valoración con volatilidad estocástica de Heston (1993), Paridad de Riesgo Jerárquica, cópulas gaussianas y arquimedianas, estimadores de microestructura (VPIN, Roll, Amihud, Kyle) y griegas de barrera por diferencias finitas — 306 funciones probadas en 23 módulos ([#1195](https://github.com/HKUDS/Vibe-Trading/pull/1195)–[#1198](https://github.com/HKUDS/Vibe-Trading/pull/1198), [#1203](https://github.com/HKUDS/Vibe-Trading/pull/1203)). **Corregido:** ocho enlaces de referencia de skills apuntaban a rutas que `read_file` no puede abrir, por lo que esos documentos fallaban en silencio al cargarse. ¡Gracias [@cgycorey](https://github.com/cgycorey), [@santhreal](https://github.com/santhreal), [@turtle696966969696](https://github.com/turtle696966969696) y [@wanderkiller](https://github.com/wanderkiller)!
- **2026-08-27** 🛑 **El barrido del kill-switch sobrevive a los reinicios y deja de confiar en una conexión de bróker inestable**: durante un halt, el barrido de cancelación y cierre de posiciones contaba cualquier respuesta del bróker como éxito — pero el adaptador MCP convierte una llamada fallida en un sobre `{"status": "error"}`, de modo que una desconexión producía un rastro de auditoría de apariencia correcta mientras la orden pendiente seguía viva; los sobres de error ahora fallan cerrado en ambas fases ([#1232](https://github.com/HKUDS/Vibe-Trading/pull/1232)). El pestillo de "disparo único" del barrido además vivía solo en memoria: un reinicio con las órdenes de cierre aún en vuelo repetía el barrido entero — una orden a mercado nueva por posición, suficiente para convertir una cuenta larga en neta corta; el pestillo ahora se persiste junto al centinela HALT y queda ligado a ese episodio de halt, así que limpiar y volver a disparar lo rearma ([#1233](https://github.com/HKUDS/Vibe-Trading/pull/1233)). **Nuevo:** el orden de respaldo de las fuentes de datos de cada mercado es visible y reordenable en *Settings → Data Source Priority* — aplicación en caliente, persistido por mercado (`MARKET_DATA_ORDER_*`), y estrictamente una reordenación: añadir o quitar fuentes se rechaza, y sin override los valores por defecto quedan intactos ([#1231](https://github.com/HKUDS/Vibe-Trading/pull/1231)); los resultados de conciliación de Binance USD-M se registran como artefactos de evidencia de deriva a prueba de manipulación — JSON estricto, fallo cerrado ante instantáneas incompletas o no soportadas, sin superficie de órdenes ([#1230](https://github.com/HKUDS/Vibe-Trading/pull/1230), hacia [#1030](https://github.com/HKUDS/Vibe-Trading/issues/1030)). ¡Gracias [@he-yufeng](https://github.com/he-yufeng), [@sambazhu](https://github.com/sambazhu) y [@honginp](https://github.com/honginp)!
- **2026-08-26** ♻️ **Una orden Alpaca en vivo que pierde la respuesta del bróker deja de ser un misterio, y los backtests de oro dejan de ser sin fricción**: la puerta de órdenes registra de forma duradera la propiedad de cada envío antes de escribir al bróker, recupera el desenlace solo por el `client_order_id` exacto, atribuye las ejecuciones contra el delta de posición con signo y dispara el HALT ante cualquier contradicción — la recuperación jamás reenvía ([#1213](https://github.com/HKUDS/Vibe-Trading/pull/1213), [#1221](https://github.com/HKUDS/Vibe-Trading/pull/1221), [#1222](https://github.com/HKUDS/Vibe-Trading/pull/1222)). **Corregido:** los metales usaban las convenciones FX de pip y lote, dejando el spread del oro ~1.460× más barato y redondeando a cero las posiciones bajo 1.000 oz ([#1226](https://github.com/HKUDS/Vibe-Trading/pull/1226)); las posiciones HKD de Futu se valoraban como USD, sobrestimadas por el tipo USD/HKD ([#1228](https://github.com/HKUDS/Vibe-Trading/pull/1228)); Shadow Account leía claves de métricas que el runner nunca emite y cada backtest exitoso reportaba PnL = 0.00 ([#1217](https://github.com/HKUDS/Vibe-Trading/pull/1217)); las llamadas LLM en streaming nunca pedían usage, infrarreportando los tokens de salida del swarm ~18–36× ([#1225](https://github.com/HKUDS/Vibe-Trading/pull/1225)). **Nuevo:** snapshots de cuenta Binance USD-M de solo lectura (opt-in) — solo dos lecturas firmadas en lista de permitidos, sin superficie de órdenes ([#1229](https://github.com/HKUDS/Vibe-Trading/pull/1229), hacia [#1030](https://github.com/HKUDS/Vibe-Trading/issues/1030)); las reconexiones OAuth de la cartera corren en un subproceso acotado que no puede colgar el proceso web ni retener el puerto de callback ([#1211](https://github.com/HKUDS/Vibe-Trading/pull/1211)). ¡Gracias [@Elfsa-Miranda](https://github.com/Elfsa-Miranda), [@P1Piyush](https://github.com/P1Piyush), [@JaxonHu1024](https://github.com/JaxonHu1024), [@he-yufeng](https://github.com/he-yufeng), [@honginp](https://github.com/honginp) y [@goatyyc](https://github.com/goatyyc)!
-- **2026-08-25** 🛡️ **Cerrados dos fail-open en las puertas de trading en vivo, y el purged CV deja de borrar el entrenamiento entre bloques de test**: Un corto de Alpaca se contabilizaba como exposición *positiva* (`qty` es magnitud y la dirección va en `side`), así que vender más aflojaba `max_total_exposure_usd` — la cantidad ahora lleva signo en las rutas TAP JSON y SDK directa ([#1209](https://github.com/HKUDS/Vibe-Trading/pull/1209)); las lecturas de OKX/Futu aplanaban una llamada API rechazada en «libro vacío, `status: ok`», dejando a la puerta de mandato evaluar límites contra nada — ahora devuelven el sobre de error con el que la puerta falla cerrada ([#1212](https://github.com/HKUDS/Vibe-Trading/pull/1212)). Ambos son la Fase 0 de la hoja de ruta de auditoría en [#1207](https://github.com/HKUDS/Vibe-Trading/issues/1207). **Corregido:** el purged CV combinatorio trataba bloques de test no contiguos como un solo tramo y purgaba todo el entrenamiento entre ellos; ahora cada segmento purga por separado y un fold vaciado lanza un error ([#1204](https://github.com/HKUDS/Vibe-Trading/pull/1204)); las funciones de riesgo de crédito rechazan entradas NaN/inf en lugar de devolver puntuaciones NaN o un veredicto de «zona gris» ([#1215](https://github.com/HKUDS/Vibe-Trading/pull/1215), cierra [#1214](https://github.com/HKUDS/Vibe-Trading/issues/1214)). **Nuevo:** los reintentos de los workers del swarm usan retroceso equal-jitter acotado ([#1210](https://github.com/HKUDS/Vibe-Trading/pull/1210), hacia [#1208](https://github.com/HKUDS/Vibe-Trading/issues/1208)); y `vibe-trading --swarm-retry <run_id>` / `/swarm retry` relanza una ejecución fallida, conservando las tareas completadas con `--resume` ([#1194](https://github.com/HKUDS/Vibe-Trading/pull/1194)). ¡Gracias [@he-yufeng](https://github.com/he-yufeng), [@santhreal](https://github.com/santhreal), [@Robin1987China](https://github.com/Robin1987China), [@pengpengyi92](https://github.com/pengpengyi92) y [@SiMinus](https://github.com/SiMinus)!
<details>
<summary>Noticias anteriores</summary>
+- **2026-08-25** 🛡️ **Cerrados dos fail-open en las puertas de trading en vivo, y el purged CV deja de borrar el entrenamiento entre bloques de test**: Un corto de Alpaca se contabilizaba como exposición *positiva* (`qty` es magnitud y la dirección va en `side`), así que vender más aflojaba `max_total_exposure_usd` — la cantidad ahora lleva signo en las rutas TAP JSON y SDK directa ([#1209](https://github.com/HKUDS/Vibe-Trading/pull/1209)); las lecturas de OKX/Futu aplanaban una llamada API rechazada en «libro vacío, `status: ok`», dejando a la puerta de mandato evaluar límites contra nada — ahora devuelven el sobre de error con el que la puerta falla cerrada ([#1212](https://github.com/HKUDS/Vibe-Trading/pull/1212)). Ambos son la Fase 0 de la hoja de ruta de auditoría en [#1207](https://github.com/HKUDS/Vibe-Trading/issues/1207). **Corregido:** el purged CV combinatorio trataba bloques de test no contiguos como un solo tramo y purgaba todo el entrenamiento entre ellos; ahora cada segmento purga por separado y un fold vaciado lanza un error ([#1204](https://github.com/HKUDS/Vibe-Trading/pull/1204)); las funciones de riesgo de crédito rechazan entradas NaN/inf en lugar de devolver puntuaciones NaN o un veredicto de «zona gris» ([#1215](https://github.com/HKUDS/Vibe-Trading/pull/1215), cierra [#1214](https://github.com/HKUDS/Vibe-Trading/issues/1214)). **Nuevo:** los reintentos de los workers del swarm usan retroceso equal-jitter acotado ([#1210](https://github.com/HKUDS/Vibe-Trading/pull/1210), hacia [#1208](https://github.com/HKUDS/Vibe-Trading/issues/1208)); y `vibe-trading --swarm-retry <run_id>` / `/swarm retry` relanza una ejecución fallida, conservando las tareas completadas con `--resume` ([#1194](https://github.com/HKUDS/Vibe-Trading/pull/1194)). ¡Gracias [@he-yufeng](https://github.com/he-yufeng), [@santhreal](https://github.com/santhreal), [@Robin1987China](https://github.com/Robin1987China), [@pengpengyi92](https://github.com/pengpengyi92) y [@SiMinus](https://github.com/SiMinus)!
- **2026-08-24** 🔗 **El MCP oficial de IBKR pasa de «listar herramientas» a ser una fuente de cartera de solo lectura que funciona, y la programación gana una herramienta de agente que no puede actuar sola**: [#1178](https://github.com/HKUDS/Vibe-Trading/pull/1178) corrigió la URL, pero la pasarela de IBKR seguía rechazando el registro de cliente OAuth estándar de FastMCP antes del inicio de sesión. Un proveedor OAuth específico de IBKR — cabeceras de perfil de navegador, `token_endpoint_auth_method: none`, puerto de callback estable y recuperación de registros obsoletos, aplicado solo cuando el host MCP es `api.ibkr.com` — completa la autorización ([#1186](https://github.com/HKUDS/Vibe-Trading/pull/1186)), y las herramientas `get_account_summary` / `get_account_positions`, verificadas con una cuenta real, respaldan ahora las lecturas genéricas de cuenta/posiciones, con lo que `ibkr-live-official-mcp-readonly` es una fuente elegible para `/portfolio` ([#1190](https://github.com/HKUDS/Vibe-Trading/pull/1190), cierra [#1126](https://github.com/HKUDS/Vibe-Trading/issues/1126)). **Nuevo:** el agente ve exactamente una herramienta de programación, `scheduled_research` — sus `propose_create`/`propose_cancel` nunca tocan el almacén de jobs hasta que confirmas en la superficie en la que estás (tarjeta web, `y/N` en la CLI, o una respuesta exacta `confirm`/`确认` en IM), los destinos de entrega son referencias opacas configuradas por el operador que nunca exponen un chat/user id crudo, y un job que supera su `end_at` expira en lugar de volver a dispararse ([#1187](https://github.com/HKUDS/Vibe-Trading/pull/1187)). **Corregido:** los motores de comps y de tres estados ahora rechazan entradas no finitas en cada punto donde entran a la aritmética — una métrica NaN de un comparable se *incluía* en la distribución de múltiplos y arrastraba la mediana a NaN, y `abs(nan) > tolerance` es `False`, así que un balance NaN pasaba la comprobación dura ([#1184](https://github.com/HKUDS/Vibe-Trading/pull/1184), cierra [#1183](https://github.com/HKUDS/Vibe-Trading/issues/1183)); `get_market_data` valida codes, fechas, source e interval antes de quemar la cadena de fallback de loaders en una llamada malformada, y su enum de sources dejó de rechazar en silencio seis loaders registrados ([#1185](https://github.com/HKUDS/Vibe-Trading/pull/1185)); el login QR de Feishu ahora persiste las credenciales que solo recibe una vez — de forma atómica y con permisos solo del propietario ([#1188](https://github.com/HKUDS/Vibe-Trading/pull/1188)); la fórmula del estadístico de orden del VaR histórico en la doc de la skill risk-analysis coincide ahora con el código ([#1189](https://github.com/HKUDS/Vibe-Trading/pull/1189)). ¡Gracias [@sykuang](https://github.com/sykuang), [@goatyyc](https://github.com/goatyyc), [@AirHua-byte](https://github.com/AirHua-byte), [@Robin1987China](https://github.com/Robin1987China), [@cgycorey](https://github.com/cgycorey) y [@youngjincho02-arch](https://github.com/youngjincho02-arch)!
- **2026-08-23** 🔌 **La semilla MCP de IBKR apuntaba a la URL equivocada, y cerrar un adaptador LLM los cerraba todos**: La semilla del perfil oficial de IBKR MCP de solo lectura, el README y `SKILL.md` apuntaban a `https://api.ibkr.com/v1/api/mcp`; la propia página de integración con IA de IBKR publica `https://api.ibkr.com/v1/api/mcp-public`, y ahora la semilla, los seis README y `SKILL.md` la usan. Vuelve a ejecutar `vibe-trading connector configure ibkr-live-official-mcp-readonly --yes` si tu `agent.json` aún conserva la URL antigua. El paso de registro del cliente OAuth que la pasarela de IBKR rechaza sigue abierto en [#1126](https://github.com/HKUDS/Vibe-Trading/issues/1126) ([#1178](https://github.com/HKUDS/Vibe-Trading/pull/1178)). **Corregido:** `ChatLLM.close()` cerraba los clientes HTTPX en caché de todo el proceso de LangChain, así que una sola llamada terminada de generación de título o de visión de imágenes dejaba todas las peticiones posteriores fallando con "client has been closed" hasta reiniciar — ahora solo se cierran los transportes creados por el propio Vibe-Trading ([#1182](https://github.com/HKUDS/Vibe-Trading/pull/1182)); un reinicio del servicio a mitad de respuesta descartaba el texto ya transmitido y dejaba el intento en *running* para siempre — ahora las respuestas parciales se guardan como checkpoints y se reconcilian en el siguiente arranque como una entrada *interrupted* explícita ([#1180](https://github.com/HKUDS/Vibe-Trading/pull/1180)). **Nuevo:** el chat web adjunta hasta cinco archivos por turno mediante el selector, arrastrar y soltar o pegar desde el portapapeles ([#1179](https://github.com/HKUDS/Vibe-Trading/pull/1179)). ¡Gracias [@c020627](https://github.com/c020627) y [@AirHua-byte](https://github.com/AirHua-byte)!
- **2026-08-22** 💼 **Una página de Cartera: tus posiciones en todos los brókers, en solo lectura**: Elige perfiles de conector de solo lectura (instancias de conexión sobre `account.read` + `positions.read`; el perfil oficial MCP de IBKR aún no es elegible) y la nueva página `/portfolio` los agrega en instantáneas inmutables con procedencia por fuente, valoración en USD/CNY, exportación CSV y un gráfico histórico. Una fuente que no logra actualizarse se reporta como **error y queda excluida de los totales** — nunca se arrastra la caché anterior — y la instantánea se marca incompleta. La herramienta de agente `portfolio_summary` devuelve `risk_xray_args` que alimentan al `portfolio_risk_xray` existente, y `vibe-trading portfolio show|refresh|sources` imprime la misma instantánea en la terminal. Los conectores de solo lectura que escribas tú viven en `~/.vibe-trading/connectors/` (un manifiesto que declare cualquier capacidad de escritura se rechaza; los secretos van al llavero del sistema vía el extra `[keyring]`), y nada en esta ruta puede colocar una orden ([#1072](https://github.com/HKUDS/Vibe-Trading/pull/1072), hacia [#1171](https://github.com/HKUDS/Vibe-Trading/issues/1171)). **Corregido:** trece factores del Alpha Zoo rellenaban hacia delante un cierre faltante antes de calcular retornos, convirtiendo un hueco de datos en un «retorno del 0 %» finito — el hueco ahora se mantiene `NaN` ([#1172](https://github.com/HKUDS/Vibe-Trading/pull/1172)); clientes MCP independientes en un mismo servidor http/sse compartían una única sesión de objetivo de investigación de reserva ([#1173](https://github.com/HKUDS/Vibe-Trading/pull/1173)); la recolección de basura y la compresión de memoria dejaban filas FTS obsoletas y sidecars de relaciones huérfanos ([#1174](https://github.com/HKUDS/Vibe-Trading/pull/1174)); `cancel_run()` nunca llegaba a un worker swarm que ya transmitía — la parada ahora interrumpe el flujo, omite las llamadas de ese turno y queda como tarea *cancelada* ([#1175](https://github.com/HKUDS/Vibe-Trading/pull/1175)); `get_research_reports` por MCP descartaba `beginTime`/`endTime` ([#1176](https://github.com/HKUDS/Vibe-Trading/pull/1176)); `get_options_chain` respondía a un vencimiento de otro ciclo con `ok: true` y los contratos de otra fecha ([#1177](https://github.com/HKUDS/Vibe-Trading/pull/1177)). ¡Gracias [@goatyyc](https://github.com/goatyyc), [@Shizoqua](https://github.com/Shizoqua) y [@cgycorey](https://github.com/cgycorey)!
diff --git a/README_ja.md b/README_ja.md
index d730a4e76..df1588d6a 100644
--- a/README_ja.md
+++ b/README_ja.md
@@ -52,12 +52,13 @@
> ⚠️ **セキュリティ警告:** Xアカウント `VibeTrading_HKU`、Virtualsプロジェクト `101845`、およびトークンコントラクト `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` は、いずれもVibe-Trading公式のものではありません。Vibe-Tradingはこれまで、いかなるトークンやミームコインも発行・公認していません。購入、ウォレットの接続、署名は行わないでください。[詳細](SECURITY.md#official-channels--impersonation)
+- **2026-08-28** 📏 **クラッシュするバックテストと、頼んでいない 1 年分を黙って採点していたバックテスト**:v0.1.14 ではクロスマーケットのバックテストがすべて落ちていました——runner は複数市場にまたがるバスケットに対して意図的に `bars_per_year=None` を渡し、新しいリスク X 線がそれに `math.sqrt` を適用していたためです。同じ穴が他に 2 か所あり、4 か所すべてが期間から導出する共通の年率換算係数を使うようになりました([#1239](https://github.com/HKUDS/Vibe-Trading/pull/1239)、closes [#1237](https://github.com/HKUDS/Vibe-Trading/issues/1237))。より静かな方:長いルックバックの戦略は**要求した期間より前**のバーを必要とするため、エージェントは MA200 を満たそうと `start_date` を 1 年戻し——そしてその 1 年も採点していました。10 年と称する実行が 11 年を報告し、余分な 1 年の取引・CAGR・ベンチマークが混ざり、エラーは出ず、指標同士は整合していました。`warmup_bars`(または `evaluation_start_date`)がデータ期間と評価期間を分離します。ウォームアップのバーは指標を温めるだけで、他には一切届きません([#1240](https://github.com/HKUDS/Vibe-Trading/issues/1240))。**新機能:** `quantlib` に Heston (1993) 確率的ボラティリティ価格付け、階層的リスクパリティ、ガウス・アルキメデス型コピュラ、マイクロストラクチャ推定量(VPIN、Roll、Amihud、Kyle)、有限差分のバリアグリークスを追加——23 モジュール・306 個のテスト済み関数([#1195](https://github.com/HKUDS/Vibe-Trading/pull/1195)–[#1198](https://github.com/HKUDS/Vibe-Trading/pull/1198)、[#1203](https://github.com/HKUDS/Vibe-Trading/pull/1203))。**修正:** 8 本のスキル参照リンクが `read_file` では開けないパスを指しており、該当ドキュメントは黙って読み込みに失敗していました。[@cgycorey](https://github.com/cgycorey)、[@santhreal](https://github.com/santhreal)、[@turtle696966969696](https://github.com/turtle696966969696)、[@wanderkiller](https://github.com/wanderkiller) に感謝します!
- **2026-08-27** 🛑 **キルスイッチの一括クローズスイープが再起動を乗り越え、不安定なブローカー接続を信用しなくなりました**:ホールト中、キャンセル+クローズのスイープはブローカーの応答なら何でも成功として扱っていました——しかし MCP アダプタは失敗した呼び出しを `{"status": "error"}` エンベロープに変換するため、一度の接続断で、注文が生きたままなのに監査記録上は問題なしに見えていました。エラーエンベロープは両パスで fail-closed になりました([#1232](https://github.com/HKUDS/Vibe-Trading/pull/1232))。また「一度だけ発火」のラッチはメモリ上にしかなく、クローズ注文が約定前のまま再起動するとスイープ全体が再実行され——ポジションごとに新たな成行注文が出て、ロングの口座がネットショートに反転しかねませんでした。ラッチは HALT センチネルの隣に永続化され、そのホールトのエピソードに紐づくため、解除して再トリップすれば再武装されます([#1233](https://github.com/HKUDS/Vibe-Trading/pull/1233))。**新機能**:各市場のデータソースのフォールバック順序が *Settings → Data Source Priority* で確認・並べ替え可能に——ホット適用、市場ごとに永続化(`MARKET_DATA_ORDER_*`)、かつ並べ替えのみ許可:ソースの追加や削除は拒否され、オーバーライドがなければデフォルト順序は一切変わりません([#1231](https://github.com/HKUDS/Vibe-Trading/pull/1231))。Binance USD-M の照合結果は改ざん検出可能なドリフト証拠アーティファクトとして記録されます——厳格な JSON、不完全または未対応のスナップショットには fail-closed、発注面は一切ありません([#1230](https://github.com/HKUDS/Vibe-Trading/pull/1230)、[#1030](https://github.com/HKUDS/Vibe-Trading/issues/1030) に向けて)。ありがとう [@he-yufeng](https://github.com/he-yufeng)、[@sambazhu](https://github.com/sambazhu)、[@honginp](https://github.com/honginp)!
- **2026-08-26** ♻️ **ブローカー応答を失ったライブ Alpaca 注文が謎でなくなり、ゴールドのバックテストが摩擦ゼロでなくなりました**:注文ゲートはブローカー書き込み前に送信の所有権を永続化し、正確な `client_order_id` のみで結果を復元、符号付きポジション差分で約定を帰属させ、矛盾があれば HALT——復元経路は決して再送信しません([#1213](https://github.com/HKUDS/Vibe-Trading/pull/1213)、[#1221](https://github.com/HKUDS/Vibe-Trading/pull/1221)、[#1222](https://github.com/HKUDS/Vibe-Trading/pull/1222))。**修正:** 貴金属が FX の pip・ロット規約を使い、ゴールドのスプレッドコストが約 1,460 分の 1 に、1,000 オンス未満のポジションは静かにゼロ化([#1226](https://github.com/HKUDS/Vibe-Trading/pull/1226));Futu の HKD 保有が USD として評価され、約 USD/HKD レート分過大([#1228](https://github.com/HKUDS/Vibe-Trading/pull/1228));Shadow Account がランナーの出力しないメトリクスキーを読み、成功したバックテストが常に PnL = 0.00([#1217](https://github.com/HKUDS/Vibe-Trading/pull/1217));ストリーミング LLM 呼び出しが usage を要求せず、swarm の出力トークンを約 18〜36 倍過少報告([#1225](https://github.com/HKUDS/Vibe-Trading/pull/1225))。**新機能:** 読み取り専用 Binance USD-M 口座スナップショット(オプトイン)——許可リスト化された署名付きリード 2 本のみ、注文面なし([#1229](https://github.com/HKUDS/Vibe-Trading/pull/1229)、[#1030](https://github.com/HKUDS/Vibe-Trading/issues/1030) に向けて);ポートフォリオの OAuth 再接続は制限付きサブプロセスで実行され、Web プロセスやコールバックポートを塞ぎません([#1211](https://github.com/HKUDS/Vibe-Trading/pull/1211))。[@Elfsa-Miranda](https://github.com/Elfsa-Miranda)、[@P1Piyush](https://github.com/P1Piyush)、[@JaxonHu1024](https://github.com/JaxonHu1024)、[@he-yufeng](https://github.com/he-yufeng)、[@honginp](https://github.com/honginp)、[@goatyyc](https://github.com/goatyyc) の皆さん、ありがとうございます!
-- **2026-08-25** 🛡️ **ライブゲートの 2 件の fail-open を封鎖;purged CV がテストブロック間の訓練データを消す問題も修正**:Alpaca のショートが*プラス*のエクスポージャーとして計上され(`qty` は絶対値、方向は `side`)、売るほど `max_total_exposure_usd` が緩んでいた——数量は TAP JSON と直接 SDK の両経路で符号付きに([#1209](https://github.com/HKUDS/Vibe-Trading/pull/1209));OKX/Futu は拒否された API 呼び出しを「空の帳簿、`status: ok`」に平坦化し、マンデートゲートが何もない帳簿で上限を評価していた——今は明示的なエラー封筒を返し、ゲートは fail-closed する([#1212](https://github.com/HKUDS/Vibe-Trading/pull/1212))。いずれも [#1207](https://github.com/HKUDS/Vibe-Trading/issues/1207) 監査ロードマップの Phase 0。**修正:** 組合せ purged CV が非連続テストブロックを一つのスパンとして扱い、その間の訓練観測をすべて purge していた;今はセグメント単位で purge し、訓練データが空になった fold は例外を上げる([#1204](https://github.com/HKUDS/Vibe-Trading/pull/1204));信用リスク関数は NaN/inf 入力を拒否し、NaN スコアや「グレーゾーン」判定を返さない([#1215](https://github.com/HKUDS/Vibe-Trading/pull/1215)、[#1214](https://github.com/HKUDS/Vibe-Trading/issues/1214) をクローズ)。**新機能:** swarm ワーカーのリトライは上限付き equal-jitter バックオフに([#1210](https://github.com/HKUDS/Vibe-Trading/pull/1210)、[#1208](https://github.com/HKUDS/Vibe-Trading/issues/1208) に向けて);`vibe-trading --swarm-retry <run_id>` / `/swarm retry` で失敗した実行を再実行、`--resume` で完了済みタスクを保持([#1194](https://github.com/HKUDS/Vibe-Trading/pull/1194))。[@he-yufeng](https://github.com/he-yufeng)、[@santhreal](https://github.com/santhreal)、[@Robin1987China](https://github.com/Robin1987China)、[@pengpengyi92](https://github.com/pengpengyi92)、[@SiMinus](https://github.com/SiMinus) の皆さん、ありがとうございます!
<details>
<summary>過去のニュース</summary>
+- **2026-08-25** 🛡️ **ライブゲートの 2 件の fail-open を封鎖;purged CV がテストブロック間の訓練データを消す問題も修正**:Alpaca のショートが*プラス*のエクスポージャーとして計上され(`qty` は絶対値、方向は `side`)、売るほど `max_total_exposure_usd` が緩んでいた——数量は TAP JSON と直接 SDK の両経路で符号付きに([#1209](https://github.com/HKUDS/Vibe-Trading/pull/1209));OKX/Futu は拒否された API 呼び出しを「空の帳簿、`status: ok`」に平坦化し、マンデートゲートが何もない帳簿で上限を評価していた——今は明示的なエラー封筒を返し、ゲートは fail-closed する([#1212](https://github.com/HKUDS/Vibe-Trading/pull/1212))。いずれも [#1207](https://github.com/HKUDS/Vibe-Trading/issues/1207) 監査ロードマップの Phase 0。**修正:** 組合せ purged CV が非連続テストブロックを一つのスパンとして扱い、その間の訓練観測をすべて purge していた;今はセグメント単位で purge し、訓練データが空になった fold は例外を上げる([#1204](https://github.com/HKUDS/Vibe-Trading/pull/1204));信用リスク関数は NaN/inf 入力を拒否し、NaN スコアや「グレーゾーン」判定を返さない([#1215](https://github.com/HKUDS/Vibe-Trading/pull/1215)、[#1214](https://github.com/HKUDS/Vibe-Trading/issues/1214) をクローズ)。**新機能:** swarm ワーカーのリトライは上限付き equal-jitter バックオフに([#1210](https://github.com/HKUDS/Vibe-Trading/pull/1210)、[#1208](https://github.com/HKUDS/Vibe-Trading/issues/1208) に向けて);`vibe-trading --swarm-retry <run_id>` / `/swarm retry` で失敗した実行を再実行、`--resume` で完了済みタスクを保持([#1194](https://github.com/HKUDS/Vibe-Trading/pull/1194))。[@he-yufeng](https://github.com/he-yufeng)、[@santhreal](https://github.com/santhreal)、[@Robin1987China](https://github.com/Robin1987China)、[@pengpengyi92](https://github.com/pengpengyi92)、[@SiMinus](https://github.com/SiMinus) の皆さん、ありがとうございます!
- **2026-08-24** 🔗 **IBKR 公式 MCP が「ツールを列挙するだけ」から実用の読み取り専用ポートフォリオソースへ;スケジューリングには単独では実行できないエージェントツールが追加**:[#1178](https://github.com/HKUDS/Vibe-Trading/pull/1178) は URL を修正しましたが、IBKR ゲートウェイはログイン前に FastMCP 標準の OAuth クライアント登録を拒否していました。IBKR 専用の OAuth プロバイダ——ブラウザ相当のヘッダー、`token_endpoint_auth_method: none`、固定コールバックポート、失効登録の自動回復を、MCP ホストが `api.ibkr.com` の場合にのみ適用——が認可を完了させ([#1186](https://github.com/HKUDS/Vibe-Trading/pull/1186))、実口座で検証済みの `get_account_summary` / `get_account_positions` が汎用の口座/ポジション読み取りを支えるようになり、`ibkr-live-official-mcp-readonly` は `/portfolio` の有効なソースになりました([#1190](https://github.com/HKUDS/Vibe-Trading/pull/1190)、[#1126](https://github.com/HKUDS/Vibe-Trading/issues/1126) をクローズ)。**新機能:** エージェントに見えるスケジューリングツールは `scheduled_research` の 1 つだけ——`propose_create`/`propose_cancel` は、いま居るサーフェスで確認するまでジョブストアに触れません(Web の確認カード、CLI の `y/N`、IM では正確に `confirm`/`确认` と返信)。配信ターゲットはオペレーターが設定する不透明な参照で、生の chat/user id は決して露出せず、`end_at` を過ぎたジョブは期限切れになり再実行されません([#1187](https://github.com/HKUDS/Vibe-Trading/pull/1187))。**修正:** comps と三表モデルは、数値が演算に入るすべての入口で非有限入力を拒否するようになりました——従来は NaN のピア指標が倍率分布に*含まれて*中央値を NaN に引きずり、`abs(nan) > tolerance` は `False` のため NaN のバランスシートがハードチェックをすり抜けていました([#1184](https://github.com/HKUDS/Vibe-Trading/pull/1184)、[#1183](https://github.com/HKUDS/Vibe-Trading/issues/1183) をクローズ)。`get_market_data` は不正な呼び出しでローダーのフォールバックチェーンを浪費する前に codes/日付/source/interval を検証し、source の列挙が登録済み 6 ソースを黙って拒否することもなくなりました([#1185](https://github.com/HKUDS/Vibe-Trading/pull/1185))。Feishu の QR ログインは、一度しか渡されないアプリ資格情報をアトミックかつ所有者限定の権限で永続化します([#1188](https://github.com/HKUDS/Vibe-Trading/pull/1188))。risk-analysis スキル文書のヒストリカル VaR の順序統計量式をコードに一致させました([#1189](https://github.com/HKUDS/Vibe-Trading/pull/1189))。[@sykuang](https://github.com/sykuang)、[@goatyyc](https://github.com/goatyyc)、[@AirHua-byte](https://github.com/AirHua-byte)、[@Robin1987China](https://github.com/Robin1987China)、[@cgycorey](https://github.com/cgycorey)、[@youngjincho02-arch](https://github.com/youngjincho02-arch) の皆さん、ありがとうございます!
- **2026-08-23** 🔌 **IBKR MCP シードが誤った URL を指していた問題と、LLM アダプタを 1 つ閉じると全部閉じてしまう問題**:公式 IBKR 読み取り専用 MCP プロファイルのシード、README、`SKILL.md` はいずれも `https://api.ibkr.com/v1/api/mcp` を指していましたが、IBKR 自身の AI 連携ページが公開しているエンドポイントは `https://api.ibkr.com/v1/api/mcp-public` です。シード・6 つの README・`SKILL.md` をすべてこちらに揃えました。`agent.json` に古い URL が残っている場合は `vibe-trading connector configure ibkr-live-official-mcp-readonly --yes` を再実行してください。IBKR ゲートウェイが OAuth クライアント登録を拒否する件は引き続き [#1126](https://github.com/HKUDS/Vibe-Trading/issues/1126) で追跡中です([#1178](https://github.com/HKUDS/Vibe-Trading/pull/1178))。**修正:** `ChatLLM.close()` が LangChain のプロセス全体で共有されるキャッシュ済み HTTPX クライアントまで閉じていたため、タイトル生成や画像認識の呼び出しが 1 回終わるだけで、以降のリクエストが再起動まで "client has been closed" で失敗していました。今は Vibe-Trading 自身が作成したトランスポートだけを閉じます([#1182](https://github.com/HKUDS/Vibe-Trading/pull/1182))。応答のストリーミング中にサービスが再起動すると出力済みテキストが失われ、attempt が *running* のまま残っていました。部分応答をチェックポイントとして保存し、次回起動時に明示的な *interrupted* エントリとして履歴に復元します([#1180](https://github.com/HKUDS/Vibe-Trading/pull/1180))。**新機能:** Web チャットでファイル選択・ドラッグ&ドロップ・クリップボード貼り付けにより 1 ターンに最大 5 ファイルを添付できます([#1179](https://github.com/HKUDS/Vibe-Trading/pull/1179))。[@c020627](https://github.com/c020627) さん、[@AirHua-byte](https://github.com/AirHua-byte) さん、ありがとうございます!
- **2026-08-22** 💼 **Portfolio ページ:ブローカー横断で保有を読み取り専用に集約**:読み取り専用のコネクタープロファイル(`account.read` + `positions.read` を持つ接続インスタンス。IBKR 公式 MCP プロファイルはまだ対象外)を選ぶと、新しい `/portfolio` ページがそれらをイミュータブルなスナップショットに集約します——保有ごとの出所、USD/CNY 評価、CSV エクスポート、履歴チャート付き。更新に失敗したソースは**エラーとして報告され合計から除外**され——前回のキャッシュで埋めることはなく——スナップショットは不完全とマークされます。`portfolio_summary` ツールは既存の `portfolio_risk_xray` にそのまま渡せる `risk_xray_args` を返し、`vibe-trading portfolio show|refresh|sources` は同じスナップショットをターミナルに表示します。自作の読み取り専用コネクタープラグインは `~/.vibe-trading/connectors/` に置きます(書き込み能力を宣言したマニフェストは拒否、シークレットは `[keyring]` extra 経由で OS のキーチェーンへ)。この経路からは何も発注できません([#1072](https://github.com/HKUDS/Vibe-Trading/pull/1072)、[#1171](https://github.com/HKUDS/Vibe-Trading/issues/1171) に向けて)。**修正:** Alpha Zoo の 13 ファクターがリターン計算前に欠損終値を前方補完し、データギャップを有限の「0% リターン」にしていました——ギャップは `NaN` のまま保たれます([#1172](https://github.com/HKUDS/Vibe-Trading/pull/1172))。同一 http/sse サーバー上の無関係な MCP クライアントが単一のフォールバック研究ゴールセッションを共有していました([#1173](https://github.com/HKUDS/Vibe-Trading/pull/1173))。メモリの GC と圧縮が古い FTS 行と孤立した relation サイドカーを残していました([#1174](https://github.com/HKUDS/Vibe-Trading/pull/1174))。`cancel_run()` がストリーミング中の swarm worker に届かず——ストリームを中断し、そのターンのツール呼び出しをスキップし、*キャンセル済み*タスクとして記録します([#1175](https://github.com/HKUDS/Vibe-Trading/pull/1175))。MCP `get_research_reports` が `beginTime`/`endTime` を落としていました([#1176](https://github.com/HKUDS/Vibe-Trading/pull/1176))。`get_options_chain` が別サイクルの満期に `ok: true` と他の日付の契約を返していました([#1177](https://github.com/HKUDS/Vibe-Trading/pull/1177))。貢献に感謝します:[@goatyyc](https://github.com/goatyyc)、[@Shizoqua](https://github.com/Shizoqua)、[@cgycorey](https://github.com/cgycorey)。
diff --git a/README_ko.md b/README_ko.md
index 0c4aa03f4..b601b7f68 100644
--- a/README_ko.md
+++ b/README_ko.md
@@ -52,12 +52,13 @@
> ⚠️ **보안 경고:** X 계정 `VibeTrading_HKU`, Virtuals 프로젝트 `101845`, 토큰 컨트랙트 `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4`는 모두 Vibe-Trading 공식과 무관합니다. Vibe-Trading은 어떠한 토큰이나 밈코인도 발행하거나 공식적으로 지지한 적이 없습니다. 해당 토큰을 구매하거나 지갑을 연결하거나 어떠한 서명도 하지 마세요. [자세히 보기](SECURITY.md#official-channels--impersonation).
+- **2026-08-28** 📏 **크래시가 나는 백테스트, 그리고 요청하지도 않은 1년을 조용히 채점하던 백테스트**: v0.1.14에서는 모든 크로스마켓 백테스트가 죽었습니다 — runner가 여러 시장에 걸친 바스켓에 의도적으로 `bars_per_year=None`을 넘기고, 새 리스크 엑스레이가 거기에 `math.sqrt`를 호출했기 때문입니다. 같은 구멍이 두 군데 더 있었고, 네 곳 모두 이제 기간에서 유도한 하나의 공통 연율화 계수를 사용합니다([#1239](https://github.com/HKUDS/Vibe-Trading/pull/1239), closes [#1237](https://github.com/HKUDS/Vibe-Trading/issues/1237)). 더 조용한 쪽: 룩백이 긴 전략은 **요청한 기간 이전**의 바가 필요하므로 에이전트가 MA200을 채우려 `start_date`를 1년 앞당겼고 — 그 1년까지 채점했습니다. 10년이라고 소개된 실행이 11년을 보고했고, 추가된 1년의 거래·CAGR·벤치마크가 섞여 들어갔으며, 오류는 없었고 지표들끼리는 일관됐습니다. 이제 `warmup_bars`(또는 `evaluation_start_date`)가 데이터 구간과 평가 구간을 분리합니다. 워밍업 바는 지표만 데우고 그 외에는 아무것도 건드리지 않습니다([#1240](https://github.com/HKUDS/Vibe-Trading/issues/1240)). **신규:** `quantlib`에 Heston(1993) 확률적 변동성 가격결정, 계층적 리스크 패리티, 가우시안 및 아르키메데스 코퓰러, 마이크로스트럭처 추정량(VPIN, Roll, Amihud, Kyle), 유한차분 배리어 그릭스 추가 — 23개 모듈 306개의 테스트된 함수([#1195](https://github.com/HKUDS/Vibe-Trading/pull/1195)–[#1198](https://github.com/HKUDS/Vibe-Trading/pull/1198), [#1203](https://github.com/HKUDS/Vibe-Trading/pull/1203)). **수정:** 스킬 참조 링크 8개가 `read_file`이 열 수 없는 경로를 가리켜, 해당 문서들이 조용히 로드에 실패하고 있었습니다. [@cgycorey](https://github.com/cgycorey), [@santhreal](https://github.com/santhreal), [@turtle696966969696](https://github.com/turtle696966969696), [@wanderkiller](https://github.com/wanderkiller) 님 감사합니다!
- **2026-08-27** 🛑 **킬 스위치 일괄 청산 스윕이 재시작을 견디고, 불안정한 브로커 연결을 더 이상 신뢰하지 않습니다**: 홀트 중 취소+청산 스윕은 브로커의 어떤 응답이든 성공으로 간주했습니다 — 그러나 MCP 어댑터는 실패한 호출을 `{"status": "error"}` 봉투로 변환하므로, 연결이 한 번 끊기면 대기 주문이 살아 있는데도 감사 기록은 정상처럼 보였습니다. 이제 두 단계 모두 오류 봉투에 대해 fail-closed입니다 ([#1232](https://github.com/HKUDS/Vibe-Trading/pull/1232)). 또한 "한 번만 실행" 래치는 메모리에만 있어서, 청산 주문이 체결되기 전에 재시작하면 스윕 전체가 재실행되어 — 포지션마다 새 시장가 주문이 나가 롱 계좌가 순숏으로 뒤집힐 수 있었습니다. 래치는 이제 HALT 센티널 옆에 영속화되고 해당 홀트 에피소드에 바인딩되며, 해제 후 다시 트립하면 재무장됩니다 ([#1233](https://github.com/HKUDS/Vibe-Trading/pull/1233)). **신규**: 각 시장의 데이터 소스 폴백 순서를 *Settings → Data Source Priority*에서 확인하고 재정렬할 수 있습니다 — 핫 적용, 시장별 영속화(`MARKET_DATA_ORDER_*`), 오직 재정렬만 허용: 소스 추가/삭제는 거부되며, 오버라이드가 없으면 기본 순서는 그대로입니다 ([#1231](https://github.com/HKUDS/Vibe-Trading/pull/1231)). Binance USD-M 대조 결과는 변조 감지 가능한 드리프트 증거 아티팩트로 기록됩니다 — 엄격한 JSON, 불완전하거나 지원되지 않는 스냅샷에는 fail-closed, 주문 표면 없음 ([#1230](https://github.com/HKUDS/Vibe-Trading/pull/1230), [#1030](https://github.com/HKUDS/Vibe-Trading/issues/1030)을 향해). 감사합니다 [@he-yufeng](https://github.com/he-yufeng), [@sambazhu](https://github.com/sambazhu), [@honginp](https://github.com/honginp)!
- **2026-08-26** ♻️ **브로커 응답을 잃은 라이브 Alpaca 주문이 더 이상 미스터리가 아니며, 금 백테스트가 무마찰이기를 멈췄다**: 주문 게이트는 브로커 쓰기 전에 제출 소유권을 내구성 있게 기록하고, 정확한 `client_order_id`로만 결과를 복구하며, 부호 있는 포지션 델타로 체결을 귀속시키고, 모순이 있으면 HALT한다 — 복구 경로는 절대 재제출하지 않는다 ([#1213](https://github.com/HKUDS/Vibe-Trading/pull/1213), [#1221](https://github.com/HKUDS/Vibe-Trading/pull/1221), [#1222](https://github.com/HKUDS/Vibe-Trading/pull/1222)). **수정:** 귀금속이 FX pip·랏 규약을 써서 금 스프레드 비용이 약 1,460배 작아지고 1,000온스 미만 포지션이 조용히 0이 됐다 ([#1226](https://github.com/HKUDS/Vibe-Trading/pull/1226)); Futu HKD 보유가 USD로 평가되어 약 USD/HKD 환율만큼 과대계상됐다 ([#1228](https://github.com/HKUDS/Vibe-Trading/pull/1228)); Shadow Account가 러너가 내보내지 않는 메트릭 키를 읽어 성공한 백테스트마다 PnL = 0.00으로 보고했다 ([#1217](https://github.com/HKUDS/Vibe-Trading/pull/1217)); 스트리밍 LLM 호출이 usage를 요청하지 않아 swarm 출력 토큰이 약 18–36배 과소보고됐다 ([#1225](https://github.com/HKUDS/Vibe-Trading/pull/1225)). **신규:** 읽기 전용 Binance USD-M 계좌 스냅샷(옵트인) — 허용 목록의 서명 읽기 두 개뿐, 주문 표면 없음 ([#1229](https://github.com/HKUDS/Vibe-Trading/pull/1229), [#1030](https://github.com/HKUDS/Vibe-Trading/issues/1030)을 향해); 포트폴리오 OAuth 재연결이 제한된 서브프로세스에서 실행되어 웹 프로세스나 콜백 포트를 붙잡지 못한다 ([#1211](https://github.com/HKUDS/Vibe-Trading/pull/1211)). [@Elfsa-Miranda](https://github.com/Elfsa-Miranda), [@P1Piyush](https://github.com/P1Piyush), [@JaxonHu1024](https://github.com/JaxonHu1024), [@he-yufeng](https://github.com/he-yufeng), [@honginp](https://github.com/honginp), [@goatyyc](https://github.com/goatyyc) 님들께 감사드립니다!
-- **2026-08-25** 🛡️ **라이브 게이트의 fail-open 두 건 차단; purged CV가 테스트 블록 사이 훈련 데이터를 지우던 문제 수정**: Alpaca 숏이 *양수* 익스포저로 기록되어(`qty`는 절댓값, 방향은 `side`) 팔수록 `max_total_exposure_usd`가 느슨해졌다 — 이제 TAP JSON과 직접 SDK 두 경로 모두 수량에 부호가 붙는다 ([#1209](https://github.com/HKUDS/Vibe-Trading/pull/1209)); OKX/Futu는 거부된 API 호출을 "빈 장부, `status: ok`"로 뭉개 위임 게이트가 빈 장부에 대고 한도를 평가했다 — 이제 명시적 오류 봉투를 반환하고 게이트는 fail-closed 한다 ([#1212](https://github.com/HKUDS/Vibe-Trading/pull/1212)). 둘 다 [#1207](https://github.com/HKUDS/Vibe-Trading/issues/1207) 감사 로드맵의 Phase 0. **수정:** 조합형 purged CV가 비연속 테스트 블록을 한 구간으로 취급해 그 사이 훈련 관측치를 전부 purge했다; 이제 세그먼트별로 purge하고 훈련 데이터가 빈 fold는 예외를 던진다 ([#1204](https://github.com/HKUDS/Vibe-Trading/pull/1204)); 신용리스크 함수는 NaN/inf 입력을 거부하며 NaN 점수나 "회색 지대" 판정을 반환하지 않는다 ([#1215](https://github.com/HKUDS/Vibe-Trading/pull/1215), [#1214](https://github.com/HKUDS/Vibe-Trading/issues/1214) 닫음). **신규:** swarm 워커 재시도가 상한 있는 equal-jitter 백오프로 바뀌었다 ([#1210](https://github.com/HKUDS/Vibe-Trading/pull/1210), [#1208](https://github.com/HKUDS/Vibe-Trading/issues/1208)을 향해); `vibe-trading --swarm-retry <run_id>` / `/swarm retry`로 실패한 실행을 다시 돌리고 `--resume`으로 완료된 태스크를 유지한다 ([#1194](https://github.com/HKUDS/Vibe-Trading/pull/1194)). [@he-yufeng](https://github.com/he-yufeng)、[@santhreal](https://github.com/santhreal)、[@Robin1987China](https://github.com/Robin1987China)、[@pengpengyi92](https://github.com/pengpengyi92)、[@SiMinus](https://github.com/SiMinus) 님들께 감사드립니다!
<details>
<summary>이전 뉴스</summary>
+- **2026-08-25** 🛡️ **라이브 게이트의 fail-open 두 건 차단; purged CV가 테스트 블록 사이 훈련 데이터를 지우던 문제 수정**: Alpaca 숏이 *양수* 익스포저로 기록되어(`qty`는 절댓값, 방향은 `side`) 팔수록 `max_total_exposure_usd`가 느슨해졌다 — 이제 TAP JSON과 직접 SDK 두 경로 모두 수량에 부호가 붙는다 ([#1209](https://github.com/HKUDS/Vibe-Trading/pull/1209)); OKX/Futu는 거부된 API 호출을 "빈 장부, `status: ok`"로 뭉개 위임 게이트가 빈 장부에 대고 한도를 평가했다 — 이제 명시적 오류 봉투를 반환하고 게이트는 fail-closed 한다 ([#1212](https://github.com/HKUDS/Vibe-Trading/pull/1212)). 둘 다 [#1207](https://github.com/HKUDS/Vibe-Trading/issues/1207) 감사 로드맵의 Phase 0. **수정:** 조합형 purged CV가 비연속 테스트 블록을 한 구간으로 취급해 그 사이 훈련 관측치를 전부 purge했다; 이제 세그먼트별로 purge하고 훈련 데이터가 빈 fold는 예외를 던진다 ([#1204](https://github.com/HKUDS/Vibe-Trading/pull/1204)); 신용리스크 함수는 NaN/inf 입력을 거부하며 NaN 점수나 "회색 지대" 판정을 반환하지 않는다 ([#1215](https://github.com/HKUDS/Vibe-Trading/pull/1215), [#1214](https://github.com/HKUDS/Vibe-Trading/issues/1214) 닫음). **신규:** swarm 워커 재시도가 상한 있는 equal-jitter 백오프로 바뀌었다 ([#1210](https://github.com/HKUDS/Vibe-Trading/pull/1210), [#1208](https://github.com/HKUDS/Vibe-Trading/issues/1208)을 향해); `vibe-trading --swarm-retry <run_id>` / `/swarm retry`로 실패한 실행을 다시 돌리고 `--resume`으로 완료된 태스크를 유지한다 ([#1194](https://github.com/HKUDS/Vibe-Trading/pull/1194)). [@he-yufeng](https://github.com/he-yufeng)、[@santhreal](https://github.com/santhreal)、[@Robin1987China](https://github.com/Robin1987China)、[@pengpengyi92](https://github.com/pengpengyi92)、[@SiMinus](https://github.com/SiMinus) 님들께 감사드립니다!
- **2026-08-24** 🔗 **IBKR 공식 MCP가 "도구 목록만 보이던" 상태에서 실제로 쓰이는 읽기 전용 포트폴리오 소스로; 스케줄링에는 혼자서는 실행할 수 없는 에이전트 도구 추가**: [#1178](https://github.com/HKUDS/Vibe-Trading/pull/1178)이 URL을 고쳤지만 IBKR 게이트웨이는 로그인 전에 FastMCP 기본 OAuth 클라이언트 등록을 거부했습니다. IBKR 전용 OAuth 프로바이더 — 브라우저형 헤더, `token_endpoint_auth_method: none`, 고정 콜백 포트, 만료 등록 복구를 MCP 호스트가 `api.ibkr.com`일 때만 적용 — 가 인증을 완료하고([#1186](https://github.com/HKUDS/Vibe-Trading/pull/1186)), 실계좌로 검증된 `get_account_summary` / `get_account_positions` 도구가 범용 계좌/포지션 읽기를 지원하게 되어 `ibkr-live-official-mcp-readonly`가 `/portfolio`의 유효한 소스가 되었습니다([#1190](https://github.com/HKUDS/Vibe-Trading/pull/1190), [#1126](https://github.com/HKUDS/Vibe-Trading/issues/1126) 종료). **신규:** 에이전트에게 보이는 스케줄링 도구는 `scheduled_research` 하나뿐 — `propose_create`/`propose_cancel`은 현재 사용 중인 화면에서 확인하기 전까지 작업 저장소를 건드리지 않습니다(Web 확인 카드, CLI `y/N`, IM에서는 정확히 `confirm`/`确认`으로 답장). 전달 대상은 운영자가 구성한 불투명 참조로 원시 chat/user id를 절대 노출하지 않으며, `end_at`이 지난 작업은 만료되어 다시 실행되지 않습니다([#1187](https://github.com/HKUDS/Vibe-Trading/pull/1187)). **수정:** comps와 3대 재무제표 모델이 산술에 들어가는 모든 입구에서 비유한 입력을 거부합니다 — 이전에는 NaN 동종업체 지표가 배수 분포에 *포함되어* 중앙값을 NaN으로 끌고 갔고, `abs(nan) > tolerance`는 `False`라서 NaN 대차대조표가 하드 검사를 통과했습니다([#1184](https://github.com/HKUDS/Vibe-Trading/pull/1184), [#1183](https://github.com/HKUDS/Vibe-Trading/issues/1183) 종료); `get_market_data`는 잘못된 호출로 로더 폴백 체인을 소모하기 전에 codes/날짜/source/interval을 검증하고, source 열거형이 등록된 6개 로더를 조용히 거부하던 문제도 사라졌습니다([#1185](https://github.com/HKUDS/Vibe-Trading/pull/1185)); Feishu QR 로그인은 딱 한 번만 내려오는 앱 자격 증명을 원자적으로, 소유자 전용 권한으로 저장합니다([#1188](https://github.com/HKUDS/Vibe-Trading/pull/1188)); risk-analysis 스킬 문서의 역사적 VaR 순서통계량 공식이 코드와 일치하게 되었습니다([#1189](https://github.com/HKUDS/Vibe-Trading/pull/1189)). [@sykuang](https://github.com/sykuang)、[@goatyyc](https://github.com/goatyyc)、[@AirHua-byte](https://github.com/AirHua-byte)、[@Robin1987China](https://github.com/Robin1987China)、[@cgycorey](https://github.com/cgycorey)、[@youngjincho02-arch](https://github.com/youngjincho02-arch) 님들께 감사드립니다!
- **2026-08-23** 🔌 **IBKR MCP 시드가 잘못된 URL을 가리키던 문제와, LLM 어댑터 하나를 닫으면 전부 닫히던 문제**: 공식 IBKR 읽기 전용 MCP 프로필 시드, README, `SKILL.md` 모두 `https://api.ibkr.com/v1/api/mcp`를 가리켰지만, IBKR 자체 AI 연동 페이지가 공개한 엔드포인트는 `https://api.ibkr.com/v1/api/mcp-public`입니다. 시드, README 6종, `SKILL.md`가 이제 모두 이 주소를 가리킵니다. `agent.json`에 예전 URL이 남아 있다면 `vibe-trading connector configure ibkr-live-official-mcp-readonly --yes`를 다시 실행하세요. IBKR 게이트웨이가 OAuth 클라이언트 등록을 거부하는 단계는 [#1126](https://github.com/HKUDS/Vibe-Trading/issues/1126)에서 계속 추적합니다 ([#1178](https://github.com/HKUDS/Vibe-Trading/pull/1178)). **수정:** `ChatLLM.close()`가 LangChain의 프로세스 전역 캐시 HTTPX 클라이언트까지 닫아, 제목 생성이나 이미지 인식 호출이 한 번 끝나면 이후 모든 요청이 재시작 전까지 "client has been closed"로 실패했습니다. 이제 Vibe-Trading이 직접 만든 전송 계층만 닫습니다 ([#1182](https://github.com/HKUDS/Vibe-Trading/pull/1182)); 응답 스트리밍 도중 서비스가 재시작되면 출력된 텍스트가 사라지고 attempt가 영원히 *running* 상태로 남았습니다. 이제 부분 응답을 체크포인트로 저장하고 다음 시작 시 명시적인 *interrupted* 대화 기록으로 복원합니다 ([#1180](https://github.com/HKUDS/Vibe-Trading/pull/1180)). **신규:** 웹 채팅에서 파일 선택, 드래그 앤 드롭, 클립보드 붙여넣기로 한 턴에 최대 5개 파일을 첨부할 수 있습니다 ([#1179](https://github.com/HKUDS/Vibe-Trading/pull/1179)). [@c020627](https://github.com/c020627), [@AirHua-byte](https://github.com/AirHua-byte) 님 감사합니다!
- **2026-08-22** 💼 **포트폴리오 페이지: 여러 브로커의 보유 종목을 읽기 전용으로 한눈에**: 읽기 전용 커넥터 프로필(`account.read` + `positions.read`를 가진 연결 인스턴스; IBKR 공식 MCP 프로필은 아직 대상 아님)을 고르면 새 `/portfolio` 페이지가 이를 불변 스냅샷으로 집계합니다 — 보유 종목마다 출처 표기, USD/CNY 평가, CSV 내보내기, 히스토리 차트 포함. 새로 고침에 실패한 소스는 **오류로 보고되고 합계에서 제외**되며 — 지난 캐시로 대체하지 않고 — 스냅샷은 불완전으로 표시됩니다. `portfolio_summary` 도구는 기존 `portfolio_risk_xray`에 그대로 넘길 수 있는 `risk_xray_args`를 반환하고, `vibe-trading portfolio show|refresh|sources`는 같은 스냅샷을 터미널에 출력합니다. 직접 작성한 읽기 전용 커넥터 플러그인은 `~/.vibe-trading/connectors/`에 둡니다(쓰기 능력을 선언한 매니페스트는 거부, 비밀값은 `[keyring]` extra를 통해 OS 키체인으로). 이 경로에서는 어떤 것도 주문을 낼 수 없습니다([#1072](https://github.com/HKUDS/Vibe-Trading/pull/1072), [#1171](https://github.com/HKUDS/Vibe-Trading/issues/1171)을 향해). **수정:** Alpha Zoo 팩터 13개가 수익률 계산 전에 결측 종가를 앞으로 채워 데이터 결측을 유한한 "0% 수익률"로 만들었습니다 — 이제 결측은 `NaN`으로 남습니다([#1172](https://github.com/HKUDS/Vibe-Trading/pull/1172)). 같은 http/sse 서버의 서로 무관한 MCP 클라이언트가 하나의 폴백 연구 목표 세션을 공유했습니다([#1173](https://github.com/HKUDS/Vibe-Trading/pull/1173)). 메모리 GC와 압축이 오래된 FTS 행과 고아 relation 사이드카를 남겼습니다([#1174](https://github.com/HKUDS/Vibe-Trading/pull/1174)). `cancel_run()`이 스트리밍 중인 swarm worker에 닿지 않았습니다 — 이제 스트림을 중단하고 그 턴의 도구 호출을 건너뛰며 *취소됨* 태스크로 기록됩니다([#1175](https://github.com/HKUDS/Vibe-Trading/pull/1175)). MCP `get_research_reports`가 `beginTime`/`endTime`을 버렸습니다([#1176](https://github.com/HKUDS/Vibe-Trading/pull/1176)). `get_options_chain`이 다른 주기의 만기에 `ok: true`와 다른 날짜의 계약을 돌려줬습니다([#1177](https://github.com/HKUDS/Vibe-Trading/pull/1177)). 기여해 주신 [@goatyyc](https://github.com/goatyyc), [@Shizoqua](https://github.com/Shizoqua), [@cgycorey](https://github.com/cgycorey)에게 감사드립니다.
diff --git a/README_zh.md b/README_zh.md
index f2b261e16..e23c9ae02 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -52,12 +52,13 @@
> ⚠️ **安全警告:** X 账号 `VibeTrading_HKU`、Virtuals 项目 `101845` 及代币合约 `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` 均非 Vibe-Trading 官方。我们从未发行或背书任何代币或 meme 币。请勿购买、连接钱包或签名。[详细说明](SECURITY.md#official-channels--impersonation)。
+- **2026-08-28** 📏 **崩掉的回测,和悄悄多算了一年的回测**:v0.1.14 上每一个跨市场回测都会崩——runner 对跨市场篮子刻意传 `bars_per_year=None`,而新的风险 X 光直接对它调用 `math.sqrt`。另有两处消费者存在同样的缺口;四处现在统一走同一个按跨度推导的年化因子([#1239](https://github.com/HKUDS/Vibe-Trading/pull/1239),closes [#1237](https://github.com/HKUDS/Vibe-Trading/issues/1237))。更安静的那个:长回看策略需要**你所要求区间之前**的 K 线,于是 agent 把 `start_date` 前移一年来喂 MA200——然后把这一年也算进了业绩。号称十年的回测实际报了十一年,多出那一年的成交、CAGR 和基准全被折算进去,不报错,指标之间还自洽。现在 `warmup_bars`(或 `evaluation_start_date`)把数据窗口和评估窗口分开:预热 K 线只用来喂指标,其余一概不碰([#1240](https://github.com/HKUDS/Vibe-Trading/issues/1240))。**新增:** `quantlib` 增加 Heston (1993) 随机波动率定价、分层风险平价、高斯与阿基米德 Copula、微观结构估计量(VPIN、Roll、Amihud、Kyle)和有限差分障碍期权 Greeks——23 个模块共 306 个经测试的函数([#1195](https://github.com/HKUDS/Vibe-Trading/pull/1195)–[#1198](https://github.com/HKUDS/Vibe-Trading/pull/1198)、[#1203](https://github.com/HKUDS/Vibe-Trading/pull/1203))。**修复:** 8 条 skill 参考链接指向 `read_file` 打不开的路径,这些文档对 agent 一直在静默加载失败。感谢 [@cgycorey](https://github.com/cgycorey)、[@santhreal](https://github.com/santhreal)、[@turtle696966969696](https://github.com/turtle696966969696) 和 [@wanderkiller](https://github.com/wanderkiller)!
- **2026-08-27** 🛑 **kill-switch 清仓扫单挺过重启,也不再轻信不稳的券商连接**:halt 期间,撤单+平仓扫单把券商的任何响应都当成功——但 MCP 适配层会把失败调用转成 `{"status": "error"}` 信封,于是一次断线就能留下一份看起来合规的审计记录,而挂单其实还活着;现在两个阶段都对错误信封 fail-closed([#1232](https://github.com/HKUDS/Vibe-Trading/pull/1232))。扫单的「只发一次」闩锁原先只在内存里:平仓单还在飞时重启进程,会把整轮扫单重放一遍——每个持仓再来一张市价单,足以把多头账户打成净空头;闩锁现在持久化在 HALT 哨兵旁并绑定该次 halt,清除后再触发仍会重新武装([#1233](https://github.com/HKUDS/Vibe-Trading/pull/1233))。**新增**:每个市场的数据源回退顺序在 *Settings → Data Source Priority* 里可见、可重排——热生效、按市场持久化(`MARKET_DATA_ORDER_*`),且只允许重排:增删数据源一律拒绝,不设覆盖时默认顺序分毫不动([#1231](https://github.com/HKUDS/Vibe-Trading/pull/1231));Binance USD-M 对账结果落为防篡改的漂移证据产物——严格 JSON,快照不完整或来源不支持即 fail-closed,无任何下单面([#1230](https://github.com/HKUDS/Vibe-Trading/pull/1230),推进 [#1030](https://github.com/HKUDS/Vibe-Trading/issues/1030))。感谢 [@he-yufeng](https://github.com/he-yufeng)、[@sambazhu](https://github.com/sambazhu)、[@honginp](https://github.com/honginp)!
- **2026-08-26** ♻️ **实盘 Alpaca 下单丢失券商响应不再是悬案;黄金回测不再零摩擦**:下单闸门在写 broker 前先持久化这笔提交的所有权,恢复只认精确 `client_order_id`,成交按带符号仓位增量归因,任何矛盾直接 HALT——恢复路径绝不重发([#1213](https://github.com/HKUDS/Vibe-Trading/pull/1213)、[#1221](https://github.com/HKUDS/Vibe-Trading/pull/1221)、[#1222](https://github.com/HKUDS/Vibe-Trading/pull/1222))。**修复:** 贵金属沿用外汇 pip/手数约定,黄金点差成本小了约 1460 倍、1000 盎司以下仓位被静默归零([#1226](https://github.com/HKUDS/Vibe-Trading/pull/1226));富途 HKD 持仓被当成 USD 估值,虚高约一个 USD/HKD 汇率([#1228](https://github.com/HKUDS/Vibe-Trading/pull/1228));Shadow Account 读的是 runner 从不产出的指标键,成功回测一律报 PnL = 0.00([#1217](https://github.com/HKUDS/Vibe-Trading/pull/1217));流式 LLM 调用从不请求用量,swarm 输出 token 少报约 18–36 倍([#1225](https://github.com/HKUDS/Vibe-Trading/pull/1225))。**新增:** Binance 只读 USD-M 账户快照(可选开启)——仅两个白名单签名读端点、无任何下单面([#1229](https://github.com/HKUDS/Vibe-Trading/pull/1229),朝向 [#1030](https://github.com/HKUDS/Vibe-Trading/issues/1030));组合页 OAuth 重连改在受限子进程运行,不再卡死 Web 进程或占住回调端口([#1211](https://github.com/HKUDS/Vibe-Trading/pull/1211))。感谢 [@Elfsa-Miranda](https://github.com/Elfsa-Miranda)、[@P1Piyush](https://github.com/P1Piyush)、[@JaxonHu1024](https://github.com/JaxonHu1024)、[@he-yufeng](https://github.com/he-yufeng)、[@honginp](https://github.com/honginp)、[@goatyyc](https://github.com/goatyyc)!
-- **2026-08-25** 🛡️ **堵上实盘闸门的两个 fail-open;purged CV 不再清空测试块之间的训练集**:Alpaca 空头被记成*正*敞口(`qty` 恒为绝对值、方向在 `side`),越卖 `max_total_exposure_usd` 反而越松——现在 TAP JSON 与直连 SDK 两条路径的数量都带符号([#1209](https://github.com/HKUDS/Vibe-Trading/pull/1209));OKX/Futu 会把被拒绝的 API 调用压平成「空账本,`status: ok`」,让授权闸门对着空仓评估限额——现在返回明确错误信封,闸门据此 fail-closed([#1212](https://github.com/HKUDS/Vibe-Trading/pull/1212))。两者同属 [#1207](https://github.com/HKUDS/Vibe-Trading/issues/1207) 审计路线图的 Phase 0。**修复:** 组合式 purged CV 把非连续测试块当成一整段、清掉它们之间的全部训练观测;现在按段独立 purge,训练集被清空的折直接抛错([#1204](https://github.com/HKUDS/Vibe-Trading/pull/1204));信用风险函数拒绝 NaN/inf 输入,不再返回 NaN 分数或「灰色地带」结论([#1215](https://github.com/HKUDS/Vibe-Trading/pull/1215),关闭 [#1214](https://github.com/HKUDS/Vibe-Trading/issues/1214))。**新增:** swarm worker 重试改为封顶 equal-jitter 退避([#1210](https://github.com/HKUDS/Vibe-Trading/pull/1210),朝向 [#1208](https://github.com/HKUDS/Vibe-Trading/issues/1208));`vibe-trading --swarm-retry <run_id>` / `/swarm retry` 可重跑失败运行,`--resume` 保留已完成任务([#1194](https://github.com/HKUDS/Vibe-Trading/pull/1194))。感谢 [@he-yufeng](https://github.com/he-yufeng)、[@santhreal](https://github.com/santhreal)、[@Robin1987China](https://github.com/Robin1987China)、[@pengpengyi92](https://github.com/pengpengyi92)、[@SiMinus](https://github.com/SiMinus)!
<details>
<summary>更早的新闻</summary>
+- **2026-08-25** 🛡️ **堵上实盘闸门的两个 fail-open;purged CV 不再清空测试块之间的训练集**:Alpaca 空头被记成*正*敞口(`qty` 恒为绝对值、方向在 `side`),越卖 `max_total_exposure_usd` 反而越松——现在 TAP JSON 与直连 SDK 两条路径的数量都带符号([#1209](https://github.com/HKUDS/Vibe-Trading/pull/1209));OKX/Futu 会把被拒绝的 API 调用压平成「空账本,`status: ok`」,让授权闸门对着空仓评估限额——现在返回明确错误信封,闸门据此 fail-closed([#1212](https://github.com/HKUDS/Vibe-Trading/pull/1212))。两者同属 [#1207](https://github.com/HKUDS/Vibe-Trading/issues/1207) 审计路线图的 Phase 0。**修复:** 组合式 purged CV 把非连续测试块当成一整段、清掉它们之间的全部训练观测;现在按段独立 purge,训练集被清空的折直接抛错([#1204](https://github.com/HKUDS/Vibe-Trading/pull/1204));信用风险函数拒绝 NaN/inf 输入,不再返回 NaN 分数或「灰色地带」结论([#1215](https://github.com/HKUDS/Vibe-Trading/pull/1215),关闭 [#1214](https://github.com/HKUDS/Vibe-Trading/issues/1214))。**新增:** swarm worker 重试改为封顶 equal-jitter 退避([#1210](https://github.com/HKUDS/Vibe-Trading/pull/1210),朝向 [#1208](https://github.com/HKUDS/Vibe-Trading/issues/1208));`vibe-trading --swarm-retry <run_id>` / `/swarm retry` 可重跑失败运行,`--resume` 保留已完成任务([#1194](https://github.com/HKUDS/Vibe-Trading/pull/1194))。感谢 [@he-yufeng](https://github.com/he-yufeng)、[@santhreal](https://github.com/santhreal)、[@Robin1987China](https://github.com/Robin1987China)、[@pengpengyi92](https://github.com/pengpengyi92)、[@SiMinus](https://github.com/SiMinus)!
- **2026-08-24** 🔗 **IBKR 官方 MCP 从「只能列工具」变成可用的只读组合数据源;调度获得一个无法独自行动的 agent 工具**:[#1178](https://github.com/HKUDS/Vibe-Trading/pull/1178) 修正了 URL,但 IBKR 网关仍在登录前拒绝 FastMCP 默认的 OAuth 客户端注册。新的 IBKR 专用 OAuth provider——浏览器特征请求头、`token_endpoint_auth_method: none`、固定回调端口、过期注册自动清理,且仅当 MCP 主机为 `api.ibkr.com` 时生效——完成了授权([#1186](https://github.com/HKUDS/Vibe-Trading/pull/1186));真实账户验证过的 `get_account_summary` / `get_account_positions` 工具现在支撑通用账户/持仓读取,`ibkr-live-official-mcp-readonly` 因此成为合格的 `/portfolio` 数据源([#1190](https://github.com/HKUDS/Vibe-Trading/pull/1190),关闭 [#1126](https://github.com/HKUDS/Vibe-Trading/issues/1126))。**新增:** agent 只见一个调度工具 `scheduled_research`——它的 `propose_create`/`propose_cancel` 在你于所在界面确认之前绝不触碰任务存储(Web 确认卡片、CLI `y/N`、IM 里准确回复 `confirm`/`确认`),投递目标是运营方配置的不透明引用、永不暴露原始 chat/user id,任务过了 `end_at` 即过期不再触发([#1187](https://github.com/HKUDS/Vibe-Trading/pull/1187))。**修复:** comps 与三表模型现在在数值进入运算的每个入口拒绝非有限输入——此前 NaN 的同业指标会被*计入*倍数分布、把中位数拖成 NaN,而 `abs(nan) > tolerance` 为 `False`,NaN 资产负债表能安然通过硬校验([#1184](https://github.com/HKUDS/Vibe-Trading/pull/1184),关闭 [#1183](https://github.com/HKUDS/Vibe-Trading/issues/1183));`get_market_data` 在烧掉整条 loader 回退链之前先校验 codes/日期/source/interval,其 source 枚举也不再静默拒绝六个已注册的数据源([#1185](https://github.com/HKUDS/Vibe-Trading/pull/1185));飞书扫码登录现在会把只下发一次的应用凭证原子化、仅属主可读地持久化,而不是报告一个进程一退出就失效的「成功」([#1188](https://github.com/HKUDS/Vibe-Trading/pull/1188));risk-analysis skill 文档里的历史 VaR 顺序统计量公式与代码对齐([#1189](https://github.com/HKUDS/Vibe-Trading/pull/1189))。感谢 [@sykuang](https://github.com/sykuang)、[@goatyyc](https://github.com/goatyyc)、[@AirHua-byte](https://github.com/AirHua-byte)、[@Robin1987China](https://github.com/Robin1987China)、[@cgycorey](https://github.com/cgycorey)、[@youngjincho02-arch](https://github.com/youngjincho02-arch)!
- **2026-08-23** 🔌 **IBKR MCP 种子配置指错了 URL;关掉一个 LLM 适配器会把所有适配器一起关掉**:官方 IBKR 只读 MCP 配置种子、README 和 `SKILL.md` 写的都是 `https://api.ibkr.com/v1/api/mcp`,而 IBKR 自己的 AI 集成页面公布的端点是 `https://api.ibkr.com/v1/api/mcp-public`——种子、六份 README 和 `SKILL.md` 现在统一指向它;若你的 `agent.json` 里还是旧 URL,请重新执行 `vibe-trading connector configure ibkr-live-official-mcp-readonly --yes`。IBKR 网关拒绝 OAuth 客户端注册这一步仍在 [#1126](https://github.com/HKUDS/Vibe-Trading/issues/1126) 跟进([#1178](https://github.com/HKUDS/Vibe-Trading/pull/1178))。**修复:** `ChatLLM.close()` 会把 LangChain 进程级缓存的 HTTPX client 一并关掉,一次标题生成或图片识别调用结束后,后续所有请求都报 "client has been closed" 直到重启——现在只关闭 Vibe-Trading 自己创建的传输层([#1182](https://github.com/HKUDS/Vibe-Trading/pull/1182));回复流式输出到一半服务重启,已输出的文字会丢失、attempt 永远停在 *running*——现在部分回复会落盘 checkpoint,下次启动时作为明确的 *interrupted* 对话记录恢复([#1180](https://github.com/HKUDS/Vibe-Trading/pull/1180))。**新增:** Web 聊天每轮最多可通过文件选择、拖放或剪贴板粘贴附加五个文件([#1179](https://github.com/HKUDS/Vibe-Trading/pull/1179))。感谢 [@c020627](https://github.com/c020627) 和 [@AirHua-byte](https://github.com/AirHua-byte)!
- **2026-08-22** 💼 **持仓页:跨券商只读汇总你的持仓**:选几个只读连接器 profile(基于 `account.read` + `positions.read` 的连接实例;IBKR 官方 MCP profile 暂不可选),新的 `/portfolio` 页就把它们汇总成不可变快照——每条持仓带来源、按 USD/CNY 估值、可导出 CSV、有历史曲线。刷新失败的源会被**报为错误并从总额中剔除**——绝不拿上次缓存顶替——同时快照标为不完整。`portfolio_summary` 工具返回可直接喂给现有 `portfolio_risk_xray` 的 `risk_xray_args`;终端里 `vibe-trading portfolio show|refresh|sources` 打印同一份快照。自己写的只读连接器插件放在 `~/.vibe-trading/connectors/`(manifest 声明任何写能力即被拒绝;密钥通过 `[keyring]` extra 进系统钥匙串),这条路径上没有任何东西能下单([#1072](https://github.com/HKUDS/Vibe-Trading/pull/1072),朝向 [#1171](https://github.com/HKUDS/Vibe-Trading/issues/1171))。**修复:** 13 个 Alpha Zoo 因子在算收益前先前向填充了缺失收盘价,把数据缺口变成有限的「0% 收益」——现在缺口保持 `NaN`([#1172](https://github.com/HKUDS/Vibe-Trading/pull/1172));同一 http/sse 服务器上互不相关的 MCP 客户端共用一个兜底研究目标会话([#1173](https://github.com/HKUDS/Vibe-Trading/pull/1173));记忆 GC 与压缩遗留过期 FTS 行和孤儿关系 sidecar([#1174](https://github.com/HKUDS/Vibe-Trading/pull/1174));`cancel_run()` 到不了正在流式输出的 swarm worker——现在会打断流、跳过该轮工具调用并记为*已取消*任务([#1175](https://github.com/HKUDS/Vibe-Trading/pull/1175));MCP `get_research_reports` 丢掉了 `beginTime`/`endTime`([#1176](https://github.com/HKUDS/Vibe-Trading/pull/1176));`get_options_chain` 对错周期到期日返回 `ok: true` 外加另一日期的合约([#1177](https://github.com/HKUDS/Vibe-Trading/pull/1177))。感谢 [@goatyyc](https://github.com/goatyyc)、[@Shizoqua](https://github.com/Shizoqua)、[@cgycorey](https://github.com/cgycorey)!