Skip to content

"Vibe-Trading: Your Personal Trading Agent"

docs(readme): 2026-08-24 news entry + mirror #1187/#1188 docs across the six READMEs

Haozhe Wu02ea205a8c61
diff --git a/README.md b/README.md
index 20f54ddd7..c1a96567d 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-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)!
-- **2026-08-21** ⏱️ **Runs that hung forever**: A `bash` timeout killed the shell but not the grandchildren holding its pipe handles, so a run sat "running" for 20+ minutes. Commands now spawn in their own process group, a timeout kills the whole tree, a stall watchdog ends a run making no forward progress, and compaction stopped discarding the model's own verification records ([#1169](https://github.com/HKUDS/Vibe-Trading/pull/1169)). **Fixed:** multi-year Tencent history silently truncated at 500 bars ([#1154](https://github.com/HKUDS/Vibe-Trading/pull/1154)). **New:** swarm runs replay only their failed subgraph ([#1158](https://github.com/HKUDS/Vibe-Trading/pull/1158), closes [#1157](https://github.com/HKUDS/Vibe-Trading/issues/1157)); Market Watch shows each monitor's latest verdict inline ([#1156](https://github.com/HKUDS/Vibe-Trading/pull/1156), closes [#943](https://github.com/HKUDS/Vibe-Trading/issues/943)); `quantlib` reaches 286 tested functions ([#1159](https://github.com/HKUDS/Vibe-Trading/pull/1159)–[#1168](https://github.com/HKUDS/Vibe-Trading/pull/1168)). Thanks [@wiliao](https://github.com/wiliao), [@cgycorey](https://github.com/cgycorey), [@he-yufeng](https://github.com/he-yufeng), [@BigFishEmily](https://github.com/BigFishEmily), [@santhreal](https://github.com/santhreal), [@SiMinus](https://github.com/SiMinus), and [@alinv0](https://github.com/alinv0)!
<details>
<summary>Earlier news</summary>
+- **2026-08-21** ⏱️ **Runs that hung forever**: A `bash` timeout killed the shell but not the grandchildren holding its pipe handles, so a run sat "running" for 20+ minutes. Commands now spawn in their own process group, a timeout kills the whole tree, a stall watchdog ends a run making no forward progress, and compaction stopped discarding the model's own verification records ([#1169](https://github.com/HKUDS/Vibe-Trading/pull/1169)). **Fixed:** multi-year Tencent history silently truncated at 500 bars ([#1154](https://github.com/HKUDS/Vibe-Trading/pull/1154)). **New:** swarm runs replay only their failed subgraph ([#1158](https://github.com/HKUDS/Vibe-Trading/pull/1158), closes [#1157](https://github.com/HKUDS/Vibe-Trading/issues/1157)); Market Watch shows each monitor's latest verdict inline ([#1156](https://github.com/HKUDS/Vibe-Trading/pull/1156), closes [#943](https://github.com/HKUDS/Vibe-Trading/issues/943)); `quantlib` reaches 286 tested functions ([#1159](https://github.com/HKUDS/Vibe-Trading/pull/1159)–[#1168](https://github.com/HKUDS/Vibe-Trading/pull/1168)). Thanks [@wiliao](https://github.com/wiliao), [@cgycorey](https://github.com/cgycorey), [@he-yufeng](https://github.com/he-yufeng), [@BigFishEmily](https://github.com/BigFishEmily), [@santhreal](https://github.com/santhreal), [@SiMinus](https://github.com/SiMinus), and [@alinv0](https://github.com/alinv0)!
- **2026-08-20** 🚀 **v0.1.14 released** ([Release notes](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.14), `pip install -U vibe-trading-ai`): 272 commits and 74 merged pull requests since 0.1.13. **The headline is that a finished backtest is now something you can read rather than a folder of CSVs.** Run Detail grows four tabs — **Factor Research** (IC series with its mean line, IC statistics, quantile-group equity, and a pairwise IC correlation matrix that existed nowhere before), **Positions** (weight pie/treemap on a date slider, sector net-exposure bars, weight-evolution area — the pie is gross composition and the bars are net, so a long/short pair in one sector nets to zero on the bars while both legs stay visible on the pie), **Tearsheet** (monthly-returns heatmap, annual bars, top-5 drawdowns annotated onto the equity curve), and an interactive **research dashboard** with KPIs, benchmark-relative equity, rolling Sharpe and the full trade ledger. All four read artifacts a run already writes — no new pipeline. A new **Options Lab** page adds an expiry payoff diagram, a spot×IV scenario matrix, portfolio Greeks and a live options chain, computed through the same test-pinned engine the MCP tools use. **Install:** Intel Macs can `pip install vibe-trading-ai` again — `smartmoneyconcepts` pulled in `llvmlite`, which ships no macOS x86_64 wheel from 0.46 on, so every Intel install became a CMake source build; it is now the opt-in `[smc]` extra and the stale `<3.14` cap is gone ([#1035](https://github.com/HKUDS/Vibe-Trading/discussions/1035)). **New:** evidence-gated **Strategy Discovery** across the Alpha Zoo and the SDM store, with a population path, read-time freshness (`fresh`/`aging`/`stale`) and stale rows failing closed out of recommendations; scheduled research that **delivers itself** through a leased outbox and persists each monitor's verdict for the Market Watch list; seven read-only **Futu** endpoints; **Vietnam (HOSE)** as a backtest market; offline **USD-M account reconciliation**; **Novita AI** and **GitHub Copilot** providers; a hosted **MetaTrader 5** data source; **Spanish** and **German** locales; and MCP grows to 74 tools. **Correctness:** the test suite stopped escaping into your real config root, where a full run had been appending synthetic `order_rejected` records to the live hash-chained audit ledger; `build_registry()` no longer returns a short tool list in silence; `xirr` survives long-horizon discount underflow and DCF refuses non-finite inputs instead of returning a negative share price; `.VN` symbols stopped executing under China A-share rules; the backtest archive stopped mixing two runs' artifacts; and a broad grounding pass ended a class of false refusals on dates, ordered lists, identity constants in rate formulas, and order lines read as quotes. Thanks @Shizoqua, @shadowinlife, @pengpengyi92, @cgycorey, @ofeksh-tr, @lorenzozanee, @AndyLongest, @zzz607, @wiliao, @jay79-boop, @Robin1987China, @Echoandelementwebsites, @zhiwuyazhe-fjr, @x-lambda, @sykuang, @straun-repo, @nstavros, @ngoanpv, @miguelangelo78, @lukiod, @jax-novita, @honginp, @he-yufeng, @fixXxerTech, @er-s-an, @daviddaco1, @birdxs, @QCYTSN, @549236606-oss and @1psconstructor.
- **2026-08-19** 🔌 **Stalled runs, a per-task connection leak, and Intel Macs that could not install**: A silent provider used to freeze a run — `VIBE_TRADING_LLM_TIMEOUT_SECONDS` (default 300s) now bounds the call, and tool-call markup is never released as a final answer ([#1105](https://github.com/HKUDS/Vibe-Trading/pull/1105)). Every swarm task leaked a pooled HTTP connection ([#1145](https://github.com/HKUDS/Vibe-Trading/pull/1145), closes [#1141](https://github.com/HKUDS/Vibe-Trading/issues/1141)). Also fixed: `vibe-trading show <run_id>` crashing ([#1147](https://github.com/HKUDS/Vibe-Trading/pull/1147), closes [#1146](https://github.com/HKUDS/Vibe-Trading/issues/1146)), overwritten in-flight deliveries ([#1140](https://github.com/HKUDS/Vibe-Trading/pull/1140)), dropped backtest validation evidence ([#1139](https://github.com/HKUDS/Vibe-Trading/pull/1139)), MCP paging ([#1137](https://github.com/HKUDS/Vibe-Trading/pull/1137), [#1138](https://github.com/HKUDS/Vibe-Trading/pull/1138)), and non-finite prediction-market fields ([#1136](https://github.com/HKUDS/Vibe-Trading/pull/1136)). **New:** seven read-only Futu endpoints ([#1135](https://github.com/HKUDS/Vibe-Trading/pull/1135)) and an explicit `Inferred` chip on guessed strategy titles ([#1134](https://github.com/HKUDS/Vibe-Trading/pull/1134)). **Install:** `smartmoneyconcepts` is now the `[smc]` extra — the `llvmlite` it pulled in ships no macOS x86_64 wheel, turning every Intel Mac install into a cmake source build ([#1035](https://github.com/HKUDS/Vibe-Trading/discussions/1035)); the `<3.14` cap goes with it. Thanks [@wiliao](https://github.com/wiliao), [@cgycorey](https://github.com/cgycorey), [@Shizoqua](https://github.com/Shizoqua), [@Echoandelementwebsites](https://github.com/Echoandelementwebsites), [@549236606-oss](https://github.com/549236606-oss), and [@fixXxerTech](https://github.com/fixXxerTech)!
- **2026-08-18** 🈶 **Correct reports stopped being refused, and backtests stopped trading noise**: `\b` is Unicode-aware, so `最` counts as a word character and `(2026-07-14最低)` had no boundary after the day — the date survived the mask and `2026`, `7` and `14` reached the OHLC check as prices no observed range can contain ([#1132](https://github.com/HKUDS/Vibe-Trading/pull/1132), closes [#1122](https://github.com/HKUDS/Vibe-Trading/issues/1122)). Four refusals of the same family went with it: a dash-form trading day (`08-10(一)`), a level stated as a range leaving `-20` behind, a GTC line (`100 @ $3.50`) read as two observed quotes, and a report-style date cell that matched no evidence row at all. **Backtests:** `position_adjustment="hold"` dropped a requested resize in silence, and `"rebalance"` had no drift band — measured, a 0.01% daily move re-pinned a position on 19 of 30 bars, so a strategy with its own `rebalance_freq` traded every bar regardless. Dropped requests are now reported, and `rebalance_tolerance` is the band practitioners mean by "rebalance when weights move more than X", defaulting to `0.0` so no existing run changes. Nineteen industry-neutralized alpha101 alphas had been skipped on every SP500 bench run for want of a sector tag that was already in the table the constituents come from. **New:** a Market Watch monitor can push its briefing to an IM channel once the run finishes, through a persisted outbox that a restart cannot lose and a concurrent sweep cannot double-send ([#942](https://github.com/HKUDS/Vibe-Trading/issues/942)); **German is the seventh UI language** ([#1117](https://github.com/HKUDS/Vibe-Trading/pull/1117)); `run_dcf` refuses non-finite inputs instead of returning a plausible negative share price ([#1121](https://github.com/HKUDS/Vibe-Trading/pull/1121), closes [#1120](https://github.com/HKUDS/Vibe-Trading/issues/1120)); the MCP `get_market_data` response carries the `_provenance` its own docstring promised ([#1131](https://github.com/HKUDS/Vibe-Trading/pull/1131)); a tool module that fails to import is named rather than quietly shrinking the registry ([#1129](https://github.com/HKUDS/Vibe-Trading/pull/1129), closes [#1124](https://github.com/HKUDS/Vibe-Trading/issues/1124)); and offline USD-M account reconciliation compares local risk state with an exchange observation without opening a connection ([#1106](https://github.com/HKUDS/Vibe-Trading/pull/1106)). **Also:** importing `backtest.runner` no longer loads a `.env` into the process, which had made a local full-suite run untrustworthy on any machine that has one ([#1123](https://github.com/HKUDS/Vibe-Trading/issues/1123)). Thanks [@Robin1987China](https://github.com/Robin1987China), [@newgo](https://github.com/newgo), [@er-s-an](https://github.com/er-s-an), [@Shizoqua](https://github.com/Shizoqua), [@1psconstructor](https://github.com/1psconstructor), [@honginp](https://github.com/honginp), [@cgycorey](https://github.com/cgycorey), [@alinv0](https://github.com/alinv0), and [@jelech](https://github.com/jelech)!
@@ -1245,8 +1246,8 @@ The agent sees exactly one scheduling tool, `scheduled_research`. Its read
actions inspect status/jobs/playbooks; `propose_create` and `propose_cancel`
only persist a short-lived confirmation proposal. They never mutate the job
store. Web renders a deterministic confirmation card, CLI asks `y/N`, and IM
-conversations require an exact `确认` or `取消`; only that surface action calls
-the commit endpoint. Create drafts carry `title`, `source`, `schedule`,
+conversations require an exact `confirm` (`确认`) or `cancel` (`取消`); only
+that surface action calls the commit endpoint. Create drafts carry `title`, `source`, `schedule`,
`end_at`, and `delivery`. Once `end_at` passes, the retained job becomes
`expired` and is not dispatched again.
diff --git a/README_ar.md b/README_ar.md
index c65b02126..48bae5d04 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-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)!
-- **2026-08-21** ⏱️ **عمليات تشغيل تتجمّد إلى الأبد**: كانت مهلة `bash` تقتل الـ shell دون الأحفاد الممسكين بمقابض الأنابيب، فيبقى التشغيل «قيد التشغيل» أكثر من 20 دقيقة. الآن تُطلق الأوامر في مجموعة عمليات خاصة وتقتل المهلة الشجرة بأكملها، ويُنهي مراقب توقّف أي تشغيل لا يُحرز تقدّمًا، ولم يعد الضغط يُسقط سجلات تحقق النموذج نفسه ([#1169](https://github.com/HKUDS/Vibe-Trading/pull/1169)). **أُصلح:** كان تاريخ Tencent الممتد لسنوات يُقتطع بصمت عند 500 شمعة ([#1154](https://github.com/HKUDS/Vibe-Trading/pull/1154)). **جديد:** يعيد swarm تنفيذ الرسم الفرعي الفاشل وحده ([#1158](https://github.com/HKUDS/Vibe-Trading/pull/1158)، يغلق [#1157](https://github.com/HKUDS/Vibe-Trading/issues/1157))؛ ويعرض Market Watch أحدث حكم لكل مراقب داخل القائمة ([#1156](https://github.com/HKUDS/Vibe-Trading/pull/1156)، يغلق [#943](https://github.com/HKUDS/Vibe-Trading/issues/943))؛ وبلغت `quantlib` 286 دالة مختبَرة ([#1159](https://github.com/HKUDS/Vibe-Trading/pull/1159)–[#1168](https://github.com/HKUDS/Vibe-Trading/pull/1168)). شكرًا [@wiliao](https://github.com/wiliao)، [@cgycorey](https://github.com/cgycorey)، [@he-yufeng](https://github.com/he-yufeng)، [@BigFishEmily](https://github.com/BigFishEmily)، [@santhreal](https://github.com/santhreal)، [@SiMinus](https://github.com/SiMinus)، [@alinv0](https://github.com/alinv0)!
<details>
<summary>أخبار سابقة</summary>
+- **2026-08-21** ⏱️ **عمليات تشغيل تتجمّد إلى الأبد**: كانت مهلة `bash` تقتل الـ shell دون الأحفاد الممسكين بمقابض الأنابيب، فيبقى التشغيل «قيد التشغيل» أكثر من 20 دقيقة. الآن تُطلق الأوامر في مجموعة عمليات خاصة وتقتل المهلة الشجرة بأكملها، ويُنهي مراقب توقّف أي تشغيل لا يُحرز تقدّمًا، ولم يعد الضغط يُسقط سجلات تحقق النموذج نفسه ([#1169](https://github.com/HKUDS/Vibe-Trading/pull/1169)). **أُصلح:** كان تاريخ Tencent الممتد لسنوات يُقتطع بصمت عند 500 شمعة ([#1154](https://github.com/HKUDS/Vibe-Trading/pull/1154)). **جديد:** يعيد swarm تنفيذ الرسم الفرعي الفاشل وحده ([#1158](https://github.com/HKUDS/Vibe-Trading/pull/1158)، يغلق [#1157](https://github.com/HKUDS/Vibe-Trading/issues/1157))؛ ويعرض Market Watch أحدث حكم لكل مراقب داخل القائمة ([#1156](https://github.com/HKUDS/Vibe-Trading/pull/1156)، يغلق [#943](https://github.com/HKUDS/Vibe-Trading/issues/943))؛ وبلغت `quantlib` 286 دالة مختبَرة ([#1159](https://github.com/HKUDS/Vibe-Trading/pull/1159)–[#1168](https://github.com/HKUDS/Vibe-Trading/pull/1168)). شكرًا [@wiliao](https://github.com/wiliao)، [@cgycorey](https://github.com/cgycorey)، [@he-yufeng](https://github.com/he-yufeng)، [@BigFishEmily](https://github.com/BigFishEmily)، [@santhreal](https://github.com/santhreal)، [@SiMinus](https://github.com/SiMinus)، [@alinv0](https://github.com/alinv0)!
- **2026-08-20** 🚀 **صدر الإصدار v0.1.14** ([ملاحظات الإصدار](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.14)، `pip install -U vibe-trading-ai`): 272 التزامًا و74 طلب دمج منذ 0.1.13. **العنوان هو أن الاختبار الرجعي المكتمل صار شيئًا يمكن قراءته، لا مجلد ملفات CSV.** اكتسبت صفحة Run Detail أربع علامات تبويب — **بحث العوامل** (سلسلة IC اليومية مع خط متوسطها، وإحصاءات IC، ومنحنيات ملكية المجموعات الكمّية، ومصفوفة ارتباط IC لم تكن موجودة في أي مكان من قبل)، و**بنية المراكز** (رسم دائري/شجري للأوزان مع منزلق زمني، وأعمدة الانكشاف الصافي حسب القطاع، ومساحة تطوّر الأوزان — الدائري تركيب **إجمالي** والأعمدة **صافية**، فيتلاشى زوج شراء/بيع في القطاع نفسه إلى صفر على الأعمدة بينما تبقى الساقان مرئيتين على الدائري)، و**Tearsheet** (خريطة حرارية للعوائد الشهرية، وأعمدة سنوية، وأكبر خمسة تراجعات معلَّمة على منحنى الملكية)، و**لوحة بحث** تفاعلية بمؤشرات أداء ومنحنى ملكية مقابل المؤشر ونسبة شارب متدحرجة وسجل الصفقات كاملاً. الأربع تقرأ مخرجات تكتبها عملية التشغيل أصلاً — بلا أي خط بيانات جديد. وتضيف صفحة **Options Lab** الجديدة مخطط العوائد عند الاستحقاق، ومصفوفة سيناريوهات السعر الفوري×التذبذب الضمني، وحروف الإغريق للمحفظة، وسلسلة خيارات حيّة، محسوبة بالمحرك نفسه المثبَّت بالاختبارات الذي تستخدمه أدوات MCP. **التثبيت:** عادت أجهزة Mac بمعالج Intel قادرة على تنفيذ `pip install vibe-trading-ai` — إذ كانت `smartmoneyconcepts` تجرّ معها `llvmlite` التي لم تعد تنشر wheel لـ macOS x86_64 منذ 0.46، فتحوّل كل تثبيت على Intel إلى بناء من المصدر يتطلب CMake؛ صارت الآن إضافة اختيارية باسم `[smc]`، ورُفع معها سقف `<3.14` القديم ([#1035](https://github.com/HKUDS/Vibe-Trading/discussions/1035)). **الجديد:** **اكتشاف الاستراتيجيات ببوابة أدلة** عبر Alpha Zoo ومخزن SDM، مع مسار لتعبئة الأدلة، وحداثة تُحسب عند القراءة (`fresh`/`aging`/`stale`)، وصفوف قديمة تخرج من التوصيات الافتراضية بشكل fail-closed؛ وبحث مجدول **يسلّم نفسه** عبر صندوق صادر بعقد إيجار، ويحفظ حكم كل مراقب لقائمة Market Watch؛ وسبع نقاط نهاية للقراءة فقط من **Futu**؛ و**فيتنام (HOSE)** كسوق للاختبار الرجعي؛ و**مطابقة حساب USD-M** دون اتصال؛ ومزوّدا **Novita AI** و**GitHub Copilot**؛ ومصدر بيانات **MetaTrader 5** مُستضاف؛ ولغتا الواجهة **الإسبانية** و**الألمانية**؛ وارتفاع أدوات MCP إلى 74. **الصحّة:** لم تعد حزمة الاختبارات تفلت من صندوقها الرملي لتكتب في جذر إعداداتك الحقيقي، حيث كان كل تشغيل كامل يُلحق سجلات `order_rejected` مصطنعة بدفتر تدقيق التداول الحي المسلسل بالتجزئة؛ ولم تعد `build_registry()` تعيد قائمة أدوات ناقصة بصمت؛ وصار `xirr` يصمد أمام تدفّق الخصم السفلي على آفاق طويلة، ويرفض DCF المدخلات غير المنتهية بدل إعادة قيمة سهم سالبة؛ وتوقّفت رموز `.VN` عن التنفيذ بقواعد الأسهم الصينية من الفئة A؛ وتوقّف أرشيف الاختبار الرجعي عن خلط مخرجات تشغيلين؛ وأنهت جولة واسعة من إصلاحات grounding صنفًا كاملاً من الرفض الخاطئ المتعلق بالتواريخ والقوائم المرقّمة والثوابت المتطابقة في صيغ المعدلات وأسطر الأوامر التي كانت تُقرأ كأسعار مرصودة. شكراً لـ @Shizoqua و@shadowinlife و@pengpengyi92 و@cgycorey و@ofeksh-tr و@lorenzozanee و@AndyLongest و@zzz607 و@wiliao و@jay79-boop و@Robin1987China و@Echoandelementwebsites و@zhiwuyazhe-fjr و@x-lambda و@sykuang و@straun-repo و@nstavros و@ngoanpv و@miguelangelo78 و@lukiod و@jax-novita و@honginp و@he-yufeng و@fixXxerTech و@er-s-an و@daviddaco1 و@birdxs و@QCYTSN و@549236606-oss و@1psconstructor.
- **2026-08-19** 🔌 **عمليات تشغيل متجمّدة، وتسريب اتصال لكل مهمة، وأجهزة Intel Mac يتعذّر التثبيت عليها**: كان صمت المزوّد يجمّد التشغيل إلى ما لا نهاية — والآن يحدّ `VIBE_TRADING_LLM_TIMEOUT_SECONDS` (الافتراضي 300s) من الاستدعاء، ولم تعد صيغة tool-call تُنشر كإجابة نهائية ([#1105](https://github.com/HKUDS/Vibe-Trading/pull/1105)). كانت كل مهمة في swarm تسرّب اتصال HTTP واحدًا من التجمّع ([#1145](https://github.com/HKUDS/Vibe-Trading/pull/1145)، يغلق [#1141](https://github.com/HKUDS/Vibe-Trading/issues/1141)). وأُصلح أيضًا: تعطّل `vibe-trading show <run_id>` ([#1147](https://github.com/HKUDS/Vibe-Trading/pull/1147)، يغلق [#1146](https://github.com/HKUDS/Vibe-Trading/issues/1146))، والكتابة فوق تسليم قيد التنفيذ ([#1140](https://github.com/HKUDS/Vibe-Trading/pull/1140))، وفقدان أدلة التحقق من الاختبار الخلفي ([#1139](https://github.com/HKUDS/Vibe-Trading/pull/1139))، وترقيم صفحات MCP ([#1137](https://github.com/HKUDS/Vibe-Trading/pull/1137)، [#1138](https://github.com/HKUDS/Vibe-Trading/pull/1138))، والقيم غير المنتهية في أسواق التنبؤ ([#1136](https://github.com/HKUDS/Vibe-Trading/pull/1136)). **جديد:** سبع نقاط نهاية للقراءة فقط من Futu ([#1135](https://github.com/HKUDS/Vibe-Trading/pull/1135))، وشارة `Inferred` صريحة على أسماء الاستراتيجيات المستنتجة ([#1134](https://github.com/HKUDS/Vibe-Trading/pull/1134)). **التثبيت:** أصبح `smartmoneyconcepts` إضافة `[smc]` — إذ إن `llvmlite` الذي يجرّه لا ينشر wheel لـ macOS x86_64، ما كان يحوّل كل تثبيت على Intel Mac إلى بناء من المصدر عبر cmake ([#1035](https://github.com/HKUDS/Vibe-Trading/discussions/1035))؛ ويزول معه الحد `<3.14`. شكرًا [@wiliao](https://github.com/wiliao)، [@cgycorey](https://github.com/cgycorey)، [@Shizoqua](https://github.com/Shizoqua)، [@Echoandelementwebsites](https://github.com/Echoandelementwebsites)، [@549236606-oss](https://github.com/549236606-oss)، و[@fixXxerTech](https://github.com/fixXxerTech)!
- **2026-08-18** 🈶 **لم تعد التقارير الصحيحة تُرفض، ولم تعد الاختبارات الرجعية تتداول الضجيج**: `\b` يراعي Unicode، فيُحتسب `最` حرفًا ضمن الكلمة، ومن ثم لا توجد حدود بعد اليوم في `(2026-07-14最低)`: نجا التاريخ من الإخفاء ووصلت `2026` و`7` و`14` إلى فحص OHLC كأسعار لا يمكن لأي نطاق مرصود أن يحتويها ([#1132](https://github.com/HKUDS/Vibe-Trading/pull/1132)، يغلق [#1122](https://github.com/HKUDS/Vibe-Trading/issues/1122)). ومعه عولجت أربع حالات رفض من العائلة نفسها: يوم تداول بصيغة الشرطة (`08-10(一)`)، ومستوى مكتوب كنطاق يترك `-20` خلفه، وسطر أمر GTC (`100 @ $3.50`) يُقرأ كتسعيرتين مرصودتين، وخلية تاريخ بصيغة التقارير لا تطابق أي صف أدلة. **الاختبارات الرجعية:** كان `position_adjustment="hold"` يُسقط بصمت أي تعديل مطلوب على الحجم، ولم يكن لدى `"rebalance"` أي نطاق انحراف على الإطلاق: بالقياس، حركة يومية بنسبة 0.01% أعادت تثبيت المركز في 19 شمعة من 30، أي أن استراتيجية لها `rebalance_freq` خاص بها كانت تتداول في كل شمعة رغم ذلك. صارت الطلبات المُسقطة تُبلَّغ، و`rebalance_tolerance` هو النطاق الذي يعنيه الممارسون بعبارة «أعد التوازن عندما تتحرك الأوزان أكثر من X»، وقيمته الافتراضية `0.0` فلا يتغير أي تشغيل قائم. كما كانت تسع عشرة صيغة alpha101 محايدة قطاعيًا تُتخطى في كل اختبار SP500 بسبب غياب وسم القطاع، وهو موجود أصلًا في الجدول الذي تأتي منه المكوّنات. **جديد:** يمكن لمراقب Market Watch إرسال ملخصه إلى قناة مراسلة فور انتهاء التشغيل، عبر صندوق صادر مُخزَّن لا تفقده إعادة التشغيل ولا يُكرِّره مسحٌ متزامن ([#942](https://github.com/HKUDS/Vibe-Trading/issues/942))؛ **الألمانية هي لغة الواجهة السابعة** ([#1117](https://github.com/HKUDS/Vibe-Trading/pull/1117))؛ و`run_dcf` يرفض المدخلات غير المنتهية بدل إعادة سعر سهم سالب يبدو معقولًا ([#1121](https://github.com/HKUDS/Vibe-Trading/pull/1121)، يغلق [#1120](https://github.com/HKUDS/Vibe-Trading/issues/1120))؛ وتحمل استجابة `get_market_data` في MCP حقل `_provenance` الذي وعد به توثيقها ([#1131](https://github.com/HKUDS/Vibe-Trading/pull/1131))؛ ووحدة أدوات يفشل استيرادها تُذكر بالاسم بدل تقليص السجل بصمت ([#1129](https://github.com/HKUDS/Vibe-Trading/pull/1129)، يغلق [#1124](https://github.com/HKUDS/Vibe-Trading/issues/1124))؛ وتسوية حساب USD-M دون اتصال تقارن حالة المخاطر المحلية برصدٍ من المنصة دون فتح أي اتصال ([#1106](https://github.com/HKUDS/Vibe-Trading/pull/1106)). **وأيضًا:** لم يعد استيراد `backtest.runner` يحمّل ملف `.env` إلى العملية، وهو ما كان يجعل تشغيل مجموعة الاختبارات محليًا غير جدير بالثقة على أي جهاز يملك واحدًا ([#1123](https://github.com/HKUDS/Vibe-Trading/issues/1123)). شكرًا [@Robin1987China](https://github.com/Robin1987China) و[@newgo](https://github.com/newgo) و[@er-s-an](https://github.com/er-s-an) و[@Shizoqua](https://github.com/Shizoqua) و[@1psconstructor](https://github.com/1psconstructor) و[@honginp](https://github.com/honginp) و[@cgycorey](https://github.com/cgycorey) و[@alinv0](https://github.com/alinv0) و[@jelech](https://github.com/jelech)!
@@ -960,6 +961,8 @@ vibe-trading channels login weixin # تشغيل hook تسجيل الدخول
vibe-trading channels pairing --channel telegram list
```
+يحفظ الأمر `vibe-trading channels login feishu` بيانات اعتماد التطبيق المصرّح بها عبر رمز QR في `~/.vibe-trading/agent.json` بأذونات مقصورة على المالك قبل الإبلاغ عن نجاح تسجيل الدخول.
+
تشمل المحولات المدمجة `websocket` و`telegram` و`slack` و`discord` و`matrix` و`whatsapp` و`signal` و`qq` و`napcat` و`weixin` و`wecom` و`feishu` و`dingtalk` و`msteams` و`email` و`mochat`. يمكنك تثبيت منصة محددة مثل `pip install "vibe-trading-ai[telegram]"` أو تثبيت المجموعة كاملة عبر `pip install "vibe-trading-ai[channels]"`.
**أوامر الشرطة داخل المحادثة** (مستقلة عن القناة، تعمل في جميع المحولات الـ 16):
@@ -1098,7 +1101,11 @@ vibe-trading serve --port 8899
| `POST` | `/channels/pairing/command` | تنفيذ أمر sender-pairing على shared store |
| `POST` | `/scheduled-runs` | إنشاء مهمة بحث مجدولة (interval-ms أو cron) |
| `GET` | `/scheduled-runs` | سرد المهام المجدولة |
+| `GET` | `/scheduled-runs/status` | حالة المنفّذ وأهداف التسليم المُهيّأة |
+| `GET` | `/scheduled-runs/{job_id}` | قراءة مهمة مجدولة واحدة |
| `DELETE` | `/scheduled-runs/{job_id}` | إلغاء مهمة مجدولة |
+| `POST` | `/scheduled-runs/proposals/{proposal_id}/commit` | تأكيد إنشاء/إلغاء اقترحه الوكيل |
+| `POST` | `/scheduled-runs/proposals/{proposal_id}/discard` | تجاهل اقتراح الوكيل |
| `GET` | `/scheduled-runs/playbooks` | سرد قوالب البحث |
| `GET` | `/scheduled-runs/playbooks/{slug}` | عرض قالب واحد ومتغيّراته |
| `POST` | `/scheduled-runs/playbooks/{slug}` | جدولة مهمة من قالب |
@@ -1151,6 +1158,8 @@ curl -X DELETE http://localhost:8899/scheduled-runs/<job_id>
كل تشغيل ينفّذ `prompt` في جلسة agent جديدة (تُوضع معلمات backtest الاختيارية في `config`)، وتُحفظ المهام تحت `~/.vibe-trading/` فتبقى بعد إعادة التشغيل. بدون هذه الراية، تسجّل نقاط `/scheduled-runs` المهام لكن لا يُطلق شيء. أضف `-H "Authorization: Bearer <key>"` لكل طلب عند ضبط `API_AUTH_KEY`.
+يرى الوكيل أداة جدولة واحدة فقط هي `scheduled_research`: إجراءات القراءة تستعرض الحالة/المهام/القوالب، بينما `propose_create` و `propose_cancel` لا تحفظان سوى اقتراح تأكيد قصير الأجل ولا تعدّلان مخزن المهام أبدًا. يعرض الويب بطاقة تأكيد حتمية، ويسأل سطر الأوامر `y/N`، وتتطلب محادثات المراسلة ردًا حرفيًا `confirm` (`确认`) أو `cancel` (`取消`) — وهذه الإجراءات وحدها تستدعي نقطة الالتزام. بعد تجاوز `end_at` تصبح المهمة `expired` ولا تُنفَّذ مجددًا. التسليم محايد للقنوات: هيّئ مراجع أهداف معتمة قابلة لإعادة الاستخدام تحت `channels.deliveryTargets`، فلا يرى الوكيل وواجهات التأكيد سوى ref/label/channel دون معرّف الدردشة/المستخدم الخام لدى المزوّد. حالة التسليم `accepted` عندما ينجح المحوّل دون إيصال من المزوّد، و`sent` فقط عند إرجاع معرّف رسالة من المزوّد (مطبَّق حاليًا من طرف إلى طرف لـ Feishu).
+
يأتي المجدول ومعه **خمسة قوالب بحث جاهزة للجدولة** — `premarket-brief` و`earnings-season-tracker` و`portfolio-checkup` و`a-share-money-flow` و`institutional-holdings-diff`. يصرّح كل قالب بالبيانات التي يحتاجها بلغة طبيعية بدل تسمية أداة بعينها، فيظل صالحاً مع توسّع مجموعة الأدوات، ويُطلب منه **ذكر أي مُدخل مفقود** بدل ملئه من الذاكرة. يمكن الوصول إليها من CLI أو REST أو عبر `/playbook` داخل واجهة TUI:
```bash
diff --git a/README_es.md b/README_es.md
index d482225dd..ab9c70de6 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-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)!
-- **2026-08-21** ⏱️ **Ejecuciones colgadas para siempre**: El tiempo límite de `bash` mataba el shell pero no a los nietos que retenían sus descriptores de tubería, así que una ejecución quedaba «en ejecución» más de 20 minutos. Ahora los comandos se lanzan en su propio grupo de procesos y el tiempo límite mata el árbol completo, un vigilante de estancamiento termina una ejecución que no avanza, y la compactación dejó de descartar los registros de verificación del propio modelo ([#1169](https://github.com/HKUDS/Vibe-Trading/pull/1169)). **Corregido:** el histórico de Tencent de varios años se truncaba en silencio a 500 barras ([#1154](https://github.com/HKUDS/Vibe-Trading/pull/1154)). **Nuevo:** las ejecuciones swarm reproducen solo su subgrafo fallido ([#1158](https://github.com/HKUDS/Vibe-Trading/pull/1158), cierra [#1157](https://github.com/HKUDS/Vibe-Trading/issues/1157)); Market Watch muestra el último veredicto de cada monitor en la lista ([#1156](https://github.com/HKUDS/Vibe-Trading/pull/1156), cierra [#943](https://github.com/HKUDS/Vibe-Trading/issues/943)); `quantlib` alcanza 286 funciones probadas ([#1159](https://github.com/HKUDS/Vibe-Trading/pull/1159)–[#1168](https://github.com/HKUDS/Vibe-Trading/pull/1168)). ¡Gracias [@wiliao](https://github.com/wiliao), [@cgycorey](https://github.com/cgycorey), [@he-yufeng](https://github.com/he-yufeng), [@BigFishEmily](https://github.com/BigFishEmily), [@santhreal](https://github.com/santhreal), [@SiMinus](https://github.com/SiMinus) y [@alinv0](https://github.com/alinv0)!
<details>
<summary>Noticias anteriores</summary>
+- **2026-08-21** ⏱️ **Ejecuciones colgadas para siempre**: El tiempo límite de `bash` mataba el shell pero no a los nietos que retenían sus descriptores de tubería, así que una ejecución quedaba «en ejecución» más de 20 minutos. Ahora los comandos se lanzan en su propio grupo de procesos y el tiempo límite mata el árbol completo, un vigilante de estancamiento termina una ejecución que no avanza, y la compactación dejó de descartar los registros de verificación del propio modelo ([#1169](https://github.com/HKUDS/Vibe-Trading/pull/1169)). **Corregido:** el histórico de Tencent de varios años se truncaba en silencio a 500 barras ([#1154](https://github.com/HKUDS/Vibe-Trading/pull/1154)). **Nuevo:** las ejecuciones swarm reproducen solo su subgrafo fallido ([#1158](https://github.com/HKUDS/Vibe-Trading/pull/1158), cierra [#1157](https://github.com/HKUDS/Vibe-Trading/issues/1157)); Market Watch muestra el último veredicto de cada monitor en la lista ([#1156](https://github.com/HKUDS/Vibe-Trading/pull/1156), cierra [#943](https://github.com/HKUDS/Vibe-Trading/issues/943)); `quantlib` alcanza 286 funciones probadas ([#1159](https://github.com/HKUDS/Vibe-Trading/pull/1159)–[#1168](https://github.com/HKUDS/Vibe-Trading/pull/1168)). ¡Gracias [@wiliao](https://github.com/wiliao), [@cgycorey](https://github.com/cgycorey), [@he-yufeng](https://github.com/he-yufeng), [@BigFishEmily](https://github.com/BigFishEmily), [@santhreal](https://github.com/santhreal), [@SiMinus](https://github.com/SiMinus) y [@alinv0](https://github.com/alinv0)!
- **2026-08-20** 🚀 **Se lanza v0.1.14** ([Notas de la versión](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.14), `pip install -U vibe-trading-ai`): 272 commits y 74 pull requests fusionados desde 0.1.13. **El titular es que un backtest terminado ya es algo que se puede leer, y no una carpeta de CSV.** Run Detail gana cuatro pestañas — **Investigación de factores** (serie diaria de IC con su línea media, estadísticas de IC, curvas de equity por quintiles y una matriz de correlación de IC que no existía en ninguna parte), **Posiciones** (tarta/treemap de pesos con deslizador de fechas, barras de exposición neta por sector y área de evolución de pesos — la tarta es composición **bruta** y las barras son **netas**, así que un par largo/corto en un mismo sector se anula en las barras mientras ambas patas siguen visibles en la tarta), **Tearsheet** (mapa de calor de rentabilidades mensuales, barras anuales y las 5 mayores caídas anotadas sobre la curva de equity) y un **panel de investigación** interactivo con KPIs, equity relativa al índice, Sharpe móvil y el libro de operaciones completo. Las cuatro leen artefactos que la ejecución ya escribe: ninguna canalización de datos nueva. La nueva página **Options Lab** añade un diagrama de pagos al vencimiento, una matriz de escenarios spot×IV, las griegas de la cartera y una cadena de opciones en vivo, calculadas con el mismo motor fijado por tests que usan las herramientas MCP. **Instalación:** los Mac Intel vuelven a poder hacer `pip install vibe-trading-ai` — `smartmoneyconcepts` arrastraba `llvmlite`, que desde 0.46 no publica wheel para macOS x86_64, de modo que toda instalación en Intel se convertía en una compilación desde fuente con CMake; ahora es el extra opcional `[smc]` y el tope obsoleto `<3.14` desaparece ([#1035](https://github.com/HKUDS/Vibe-Trading/discussions/1035)). **Novedades:** **descubrimiento de estrategias con puerta de evidencia** sobre el Alpha Zoo y el almacén SDM, con ruta de población, frescura calculada en lectura (`fresh`/`aging`/`stale`) y filas obsoletas que salen fail-closed de las recomendaciones por defecto; investigación programada que **se entrega sola** a través de una bandeja de salida con lease y que persiste el veredicto de cada monitor para la lista de Market Watch; siete endpoints de solo lectura de **Futu**; **Vietnam (HOSE)** como mercado de backtest; **conciliación de cuenta USD-M** offline; los proveedores **Novita AI** y **GitHub Copilot**; una fuente de datos **MetaTrader 5** alojada; los idiomas **español** y **alemán**; y MCP crece a 74 herramientas. **Corrección de errores:** la suite de tests dejó de escaparse hacia tu raíz de configuración real, donde cada ejecución completa venía añadiendo registros `order_rejected` sintéticos al libro de auditoría encadenado por hash; `build_registry()` ya no devuelve en silencio una lista de herramientas incompleta; `xirr` sobrevive al subdesbordamiento del descuento a largo plazo y el DCF rechaza entradas no finitas en lugar de devolver un valor por acción negativo; los símbolos `.VN` dejaron de ejecutarse bajo reglas de acciones A chinas; el archivo de backtest dejó de mezclar los artefactos de dos ejecuciones; y una amplia pasada de grounding terminó con una clase de rechazos falsos sobre fechas, listas ordenadas, constantes de identidad en fórmulas de tasas y líneas de orden leídas como cotizaciones. Gracias @Shizoqua, @shadowinlife, @pengpengyi92, @cgycorey, @ofeksh-tr, @lorenzozanee, @AndyLongest, @zzz607, @wiliao, @jay79-boop, @Robin1987China, @Echoandelementwebsites, @zhiwuyazhe-fjr, @x-lambda, @sykuang, @straun-repo, @nstavros, @ngoanpv, @miguelangelo78, @lukiod, @jax-novita, @honginp, @he-yufeng, @fixXxerTech, @er-s-an, @daviddaco1, @birdxs, @QCYTSN, @549236606-oss y @1psconstructor.
- **2026-08-19** 🔌 **Ejecuciones congeladas, una conexión filtrada por tarea y Macs Intel que no podían instalar**: un proveedor que se quedaba en silencio congelaba la ejecución indefinidamente; el nuevo `VIBE_TRADING_LLM_TIMEOUT_SECONDS` (300s por defecto) acota la llamada, y el marcado de tool-call nunca se publica como respuesta final ([#1105](https://github.com/HKUDS/Vibe-Trading/pull/1105)). Cada tarea del swarm filtraba una conexión HTTP del pool ([#1145](https://github.com/HKUDS/Vibe-Trading/pull/1145), cierra [#1141](https://github.com/HKUDS/Vibe-Trading/issues/1141)). También corregido: el fallo de `vibe-trading show <run_id>` ([#1147](https://github.com/HKUDS/Vibe-Trading/pull/1147), cierra [#1146](https://github.com/HKUDS/Vibe-Trading/issues/1146)), la sobrescritura de entregas en curso ([#1140](https://github.com/HKUDS/Vibe-Trading/pull/1140)), la pérdida de evidencia de validación del backtest ([#1139](https://github.com/HKUDS/Vibe-Trading/pull/1139)), la paginación MCP ([#1137](https://github.com/HKUDS/Vibe-Trading/pull/1137), [#1138](https://github.com/HKUDS/Vibe-Trading/pull/1138)) y los valores no finitos en mercados de predicción ([#1136](https://github.com/HKUDS/Vibe-Trading/pull/1136)). **Nuevo:** siete endpoints de solo lectura de Futu ([#1135](https://github.com/HKUDS/Vibe-Trading/pull/1135)) y un chip explícito `Inferred` en los títulos de estrategia inferidos ([#1134](https://github.com/HKUDS/Vibe-Trading/pull/1134)). **Instalación:** `smartmoneyconcepts` pasa a ser el extra `[smc]` — el `llvmlite` que arrastraba no publica wheel para macOS x86_64, así que cada instalación en un Mac Intel se convertía en una compilación desde fuente con cmake ([#1035](https://github.com/HKUDS/Vibe-Trading/discussions/1035)); el tope `<3.14` desaparece con él. Gracias [@wiliao](https://github.com/wiliao), [@cgycorey](https://github.com/cgycorey), [@Shizoqua](https://github.com/Shizoqua), [@Echoandelementwebsites](https://github.com/Echoandelementwebsites), [@549236606-oss](https://github.com/549236606-oss) y [@fixXxerTech](https://github.com/fixXxerTech).
- **2026-08-18** 🈶 **Los informes correctos dejaron de rechazarse, y los backtests dejaron de operar ruido**: `\b` reconoce Unicode, así que `最` cuenta como carácter de palabra y `(2026-07-14最低)` no tenía frontera después del día: la fecha sobrevivía al enmascarado y `2026`, `7` y `14` llegaban a la verificación OHLC como precios que ningún rango observado puede contener ([#1132](https://github.com/HKUDS/Vibe-Trading/pull/1132), cierra [#1122](https://github.com/HKUDS/Vibe-Trading/issues/1122)). Con él se fueron otros cuatro rechazos de la misma familia: una fecha de sesión con guion (`08-10(一)`), un nivel expresado como rango que dejaba `-20` detrás, una línea GTC (`100 @ $3.50`) leída como dos cotizaciones observadas, y una celda de fecha con formato de informe que no coincidía con ninguna fila de evidencia. **Backtests:** `position_adjustment="hold"` descartaba en silencio un cambio de tamaño solicitado, y `"rebalance"` no tenía banda de deriva alguna: medido, un movimiento diario del 0,01 % volvía a fijar la posición en 19 de 30 barras, de modo que una estrategia con su propio `rebalance_freq` operaba igualmente en cada barra. Las solicitudes descartadas ahora se informan, y `rebalance_tolerance` es la banda que los profesionales describen como "rebalancear cuando los pesos se muevan más de X"; su valor por defecto `0.0` deja intacta cualquier ejecución existente. Además, diecinueve alfas alpha101 neutralizadas por industria se omitían en cada bench de SP500 por falta de una etiqueta de sector que ya estaba en la tabla de la que provienen los constituyentes. **Novedades:** un monitor de Market Watch puede enviar su informe a un canal de mensajería cuando la ejecución termina, a través de un outbox persistido que un reinicio no puede perder y que un barrido concurrente no puede duplicar ([#942](https://github.com/HKUDS/Vibe-Trading/issues/942)); **el alemán es el séptimo idioma de la interfaz** ([#1117](https://github.com/HKUDS/Vibe-Trading/pull/1117)); `run_dcf` rechaza entradas no finitas en lugar de devolver un precio por acción negativo y verosímil ([#1121](https://github.com/HKUDS/Vibe-Trading/pull/1121), cierra [#1120](https://github.com/HKUDS/Vibe-Trading/issues/1120)); la respuesta de `get_market_data` en MCP incluye el `_provenance` que su propio docstring prometía ([#1131](https://github.com/HKUDS/Vibe-Trading/pull/1131)); un módulo de herramientas que falla al importarse se nombra en vez de reducir el registro en silencio ([#1129](https://github.com/HKUDS/Vibe-Trading/pull/1129), cierra [#1124](https://github.com/HKUDS/Vibe-Trading/issues/1124)); y la conciliación de cuenta USD-M sin conexión compara el estado de riesgo local con una observación del exchange sin abrir ninguna conexión ([#1106](https://github.com/HKUDS/Vibe-Trading/pull/1106)). **También:** importar `backtest.runner` ya no carga un `.env` en el proceso, algo que volvía poco fiable una ejecución local de toda la suite en cualquier máquina que tuviera uno ([#1123](https://github.com/HKUDS/Vibe-Trading/issues/1123)). Gracias [@Robin1987China](https://github.com/Robin1987China), [@newgo](https://github.com/newgo), [@er-s-an](https://github.com/er-s-an), [@Shizoqua](https://github.com/Shizoqua), [@1psconstructor](https://github.com/1psconstructor), [@honginp](https://github.com/honginp), [@cgycorey](https://github.com/cgycorey), [@alinv0](https://github.com/alinv0) y [@jelech](https://github.com/jelech).
@@ -1013,6 +1014,8 @@ vibe-trading channels login weixin # ejecuta el hook de inicio de sesión de
vibe-trading channels pairing --channel telegram list
```
+`vibe-trading channels login feishu` guarda las credenciales de la aplicación autorizadas por QR en `~/.vibe-trading/agent.json` con permisos de archivo solo para el propietario antes de informar que el inicio de sesión fue exitoso.
+
Los adaptadores integrados cubren `websocket`, `telegram`, `slack`, `discord`, `matrix`, `whatsapp`, `signal`, `qq`, `napcat`, `weixin`, `wecom`, `feishu`, `dingtalk`, `msteams`, `email` y `mochat`. Usa extras específicos como `pip install "vibe-trading-ai[telegram]"`, o instala el conjunto completo de canales con `pip install "vibe-trading-ai[channels]"`.
**Comandos slash dentro del chat** (independientes del canal, funcionan en los 16 adaptadores):
@@ -1153,7 +1156,11 @@ vibe-trading serve --port 8899
| `POST` | `/channels/pairing/command` | Ejecutar un comando de emparejamiento de remitente contra el almacén compartido |
| `POST` | `/scheduled-runs` | Crear un job de investigación programada (interval-ms o cron) |
| `GET` | `/scheduled-runs` | Listar jobs programados |
+| `GET` | `/scheduled-runs/status` | Estado del ejecutor y destinos de entrega configurados |
+| `GET` | `/scheduled-runs/{job_id}` | Leer un job programado |
| `DELETE` | `/scheduled-runs/{job_id}` | Cancelar un job programado |
+| `POST` | `/scheduled-runs/proposals/{proposal_id}/commit` | Confirmar una creación/cancelación propuesta por el agente |
+| `POST` | `/scheduled-runs/proposals/{proposal_id}/discard` | Descartar una propuesta del agente |
| `GET` | `/scheduled-runs/playbooks` | Listar las plantillas de investigación |
| `GET` | `/scheduled-runs/playbooks/{slug}` | Mostrar una plantilla, con sus variables |
| `POST` | `/scheduled-runs/playbooks/{slug}` | Programar un job a partir de una plantilla |
@@ -1211,6 +1218,8 @@ curl -X DELETE http://localhost:8899/scheduled-runs/<job_id>
Cada disparo ejecuta el `prompt` a través de una sesión de agente nueva (los parámetros opcionales de backtest van en `config`), y los jobs se persisten bajo `~/.vibe-trading/` para sobrevivir a los reinicios. Sin el flag, los endpoints `/scheduled-runs` siguen registrando jobs, pero ninguno se dispara. Agrega `-H "Authorization: Bearer <key>"` a cada llamada cuando `API_AUTH_KEY` está configurada.
+El agente ve exactamente una herramienta de programación, `scheduled_research`: las acciones de lectura inspeccionan estado/jobs/plantillas, y `propose_create` y `propose_cancel` solo persisten una propuesta de confirmación de corta duración; nunca mutan el almacén de jobs. La web muestra una tarjeta de confirmación determinista, la CLI pregunta `y/N`, y las conversaciones de IM requieren responder exactamente `confirm` (`确认`) o `cancel` (`取消`) — solo esa acción de superficie llama al endpoint de commit. Cuando pasa `end_at`, el job queda `expired` y no vuelve a ejecutarse. La entrega es agnóstica del canal: configura referencias opacas reutilizables bajo `channels.deliveryTargets`; el agente y las superficies de confirmación ven ref/label/channel pero nunca el chat/user id crudo del proveedor. El estado de entrega es `accepted` cuando un adaptador tuvo éxito sin recibo del proveedor, y `sent` solo cuando devolvió un id de mensaje del proveedor (actualmente implementado de extremo a extremo para Feishu).
+
**Cinco plantillas listas para programar** vienen incluidas con el scheduler — `premarket-brief`, `earnings-season-tracker`, `portfolio-checkup`, `a-share-money-flow`, `institutional-holdings-diff`. Cada una expresa en lenguaje natural los datos que necesita un run en lugar de nombrar herramientas, de modo que una plantilla sigue funcionando a medida que crece la superficie de herramientas, y cada una está obligada a señalar un input faltante en lugar de completarlo de memoria. Accede a ellas desde la CLI, mediante REST, o con `/playbook` en la TUI:
```bash
diff --git a/README_ja.md b/README_ja.md
index e3add6d0f..494a2ca08 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-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)。
-- **2026-08-21** ⏱️ **永久に固まる実行**:`bash` のタイムアウトは shell だけを kill し、パイプハンドルを持つ孫プロセスが生き残るため、実行は 20 分以上「実行中」のままでした。現在は専用プロセスグループで起動してツリー全体を kill し、新しいストール監視が前進のない実行を終了させ、圧縮もモデル自身の検証記録を捨てなくなりました([#1169](https://github.com/HKUDS/Vibe-Trading/pull/1169))。**修正:** 複数年の Tencent 履歴が 500 本で暗黙に切り詰められていました([#1154](https://github.com/HKUDS/Vibe-Trading/pull/1154))。**新機能:** swarm 実行は失敗サブグラフのみを再生([#1158](https://github.com/HKUDS/Vibe-Trading/pull/1158)、[#1157](https://github.com/HKUDS/Vibe-Trading/issues/1157) をクローズ)。Market Watch は各モニターの最新判定を一覧内に表示([#1156](https://github.com/HKUDS/Vibe-Trading/pull/1156)、[#943](https://github.com/HKUDS/Vibe-Trading/issues/943) をクローズ)。`quantlib` はテスト済み 286 関数に到達([#1159](https://github.com/HKUDS/Vibe-Trading/pull/1159)–[#1168](https://github.com/HKUDS/Vibe-Trading/pull/1168))。貢献に感謝します:[@wiliao](https://github.com/wiliao)、[@cgycorey](https://github.com/cgycorey)、[@he-yufeng](https://github.com/he-yufeng)、[@BigFishEmily](https://github.com/BigFishEmily)、[@santhreal](https://github.com/santhreal)、[@SiMinus](https://github.com/SiMinus)、[@alinv0](https://github.com/alinv0)。
<details>
<summary>過去のニュース</summary>
+- **2026-08-21** ⏱️ **永久に固まる実行**:`bash` のタイムアウトは shell だけを kill し、パイプハンドルを持つ孫プロセスが生き残るため、実行は 20 分以上「実行中」のままでした。現在は専用プロセスグループで起動してツリー全体を kill し、新しいストール監視が前進のない実行を終了させ、圧縮もモデル自身の検証記録を捨てなくなりました([#1169](https://github.com/HKUDS/Vibe-Trading/pull/1169))。**修正:** 複数年の Tencent 履歴が 500 本で暗黙に切り詰められていました([#1154](https://github.com/HKUDS/Vibe-Trading/pull/1154))。**新機能:** swarm 実行は失敗サブグラフのみを再生([#1158](https://github.com/HKUDS/Vibe-Trading/pull/1158)、[#1157](https://github.com/HKUDS/Vibe-Trading/issues/1157) をクローズ)。Market Watch は各モニターの最新判定を一覧内に表示([#1156](https://github.com/HKUDS/Vibe-Trading/pull/1156)、[#943](https://github.com/HKUDS/Vibe-Trading/issues/943) をクローズ)。`quantlib` はテスト済み 286 関数に到達([#1159](https://github.com/HKUDS/Vibe-Trading/pull/1159)–[#1168](https://github.com/HKUDS/Vibe-Trading/pull/1168))。貢献に感謝します:[@wiliao](https://github.com/wiliao)、[@cgycorey](https://github.com/cgycorey)、[@he-yufeng](https://github.com/he-yufeng)、[@BigFishEmily](https://github.com/BigFishEmily)、[@santhreal](https://github.com/santhreal)、[@SiMinus](https://github.com/SiMinus)、[@alinv0](https://github.com/alinv0)。
- **2026-08-20** 🚀 **v0.1.14 リリース**([リリースノート](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.14)、`pip install -U vibe-trading-ai`):0.1.13 以降 272 コミット・74 件のマージ済み PR。**主役は、終わったバックテストが CSV の山ではなく「読めるもの」になったことです。** Run Detail に 4 つのタブが増えました——**ファクター研究**(平均線付きの日次 IC 系列、IC 統計、分位ポートフォリオの資産曲線、そしてこれまでどこにも無かった IC 相関行列)、**ポジション構成**(日付スライダー付きのウェイト円/ツリーマップ、業種別ネットエクスポージャー、ウェイト推移の面グラフ。円は**グロス**構成、バーは**ネット**なので、同一業種のロング/ショートはバーでは相殺されて 0 になり、円では両脚とも見えたままです)、**ティアシート**(月次リターンのヒートマップ、年次バー、上位 5 ドローダウンを資産曲線に重ねて表示)、そして KPI・ベンチマーク対比の資産推移・ローリングシャープ・全約定台帳を備えた対話型**リサーチダッシュボード**。4 つとも実行が既に書き出している artifact を読むだけで、新しいデータパイプラインはありません。新しい **Options Lab** ページでは満期損益図、原資産×IV のシナリオ行列、ポートフォリオのグリークス、ライブのオプションチェーンを、MCP ツールと同じテストで固定されたエンジンで計算します。**インストール:** Intel Mac で再び `pip install vibe-trading-ai` が通ります——`smartmoneyconcepts` が `llvmlite` を引き込み、後者は 0.46 以降 macOS x86_64 wheel を出していないため、Intel でのインストールは毎回 CMake を要するソースビルドになっていました。これをオプトインの `[smc]` extra に移し、古い `<3.14` 上限も外しました([#1035](https://github.com/HKUDS/Vibe-Trading/discussions/1035))。**新機能:** Alpha Zoo と SDM ストアをまたぐ**エビデンス・ゲート付きストラテジー探索**(投入経路、読み取り時に算出する鮮度 `fresh`/`aging`/`stale`、陳腐化した行は既定の推奨から fail-closed で除外)、リース付き outbox で**自分から配信する**スケジュール調査と Market Watch 一覧向けに永続化される判定、7 つの読み取り専用 **Futu** エンドポイント、バックテスト市場としての**ベトナム(HOSE)**、オフラインの **USD-M 口座照合**、**Novita AI** と **GitHub Copilot** のプロバイダ、ホスト型 **MetaTrader 5** データソース、**スペイン語**と**ドイツ語**のロケール、そして MCP ツールは 74 個に。**正確性:** テストスイートがサンドボックスを抜け出して実際の設定ルートに書き込むことがなくなりました——以前はフル実行のたびにハッシュ連鎖の実口座監査台帳へ偽の `order_rejected` が追記されていました。`build_registry()` は欠けたツール表を黙って返しません。`xirr` は長期ホライズンの割引アンダーフローに耐え、DCF は非有限入力を負の株価で返さず拒否します。`.VN` 銘柄が A 株ルールで約定されることもなくなり、バックテストのアーカイブが 2 つの実行の成果物を混ぜることもなくなりました。さらに grounding の一連の修正で、日付・順序付きリスト・レート式中の恒等定数・見積りと誤読された注文行という誤拒否の一群が解消しました。@Shizoqua、@shadowinlife、@pengpengyi92、@cgycorey、@ofeksh-tr、@lorenzozanee、@AndyLongest、@zzz607、@wiliao、@jay79-boop、@Robin1987China、@Echoandelementwebsites、@zhiwuyazhe-fjr、@x-lambda、@sykuang、@straun-repo、@nstavros、@ngoanpv、@miguelangelo78、@lukiod、@jax-novita、@honginp、@he-yufeng、@fixXxerTech、@er-s-an、@daviddaco1、@birdxs、@QCYTSN、@549236606-oss、@1psconstructor の皆さんに感謝します。
- **2026-08-19** 🔌 **停止した実行、タスクごとに漏れる接続、インストールできない Intel Mac**:provider が無応答になると実行が無限に固まっていました。新しい `VIBE_TRADING_LLM_TIMEOUT_SECONDS`(既定 300s)が呼び出しを制限し、tool-call マークアップが最終回答として出力されることもなくなりました([#1105](https://github.com/HKUDS/Vibe-Trading/pull/1105))。swarm はタスクごとにプール済み HTTP 接続を 1 本漏らしていました([#1145](https://github.com/HKUDS/Vibe-Trading/pull/1145)、[#1141](https://github.com/HKUDS/Vibe-Trading/issues/1141) をクローズ)。ほかに修正:`vibe-trading show <run_id>` のクラッシュ([#1147](https://github.com/HKUDS/Vibe-Trading/pull/1147)、[#1146](https://github.com/HKUDS/Vibe-Trading/issues/1146) をクローズ)、処理中の配信の上書き([#1140](https://github.com/HKUDS/Vibe-Trading/pull/1140))、バックテスト検証エビデンスの欠落([#1139](https://github.com/HKUDS/Vibe-Trading/pull/1139))、MCP のページング([#1137](https://github.com/HKUDS/Vibe-Trading/pull/1137)、[#1138](https://github.com/HKUDS/Vibe-Trading/pull/1138))、予測市場の非有限値([#1136](https://github.com/HKUDS/Vibe-Trading/pull/1136))。**新機能:** 富途の読み取り専用エンドポイント 7 種([#1135](https://github.com/HKUDS/Vibe-Trading/pull/1135))と、推測された戦略名への明示的な `Inferred` チップ([#1134](https://github.com/HKUDS/Vibe-Trading/pull/1134))。**インストール:** `smartmoneyconcepts` は `[smc]` extra になりました。これが引き込む `llvmlite` は macOS x86_64 wheel を提供しないため、Intel Mac のインストールは毎回 cmake のソースビルドになっていました([#1035](https://github.com/HKUDS/Vibe-Trading/discussions/1035))。`<3.14` の上限もこれに伴い撤廃されます。貢献に感謝します:[@wiliao](https://github.com/wiliao)、[@cgycorey](https://github.com/cgycorey)、[@Shizoqua](https://github.com/Shizoqua)、[@Echoandelementwebsites](https://github.com/Echoandelementwebsites)、[@549236606-oss](https://github.com/549236606-oss)、[@fixXxerTech](https://github.com/fixXxerTech)。
- **2026-08-18** 🈶 **正しいレポートが拒否されなくなり、バックテストがノイズを売買しなくなりました**:`\b` は Unicode を認識するため `最` も語構成文字と見なされ、`(2026-07-14最低)` は「日」の直後に境界がありません。日付がマスクをすり抜け、`2026`・`7`・`14` が価格として OHLC 照合に入り、観測済みのどのレンジにも収まりませんでした([#1132](https://github.com/HKUDS/Vibe-Trading/pull/1132)、[#1122](https://github.com/HKUDS/Vibe-Trading/issues/1122) をクローズ)。同系統の拒否をさらに 4 件修正:ハイフン形式の取引日(`08-10(一)`)、レンジで示した水準が下限だけマスクされ `-20` が残る件、GTC の注文行(`100 @ $3.50`)が観測値 2 つとして読まれる件、レポート形式の日付セルがどの証跡行にも一致しない件。**バックテスト:**`position_adjustment="hold"` は要求されたサイズ変更を黙って捨て、`"rebalance"` にはドリフト許容幅がまったくありませんでした。実測では日次 0.01% の変動で 30 本中 19 本のバーでポジションを取り直しており、独自の `rebalance_freq` を持つ戦略でも毎バー取引していたことになります。捨てられた要求は報告されるようになり、新しい `rebalance_tolerance` は実務家が言う「ウェイトが X 以上動いたらリバランス」の許容幅です。既定は `0.0` なので既存の実行結果は変わりません。さらに、業種中立の alpha101 アルファ 19 本は SP500 ベンチのたびにスキップされていました。パネルにセクタータグが無かったためですが、その情報は構成銘柄を取得している表に元から含まれていました。**新機能:** Market Watch のモニターは、実行完了後にブリーフィングを IM チャンネルへ配信できます。永続化されたアウトボックス経由なので、再起動で失われることも、同時実行のスイープで二重送信されることもありません([#942](https://github.com/HKUDS/Vibe-Trading/issues/942))。**ドイツ語が 7 番目の UI 言語**になりました([#1117](https://github.com/HKUDS/Vibe-Trading/pull/1117))。`run_dcf` は非有限の入力を、もっともらしい負の 1 株価格を返す代わりに拒否します([#1121](https://github.com/HKUDS/Vibe-Trading/pull/1121)、[#1120](https://github.com/HKUDS/Vibe-Trading/issues/1120) をクローズ)。MCP の `get_market_data` 応答は docstring が約束していた `_provenance` を返すようになりました([#1131](https://github.com/HKUDS/Vibe-Trading/pull/1131))。インポートに失敗したツールモジュールは名指しされ、レジストリが静かに縮むことはなくなりました([#1129](https://github.com/HKUDS/Vibe-Trading/pull/1129)、[#1124](https://github.com/HKUDS/Vibe-Trading/issues/1124) をクローズ)。オフラインの USD-M 口座リコンサイルも追加され、接続を開かずにローカルのリスク状態と取引所の観測値を比較します([#1106](https://github.com/HKUDS/Vibe-Trading/pull/1106))。**その他:** `backtest.runner` のインポートがプロセスへ `.env` を読み込まなくなりました。`agent/.env` があるマシンでは、これがローカルの全テスト実行を信用できないものにしていました([#1123](https://github.com/HKUDS/Vibe-Trading/issues/1123))。[@Robin1987China](https://github.com/Robin1987China)、[@newgo](https://github.com/newgo)、[@er-s-an](https://github.com/er-s-an)、[@Shizoqua](https://github.com/Shizoqua)、[@1psconstructor](https://github.com/1psconstructor)、[@honginp](https://github.com/honginp)、[@cgycorey](https://github.com/cgycorey)、[@alinv0](https://github.com/alinv0)、[@jelech](https://github.com/jelech) に感謝します!
@@ -962,6 +963,8 @@ vibe-trading channels login weixin # 必要な adapter login hook を実行
vibe-trading channels pairing --channel telegram list
```
+`vibe-trading channels login feishu` は、ログイン成功を報告する前に、QR 認可で取得したアプリ資格情報を `~/.vibe-trading/agent.json` に保存します(ファイル権限は所有者のみ)。
+
Built-in adapters は `websocket`、`telegram`、`slack`、`discord`、`matrix`、`whatsapp`、`signal`、`qq`、`napcat`、`weixin`、`wecom`、`feishu`、`dingtalk`、`msteams`、`email`、`mochat` です。個別に `pip install "vibe-trading-ai[telegram]"` を使うか、全チャンネル分を `pip install "vibe-trading-ai[channels]"` で入れられます。
**チャット内スラッシュコマンド**(チャンネル非依存、全 16 adapter で共通):
@@ -1100,7 +1103,11 @@ vibe-trading serve --port 8899
| `POST` | `/channels/pairing/command` | shared store に対して sender-pairing command を実行 |
| `POST` | `/scheduled-runs` | 定期リサーチジョブを作成(interval-ms または cron) |
| `GET` | `/scheduled-runs` | スケジュール済みジョブを一覧 |
+| `GET` | `/scheduled-runs/status` | 実行器の状態と設定済み配信ターゲット |
+| `GET` | `/scheduled-runs/{job_id}` | スケジュール済みジョブを 1 件取得 |
| `DELETE` | `/scheduled-runs/{job_id}` | スケジュール済みジョブをキャンセル |
+| `POST` | `/scheduled-runs/proposals/{proposal_id}/commit` | エージェント提案の作成/キャンセルを確定 |
+| `POST` | `/scheduled-runs/proposals/{proposal_id}/discard` | エージェント提案を破棄 |
| `GET` | `/scheduled-runs/playbooks` | リサーチテンプレートを一覧 |
| `GET` | `/scheduled-runs/playbooks/{slug}` | テンプレート 1 件と宣言済み変数を表示 |
| `POST` | `/scheduled-runs/playbooks/{slug}` | テンプレートからジョブをスケジュール |
@@ -1153,6 +1160,8 @@ curl -X DELETE http://localhost:8899/scheduled-runs/<job_id>
各実行は新しい agent session で `prompt` を実行し(任意の backtest パラメータは `config` に入れます)、ジョブは `~/.vibe-trading/` に永続化されるため再起動後も残ります。このフラグがない場合、`/scheduled-runs` endpoints はジョブを記録しますが実行はされません。`API_AUTH_KEY` を設定している場合は各呼び出しに `-H "Authorization: Bearer <key>"` を付けてください。
+エージェントに見えるスケジューリングツールは `scheduled_research` の 1 つだけです。読み取り系アクションは状態/ジョブ/テンプレートを照会し、`propose_create` と `propose_cancel` は短時間で失効する確認プロポーザルを保存するだけで、ジョブストアを直接変更することはありません。Web は決定的な確認カードを表示し、CLI は `y/N` を尋ね、IM 会話では正確に `confirm`(`确认`)または `cancel`(`取消`)と返信する必要があります——commit エンドポイントを呼ぶのはこれらの操作だけです。`end_at` を過ぎたジョブは `expired` になり、再実行されません。配信はチャネル非依存です。`channels.deliveryTargets` に再利用可能な不透明ターゲット参照を設定すると、エージェントと確認 UI には ref/label/channel のみが見え、プロバイダの生の chat/user id は渡りません。アダプタが受領証なしで成功した場合の配信状態は `accepted`、プロバイダのメッセージ id が返ったときだけ `sent` になります(現在は Feishu がエンドツーエンド対応)。
+
スケジューラには**すぐ使えるリサーチテンプレートが 5 本**同梱されています —— `premarket-brief`、`earnings-season-tracker`、`portfolio-checkup`、`a-share-money-flow`、`institutional-holdings-diff`。各テンプレートはツール名を挙げず、必要なデータを自然言語で宣言するため、ツール面が広がってもそのまま機能します。また、欠けている入力は記憶で埋めず**明示する**ことが求められます。CLI、REST、TUI の `/playbook` から利用できます:
```bash
diff --git a/README_ko.md b/README_ko.md
index b0379c6cb..092f4db1d 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-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)에게 감사드립니다.
-- **2026-08-21** ⏱️ **영원히 멈춰 있던 실행**: `bash` 타임아웃이 shell만 종료하고 파이프 핸들을 쥔 손자 프로세스는 살아남아, 실행은 20분 넘게 "실행 중"이었습니다. 이제 전용 프로세스 그룹에서 시작해 트리 전체를 종료하고, 정체 감시자가 진전 없는 실행을 끝내며, 압축도 모델 자신의 검증 기록을 버리지 않습니다([#1169](https://github.com/HKUDS/Vibe-Trading/pull/1169)). **수정:** Tencent의 다년 히스토리가 500봉에서 조용히 잘렸습니다([#1154](https://github.com/HKUDS/Vibe-Trading/pull/1154)). **신규:** swarm 실행은 실패한 하위 그래프만 재생합니다([#1158](https://github.com/HKUDS/Vibe-Trading/pull/1158), [#1157](https://github.com/HKUDS/Vibe-Trading/issues/1157) 종료). Market Watch는 각 모니터의 최신 판정을 목록에 표시합니다([#1156](https://github.com/HKUDS/Vibe-Trading/pull/1156), [#943](https://github.com/HKUDS/Vibe-Trading/issues/943) 종료). `quantlib`는 테스트된 286개 함수에 도달했습니다([#1159](https://github.com/HKUDS/Vibe-Trading/pull/1159)–[#1168](https://github.com/HKUDS/Vibe-Trading/pull/1168)). 기여해 주신 [@wiliao](https://github.com/wiliao), [@cgycorey](https://github.com/cgycorey), [@he-yufeng](https://github.com/he-yufeng), [@BigFishEmily](https://github.com/BigFishEmily), [@santhreal](https://github.com/santhreal), [@SiMinus](https://github.com/SiMinus), [@alinv0](https://github.com/alinv0)에게 감사드립니다.
<details>
<summary>이전 뉴스</summary>
+- **2026-08-21** ⏱️ **영원히 멈춰 있던 실행**: `bash` 타임아웃이 shell만 종료하고 파이프 핸들을 쥔 손자 프로세스는 살아남아, 실행은 20분 넘게 "실행 중"이었습니다. 이제 전용 프로세스 그룹에서 시작해 트리 전체를 종료하고, 정체 감시자가 진전 없는 실행을 끝내며, 압축도 모델 자신의 검증 기록을 버리지 않습니다([#1169](https://github.com/HKUDS/Vibe-Trading/pull/1169)). **수정:** Tencent의 다년 히스토리가 500봉에서 조용히 잘렸습니다([#1154](https://github.com/HKUDS/Vibe-Trading/pull/1154)). **신규:** swarm 실행은 실패한 하위 그래프만 재생합니다([#1158](https://github.com/HKUDS/Vibe-Trading/pull/1158), [#1157](https://github.com/HKUDS/Vibe-Trading/issues/1157) 종료). Market Watch는 각 모니터의 최신 판정을 목록에 표시합니다([#1156](https://github.com/HKUDS/Vibe-Trading/pull/1156), [#943](https://github.com/HKUDS/Vibe-Trading/issues/943) 종료). `quantlib`는 테스트된 286개 함수에 도달했습니다([#1159](https://github.com/HKUDS/Vibe-Trading/pull/1159)–[#1168](https://github.com/HKUDS/Vibe-Trading/pull/1168)). 기여해 주신 [@wiliao](https://github.com/wiliao), [@cgycorey](https://github.com/cgycorey), [@he-yufeng](https://github.com/he-yufeng), [@BigFishEmily](https://github.com/BigFishEmily), [@santhreal](https://github.com/santhreal), [@SiMinus](https://github.com/SiMinus), [@alinv0](https://github.com/alinv0)에게 감사드립니다.
- **2026-08-20** 🚀 **v0.1.14 릴리스**([릴리스 노트](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.14), `pip install -U vibe-trading-ai`): 0.1.13 이후 272개 커밋, 74개 병합 PR. **주인공은 끝난 백테스트가 CSV 더미가 아니라 읽을 수 있는 결과물이 되었다는 점입니다.** Run Detail에 탭 네 개가 추가됐습니다 — **팩터 리서치**(평균선이 있는 일별 IC 시계열, IC 통계, 분위 그룹 자산곡선, 그리고 지금까지 어디에도 없던 IC 상관행렬), **포지션 구조**(날짜 슬라이더가 달린 비중 파이/트리맵, 업종별 순익스포저 막대, 비중 변화 영역 차트 — 파이는 **총액** 구성이고 막대는 **순액**이라, 같은 업종의 롱/숏 쌍은 막대에서 0으로 상쇄되지만 파이에서는 두 다리가 모두 보입니다), **티어시트**(월별 수익률 히트맵, 연간 막대, 자산곡선 위에 표시한 상위 5개 낙폭), 그리고 KPI·벤치마크 대비 자산추이·롤링 샤프·전체 체결 원장을 담은 대화형 **리서치 대시보드**. 네 가지 모두 실행이 이미 기록하는 artifact를 읽을 뿐, 새 데이터 파이프라인은 없습니다. 새 **Options Lab** 페이지는 만기 손익도, 현물×IV 시나리오 행렬, 포트폴리오 그릭스, 실시간 옵션 체인을 MCP 도구와 동일한, 테스트로 고정된 엔진으로 계산합니다. **설치:** Intel Mac에서 다시 `pip install vibe-trading-ai`가 됩니다 — `smartmoneyconcepts`가 `llvmlite`를 끌어오는데, 후자는 0.46부터 macOS x86_64 wheel을 내지 않아 Intel 설치가 매번 CMake가 필요한 소스 빌드로 바뀌었습니다. 이제 선택형 `[smc]` extra로 옮겼고 낡은 `<3.14` 상한도 없앴습니다([#1035](https://github.com/HKUDS/Vibe-Trading/discussions/1035)). **신규:** Alpha Zoo와 SDM 저장소를 아우르는 **근거 게이트 전략 탐색**(적재 경로, 읽는 시점에 계산되는 신선도 `fresh`/`aging`/`stale`, 오래된 행은 기본 추천에서 fail-closed로 제외), 리스가 걸린 outbox로 **스스로 전달하는** 예약 리서치와 Market Watch 목록용으로 저장되는 판정, 읽기 전용 **Futu** 엔드포인트 7종, 백테스트 시장으로서의 **베트남(HOSE)**, 오프라인 **USD-M 계좌 대사**, **Novita AI**·**GitHub Copilot** 프로바이더, 호스팅형 **MetaTrader 5** 데이터 소스, **스페인어**·**독일어** 로케일, 그리고 74개로 늘어난 MCP 도구. **정확성:** 테스트 스위트가 샌드박스를 벗어나 실제 설정 루트에 쓰는 일이 없어졌습니다 — 이전에는 전체 실행 때마다 해시 체인 실계좌 감사 원장에 가짜 `order_rejected`가 덧붙었습니다. `build_registry()`는 빠진 도구 목록을 조용히 반환하지 않습니다. `xirr`는 장기 할인 언더플로를 견디고, DCF는 비유한 입력에 음수 주가 대신 거부로 응답합니다. `.VN` 종목이 A주 규칙으로 체결되지 않으며, 백테스트 아카이브가 두 실행의 산출물을 섞지 않습니다. 또한 일련의 grounding 수정으로 날짜, 순서 목록, 요율 수식 속 항등 상수, 호가로 오독된 주문 라인에서 비롯된 오거부가 정리됐습니다. @Shizoqua, @shadowinlife, @pengpengyi92, @cgycorey, @ofeksh-tr, @lorenzozanee, @AndyLongest, @zzz607, @wiliao, @jay79-boop, @Robin1987China, @Echoandelementwebsites, @zhiwuyazhe-fjr, @x-lambda, @sykuang, @straun-repo, @nstavros, @ngoanpv, @miguelangelo78, @lukiod, @jax-novita, @honginp, @he-yufeng, @fixXxerTech, @er-s-an, @daviddaco1, @birdxs, @QCYTSN, @549236606-oss, @1psconstructor 님께 감사드립니다.
- **2026-08-19** 🔌 **멈춘 실행, 작업마다 새는 연결, 설치되지 않던 Intel Mac**: provider가 조용해지면 실행이 무한정 멈췄습니다. 새 `VIBE_TRADING_LLM_TIMEOUT_SECONDS`(기본 300s)가 호출을 제한하고, tool-call 마크업이 최종 답변으로 나가는 일도 없습니다([#1105](https://github.com/HKUDS/Vibe-Trading/pull/1105)). swarm은 작업마다 풀링된 HTTP 연결을 하나씩 누수했습니다([#1145](https://github.com/HKUDS/Vibe-Trading/pull/1145), [#1141](https://github.com/HKUDS/Vibe-Trading/issues/1141) 종료). 그 밖의 수정: `vibe-trading show <run_id>` 크래시([#1147](https://github.com/HKUDS/Vibe-Trading/pull/1147), [#1146](https://github.com/HKUDS/Vibe-Trading/issues/1146) 종료), 진행 중인 전달 덮어쓰기([#1140](https://github.com/HKUDS/Vibe-Trading/pull/1140)), 백테스트 검증 증거 유실([#1139](https://github.com/HKUDS/Vibe-Trading/pull/1139)), MCP 페이징([#1137](https://github.com/HKUDS/Vibe-Trading/pull/1137), [#1138](https://github.com/HKUDS/Vibe-Trading/pull/1138)), 예측 시장 비유한값([#1136](https://github.com/HKUDS/Vibe-Trading/pull/1136)). **신규:** 푸투 읽기 전용 엔드포인트 7개([#1135](https://github.com/HKUDS/Vibe-Trading/pull/1135)), 추론된 전략 이름에 명시적 `Inferred` 칩([#1134](https://github.com/HKUDS/Vibe-Trading/pull/1134)). **설치:** `smartmoneyconcepts`가 `[smc]` extra로 바뀌었습니다 — 함께 딸려오던 `llvmlite`는 macOS x86_64 wheel을 제공하지 않아 Intel Mac 설치가 매번 cmake 소스 빌드가 됐습니다([#1035](https://github.com/HKUDS/Vibe-Trading/discussions/1035)). `<3.14` 상한도 함께 사라집니다. 기여해 주신 [@wiliao](https://github.com/wiliao), [@cgycorey](https://github.com/cgycorey), [@Shizoqua](https://github.com/Shizoqua), [@Echoandelementwebsites](https://github.com/Echoandelementwebsites), [@549236606-oss](https://github.com/549236606-oss), [@fixXxerTech](https://github.com/fixXxerTech)에게 감사드립니다.
- **2026-08-18** 🈶 **정확한 리포트가 더 이상 거부되지 않고, 백테스트가 노이즈를 매매하지 않습니다**: `\b`는 유니코드를 인식하므로 `最`도 단어 문자로 취급되고, 따라서 `(2026-07-14最低)`에는 '일' 뒤에 경계가 없습니다. 날짜가 마스킹을 빠져나가 `2026`, `7`, `14`가 가격으로 OHLC 검증에 들어갔고, 관측된 어떤 범위도 이 값들을 담을 수 없었습니다([#1132](https://github.com/HKUDS/Vibe-Trading/pull/1132), [#1122](https://github.com/HKUDS/Vibe-Trading/issues/1122) 종료). 같은 계열의 거부 네 가지도 함께 고쳤습니다: 하이픈 형식 거래일(`08-10(一)`), 범위로 적은 가격대에서 하한만 마스킹되어 `-20`이 남던 문제, GTC 주문 줄(`100 @ $3.50`)이 관측 호가 두 개로 읽히던 문제, 리포트 형식 날짜 셀이 어떤 증거 행과도 일치하지 않던 문제. **백테스트:** `position_adjustment="hold"`는 요청된 비중 변경을 조용히 버렸고, `"rebalance"`에는 드리프트 허용 범위가 아예 없었습니다. 실측 결과 일간 0.01% 변동만으로 30개 봉 중 19개에서 포지션을 다시 맞췄고, 자체 `rebalance_freq`를 가진 전략도 매 봉 거래한 셈입니다. 버려진 요청은 이제 보고되며, 새 `rebalance_tolerance`는 실무자들이 말하는 "비중이 X 이상 움직이면 리밸런싱"의 허용 범위입니다. 기본값 `0.0`이라 기존 실행 결과는 그대로입니다. 또한 산업 중립 alpha101 알파 19개가 SP500 벤치마다 건너뛰어졌는데, 패널에 섹터 태그가 없었기 때문이며 그 정보는 구성종목을 가져오는 표에 이미 있었습니다. **새 기능:** Market Watch 모니터는 실행이 끝나면 브리핑을 IM 채널로 보낼 수 있습니다. 영속 아웃박스를 거치므로 재시작으로 유실되지 않고, 동시 스윕으로 중복 발송되지도 않습니다([#942](https://github.com/HKUDS/Vibe-Trading/issues/942)). **독일어가 7번째 UI 언어**가 됐습니다([#1117](https://github.com/HKUDS/Vibe-Trading/pull/1117)). `run_dcf`는 비유한 입력에 대해 그럴듯한 음수 주가를 반환하는 대신 거부합니다([#1121](https://github.com/HKUDS/Vibe-Trading/pull/1121), [#1120](https://github.com/HKUDS/Vibe-Trading/issues/1120) 종료). MCP `get_market_data` 응답은 자체 docstring이 약속한 `_provenance`를 담습니다([#1131](https://github.com/HKUDS/Vibe-Trading/pull/1131)). 임포트에 실패한 도구 모듈은 이름이 드러나며 레지스트리가 조용히 줄어들지 않습니다([#1129](https://github.com/HKUDS/Vibe-Trading/pull/1129), [#1124](https://github.com/HKUDS/Vibe-Trading/issues/1124) 종료). 오프라인 USD-M 계정 대사도 추가되어 연결을 열지 않고 로컬 리스크 상태와 거래소 관측치를 비교합니다([#1106](https://github.com/HKUDS/Vibe-Trading/pull/1106)). **그 밖에:** `backtest.runner`를 임포트해도 더 이상 `.env`가 프로세스에 로드되지 않습니다. `agent/.env`가 있는 머신에서는 이것 때문에 로컬 전체 테스트를 신뢰할 수 없었습니다([#1123](https://github.com/HKUDS/Vibe-Trading/issues/1123)). [@Robin1987China](https://github.com/Robin1987China), [@newgo](https://github.com/newgo), [@er-s-an](https://github.com/er-s-an), [@Shizoqua](https://github.com/Shizoqua), [@1psconstructor](https://github.com/1psconstructor), [@honginp](https://github.com/honginp), [@cgycorey](https://github.com/cgycorey), [@alinv0](https://github.com/alinv0), [@jelech](https://github.com/jelech) 님 감사합니다!
@@ -963,6 +964,8 @@ vibe-trading channels login weixin # 필요한 adapter login hook 실행
vibe-trading channels pairing --channel telegram list
```
+`vibe-trading channels login feishu` 는 로그인 성공을 보고하기 전에 QR 인증으로 받은 앱 자격 증명을 `~/.vibe-trading/agent.json` 에 저장합니다(파일 권한은 소유자 전용).
+
Built-in adapters는 `websocket`, `telegram`, `slack`, `discord`, `matrix`, `whatsapp`, `signal`, `qq`, `napcat`, `weixin`, `wecom`, `feishu`, `dingtalk`, `msteams`, `email`, `mochat`입니다. 개별 플랫폼은 `pip install "vibe-trading-ai[telegram]"`처럼 설치하거나, 전체 채널 세트는 `pip install "vibe-trading-ai[channels]"`로 설치할 수 있습니다.
**채팅 내 슬래시 명령어** (채널 무관, 16개 어댑터 모두 공통):
@@ -1101,7 +1104,11 @@ vibe-trading serve --port 8899
| `POST` | `/channels/pairing/command` | shared store에 sender-pairing command 실행 |
| `POST` | `/scheduled-runs` | 예약 리서치 작업 생성 (interval-ms 또는 cron) |
| `GET` | `/scheduled-runs` | 예약된 작업 목록 |
+| `GET` | `/scheduled-runs/status` | 실행기 상태 및 구성된 전달 대상 |
+| `GET` | `/scheduled-runs/{job_id}` | 예약 작업 1건 조회 |
| `DELETE` | `/scheduled-runs/{job_id}` | 예약 작업 취소 |
+| `POST` | `/scheduled-runs/proposals/{proposal_id}/commit` | 에이전트가 제안한 생성/취소 확정 |
+| `POST` | `/scheduled-runs/proposals/{proposal_id}/discard` | 에이전트 제안 폐기 |
| `GET` | `/scheduled-runs/playbooks` | 리서치 템플릿 목록 |
| `GET` | `/scheduled-runs/playbooks/{slug}` | 템플릿 1개와 선언된 변수 표시 |
| `POST` | `/scheduled-runs/playbooks/{slug}` | 템플릿으로 작업 예약 |
@@ -1154,6 +1161,8 @@ curl -X DELETE http://localhost:8899/scheduled-runs/<job_id>
각 실행은 새 agent session에서 `prompt`를 실행하며(선택적 backtest 파라미터는 `config`에 넣습니다), 작업은 `~/.vibe-trading/`에 저장되어 재시작 후에도 유지됩니다. 이 플래그가 없으면 `/scheduled-runs` endpoint는 작업을 기록하지만 실행되지는 않습니다. `API_AUTH_KEY`가 설정된 경우 각 호출에 `-H "Authorization: Bearer <key>"`를 추가하세요.
+에이전트에게 보이는 스케줄링 도구는 `scheduled_research` 하나뿐입니다. 읽기 액션은 상태/작업/템플릿을 조회하고, `propose_create` 와 `propose_cancel` 은 짧게 유지되는 확인 제안만 저장할 뿐 작업 저장소를 직접 변경하지 않습니다. Web 은 결정적 확인 카드를 렌더링하고 CLI 는 `y/N` 을 물으며, IM 대화에서는 정확히 `confirm`(`确认`) 또는 `cancel`(`取消`) 로 답해야 합니다 — commit 엔드포인트를 호출하는 것은 이 표면 동작뿐입니다. `end_at` 이 지난 작업은 `expired` 가 되어 다시 실행되지 않습니다. 전달은 채널 중립적입니다. `channels.deliveryTargets` 아래에 재사용 가능한 불투명 대상 참조를 구성하면 에이전트와 확인 UI 에는 ref/label/channel 만 보이고 프로바이더의 원시 chat/user id 는 노출되지 않습니다. 어댑터가 영수증 없이 성공하면 전달 상태는 `accepted`, 프로바이더 메시지 id 가 반환될 때만 `sent` 입니다(현재 Feishu 가 엔드투엔드 지원).
+
스케줄러에는 **바로 예약할 수 있는 리서치 템플릿 5개**가 들어 있습니다 — `premarket-brief`, `earnings-season-tracker`, `portfolio-checkup`, `a-share-money-flow`, `institutional-holdings-diff`. 각 템플릿은 도구 이름을 지목하지 않고 필요한 데이터를 자연어로 선언하므로 도구 표면이 늘어나도 그대로 동작하며, 빠진 입력은 기억으로 채우지 말고 **밝히도록** 요구합니다. CLI, REST, TUI의 `/playbook` 어디서든 쓸 수 있습니다:
```bash
diff --git a/README_zh.md b/README_zh.md
index 3278d9258..61a55db26 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-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)!
-- **2026-08-21** ⏱️ **永远卡住的运行**:`bash` 超时只杀掉 shell,握着管道句柄的孙进程还活着,运行便「运行中」挂了 20 分钟以上。现在命令在独立进程组启动、超时杀掉整棵进程树,新增的停滞看门狗会终结毫无前进的运行,压缩也不再丢弃模型自己的验证记录([#1169](https://github.com/HKUDS/Vibe-Trading/pull/1169))。**修复:** 跨年的腾讯历史在 500 根 K 线处被静默截断([#1154](https://github.com/HKUDS/Vibe-Trading/pull/1154))。**新增:** swarm 运行只重放失败子图([#1158](https://github.com/HKUDS/Vibe-Trading/pull/1158),关闭 [#1157](https://github.com/HKUDS/Vibe-Trading/issues/1157));Market Watch 在列表内显示每个监控的最新结论([#1156](https://github.com/HKUDS/Vibe-Trading/pull/1156),关闭 [#943](https://github.com/HKUDS/Vibe-Trading/issues/943));`quantlib` 达到 286 个经测试函数([#1159](https://github.com/HKUDS/Vibe-Trading/pull/1159)–[#1168](https://github.com/HKUDS/Vibe-Trading/pull/1168))。感谢 [@wiliao](https://github.com/wiliao)、[@cgycorey](https://github.com/cgycorey)、[@he-yufeng](https://github.com/he-yufeng)、[@BigFishEmily](https://github.com/BigFishEmily)、[@santhreal](https://github.com/santhreal)、[@SiMinus](https://github.com/SiMinus)、[@alinv0](https://github.com/alinv0)!
<details>
<summary>更早的新闻</summary>
+- **2026-08-21** ⏱️ **永远卡住的运行**:`bash` 超时只杀掉 shell,握着管道句柄的孙进程还活着,运行便「运行中」挂了 20 分钟以上。现在命令在独立进程组启动、超时杀掉整棵进程树,新增的停滞看门狗会终结毫无前进的运行,压缩也不再丢弃模型自己的验证记录([#1169](https://github.com/HKUDS/Vibe-Trading/pull/1169))。**修复:** 跨年的腾讯历史在 500 根 K 线处被静默截断([#1154](https://github.com/HKUDS/Vibe-Trading/pull/1154))。**新增:** swarm 运行只重放失败子图([#1158](https://github.com/HKUDS/Vibe-Trading/pull/1158),关闭 [#1157](https://github.com/HKUDS/Vibe-Trading/issues/1157));Market Watch 在列表内显示每个监控的最新结论([#1156](https://github.com/HKUDS/Vibe-Trading/pull/1156),关闭 [#943](https://github.com/HKUDS/Vibe-Trading/issues/943));`quantlib` 达到 286 个经测试函数([#1159](https://github.com/HKUDS/Vibe-Trading/pull/1159)–[#1168](https://github.com/HKUDS/Vibe-Trading/pull/1168))。感谢 [@wiliao](https://github.com/wiliao)、[@cgycorey](https://github.com/cgycorey)、[@he-yufeng](https://github.com/he-yufeng)、[@BigFishEmily](https://github.com/BigFishEmily)、[@santhreal](https://github.com/santhreal)、[@SiMinus](https://github.com/SiMinus)、[@alinv0](https://github.com/alinv0)!
- **2026-08-20** 🚀 **v0.1.14 发布**([Release notes](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.14),`pip install -U vibe-trading-ai`):自 0.1.13 以来 272 个 commit、74 个已合并 PR。**主角是:跑完的回测终于是可以读的东西,而不是一堆 CSV。** Run Detail 新增四个页签——**因子研究**(IC 序列与其均值线、IC 统计、分组净值,以及一个此前根本不存在的 IC 两两相关矩阵)、**持仓结构**(带日期滑块的权重饼图/树图、行业净敞口柱、权重演化面积图;饼图是**总额**构成而柱图是**净额**,所以同一行业里的多空对冲在柱图上抵为零、在饼图上两条腿都还看得见)、**Tearsheet**(月度收益热力图、年度柱状图、前 5 大回撤并标注在净值曲线上),以及一个带 KPI、基准相对净值、滚动 Sharpe 和完整成交流水的交互式**研究看板**。四者读的都是运行本就写出的 artifact——没有新增数据管线。新的 **Options Lab** 页面提供到期损益图、现价×IV 情景矩阵、组合希腊字母和实时期权链,算的是 MCP 工具同一套被测试钉死的引擎。**安装:** Intel Mac 又能 `pip install vibe-trading-ai` 了——`smartmoneyconcepts` 会拖进 `llvmlite`,而后者从 0.46 起不再提供 macOS x86_64 wheel,于是每一次 Intel 安装都变成需要 CMake 的源码构建;现在它改为可选的 `[smc]` extra,过期的 `<3.14` 上限也一并去掉([#1035](https://github.com/HKUDS/Vibe-Trading/discussions/1035))。**新增:** 跨 Alpha Zoo 与 SDM 库的**证据闸门策略发现**,带证据填充路径、读取时计算的新鲜度(`fresh`/`aging`/`stale`)以及陈旧行 fail-closed 退出默认推荐;排期研究现在会**自己投递**——经带租约的 outbox 送出,并把每个监控的判定持久化供 Market Watch 列表使用;七个只读 **Futu** 端点;**越南(HOSE)**成为回测市场;离线 **USD-M 账户对账**;**Novita AI** 与 **GitHub Copilot** 两个模型提供方;托管的 **MetaTrader 5** 数据源;**西班牙语**与**德语**界面;MCP 工具增至 74 个。**正确性:** 测试套件不再逃出沙箱写进你真实的配置根目录——此前跑一次全量会往那本哈希链式的实盘审计账本里追加伪造的 `order_rejected` 记录;`build_registry()` 不再静默返回一份残缺的工具表;`xirr` 扛得住长周期折现下溢,DCF 遇到非有限输入直接拒绝而不是返回一个负的每股价值;`.VN` 代码不再按 A 股规则撮合;回测归档不再把两次运行的产物混进同一个包;另有一轮 grounding 修复,终结了日期、有序列表、费率公式里的恒等常数以及被误读成报价的下单指令这几类误拒。感谢 @Shizoqua、@shadowinlife、@pengpengyi92、@cgycorey、@ofeksh-tr、@lorenzozanee、@AndyLongest、@zzz607、@wiliao、@jay79-boop、@Robin1987China、@Echoandelementwebsites、@zhiwuyazhe-fjr、@x-lambda、@sykuang、@straun-repo、@nstavros、@ngoanpv、@miguelangelo78、@lukiod、@jax-novita、@honginp、@he-yufeng、@fixXxerTech、@er-s-an、@daviddaco1、@birdxs、@QCYTSN、@549236606-oss 和 @1psconstructor。
- **2026-08-19** 🔌 **卡住的运行、每个任务泄漏一条连接、装不上的 Intel Mac**:provider 静默时运行会无限冻结——新的 `VIBE_TRADING_LLM_TIMEOUT_SECONDS`(默认 300s)为调用设界,且 tool-call 标记不再被当作最终答案输出([#1105](https://github.com/HKUDS/Vibe-Trading/pull/1105))。swarm 每个任务都会泄漏一条池化 HTTP 连接([#1145](https://github.com/HKUDS/Vibe-Trading/pull/1145),关闭 [#1141](https://github.com/HKUDS/Vibe-Trading/issues/1141))。另修复:`vibe-trading show <run_id>` 崩溃([#1147](https://github.com/HKUDS/Vibe-Trading/pull/1147),关闭 [#1146](https://github.com/HKUDS/Vibe-Trading/issues/1146))、覆盖在途投递([#1140](https://github.com/HKUDS/Vibe-Trading/pull/1140))、回测验证证据被丢弃([#1139](https://github.com/HKUDS/Vibe-Trading/pull/1139))、MCP 分页([#1137](https://github.com/HKUDS/Vibe-Trading/pull/1137)、[#1138](https://github.com/HKUDS/Vibe-Trading/pull/1138))、预测市场非有限值([#1136](https://github.com/HKUDS/Vibe-Trading/pull/1136))。**新增:** 七个富途只读接口([#1135](https://github.com/HKUDS/Vibe-Trading/pull/1135))、推断策略名加显式 `Inferred` 标([#1134](https://github.com/HKUDS/Vibe-Trading/pull/1134))。**安装:** `smartmoneyconcepts` 改为 `[smc]` extra——它拖入的 `llvmlite` 不发 macOS x86_64 wheel,让每一次 Intel Mac 安装都变成 cmake 源码编译([#1035](https://github.com/HKUDS/Vibe-Trading/discussions/1035));`<3.14` 上界随之取消。感谢 [@wiliao](https://github.com/wiliao)、[@cgycorey](https://github.com/cgycorey)、[@Shizoqua](https://github.com/Shizoqua)、[@Echoandelementwebsites](https://github.com/Echoandelementwebsites)、[@549236606-oss](https://github.com/549236606-oss) 与 [@fixXxerTech](https://github.com/fixXxerTech)!
- **2026-08-18** 🈶 **正确的报告不再被拒答,回测不再交易噪声**:`\b` 是 Unicode 感知的,`最` 也算词字符,于是 `(2026-07-14最低)` 在「日」之后没有边界——日期逃过掩码,`2026`、`7`、`14` 作为价格进入 OHLC 核对,而任何已观测区间都容不下它们([#1132](https://github.com/HKUDS/Vibe-Trading/pull/1132),关闭 [#1122](https://github.com/HKUDS/Vibe-Trading/issues/1122))。同族的另外四种拒答一并修掉:短横线交易日(`08-10(一)`)、区间式点位只被吃掉下界留下 `-20`、GTC 挂单行(`100 @ $3.50`)被当成两个已观测报价、以及报告体日期单元格匹配不上任何证据行。**回测:**`position_adjustment="hold"` 会静默丢弃策略明确要求的调仓,而 `"rebalance"` 根本没有漂移容差——实测日涨幅仅 0.01% 就在 30 根 bar 里重新钉住 19 次,于是有自己 `rebalance_freq` 的策略照样每根 bar 都在交易。被丢弃的请求现在会报出来,新增的 `rebalance_tolerance` 就是从业者说的「偏离超过 X 才调仓」,默认 `0.0`,任何现有回测的数字都不变。另有 19 个行业中性的 alpha101 因子,此前在每次 SP500 bench 上都被跳过,只因面板缺一个 sector 标签——而它本来就在成分股所在的那张表里。**新增:** Market Watch 的监控可在运行结束后把简报推送到 IM 频道,走持久化 outbox,重启不会丢、并发扫描不会重发([#942](https://github.com/HKUDS/Vibe-Trading/issues/942));**德语成为第 7 种界面语言**([#1117](https://github.com/HKUDS/Vibe-Trading/pull/1117));`run_dcf` 拒绝非有限输入,而不是返回一个看起来合理的负股价([#1121](https://github.com/HKUDS/Vibe-Trading/pull/1121),关闭 [#1120](https://github.com/HKUDS/Vibe-Trading/issues/1120));MCP 的 `get_market_data` 响应终于带上它自己 docstring 承诺的 `_provenance`([#1131](https://github.com/HKUDS/Vibe-Trading/pull/1131));导入失败的工具模块会被指名,而不是悄悄缩小注册表([#1129](https://github.com/HKUDS/Vibe-Trading/pull/1129),关闭 [#1124](https://github.com/HKUDS/Vibe-Trading/issues/1124));以及离线 USD-M 账户对账,在不建立任何连接的前提下比对本地风险状态与一次交易所观测([#1106](https://github.com/HKUDS/Vibe-Trading/pull/1106))。**另外:** 导入 `backtest.runner` 不再把 `.env` 载入进程——在任何存在 `agent/.env` 的机器上,这曾让本地全量测试根本不可信([#1123](https://github.com/HKUDS/Vibe-Trading/issues/1123))。感谢 [@Robin1987China](https://github.com/Robin1987China)、[@newgo](https://github.com/newgo)、[@er-s-an](https://github.com/er-s-an)、[@Shizoqua](https://github.com/Shizoqua)、[@1psconstructor](https://github.com/1psconstructor)、[@honginp](https://github.com/honginp)、[@cgycorey](https://github.com/cgycorey)、[@alinv0](https://github.com/alinv0) 和 [@jelech](https://github.com/jelech)!
@@ -951,6 +952,8 @@ vibe-trading channels login weixin # 需要时执行适配器登录流程
vibe-trading channels pairing --channel telegram list
```
+`vibe-trading channels login feishu` 会在报告登录成功之前,把二维码授权得到的应用凭证保存到 `~/.vibe-trading/agent.json`(文件权限仅属主可读写)。
+
内置适配器包括 `websocket`、`telegram`、`slack`、`discord`、`matrix`、`whatsapp`、`signal`、`qq`、`napcat`、`weixin`、`wecom`、`feishu`、`dingtalk`、`msteams`、`email` 和 `mochat`。可按需安装单个平台,例如 `pip install "vibe-trading-ai[telegram]"`,也可以一次安装全量通道依赖:`pip install "vibe-trading-ai[channels]"`。
**聊天内斜杠命令**(通道无关,全部 16 个适配器通用):
@@ -1089,7 +1092,11 @@ vibe-trading serve --port 8899
| `POST` | `/channels/pairing/command` | 针对共享存储执行 sender pairing 命令 |
| `POST` | `/scheduled-runs` | 创建定时研究任务(间隔毫秒或 cron) |
| `GET` | `/scheduled-runs` | 列出定时任务 |
+| `GET` | `/scheduled-runs/status` | 执行器状态与已配置的投递目标 |
+| `GET` | `/scheduled-runs/{job_id}` | 查看单个定时任务 |
| `DELETE` | `/scheduled-runs/{job_id}` | 取消定时任务 |
+| `POST` | `/scheduled-runs/proposals/{proposal_id}/commit` | 确认 agent 提议的创建/取消 |
+| `POST` | `/scheduled-runs/proposals/{proposal_id}/discard` | 放弃 agent 提议 |
| `GET` | `/scheduled-runs/playbooks` | 列出研究模板 |
| `GET` | `/scheduled-runs/playbooks/{slug}` | 查看单个模板及其变量 |
| `POST` | `/scheduled-runs/playbooks/{slug}` | 从模板创建定时任务 |
@@ -1142,6 +1149,8 @@ curl -X DELETE http://localhost:8899/scheduled-runs/<job_id>
每次触发都会在一个全新的 agent session 中运行该 `prompt`(可选回测参数放在 `config` 里),任务持久化到 `~/.vibe-trading/`,重启后依然保留。不设这个开关时,`/scheduled-runs` 端点仍会记录任务,但不会真正触发。配置了 `API_AUTH_KEY` 时,每次请求需加 `-H "Authorization: Bearer <key>"`。
+agent 只有一个调度工具 `scheduled_research`:读操作查看状态/任务/模板;`propose_create` 与 `propose_cancel` 只落一份短时效的确认提案,绝不直接改动任务存储。Web 渲染确定性的确认卡片,CLI 询问 `y/N`,IM 会话需准确回复 `confirm`(`确认`)或 `cancel`(`取消`)——只有这些界面动作会调用 commit 端点。任务过了 `end_at` 即标记为 `expired`,不再触发。投递与通道解耦:在 `channels.deliveryTargets` 下配置可复用的不透明目标引用,agent 与确认界面只见 ref/label/channel,永远看不到平台原始 chat/user id;适配器无平台回执时投递状态为 `accepted`,仅当返回平台消息 id 时才是 `sent`(目前飞书已端到端支持)。
+
调度器自带**五个开箱即用的研究模板** —— `premarket-brief`、`earnings-season-tracker`、`portfolio-checkup`、`a-share-money-flow`、`institutional-holdings-diff`。每个模板用自然语言声明它需要什么数据,而不是点名某个工具,因此工具面扩展时模板依然有效;模板也被要求**指出缺失的输入**,而不是凭记忆补上。CLI、REST、TUI 里的 `/playbook` 三个入口都能用:
```bash