"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
docs(readme): add the 2026-09-15 news entry across six languages
Haozhe Wua5b79422f9f0
diff --git a/README.md b/README.mdindex 8ef367486..3fcb72acb 100644--- a/README.md+++ b/README.md@@ -52,15 +52,17 @@> ⚠️ **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-09-15** 🧮 **A grounding gate that decided what a number was from the words around it**: the check every market answer passes before release used to infer whether a figure was a price, a target or a metric from a catalogue of phrasings — 65 regular expressions that grew a fix commit per wording and could give a sentence and its translation different verdicts. The model now declares what each figure is in a `figures` block the reader never sees (`observed`, `derived`, `proposed`, `cited`, `count`); the gate reads only a number's shape and checks every declaration against the session's tool results. A rejected answer gets one correction that names each failing figure with the nearest observed prints, and if it still fails it is released with only those figures cut (`(略※)` / `(omitted※)`) instead of being replaced wholesale by a canned refusal, which remains only for an identity problem or a run that observed no price. While it waits, the chat shows "Checking the figures in this answer" in all eight languages. Before release it went through three rounds of adversarial review and real model runs, which added decimal commas, year-shaped prices, untagged code fences, integer prices of instruments quoted in the thousands, prices declared as counts and unchecked numbers reaching the stream. Metadata counts and metric-name tokens no longer ground a metric, and a sentence with several metrics is no longer rejected ([#1418](https://github.com/HKUDS/Vibe-Trading/issues/1418), [#1420](https://github.com/HKUDS/Vibe-Trading/issues/1420), [#1421](https://github.com/HKUDS/Vibe-Trading/issues/1421), [#1426](https://github.com/HKUDS/Vibe-Trading/issues/1426), [#1433](https://github.com/HKUDS/Vibe-Trading/issues/1433)). Thanks [@zeus229](https://github.com/zeus229), [@he-yufeng](https://github.com/he-yufeng) and [@5gaLbt](https://github.com/5gaLbt)!+- **2026-09-14** 🇰🇷 **A-shares backtested as perpetual futures, and a swarm argument the model could set but never change**: every branchless data source that serves A-shares — `local`, `tencent`, `eastmoney`, `baostock`, `mootdx`, `sina` — routed a pure A-share basket to the crypto engine, which applies none of the A-share rules (stamp tax, T+1, price limits, 100-share lots) and does charge an 8-hourly perpetual funding fee against the position. The run succeeded and its metrics were internally consistent, which is what made it dangerous; a pure A-share basket now reaches `ChinaAEngine` from every source ([#1431](https://github.com/HKUDS/Vibe-Trading/pull/1431)). Separately, the swarm worker overwrote every tool call's `run_dir` with the agent workspace, so for the tools that declare it — `backtest` above all — the model could pass any directory and read none of it, while the error named no path. A declared `run_dir` is now honoured inside the workspace and refused outside it with the boundary named, and the backtest tool says which directory it checked ([#1430](https://github.com/HKUDS/Vibe-Trading/pull/1430), [#1429](https://github.com/HKUDS/Vibe-Trading/pull/1429)). **New:** four connectors land together and the count reaches 18 — **KIS** (한국투자증권; a genuine 모의투자 paper sandbox on its own host, plus read-only live), **Upbit** (KRW crypto; paper + read-only live, capped because the exchange exposes no paper/live discriminator), **Toss Securities** (read-only live; the closed-order history is paged to completion and refused rather than truncated past the cap; read paths validated against a real account) and **Scalable Capital**'s Agentic MCP as a fully read-only profile with an explicit tool allowlist and no order capability ([#1407](https://github.com/HKUDS/Vibe-Trading/pull/1407), [#1408](https://github.com/HKUDS/Vibe-Trading/pull/1408), [#1409](https://github.com/HKUDS/Vibe-Trading/pull/1409), [#1417](https://github.com/HKUDS/Vibe-Trading/pull/1417)). **Fixed:** the shared SDK diagnostics told every broker's user to check Longbridge; they now name the affected broker's SDK or gateway in all eight languages ([#1436](https://github.com/HKUDS/Vibe-Trading/pull/1436)). Thanks [@chiww](https://github.com/chiww), [@cgycorey](https://github.com/cgycorey), [@as950118](https://github.com/as950118), [@dudco](https://github.com/dudco) and [@tingkk](https://github.com/tingkk)!- **2026-09-13** 🗂️ **A broker reply in the wrong shape that counted as an empty account, and run-card diagnostics that never reached the card**: the portfolio layer read positions with an empty list as the default, so a reply that never carried a positions list — an MCP response with no mapping yet, or IBKR's official MCP answering without structured positions — became a source holding nothing, and the snapshot was stored as complete. That is exactly the quietly smaller portfolio the aggregation exists to rule out, so a read without a positions list is now refused: the source shows as an error and the snapshot is marked incomplete, while a genuinely empty account (`"positions": []`) still reads as empty. It surfaced while reviewing a new MCP connector whose holdings are not mapped yet. Separately, the run card kept only scalar metrics, so every dict- or list-shaped diagnostic the engine writes for card readers was dropped — a reader could see how many plans were rejected, but not for which symbol or why. Those metrics now travel in a `structured_metrics` block, capped at 4 KiB of UTF-8 JSON per metric with anything larger named under `_omitted`, and render in the Run Card tab in all eight languages ([#1424](https://github.com/HKUDS/Vibe-Trading/pull/1424)). Thanks [@cgycorey](https://github.com/cgycorey)!-- **2026-09-12** 📥 **A dividend row that looks like a holding, and a number format where one misplaced separator is a thousandfold error**: extraETF's CSV exports can now be read into the portfolio layer's position shape — read-only, standard library only, and failing closed on anything it cannot read without guessing ([#1406](https://github.com/HKUDS/Vibe-Trading/pull/1406), toward [#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170)). The Investments export becomes positions and the Transaktionen export becomes typed movements, so a `Dividende` row, which carries a quantity and a price of its own, is never read as a position, and a transactions file cannot pose as an empty portfolio. Numbers follow the export's German grammar exactly: `1.386,608` is 1386.608, a US-ordered `1,234.56` is refused rather than read a thousandfold off, and a value the eight-decimal wire format cannot hold is refused rather than rounded — `0,000000004` shares would otherwise have become zero. An unknown header (the error names both known column sets), an unknown transaction label, a movement with no instrument, and one instrument listed twice under a single portfolio ID are all refused, while the same ISIN under two portfolio IDs — the export's normal multi-portfolio case — stays two positions. The export carries no snapshot date, so the file's modification time is reported as `source_mtime` and no position claims an observation time. Nothing calls the reader yet; wiring it into the portfolio container is next. Thanks [@cgycorey](https://github.com/cgycorey) and [@KaiLuettmann](https://github.com/KaiLuettmann)!-<details><summary>Earlier news</summary>+- **2026-09-12** 📥 **A dividend row that looks like a holding, and a number format where one misplaced separator is a thousandfold error**: extraETF's CSV exports can now be read into the portfolio layer's position shape — read-only, standard library only, and failing closed on anything it cannot read without guessing ([#1406](https://github.com/HKUDS/Vibe-Trading/pull/1406), toward [#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170)). The Investments export becomes positions and the Transaktionen export becomes typed movements, so a `Dividende` row, which carries a quantity and a price of its own, is never read as a position, and a transactions file cannot pose as an empty portfolio. Numbers follow the export's German grammar exactly: `1.386,608` is 1386.608, a US-ordered `1,234.56` is refused rather than read a thousandfold off, and a value the eight-decimal wire format cannot hold is refused rather than rounded — `0,000000004` shares would otherwise have become zero. An unknown header (the error names both known column sets), an unknown transaction label, a movement with no instrument, and one instrument listed twice under a single portfolio ID are all refused, while the same ISIN under two portfolio IDs — the export's normal multi-portfolio case — stays two positions. The export carries no snapshot date, so the file's modification time is reported as `source_mtime` and no position claims an observation time. Nothing calls the reader yet; wiring it into the portfolio container is next. Thanks [@cgycorey](https://github.com/cgycorey) and [@KaiLuettmann](https://github.com/KaiLuettmann)!+- **2026-09-11** 📉 **Eight years of Tencent history that came back as the last two, and an evidence gate that turned away every backtest the agent ran itself**: Tencent's `fqkline` endpoint serves the **last** 500 bars of a window, not the first — a CSI 300 request for `2018-01-01..2026-06-30` returns `2024-06-06..2026-06-30` — while the loader paginated forward, stepped past the window after one page and returned a tail-only series with exit code 0 and no warning. It now walks backward from the end date, re-requests an empty page once before believing it, treats an error-shaped reply as a failure, and bumps the loader cache version so series cached by the old walk are never served again ([#1411](https://github.com/HKUDS/Vibe-Trading/pull/1411), closes [#1410](https://github.com/HKUDS/Vibe-Trading/issues/1410)). `refresh_strategy_evidence` rejected every run produced by the `backtest` tool, because only the agent runtime wrote the `state.json` its ingestion gate reads; the tool now records success, failure and timeout itself, and the gate stays fail-closed for runs nobody vouches for ([#1413](https://github.com/HKUDS/Vibe-Trading/pull/1413), closes [#1412](https://github.com/HKUDS/Vibe-Trading/issues/1412)). Concurrent cold-start data requests could come back `_unresolved` for symbols that were perfectly available: the loader registry marked itself initialised before its imports ran, so simultaneous first callers saw it empty — seven of eight in the reporter's run ([#1405](https://github.com/HKUDS/Vibe-Trading/pull/1405), closes [#1403](https://github.com/HKUDS/Vibe-Trading/issues/1403)). A swarm worker's `skills:` list, documented as its allowlist, is now enforced by `load_skill` instead of only by the prompt ([#1414](https://github.com/HKUDS/Vibe-Trading/pull/1414)), and the correlation skill's Engle-Granger example, which crashed on an unnamed series, now calls the tested quantlib functions instead of its own OLS fit ([#1404](https://github.com/HKUDS/Vibe-Trading/pull/1404)). One more was ours: thirteen broker config files that hold API keys — `alpaca.json`, `zerodha.json` and the rest — were missing from `.gitignore` though its comment claimed them, so anyone whose `VIBE_TRADING_HOME` is the checkout was one `git add -A` away from committing credentials; a test now derives the list from the code. So was a paper cancel that answered for orders it never placed: the Zerodha, Dhan and Shoonya paper connectors simulate orders locally but read the real account, and acknowledged a cancel for any order id — a live one included, which would have kept working; they now accept only the ids their simulator issued. Thanks [@shadowinlife](https://github.com/shadowinlife), [@alanwilhelm](https://github.com/alanwilhelm) and [@Shizoqua](https://github.com/Shizoqua)!- **2026-09-10** 🧾 **A remediation message that named a variable nothing reads, and an adapted strategy that wore its parent's sign-off**: when stooq answers with its anti-bot challenge page, the loader tells the operator how to route around it — and both halves of that advice were unreachable as printed. `VIBE_TRADING_MARKET_DATA_ORDER_*` is read nowhere: the registry builds `MARKET_DATA_ORDER_<MARKET>` and the config layer passes it to a bare `os.getenv`, so exporting the name as printed was a silent no-op and stooq stayed at position 2 of the US-equity chain. The other half, "drop stooq from it", is rejected outright — an override must be a **permutation** of the default chain, so a source can be reordered but not removed. The message now names the variable the registry actually reads and states the constraint, pinned to the registry rather than to a literal so it cannot drift again ([#1402](https://github.com/HKUDS/Vibe-Trading/pull/1402)). Separately, the first half of description-driven strategy adaptation landed: an adapted strategy is a **new** artifact pointing at its parent through `derived_from`, the description may change universe, name and position sizing while the signal is copied verbatim, and the child starts with empty evidence so its numbers come from its own backtest instead of inheriting the parent's ([#1391](https://github.com/HKUDS/Vibe-Trading/pull/1391), refs [#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149)). Two gaps were closed on the way in, both one field over from the rule that PR was written to enforce. `dataclasses.replace` copies every field the call does not name, so the child came out `UNVALIDATED` while still carrying the parent's `validator` and `approver` — an independent sign-off worn by something that never earned it — along with an `artifact_version` and a `model_version` for code no model had generated yet. And the parent-evidence gate was reachable only from tests: `register_adaptation` never consulted it, so a stale or insufficient parent was written anyway, against what the substrate advertised. Its inputs are keyword-only and required now, so the check cannot be skipped by forgetting it. Thanks [@chiww](https://github.com/chiww) and [@modelpath-dev](https://github.com/modelpath-dev)!diff --git a/README_ar.md b/README_ar.mdindex 9f7f40785..770a13ddd 100644--- a/README_ar.md+++ b/README_ar.md@@ -52,15 +52,17 @@> ⚠️ **تحذير أمني:** حساب X باسم `VibeTrading_HKU`، ومشروع Virtuals رقم `101845`، وعقد التوكن `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` كلّها غير رسمية ولا تتبع Vibe-Trading. لم نُطلق أو نؤيد مطلقًا أي توكن أو عملة ميم. لا تشترِ هذا التوكن، ولا تربط محفظتك، ولا توقّع أي شيء. [التفاصيل](SECURITY.md#official-channels--impersonation).+- **2026-09-15** 🧮 **بوابة grounding كانت تقرر ماهية الرقم من الكلمات المحيطة به**: الفحص الذي تمر به كل إجابة عن السوق قبل نشرها كان يستنتج ما إذا كان الرقم سعراً أو هدفاً أو مؤشراً من قائمة صياغات — 65 تعبيراً نمطياً يُضاف إليها إصلاح مع كل صياغة جديدة، وقد تعطي الجملة وترجمتها حكمين مختلفين. الآن يصرّح النموذج بدور كل رقم في كتلة `figures` لا يراها القارئ (`observed` و`derived` و`proposed` و`cited` و`count`)، ولا تقرأ البوابة من الرقم إلا شكله، وتطابق كل تصريح مع نتائج أدوات هذه الجلسة. الإجابة المرفوضة تتلقى تصحيحاً واحداً يسمّي كل رقم لم يجتز الفحص مع أقرب القيم المرصودة، وإن فشلت مجدداً تُنشر بعد حذف تلك الأرقام وحدها (`(略※)` / `(omitted※)`) بدلاً من استبدالها كلها برفض جاهز، إذ لا يبقى الرفض إلا عند مشكلة في تحديد الأداة أو تشغيل لم يرصد أي سعر. وأثناء الانتظار تعرض المحادثة "جارٍ التحقق من الأرقام في هذه الإجابة" باللغات الثماني. وقبل النشر خضعت لثلاث جولات من المراجعة العدائية وتشغيلات بنماذج حقيقية، أضافت الفواصل العشرية، والأسعار التي تشبه السنوات، وكتل الشيفرة غير الموسومة بلغة، والأسعار الصحيحة لأدوات تُسعَّر بالآلاف، والأسعار المصرّح بها كأعداد، والأرقام غير المتحقق منها التي كانت تصل إلى البث. ولم تعد أعداد البيانات الوصفية وكلمات أسماء المؤشرات دليلاً على مؤشر، ولم تعد الجملة التي تجمع عدة مؤشرات تُرفض ([#1418](https://github.com/HKUDS/Vibe-Trading/issues/1418), [#1420](https://github.com/HKUDS/Vibe-Trading/issues/1420), [#1421](https://github.com/HKUDS/Vibe-Trading/issues/1421), [#1426](https://github.com/HKUDS/Vibe-Trading/issues/1426), [#1433](https://github.com/HKUDS/Vibe-Trading/issues/1433)). شكراً [@zeus229](https://github.com/zeus229) و[@he-yufeng](https://github.com/he-yufeng) و[@5gaLbt](https://github.com/5gaLbt)!+- **2026-09-14** 🇰🇷 **أسهم A جرى اختبارها رجعياً كعقود دائمة، ووسيطة swarm يستطيع النموذج تمريرها لكنها لا تُفعَّل أبداً**: كل مصدر بيانات بلا فرع مخصص يخدم أسهم A — `local` و`tencent` و`eastmoney` و`baostock` و`mootdx` و`sina` — كان يوجّه سلة أسهم A الخالصة إلى محرك العملات المشفّرة، الذي لا يطبّق أياً من قواعد سوق A (رسم الطابع، T+1، حدود السعر، وحدات 100 سهم) بينما يفرض على المركز رسم تمويل عقود دائمة كل 8 ساعات. كان التشغيل ينجح ومقاييسه متسقة داخلياً، وهذا بالضبط ما جعله خطراً؛ سلة أسهم A الخالصة تصل الآن إلى `ChinaAEngine` من أي مصدر ([#1431](https://github.com/HKUDS/Vibe-Trading/pull/1431)). وبشكل منفصل، كان عامل swarm يستبدل `run_dir` في كل استدعاء أداة بمساحة عمل الوكيل، فبالنسبة للأدوات التي تعلن هذه الوسيطة — و`backtest` قبل غيرها — كان النموذج يمرّر أي مجلد ولا يُقرأ أيٌّ منها، بينما لا يذكر الخطأ أي مسار. صار `run_dir` المعلَن يُحترم داخل مساحة العمل ويُرفض خارجها مع تسمية الحد، وتذكر أداة backtest المجلد الذي فحصته ([#1430](https://github.com/HKUDS/Vibe-Trading/pull/1430)، [#1429](https://github.com/HKUDS/Vibe-Trading/pull/1429)). **جديد:** أربعة موصّلات تصل معاً ليبلغ العدد 18 — **KIS** (한국투자증권؛ بيئة ورقية 모의투자 حقيقية على مضيفها الخاص، مع قراءة فقط للحساب الحي)، و**Upbit** (عملات مشفّرة بالوون؛ ورقي + حي للقراءة فقط، بسقف لأن المنصة لا توفّر مميّزاً بين الورقي والحي)، و**Toss Securities** (حي للقراءة فقط؛ سجل الأوامر المغلقة يُقرأ صفحةً صفحة حتى النهاية ويُرفض بدل اقتطاعه عند تجاوز الحد؛ مسارات القراءة تحقّق منها حساب حقيقي)، و**Scalable Capital** عبر Agentic MCP كملف تعريف للقراءة فقط بالكامل مع قائمة أدوات مسموح بها صريحة وبلا أي قدرة على إرسال الأوامر ([#1407](https://github.com/HKUDS/Vibe-Trading/pull/1407)، [#1408](https://github.com/HKUDS/Vibe-Trading/pull/1408)، [#1409](https://github.com/HKUDS/Vibe-Trading/pull/1409)، [#1417](https://github.com/HKUDS/Vibe-Trading/pull/1417)). **إصلاح:** كانت رسائل تشخيص SDK المشتركة تطلب من مستخدم أي وسيط فحص Longbridge؛ صارت تسمّي SDK الوسيط المعني أو بوابته في اللغات الثماني كلها ([#1436](https://github.com/HKUDS/Vibe-Trading/pull/1436)). شكراً [@chiww](https://github.com/chiww) و[@cgycorey](https://github.com/cgycorey) و[@as950118](https://github.com/as950118) و[@dudco](https://github.com/dudco) و[@tingkk](https://github.com/tingkk)!- **2026-09-13** 🗂️ **ردّ وسيط بشكل خاطئ احتُسب حساباً فارغاً، وتشخيصات تشغيل لم تصل قطّ إلى بطاقة التشغيل**: كانت طبقة المحفظة تقرأ المراكز بقائمة فارغة كقيمة افتراضية، فصار أي ردّ لا يحمل قائمة مراكز أصلاً — استجابة MCP لم يُكتب لها تحويل بعد، أو ردّ MCP الرسمي من IBKR حين لا يعيد مراكز منظّمة — مصدراً لا يملك شيئاً، وتُحفَظ اللقطة على أنها مكتملة. هذه بالضبط هي «المحفظة التي تصغر بصمت» التي وُجد التجميع لمنعها، لذا يُرفض الآن أي ردّ بلا قائمة مراكز: يظهر المصدر كخطأ وتُعلَّم اللقطة بأنها غير مكتملة، بينما يُقرأ الحساب الفارغ فعلاً (`"positions": []`) فارغاً كما هو. ظهرت المشكلة أثناء مراجعة موصِّل MCP جديد لم تُحوَّل حيازاته بعد. ومن جهة أخرى، كانت بطاقة التشغيل تحتفظ بالمقاييس العددية المفردة فقط، فكان كل تشخيص على شكل قاموس أو قائمة يكتبه المحرّك لقرّاء البطاقة يُهمَل — كان القارئ يرى عدد الخطط المرفوضة، لا الرمز الذي رُفضت له ولا السبب. تنتقل هذه المقاييس الآن في كتلة `structured_metrics` بحدّ أقصى 4 KiB من JSON بترميز UTF-8 لكل مقياس، ويُذكر اسم ما يتجاوزه تحت `_omitted`، وتُعرض في تبويب Run Card بجميع اللغات الثماني ([#1424](https://github.com/HKUDS/Vibe-Trading/pull/1424)). شكراً [@cgycorey](https://github.com/cgycorey)!-- **2026-09-12** 📥 **سطر توزيعات أرباح يبدو كأنه مركز، وصيغة أرقام يكفي فيها فاصل في غير موضعه لخطأ بألف ضعف**: أصبح بالإمكان قراءة صادرات CSV من extraETF إلى بنية المراكز في طبقة المحفظة — للقراءة فقط، بالمكتبة القياسية وحدها، مع رفض كل ما لا يمكن قراءته دون تخمين ([#1406](https://github.com/HKUDS/Vibe-Trading/pull/1406)، في إطار [#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170)). يُقرأ تصدير Investments كمراكز وتصدير Transaktionen كحركات مصنّفة، فلا يُقرأ سطر `Dividende` (توزيع أرباح)، الذي يحمل كمية وسعراً خاصين به، كمركز أبداً، ولا يمكن لملف معاملات أن يتظاهر بأنه محفظة فارغة. تتبع الأرقام الصيغة الألمانية للتصدير بدقة: `1.386,608` تساوي 1386.608، ويُرفض `1,234.56` بترتيبه الأمريكي بدل قراءته بخطأ ألف ضعف، وتُرفض القيمة التي لا تتسع لها دقة النقل ذات المنازل العشرية الثماني بدل تقريبها — وإلا لأصبح `0,000000004` سهم صفراً. تُرفض الترويسة غير المعروفة (تذكر رسالة الخطأ مجموعتي الأعمدة المعروفتين)، ووسم المعاملة غير المعروف، والحركة التي لا أداة لها، والأداة المدرجة مرتين تحت معرّف محفظة واحد؛ أما الـ ISIN نفسه تحت معرّفي محفظة مختلفين — وهي الحالة المعتادة في تصدير متعدد المحافظ — فيبقى مركزين. لا يحمل التصدير تاريخ لقطة، لذا يُبلَّغ عن وقت تعديل الملف بوصفه `source_mtime` ولا يدّعي أي مركز وقت رصد. لا يستدعي أي شيء هذا القارئ بعد، والخطوة التالية ربطه بحاوية المحفظة. شكراً [@cgycorey](https://github.com/cgycorey) و[@KaiLuettmann](https://github.com/KaiLuettmann)!-<details><summary>أخبار سابقة</summary>+- **2026-09-12** 📥 **سطر توزيعات أرباح يبدو كأنه مركز، وصيغة أرقام يكفي فيها فاصل في غير موضعه لخطأ بألف ضعف**: أصبح بالإمكان قراءة صادرات CSV من extraETF إلى بنية المراكز في طبقة المحفظة — للقراءة فقط، بالمكتبة القياسية وحدها، مع رفض كل ما لا يمكن قراءته دون تخمين ([#1406](https://github.com/HKUDS/Vibe-Trading/pull/1406)، في إطار [#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170)). يُقرأ تصدير Investments كمراكز وتصدير Transaktionen كحركات مصنّفة، فلا يُقرأ سطر `Dividende` (توزيع أرباح)، الذي يحمل كمية وسعراً خاصين به، كمركز أبداً، ولا يمكن لملف معاملات أن يتظاهر بأنه محفظة فارغة. تتبع الأرقام الصيغة الألمانية للتصدير بدقة: `1.386,608` تساوي 1386.608، ويُرفض `1,234.56` بترتيبه الأمريكي بدل قراءته بخطأ ألف ضعف، وتُرفض القيمة التي لا تتسع لها دقة النقل ذات المنازل العشرية الثماني بدل تقريبها — وإلا لأصبح `0,000000004` سهم صفراً. تُرفض الترويسة غير المعروفة (تذكر رسالة الخطأ مجموعتي الأعمدة المعروفتين)، ووسم المعاملة غير المعروف، والحركة التي لا أداة لها، والأداة المدرجة مرتين تحت معرّف محفظة واحد؛ أما الـ ISIN نفسه تحت معرّفي محفظة مختلفين — وهي الحالة المعتادة في تصدير متعدد المحافظ — فيبقى مركزين. لا يحمل التصدير تاريخ لقطة، لذا يُبلَّغ عن وقت تعديل الملف بوصفه `source_mtime` ولا يدّعي أي مركز وقت رصد. لا يستدعي أي شيء هذا القارئ بعد، والخطوة التالية ربطه بحاوية المحفظة. شكراً [@cgycorey](https://github.com/cgycorey) و[@KaiLuettmann](https://github.com/KaiLuettmann)!+- **2026-09-11** 📉 **ثماني سنوات من سجلّ Tencent عادت على أنها السنتان الأخيرتان فقط، وبوابة أدلة ردّت كل اختبار خلفي شغّله الوكيل بنفسه**: تُعيد نقطة النهاية `fqkline` لدى Tencent **آخر** 500 شمعة من النافذة المطلوبة لا أولها — طلب مؤشر CSI 300 للفترة `2018-01-01..2026-06-30` يُعيد `2024-06-06..2026-06-30` — بينما كان الـ loader يتقدّم بالصفحات إلى الأمام، فيتجاوز النافذة بعد صفحة واحدة ويُعيد سلسلة لا تحوي إلا ذيلها، برمز خروج 0 ومن دون أي تحذير. صار الآن يسير إلى الخلف انطلاقًا من تاريخ النهاية، ويعيد طلب الصفحة الفارغة مرة واحدة قبل أن يصدّقها، ويعامل الرد ذا شكل الخطأ على أنه فشل، ويرفع إصدار ذاكرة التخزين المؤقت للـ loader كي لا تُقدَّم مجددًا السلاسل المخزّنة بالطريقة القديمة ([#1411](https://github.com/HKUDS/Vibe-Trading/pull/1411)، يُغلق [#1410](https://github.com/HKUDS/Vibe-Trading/issues/1410)). وكان `refresh_strategy_evidence` يرفض كل تشغيل تُنتجه أداة `backtest`، لأن ملف `state.json` الذي تقرؤه بوابة الإدخال لم يكن يكتبه إلا وقت تشغيل الوكيل؛ باتت الأداة تسجّل النجاح والفشل وانتهاء المهلة بنفسها، وتبقى البوابة مغلقة افتراضيًا أمام التشغيلات التي لا يكفلها أحد ([#1413](https://github.com/HKUDS/Vibe-Trading/pull/1413)، يُغلق [#1412](https://github.com/HKUDS/Vibe-Trading/issues/1412)). وقد تعود طلبات البيانات المتزامنة عند الإقلاع البارد بـ `_unresolved` لرموز متاحة تمامًا: كان سجلّ الـ loaders يعلن نفسه مهيّأً قبل تنفيذ عمليات الاستيراد، فيراه أوائل المستدعين المتزامنين فارغًا — سبعة من ثمانية في تجربة المُبلِّغ ([#1405](https://github.com/HKUDS/Vibe-Trading/pull/1405)، يُغلق [#1403](https://github.com/HKUDS/Vibe-Trading/issues/1403)). وأصبحت قائمة `skills:` لعامل الـ swarm، الموثّقة على أنها قائمة السماح الخاصة به، تُفرض عبر `load_skill` لا عبر الـ prompt وحده ([#1414](https://github.com/HKUDS/Vibe-Trading/pull/1414))، كما صار مثال Engle-Granger في مهارة الارتباط، الذي كان ينهار مع سلسلة بلا اسم، يستدعي دوال quantlib المختبَرة بدل ملاءمة OLS خاصة به ([#1404](https://github.com/HKUDS/Vibe-Trading/pull/1404)). وواحدة كانت منّا: ثلاثة عشر ملف إعداد للوسطاء تحوي مفاتيح API — `alpaca.json` و`zerodha.json` وغيرهما — كانت غائبة عن `.gitignore` مع أن تعليقه يزعم تغطيتها، فكان من يضبط `VIBE_TRADING_HOME` على مجلد المستودع على بُعد `git add -A` واحد من إيداع بيانات اعتماده؛ والآن يستخرج اختبارٌ هذه القائمة من الشيفرة. وكذلك إلغاءٌ ورقيّ كان يجيب عن أوامر لم يُصدرها: موصلات Zerodha وDhan وShoonya الورقية تحاكي الأوامر محليًا لكنها تقرأ الحساب الحقيقي، وكانت تؤكد إلغاء أي معرّف أمر — حتى أمرٍ حقيقي كان سيبقى قائمًا؛ صارت الآن لا تقبل إلا المعرّفات التي أصدرها المحاكي نفسه. شكرًا [@shadowinlife](https://github.com/shadowinlife) و[@alanwilhelm](https://github.com/alanwilhelm) و[@Shizoqua](https://github.com/Shizoqua)!- **2026-09-10** 🧾 **رسالة معالجة تُسمّي متغيّرًا لا يقرأه أحد، واستراتيجية مُكيَّفة ترتدي توقيع أصلها**: حين يردّ stooq بصفحة التحقق المضادة للبوتات، يخبر الـ loader المشغّل بكيفية الالتفاف حولها — وكان نصفا تلك النصيحة غير قابلين للتنفيذ كما طُبعا. فالمتغيّر `VIBE_TRADING_MARKET_DATA_ORDER_*` لا يُقرأ في أي مكان: الـ registry يبني `MARKET_DATA_ORDER_<MARKET>` وطبقة الإعدادات تمرّره إلى `os.getenv` مجرّدًا، فتصديره بالاسم المطبوع كان عملية فارغة صامتة، وبقي stooq في الموضع الثاني من سلسلة الأسهم الأمريكية. أما النصف الآخر، «احذفه من السلسلة»، فمرفوض تمامًا — إذ يجب أن يكون التجاوز **تبديلًا** لترتيب السلسلة الافتراضية، فيمكن إعادة ترتيب المصدر لا إزالته. الرسالة الآن تسمّي المتغيّر الذي يقرأه الـ registry فعلًا وتذكر قيد التبديل، ومثبّتة على الـ registry بدل نص حرفي كي لا تنحرف ثانية ([#1402](https://github.com/HKUDS/Vibe-Trading/pull/1402)). وبشكل منفصل، وصل النصف الأول من تكييف الاستراتيجيات المُوجَّه بالوصف: الاستراتيجية المكيَّفة أثر **جديد** يشير إلى أصله عبر `derived_from`، وللوصف أن يغيّر النطاق والاسم وتحجيم المركز بينما تُنسخ الإشارة حرفيًا، ويبدأ الابن بأدلة فارغة كي تأتي أرقامه من اختباره الخلفي هو لا بالوراثة عن أصله ([#1391](https://github.com/HKUDS/Vibe-Trading/pull/1391)، يرتبط بـ [#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149)). أُغلقت ثغرتان أثناء الدمج، وكلتاهما تبعد حقلًا واحدًا عن القاعدة التي كُتب ذلك الـ PR لفرضها. فـ `dataclasses.replace` ينسخ كل حقل لا يسمّيه الاستدعاء، فكان الابن يخرج `UNVALIDATED` وهو مع ذلك يحمل `validator` و`approver` أصله — توقيعًا مستقلًا لم ينله قط — إضافة إلى `artifact_version` و`model_version` لشيفرة لم يولّدها أي نموذج بعد. كما أن بوابة أدلة الأصل لم تكن بالغة إلا من الاختبارات: `register_adaptation` لم يستشرها قط، فكان الأصل ذو الأدلة المتقادمة أو غير الكافية يُكتب رغم ذلك، خلافًا لما تعلنه هذه البنية. مدخلاتها الآن كلمات مفتاحية وإلزامية، فلا يمكن تخطّي الفحص بنسيانه. شكرًا [@chiww](https://github.com/chiww) و[@modelpath-dev](https://github.com/modelpath-dev)!diff --git a/README_es.md b/README_es.mdindex 870c38004..e7dc16d58 100644--- a/README_es.md+++ b/README_es.md@@ -52,15 +52,17 @@> ⚠️ **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-09-15** 🧮 **Un control de grounding que decidía qué era un número por las palabras que lo rodeaban**: la comprobación que pasa toda respuesta de mercado antes de publicarse deducía si una cifra era un precio, un objetivo o una métrica a partir de un catálogo de formulaciones — 65 expresiones regulares que sumaban un commit de corrección por cada redacción nueva y podían dar veredictos distintos a una frase y a su traducción. Ahora el modelo declara el papel de cada cifra en un bloque `figures` que el lector nunca ve (`observed`, `derived`, `proposed`, `cited`, `count`); el control solo lee la forma del número y contrasta cada declaración con los resultados de las herramientas de la sesión. Una respuesta rechazada recibe una única corrección que nombra cada cifra fallida con los valores observados más cercanos y, si aún falla, se publica recortando solo esas cifras (`(略※)` / `(omitted※)`) en lugar de sustituirse entera por un rechazo predefinido, que queda solo para un problema de identificación del instrumento o una ejecución que no observó ningún precio. Mientras espera, el chat muestra "Verificando las cifras de esta respuesta" en los ocho idiomas. Antes de publicarse pasó tres rondas de revisión adversarial y ejecuciones con modelos reales, que añadieron comas decimales, precios con forma de año, bloques de código sin etiqueta de lenguaje, precios enteros de instrumentos que cotizan en miles, precios declarados como conteos y cifras sin verificar que llegaban al stream. Los recuentos de metadatos y las palabras del nombre de una métrica ya no la respaldan, y una frase con varias métricas ya no se rechaza ([#1418](https://github.com/HKUDS/Vibe-Trading/issues/1418), [#1420](https://github.com/HKUDS/Vibe-Trading/issues/1420), [#1421](https://github.com/HKUDS/Vibe-Trading/issues/1421), [#1426](https://github.com/HKUDS/Vibe-Trading/issues/1426), [#1433](https://github.com/HKUDS/Vibe-Trading/issues/1433)). ¡Gracias [@zeus229](https://github.com/zeus229), [@he-yufeng](https://github.com/he-yufeng) y [@5gaLbt](https://github.com/5gaLbt)!+- **2026-09-14** 🇰🇷 **Acciones A backtesteadas como futuros perpetuos, y un argumento de swarm que el modelo podía fijar pero que nunca cambiaba nada**: toda fuente de datos sin rama propia que sirve acciones A — `local`, `tencent`, `eastmoney`, `baostock`, `mootdx`, `sina` — enviaba una cesta puramente de acciones A al motor de cripto, que no aplica ninguna de las reglas del mercado A (impuesto de timbre, T+1, límites de precio, lotes de 100 acciones) y sí cobra a la posición una tasa de financiación de perpetuos cada 8 horas. La ejecución terminaba bien y sus métricas eran internamente coherentes, que es justo lo que la hacía peligrosa; una cesta puramente de acciones A ahora llega a `ChinaAEngine` desde cualquier fuente ([#1431](https://github.com/HKUDS/Vibe-Trading/pull/1431)). Por otro lado, el worker de swarm sobrescribía el `run_dir` de cada llamada a herramienta con el espacio de trabajo del agente, así que en las herramientas que lo declaran — `backtest` ante todo — el modelo podía pasar cualquier directorio y no se leía ninguno, mientras el error no nombraba ruta alguna. Un `run_dir` declarado ahora se respeta dentro del espacio de trabajo y se rechaza fuera de él nombrando el límite, y la herramienta backtest dice qué directorio comprobó ([#1430](https://github.com/HKUDS/Vibe-Trading/pull/1430), [#1429](https://github.com/HKUDS/Vibe-Trading/pull/1429)). **Nuevo:** cuatro conectores llegan juntos y el recuento alcanza 18 — **KIS** (한국투자증권; un sandbox paper 모의투자 real en su propio host, más live de solo lectura), **Upbit** (cripto en KRW; paper + live de solo lectura, acotado porque el exchange no expone discriminador paper/live), **Toss Securities** (live de solo lectura; el historial de órdenes cerradas se pagina hasta el final y se rechaza en lugar de truncarse al superar el tope; rutas de lectura validadas con una cuenta real) y el Agentic MCP de **Scalable Capital** como perfil completamente de solo lectura con lista blanca explícita de herramientas y sin capacidad de órdenes ([#1407](https://github.com/HKUDS/Vibe-Trading/pull/1407), [#1408](https://github.com/HKUDS/Vibe-Trading/pull/1408), [#1409](https://github.com/HKUDS/Vibe-Trading/pull/1409), [#1417](https://github.com/HKUDS/Vibe-Trading/pull/1417)). **Corregido:** los diagnósticos compartidos del SDK decían al usuario de cualquier broker que revisara Longbridge; ahora nombran el SDK o la puerta de enlace del broker afectado en los ocho idiomas ([#1436](https://github.com/HKUDS/Vibe-Trading/pull/1436)). ¡Gracias [@chiww](https://github.com/chiww), [@cgycorey](https://github.com/cgycorey), [@as950118](https://github.com/as950118), [@dudco](https://github.com/dudco) y [@tingkk](https://github.com/tingkk)!- **2026-09-13** 🗂️ **Una respuesta de bróker con la forma equivocada que contaba como una cuenta vacía, y diagnósticos de ejecución que nunca llegaban a la tarjeta**: la capa de portafolio leía las posiciones con una lista vacía como valor por defecto, así que una respuesta que nunca traía una lista de posiciones —una respuesta MCP todavía sin mapeo, o el MCP oficial de IBKR cuando responde sin posiciones estructuradas— se convertía en una fuente que no tiene nada, y la instantánea se guardaba como completa. Es exactamente el portafolio que se encoge en silencio que la agregación existe para impedir, así que ahora una lectura sin lista de posiciones se rechaza: la fuente aparece como error y la instantánea se marca incompleta, mientras que una cuenta realmente vacía (`"positions": []`) se sigue leyendo como vacía. Salió a la luz revisando un nuevo conector MCP cuyas posiciones aún no están mapeadas. Por otro lado, la tarjeta de ejecución solo conservaba métricas escalares, así que todo diagnóstico en forma de diccionario o lista que el motor escribe para quien lee la tarjeta se descartaba: se veía cuántos planes se rechazaron, pero no para qué símbolo ni por qué. Esas métricas viajan ahora en un bloque `structured_metrics`, con un tope de 4 KiB de JSON UTF-8 por métrica y el nombre de lo que lo supere bajo `_omitted`, y se muestran en la pestaña Run Card en los ocho idiomas ([#1424](https://github.com/HKUDS/Vibe-Trading/pull/1424)). ¡Gracias [@cgycorey](https://github.com/cgycorey)!-- **2026-09-12** 📥 **Una fila de dividendo que parece una posición, y un formato numérico en el que un separador fuera de lugar es un error de mil veces**: las exportaciones CSV de extraETF ya se pueden leer en la estructura de posiciones de la capa de portafolio — solo lectura, solo biblioteca estándar, y rechazando todo lo que no pueda leer sin adivinar ([#1406](https://github.com/HKUDS/Vibe-Trading/pull/1406), hacia [#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170)). La exportación Investments se convierte en posiciones y la exportación Transaktionen en movimientos tipados, así que una fila `Dividende`, que trae su propia cantidad y su propio precio, nunca se lee como posición, y un archivo de transacciones no puede hacerse pasar por un portafolio vacío. Los números siguen exactamente la gramática alemana de la exportación: `1.386,608` es 1386.608, un `1,234.56` en orden estadounidense se rechaza en lugar de leerse desviado mil veces, y un valor que el formato de transferencia de ocho decimales no puede representar se rechaza en lugar de redondearse — si no, `0,000000004` acciones se habrían convertido en cero. Se rechazan una cabecera desconocida (el error nombra los dos conjuntos de columnas conocidos), una etiqueta de transacción desconocida, un movimiento sin instrumento y un instrumento listado dos veces bajo un mismo Portfolio ID, mientras que el mismo ISIN bajo dos Portfolio IDs — el caso normal de una exportación multiportafolio — sigue siendo dos posiciones. La exportación no trae fecha de instantánea, así que la hora de modificación del archivo se informa como `source_mtime` y ninguna posición afirma una hora de observación. Todavía nada llama al lector; lo siguiente es conectarlo al contenedor de portafolio. ¡Gracias [@cgycorey](https://github.com/cgycorey) y [@KaiLuettmann](https://github.com/KaiLuettmann)!-<details><summary>Noticias anteriores</summary>+- **2026-09-12** 📥 **Una fila de dividendo que parece una posición, y un formato numérico en el que un separador fuera de lugar es un error de mil veces**: las exportaciones CSV de extraETF ya se pueden leer en la estructura de posiciones de la capa de portafolio — solo lectura, solo biblioteca estándar, y rechazando todo lo que no pueda leer sin adivinar ([#1406](https://github.com/HKUDS/Vibe-Trading/pull/1406), hacia [#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170)). La exportación Investments se convierte en posiciones y la exportación Transaktionen en movimientos tipados, así que una fila `Dividende`, que trae su propia cantidad y su propio precio, nunca se lee como posición, y un archivo de transacciones no puede hacerse pasar por un portafolio vacío. Los números siguen exactamente la gramática alemana de la exportación: `1.386,608` es 1386.608, un `1,234.56` en orden estadounidense se rechaza en lugar de leerse desviado mil veces, y un valor que el formato de transferencia de ocho decimales no puede representar se rechaza en lugar de redondearse — si no, `0,000000004` acciones se habrían convertido en cero. Se rechazan una cabecera desconocida (el error nombra los dos conjuntos de columnas conocidos), una etiqueta de transacción desconocida, un movimiento sin instrumento y un instrumento listado dos veces bajo un mismo Portfolio ID, mientras que el mismo ISIN bajo dos Portfolio IDs — el caso normal de una exportación multiportafolio — sigue siendo dos posiciones. La exportación no trae fecha de instantánea, así que la hora de modificación del archivo se informa como `source_mtime` y ninguna posición afirma una hora de observación. Todavía nada llama al lector; lo siguiente es conectarlo al contenedor de portafolio. ¡Gracias [@cgycorey](https://github.com/cgycorey) y [@KaiLuettmann](https://github.com/KaiLuettmann)!+- **2026-09-11** 📉 **Ocho años de historial de Tencent que volvían como los dos últimos, y una compuerta de evidencia que rechazaba cada backtest que el propio agente ejecutaba**: el endpoint `fqkline` de Tencent sirve las **últimas** 500 barras de una ventana, no las primeras —pedir el CSI 300 para `2018-01-01..2026-06-30` devuelve `2024-06-06..2026-06-30`—, mientras el loader paginaba hacia delante, se salía de la ventana tras una página y devolvía una serie con solo la cola, con código de salida 0 y sin aviso. Ahora recorre hacia atrás desde la fecha final, vuelve a pedir una página vacía una vez antes de creérsela, trata una respuesta con forma de error como un fallo y sube la versión de la caché de loaders para que las series cacheadas con el recorrido antiguo no vuelvan a servirse ([#1411](https://github.com/HKUDS/Vibe-Trading/pull/1411), cierra [#1410](https://github.com/HKUDS/Vibe-Trading/issues/1410)). `refresh_strategy_evidence` rechazaba cada ejecución producida por la herramienta `backtest`, porque solo el runtime del agente escribía el `state.json` que lee su compuerta de ingesta; ahora la herramienta registra ella misma el éxito, el fallo y el timeout, y la compuerta sigue cerrada por defecto para las ejecuciones que nadie avala ([#1413](https://github.com/HKUDS/Vibe-Trading/pull/1413), cierra [#1412](https://github.com/HKUDS/Vibe-Trading/issues/1412)). Peticiones de datos concurrentes en arranque en frío podían devolver `_unresolved` para símbolos perfectamente disponibles: el registro de loaders se marcaba como inicializado antes de ejecutar sus imports, así que los primeros llamantes simultáneos lo veían vacío —siete de ocho en la ejecución del reportante— ([#1405](https://github.com/HKUDS/Vibe-Trading/pull/1405), cierra [#1403](https://github.com/HKUDS/Vibe-Trading/issues/1403)). La lista `skills:` de un worker del swarm, documentada como su lista de permitidos, ahora la hace cumplir `load_skill` y no solo el prompt ([#1414](https://github.com/HKUDS/Vibe-Trading/pull/1414)), y el ejemplo Engle-Granger de la skill de correlación, que fallaba con una serie sin nombre, ahora llama a las funciones probadas de quantlib en lugar de su propio ajuste OLS ([#1404](https://github.com/HKUDS/Vibe-Trading/pull/1404)). Una más era nuestra: trece ficheros de configuración de brókeres que guardan claves de API —`alpaca.json`, `zerodha.json` y el resto— faltaban en `.gitignore` aunque su comentario decía cubrirlos, así que quien tenga `VIBE_TRADING_HOME` apuntando al checkout estaba a un `git add -A` de commitear credenciales; ahora un test deriva la lista del código. También lo era una cancelación en papel que respondía por órdenes que nunca colocó: los conectores de papel de Zerodha, Dhan y Shoonya simulan las órdenes en local pero leen la cuenta real, y confirmaban la cancelación de cualquier id —incluida una orden real, que habría seguido viva—; ahora solo aceptan los ids que emitió su simulador. ¡Gracias [@shadowinlife](https://github.com/shadowinlife), [@alanwilhelm](https://github.com/alanwilhelm) y [@Shizoqua](https://github.com/Shizoqua)!- **2026-09-10** 🧾 **Un mensaje de solución que nombraba una variable que nadie lee, y una estrategia adaptada que llevaba puesta la firma de su padre**: cuando stooq responde con su página de desafío anti-bot, el loader le dice al operador cómo esquivarla — y las dos mitades de ese consejo eran inaplicables tal como se imprimían. `VIBE_TRADING_MARKET_DATA_ORDER_*` no se lee en ninguna parte: el registry construye `MARKET_DATA_ORDER_<MARKET>` y la capa de configuración se lo pasa a un `os.getenv` pelado, así que exportar el nombre impreso era una operación nula silenciosa y stooq seguía en la posición 2 de la cadena de renta variable estadounidense. La otra mitad, «quítalo de la cadena», se rechaza de plano: un override debe ser una **permutación** de la cadena por defecto, de modo que una fuente puede reordenarse pero no eliminarse. El mensaje ahora nombra la variable que el registry lee de verdad y enuncia la restricción, anclado al registry en lugar de a un literal para que no vuelva a desviarse ([#1402](https://github.com/HKUDS/Vibe-Trading/pull/1402)). Aparte, aterrizó la primera mitad de la adaptación de estrategias dirigida por descripción: una estrategia adaptada es un artefacto **nuevo** que apunta a su padre mediante `derived_from`, la descripción puede cambiar universo, nombre y dimensionamiento de posición mientras la señal se copia literalmente, y el hijo arranca sin evidencia para que sus números salgan de su propio backtest en vez de heredar los del padre ([#1391](https://github.com/HKUDS/Vibe-Trading/pull/1391), ref. [#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149)). Se cerraron dos huecos al entrar, ambos a un campo de distancia de la regla que ese PR venía a imponer. `dataclasses.replace` copia todos los campos que la llamada no nombra, así que el hijo salía `UNVALIDATED` y aun así llevaba el `validator` y el `approver` del padre — una validación independiente que nunca se ganó — junto con un `artifact_version` y un `model_version` de código que ningún modelo había generado todavía. Y la compuerta de evidencia del padre solo era alcanzable desde las pruebas: `register_adaptation` nunca la consultaba, de modo que un padre con evidencia obsoleta o insuficiente se escribía igual, en contra de lo que el sustrato anunciaba. Sus entradas ahora son de solo palabra clave y obligatorias, así que la comprobación no puede saltarse por olvido. ¡Gracias [@chiww](https://github.com/chiww) y [@modelpath-dev](https://github.com/modelpath-dev)!diff --git a/README_ja.md b/README_ja.mdindex 9db35e26d..b67d15f79 100644--- a/README_ja.md+++ b/README_ja.md@@ -52,15 +52,17 @@> ⚠️ **セキュリティ警告:** Xアカウント `VibeTrading_HKU`、Virtualsプロジェクト `101845`、およびトークンコントラクト `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` は、いずれもVibe-Trading公式のものではありません。Vibe-Tradingはこれまで、いかなるトークンやミームコインも発行・公認していません。購入、ウォレットの接続、署名は行わないでください。[詳細](SECURITY.md#official-channels--impersonation)+- **2026-09-15** 🧮 **数字のまわりの言葉で、その数字が何かを決めていた grounding ゲート**: 市場に関する回答が公開前に必ず通るこのチェックは、ある数字が価格か目標価格か指標かを言い回しのカタログから推定していました — 65 本の正規表現は言い回しが増えるたびに修正コミットを重ね、同じ文とその翻訳で判定が食い違うこともありました。いまはモデルが読者には見えない `figures` ブロックで各数字の役割(`observed`、`derived`、`proposed`、`cited`、`count`)を宣言し、ゲートは数字の形だけを読んで、各宣言をこのセッションのツール結果と照合します。却下された回答には、通らなかった数字ごとに最も近い観測値を示す修正が一度だけ返され、それでも通らなければその数字だけを削って(`(略※)`)公開します。定型の拒否文に丸ごと置き換えるのは、銘柄の特定に問題がある場合と価格を一つも取得していない場合だけです。待っている間、チャットには「回答内の数値を確認中」と 8 言語で表示されます。公開前に 3 回の敵対的レビューと実モデルでの実行を経て、小数点のカンマ、年に見える価格、言語指定のないコードブロック、千単位で取引される銘柄の整数価格、count と宣言された価格、未検証の数字のストリーミングに対応しました。メタデータの件数や指標名の語が指標の根拠になることはなくなり、複数の指標を一文に書いても誤って却下されません([#1418](https://github.com/HKUDS/Vibe-Trading/issues/1418)、[#1420](https://github.com/HKUDS/Vibe-Trading/issues/1420)、[#1421](https://github.com/HKUDS/Vibe-Trading/issues/1421)、[#1426](https://github.com/HKUDS/Vibe-Trading/issues/1426)、[#1433](https://github.com/HKUDS/Vibe-Trading/issues/1433))。[@zeus229](https://github.com/zeus229)、[@he-yufeng](https://github.com/he-yufeng)、[@5gaLbt](https://github.com/5gaLbt) に感謝します!+- **2026-09-14** 🇰🇷 **無期限先物としてバックテストされていた A 株と、モデルが渡せても決して効かなかった swarm の引数**: A 株を配信する専用分岐のないデータソース — `local`、`tencent`、`eastmoney`、`baostock`、`mootdx`、`sina` — はすべて、A 株だけのバスケットを暗号資産エンジンへ振り分けていました。そこでは A 株のルール(印紙税、T+1、値幅制限、100 株単位)が一切適用されず、代わりに 8 時間ごとの無期限先物の資金調達手数料がポジションに課されます。実行は成功し指標も内部的に整合していたため、かえって危険でした。A 株だけのバスケットは、どのソースからでも `ChinaAEngine` に到達するようになりました([#1431](https://github.com/HKUDS/Vibe-Trading/pull/1431))。別件として、swarm worker はすべてのツール呼び出しの `run_dir` をエージェントのワークスペースで上書きしていたため、`run_dir` を宣言するツール — とりわけ `backtest` — ではモデルがどのディレクトリを渡しても読まれず、エラーにもパスが出ませんでした。宣言された `run_dir` はワークスペース内ならそのまま尊重し、外なら境界を明示して拒否するようになり、backtest ツールは確認したディレクトリを名指しします([#1430](https://github.com/HKUDS/Vibe-Trading/pull/1430)、[#1429](https://github.com/HKUDS/Vibe-Trading/pull/1429))。**新規:** 4 つのコネクタが同時に着地し、総数は 18 に — **KIS**(한국투자증권。専用ホスト上の本物の 모의투자 ペーパー環境に加え読み取り専用ライブ)、**Upbit**(KRW 建て暗号資産。ペーパー + 読み取り専用ライブ。取引所がペーパー/ライブの判別子を持たないため上限あり)、**Toss Securities**(読み取り専用ライブ。約定済み注文履歴は最後までページングし、上限超過は切り詰めではなく拒否。読み取り経路は実口座で検証済み)、そして **Scalable Capital** の Agentic MCP を、明示的なツール許可リスト付き・発注機能なしの完全読み取り専用プロファイルとして([#1407](https://github.com/HKUDS/Vibe-Trading/pull/1407)、[#1408](https://github.com/HKUDS/Vibe-Trading/pull/1408)、[#1409](https://github.com/HKUDS/Vibe-Trading/pull/1409)、[#1417](https://github.com/HKUDS/Vibe-Trading/pull/1417))。**修正:** 共有の SDK 診断メッセージがどのブローカーの利用者にも Longbridge を確認するよう告げていました。8 言語すべてで、該当ブローカーの SDK やゲートウェイを指すようになりました([#1436](https://github.com/HKUDS/Vibe-Trading/pull/1436))。[@chiww](https://github.com/chiww)、[@cgycorey](https://github.com/cgycorey)、[@as950118](https://github.com/as950118)、[@dudco](https://github.com/dudco)、[@tingkk](https://github.com/tingkk) に感謝します!- **2026-09-13** 🗂️ **形の違うブローカー応答が空の口座として数えられた件と、ランカードに届いていなかった診断情報**:portfolio 層はポジションを空リストを既定値として読んでいたため、ポジションのリストをそもそも含まない応答——まだマッピングのない MCP レスポンスや、構造化されたポジションを返さなかったときの IBKR 公式 MCP——が「何も保有していないソース」になり、スナップショットも完全なものとして保存されていました。これは集計がまさに排除すべき「黙って小さくなるポートフォリオ」なので、ポジションのリストがない応答は拒否するようにしました。そのソースはエラーとして表示され、スナップショットは不完全と記録されます。本当に空の口座(`"positions": []`)は引き続き空として読まれます。保有情報がまだマッピングされていない新しい MCP コネクタのレビュー中に見つかった問題です。また、ランカードはスカラー指標しか残していなかったため、エンジンがカードの読み手のために書き出す辞書・リスト型の診断はすべて捨てられていました——却下されたプランの件数は見えても、どの銘柄がなぜ却下されたかは見えませんでした。これらの指標は `structured_metrics` ブロックに入り、指標ごとに UTF-8 JSON で 4 KiB を上限とし、超えたものは `_omitted` に名前が記録され、Run Card タブに 8 言語すべてで表示されます([#1424](https://github.com/HKUDS/Vibe-Trading/pull/1424))。[@cgycorey](https://github.com/cgycorey) に感謝します!-- **2026-09-12** 📥 **保有銘柄に見える配当行と、区切り文字ひとつの取り違えが千倍の誤差になる数値形式**:extraETF の CSV エクスポートを portfolio レイヤーのポジション形式に読み込めるようになりました——読み取り専用、標準ライブラリのみで、推測なしに読めないものはすべて拒否します([#1406](https://github.com/HKUDS/Vibe-Trading/pull/1406)、[#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170) に向けて)。Investments エクスポートはポジションに、Transaktionen エクスポートは種別付きの取引記録になるため、独自の数量と価格を持つ `Dividende`(配当)行がポジションとして読まれることはなく、取引ファイルが空のポートフォリオを装うこともできません。数値はエクスポートのドイツ語書式どおりに解釈します:`1.386,608` は 1386.608、米国式の `1,234.56` は千倍ずれて読むのではなく拒否し、小数 8 桁の転送精度に収まらない値は丸めずに拒否します——さもなければ `0,000000004` 株がゼロになっていました。未知のヘッダー(エラーは既知の 2 つの列セットを示します)、未知の取引ラベル、銘柄のない取引、1 つの Portfolio ID 内で重複する銘柄はすべて拒否され、2 つの Portfolio ID にまたがる同一 ISIN——複数ポートフォリオのエクスポートでは通常のケース——は 2 つのポジションのまま残ります。エクスポートにはスナップショット日付がないため、ファイルの更新時刻は `source_mtime` として報告され、観測時刻を名乗るポジションはありません。まだ呼び出し元はなく、次は portfolio コンテナへの接続です。[@cgycorey](https://github.com/cgycorey) と [@KaiLuettmann](https://github.com/KaiLuettmann) に感謝します!-<details><summary>過去のニュース</summary>+- **2026-09-12** 📥 **保有銘柄に見える配当行と、区切り文字ひとつの取り違えが千倍の誤差になる数値形式**:extraETF の CSV エクスポートを portfolio レイヤーのポジション形式に読み込めるようになりました——読み取り専用、標準ライブラリのみで、推測なしに読めないものはすべて拒否します([#1406](https://github.com/HKUDS/Vibe-Trading/pull/1406)、[#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170) に向けて)。Investments エクスポートはポジションに、Transaktionen エクスポートは種別付きの取引記録になるため、独自の数量と価格を持つ `Dividende`(配当)行がポジションとして読まれることはなく、取引ファイルが空のポートフォリオを装うこともできません。数値はエクスポートのドイツ語書式どおりに解釈します:`1.386,608` は 1386.608、米国式の `1,234.56` は千倍ずれて読むのではなく拒否し、小数 8 桁の転送精度に収まらない値は丸めずに拒否します——さもなければ `0,000000004` 株がゼロになっていました。未知のヘッダー(エラーは既知の 2 つの列セットを示します)、未知の取引ラベル、銘柄のない取引、1 つの Portfolio ID 内で重複する銘柄はすべて拒否され、2 つの Portfolio ID にまたがる同一 ISIN——複数ポートフォリオのエクスポートでは通常のケース——は 2 つのポジションのまま残ります。エクスポートにはスナップショット日付がないため、ファイルの更新時刻は `source_mtime` として報告され、観測時刻を名乗るポジションはありません。まだ呼び出し元はなく、次は portfolio コンテナへの接続です。[@cgycorey](https://github.com/cgycorey) と [@KaiLuettmann](https://github.com/KaiLuettmann) に感謝します!+- **2026-09-11** 📉 **8 年分を頼んだ Tencent の履歴が直近 2 年分で返ってきた件と、エージェント自身が回したバックテストをすべて門前払いしていたエビデンスゲート**:Tencent の `fqkline` エンドポイントは指定期間の**末尾** 500 本を返し、先頭からではない——CSI 300 を `2018-01-01..2026-06-30` で要求すると `2024-06-06..2026-06-30` が返る——のに、loader は前方向にページングしていたため、1 ページ目で期間の外へ出てしまい、終了コード 0・警告なしで末尾だけの系列を返していた。現在は終了日から後ろ向きにたどり、空ページは一度再要求してから信じ、エラー形の応答は失敗として扱い、loader キャッシュのバージョンを上げて旧方式でキャッシュされた系列が二度と返らないようにしている ([#1411](https://github.com/HKUDS/Vibe-Trading/pull/1411)、[#1410](https://github.com/HKUDS/Vibe-Trading/issues/1410) をクローズ)。`refresh_strategy_evidence` は `backtest` ツールが生成した実行をすべて拒否していた。取り込みゲートが読む `state.json` を書くのがエージェントのランタイムだけだったからだ。現在はツール自身が成功・失敗・タイムアウトを記録し、誰も裏付けない実行に対してゲートは引き続き fail-closed である ([#1413](https://github.com/HKUDS/Vibe-Trading/pull/1413)、[#1412](https://github.com/HKUDS/Vibe-Trading/issues/1412) をクローズ)。コールドスタート時に同時に来たデータ要求が、実際には取得できる銘柄を `_unresolved` として返すことがあった。loader レジストリがインポートを実行する前に初期化済みの印を立てていたため、同時に来た最初の呼び出し側には空に見えていた——報告者の実行では 8 件中 7 件 ([#1405](https://github.com/HKUDS/Vibe-Trading/pull/1405)、[#1403](https://github.com/HKUDS/Vibe-Trading/issues/1403) をクローズ)。ドキュメント上は許可リストである swarm worker の `skills:` は、プロンプトだけでなく `load_skill` でも強制されるようになり ([#1414](https://github.com/HKUDS/Vibe-Trading/pull/1414))、名前のない系列でクラッシュしていた相関分析 skill の Engle-Granger の例は、自前の OLS ではなくテスト済みの quantlib 関数を呼ぶようになった ([#1404](https://github.com/HKUDS/Vibe-Trading/pull/1404))。もう一つは私たち自身の問題だ:API キーを保持する 13 個のブローカー設定ファイル——`alpaca.json`、`zerodha.json` など——が、コメントでは対象だと書かれていながら `.gitignore` に入っていなかった。`VIBE_TRADING_HOME` をチェックアウト先にしている人は、`git add -A` 一回で認証情報をコミットしかねない状態だった。現在はテストがこの一覧をコードから導出する。もう一つも私たちの問題だった:Zerodha・Dhan・Shoonya の paper コネクタはローカルで注文をシミュレートしながら実口座を読み取っており、どの注文 ID に対しても取消成功を返していた——実際に生きている注文でも、取り消されないまま成功と報告されるところだった。現在はシミュレータ自身が発行した ID しか受け付けない。[@shadowinlife](https://github.com/shadowinlife) さん、[@alanwilhelm](https://github.com/alanwilhelm) さん、[@Shizoqua](https://github.com/Shizoqua) さん、ありがとうございます!- **2026-09-10** 🧾 **その通りにしても効かない対処メッセージと、親の承認を着たまま生まれた派生戦略**:stooq がボット対策のチャレンジページを返すとき、loader は回避方法を運用者に伝える——ところがその助言は両方とも、書かれた通りには通らなかった。`VIBE_TRADING_MARKET_DATA_ORDER_*` はどこからも読まれていない。registry が組み立てるのは `MARKET_DATA_ORDER_<MARKET>` で、設定層はそれを素の `os.getenv` に渡すだけなので、表示通りに export しても黙って何も起きず、stooq は米国株チェーンの 2 番目に居座ったままだった。もう半分の「stooq をチェーンから外す」は端的に拒否される——オーバーライドはデフォルトチェーンの**順列**でなければならず、並べ替えはできても削除はできない。メッセージは registry が実際に読む変数名を示し、順列という制約も明記し、リテラルではなく registry に固定したので二度とずれない ([#1402](https://github.com/HKUDS/Vibe-Trading/pull/1402))。別途、記述駆動の戦略適応の前半が入った。適応結果は `derived_from` で親を指す**新しい**アーティファクトであり、記述はユニバース・名称・ポジションサイジングを変更できるがシグナルはそのまま複製され、子はエビデンス空の状態から始まるので数値は親の継承ではなく自分のバックテストから出る ([#1391](https://github.com/HKUDS/Vibe-Trading/pull/1391)、関連 [#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149))。取り込みにあたり 2 つの穴を塞いだ。どちらもこの PR が守ろうとしたルールの一つ隣のフィールドだった。`dataclasses.replace` は呼び出しで名指ししなかった全フィールドを複製するため、子は `UNVALIDATED` でありながら親の `validator` と `approver` を——一度も得ていない独立した承認を——身にまとい、さらにまだどのモデルも生成していないコードに対する `artifact_version` と `model_version` まで持っていた。そして親エビデンスのゲートはテストからしか到達できず、`register_adaptation` は一度も参照しないため、エビデンスが陳腐化・不足した親でも書き込まれていた。基盤が謳っていた挙動と逆である。現在この入力はキーワード専用かつ必須なので、呼び忘れによる素通りは起こり得ない。[@chiww](https://github.com/chiww) さん、[@modelpath-dev](https://github.com/modelpath-dev) さん、ありがとうございます!diff --git a/README_ko.md b/README_ko.mdindex 8220ec118..8e92f3fba 100644--- a/README_ko.md+++ b/README_ko.md@@ -52,15 +52,17 @@> ⚠️ **보안 경고:** X 계정 `VibeTrading_HKU`, Virtuals 프로젝트 `101845`, 토큰 컨트랙트 `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4`는 모두 Vibe-Trading 공식과 무관합니다. Vibe-Trading은 어떠한 토큰이나 밈코인도 발행하거나 공식적으로 지지한 적이 없습니다. 해당 토큰을 구매하거나 지갑을 연결하거나 어떠한 서명도 하지 마세요. [자세히 보기](SECURITY.md#official-channels--impersonation).+- **2026-09-15** 🧮 **숫자 주변의 단어로 그 숫자가 무엇인지 판단하던 grounding 게이트**: 시장 관련 답변이 공개 전에 반드시 거치는 이 검사는 어떤 숫자가 가격인지, 목표가인지, 지표인지를 표현 목록으로 추정했습니다 — 65개의 정규식은 표현이 하나 늘 때마다 수정 커밋이 늘었고, 같은 문장과 그 번역이 다른 판정을 받기도 했습니다. 이제 모델이 독자에게 보이지 않는 `figures` 블록에 각 숫자의 역할(`observed`, `derived`, `proposed`, `cited`, `count`)을 선언하고, 게이트는 숫자의 형태만 읽어 각 선언을 이번 세션의 도구 결과와 대조합니다. 거부된 답변은 통과하지 못한 숫자마다 가장 가까운 관측값을 알려 주는 수정 요청을 한 번 받고, 그래도 통과하지 못하면 그 숫자만 잘라 낸(`(略※)`) 채 공개됩니다. 정해진 거부 문구로 통째로 바꾸는 것은 종목 식별에 문제가 있거나 가격을 하나도 가져오지 못한 경우뿐입니다. 기다리는 동안 채팅에는 "답변 속 수치 확인 중"이 8개 언어로 표시됩니다. 공개 전 세 차례의 적대적 리뷰와 실제 모델 실행을 거쳐 소수점 쉼표, 연도처럼 보이는 가격, 언어 태그 없는 코드 블록, 천 단위로 거래되는 종목의 정수 가격, count로 선언된 가격, 검증되지 않은 숫자의 스트리밍을 다룹니다. 메타데이터 개수와 지표 이름 속 단어는 더 이상 지표의 근거가 되지 않고, 여러 지표를 한 문장에 써도 잘못 거부되지 않습니다([#1418](https://github.com/HKUDS/Vibe-Trading/issues/1418), [#1420](https://github.com/HKUDS/Vibe-Trading/issues/1420), [#1421](https://github.com/HKUDS/Vibe-Trading/issues/1421), [#1426](https://github.com/HKUDS/Vibe-Trading/issues/1426), [#1433](https://github.com/HKUDS/Vibe-Trading/issues/1433)). [@zeus229](https://github.com/zeus229), [@he-yufeng](https://github.com/he-yufeng), [@5gaLbt](https://github.com/5gaLbt) 감사합니다!+- **2026-09-14** 🇰🇷 **무기한 선물로 백테스트되던 A주, 그리고 모델이 넘길 수는 있어도 결코 반영되지 않던 swarm 인자**: A주를 제공하는 전용 분기 없는 데이터 소스 — `local`, `tencent`, `eastmoney`, `baostock`, `mootdx`, `sina` — 는 모두 순수 A주 바스켓을 암호화폐 엔진으로 라우팅했습니다. 그 엔진은 A주 규칙(인지세, T+1, 가격 제한폭, 100주 단위)을 하나도 적용하지 않으면서 8시간마다 무기한 선물 펀딩 수수료를 포지션에 부과합니다. 실행은 성공하고 지표도 내부적으로 일관돼 보였기에 더 위험했습니다. 이제 순수 A주 바스켓은 어떤 소스에서든 `ChinaAEngine`에 도달합니다([#1431](https://github.com/HKUDS/Vibe-Trading/pull/1431)). 별도로, swarm worker는 모든 도구 호출의 `run_dir`를 에이전트 작업 공간으로 덮어써서, `run_dir`를 선언하는 도구 — 무엇보다 `backtest` — 에서는 모델이 어떤 디렉터리를 넘겨도 읽히지 않았고 오류에도 경로가 없었습니다. 선언된 `run_dir`는 작업 공간 안이면 그대로 존중되고 밖이면 경계를 명시하며 거부되며, backtest 도구는 어느 디렉터리를 확인했는지 말해 줍니다([#1430](https://github.com/HKUDS/Vibe-Trading/pull/1430), [#1429](https://github.com/HKUDS/Vibe-Trading/pull/1429)). **신규:** 커넥터 네 개가 함께 들어와 총 18개 — **KIS**(한국투자증권; 별도 호스트의 진짜 모의투자 페이퍼 샌드박스 + 읽기 전용 실거래), **Upbit**(KRW 암호화폐; 페이퍼 + 읽기 전용 실거래, 거래소에 페이퍼/실거래 판별자가 없어 상한 적용), **Toss Securities**(읽기 전용 실거래; 체결 완료 주문 이력은 끝까지 페이징하고 상한을 넘으면 잘라내지 않고 거부; 읽기 경로는 실계좌로 검증), 그리고 **Scalable Capital**의 Agentic MCP를 명시적 도구 허용목록과 주문 기능 없는 완전 읽기 전용 프로필로([#1407](https://github.com/HKUDS/Vibe-Trading/pull/1407), [#1408](https://github.com/HKUDS/Vibe-Trading/pull/1408), [#1409](https://github.com/HKUDS/Vibe-Trading/pull/1409), [#1417](https://github.com/HKUDS/Vibe-Trading/pull/1417)). **수정:** 공유 SDK 진단 메시지가 모든 브로커 사용자에게 Longbridge를 확인하라고 안내했습니다. 이제 8개 언어 모두에서 해당 브로커의 SDK나 게이트웨이를 가리킵니다([#1436](https://github.com/HKUDS/Vibe-Trading/pull/1436)). [@chiww](https://github.com/chiww), [@cgycorey](https://github.com/cgycorey), [@as950118](https://github.com/as950118), [@dudco](https://github.com/dudco), [@tingkk](https://github.com/tingkk) 감사합니다!- **2026-09-13** 🗂️ **형태가 다른 브로커 응답이 빈 계좌로 집계된 문제, 그리고 런 카드에 닿지 못한 진단 정보**: portfolio 계층은 포지션을 읽을 때 빈 리스트를 기본값으로 썼기 때문에, 포지션 리스트가 아예 없는 응답 — 아직 매핑이 없는 MCP 응답이나, 구조화된 포지션 없이 답한 IBKR 공식 MCP — 이 "아무것도 보유하지 않은 소스"가 되었고 스냅샷도 완전한 것으로 저장되었습니다. 이는 집계가 막으려는 바로 그 "조용히 작아지는 포트폴리오"이므로, 이제 포지션 리스트가 없는 응답은 거부됩니다. 해당 소스는 오류로 표시되고 스냅샷은 불완전으로 기록되며, 실제로 비어 있는 계좌(`"positions": []`)는 여전히 빈 계좌로 읽힙니다. 보유 종목 매핑이 아직 없는 새 MCP 커넥터를 리뷰하다가 발견한 문제입니다. 또한 런 카드는 스칼라 지표만 남겼기 때문에, 엔진이 카드 독자를 위해 기록하는 딕셔너리·리스트 형태의 진단이 모두 버려졌습니다 — 거부된 플랜이 몇 개인지는 보여도 어떤 종목이 왜 거부됐는지는 볼 수 없었습니다. 이 지표들은 이제 `structured_metrics` 블록에 담기며, 지표당 UTF-8 JSON 4 KiB를 상한으로 그보다 큰 것은 `_omitted` 아래에 이름이 기록되고, Run Card 탭에 8개 언어 모두로 표시됩니다([#1424](https://github.com/HKUDS/Vibe-Trading/pull/1424)). [@cgycorey](https://github.com/cgycorey) 감사합니다!-- **2026-09-12** 📥 **보유 종목처럼 보이는 배당 행, 그리고 구분자 하나만 잘못 놓여도 천 배 오차가 나는 숫자 형식**: 이제 extraETF CSV 내보내기를 portfolio 레이어의 포지션 형태로 읽을 수 있습니다 — 읽기 전용, 표준 라이브러리만 사용하며, 추측 없이 읽을 수 없는 것은 모두 거부합니다([#1406](https://github.com/HKUDS/Vibe-Trading/pull/1406), [#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170) 진행). Investments 내보내기는 포지션으로, Transaktionen 내보내기는 유형이 지정된 거래 기록으로 읽히므로, 자체 수량과 가격을 가진 `Dividende`(배당) 행이 포지션으로 읽히는 일은 없고, 거래 파일이 빈 포트폴리오로 위장할 수도 없습니다. 숫자는 내보내기의 독일어 표기법을 정확히 따릅니다: `1.386,608`은 1386.608이고, 미국식 순서의 `1,234.56`은 천 배 어긋나게 읽는 대신 거부하며, 소수점 8자리 전송 정밀도로 표현할 수 없는 값은 반올림하지 않고 거부합니다 — 그렇지 않았다면 `0,000000004`주가 0이 되었을 것입니다. 알 수 없는 헤더(오류 메시지가 알려진 두 열 집합을 모두 제시), 알 수 없는 거래 라벨, 종목이 없는 거래, 하나의 Portfolio ID 아래 두 번 나오는 같은 종목은 모두 거부되며, 서로 다른 두 Portfolio ID 아래의 같은 ISIN — 다중 포트폴리오 내보내기의 정상적인 경우 — 은 두 개의 포지션으로 유지됩니다. 내보내기에는 스냅샷 날짜가 없으므로 파일 수정 시각은 `source_mtime`으로 보고되며, 관측 시각을 주장하는 포지션은 없습니다. 아직 이 리더를 호출하는 곳은 없으며, 다음 단계는 portfolio 컨테이너 연결입니다. [@cgycorey](https://github.com/cgycorey), [@KaiLuettmann](https://github.com/KaiLuettmann) 감사합니다!-<details><summary>이전 뉴스</summary>+- **2026-09-12** 📥 **보유 종목처럼 보이는 배당 행, 그리고 구분자 하나만 잘못 놓여도 천 배 오차가 나는 숫자 형식**: 이제 extraETF CSV 내보내기를 portfolio 레이어의 포지션 형태로 읽을 수 있습니다 — 읽기 전용, 표준 라이브러리만 사용하며, 추측 없이 읽을 수 없는 것은 모두 거부합니다([#1406](https://github.com/HKUDS/Vibe-Trading/pull/1406), [#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170) 진행). Investments 내보내기는 포지션으로, Transaktionen 내보내기는 유형이 지정된 거래 기록으로 읽히므로, 자체 수량과 가격을 가진 `Dividende`(배당) 행이 포지션으로 읽히는 일은 없고, 거래 파일이 빈 포트폴리오로 위장할 수도 없습니다. 숫자는 내보내기의 독일어 표기법을 정확히 따릅니다: `1.386,608`은 1386.608이고, 미국식 순서의 `1,234.56`은 천 배 어긋나게 읽는 대신 거부하며, 소수점 8자리 전송 정밀도로 표현할 수 없는 값은 반올림하지 않고 거부합니다 — 그렇지 않았다면 `0,000000004`주가 0이 되었을 것입니다. 알 수 없는 헤더(오류 메시지가 알려진 두 열 집합을 모두 제시), 알 수 없는 거래 라벨, 종목이 없는 거래, 하나의 Portfolio ID 아래 두 번 나오는 같은 종목은 모두 거부되며, 서로 다른 두 Portfolio ID 아래의 같은 ISIN — 다중 포트폴리오 내보내기의 정상적인 경우 — 은 두 개의 포지션으로 유지됩니다. 내보내기에는 스냅샷 날짜가 없으므로 파일 수정 시각은 `source_mtime`으로 보고되며, 관측 시각을 주장하는 포지션은 없습니다. 아직 이 리더를 호출하는 곳은 없으며, 다음 단계는 portfolio 컨테이너 연결입니다. [@cgycorey](https://github.com/cgycorey), [@KaiLuettmann](https://github.com/KaiLuettmann) 감사합니다!+- **2026-09-11** 📉 **8년치를 요청한 Tencent 시세가 마지막 2년만 돌아온 문제, 그리고 에이전트가 직접 돌린 백테스트를 전부 돌려보낸 증거 게이트**: Tencent `fqkline` 엔드포인트는 요청 구간의 처음이 아니라 **마지막** 500개 봉을 돌려준다 — CSI 300을 `2018-01-01..2026-06-30`으로 요청하면 `2024-06-06..2026-06-30`이 온다 — 그런데 loader는 앞으로 페이지를 넘겼고, 첫 페이지 뒤에 구간을 벗어나 종료 코드 0, 경고 없이 꼬리만 남은 시계열을 반환했다. 이제는 종료일에서 뒤로 거슬러 가고, 빈 페이지는 한 번 다시 요청한 뒤에야 믿으며, 오류 형태의 응답은 실패로 처리하고, loader 캐시 버전을 올려 옛 방식으로 캐시된 시계열이 다시는 제공되지 않게 했다 ([#1411](https://github.com/HKUDS/Vibe-Trading/pull/1411), [#1410](https://github.com/HKUDS/Vibe-Trading/issues/1410) 종료). `refresh_strategy_evidence`는 `backtest` 도구가 만든 실행을 모두 거부했다. 수집 게이트가 읽는 `state.json`을 에이전트 런타임만 썼기 때문이다. 이제 도구가 성공·실패·타임아웃을 직접 기록하며, 아무도 보증하지 않는 실행에 대해서는 게이트가 여전히 fail-closed다 ([#1413](https://github.com/HKUDS/Vibe-Trading/pull/1413), [#1412](https://github.com/HKUDS/Vibe-Trading/issues/1412) 종료). 콜드 스타트 시 동시에 들어온 데이터 요청이 실제로는 조회 가능한 종목을 `_unresolved`로 돌려줄 수 있었다. loader 레지스트리가 import를 실행하기 전에 스스로를 초기화 완료로 표시해, 동시에 들어온 첫 호출자들에게는 비어 보였다 — 제보자의 실행에서는 8개 중 7개 ([#1405](https://github.com/HKUDS/Vibe-Trading/pull/1405), [#1403](https://github.com/HKUDS/Vibe-Trading/issues/1403) 종료). 문서상 허용 목록인 swarm worker의 `skills:` 목록은 이제 프롬프트뿐 아니라 `load_skill`에서 실제로 강제되고 ([#1414](https://github.com/HKUDS/Vibe-Trading/pull/1414)), 이름 없는 시계열에서 크래시하던 상관 분석 skill의 Engle-Granger 예제는 자체 OLS 적합 대신 테스트된 quantlib 함수를 호출한다 ([#1404](https://github.com/HKUDS/Vibe-Trading/pull/1404)). 하나는 우리 쪽 문제였다: API 키를 담는 브로커 설정 파일 13개 — `alpaca.json`, `zerodha.json` 등 — 가 주석에는 포함된다고 적혀 있었는데도 `.gitignore`에 없었다. `VIBE_TRADING_HOME`을 체크아웃 경로로 둔 사람은 `git add -A` 한 번이면 자격 증명을 커밋할 수 있는 상태였다. 이제 테스트가 이 목록을 코드에서 도출한다. 또 하나도 우리 쪽이었다: Zerodha·Dhan·Shoonya의 paper 커넥터는 로컬에서 주문을 시뮬레이션하면서도 실제 계좌를 읽었고, 어떤 주문 ID에도 취소 성공을 돌려줬다 — 실제로 살아 있는 주문조차 취소되지 않은 채 성공으로 보고될 수 있었다. 이제는 시뮬레이터가 직접 발급한 ID만 받는다. [@shadowinlife](https://github.com/shadowinlife) 님, [@alanwilhelm](https://github.com/alanwilhelm) 님, [@Shizoqua](https://github.com/Shizoqua) 님 감사합니다!- **2026-09-10** 🧾 **그대로 따라 해도 듣지 않는 안내 메시지, 그리고 부모의 서명을 걸친 파생 전략**: stooq가 봇 차단 챌린지 페이지를 반환하면 loader는 우회 방법을 운영자에게 알려준다 — 그런데 그 조언은 적힌 그대로는 양쪽 모두 통하지 않았다. `VIBE_TRADING_MARKET_DATA_ORDER_*`는 어디에서도 읽히지 않는다. registry가 만드는 이름은 `MARKET_DATA_ORDER_<MARKET>`이고 설정 계층은 그것을 그대로 `os.getenv`에 넘기므로, 표시된 이름을 export해도 조용히 아무 일도 일어나지 않고 stooq는 미국 주식 체인 2번 자리에 그대로 남았다. 나머지 절반인 "체인에서 stooq를 빼라"는 아예 거부된다 — 오버라이드는 기본 체인의 **순열**이어야 하므로 순서는 바꿀 수 있어도 제거는 할 수 없다. 이제 메시지는 registry가 실제로 읽는 변수명을 지목하고 순열 제약도 명시하며, 리터럴이 아니라 registry에 고정되어 다시 어긋날 수 없다 ([#1402](https://github.com/HKUDS/Vibe-Trading/pull/1402)). 한편 서술 기반 전략 적응의 전반부가 들어왔다. 적응 결과는 `derived_from`으로 부모를 가리키는 **새로운** 아티팩트이고, 서술은 유니버스·이름·포지션 사이징을 바꿀 수 있지만 시그널은 그대로 복사되며, 자식은 빈 증거에서 출발해 수치가 부모 상속이 아니라 자신의 백테스트에서 나온다 ([#1391](https://github.com/HKUDS/Vibe-Trading/pull/1391), 관련 [#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149)). 병합 과정에서 두 개의 구멍을 막았는데, 둘 다 이 PR이 지키려던 규칙에서 필드 하나 옆이었다. `dataclasses.replace`는 호출에서 지목하지 않은 모든 필드를 복사하므로, 자식은 `UNVALIDATED`이면서도 부모의 `validator`와 `approver`를 — 한 번도 얻은 적 없는 독립 승인을 — 지닌 채, 아직 어떤 모델도 생성하지 않은 코드에 대한 `artifact_version`과 `model_version`까지 달고 나왔다. 그리고 부모 증거 게이트는 테스트에서만 닿을 수 있었다. `register_adaptation`이 한 번도 조회하지 않아, 증거가 낡거나 부족한 부모도 그대로 기록되었다 — 이 기반이 표방한 동작과 정반대다. 이제 게이트 입력은 키워드 전용에 필수라, 호출을 잊어서 통과하는 일은 일어날 수 없다. [@chiww](https://github.com/chiww) 님과 [@modelpath-dev](https://github.com/modelpath-dev) 님 감사합니다!diff --git a/README_zh.md b/README_zh.mdindex a1aa57174..3de1e890d 100644--- a/README_zh.md+++ b/README_zh.md@@ -52,15 +52,17 @@> ⚠️ **安全警告:** X 账号 `VibeTrading_HKU`、Virtuals 项目 `101845` 及代币合约 `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` 均非 Vibe-Trading 官方。我们从未发行或背书任何代币或 meme 币。请勿购买、连接钱包或签名。[详细说明](SECURITY.md#official-channels--impersonation)。+- **2026-09-15** 🧮 **靠数字旁边的词来判断数字是什么的 grounding 闸门**:每个行情回答发布前都要过的这道检查,过去靠一份措辞目录判断一个数是价格、目标价还是指标——65 条正则,每多一种说法就多一个修复提交,同一句话和它的译文还可能得到不同判决。现在由模型在读者看不到的 `figures` 块里声明每个数字的身份(`observed`、`derived`、`proposed`、`cited`、`count`),闸门只看数字的形状,并逐条对照本会话的工具结果核实。被拒的回答会收到一轮修正提示,逐个列出不通过的数字和最接近的观测价;第二稿仍不通过时只裁掉这几个数字(`(略※)`)再发布,不再整篇换成固定的拒答——拒答只保留给标的识别有问题、或一个价格都没取到的运行。等待期间,聊天页用 8 种语言显示「正在核对答案中的数字」。发布前经过三轮对抗式审查和真实模型运行,补上了小数逗号、像年份的价格、未标语言的代码块、千元级标的的整数价格、被标成计数的价格,以及未核实数字提前流式输出。元数据计数和指标名里的词不再能证明指标,多个指标写在同一句里也不再被误拒([#1418](https://github.com/HKUDS/Vibe-Trading/issues/1418)、[#1420](https://github.com/HKUDS/Vibe-Trading/issues/1420)、[#1421](https://github.com/HKUDS/Vibe-Trading/issues/1421)、[#1426](https://github.com/HKUDS/Vibe-Trading/issues/1426)、[#1433](https://github.com/HKUDS/Vibe-Trading/issues/1433))。感谢 [@zeus229](https://github.com/zeus229)、[@he-yufeng](https://github.com/he-yufeng) 和 [@5gaLbt](https://github.com/5gaLbt)!+- **2026-09-14** 🇰🇷 **被当成永续合约回测的 A 股,以及模型能传却永远不生效的 swarm 参数**:所有没有专用分支的 A 股数据源——`local`、`tencent`、`eastmoney`、`baostock`、`mootdx`、`sina`——都把纯 A 股组合路由到了加密货币引擎:它不施加任何 A 股规则(印花税、T+1、涨跌停、100 股一手),却会按每 8 小时对持仓收取永续合约资金费。回测照样成功、指标内部自洽,这正是它危险的地方;现在纯 A 股组合从任何数据源都会进入 `ChinaAEngine`([#1431](https://github.com/HKUDS/Vibe-Trading/pull/1431))。另外,swarm worker 会把每个工具调用的 `run_dir` 覆盖为 agent 工作区,于是对声明了该参数的工具——首当其冲是 `backtest`——模型传什么目录都读不到,而报错里也不写路径。声明的 `run_dir` 现在在工作区内照传入值生效、越界则拒绝并写明边界,backtest 工具也会说明它检查的是哪个目录([#1430](https://github.com/HKUDS/Vibe-Trading/pull/1430)、[#1429](https://github.com/HKUDS/Vibe-Trading/pull/1429))。**新增:**四个连接器同时落地,计数达到 18——**KIS**(한국투자증권;独立主机上的真实 모의투자 模拟盘,外加只读实盘)、**Upbit**(韩元加密货币;模拟盘 + 只读实盘,因交易所不提供模拟/实盘判别而封顶)、**Toss Securities**(只读实盘;已结订单历史分页读到底、超过上限直接拒绝而不是截断;读取路径已用真实账户验证)以及 **Scalable Capital** 的 Agentic MCP——完全只读的 profile,显式工具白名单,不带任何下单能力([#1407](https://github.com/HKUDS/Vibe-Trading/pull/1407)、[#1408](https://github.com/HKUDS/Vibe-Trading/pull/1408)、[#1409](https://github.com/HKUDS/Vibe-Trading/pull/1409)、[#1417](https://github.com/HKUDS/Vibe-Trading/pull/1417))。**修复:**共享的 SDK 诊断信息让每家券商的用户都去检查 Longbridge;现在八种语言都会指向出问题券商自己的 SDK 或网关([#1436](https://github.com/HKUDS/Vibe-Trading/pull/1436))。感谢 [@chiww](https://github.com/chiww)、[@cgycorey](https://github.com/cgycorey)、[@as950118](https://github.com/as950118)、[@dudco](https://github.com/dudco) 和 [@tingkk](https://github.com/tingkk)!- **2026-09-13** 🗂️ **形状不对的券商返回被当成空账户,以及从未进入运行卡片的诊断信息**:portfolio 层读取持仓时以空列表作为默认值,于是一个根本没有持仓列表的返回——尚未做映射的 MCP 响应,或者 IBKR 官方 MCP 没有给出结构化持仓的时候——就成了一个“什么都不持有”的数据源,快照还被记为完整。这正是聚合层要杜绝的“悄悄变小的组合”,所以现在没有持仓列表的读数一律拒绝:该数据源显示为错误、快照标记为不完整,而真正为空的账户(`"positions": []`)仍按空账户读取。这个问题是在审查一个持仓尚未映射的新 MCP 连接器时发现的。另外,运行卡片(run card)只保留标量指标,引擎专门写给卡片读者的字典或列表型诊断全被丢弃——读者能看到有多少个计划被拒,却看不到是哪个标的、因为什么。这些指标现在放进 `structured_metrics` 块,每个指标上限 4 KiB(UTF-8 JSON),超出的在 `_omitted` 下列出名字,并在 Run Card 标签页以全部八种语言显示([#1424](https://github.com/HKUDS/Vibe-Trading/pull/1424))。感谢 [@cgycorey](https://github.com/cgycorey)!-- **2026-09-12** 📥 **看起来像持仓的分红行,以及错放一个分隔符就差一千倍的数字格式**:extraETF 的 CSV 导出现在可以读成 portfolio 层的持仓结构——只读、只用标准库,任何不靠猜测就读不出来的内容一律拒绝([#1406](https://github.com/HKUDS/Vibe-Trading/pull/1406),推进 [#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170))。Investments 导出读成持仓,Transaktionen 导出读成带类型的变动记录,所以自带数量和价格的 `Dividende`(分红)行永远不会被当成持仓,交易流水文件也无法冒充一个空组合。数字严格按导出的德语格式解析:`1.386,608` 是 1386.608;美式顺序的 `1,234.56` 直接拒绝,而不是读偏一千倍;超出 8 位小数传输精度的值拒绝而不是四舍五入——否则 `0,000000004` 股会变成 0。未知表头(报错会列出两套已知列名)、未知交易标签、没有标的的变动、同一 Portfolio ID 下重复出现的同一标的都会被拒;而同一 ISIN 出现在两个 Portfolio ID 下——多组合导出的正常情形——仍保留为两条持仓。导出本身没有快照日期,所以文件修改时间以 `source_mtime` 报告,没有任何一条持仓声称自己有观测时间。目前还没有调用方,下一步是接入 portfolio 容器。感谢 [@cgycorey](https://github.com/cgycorey) 和 [@KaiLuettmann](https://github.com/KaiLuettmann)!-<details><summary>更早的新闻</summary>+- **2026-09-12** 📥 **看起来像持仓的分红行,以及错放一个分隔符就差一千倍的数字格式**:extraETF 的 CSV 导出现在可以读成 portfolio 层的持仓结构——只读、只用标准库,任何不靠猜测就读不出来的内容一律拒绝([#1406](https://github.com/HKUDS/Vibe-Trading/pull/1406),推进 [#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170))。Investments 导出读成持仓,Transaktionen 导出读成带类型的变动记录,所以自带数量和价格的 `Dividende`(分红)行永远不会被当成持仓,交易流水文件也无法冒充一个空组合。数字严格按导出的德语格式解析:`1.386,608` 是 1386.608;美式顺序的 `1,234.56` 直接拒绝,而不是读偏一千倍;超出 8 位小数传输精度的值拒绝而不是四舍五入——否则 `0,000000004` 股会变成 0。未知表头(报错会列出两套已知列名)、未知交易标签、没有标的的变动、同一 Portfolio ID 下重复出现的同一标的都会被拒;而同一 ISIN 出现在两个 Portfolio ID 下——多组合导出的正常情形——仍保留为两条持仓。导出本身没有快照日期,所以文件修改时间以 `source_mtime` 报告,没有任何一条持仓声称自己有观测时间。目前还没有调用方,下一步是接入 portfolio 容器。感谢 [@cgycorey](https://github.com/cgycorey) 和 [@KaiLuettmann](https://github.com/KaiLuettmann)!+- **2026-09-11** 📉 **请求八年的腾讯行情只拿回最后两年,以及一个把智能体自己跑的每一次回测都拒之门外的证据闸门**:腾讯 `fqkline` 接口对一个时间窗返回的是**最后** 500 根 K 线而不是最前面的——请求沪深 300 的 `2018-01-01..2026-06-30`,拿到的是 `2024-06-06..2026-06-30`——而 loader 却向前翻页,一页之后就越过了窗口,返回一段只有尾部的序列,退出码 0、没有任何警告。现在它从结束日期向后翻页,遇到空页先重新请求一次再相信,把错误形态的响应当作失败,并提升 loader 缓存版本,旧翻页方式缓存下来的序列不会再被读出 ([#1411](https://github.com/HKUDS/Vibe-Trading/pull/1411),关闭 [#1410](https://github.com/HKUDS/Vibe-Trading/issues/1410))。`refresh_strategy_evidence` 会拒绝 `backtest` 工具产生的每一次运行,因为入库闸门读取的 `state.json` 只有智能体运行时才会写;现在工具自己记录成功、失败和超时,闸门对无人背书的运行依然 fail-closed ([#1413](https://github.com/HKUDS/Vibe-Trading/pull/1413),关闭 [#1412](https://github.com/HKUDS/Vibe-Trading/issues/1412))。冷启动时并发的行情请求,可能对完全可用的标的返回 `_unresolved`:loader 注册表在导入执行之前就把自己标记为已初始化,于是同时到来的首批调用者看到的是空注册表——报告者的实测里 8 个中有 7 个 ([#1405](https://github.com/HKUDS/Vibe-Trading/pull/1405),关闭 [#1403](https://github.com/HKUDS/Vibe-Trading/issues/1403))。swarm worker 文档里写明作为白名单的 `skills:` 列表,现在由 `load_skill` 真正执行,而不再只写在提示词里 ([#1414](https://github.com/HKUDS/Vibe-Trading/pull/1414));相关性分析 skill 的 Engle-Granger 示例遇到无名序列会崩溃,现在改为调用经过测试的 quantlib 函数,而不是自己再拟合一遍 OLS ([#1404](https://github.com/HKUDS/Vibe-Trading/pull/1404))。还有一个是我们自己的:13 个保存 API 密钥的券商配置文件——`alpaca.json`、`zerodha.json` 等——不在 `.gitignore` 里,尽管那段注释声称已经覆盖;对于把 `VIBE_TRADING_HOME` 设为仓库目录的人,离把凭据提交进去只差一次 `git add -A`。现在由测试从代码推导这份清单。另一个同样是我们自己的:Zerodha、Dhan、Shoonya 的 paper 连接器在本地模拟下单,读取的却是真实账户,而撤单对任何订单号都回报成功——包括一张真实挂单,而它其实仍在生效;现在只接受模拟器自己签发的订单号。感谢 [@shadowinlife](https://github.com/shadowinlife)、[@alanwilhelm](https://github.com/alanwilhelm) 和 [@Shizoqua](https://github.com/Shizoqua)!- **2026-09-10** 🧾 **一条照做不生效的排障提示,以及一个穿着父策略签字的衍生策略**:stooq 返回反爬验证页时,loader 会告诉运维如何绕开——但这条建议的两半按原文都走不通。`VIBE_TRADING_MARKET_DATA_ORDER_*` 根本没有任何地方读取:registry 构造的是 `MARKET_DATA_ORDER_<MARKET>`,配置层把它交给裸的 `os.getenv`,所以照着导出是静默空操作,stooq 依旧稳坐美股数据链第 2 位。另一半"把 stooq 从链里去掉"会被直接拒绝——覆盖值必须是默认链的**排列**,所以一个数据源可以改顺序但不能移除。现在这条提示写的是 registry 真正读取的变量名,并说明了排列约束,且钉在 registry 上而非硬编码字面量,不会再漂 ([#1402](https://github.com/HKUDS/Vibe-Trading/pull/1402))。另外,描述驱动的策略适配落了第一半:适配产物是一个**新**制品,通过 `derived_from` 指向父策略;描述可以改 universe、名称和仓位方式,信号原样拷贝;子制品的证据从空开始,数字来自它自己的回测而不是继承父策略的 ([#1391](https://github.com/HKUDS/Vibe-Trading/pull/1391),关联 [#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149))。合入过程中补掉两个缺口,二者都只比这个 PR 想守的规则隔了一个字段。`dataclasses.replace` 会拷贝调用里没点名的每一个字段,于是子制品出来是 `UNVALIDATED`,却仍带着父策略的 `validator` 和 `approver`——一份从未挣得的独立签字——外加一个 `artifact_version` 和一个 `model_version`,而对应的代码还没有任何模型生成过。以及父证据闸门只有测试能碰到:`register_adaptation` 从不查它,所以证据过期或不足的父策略照写不误,与这套底座对外宣称的行为相反。现在闸门的入参是关键字且必填,忘记调用这件事本身已经不可能。感谢 [@chiww](https://github.com/chiww) 和 [@modelpath-dev](https://github.com/modelpath-dev)!