Skip to content

"Vibe-Trading: Your Personal Trading Agent"

release: 0.1.17 — paper accounts, and a value that cannot be computed says so

Haozhe Wu350ebb5c69b1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 20e2c00ee..8006f8ed9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,475 +1,1719 @@
# Changelog
-- Strategy adaptation now binds each child to its own description, universe, date window and hashed backtest artifacts; scoped refresh preserves other strategies' evidence. Agent/MCP, CLI, authenticated REST and the Web welcome entry share the workflow.
-
All notable changes to Vibe-Trading are documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/).
## [Unreleased]
-### Community feedback follow-up — 2026-10-21
-
-- Fund-flow daily requests now try Tushare when Eastmoney returns no usable
- rows, as well as on request/resolution failure (discussion #486). Every
- successful symbol names its actual source; mixed batches report `mixed`.
- Minute requests never substitute daily data. Missing tokens, permissions or
- data remain visible per-symbol failures.
-- Correct Tushare `moneyflow` mapping: `main` is large plus super-large net
- flow, while `net_mf_amount` is retained separately as `net_total`. Missing or
- non-finite buy/sell amounts remain unknown rather than becoming zero.
- Provider classifications may differ; the result states its methodology.
- Field definitions: https://tushare.pro/document/2?doc_id=170.
-- Add a complete pip/Telegram setup example with sender authorization, matching
- API ports and recovery for commands installed in a different environment
- (discussion #702). Intel Mac's base-install fix remains the optional `[smc]`
- dependency introduced in 0.1.14 (discussion #1035).
-- Verify the existing evidence/identity guards, Feishu progress dispatch (#1792)
- and bounded chat-history previews (#1852) against current main. This does
- not claim an on-device Intel Mac installation or authenticated Feishu delivery
- test, or guarantee that every model answer is correct.
-- Complete engine-specific unused-setting warnings (#1947, closes #1934),
- following the path-wide unknown-key warnings in #1935. Crypto now warns about
- ignored `commission_rate`; it still uses `maker_rate`/`taker_rate`, and valid
- shared settings remain accepted.
-- Reject invalid journal dates and retain input order for equal timestamps
- (#1942, #1941); price ICE coffee, sugar and cotton multipliers in cents
- (#1944); stabilize Carino attribution near coincident returns (#1943) and
- honor saved annualisation in attribution (#1948). Clean unpublished uploads
- on cancellation (#1945) and return structured directory listing errors
- (#1946).
-
-### Daily paper trading — 2026-10-21
-
-- Add the deterministic `paper_trade_step` agent/MCP tool plus local paper
- accounts through CLI, authenticated REST and the Web sidebar (all UI locales).
- Accounts start today or next session with configurable cash and positions;
- atomic revisions protect saved ledgers from duplicate or concurrent steps.
-- Strategies receive only prior bars and the ledger after preceding fills.
- Failures discard the whole call. Raw execution feeds reject adjusted and
- non-finite prices; incomplete A-share calendars and unverified split-like
- events fail visibly. Corporate-action reconciliation and dividends remain
- outside this daily-close model (#1939).
-
-### Maintenance — 2026-10-20
-
-- Warn about unrecognized backtest configuration keys and include the warning
- in the run card (#1935). Runs still proceed. This is not engine-specific
- validation: a key read by another engine can still go unused for the selected
- engine, including `commission_rate` for crypto. This remaining #1934 gap
- was subsequently addressed by #1947 on October 21 (see above).
-- Return undefined off-diagonal correlations as `null` and show them as muted
- dashes in the chart, keeping genuine zero correlations distinct (#1933).
-- Save the runner's annualisation factor in the run card and reuse it for
- standalone revalidation, including calendar-day annualisation (#1915).
- Legacy cards reconstruct it from configuration and equity timestamps because
- the original per-symbol price indexes are unavailable; invalid saved factors
- are rejected.
-- Skip factor benchmarks with fewer than two IC observations and report why,
- rather than ranking an unestimable sample dispersion as zero (#1918).
-- Reject zero, boolean, fractional and non-finite alpha-benchmark `top` limits
- instead of substituting a default, truncating or raising unexpectedly (#1910).
-- Reject unknown journal analysis types and unsupported filters instead of
- returning empty success or claiming a filter was applied (#1911, #1924).
- Classify `.US` and `.SS` journal symbols by market, preserving share classes
- such as `BF-B.US` (#1916).
-- Return structured JSON errors for malformed pattern-tool arguments (#1923).
-- Report three-scenario upside as `null` when the current price is nonpositive
- and reject negative integer projection years (#1921). Reject non-finite hurdle and
- waterfall inputs while retaining valid finite calculations (#1919).
-- Clamp an explicit zero fund-NAV row limit to one instead of falling back to
- the 2,000-row default (#1927). Switch CLI numeric units when rounding reaches
- the next unit boundary (#1926).
-- Reuse one WeCom stream ID throughout each logical reply so streamed chunks
- update the same response (#1929).
-
-### Maintenance — 2026-10-19
-
-- Weight the newest observation most heavily in `decay_linear`, retaining
- causal windows and missing-data masks; update the affected synthetic GTJA
- regression fixture (#1912).
-- Apply ordinary ChiNext/STAR limits to 301/689 codes and Beijing limits to
- 920 and historical 4/8 codes; resolve Beijing symbols correctly in Eastmoney
- search and Tushare fallbacks (#1913, #1914). Listing-day exemptions and ST
- status still require information beyond a stock code.
-- Derive SEC Q4 values only for currency flows with matching units, never
- weighted-average shares, EPS or dimensionless ratios (#1917).
-- Keep event-study fitting data before both the event and its measured window,
- including post-event windows and a zero estimation gap (#1920).
-- Normalize Futu market-prefixed holdings for risk analysis and cross-broker
- aggregation, preserving share classes. Invalidate older portfolio snapshots
- so the next refresh rebuilds holdings under the corrected contract (#1922).
-- Preserve at least four significant digits for nonzero MACD/Bollinger values,
- including tiny components beside larger values; retain ordinary-price
- rounding (#1925).
-- Reject materially negative specific variances; retain the existing covariance
- tolerance of 1e-8 for rounding noise and non-finite input rejection (#1928).
-- Normalize Yahoo `=X` and case-insensitive `.FX` aliases before looking up
- configured forex spreads and overnight swaps (#1930). Rate assumptions are
- unchanged; these are not live broker quotes.
-
-### Maintenance — 2026-10-18
-
-- Preserve explicit zero financial-rigor parameters and hypothesis backtest
- validation evidence; accept Shanghai ETF `.SS` aliases (#1906, #1902, #1907).
-- Respect `VIBE_TRADING_HOME` for autopilot runs, alpha-bench caches/reports and
- Gildata code mappings; keep overflowed Calmar ratios finite, consistent with
- the existing risk-ratio fallback (#1904, #1901).
-- Tolerate incomplete JSON/UTF-8 Swarm event tails while still rejecting complete
- invalid records. Deliver Matrix final replies when preview sending failed;
- CI installs the Matrix extra and executes the regression (#1908, #1903).
-- Match explicit currency identities to financial evidence, including SEC XBRL
- units and magnitude-scaled amounts. Bare `$` and `¥` remain ambiguous (#1905).
-- Adopt the shared scheduler kernel for live scheduling with adaptive wakeups;
- concurrent stops await cleanup without cancelling it a second time (#1899).
-
-### Maintenance — 2026-10-17
-
-- Surface provider-reported LLM usage and cache counts in Run Detail, live chat
- usage, and swarm totals with estimated/unlabeled provenance (#1890). Swarm
- history hydration restores missing task rows. A reported zero remains zero
- beside a nonzero count; an unreported direction stays unknown. These are token
- counts, not monetary cost or cross-run billing totals.
-- Share the scheduler kernel across scheduled research and opt-in memory/Brazil
- background jobs (#1893). The live-trading scheduler is unchanged. ZimaOS keeps
- both scheduler and daily-sync flags off by default. Brazilian source failures
- now reach the scheduler's existing retry budget instead of recording success.
- The first daily sync waits for its configured slot; manual sync remains available.
- Before downgrading to code without system-job support, remove `system:` rows
- from the stored job file: older readers reject them and quarantine that file.
-- Combine generic trade-journal date/time columns before FIFO matching, including
- Excel serial dates and time fractions (#1900). Complete datetime columns retain
- precedence. Reject goal evidence artifacts outside their claimed run (#1895).
-- Resolve tied rolling extrema consistently across pandas and bottleneck (#1898),
- and return an error envelope when options-payoff results overflow (#1897).
-- Honor `VIBE_TRADING_HOME` for persistent memory and its search index (#1896),
- reject non-positive CLI list/search limits (#1886), keep trade-symbol choices
- in code order (#1877), and deduplicate channel progress against visible statuses
- rather than hidden tool hints (#1878).
-
-### Maintenance — 2026-10-16
-
-- Redact bare Groq/NVIDIA keys, Telegram bot tokens and Slack/Discord webhook
- secrets from tool results and diagnostics (#1880). Follow-up coverage includes
- Telegram ids outside the original eight-to-ten-digit assumption, GovSlack and
- case-insensitive webhook hostnames; benign lookalikes remain unchanged.
-- Update the Windows desktop PyJWT pin to 2.15.1, matching the main lock and
- including the fix for [GHSA-ffc3-869f-jxw9](https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffc3-869f-jxw9).
- Artifact hashes are verified against PyPI; other Windows dependency pins stay unchanged.
-- Refresh opt-in local CSV, Parquet and DuckDB caches when source filesystem
- revisions change, including DuckDB WAL changes and deletions (#1879). Reuse
- bounded cache paths and reject mismatched metadata/payload pairs. Edits that
- preserve all observed filesystem identity fields remain outside this check.
-- Split reversal fees between closed and newly opened quantities so FIFO PnL
- counts each recorded fee once (#1891). Parse dot-grouped, comma-decimal journal
- amounts correctly (#1881); ambiguous comma-only thousands retain their prior
- interpretation. Emit strict JSON with null for unbounded ratios (#1884), and
- avoid diagnosing disposition bias from zero holding times on both sides.
-- Reject false agreement against zero market-cap references or zero/negative
- cross-source medians (#1883). Undefined percentage deviations are null.
-- Include completed zero-bar trades in average holding periods (#1876); retain
- the existing bar-based measure behind the `avg_holding_days` compatibility key.
- Infeasible minimum weights fall back to equal active magnitudes while keeping
- signs and gross exposure (#1885). Count one flat peak/trough only once (#1882).
-- Serve Shadow Account reports from the configured runtime root used by the
- report writer, restoring report links when `VIBE_TRADING_HOME` is set (#1887).
-
-### Maintenance — 2026-10-15
-
-- Separate live safety polling from model decisions (#1854): safety checks keep
- their 60-second cadence, while decisions default to every 15 minutes and use
- a fresh session. Per-broker daily budgets persist across restarts (26 decisions
- and 1,000,000 reported tokens by default). Optional daily scheduling and
- operator-priced USD estimates are configurable through Web, REST and CLI.
- Usage is checked after a response, so one response can exceed a threshold;
- estimates exclude auxiliary calls and are not a provider billing cap. Missing
- usage or exhausted limits trigger the existing HALT path, including its
- cancel/flatten behavior. Interrupted reservations require operator inspection.
-- Load bounded run previews and move blocking artifact reads off the async
- event loop (#1853); preserve full trade history for display/export, defaulting
- to newest first while retaining same-time fill order (#1865).
-- Preserve instrument identity in ticker-keyed evidence without mis-scoping
- scalar contributions (#1851). Normalize percentage-point operands before
- arithmetic, including ratios and compound factors; retain evidence and sign
- validation (#1823).
-- Record declared backtests in strategy history with atomic measurement-based
- deduplication; copied directories cannot satisfy decay-history sample
- requirements, while different evaluation windows remain distinct (#1849).
-- Combine digit-leading crypto bases, separated USDC/BUSD quotes and perpetual
- symbols in shared market classification, including signal alignment (#1861,
- #1862, #1864). Emit swing signals only after confirmation (#1873), and compute
- zero-target downside deviation over the complete return sample (#1875).
-- Correct fiat-pair classification and accounting-negative amounts in trade
- journals (#1871, #1872). Deliver Telegram final replies when a preview was
- unavailable (#1860), correlate CLI tool progress by call ID (#1859), and keep
- saved skill names consistent with their front matter (#1858).
-- Expand private-key, cloud/platform-token and Cookie redaction, including
- quoted Cookie values, while preserving public keys and idempotence (#1874).
-- Make session-based ReAct iteration limits configurable through
- `VIBE_TRADING_AGENT_MAX_ITERATIONS`; the default remains 50 and values below
- one are rejected (#1833). This does not disable progress or spending limits.
-
-### Maintenance — 2026-10-13
-
-- extraETF Investments imports now feed portfolio snapshots, with explicit row-count/freshness checks, EUR reference-rate valuation, preserved account/ISIN identity, and non-executing allocation proposals across Web, REST, CLI and the portfolio tool.
-
-- Standalone validation preserves saved parameters and seeds across walk-forward, Monte Carlo and permutation tests (#1815).
-- Custom OpenAI-compatible providers use tested credentials in the OS vault, canonical model settings and the `provider custom` CLI; existing channel settings remain available (#1264).
-- Pixel Office shares a transactional manual task board across Web, CLI and the agent tool. Assignment does not imply execution, and ranks grant no trading permissions (#1616).
-- mStock Type B reads expose separate holdings, net-position books and raw fund limits. Orders remain disabled; unmapped account values are excluded from portfolio aggregation (#1675).
-- Gildata adds bounded China macro, announcement and broker-report research plus OTC fund NAV reads. NAV evidence is scoped to that tool's declared fields. HK raw-price caliber and exact CN index identity are preserved (#1485).
-
-### Maintenance — 2026-10-12
-
-- Preserve the original opening fill after scale-ins (#1780), use the book
- immediately before terminal liquidation for Brinson attribution (#1782),
- and start drawdown duration at the latest visit to the peak (#1784).
- Three-statement projections honor the caller's balance tolerance throughout
- the model (#1786); existing balance checks remain enforced.
-- Add ten SEC fundamental factors and three A-share valuation factors
- (`val:pb`, `val:ps_ttm`, `val:dv_ttm`) via Tushare daily_basic (#1787, #1788,
- #1789). The registry now has 475 factors, 17 in the fundamental family.
- Date-only SEC filings become usable one bar later on the IC path (#1790,
- #1794). Prior IC measurements using same-day filings need to be rerun.
- XOM keeps its current SEC identity while pre-reorganization filings extend
- its history. Basic shares never substitute for missing diluted shares.
- Price-times-diluted-shares ratios are valuation proxies, not reported market
- capitalization. Missing input data remains missing.
-- Add Brazil `.SA`/BRL routing, an equity engine, local B3/CVM/BCB/Tesouro
- ingestion and the `get_br_market_data` tool, plus market selection and
- labels in all nine UI languages (#1783). COTAHIST bars remain raw;
- CVM statements contain latest revisions, not point-in-time evidence.
- ZimaOS Compose and a fork publishing template require explicit setup;
- the upstream repository gains no automatic publishing schedule.
-- Forward active attempt status, tool hints and opt-in reasoning to IM
- channels, including Feishu CardKit (#1792). Final answers still pass
- grounding before delivery; draft text and tool-result payloads stay private.
-- Complete write-target helper extraction with actual loop delegation (#1791,
- #1624), preserving runtime model provenance. Clarify that connector profiles,
- not the legacy config.readonly field, govern order access (#1793).
-
-### Maintenance — 2026-10-11
-
-- Reject unsupported live options before broker dispatch (#1773). This is a
- guard fix; live options execution is not enabled.
-- Require evidence for every data operand in derived figures (#1622).
- Chosen multipliers/divisors need an explicit parameter declaration and
- matching visible label; arithmetic checks remain enforced.
-- Keep explicit offline/source-bound benchmarks on their selected loader and
- report unresolved benchmarks (#1781). Distinguish entry/exit events so
- break-even closes remain in trade artifacts and downstream analysis (#1779).
-- Preserve optional Codex tool arguments with explicit non-strict schemas
- (#1785).
-
-### Maintenance — 2026-10-10
-
-- Slack and Discord gain localized connection forms and read-only credential
- probes (#1764, #1777). Slack verifies both bot identity and Socket Mode app
- access; Discord requires a bot identity. HTTP 408/429 report temporary errors.
- Failed probes leave saved settings unchanged. Discord admission policies
- refresh without reconnecting.
-- Recover sessions and attempts with invalid UTF-8 metadata, and skip malformed
- message records while preserving readable neighbors and original files (#1775).
- Redact environment-style credentials and URL userinfo (#1765); generic trade
- journals retain quantities and prices instead of being misclassified as Futu
- exports (#1766).
-- Memory links recognize two-character identifiers (#1771). FTS recall expands
- past stale index rows until enough current memories are found or the index is
- exhausted (#1772).
-- Pin portfolio research to an immutable snapshot (#1769): the agent accepts
- `snapshot_id`, the CLI supports `portfolio show --snapshot-id ID`, REST accepts
- the same identifier, and Web exports the displayed sanitized research snapshot
- as JSON. Unavailable or revoked snapshots never fall back to newer data.
- Technical indicators accept an optional ISO `end_date` and report provenance
- plus a fingerprint of their exact input bars (#1768).
-- Exclude top-level process exit codes and elapsed times from observed financial
- evidence (#1767). Register existing figure/identity checks without changing
- their predicates (#1691); extract compaction, tuning, usage accounting and
- terminal outcome policy from the agent loop (#1631, #1678, #1662, #1641).
-- Expand the options connector evidence checklist (#1770). Update compatible
- Python/frontend dependencies and pinned CI actions (#1692, #1668, #1667,
- #1666, #1665); align Vitest with its coverage plugin. Keep `uuid-utils` at
- 0.17.0 because the proposed 1.0.0 upgrade (#1670) conflicts with the current
- LangChain constraint. Preserve mootdx's retirement from the public canary.
- BaoStock's bounded connection wrapper accepts the new 0.9.4 API-key argument
- while retaining public/VIP routing and compatibility with 0.9.3.
-
-### Maintenance — 2026-10-09
-
-- Channel edits to live-read settings apply without reconnecting, including a
- full Web form that echoes unchanged connection values (#1737; #1734/#1736).
- Web results distinguish refresh, reconnect, deferred application and degraded
- reset in all nine languages. Reset reasons redact URL userinfo and old/new
- secret values; a best-effort notice goes to the changed channel's last chat.
- Signal refreshes its writable nested policies, not its computed allowlist.
- Refresh changes only declared live fields and preserves connection state
- resolved during login, including WeChat's authenticated server address.
-- Strip URL credentials even with malformed ports or multiple `@` characters
- (#1742; #1741). Saving or testing an echoed configuration preserves the stored
- URL credentials; explicit edits and clear flags remain effective (#1744; #1743).
- Enable and connection-test failures also redact credentials, including raised
- SDK exceptions, and leave saved configuration unchanged.
-- Recognize known slash-USD crypto pairs before forex in both correlation and
- shared Agent/MCP market-data routing, while keeping precious metals on the
- forex chain (#1740, #1748). Normalize
- suffixed Hong Kong aliases for duplicate detection (#1746; #1745), and treat
- unusable persisted cache metadata as a recoverable cache miss (#1747).
- Five-digit display aliases share an identity with their four-digit spelling;
- distinct currency counters stay separate. Missing cache index metadata is a
- miss too, with valid entries still reused after repair.
-- Options drawdown includes the initial-cash high-water mark (#1750; #1749).
- Pricing volatility receives the run's annualization factor; cross-market
- pricing estimates each bar's frequency from elapsed return intervals known
- at that time, including subdaily intervals. Extending a run cannot change
- earlier option prices (#1753). Bootstrap and walk-forward validation use
- only observed adjacent equity returns across missing data (#1754).
- A walk-forward window without observed endpoints or any adjacent returns
- reports an error instead of a fabricated zero score or an incomplete aggregate.
-- Cash-flow ingestion refuses ambiguous single-dot amounts unless the decimal
- separator is supplied, while accepting unambiguous scientific notation in
- cash-flow and entity-panel files (#1739). American waterfalls reject a bare `as_of`
- date rather than silently ignoring it; per-deal dates remain supported (#1732).
-- Retire mootdx from the default A-share chain and public canary (#1730; #1729),
- with explicit-source access retained. Old source-order overrides containing
- the retired slot fall back to the current default with a warning.
-- Restore main CI through the configured environment accessor and corrected
- correlation routing (#1740; #1751). Repair the outdated Alpha Zoo test double
- while retaining production factor-metadata validation.
-
-### Maintenance — 2026-10-08
-
-- Optional AES-256 protection for Email PDF reports (#1709): Web, CLI
- playbooks and Agent proposals persist only the boolean choice. Confirmations
- show it, and creation or confirmation refuses an unconfigured password.
- The private Email setting is translated in all nine UI languages.
-- KIS order and fill reads query KRX, SOR and NXT, deduplicate records and fail
- incomplete venue reads (#1726). An explicitly expired token is refreshed
- once, including HTTP 200 business errors and 401/403 replies; other business
- errors remain failures.
-- Derived formulas parse the complete expression after a descriptive label
- while retaining operand evidence and arithmetic validation (#1728).
-
-### Maintenance — 2026-10-07
-
-- Move volatile workspace state outside the system prompt (#1708, resolves
- #1707); align local daily dates across markets (#1710) and distinguish bare
- equity tickers from explicit crypto pairs (#1711).
-- A-share benchmarks follow the declared exchange suffix (#1712), and loader
- suites share the live health checker’s OHLCV contract (#1725, resolves #1723),
- including Binance and a catalog assertion for newly registered sources.
-- OU lag pairs retain gaps (#1713), walk-forward validation skips empty purged
- training folds (#1714), undefined correlations remain missing (#1715), and
- risk X-ray returns do not bridge missing observations (#1717).
-- CDS premium legs include the final stub (#1716); style exposure excludes
- incomplete rows and reports unmatched weight (#1718); Heston rejects
- nonfinite inputs and invalid integration bounds (#1719); options Sortino
- uses the full return sample for downside deviation (#1727).
-- Session search respects a zero limit (#1720), and archive audit diagnostics
- use the shared ledger walker to report malformed records (#1721).
+## [0.1.17] — 2026-10-21
+
+Rolls up 638 commits / 228 merged pull requests since 0.1.16, plus 41 pull
+requests whose work landed through maintainer commits, from 33 contributors.
+
+The headline is daily paper trading. A `paper_trade_step` tool for the agent
+and MCP, and saved paper accounts through `vibe-trading paper`,
+`/api/paper-accounts` and a Web page, match orders or a strategy against
+completed daily bars without ever reaching a broker; saved accounts move
+forward only. Most of
+the rest of the cycle is correctness, and much of it has one shape: a value
+that cannot be computed now says so instead of turning into a plausible
+number. A profit factor with no losing trade, an undefined correlation, a
+factor benchmark with too few IC observations, an upside at a zero price and
+an unbounded ratio come back as `null` or a refusal rather than 0; a missing
+price no longer bridges a return pair, a VaR transition or a lag pair; an
+after-close SEC filing no longer reaches the IC a bar early; and a misspelled
+backtest setting is reported in the run card instead of silently ignored.
+Brazil (B3) joins as a market, the Alpha Zoo grows from 462 to 478 factors,
+Slack and Discord join the guided channel setup, scheduled reports can
+arrive by Email as HTML or a password-protectable PDF, token usage shows in
+Run Detail, chat and swarm, a `claude-cli` provider runs the agent on a local
+Claude Code login, and the Web UI adds Persian and Turkish for 11 languages.
### Added
-- **Editable scheduled delivery and rich Email reports** (#1649, #1680).
- Choose a configured channel and destination, edit existing schedules, and
- select plain text, sanitized HTML or a PDF attachment for Email across Web,
- CLI playbooks and agent proposals. Confirmation surfaces show the format. Format edits
- persist, active sends cannot be overwritten, and desktop PDF delivery uses
- the packaged renderer when native libraries are unavailable, with embedded
- CJK/Arabic fonts and tested multiline/table pagination. Email PDF delivery
- also supports optional AES-256 password protection using an operator-managed
- Email channel secret; scheduled jobs store only the boolean choice.
-- **Structured backtest summaries and paged artifact reads** (#1646, #1647,
- resolves #1644 and #1645). Complete scalar metrics, structured metrics and
- validation accompany endpoint-preserving equity previews and OHLCV paths.
- `read_run_artifact` streams manifest-listed CSV pages within the actual
- tool-result limit, with resumable offsets and bounded metadata. Grounding
- accepts only shown rows of unchanged engine tables, preserving run identity
- and excluding model-written files and escaped symlinks.
-
-- **Grounding validation records fired declared checks** (#1661, with the
- registry substrate from #1628, thanks @he-yufeng). Validation artifacts name
- the registered checks behind their findings; the existing private/listed
- identity rule is unchanged.
-- **Public loader-health failures carry sanitized warning evidence** (#1643,
- thanks @cgycorey). Reports retain up to three bounded loader warnings while
- continuing to fail unavailable sources. Structured and quoted credentials
- are redacted; warnings containing filesystem paths are omitted in full.
-
-- **Feishu joins the guided Web UI channel setup** (#1572, thanks
- @shadowinlife). The Feishu panel gets field hints and a setup guide in all
- nine locales. **Test connection** is a standalone probe that requests a
- tenant access token from feishu.cn or larksuite.com, whichever the config
- names, without starting the bot. `stop()` now closes the lark WebSocket and
- stops its dedicated event loop, so a hot reload no longer leaves the old
- connection answering messages beside the new one.
+- **Daily paper trading with saved accounts** (#1939, thanks @shadowinlife). A
+ new `paper_trade_step` agent and MCP tool matches explicit orders, or the
+ per-day orders of a strategy file, against completed daily bars for `cn_a`,
+ `hk` and `us`; nothing in it can reach a broker order path. The same
+ stateless step is served as `vibe-trading paper step` and
+ `POST /api/paper-trade/step`. Saved paper accounts are built on it and
+ reachable three ways: `vibe-trading paper create|list|show|history|advance`,
+ authenticated REST under `/api/paper-accounts` (list, create, read,
+ history, `POST .../{id}/advance`) and a **Paper trading** page in the Web
+ sidebar in all eleven UI languages.
+ An account starts from the cash and positions you enter, today or at the
+ next session, and moves forward only: an advance settles sessions whose
+ regular close is at least 30 minutes past and carries the revision it read,
+ so a stale or concurrent request is refused (HTTP 409 over REST) instead of
+ committing twice, and a failed step leaves the ledger unchanged. Ledgers
+ live in `<runtime_root>/paper-trading/accounts.db`; there is no background
+ scheduler. A strategy under `<runtime_root>/strategies/` runs in a child
+ process that sees only bars strictly before the execution day and the ledger
+ after earlier fills; orders fill at that day's close, and any strategy
+ failure discards the whole call. Matching is daily-close and all-or-none,
+ with simplified fees, price limits, board lots and A-share T+1. Execution
+ prices must be raw: adjusted or unknown price calibers and non-finite prices
+ are rejected, A-shares need a complete ClickHouse trading calendar, and a
+ split-like jump returns `PAPER_DATA_NOT_READY` rather than rescaling
+ holdings. Corporate-action reconciliation and cash dividends are not
+ modelled and NAV is not total return; intraday, margin, options and
+ cross-market phases remain open under #1938.
+
+- **Live runner model calls have their own cadence and daily budget**
+ (closes #1854). Safety checks still run every minute, but a model
+ decision now defaults to every 15 minutes, each in a fresh conversation,
+ with at most 26 decisions and 1,000,000 reported tokens per broker per
+ UTC day; an optional once-daily time, timezone and operator-priced USD
+ limit are set in Runtime → Model schedule and spending limits, the chat
+ runner panel, `vibe-trading connector runner-settings` or
+ `GET`/`PUT /live/runner/settings`. Spending history survives restarts.
+ Limits are checked after each provider response, so one response can
+ overshoot; estimates ignore cache discounts and auxiliary calls and are
+ not a provider billing cap. Exhaustion or missing usage trips the
+ existing kill switch and its cancel/flatten behaviour, and a decision
+ left unfinished by a crash is blocked for inspection.
+
+- **Strategy adaptation runs from preparation to evidence**. A registered
+ strategy with adequate, non-stale evidence can be adapted to a new name,
+ universe, date window and position sizing through `adapt_strategy` (agent
+ and MCP), `vibe-trading strategy-evidence adapt`, authenticated `POST
+ /api/strategy-adaptations` and a Web welcome prompt. The SDM child keeps the
+ parent's signal, entry and exit definitions and gets its own run directory,
+ SignalEngine and backtest; it never inherits parent metrics. Refreshing with
+ `scope=strategies` (`strategy-evidence refresh --scope strategies`, or `POST
+ /api/strategy-adaptations/evidence`) replaces only the named strategies'
+ evidence, and refuses an adapted run unless its config, code, metrics,
+ equity and trades match the hashes sealed in its run card. The hash binds
+ evidence to the persisted run; it does not certify that the generated code
+ implements its description.
+
+- **extraETF holdings exports feed the portfolio, with allocation proposals**.
+ `vibe-trading portfolio import-extraetf`, `POST
+ /api/portfolio/imports/extraetf` and **Portfolio → Manage accounts → Import
+ extraETF Investments** store an Investments CSV as a local source. The whole
+ import fails on an unreadable row, a holdings count that differs from the
+ one you confirm, a missing price, a future file time or an export older than
+ the freshness limit you choose; transactions, dividend and X-Ray exports are
+ refused. `Portfolio ID` keeps accounts apart when they hold the same ISIN.
+ Totals are exported quantity × price and exclude cash and assets absent from
+ the export. EUR joins USD, CNY and HKD as a display currency, valued at
+ Frankfurter reference rates whose date is shown apart from the fetch time.
+ An allocation proposal (`portfolio rebalance --snapshot-id`, `POST
+ /api/portfolio/rebalance`, `portfolio_summary(snapshot_id=...,
+ target_weights=...)`, or the Web page) shows value changes for target
+ percentages that total 100%; it creates no orders, quantities, tax or fee
+ estimates, and an incomplete snapshot or stale cached rates cannot produce
+ one. Imported holdings stay out of historical risk tools until their trading
+ venue is resolved.
+
+- **Portfolio research can stay on one snapshot** (#1769, thanks @zeus229).
+ `portfolio_summary` returns `snapshot_id` and `read_identity` and accepts a
+ `snapshot_id` back, so a multi-step analysis keeps reading the same stored
+ observation after a later refresh. `vibe-trading portfolio show
+ --snapshot-id ID` and `GET /api/portfolio/analysis-context?snapshot_id=`
+ read the same way, and the Web Portfolio page exports the sanitized research
+ snapshot it displays as JSON. An unknown snapshot, one valued under an older
+ valuation version, or one containing a source that is no longer enabled is
+ reported as unavailable and never replaced by newer data.
+
+- **mStock (India) read-only connector** (#1675, thanks @Jackzigen). The
+ `mstock-live-rest-readonly` profile sends only GET requests for the Type B
+ holdings, net-position and fund-summary resources, with the API key and
+ current session token kept in the connection's OS credential vault; it never
+ logs in, refreshes a session or calls an order endpoint, and both order
+ entry points refuse before any network call. Holdings and net positions stay
+ separate books. Fund limits are shown raw because they are not cash or net
+ liquidation, so the profile withholds `account.read` and is not a portfolio
+ source. `connector account` and `connector positions` gain
+ `--connection-id`. Tests replay the documented reply shapes; no real mStock
+ account was available.
+
+- **Five example options strategies and a candidate study** (#1774, thanks
+ @mdb1230). The options-strategy skill ships covered call, cash-secured put,
+ iron condor, volatility-gated short strangle and protective put
+ `OptionsSignalEngine`s, and `agent/scripts/options_candidates_backtest.py`
+ picks one parameter per strategy on 2016–2020 SPY/QQQ, then reports 2021
+ onward on SPY, QQQ, AAPL and MSFT with those parameters fixed. This is
+ research code for choosing what to paper-trade; no engine changed and no
+ order path exists.
+
+- **Custom OpenAI-compatible model endpoints** (#1264, thanks @Emad211).
+ Settings gains a custom-provider manager and the CLI gains `vibe-trading
+ provider custom list|add|activate`. A profile is saved only after a test
+ chat completion with the same URL, model and key succeeded in the last five
+ minutes; the key goes to the OS credential vault (the `[keyring]` extra),
+ never to the profile JSON or argv, and activation needs an explicit
+ confirmation. An active profile cannot be edited: save the changed endpoint
+ under a new id. Base URLs carrying credentials, and hosts that are or
+ resolve to any non-public address (loopback, private, link-local, reserved,
+ or the shared 100.64.0.0/10 range that holds Alibaba Cloud's metadata
+ service), are refused, so a model served on localhost cannot be registered
+ this way. The host is checked when the profile is tested and saved; a name
+ that later re-resolves to a private address is not re-checked. The test is
+ a real request and may be billed. `LANGCHAIN_MAX_TOKENS`, when set, now caps
+ output tokens on the OpenAI-compatible adapter. The PR's per-channel
+ configuration API was not merged; channel settings stay where 0.1.16 put
+ them.
+
+- **Persian and Turkish join the Web UI, which now has 11 languages** (#1264,
+ #1616, thanks @Emad211 and @bygordon130-hub). Persian (`fa`, right-to-left)
+ and Turkish (`tr`) are registered in `SUPPORTED_LANGUAGES` and the language
+ switcher, and all 11 locale files carry the same keys. The Turkish file
+ arrived with English placeholders and UTF-8 decoded as Windows-1252; both
+ were replaced before release, and a test now rejects copied-English Turkish
+ strings and that mojibake in `tr` and `fa`. The custom-provider strings,
+ first merged in English in every locale, are translated in all 11. Chat
+ messages, the composer and error lines take their direction from their own
+ text, so a Persian or Arabic message reads right-to-left inside an English
+ UI and the reverse. Some strings are still English in some locales.
+
+- **Pixel Office, a shared manual research-task board** (#1616, thanks
+ @bygordon130-hub). The `/pixel-office` page, the `vibe-trading office` CLI,
+ authenticated `GET /api/pixel-office` and `POST /api/pixel-office/actions`,
+ and the `pixel_office` agent tool share one transactional SQLite board
+ (`pixel-office.sqlite3` under the runtime root, mode 0600), so separate
+ processes see the same tasks. Tasks are created, assigned to a role,
+ completed with a required result, and roles carry Operator / Senior / Lead
+ ranks. Assigning a task does not start an agent or place an order, ranks
+ grant no trading permission, and a recorded result is not an execution
+ audit. The PR proposed a JSON file plus browser state; the merge replaced it
+ with this shared store. The unsigned Windows review installer now builds the
+ bundled Python backend before packaging.
+
+- **Scheduled jobs are edited in place, with channel-aware destinations**
+ (#1649, thanks @zeus229). `PATCH /scheduled-runs/{id}` and the Scheduled
+ page change a job's prompt, cadence, timezone, end date and delivery without
+ deleting it, so its id and history stay. A job that is running, or whose
+ delivery is being sent, refuses edits with 409. Each channel adapter
+ describes the destination it accepts (label, placeholder, input type), and
+ Telegram suggests numeric private-chat ids already in its `allow_from`; a
+ suggestion only fills the manual target field. Changing the destination
+ clears the old delivery receipt but keeps the session link, and a
+ timezone-only edit does not move an interval schedule's next run.
+
+- **Scheduled Email reports as HTML or a PDF attachment** (#1680, thanks
+ @zeus229). Email delivery takes a format: plain text (the default),
+ sanitized HTML (Markdown rendered by mistune and cleaned by `nh3`), or a PDF
+ attachment with a short notice in the body. It is chosen on the Web
+ Scheduled page, in CLI playbooks (`--delivery-format`) and in agent
+ proposals, whose confirmations show it. A PDF that fails to render fails the
+ send instead of going out as plain text. Where WeasyPrint's native libraries
+ are missing, the PDF comes from the bundled ReportLab renderer with embedded
+ fonts, so desktop installs get PDFs too. A scheduled send now fails visibly
+ when the Email channel lacks consent or an SMTP host instead of being
+ skipped with a log line. The format selector is translated in every UI
+ locale.
+
+- **Password-protected PDF reports** (#1709, thanks @zeus229). An operator
+ sets a private `pdf_password` on the Email channel; a PDF Email job can then
+ request protection, and the attachment is encrypted with AES-256 through
+ `pypdf`. Web, CLI playbooks (`--protect-pdf`) and agent proposals store only
+ the yes/no choice, a job config containing `pdf_password` is rejected,
+ confirmations show the choice, and creating, editing or confirming a
+ protected job without a configured password is refused. An encryption
+ failure never echoes the password.
+
+- **The agent can save a report as a real PDF**. Before this, `write_file`
+ wrote Markdown text into a file named `.pdf`. A `.pdf` path now renders the
+ Markdown into a paginated PDF with ReportLab, without Pango or Cairo. Text
+ uses a bundled Noto Sans CJK subset (`VibeCJK-Regular.ttf`, OFL) covering
+ Latin, Greek, Cyrillic, CJK, kana and Hangul; Arabic lines are shaped with
+ `arabic-reshaper` and `python-bidi` (now base dependencies) in
+ matplotlib's DejaVu Sans and wrap across pages without clipping. A
+ character neither font covers fails the render instead of printing empty
+ boxes, and the write is atomic, so a failed render leaves an existing file
+ untouched. The result carries the path, the real byte count and an
+ authenticated `/api/reports/{id}` link, which the reply adds even when the
+ model leaves it out and the Web chat downloads; IM channels that accept
+ files receive the PDF as an attachment, taken only from this attempt's
+ staged reports, never from a path the model wrote. Staged copies live
+ under `generated_reports/` in the runtime root; if staging fails, the
+ written file is kept and the result reports `download_error`. The bundled
+ font adds about 19.9 MB to the package.
+
+- **Shadow Account reports render a PDF without WeasyPrint** (#1683, thanks
+ @he-yufeng). When WeasyPrint is missing or fails, the report renders the
+ same eight sections and charts through ReportLab in a simpler layout, and
+ only then falls back to HTML-only; the payload's `engine` can now read
+ `reportlab`. A process no longer loses the fallback after its first render
+ on a host without a CJK font. The PR used Helvetica when no CJK font was
+ found; the bundled font is now tried first, and a host where no embeddable
+ font loads gets HTML-only, because an unembedded face can print blank pages.
+
+- **Feishu joins the guided Web UI channel setup** (#1572, closes #1614,
+ thanks @shadowinlife). The Feishu panel gets field hints and a setup guide
+ in every UI locale. **Test connection** is a standalone probe that requests
+ a tenant access token from feishu.cn or larksuite.com, whichever the
+ config's domain names, without starting the bot. `stop()` now closes the
+ lark WebSocket and stops its dedicated event loop, so a hot reload no longer
+ leaves the old connection answering messages beside the new one.
+
+- **Slack and Discord join the guided Web UI channel setup** (#1757, #1758,
+ #1764, #1777, closes #1763 and #1776, thanks @shadowinlife). Both get
+ localized forms and read-only credential probes. Slack checks the bot token
+ with `auth.test`, requiring a bot identity so a user token is refused, then
+ the app token and Socket Mode with `apps.connections.open`; only Socket Mode
+ is supported. Discord requires a bot identity from `users/@me`; privileged
+ intents cannot be checked over REST, so the setup guide covers them. The
+ shared token probe, also behind DingTalk, QQ and Feishu, now reports HTTP
+ 408 and 429 as a temporary network failure rather than rejected credentials,
+ and a failed probe leaves saved settings unchanged. Discord's allowlists,
+ group policy and emoji settings, and Slack's allowlist and emoji, refresh
+ without reconnecting. #1757 and #1758 landed through #1764.
+
+- **Token usage in Run Detail, chat and swarm** (#1890, closes #1889, thanks
+ @shadowinlife). Run Detail gains a Token usage tab built from the run's
+ existing `llm_usage`, chat shows a live counter from the `llm_usage` stream
+ event (replay cannot double-count), and swarm cards and the dashboard show
+ run and per-agent totals. `GET /swarm/runs/{id}` now returns token totals,
+ provider and model, and swarm workers record prompt-cache tokens and whether
+ a count is provider-reported or estimated; an estimate is labelled as one
+ and a missing label reads "unlabeled". A reported zero stays zero beside a
+ nonzero count, and a missing cache field is never shown as 0. These are
+ token counts, not cost or cross-run totals.
+
+- **`get_southbound_flow` serves the Stock-Connect net flow that is still
+ published** (#1486, closes #1483, thanks @shadowinlife). The new read-only
+ agent and MCP tool returns market-wide southbound daily net buy into Hong
+ Kong, split into the Shanghai and Shenzhen channels, in 100M HKD. Eastmoney's
+ datacenter report is the primary source; Eastmoney's `NET_DEAL_AMT` arrives
+ in million HKD and is scaled to the envelope unit, and a rejected report is
+ an error rather than an empty history. The keyless fallback is HKEX's
+ official daily statistics (Buy minus Sell turnover), which serves only the
+ latest trading day. There is deliberately no Tushare path: its southbound
+ fields now carry the cumulative stock, not a daily flow.
+
+- **Gildata research tools and off-exchange fund NAV** (#1485, thanks
+ @sambazhu). With `GILDATA_TOKEN` set, three tools wrap Gildata's
+ natural-language endpoint: `get_cn_macro_series` (China macro, regional and
+ industry series), `get_cn_announcements` (A-share, HK and fund
+ announcements) and `search_broker_reports`. Each echoes the vendor APIs its
+ query was routed to and returns at most 200 rows (default 50);
+ `GILDATA_SRV_TOOL_URL` overrides the endpoint. `get_fund_nav` returns unit,
+ accumulated and adjusted NAV for funds such as `110022.OF`, and only those
+ three NAV fields count as price evidence for grounding. The Gildata loader
+ now also serves Hong Kong equities, stamped `raw`, and CN indices, each
+ resolved only when the vendor's `ref_code` matches the symbol exactly. It
+ stays at the tail of each chain so paid quota is spent last. Without a token
+ none of this registers.
+
+- **Run cards flag backtests that may sit inside the model's training data**
+ (#1618, closes #1613, thanks @lorenzozanee). Strategy writes record the
+ provider and model that produced `config.json` and `code/signal_engine.py`,
+ and the run card shows them. Set `model_training_cutoff` (an ISO date) in
+ `config.json`: a window ending before it is marked as exposed, and an unset
+ or invalid cutoff is reported as unknown and treated as exposed. No cutoff
+ is inferred from the model name. `vibe-trading alpha bench --strict` takes
+ `--training-cutoff` to start the out-of-sample segment after that date, and
+ now returns an error instead of `ok` when no alpha rows qualify.
+
+- **Loader-health reports say why a source came back empty** (#1643, #1698,
+ thanks @cgycorey). The weekly public loader-health lane attaches up to three
+ of the loader's own warnings to an unhealthy row, so an anti-bot refusal and
+ a broken loader no longer look identical. The report is a public artifact:
+ each message is capped at 200 characters, URLs and credential-shaped values
+ are redacted (including a labelled `Authorization: Bearer token: VALUE`),
+ and a warning that contains a filesystem path is omitted in full. The
+ health tests now register real loaders before stubbing one, so running a
+ single test no longer reaches the network.
+
+- **A free BaoStock fallback for A-share `val:*` panels** (#1799, thanks
+ @Jackzigen). Without a Tushare token, or when Tushare returns nothing for a
+ field, `val:pe_ttm`, `val:pb` and `val:ps_ttm` come from BaoStock's daily
+ `peTTM` / `pbMRQ` / `psTTM`. `val:pe` and `val:dv_ttm` have no BaoStock
+ counterpart and stay NaN rather than being filled from another field. A
+ BaoStock outage or login failure degrades to NaN panels, not an exception.
+ Token holders see no change.
+
+- **Hong Kong orders are sized on each symbol's board lot** (#1813, thanks
+ @alexwan02). A backtest config may carry `hk_lot_sizes: {symbol: lot}`;
+ `00700.HK`, `0700.HK` and `700.hk` share one entry and five-digit counters
+ such as `80700.HK` stay distinct. Any HK symbol without a configured lot is
+ sized on 100 shares and listed under `lot_assumptions` in the run metrics,
+ also when no table is given. Mixed-market runs carry each sub-engine's
+ assumptions under `market_diagnostics`.
+
+- **Brazil (B3) market data and an opt-in ZimaOS template** (#1783, thanks
+ @incorpore). A `.SA` symbol is market `br_equity`, quoted in BRL and served
+ by `yahoo` → `yfinance` → `b3_cotahist` → `local`, with `BOVA11.SA` as the
+ default benchmark. The Brazil engine applies configurable B3 fees, R$0.01
+ ticks and a default lot of one share (`br_lot_size=100` for round lots); it
+ does not model income tax, stock-borrow cost or settlement cash locks.
+ `python -m src.br_data sync` stores official B3 COTAHIST, CVM, Banco
+ Central and Tesouro Direto data outside the checkout, and the
+ `get_br_market_data` agent tool reads it. COTAHIST bars are raw, and CVM
+ statements are latest revisions, not point-in-time inputs. `zimaos/` holds
+ a Compose file and a fork publishing example that each need explicit setup;
+ upstream gains no scheduled publishing job.
+
+- **A complete pip + Telegram quick start in the README** (#1954). It covers
+ installing the Telegram extra, sender authorization with `allow_from`,
+ matching the API port between `serve` and `channels start`, and recovering
+ when `vibe-trading channels` is missing because the package was installed
+ into a different environment.
+
+- **Thirteen fundamental and valuation factors** (#1787, #1788, thanks
+ @shadowinlife). Ten read point-in-time SEC XBRL filings: accruals,
+ book-to-market, cash-to-assets, CFO yield, earnings growth, FCF yield,
+ leverage, operating margin, revenue growth and ROA. Growth is year over year
+ through a 365-day as-of lag, and earnings growth divides by the absolute
+ prior value, so a loss turning into a profit reads as growth. Three read a
+ new `val:*` namespace of daily A-share valuation data (`fund_pb`,
+ `fund_ps_ttm`, `fund_dividend_yield`). Those are keyed by trade date and
+ attached only on the CSI 300 universe; a nonpositive P/B or P/S is excluded
+ rather than ranked as cheap. XOM keeps its current SEC filer, and filings by
+ its pre-reorganisation filer that predate the change extend its history.
+ Basic shares never stand in for missing diluted shares, and
+ price-times-diluted-shares ratios are valuation proxies, not reported market
+ capitalisation.
+
+- **Industry-neutral A-share value factors** (#1802, closes #1789, thanks
+ @shadowinlife). `fund_pb_ind_neutral`, `fund_ps_ttm_ind_neutral` and
+ `fund_dividend_yield_ind_neutral` z-score each name against its Shenwan
+ (SW2021) level-1 peers on each date instead of the whole cross-section. A
+ CSI 300 benchmark attaches a point-in-time sector tag built from Tushare
+ `index_member_all` membership dates, and only when at least 90% of names
+ carry a label. A name with no label, or a group too small for a statistic,
+ stays NaN; there is no fallback to a whole-market z-score. Membership is
+ point-in-time, but the SW2021 taxonomy itself is applied retroactively, and
+ each factor's notes say so. With #1787 and #1788 the registry holds 478
+ factors, 20 of them fundamental (462 and 4 in 0.1.16).
+
+- **Factor benchmarks at a longer horizon** (#1801, #1802, thanks
+ @shadowinlife).
+ `alpha bench --horizon N` (1 to 252, also on the tool and MCP wrapper)
+ measures IC against N-bar forward returns, sampled without overlap and
+ anchored at the end of the panel; a missing close never bridges the
+ horizon. `horizon=1` is the previous next-bar formula. Result envelopes now
+ state their horizon, sampling and `universe_excluded` list. SEC-fundamental
+ factors requested on a universe other than the S&P 500 are listed as
+ excluded instead of failing the whole run, and `alpha compare` shows them
+ as skipped with the reason. The alive/dead thresholds were calibrated on
+ daily IC and are not re-derived for N > 1.
+
+- **Factor benchmarks feed `fund:*` factors their SEC inputs**. Benchmarks
+ now load each selected factor's declared fundamental fields as
+ point-in-time SEC panels; before, those inputs never reached the benchmark.
+ This needs the S&P 500 universe. The S&P 500 price panel goes through the
+ shared fallback chain and reports requested, fetched and missing
+ instruments and the price sources used.
+
+- **Factor neutralisation and PCA in the quant library** (#1817, thanks
+ @BHhhh-123). `neutralization.neutralize_factor` regresses a factor on named
+ numeric and categorical controls (OLS or WLS) separately at every time on
+ the panel, at any bar frequency. Controls are either all required or
+ selected greedily on coverage, rank and sample size, and every time records
+ what was dropped and the exposure before and after. `pca_factors` fits
+ cross-sectional PCA per time. Neither function fills, pools or resamples
+ rows, and a rank-deficient time is skipped instead of being demeaned. The
+ caller has to supply exposures known at that time. The finishing commit
+ rescales inputs before squaring so very large or very small units neither
+ overflow nor change the answer, keeps covariance PCA in common units, and
+ breaks equal-loading sign ties by input order. Reachable through
+ `quantlib_call` and MCP.
+
+- **Technical indicators can be read as of a date** (#1768, thanks @zeus229).
+ `technical_indicators` accepts an optional `end_date` (strict `YYYY-MM-DD`;
+ anything else is an error) as the acquisition boundary. Every response
+ carries `read_identity`: the boundary mode, requested end date, bar count,
+ serving provenance and a SHA-256 fingerprint of the exact interval, dates,
+ closes and volumes used, so two reads can be shown to have used the same
+ bars.
+
+- **A `claude-cli` provider that runs on the local Claude Code login**
+ (#1804, closes #1800, thanks @alexwan02). Each turn runs one
+ `claude -p --restricted --strict-mcp-config --tools ""` subprocess that only
+ picks the next step (call tools or answer); Vibe-Trading executes the tools
+ itself, so the evidence ledger, the grounding gate and swarm delivery checks
+ run as they do for any other provider. No API key is needed.
+ `CLAUDE_CLI_DENY_TOOL_PREFIXES` (default `trading_,etoro_`) hides tools from
+ the model and `CLAUDE_CLI_BASH_POLICY` (default `python-only`, or `off`)
+ limits bash to `python` scripts and read-only listing commands; refused calls
+ are fed back at most three times. Both are convenience filters, not a
+ security boundary: a Python script can still do anything, and live orders
+ stay behind the mandate gate. Settings lists the models the login can run
+ and offers only the reasoning efforts the chosen model accepts. A decision
+ can take minutes, so the provider emits a waiting signal every second;
+ the idle timeout no longer discards an answer still on its way, the stop
+ button kills the child process, and progress consumers see `llm_waiting`.
+
+- **The backtest tool returns a structured summary** (#1646, closes #1644,
+ thanks @shadowinlife). A successful result carries `summary`: the run
+ card's scalar metrics, `structured_metrics` and `validation`, run metadata,
+ an equity preview of at most 50 points with the first and last bar always
+ kept, and artifact paths including each symbol's `ohlcv_<CODE>.csv`. The
+ metrics no longer reach the model only as JSON inside a `stdout` cut to its
+ last 2,000 characters. A missing or corrupt run card omits the summary and
+ leaves the run successful, as does one whose artifacts resolve outside the
+ run directory. When the envelope would exceed the 10,000-character
+ tool-result cap, logs are dropped first, then the preview is thinned, and
+ anything still omitted is named in the result.
+
+- **`read_run_artifact` reads run artifacts as structured pages** (#1647,
+ closes #1645, thanks @shadowinlife). An agent and MCP tool with three
+ modes: `rows` (offset pages of whole records with `next_offset`),
+ `downsample` (equal-stride sample, endpoints kept) and `meta` (columns, row
+ count, size and the run card's sha256 for the file). Aliases (`equity`,
+ `trades`, `metrics`, `positions`, `target_positions`, `ohlcv:<CODE>`,
+ `run_card`) resolve by a fixed map; any other path is served only if the
+ run card's artifact manifest lists it, and paths or symlinks that leave the
+ run directory are refused. Pages fit the same 10,000-character cap the agent
+ and swarm apply, CSVs are scanned without loading the whole table, and
+ zero-padded codes such as `000001` stay strings. Rows shown this way ground a
+ report only while the file is an unchanged engine-written table; a file the
+ model wrote never does.
+
+- **Grounding checks are declared in one registry, and each validation names
+ the checks that fired** (#1628, #1661, #1691, thanks @he-yufeng). Each
+ check has a stable name, its issue codes, a description, a severity and a
+ phase. Fifteen are declared: the identity, answer and declaration checks
+ from these PRs, plus the per-figure role checks (observed, derived,
+ proposed, cited, count) and the price-provenance checks, which a
+ maintainer follow-up registered. Every attempt recorded in
+ `grounding_evidence.json` carries `fired_checks` and `check_findings`,
+ taken from the predicates that actually returned a finding, so role checks
+ that share `numeric_claim_conflict` do not implicate each other.
+ Predicates and their order moved unchanged, so verdicts are the same.
+ `CONTRIBUTING.md` describes how to add a check with its passing and failing
+ answer pair.
+
+- **The session iteration cap is configurable** (#1833, thanks @sambazhu).
+ `VIBE_TRADING_AGENT_MAX_ITERATIONS` sets how many ReAct iterations a session
+ run (Web UI, API) may take before it stops with "reached max iterations".
+ The default stays 50 and values below 1 are rejected. The no-progress
+ budget and spending limits still apply.
### Changed
-- **An MCP tool result reaches the agent once, not four times** (#1634, thanks
- @zeus229). A structured result used to arrive as `data`, an identical
- `structured_content`, a text block restating it and the joined `text`. Only
- exact copies of `data` are dropped, and only from what the agent reads;
- `MCPServerAdapter.call_tool` still returns every surface to programmatic
- callers, and error or text-only results are unchanged.
-- **Tool-result helpers moved out of `loop.py`** into `src/agent/tool_results.py`
- (#1636, thanks @Jackzigen), the first extraction of the loop split. The
- moved functions are byte-identical and `loop` still exports them; their log
- records now come from the `src.agent.tool_results` logger.
+- **The live runtime scheduler runs on the shared scheduler kernel** (#1899,
+ thanks @shadowinlife). It keeps its public surface, its interval and
+ one-shot job syntax and its sleep-until-the-earliest-deadline wakeups; the
+ mandate gate, kill switch and market-hours layers are unchanged. A second
+ concurrent `stop()` now waits for the first one's teardown instead of
+ returning at once.
+
+- **Broker connector documentation and tests** (#1770, #1793, #1809,
+ closes #1724, thanks @lorenzozanee, @alexwan02 and @he-yufeng). The broker bring-up
+ checklist in `CONTRIBUTING.md` asks for options evidence: write-side
+ argument names and types recorded apart from read shapes, unsupported shapes
+ kept gated, and supported ones tested against mandate caps on premium ×
+ multiplier. The `readonly` field on nine SDK connector configs is documented
+ as what it is: the order methods do not read it, and order access is decided
+ by the connector profile. IBKR's pool reset test no longer depends on test
+ order.
+
+- **Tencent, Eastmoney and AKShare A-share prices move to the multiplicative
+ forward-adjusted basis when they can** (#1551, closes #1541, thanks
+ @he-yufeng). These sources serve dividend-additive qfq series, so returns on
+ them are not total returns. The loaders now also fetch the raw series and,
+ when `qfq - raw` forms valid per-action plateaus, rebuild the series with
+ `(prev_close - dividend) / prev_close` factors and stamp it
+ `split_dividend`. Any inconsistency (misaligned calendars, drifting
+ offsets, implausible dividends, a failed raw fetch) keeps the additive
+ series with its stamp and warning. A window with no corporate action keeps
+ its static stamp, and the series is anchored at the window's end, so
+ absolute levels depend on the requested range while returns do not.
+
+- **mootdx is retired from the default A-share chain and the public canary**
+ (#1730, closes #1729, thanks @he-yufeng). The TDX servers stopped answering
+ mootdx's protocol in 2026-07, and every automatic A-share fetch spent about
+ ten seconds there before falling through. The loader stays registered for
+ explicit `source="mootdx"`. A saved source-order override that still lists
+ it is no longer a permutation of the default chain, so it is ignored with a
+ warning and the default order applies.
+
+- **Every per-loader test suite checks the health lane's OHLCV contract**
+ (#1725, closes #1723, thanks @Jackzigen). `agent/tests/loader_contract.py`
+ holds the column, index, dtype, finiteness and OHLC-ordering checks the
+ loader-health lane applies, and each loader's canonical-frame test calls
+ it, so a drifting source fails its own suite instead of waiting for the
+ weekly run.
+
+- **An MCP tool result reaches the agent once, not up to four times** (#1634,
+ thanks @zeus229). A structured result used to arrive as `data`, an
+ identical `structured_content`, a text block restating it and the joined
+ `text`. Only exact copies of `data` are dropped, and only from what the
+ agent reads; `MCPServerAdapter.call_tool` still returns every surface to
+ programmatic callers, and error or text-only results are unchanged.
+
+- **The system prompt is byte-stable across runs** (#1708, closes #1707,
+ thanks @Jackzigen). The workspace state (the run directory and tool
+ counters) changed the system prompt on every turn and tool call, which
+ invalidated a provider's prefix cache from that point on. The state now
+ rides in the first user message inside an `<agent-state>` envelope, next to
+ `<recalled-memories>`; the token count is the same.
+
+- **`loop.py` is split into modules, first slices** (#1636, #1631, #1662,
+ thanks @Jackzigen, @he-yufeng and @Mikesad). Tool-result helpers moved to
+ `src/agent/tool_results.py`, context compaction and message repair to
+ `src/agent/context_compact.py`, and LLM usage accounting to
+ `src/agent/llm_usage.py`, byte-identical and re-exported from `loop`. Log
+ records from the moved code now come from the `src.agent.tool_results` and
+ `src.agent.llm_usage` loggers. A test that monkeypatches `loop.X` no longer
+ reaches a function that now lives elsewhere; patch the module that holds it.
+
+- **`loop.py` is split into modules, remaining slices** (#1641, #1678, #1791,
+ thanks @Jackzigen). The final-status ladder moved to `run_outcome.py`, the
+ tuning getters and `TOKEN_THRESHOLD` to `tuning.py`, and written-file
+ tracking with its pending-write directive to `write_targets.py`.
+ Maintainer follow-ups moved the tool-call lifecycle (`tool_lifecycle.py`,
+ still logging as `src.agent.loop`), per-turn streaming callbacks
+ (`loop_streaming.py`) and final-answer grounding orchestration
+ (`loop_grounding.py`). `loop.py` went from 3,761 lines at 0.1.16 to 1,628.
+ One stated difference: the `degraded` flag on the end event and result now
+ comes only from success branches, so a run cancelled or stalled between a
+ fallback release and the status decision is no longer marked degraded.
+
+- **Scheduled research, the Brazil data sync and memory consolidation run on
+ one scheduler kernel** (#1893, thanks @shadowinlife). `agent/src/scheduling/`
+ holds the trigger grammar, the next-due arithmetic (pinned by 133 golden
+ vectors recorded before the move) and a tick loop with bounded retry backoff.
+ The scheduled-research executor uses it, and its REST contract is unchanged.
+ The FastAPI lifespan now owns the scheduler, and the unused `cron_service`
+ parameter is gone. The live-trading scheduler was not part of this change.
+ The kernel also adds protected `system:` jobs. They are seeded at startup,
+ a user cannot create an id with that prefix, and REST and CLI refuse to edit
+ or delete one. Both system jobs are opt-in and need
+ `VIBE_TRADING_ENABLE_SCHEDULER=1`:
+ - `system:memory-consolidation` runs daily at 04:00 UTC when
+ `VT_MEMORY_CONSOLIDATION` is on. `VT_MEMORY=on/full` does not turn it on,
+ and it does nothing unless `VT_MEMORY_GC` is also on.
+ - `system:br-data-sync` needs `VIBE_BR_SYNC_ENABLED=1` and replaces
+ `python -m src.br_data daemon`, which now prints a migration notice and
+ exits 0. `VIBE_BR_SYNC_TIME` sets the slot only when the job is first
+ seeded, and the first sync waits for that slot. The ZimaOS sidecar
+ container is gone. Its Compose file leaves both flags off by default
+ (`068ec3bd`; the PR had turned them on).
+
+ Since `068ec3bd`, a source that fails inside the sync fails the attempt, so
+ the scheduler's retry budget applies. Before, the sync was recorded as a
+ success. Before downgrading to a version without system jobs, delete the
+ `system:` rows from `scheduled_research_jobs.json`. Older readers reject
+ those rows and quarantine the whole file.
+
+- **A chat message can be up to 100,000 characters** (#1701, thanks @mminkus).
+ The limit used to be 5,000 characters, while scheduled-run prompts had no
+ limit. A longer message was refused before reaching the model, the Web UI
+ showed only "Failed to send message, please retry", and the 422 response
+ repeated the whole prompt. Since `f6e72428`, the 422 returns a short
+ `message_too_long` body naming the limit, without the prompt. The Web
+ composer checks the length before sending, counting code points as the
+ server does. Goal prompts stay limited to 5,000 characters.
+
+- **Agent chat loads small run previews instead of full runs** (#1853, closes
+ #1852, thanks @alexwan02). `GET /runs/{run_id}/preview` returns only the
+ metrics, the first 1,000 equity points and whether the run deserves a card.
+ Agent chat requests previews for a whole session at once. Before, it fetched
+ each full run one at a time; the PR measured about 70 MB for a session with
+ one backtest card.
+ `GET /runs/{run_id}` now builds and encodes its response off the event loop,
+ so other requests no longer stall; its bytes are unchanged. One run type
+ loses its chat card: a run whose only output was price data that the full
+ response rebuilt online, with no metrics, equity, trades, positions,
+ validation, strategy, price or OHLCV files and no run card.
+
+- **Dependency updates** (#1665, #1666, #1667, #1668, #1692). Python:
+ 46 packages in `requirements-lock.txt` moved, including `langchain` 1.4.3,
+ `langchain-core` 1.6.6, `langchain-openai` 1.6.7, `fastapi` 0.142.2,
+ `starlette` 1.7.0, `uvicorn` 0.54.0, `pyjwt` 2.15.1 and `akshare` 1.19.1.
+ The loader-health environment uses `baostock` 0.9.4. Frontend: React 19.3,
+ Vite 8.3, react-router 8.4 and Vitest 5.0.2, with `@vitest/coverage-v8`
+ moved to 5.0.2 to match.
+ CI: the Docker build actions, `cloudflare/wrangler-action` 4.1.3 and
+ `actions/upload-artifact` 7.0.1. `uuid-utils` stays at 0.17.0 because 1.0.0
+ (#1670, not merged) conflicts with the `uuid-utils<1.0` requirement of
+ `langchain-core` and `langsmith`.
+
+- **Docker image pins move past known advisories**. `requirements-lock.txt`
+ and `requirements-channels-lock.txt`, which the Docker image installs with
+ `--require-hashes`, now pin `aiohttp` 3.14.5, `certifi` 2026.10.19,
+ `urllib3` 2.8.0, `multidict` 6.9.1 and `pillow` 13.0.0 (`ccxt` 4.5.89
+ comes along so the newer `certifi` resolves). A plain `pip install`
+ already resolved newer releases. `mcp` stays below 1.30 for the IBKR OAuth
+ constraint, so CVE-2026-59951 (Streamable HTTP sessions are never
+ reclaimed) remains open for `vibe-trading-mcp --transport http`.
+
+- **For contributors running the suite: symlink tests skip where symlinks are
+ unavailable** (#1803, thanks @hunters1011-ctrl). Three positions/sectors API
+ tests used to fail on Windows hosts that refuse to create symlinks
+ (WinError 1314). They now skip there and still run everywhere else.
+
+- **Channel edits to live-read settings apply without reconnecting** (#1737,
+ closes #1734 and #1736, thanks @shadowinlife). Each adapter declares the
+ settings it reads per message (allowlists, emoji and similar); an edit that
+ changes only those refreshes the running channel in place. The comparison
+ uses validated values, so a full Web form echoing unchanged connection
+ fields does not count as an edit. A refresh copies only the declared fields
+ and keeps connection state resolved at login, such as WeChat's authenticated
+ server address, and Signal refreshes its writable `dm` / `group` policies
+ rather than its computed allowlist. The Web result now says whether the
+ channel was refreshed, reconnected, restarted with the others, or will pick
+ the change up when channels start, in every UI locale. When a hot swap
+ degrades to a full reset, the reason is returned with URL userinfo and old
+ and new secret values removed, and a best-effort notice goes to the changed
+ channel's last chat.
+
+- **Channel status records runtime failures** (#1738, closes #1735, thanks
+ @shadowinlife). A failure to start a channel, to send after the last retry,
+ or to stop the old adapter during a reload is recorded on that channel's
+ status entry as a one-line `error` of at most 200 characters with URL
+ userinfo removed, plus `error_context` (`start`, `send` or `reload_stop`)
+ and `error_at`. The traceback stays in the log. A successful rebuild clears
+ it.
+
+- **New channels are checked against the authoring contract** (#1630, thanks
+ @he-yufeng). A test walks every discovered channel and fails when one leaves
+ a `BaseChannel` abstract unimplemented, has a scalar config key without a
+ field hint, or has a credential-shaped key that would reach the browser
+ unmasked. `CONTRIBUTING.md` gains an "Adding a Channel" recipe.
+
+- **Web UI navigation is grouped and explains each page**. The sidebar groups
+ pages into everyday research, specialized analysis and automation & setup,
+ with plainer names ("Research assistant", "Backtest reports", "Trading
+ status"). Every page except the chat has a collapsible "How to use" panel,
+ and the welcome screen offers three editable starter tasks (research a
+ stock, test a strategy, review holdings). Math and code highlighting load
+ only for completed answers. API requests time out after 120 seconds
+ (`VITE_API_TIMEOUT_MS` at build time; 15 seconds for the session list) and
+ say whether a timed-out write may still be processing; writes are never
+ retried automatically. Session-list, rename and delete failures are shown
+ instead of ignored.
+
+- **Analysis pages keep their work across navigation**. Alpha Zoo, Correlation
+ and Options Lab keep their inputs for the browser session. An Alpha Zoo
+ evaluation runs as a server job the page can reconnect to after leaving or
+ reloading; a resubmitted request with the same id returns the existing job
+ rather than starting another, and a job lost to a server restart says so.
+ Before running, the page states each universe's data requirements: CSI 300
+ needs a Tushare token and permissions, S&P 500 uses public data, and
+ BTC-USDT is refused as a single asset.
+
+- **The runtime page lists connectors by status** (#1845, thanks @alexwan02).
+ Connected connectors come first, then those needing attention, then the
+ rest; peers keep the backend's alphabetical order, so the 15-second poll
+ never reshuffles them. Only the order changes. The page header no longer
+ calls the page read-only, since model cadence and spending limits can be
+ edited there while a runner is stopped.
+
+- **Report rendering dependencies** (#1680, #1683, #1709, thanks @zeus229 and
+ @he-yufeng). The base install now requires `mistune`, `nh3` (previously only
+ in extras), `pypdf`, `reportlab`, `arabic-reshaper` and `python-bidi`. The
+ Docker image adds `fonts-noto-core` and `fonts-noto-cjk` so WeasyPrint
+ renders CJK and Arabic reports.
+
+- **Update the Windows desktop PyJWT pin to 2.15.1**. This matches the main
+ lock and includes the fix for
+ [GHSA-ffc3-869f-jxw9](https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffc3-869f-jxw9).
+ Artifact hashes are verified against PyPI; other Windows dependency pins
+ stay unchanged.
### Fixed
-- **Channel settings and delivery** (#1681, #1508). Unchanged nullable form
- values no longer block saving or testing. Email authentication requires a
- configured receiving authserv-id and sender-domain alignment; comments and
- duplicate headers cannot pass as authenticated results. The guided setup
- exposes the trust setting in all nine interface languages.
-- **Research continuity and output access** (#1682, #1688, #1679, #1676,
- #1639). Memory snippets retain real spacing and match markers, goal evidence
- preserves exact tool-call provenance, export refusals explain allowed-root
- configuration, macro results report both observation and delivery limits,
- and skill-file deletion follows resolved auxiliary-directory boundaries.
-- **Risk and portfolio mathematics** (#1659, #1658, #1657, #1656, #1653).
- Attribution rejects non-finite inputs, VaR transitions preserve missing
- observations, implied volatility meets its price tolerance, monthly risk
- requests obtain sufficient default history, and turnover prices signed
- reversals plus cash liquidation and reentry.
-- **Local data, updates and broker restrictions** (#1651, #1655, #1581,
- #1585). Local ranges include the entire end day, CLI updates retain the VCS
- installation source, SDK position-pricing fixes retain contributor ancestry,
- and unsupported Robinhood option orders remain gated even when remotely
- annotated read-only. Options execution remains unimplemented (#1435).
-
-- **Strategy-file writes no longer crash on missing model provenance fields**
- (#1673, closes #1672, thanks @tomaszkubiak-courses). Each writing turn records
- the provider-reported model or falls back to the configured model.
-- **Monte Carlo path metrics include starting capital** (#1664, thanks
- @MetaAviator). Both actual and shuffled paths include the first trade's
- return and loss against the initial high-water mark when computing Sharpe
- and maximum drawdown.
-- **Report audits retain accounting negatives and their units** (#1663,
- closes #1660, thanks @he-yufeng). ASCII and fullwidth parentheses, inner or
- outer units and currency marks retain the negative sign. Malformed pairs
- and non-finite or oversized values are rejected without losing the labels
- of subsequent values on the same line.
-- **Indonesian tool documentation matches the registry** (#1671, thanks
- @he-yufeng), including `get_southbound_flow` and the measured tool counts.
+#### The grounding gate
+
+- **Indexed and container field refs resolve, and a miss lists the refs that
+ would work** (#1633, thanks @zeus229). `a.0.b` and `a[0].b` now name the
+ same evidence element; an unindexed field still selects none. When a
+ `call::field` ref matches nothing, the correction lists exact
+ `call_id::path[i]` refs, value matches first. A ref naming a container lists
+ its numeric descendants that hold the figure's value, and a tool name shared
+ by several calls ranks those calls by value match, most recent first.
+ These are hints only: no hint authorizes a value, and a maintainer
+ follow-up keeps them to the figure's own instrument and to the element an
+ indexed ref names.
+
+- **A ref naming no call of the session gets real refs to copy** (#1638,
+ thanks @zeus229). A `scope::field` ref whose scope names no call, tool or
+ run stays rejected, now with the `unknown_call_id` reason and up to five
+ exact `call_id::field` candidates. The system prompt tells the model to copy
+ `tool_call_id` verbatim instead of inventing a short alias. A maintainer
+ follow-up applies the same instrument and figure-kind limits a real ref
+ has, so a candidate is never one that would be refused.
+
+- **A correction keeps the figures that already passed** (#1702, thanks
+ @he-yufeng). The correction prompt listed only what failed, and a model
+ facing 65 issues rewrote whole numeric sections as prose, deleting valid
+ Risk X-Ray values and a benchmark table that had no issue. It now also
+ lists up to 24 measured figures that checked clean and tells the model to
+ keep them as written. A value that fails anywhere in the draft is not
+ listed, and bare integers never are. When more than 24 issues exist, the
+ prompt says how many are not shown and that unlisted figures are not
+ assumed to pass.
+
+- **Only the engine's own output grounds a backtest report** (#1685, thanks
+ @cgycorey). The active run's `metrics.csv` could credit an earlier run's
+ Sharpe to the current call; that archived copy now counts only when its
+ manifest names the full directory the call declared and the exact call id,
+ and a model-written manifest is ignored. A `metrics.csv` or `metrics.json`
+ the model wrote is no longer engine evidence, a date cell with an explicit
+ year must match that year, and a resolver step that failed, was refused or
+ came back empty no longer erases a locked or conflicting identity.
+
+- **A derived figure's ref must name evidence that exists** (#1835, #1837,
+ thanks @zeus229). A comma- or semicolon-separated ref is resolved member by
+ member, and an empty or unknown member fails with `no_evidence` instead of
+ falling back to every value in the session. A single ref that names no call,
+ tool, field, artifact or observed symbol is refused the same way rather
+ than borrowing a coincidentally equal value. Unattributed multi-symbol
+ arithmetic keeps its `no_symbol` diagnostic.
+
+- **Derived notes after a label parse, and process metadata is not evidence**
+ (#1728, #1767, thanks @zeus229). A note such as `scenario result: 125 /
+ 10000 * 100` was not evaluable because only the full-width `:` was a
+ separator; the ASCII `:` now is too. Top-level `exit_code`, `returncode`,
+ `elapsed_seconds` and `duration_seconds` of a code-running tool's result are
+ no longer recorded as observed values, so a backtest's runtime cannot
+ ground a figure.
+
+- **Percent-named fields are read as percentage points** (#1823, closes #1820,
+ thanks @he-yufeng). A-share rows carry `changepercent` values that are
+ already points, so `0.52 - 1.41` refused the correct "-0.89%" and passed
+ "-89%". When every data operand anchors only to fields named `percent`,
+ `pct` or ending in `%`, the result is read in points; an operand whose
+ value also appears under a plain field keeps the fraction reading. A
+ maintainer follow-up converts the operands before evaluating, so ratios and
+ compound factors of two point values come out right.
+
+- **Every data operand of a derived figure must be observed.** Only added or
+ subtracted terms were checked, so a numerator or denominator the session
+ never fetched could pass. A chosen multiplier or divisor (a discount factor,
+ a weight) now needs a `count` declaration and its value and label on the
+ same visible line of the answer. Literal 1 and square or cube exponents are
+ structural, and an explicit trailing `*100` on a percent claim is read as a
+ unit conversion without exempting any other operand.
+
+- **Instrument identity survives matrices and ticker-keyed results** (#1850,
+ #1851, thanks @zeus229). In a square Markdown matrix with an empty top-left
+ header (a correlation table), each row's symbol is taken from its first
+ cell, bold removed, when the row and column symbol sets are complete,
+ unique and equal; anything else stays unscoped. A result keyed by
+ instrument (`risk_contribution_pct.ABC.US`) keeps each value's instrument
+ and exact ref, so the same number cannot ground a claim about another
+ instrument. List-indexed scalars such as `positions[0].contribution_pct`
+ keep their indexed-ref meaning.
+
+- **A figure that names its currency must match evidence in that currency**
+ (#1905, thanks @ThreeTima). An ISO code or an unambiguous mark (`€`, `£`,
+ `₩`, `₹`, 人民币, 美元, 円) fixes the figure's currency for observed,
+ derived and proposed checks, and SEC XBRL amounts carry their declared unit
+ (CHF, NZD, BRL, ARS and VND included). A scaled amount such as `1.2B USD`
+ keeps its code. Bare `$` and `¥` stay ambiguous and match any currency.
+
+#### Agent loop, providers and swarm
+
+- **A restored read-only result stays visible until the model has seen it**
+ (#1635, thanks @zeus229). Compaction could clear a result replayed from
+ the run cache before the next model request carried it, so the restore was
+ wasted. Replayed results are now held back from microcompaction, text
+ collapse and the summary layer until one successful model request has
+ included them.
+
+- **Writing a strategy file no longer fails with `AttributeError`** (#1673,
+ closes #1672, thanks @tomaszkubiak-courses). After the model-provenance
+ writer landed, every run that wrote a strategy file crashed reading
+ `_active_model_id`. The loop now sets it from the runtime snapshot and,
+ before each batch of tool calls, from the provider-reported model, falling
+ back to the configured one. This regression never reached a release.
+
+- **Codex tools may omit optional arguments** (#1785, thanks @zeus229). The
+ Codex Responses endpoint treats a tool without an explicit `strict` as
+ strict, so the model filled every optional property, sending `""` for an
+ optional string. Tool schemas now go out with `strict: false`.
+
+- **Skills load and save under the names they advertise** (#1797, closes
+ #1795; #1858, closes #1855; thanks @Shizoqua). Two section headings that
+ differ only by case could not be loaded, and the path the error suggested
+ repeated the error; an exact-case match is now tried first. Saving a skill
+ whose own frontmatter carried another name left it unreachable under its
+ slug and let each lookup append a duplicate; the `name:` line is now
+ rewritten to the slug on every save, and a fallback read never duplicates
+ a loaded skill.
+
+- **Research-goal evidence keeps its provenance inside the run** (#1688;
+ #1895, closes #1894; thanks @zeus229 and @Shizoqua). The goal tool and
+ skill tell the model to copy a result's `tool_call_id` verbatim and never
+ to use a ledger `evidence_id` (`ev_...`) as a grounding ref;
+ `tool_call_id` stays optional for manual evidence. An absolute artifact
+ path outside the current run directory is now rejected, as a relative
+ escape already was, instead of being verified against another run's file.
+
+- **Each swarm task gets its own artifact directory** (#1455, thanks
+ @Shizoqua). Artifacts were keyed by agent alone, so when one agent ran
+ several tasks, a later task could read an earlier task's `report.md` back
+ as its own output. They now live under `artifacts/<agent>/<task>/`, and
+ earlier tasks' reports, summaries and message logs stay in place;
+ sequential and parallel runs are covered through the real runtime.
+
+- **Swarm presets take their variables from the prompt** (#1674, thanks
+ @Mikesad). Seven presets ran on fixed defaults whatever was asked: a copper
+ request ran every commodity worker on gold, a bearish options request used
+ a neutral view, and crypto, factor, event, fund and macro prompts were
+ replaced the same way. These variables are now extracted from the prompt,
+ an explicit duration ("3 months", "两周") is used as stated, and
+ `run_swarm` accepts a `variables` object whose values override extraction.
+ Prompts that match nothing keep the old defaults.
+
+- **A half-written last line no longer breaks a swarm event stream** (#1908,
+ thanks @rudycelekli). `read_events` raised on an `events.jsonl` whose final
+ line was still being appended or was cut short by a crash, which killed the
+ SSE stream and run recovery. An unterminated last line that is not yet
+ valid JSON, including a cut UTF-8 sequence, is skipped until the next poll;
+ a complete invalid line still raises.
+
+#### Market data and loaders
+
+- **`get_northbound_flow` stops returning an empty success off a dead feed**
+ (#1484, closes #1481, thanks @shadowinlife). Eastmoney's northbound
+ endpoint still answers but has carried no net flow since HKEX's 2024
+ disclosure change. When both its realtime and history sides are empty or
+ all zero, the tool now uses the Tushare fallback or returns `ok: false`
+ naming both failures. The fallback no longer multiplies every row by 100:
+ values stay in million CNY, rows before 2024-08-19 are net buy, and later
+ rows, which are turnover, come back under `turnover_*` fields with their
+ net-flow fields `null`.
+
+- **Daily fund-flow fallback covers empty responses and labels its source**
+ (#1954). An A-share daily request now tries Tushare when Eastmoney returns
+ no usable rows, not only when the request or symbol resolution fails. Each
+ symbol names the provider that served it, and a batch served by both
+ reports `mixed`. Tushare's `main` is now large plus super-large net flow;
+ `net_mf_amount`, which is total net flow, is returned separately as
+ `net_total`. A missing or non-finite buy or sell amount stays `null`
+ instead of becoming zero, and the result states its methodology because
+ provider bucket definitions differ. Minute requests never fall back to
+ daily data, and a missing token or permission remains a per-symbol error.
+
+- **A blocked Stooq costs one request** (#1637, #1640, closes #1648, thanks
+ @cgycorey). Once Stooq refuses the client, the loader stops requesting
+ further symbols instead of only silencing its warning, so the fallback
+ chain moves on at once. The refusal is detected from the response before
+ parsing: the proof-of-work page, a 403 or 429, or the plain-text daily-hits
+ message. Concurrent callers serialize on the check, and the latch lasts 300
+ seconds instead of the life of the process. A 5xx is still a per-symbol
+ failure and `N/D` is still "no data".
+
+- **FMP and Tiingo series never mix adjusted and raw prices** (#1684, #1689,
+ thanks @cgycorey and @he-yufeng). The price basis is decided once per
+ response from bars that can actually be emitted. A bar whose adjusted
+ prices are missing or invalid is dropped, with a warning, rather than
+ filled with raw prices beside adjusted neighbours. Bars with unparseable
+ dates or non-positive prices are dropped too. Each frame carries its actual
+ `adjustment` stamp, the loader cache keeps it (the cache format version
+ was raised, so older entries are refetched), and tests pin the stamp on both paths and through a
+ warm cache hit.
+
+- **Local data files load every bar they should** (#1651, #1825, #1819,
+ thanks @rudycelekli and @he-yufeng). The end-date filter is half-open at the
+ next midnight, so bars stamped in the last fractional second of the end day
+ are no longer dropped. A Parquet file whose dates live on a
+ `DatetimeIndex` loads with or without a configured `date_format`; before,
+ setting a format silently dropped every bar. An explicitly mapped date
+ column takes precedence over the index, which also removes a crash when
+ both share a name.
+
+- **The opt-in loader cache follows changes to local sources** (#1650,
+ #1747, #1879, thanks @rudycelekli). Local cache entries are keyed by the
+ file, query, date format and column mapping as well as the range, so
+ repointing a symbol no longer serves the previous source's bars. Correcting
+ or deleting a CSV, Parquet or DuckDB file (including a DuckDB WAL change)
+ refreshes the entry on the next fetch, reusing the same cache paths. Cache
+ metadata that is missing, malformed or unusable is a cache miss that the
+ loader repairs, not an exception. An edit that preserves every observed
+ filesystem identity field is still not detected.
+
+- **The Longbridge loader works on SDK 4.0 and later** (#1805, #1847, thanks
+ @alexwan02). SDK 4 refuses `Config(app_key, app_secret, access_token)`, so
+ every Longbridge fetch failed and auto mode fell through even with valid
+ credentials. The loader and the trading connector now share one helper that
+ uses `Config.from_apikey` when the SDK has it, and the initialization error
+ names the exception type. One loader test covers both SDK shapes through
+ windowing and caching.
+
+- **BaoStock 0.9.4 connections keep their timeout.** The bounded connection
+ wrapper accepts the new API-key argument and routes `bs-` keys to the VIP
+ host while staying compatible with 0.9.3.
+
+- **Data tools honour their row limits** (#1676, #1927, thanks @cgycorey and
+ @rudycelekli). `get_macro_series` reports `observations_available`,
+ `truncated`, the effective `limit` and a hint when it caps a series, and
+ trims whole observations to fit the tool-result budget so `count` is what
+ was delivered. A FRED response covering only part of the requested window
+ is an error. `get_fund_nav` clamps an explicit `limit=0` to one row instead
+ of returning the 2,000-row default.
+
+- **Symbol suffixes resolve to the right exchange** (#1907, #1914, thanks
+ @rudycelekli). `get_etf_holdings` treats Yahoo's `510050.SS` like
+ `510050.SH` instead of sending it down the US/SEC path. Symbol search labels
+ Beijing codes (`920xxx` and legacy `4xxxxx` / `8xxxxx`) `.BJ` instead of
+ `.SZ`, and the Tushare fallback no longer maps `920xxx` to `.SH`.
+
+- **RSSHub event enrichment keeps calendar dates and share classes** (#1829,
+ #1830, thanks @rudycelekli). A timezone-aware `as_of` no longer raises, and
+ aware daily bar labels keep their displayed date instead of shifting to the
+ UTC day. Configured `bare` and `exchange_prefix` routes split only the final
+ venue suffix, so `BRK.B.US` requests `BRK.B` rather than `BRK`. Intraday
+ publication instants are not converted between markets.
+
+- **SEC quarterly statements derive fiscal Q4 only for currency flows**
+ (#1917, thanks @rudycelekli). `period="quarter"` built Q4 as FY minus three
+ quarters for every concept, which produced negative weighted-average share
+ counts and EPS figures no filing reports. Q4 is now derived only for
+ three-letter currency units that match across all four periods; share
+ counts, per-share values and dimensionless ratios are left out of the
+ derived row.
+
+- **Correlation matches the data it compares** (#1710, #1711, #1746, #1933,
+ closes #1932, thanks @rudycelekli, @cgycorey and @Jackzigen). Daily
+ histories from sources in different time zones are joined on each source's
+ local calendar date in both correlation and regime analysis. Equity tickers
+ that end like a quote asset (`ABNB`) are no longer routed to crypto
+ sources. `700`, `0700`, `700.HK` and `00700.HK` are one instrument for the
+ duplicate-asset guard, while five-digit counters such as `80700.HK` stay
+ distinct. A pair whose correlation is undefined (a zero-variance leg) is
+ `null` from `/correlation` and `/correlation/analysis`, not 0.0, and the
+ heatmap shows a muted dash with an explanation.
+
+- **Correlation analysis reports per-symbol coverage.**
+ `/correlation/analysis` computes the matrix and the optional regime timeline
+ from one price snapshot, rejects two spellings of the same asset before any
+ fetch, and returns which symbols are missing with every source tried and why
+ it failed. The fetch honours saved source-order overrides and tries Yahoo
+ first for `^`, `=F` and `=X` identifiers.
+
+#### Backtest runner, engines and metrics
-- **Carhart momentum no longer reads today's price** (#1578, thanks
- @Shizoqua). `academic_carhart_mom` computed the 12-month return minus the
- 1-month return, which moves with today's close — the opposite of skipping
- the most recent month. It is now the return from 252 to 21 trading days
- ago, pinned by a test that moves every close in the skipped month and
- requires the value to stay put.
- **Profit factor is undefined when no trade lost** (#1602, thanks
- @davidalmeida90). With no losing trade, `profit_factor` and
- `profit_loss_ratio` were reported as 0.0, which ranked a run that never lost
- below every other run. They are now `None` — an empty `metrics.csv` cell and
- `null` in JSON — in both the daily metrics and the options engine; a run
- with no closed trade keeps 0.0.
-- **Stooq's challenge page stops every later request, not just the warning**
- (#1637, thanks @cgycorey). Once Stooq answers with its anti-bot page, the
- loader returns no data for every remaining symbol in the process without
- another throttled request, so the fallback chain moves on at once. A new
- process probes again.
+ @davidalmeida90). `profit_factor` and `profit_loss_ratio` were 0.0 for a
+ run whose trades all won, which ranked it below every run with a loss.
+ Both are now `None` (an empty `metrics.csv` cell, `null` in JSON) in the
+ daily metrics and the options engine. A run with no closed trade, or only
+ losing trades, keeps 0.0.
+
+- **Sortino uses zero-target downside deviation over every period** (#1693,
+ #1727, thanks @MetaAviator). The denominator was the sample standard
+ deviation of the losing returns, so equal losses looked riskless and a
+ single loss left the ratio huge or undefined. It is now the root mean square
+ of negative returns divided by the full return count, in the shared metrics
+ and in the options engine.
+
+- **The first bar's result counts against initial capital everywhere**
+ (#1750, #1818, #1844, closes #1749 and #1843, thanks @he-yufeng and
+ @DrDLyuan). The options engine's drawdown peak and the `drawdown` column in
+ `artifacts/equity.csv` start from initial cash, so a first-bar loss shows up
+ and the column agrees with `max_drawdown`. Per-bar returns measure the first
+ bar from initial cash too, so Sharpe and Sortino see it, the `ret` column
+ compounds to `total_return`, and bootstrap validation uses the same series.
+
+- **Calmar stays finite and zero-bar trades count in holding periods**
+ (#1901, #1876, thanks @Bortlesboat and @MetaAviator). Calmar falls back to
+ 0.0 when an overflowed annual return makes it non-finite, like the other
+ ratios; `annual_return` itself is unchanged. Completed same-bar trades now
+ count in the average holding period. `avg_holding_days` remains the
+ engine's bar-based measure, not calendar days.
+
+- **Options legs are priced on the run's bar cadence** (#1753, thanks
+ @remote-controlled-man). Historical volatility was always annualised at 252
+ bars a year, so a crypto or hourly options run priced its legs on one
+ cadence and reported metrics on another. Pricing now receives the run's
+ factor. A cross-market run estimates each bar's cadence from the intervals
+ observed up to that bar, so extending a run cannot change earlier option
+ prices.
+
+- **`trades.csv` reports the opening fill and keeps break-even exits**
+ (#1779, #1780, thanks @MetaAviator and @alexwan02). Each entry and exit row
+ carries an `event` column. The entry row shows the price and size of the
+ fill that opened the position, not the weighted cost after later scale-ins;
+ those stay in `fills.jsonl`. Validation and run-artifact readers pick exits
+ by the event column, so zero-PnL exits are no longer dropped. Unmarked
+ older files keep the previous convention.
+
+- **Benchmarks follow the symbol's exchange and the run's source** (#1712,
+ #1781, thanks @rudycelekli and @alexwan02). `.SH`, `.SS`, `.SZ` and `.BJ`
+ symbols take the CSI 300 benchmark whatever the source; local, BaoStock and
+ yfinance runs could fall through to SPY. A source that forbids network
+ fallback, `local` included, fetches its benchmark through that same loader.
+ When the declared benchmark cannot be resolved, the run card says that
+ benchmark-relative metrics were graded against the equal-weight basket.
+
+- **Crypto spellings get crypto rules** (#1740, #1748, #1861, #1862, #1864,
+ closes #1751 and #1863, thanks @he-yufeng, @rudycelekli and @Jackzigen).
+ `BTC/USD`, `ETH/USD` and four other known slash-USD pairs are classified
+ before the forex rule, in backtests, correlation and Agent/MCP data routing,
+ while `XAU/USD` stays forex. Digit-leading bases (`1INCH-USDT`,
+ `1000PEPE-USDT`), separated USDC and BUSD quotes (`BTC-USDC`, `ETH/USDC`)
+ and `BASE-USDT-PERP` perpetuals no longer fall through to A-share rules,
+ where board-lot rounding rejected every order. Signal alignment uses the
+ same classification. The same CI repair reads the alpha-readiness Tushare
+ token through the config layer and treats a whitespace-only token as unset.
+
+- **A-share price limits cover every board's codes** (#1913, thanks
+ @rudycelekli). ChiNext `301xxx` and STAR `689xxx` codes get the ±20% band,
+ and Beijing `920xxx` and legacy `4xxxxx` / `8xxxxx` codes get ±30%; they had
+ fallen back to ±10% and blocked legal fills. ST status and listing-day
+ exemptions still cannot be inferred from a code.
+
+- **Contract specs for Yahoo forex pairs and ICE softs** (#1930, #1944,
+ thanks @wavebyrd). `EURUSD=X`-style symbols, and `.FX` in any case, are
+ normalised before the spread and swap tables are read, so they stop paying
+ the default 2-pip spread and swap. Coffee, sugar and cotton multipliers are
+ dollars per cent (375, 1120, 500), like the grains; they were full contract
+ pounds, a hundred times too large.
+
+- **Backtests warn about config keys that nothing reads** (#1935, #1947,
+ thanks @he-yufeng and @rudycelekli). A key no reader on the backtest path
+ recognises (`initial_capital` instead of `initial_cash`) adds a run-card
+ warning with a did-you-mean hint. A key that only another engine reads,
+ such as `commission_rate` on a crypto run that uses `maker_rate` and
+ `taker_rate`, is named as unused by the selected engine, including the
+ sub-engines of a mixed-market run. Runs still proceed. This resolves #1934.
+
+#### Validation and run artifacts
+
+- **Monte Carlo path metrics start from initial capital** (#1664, thanks
+ @MetaAviator). Actual and shuffled paths both begin at the starting
+ capital, so the first trade's return and loss enter Sharpe and the
+ drawdown high-water mark. Monte Carlo statistics and p-values change
+ accordingly; the chart payload is unchanged.
+
+- **Validation stops inventing returns across missing equity** (#1754,
+ thanks @MetaAviator). Bootstrap and walk-forward returns use only observed
+ adjacent equity values, so a gap no longer becomes a flat return plus one
+ jump. A walk-forward window without observed endpoints or any adjacent
+ return reports an error instead of a zero score.
+
+- **Standalone revalidation reproduces the original run's settings**
+ (#1815, #1915, #1842, thanks @MetaAviator and @rudycelekli).
+ `python -m backtest.validation <run_dir>` uses the saved Monte Carlo,
+ bootstrap and walk-forward parameters and seeds instead of defaults, still
+ running all three tools. The runner records its annualisation factor in
+ `run_card.json` and revalidation reuses it, including `null` for calendar
+ annualisation; older cards reconstruct it from the config and equity
+ timestamps. Reloaded trades recover their entry dates from marked
+ entry/exit pairs, so walk-forward windows group them as the original run
+ did.
+
+#### Quant Library and analysis tools
+
+- **Brinson attribution reads the book, not its liquidation** (#1782, thanks
+ @alexwan02). A run closes every position on its last bar, so the final
+ `positions.csv` row is all zeros. When it is, attribution uses the row
+ before it and the report notes that row's timestamp. It steps back only
+ one row: a book already flat before the close is still reported as flat.
+
+- **Attribution annualises with the run's recorded rate** (#1948, thanks
+ @rudycelekli). When the run card records `annualisation.bars_per_year`,
+ attribution uses it instead of re-deriving the rate from the requested
+ interval, which disagreed for crypto's 365-day year and any run whose
+ served bar spacing differed from the request.
+
+- **Attribution inputs and Carino linking** (#1659, #1943, thanks
+ @rudycelekli). `brinson_fachler` and `carino_factor` reject non-finite
+ weights, returns and tolerances by name instead of returning NaN effects.
+ Carino's near-coincidence branch now compares the two returns relative to
+ the remaining wealth. Two returns close to -100% can differ by a tiny
+ absolute amount while their wealth relatives differ severalfold, and
+ those used to take the limit branch.
+
+- **VaR backtests no longer join observations across a gap** (#1658, thanks
+ @rudycelekli). A pair dropped for a non-finite return or forecast still
+ leaves the coverage counts, and now also breaks the Christoffersen
+ independence transitions. The breaches either side of it are no longer
+ counted as consecutive days.
+
+- **Implied volatility meets its price tolerance** (#1657, thanks
+ @rudycelekli). The bracketing fallback passed `tol`, a price tolerance, to
+ `brentq` as a volatility tolerance. It now solves tightly and returns NaN
+ unless the repriced option is within `tol` of the market price, the same
+ check the Newton path applies.
+
+- **Turnover-aware optimiser and min-weight floor** (#1652, #1653, #1885,
+ thanks @rudycelekli). Turnover is measured on signed holdings: reversing a
+ 50% long into a 50% short counts 0.5, both the close and the reopen.
+ Allocations kept without optimisation (all cash, short history, a failed
+ fit) now update the prior holdings the next penalty is measured against.
+ A single-asset book is checked against its per-name and group caps and
+ raises when the allocation exceeds them or is not finite. When a
+ `min_weight` floor cannot be funded by the names above it, the date falls
+ back to equal weights over the active names, keeping their signs and gross
+ exposure, instead of pushing a funding name through zero.
+
+- **Risk X-ray returns and downside deviation** (#1717, #1875, thanks
+ @rudycelekli). Returns are computed per symbol before incomplete dates are
+ dropped, so a missing close no longer becomes a multi-bar move booked as
+ one period. Downside deviation is the zero-target root mean square over all
+ bars, as the backtest's Sortino computes it. The standard deviation of the
+ losing bars alone read zero for a book that lost 1% on every losing bar.
+
+- **Missing observations stay missing in time-series and validation helpers**
+ (#1713, #1714, #1715, thanks @rudycelekli). `fit_ornstein_uhlenbeck` builds
+ lag pairs before dropping missing values, so a gap is no longer fitted as a
+ one-step transition. `purged_walk_forward_splits` skips a fold whose
+ training set purging has emptied, as its contract states. Regime edge
+ density stays unknown on a bar where any pair's correlation is undefined
+ (a constant or missing series) instead of counting that pair as no edge.
+
+- **Grouped purged K-fold purges groups whose labels reach the test block**
+ (#1700, thanks @Shizoqua). `group_purged_kfold_splits` takes
+ `label_end_times`. An earlier group whose labels resolve inside the test
+ block is purged, as is a later group inside the test labels' horizon, and
+ the embargo starts after the furthest test label ends. The finishing commit
+ made the argument keyword-only, so existing positional calls keep their
+ meaning. It also requires contiguous, chronological groups when the
+ argument is given. Without it, only the embargo applies, as before.
+
+- **Event-study fitting stays before the event** (#1920, thanks
+ @rudycelekli). For an event window that opens after the event, for example
+ `(1, 5)`, the estimation window used to end at the window's start and so
+ took in the event day. With `estimation_gap=0` it also took in the days in
+ between. It now ends before both the event and the window, for every
+ normal-return model.
+
+- **Credit, stochastic-volatility and factor-model inputs** (#1716, #1718,
+ #1719, #1928, thanks @rudycelekli). `cds_price` keeps premium dates on the
+ requested frequency and prices a final stub for a fractional maturity.
+ Before, it spread the periods evenly over the tenor.
+ `portfolio_style_exposure` drops an asset with any missing factor exposure
+ and reports its weight as `unmatched_weight`, instead of summing NaN into a
+ zero exposure. `heston_price` rejects non-finite parameters and a
+ nonpositive integration limit before integrating.
+ `factor_risk_decomposition` rejects a specific variance below -1e-8 instead
+ of clipping it to zero idiosyncratic risk.
+
+- **Non-finite bond and Sharpe-summary inputs are refused by name** (#1824,
+ #1821, #1822, thanks @he-yufeng and @rudycelekli). An infinite coupon
+ frequency used to price any bullet bond near par, and an on-coupon-date
+ shortcut in `accrued_interest` turned a NaN face into 0.0. `ytm_solve`
+ checks its price and bracket, `key_rate_duration` its tenors and `dv01` its
+ par amount. `probabilistic_sharpe_ratio` checks all five of its inputs; a
+ NaN benchmark used to come back as NaN "confidence". `expected_maximum_sharpe`
+ refuses NaN or infinite trial counts. #1824 supersedes the narrower reports
+ in #1821 and #1822.
+
+- **Fund math and cash-flow ingestion refuse ambiguous inputs** (#1732,
+ #1739, #1919, thanks @he-yufeng, @Shizoqua and @rudycelekli).
+ `american_waterfall` refuses a bare `as_of` date, which it used to ignore
+ silently; per-deal dates are a mapping. A NaN preferred rate used to hand
+ every profit dollar to the LP as preferred return, and the result still
+ reconciled. Hurdle and waterfall amounts must now be finite. Cash-flow and
+ entity-panel ingestion refuse a single dot followed by exactly three digits
+ (`12.000` is 12 in a US export and 12000 in a European one) unless
+ `decimal_separator` is given. Scientific notation such as `1.2e5` is still
+ accepted.
+
+- **Drawdown duration and three-statement tolerance** (#1784, #1786, thanks
+ @rudycelekli and @remote-controlled-man). `max_drawdown_analysis` dates the
+ peak at the latest visit to the high-water mark before the trough, so
+ revisiting a peak starts a new underwater period. `project_three_statement`
+ applies the caller's `balance_tolerance` inside each projected period too;
+ a widened tolerance used to fail there at the module default.
+
+- **Portfolio-weight and copula numerics** (#1694, #1695, thanks
+ @rudycelekli). Inverse-variance weights no longer overflow on very small
+ positive variances. Inverse-variance weights and HRP reject a non-finite
+ diagonal, and HRP now checks a single-asset matrix as well. A Gaussian
+ copula fitted from a Kendall's tau that rounds to correlation ±1 is nudged
+ back inside the open interval, and its CDF accepts the
+ near-singular covariance.
+
+- **`quantlib_call`, VPIN and options-payoff results** (#1826, #1836, #1897,
+ thanks @rudycelekli). The 5,000-value result budget is enforced while
+ encoding. Before, a long series past the budget still emitted one
+ `<truncated>` string per remaining element. VPIN completes a bucket at a
+ relative tolerance, so scaling volume units no longer changes which buckets
+ count as full. `options_payoff` returns an error envelope when extreme
+ inputs overflow to infinity instead of raising.
+
+- **Report audit keeps the sign of a value** (#1663, #1654, thanks
+ @he-yufeng and @rudycelekli). Accounting parentheses, ASCII or full-width,
+ are negative: `(25.3)亿` is read as -25.3 亿 with its unit, where it used
+ to read as +25.3 with no unit. `-25M`, `−25M`, `-$25M` and `$-25M` keep
+ their minus sign, and `(-25)` is still a negative. In prose a bracketed number
+ without a unit or currency, such as `(2024)`, is skipped as a year.
+ Mismatched brackets, a unit both inside and outside, and non-finite or
+ larger-than-1e15 values are rejected. Reported in #1660.
+
+- **Financial-rigor checks stop reading undefined as agreement** (#1883,
+ #1906, #1921, thanks @rudycelekli). A zero reported market cap matches
+ only a zero product, and against a zero cross-source median only an exact
+ zero agrees. Either way the percent deviation is `null`. A negative median
+ is compared on its magnitude. Before, these read as a 0% deviation. An
+ explicit `tolerance_pct=0` or `years=0` is honoured instead of falling
+ back to 2% and 3 years. Three-scenario upside is `null` at a nonpositive
+ price, where it used to report 0% ("fairly valued"), and negative `years`
+ is an error.
+
+- **Swing-based skill signals no longer fire before the swing is known**
+ (#1873, thanks @rudycelekli). The bundled Elliott-wave and harmonic example
+ engines stamped a signal on the swing bar itself, which is only confirmed
+ `swing_window` bars later. They now replay the swings in order and stamp
+ each signal on its confirmation bar. The optional `pyharmonics` path is
+ unchanged.
+
+- **Pattern tool extrema and arguments** (#1882, #1923, thanks
+ @rudycelekli). A flat top or bottom spanning adjacent bars is one extremum,
+ reported at its first bar. A missing `run_dir`, a list of patterns, a null
+ or non-integer `window` now get a JSON error or their default instead of
+ raising out of the tool.
+
+- **Shadow-account RSI uses Wilder's seeded smoothing** (#1457, thanks
+ @Shizoqua). The first average is the simple mean of the first 14 gains or
+ losses, and the recursion runs from there. The extractor and the scanner
+ share one implementation, so the RSI bounds a profile extracts are the ones
+ the scanner tests.
+
+- **Small-price indicators keep their digits** (#1925, thanks @rudycelekli).
+ MACD and Bollinger values were rounded to 4 and 2 decimals, so a 1.2e-5
+ crypto price came back as zeros. Each nonzero value now keeps at least four
+ significant digits, including a small component next to a larger one;
+ ordinary prices round as before.
+
+- **Hypothesis search and backtest links** (#1720, #1902, thanks @Shizoqua).
+ A search with `limit=0` returns nothing instead of one record, and the
+ `link_backtest` tool forwards its optional `validation` results
+ (walk-forward, Monte Carlo, bootstrap) to the registry instead of dropping
+ them.
+
+#### Alpha Zoo, factors and alpha bench
+
+- **Fundamental factors no longer see after-close filings a bar early**
+ (#1794, thanks @Jackzigen). SEC filings carry only a date and can arrive
+ after the close, so the benchmark IC path now uses fundamental panels one
+ bar later and records `fundamental_pit_lag_bars: 1`. IC measured on
+ same-day filings needs to be rerun. The backtest engine's separate
+ next-bar execution is unchanged.
+
+- **Carhart momentum no longer reads today's price** (#1578, thanks
+ @Shizoqua). `academic_carhart_mom` was the 12-month return minus the
+ 1-month return, which moves with today's close, the opposite of skipping
+ the last month. It is now the return from 252 to 21 trading days ago. A
+ test moves every close inside the skipped month and requires the value to
+ stay put. The finishing commit corrected the factor notes, the zoo licence
+ text and a strategy example that taught the old formula under a factor id
+ that does not exist.
+
+- **`decay_linear` weights the newest bar heaviest** (#1912, thanks
+ @rudycelekli). Inside each window the weights ran from n on the oldest bar
+ down to 1 on today, the reverse of the Alpha101 definition. Every factor
+ that calls it changes value (22 Alpha101 and 19 GTJA 191 modules); windows
+ stay causal and the missing-data masks are unchanged.
+
+- **Rolling argmax/argmin ties no longer depend on the backend** (#1898,
+ #1696, thanks @rudycelekli and @Mikesad). Without `bottleneck`, a tie
+ resolved to the oldest bar; it now resolves to the most recent, as
+ `bottleneck` does. `bottleneck` is a core dependency, so most installs
+ already got the most recent bar. The registry test suite also runs on
+ Windows hosts without symlink privileges.
+
+- **Alpha benchmark arguments and environment** (#1806, #1910, #1918, thanks
+ @xaritoku and @rudycelekli). `alpha bench` and `alpha compare` load the
+ `.env` file before reading credentials, as other CLI commands do. `top=0`
+ is rejected instead of quietly becoming 20, and boolean, fractional or
+ non-numeric `top` values return an error envelope. A factor with fewer than
+ two IC observations is skipped with the reason instead of being ranked
+ with a NaN IC standard deviation and an IR of 0.
+
+- **38 GTJA 191 factors show their formula**. Their `formula_latex` read
+ "see body", which the Alpha Library displayed as the formula. It now holds
+ the formula already quoted in each module's docstring. Metadata only; no
+ computation changed.
+
+#### Live trading, brokers and portfolio
+
+- **Live option orders are refused before reaching a broker** (#1585, thanks
+ @lorenzozanee). Robinhood's `place_option_order` is pinned as a write, so a
+ remote read-only annotation cannot pass it through, and the profile says
+ live order placement is equities-only. The mandate gate also refuses every
+ option intent, on both the MCP and SDK paths and even when the mandate lists
+ options, because share-notional limits cannot bound a contract multiplier or
+ maximum loss. Live options execution is not implemented.
+
+- **Direct-SDK positions are priced for the mandate exposure check** (#1581,
+ thanks @Shizoqua). Toss, Dhan, KIS, Zerodha and Shoonya report a position's
+ price as `current_price` or `ltp`, and Futu its value as `market_val`; none
+ was read, and one unpriced position fails the exposure check closed, so
+ every later order on those brokers was refused. A zero or negative price, a
+ boolean, or a non-finite value or total now fails closed as well.
+
+- **The kill-switch sweep survives its own failures, and stopping a runner
+ stops it** (#1703, #1704, thanks @Romzhou). An audit-ledger write that
+ raised used to abort the preemptive cancel/flatten sweep and latch it as
+ fired, so it never ran again; it is now logged and the sweep continues. A
+ resting order without an order id, or a position with a missing, malformed,
+ non-finite, overflowing or boolean quantity or no symbol, is reported as an
+ error instead of being cancelled blindly or closed for NaN shares. `POST
+ /live/runner/stop` used to answer `was_running: false` while the scheduler
+ kept firing ticks, because the driver task returned as soon as the scheduler
+ started; it now lives as long as the scheduler, and stopping it cancels an
+ in-flight agent decision and waits for it to end. Each broker keeps its own
+ runtime job store, migrated from the shared one.
+
+- **US equity live sessions close at 13:00 ET on half-days** (#1706, closes
+ #1705, thanks @he-yufeng): 27 November and 24 December 2026 and 26 November
+ 2027. The calendar is still a static two-year table.
+
+- **KIS reads see SOR and NXT fills and recover from a replaced token**
+ (#1726, thanks @passionbull). Order and fill reads asked only the KRX venue,
+ while most retail orders route through SOR, so an account that had traded
+ read as empty. They now query KRX, SOR and NXT and merge the rows, and a
+ venue that fails or a page without a row list fails the read instead of
+ returning a partial one. KIS issues one token per app key, so another
+ process can silently invalidate the cached one; an explicit token-expiry
+ rejection (HTTP error, 401/403 or an HTTP 200 business error) now drops the
+ cache and retries once. Order placement still goes to KRX only.
+
+- **Binance balances survive clock skew, and unpriced assets mark the snapshot
+ incomplete** (#1505, thanks @goatyyc). A balance or Simple Earn read
+ rejected as "ahead of the server" (`-1021`) refreshes the clock offset and
+ retries once. Quotes, bars and symbol search use an unauthenticated client,
+ so a public ticker no longer needs a signed request. Binance's account total
+ is built from priced positions, so a Binance asset without a price now marks
+ the snapshot incomplete and names the asset, and "last complete" reads and
+ history skip such snapshots.
+
+- **Futu reads a saved non-HK market and reports both cost bases** (#1812,
+ #1814, closes #1807, thanks @Frank-zhu2000 and @alexwan02). All four Futu
+ profiles pinned `filter_trdmarket` to HK, hiding a US account saved in
+ `futu.json`; HK is now only the default when nothing is saved. A
+ multi-currency account's balances, which Futu labels `N/A`, carry the HKD
+ they were requested in. Positions add `average_cost`, `pl_ratio_avg_cost`,
+ `unrealized_pl` and `realized_pl` (`None` where Futu reports `N/A`), and the
+ portfolio derives Futu unrealized P&L from the average cost, because Futu's
+ `cost_price` is diluted by realized gains and can turn negative.
+
+- **Futu `HK.00700`-style codes reach the risk x-ray and holdings merge**
+ (#1922, thanks @rudycelekli). Market-prefixed codes are rewritten to the
+ suffix form the loaders use (`00700.HK`, `BRK.B.US`) before risk inputs are
+ built and holdings are merged across brokers. Snapshots valued before this
+ change are hidden from latest and history views until the next refresh
+ rebuilds them.
+
+- **The Portfolio page's holdings and history follow the display currency**
+ (#1810, thanks @rwxyx518-prog). The holdings table's value and P&L columns
+ and the history chart used USD whatever currency was selected. Converted
+ values use the snapshot's own rate and show a dash when that rate is
+ missing, rather than an assumed one.
+
+- **Weekly and monthly risk x-rays annualise per period** (#1656, thanks
+ @rudycelekli). `portfolio_risk_xray` annualised `1W` and `1M` volatility
+ with 252 bars a year; it uses 52 and 12, and `1M` is not read as a minute. A
+ monthly request without a start date fetches 31 months, enough for the
+ minimum sample.
+
+#### Trade journal
+
+- **Mixed-currency journals are reported per currency** (#1811, closes #1808,
+ thanks @Jackzigen). `total_pnl`, `max_drawdown` and dividends summed HKD and
+ USD round-trips without conversion. With more than one settlement currency,
+ `total_pnl`, `total_dividends`, `max_drawdown` and `profit_loss_ratio`
+ become currency-keyed objects with a warning, the overtrading diagnosis is
+ given per currency, and `top_symbols` ranks by trade count with each
+ amount's currency; no FX conversion is applied. Single-currency journals
+ keep scalar values. Drawdown now starts from zero realized P&L, so a losing
+ first close counts.
+
+- **Amounts and symbols parse the way the broker wrote them** (#1766, #1871,
+ #1872, #1881, #1916, thanks @remote-controlled-man and @rudycelekli). A
+ generic `Date,Symbol,Side` journal is claimed as a Futu export only when
+ Futu's `Quantity` or `Amount` column exists, so its quantities and prices
+ are no longer read as zero. Accounting negatives such as `(1,234.50)` and
+ `$(1,234.50)` keep their sign instead of becoming 0. `1.234,56` reads as
+ 1234.56 (a comma-only `1,234` is still thousands). Fiat pairs such as
+ `EUR/USD` are no longer classified as crypto, `.US` symbols, share classes
+ like `BF-B.US` included, are US equities, and `.SS` is Shanghai.
+
+- **Dates are combined, ordered and validated before analysis** (#1900, #1941,
+ #1942, thanks @MetaAviator). Separate generic `date` and `time` columns are
+ combined, including Excel serial dates and day fractions, and a time alone
+ never stands in for a missing date. Rows with equal timestamps keep their
+ file order through FIFO matching. A journal with a missing or unreadable
+ date returns an error instead of being analysed or filtered without those
+ rows.
+
+- **FIFO P&L counts reversal fees once, and unbounded ratios are valid JSON**
+ (#1891, #1884, thanks @MetaAviator and @rudycelekli). A fill that closed one
+ side and opened the other charged its whole fee to both; the fee is now
+ split by quantity. A journal with no losing round-trip produced an
+ `Infinity` profit/loss ratio that strict JSON parsers reject; it is `null`.
+ When winners and losers both have zero holding time, the disposition check
+ reports an undefined ratio instead of a bias.
+
+- **Unknown analysis types and filters are rejected** (#1911, #1924, thanks
+ @rudycelekli). An unrecognised `analysis_type` returned an empty `ok`
+ result, and an unrecognised filter returned the whole journal as if it had
+ been applied; both now return an error naming the accepted values (`full`,
+ `profile`, `behavior`, `strategy`; a date range, `symbol=` or `market=`).
+
+#### Strategy store
+
+- **Strategy records keep their trading rules, and declared backtests feed
+ decay monitoring** (#1848, #1849, thanks @alexwan02). `sdm_register` accepts
+ `entry_rules`, `exit_rules` and `position_sizing` (a list is stored one rule
+ per line) instead of dropping them. Nothing used to write `bench_history`,
+ so `sdm_status(decay_check)` and `sdm_decay_scan` always reported
+ insufficient data: a backtest whose `config.json` names an `artifact_id` now
+ records its Sharpe, annual return, max drawdown and Calmar and reports a
+ `bench_record` (`recorded`, `skipped` or `failed`, with a reason). Decay
+ monitoring reads only `initial` and `periodic` rows, so an undeclared rerun
+ (`manual`) cannot move the baseline. Failed runs, runs without trades or
+ metrics, and a measurement already stored, even from a copied directory, are
+ skipped, atomically across connections; a different evaluation window is a
+ new measurement. Bookkeeping errors never fail a successful backtest.
+
+- **SDM decay compares disjoint IC windows** (#1699, thanks @Shizoqua). The
+ baseline and recent windows are the oldest and newest five IC observations;
+ with fewer than ten they overlap (and with five or fewer they are the same
+ window), which pinned `ic_ratio` near 1.0 however far the IC moved.
+ `ic_ratio` is now `null` until ten observations exist.
+
+#### Tools and documents
+
+- **A refused file write names the setting that allows the path** (#1679,
+ thanks @he-yufeng). When `write_file` or `edit_file` refused a path outside
+ the allowed roots, the error said only that the path escaped. Now it lists
+ the allowed roots and names `VIBE_TRADING_ALLOWED_WRITE_ROOTS`; read-side
+ refusals name `VIBE_TRADING_ALLOWED_FILE_ROOTS`. The variable is also
+ documented in `.env.example` and the README. The boundary itself is
+ unchanged. Since `aac03fa6`, on a case-insensitive filesystem a path spelled
+ differently from an allowed root (`dropbox` for `Dropbox`) is accepted when
+ the filesystem confirms it is the same directory. Path names are never
+ case-folded.
+
+- **Skill file removal follows the same rules as skill file writes** (#1639,
+ thanks @Shizoqua). `remove` could delete any file in a skill directory. It
+ is now limited to `references/`, `templates/`, `examples/` and `assets/`,
+ like `write`. Since `8ec3b80f`, both actions also refuse `..` segments and
+ symlinks that resolve outside those directories, and `remove` deletes only
+ regular files, never a directory.
+
+- **`read_file` reports an unreadable directory as a structured error**
+ (#1946, thanks @rudycelekli). Listing a directory inside the allowed roots
+ ran outside the tool's error handler. A permission error therefore escaped
+ instead of returning the usual JSON `status: error`.
+
+- **Document reader keeps more of PDF, Word, PowerPoint and Excel files**
+ (#1838, #1839, #1840, #1841, thanks @rudycelekli).
+ - PDF: with no OCR engine, a page whose native text is shorter than
+ `min_text_per_page` (50) used to be skipped. Its text is now kept, and the
+ result is marked `no_ocr_engine`. If every selected page has only such
+ short text, the read is still refused with the OCR install hint.
+ - Word: paragraphs and tables come out in document order. Before, every
+ table was appended after all paragraphs.
+ - PowerPoint: text inside grouped shapes and tables is read; merged table
+ cells appear once.
+ - Excel: cells holding `NA`, `N/A`, `null` or `NaN` keep that literal text.
+ Only empty cells count as missing.
+
+- **README tables match the code** (#1671, #1733, thanks @he-yufeng and
+ @Jackzigen). The Indonesian README lists `get_southbound_flow` and the
+ current tool counts. The Quant Library contract table in `README.md` had
+ duplicate rows for `credit`, `timeseries`, `factormodel` and
+ `multipletesting`; each now has one row with the newer description.
+
+#### Sessions, memory and search
+
+- **Runtime files stay out of a checkout used as the runtime root**. When
+ `VIBE_TRADING_HOME` points at the repository, `memory_index.db` (moved to
+ the runtime root in this release, and holding memory contents), the paper
+ trading `strategies/` folder and `shadow_reports/` were not git-ignored.
+ They are now, and the guard test also finds names joined onto the runtime
+ root inline or through `*_DIRNAME` constants, not only `*_FILENAME` ones.
+
+- **Session search finds Chinese, Japanese and Korean text** (#1686, thanks
+ @Shizoqua). SQLite's default tokenizer treated a run of East Asian
+ characters as one token, so a query rarely matched anything shorter than the
+ entire run. The ported fix indexes those characters split apart.
+ `aac03fa6` reworked it: ideographs, kana and Hangul are indexed one
+ character per token in a separate `search_content` column; queries become
+ phrase matches; and the stored message keeps its original text for
+ snippets. An existing `sessions.db` is upgraded and reindexed once, on first
+ open.
+
+- **Session search snippets, limits and concurrency** (#1834, #1827, #1828,
+ thanks @rudycelekli). A snippet now centres on the match SQLite actually
+ found and highlights that span in the original text. Before, it highlighted
+ the query wherever the text contained it, so `alpha` lit up inside
+ `alphabet` while `café` (matched by `cafe`) was not highlighted. The result
+ limit now counts distinct conversations. Before, the search read only the
+ first five matching messages per requested conversation, and one chatty
+ conversation could fill them all and hide the others.
+ Index writes and searches on the shared SQLite connection are serialized,
+ so concurrent callers no longer interleave on one cursor.
+
+- **Renamed conversations show their new name in search** (#1832, thanks
+ @rudycelekli). The REST rename and auto-title routes now update the search
+ index's title as well. Auto-titling reloads the session after the model
+ answers, so updates saved meanwhile are kept, and a manual rename made
+ meanwhile is kept with status `kept`.
+
+- **Reconnecting to a session's event stream no longer repeats an event**
+ (#1798, closes #1796, thanks @Shizoqua). An event published between the
+ replay snapshot and the new subscription reached the client twice, once in
+ the replay and once live. Both steps now happen under one lock.
+
+- **Memory search snippets and titles read back as written** (#1682, thanks
+ @Shizoqua). A CJK snippet could show its span twice ("使用用移移动…")
+ because the index stores both single characters and pairs. A title mixing
+ Chinese with a ticker, number or punctuation came back with extra spaces
+ (`比特币A策略` became `比特币 A 策略`). Since `8ec3b80f`, highlights and
+ `...` truncation markers also survive in snippets built only from character
+ pairs.
+
+- **Memory removal, links and recall** (#1697, #1771, #1772, thanks
+ @Shizoqua). `remove()`, which the `remember` tool's `forget` action uses,
+ accepts a filename stem as `find()` already did. Before, it reported "not
+ found" for an entry that `find()` and `vibe-trading memory forget` could
+ see. A blank name is refused (`f6e72428`). Semantic links match
+ two-character identifiers such as `BP` or `GE`; the minimum used to be
+ three. FTS recall skips index rows whose memory file was deleted outside the
+ process. The PR fetched four times the requested count; `54e225de` replaced
+ that with a window that doubles until enough current memories are found or
+ the index runs out.
+
+- **Verifying an archived audit ledger reports a corrupt line instead of
+ crashing** (#1721, thanks @Shizoqua). `verify_chain_with_archives` parsed
+ every segment with a bare `json.loads`, so a damaged line raised
+ `JSONDecodeError`. It now uses the same parser as single-file verification
+ and returns a `malformed_json` break at that line's position across all
+ segments.
+
+#### Credential redaction
+
+- **Environment-style credential names and URL credentials are redacted**
+ (#1765, thanks @cgycorey). `TUSHARE_TOKEN=…`, `AWS_SECRET_ACCESS_KEY=…`
+ and `aws_secret_access_key` lines in `~/.aws/credentials` are now caught.
+ Lowercase identifiers such as `pad_token` and `max_token` are still left
+ alone. `scheme://user:password@host` becomes `scheme://[redacted]@host`, and
+ a password containing `@` is handled. A bare username before `@` is redacted
+ only when it is a 20-plus-character token, so `[email protected]` stays
+ readable.
+
+- **`Authorization: Basic` and other non-bearer schemes are redacted**
+ (#1846, thanks @cgycorey). The key pattern used to redact the scheme word
+ and leave the base64 `user:password` visible. `Basic`, `Digest`, `Token`,
+ `Negotiate` and `NTLM` values are now redacted, but only right after an
+ `authorization` label, so prose like "basic information" is untouched.
+
+- **More secret formats are redacted** (#1874, #1866, #1867, #1868, #1869,
+ #1870, thanks @rudycelekli). #1874 combined the five smaller PRs. These are
+ now redacted:
+ - unlabelled GitHub fine-grained (`github_pat_`), GitLab (`glpat-`), npm,
+ Hugging Face, Stripe (`sk_`/`rk_` live and test), Google API (`AIza`) and
+ AWS `ASIA` keys;
+ - PEM and PGP private-key blocks, including a block cut off before its END
+ line, which is redacted to the end of the text;
+ - `Cookie:` and `Set-Cookie:` header values;
+ - fields named like `cookie` or `private_key` in structured payloads.
+
+ Public keys and certificates are left as they are, and running redaction
+ twice changes nothing. Since `47de62de`, a quoted header such as
+ `curl -H "Cookie: a=\"x\"; b=y"` is redacted up to its closing quote.
+
+- **Telegram bot tokens, Slack and Discord webhook URLs, Groq and NVIDIA keys
+ are redacted** (#1880, thanks @rudycelekli). The Telegram token is caught
+ inside `https://api.telegram.org/bot<token>/…`, which HTTP error messages
+ repeat in full. For a webhook URL, only the secret last path segment is
+ replaced. The PR accepted only 8–10 digit Telegram bot ids and lowercase
+ `hooks.slack.com`. `2c00cd20` widened that to any length of numeric id, to
+ GovSlack (`hooks.slack-gov.com`) and to webhook hostnames in any letter case.
+
+#### CLI, API and scheduling
+
+- **`vibe-trading update` leaves a Git install alone** (#1655, thanks
+ @rudycelekli). An install made from a Git URL was treated as a PyPI wheel,
+ so the update replaced the user's chosen revision with a released wheel. The
+ command now detects `vcs_info` in the install metadata, reports the newer
+ PyPI version and tells the user to update from the original source.
+
+- **The terminal dashboard matches parallel tool results to the right call**
+ (#1859, closes #1856, thanks @Shizoqua). When several calls to the same tool
+ ran at once, progress and results were matched by tool name and recency, so
+ results could be swapped between calls. They are now matched by call id.
+ Since `47de62de`, a result whose id matches no step gets its own step and no
+ longer completes a different call that is still running.
+
+- **CLI limits and number formatting** (#1886, #1926, thanks @rudycelekli).
+ `vibe-trading list --limit` and `memory search --limit` reject zero and
+ negative values instead of passing them on. Token counts, abbreviated
+ numbers and durations switch unit when rounding reaches the next one:
+ 999,950 tokens shows as `1.0M tokens` instead of `1000.0k tokens`, 999.6 ms
+ as `1.0s`, and 59.96 s as `1m 00s` instead of `60.0s`.
+
+- **A cancelled upload leaves no partial file** (#1945, thanks @rudycelekli).
+ If the upload request was cancelled while a chunk was being read, the
+ half-written file stayed in the uploads directory with no reference to it.
+ The file is now deleted and the cancellation is re-raised.
+
+- **More runtime files follow `VIBE_TRADING_HOME`** (#1896, #1904, #1887,
+ thanks @rudycelekli). These paths were fixed to `~/.vibe-trading` and now
+ use the runtime root:
+ - persistent memory and its search index (`memory/`, `memory_index.db`);
+ - autopilot run directories;
+ - the alpha-bench panel cache and reports;
+ - the Gildata code cache.
+
+ The Shadow Account report route also reads from the runtime root, which is
+ where the report writer saves. Report links therefore work again when
+ `VIBE_TRADING_HOME` is set. Existing files under `~/.vibe-trading` are not
+ moved, and the memory paths are read when the process starts.
+
+#### Channels and scheduled delivery
+
+- **IM channels show agent progress again, without repeated lines** (#1878,
+ thanks @alexwan02). Channel replies now forward the attempt's status lines
+ (working, waiting for the model, using a tool, checking the figures), tool
+ hints and opt-in reasoning while the agent runs, so Feishu's streaming card
+ and other streaming channels update again (reported in #1792). Only those
+ labels go out: answer drafts and tool results stay private, and the final
+ answer still passes grounding first. #1878 applies the channel's own
+ visibility settings before deduplicating, so hidden tool hints no longer
+ break the dedupe and a chat no longer stacks one "Waiting for the model" per
+ tool round.
+
+- **Streamed replies are no longer lost or split** (#1860, #1903, #1929,
+ closes #1857, thanks @Shizoqua). Telegram (#1860) and Matrix (#1903) dropped
+ the whole answer when the live preview message could never be created; they
+ now send the accumulated reply as a new message. CI installs the `matrix`
+ extra so the Matrix test runs instead of skipping. WeCom (#1929) generated a
+ new stream id for every chunk, so progress and the final answer arrived as
+ unrelated messages; one id now covers each reply.
+
+- **Email sender authentication cannot be satisfied by forged headers**
+ (#1508, thanks @Shizoqua). SPF and DKIM checks read only the single
+ `Authentication-Results` header bearing the configured
+ `trusted_authserv_id`; with none configured, or with two matching headers,
+ verification fails closed. A pass counts only when its domain equals the
+ From domain or an aligned `dmarc=pass` is in the same header, and comments
+ or quoted text cannot pose as results. The receiving provider must strip
+ forged copies bearing its id; the id is not a signature. The guided Email
+ setup exposes the setting, and a blank one rejects inbound mail while SPF or
+ DKIM checks are on. The PR described trusting the topmost header; what
+ shipped selects by configured id instead.
+
+- **URL credentials in channel settings are neither leaked nor erased**
+ (#1742, #1744, thanks @cgycorey). Status and config redaction strips
+ `user:password@` even when the port is malformed or out of range or the URL
+ is followed by punctuation, where it used to return the URL untouched
+ (#1741). Saving or testing a form that echoes the redacted URL keeps the
+ stored credential instead of overwriting it (#1743); a different URL or a
+ clear flag still applies. Connection-test and reset messages, including
+ raised SDK exceptions, are scrubbed too.
+
+- **Unchanged empty fields no longer block channel saves** (#1681, thanks
+ @zeus229). A nullable setting such as Email's `post_action` was submitted by
+ the form as an empty string and rejected with a 422 on unrelated edits. An
+ empty value now maps back to null where the adapter's default is null, for
+ both Save and Test.
+
+#### Web UI and locales
+
+- **Run trades list every trade, newest first** (#1865, #1877, #1831, thanks
+ @alexwan02 and @he-yufeng). The Trades tab and its CSV download used the
+ first 500 rows of `trade_log`, which dropped the newest trades of a long
+ run; they now use the full `trades.csv` rows (#1865). Rows sort newest first
+ with a header toggle, keeping same-time fills in engine order, and the
+ symbol filter lists codes in order (#1877). #1831 removes a race in the
+ Settings effort-level test that intermittently failed frontend CI; the
+ component is unchanged.
## [0.1.16] — 2026-09-29
diff --git a/Dockerfile b/Dockerfile
index 3c534413f..da2c52067 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -61,7 +61,7 @@ FROM python:3.11-slim@sha256:e031123e3d85762b141ad1cbc56452ba69c6e722ebf2f042cc0
LABEL org.opencontainers.image.title="Vibe-Trading" \
org.opencontainers.image.description="Natural-language finance research AI agent with backtesting" \
- org.opencontainers.image.version="0.1.16" \
+ org.opencontainers.image.version="0.1.17" \
org.opencontainers.image.source="https://github.com/HKUDS/Vibe-Trading" \
org.opencontainers.image.licenses="MIT"
diff --git a/README.md b/README.md
index 496a5bfc2..11b6c11e7 100644
--- a/README.md
+++ b/README.md
@@ -52,12 +52,15 @@
> ⚠️ **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-10-21** 🛠️ **Paper accounts and community fixes**: Daily paper trading now has Agent/MCP, CLI, API and Web entries ([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939)). Backtests warn when the selected engine ignores a setting ([#1947](https://github.com/HKUDS/Vibe-Trading/pull/1947)). Fund-flow fallback handles empty daily responses, identifies its actual source and keeps total flow separate from main-order flow. Telegram setup instructions are clarified; journal, futures-unit, attribution, upload-cancellation and directory-error fixes are in [CHANGELOG](CHANGELOG.md).
+- **2026-10-21** 🚀 **v0.1.17 released** ([Release notes](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.17), `pip install -U vibe-trading-ai`): 638 commits and 228 merged pull requests since 0.1.16, plus 41 pull requests whose work landed through maintainer commits, from 33 contributors. **The headline is daily paper trading:** a `paper_trade_step` tool for the agent and MCP, plus saved paper accounts through `vibe-trading paper`, the REST API and a Web page, match orders or a strategy against completed daily bars without ever reaching a broker; saved accounts move forward only ([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939)). **Most of the rest is correctness, and much of it has one shape: a value that cannot be computed now says so instead of turning into a plausible number.** A profit factor with no losing trade, an undefined correlation and an unbounded ratio come back as `null`, and a factor with too few IC observations is skipped with the reason; a missing price no longer bridges a return; a misspelled or engine-irrelevant backtest setting is reported in the run card. **New:** Brazil (B3), 478 Alpha Zoo factors (from 462), Slack and Discord in the guided channel setup, Email reports as HTML or a password-protectable PDF, token usage in Run Detail, chat and swarm, a `claude-cli` provider, and Persian and Turkish for 11 UI languages. **Fixed today:** the fund-flow fallback names its actual source and keeps total flow apart from main-order flow, and the Telegram setup steps are clarified. Thanks [@rudycelekli](https://github.com/rudycelekli), [@Shizoqua](https://github.com/Shizoqua), [@he-yufeng](https://github.com/he-yufeng), [@shadowinlife](https://github.com/shadowinlife), [@zeus229](https://github.com/zeus229), [@alexwan02](https://github.com/alexwan02), [@Jackzigen](https://github.com/Jackzigen), [@cgycorey](https://github.com/cgycorey), [@MetaAviator](https://github.com/MetaAviator), [@lorenzozanee](https://github.com/lorenzozanee), [@Mikesad](https://github.com/Mikesad), [@remote-controlled-man](https://github.com/remote-controlled-man), [@Romzhou](https://github.com/Romzhou), [@sambazhu](https://github.com/sambazhu), [@wavebyrd](https://github.com/wavebyrd), [@BHhhh-123](https://github.com/BHhhh-123), [@Bortlesboat](https://github.com/Bortlesboat), [@bygordon130-hub](https://github.com/bygordon130-hub), [@davidalmeida90](https://github.com/davidalmeida90), [@DrDLyuan](https://github.com/DrDLyuan), [@Emad211](https://github.com/Emad211), [@Frank-zhu2000](https://github.com/Frank-zhu2000), [@goatyyc](https://github.com/goatyyc), [@hunters1011-ctrl](https://github.com/hunters1011-ctrl), [@incorpore](https://github.com/incorpore), [@mdb1230](https://github.com/mdb1230), [@mminkus](https://github.com/mminkus), [@passionbull](https://github.com/passionbull), [@rwxyx518-prog](https://github.com/rwxyx518-prog), [@ThreeTima](https://github.com/ThreeTima), [@tomaszkubiak-courses](https://github.com/tomaszkubiak-courses) and [@xaritoku](https://github.com/xaritoku)!
- **2026-10-20** 🛠️ **Backtest diagnostics and research correctness**: Warn about unrecognized backtest config keys, show undefined correlations as unknown instead of zero, and reuse the saved annualisation factor when revalidating runs ([#1935](https://github.com/HKUDS/Vibe-Trading/pull/1935), [#1933](https://github.com/HKUDS/Vibe-Trading/pull/1933), [#1915](https://github.com/HKUDS/Vibe-Trading/pull/1915)). Also improve factor sample checks, tool input validation, journal market classification, numeric formatting and WeCom streaming. All 14 fixes and remaining limits are in [CHANGELOG](CHANGELOG.md).
- **2026-10-19** 🛠️ **Nine financial correctness fixes**: Correct recency weights in factor decay, A-share board limits and Beijing symbol routing, SEC Q4 flow derivation, and event-study estimation windows. Preserve Futu holdings identity and tiny MACD/Bollinger values; reject negative specific variances and apply pair-specific fees to Yahoo forex symbols ([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912), [#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920), [#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930)). See [CHANGELOG](CHANGELOG.md) for all nine fixes and limits.
+<details>
+<summary>Earlier news</summary>
+
- **2026-10-17** 🛠️ **Token usage and research reliability**: View LLM usage in Run Detail, chat and swarm ([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890)). Shared scheduling now powers research and optional background jobs ([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893)); live scheduling is unchanged. Fix journal date/time pairing, evidence paths, factor ties, memory roots, numeric error handling and channel progress. See [CHANGELOG](CHANGELOG.md).
- **2026-10-16** 🛠️ **Credential safety and financial correctness**: Scrub more channel/provider secrets ([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880)), refresh cached local bars after source edits ([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879)), and allocate reversal fees once ([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891)). Correct European journal amounts, strict JSON, zero/negative comparisons, holding periods, weight floors, plateau detection and report paths. See [CHANGELOG](CHANGELOG.md).
@@ -66,9 +69,6 @@
- **2026-10-14** 🛠️ **Backtest, search and document fixes**: Risk ratios and equity exports now include first-bar PnL ([#1844](https://github.com/HKUDS/Vibe-Trading/pull/1844)). Session search returns distinct sessions with preserved titles and contextual snippets ([#1827](https://github.com/HKUDS/Vibe-Trading/pull/1827), [#1834](https://github.com/HKUDS/Vibe-Trading/pull/1834)). Improve PDF/Office extraction, reject unresolved evidence references, and strengthen financial-input validation and credential redaction.
-<details>
-<summary>Earlier news</summary>
-
- **2026-10-13** 🧩 **Portfolio imports, strategy adaptation and research tools**: Read-only extraETF holdings imports support dated EUR valuation and allocation proposals; adapted strategies get their own backtest evidence ([#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170), [#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149)). Add tested custom model endpoints, a shared manual Pixel Office task board, Persian/Turkish UI, mStock read-only queries and Gildata research data.
Fix settlement-currency accounting, Futu market selection and cost basis, per-symbol HK board lots, saved validation settings and run progress. Complete declared grounding checks and the agent-loop split. mStock remains excluded from portfolio aggregation; Robinhood options execution remains unavailable. See [CHANGELOG](CHANGELOG.md) for scope and limits.
@@ -673,7 +673,7 @@ Beyond OHLCV, **22 read-only data tools** reach into fundamentals & flow — fun
<img src="https://www.qveris.com/logo-color.png" alt="QVeris" height="36">
-**Data: free routing or premium, your choice.** Free stays the default: 23 built-in sources with ban-risk fallback, no key, no cost. Premium via QVeris adds 10,000+ capabilities (per QVeris) across 63+ providers for options Greeks, premium fundamentals, China/HK/global data, macro, crypto, news, and filings; failed calls are not charged. Enable it in Settings -> QVeris or `vibe-trading data mode paid`.
+**Data: free routing or premium, your choice.** Free stays the default: 29 built-in sources with ban-risk fallback, no key, no cost. Premium via QVeris adds 10,000+ capabilities (per QVeris) across 63+ providers for options Greeks, premium fundamentals, China/HK/global data, macro, crypto, news, and filings; failed calls are not charged. Enable it in Settings -> QVeris or `vibe-trading data mode paid`.
*QVeris disclosure: [signing up through the Vibe-Trading referral link](https://qveris.ai/?ref=Vyjjo5G_1cAHJA) gets you **+1,000 bonus credits** and supports the project.*
<!-- QVERIS-END -->
@@ -826,7 +826,7 @@ alongside the bundled roster (same-name files override it, like user skills) and
| **alpha101** | 101 | Kakushadze (2015), "101 Formulaic Alphas", arXiv:1601.00991 | Formulas are mathematical content |
| **gtja191** | 191 | Guotai Junan (2014), "191 Short-period Trading Alpha Factors" | Formulas are mathematical content |
| **academic** | 12 | Fama-French 5 + Carhart momentum + Jegadeesh reversal + George-Hwang 52-week-high + Amihud illiquidity + Harvey-Siddique skew + Frazzini-Pedersen betting-against-beta + correlation-rewiring stability (price-based proxies) | Public academic literature |
-| **fundamental** | 4 | PIT-safe SEC company facts — earnings yield, ROE, gross profitability, asset growth (filed-date anchored) | Public financial data |
+| **fundamental** | 20 | PIT-safe SEC company facts (14, filed-date anchored: earnings yield, book-to-market, ROE, ROA, gross profitability, growth, accruals, leverage, cash-flow yields …) + A-share P/B, P/S TTM and dividend yield (3) + their Shenwan industry-neutral variants (3) | Public financial data |
Run `vibe-trading alpha list` to browse, `vibe-trading alpha show <id>` for formulas + source, `vibe-trading alpha bench --zoo X --universe Y --period Z` to score a whole zoo, and `vibe-trading alpha compare --all` to rank zoos side by side.
@@ -2294,7 +2294,7 @@ Vibe-Trading/
│ │ │ ├── base.py # 19 operators (rank/scale/ts_*/delta/decay_linear/safe_div/vwap)
│ │ │ ├── registry.py # AST-only metadata load + lazy compute + sanity gates
│ │ │ ├── bench_runner.py # IC + alive/reversed/dead categorisation
-│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (4)
+│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (20)
│ │ │
│ │ ├── api/ # FastAPI route modules
│ │ │ └── alpha_routes.py # /alpha/list, /alpha/{id}, /alpha/bench, SSE stream
diff --git a/README_ar.md b/README_ar.md
index 1b1f1d038..de14efb0c 100644
--- a/README_ar.md
+++ b/README_ar.md
@@ -52,12 +52,15 @@
> ⚠️ **تحذير أمني:** حساب X باسم `VibeTrading_HKU`، ومشروع Virtuals رقم `101845`، وعقد التوكن `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` كلّها غير رسمية ولا تتبع Vibe-Trading. لم نُطلق أو نؤيد مطلقًا أي توكن أو عملة ميم. لا تشترِ هذا التوكن، ولا تربط محفظتك، ولا توقّع أي شيء. [التفاصيل](SECURITY.md#official-channels--impersonation).
-- **2026-10-21** 🛠️ **حسابات التداول التجريبي وإصلاحات المجتمع**: تتوفر المحاكاة اليومية عبر Agent/MCP وCLI وAPI والويب ([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939)). تظهر تحذيرات للإعدادات التي يتجاهلها المحرك المختار ([#1947](https://github.com/HKUDS/Vibe-Trading/pull/1947)). تفعّل الاستجابات اليومية الفارغة لتدفقات الأموال المصدر البديل، مع بيان المصدر الفعلي وفصل صافي التدفق الإجمالي عن صافي تدفق الأوامر الكبيرة. وُضّحت خطوات إعداد Telegram. بقية الإصلاحات والقيود في [CHANGELOG](CHANGELOG.md).
+- **2026-10-21** 🚀 **صدور v0.1.17** ([ملاحظات الإصدار](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.17), `pip install -U vibe-trading-ai`): ‏638 عملية إيداع و228 طلب سحب مدموجًا منذ 0.1.16، إضافة إلى 41 طلب سحب دخل عملها عبر إيداعات المشرفين، من 33 مساهمًا. **أبرز ما في الإصدار هو التداول التجريبي اليومي:** أداة `paper_trade_step` للوكيل وMCP، وحسابات تداول تجريبي محفوظة عبر `vibe-trading paper` وواجهة REST وصفحة ويب، تطابق الأوامر أو الاستراتيجية مع الشموع اليومية المكتملة ولا تصل أبدًا إلى أي وسيط، والحسابات المحفوظة تتقدم إلى الأمام فقط ([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939)). **معظم ما تبقى إصلاحات للدقة، وكثير منها من نوع واحد: القيمة التي لا يمكن حسابها تقول ذلك الآن بدلًا من أن تتحول إلى رقم يبدو معقولًا.** معامل الربح دون صفقة خاسرة والارتباط غير المعرَّف والنسبة غير المحدودة تُعاد بقيمة `null`، والعامل الذي لا تكفيه مشاهدات IC يُتخطى مع ذكر السبب؛ ولم يعد السعر المفقود يصل بين عائدين؛ وإعداد الاختبار الخلفي المكتوب خطأً أو الذي لا يستخدمه المحرك المختار يظهر تحذيرًا في بطاقة التشغيل. **الجديد:** سوق البرازيل (B3)، و478 عاملًا في Alpha Zoo (بعد 462)، وSlack وDiscord في إعداد القنوات الموجّه، وتقارير البريد الإلكتروني بتنسيق HTML أو PDF يمكن حمايته بكلمة مرور، واستخدام الرموز في Run Detail والمحادثة وSwarm، ومزوّد `claude-cli`، والفارسية والتركية لتصبح الواجهة بـ11 لغة. **أُصلح اليوم:** صار البديل الاحتياطي لتدفق الأموال يذكر مصدره الفعلي ويفصل التدفق الكلي عن تدفق الأوامر الكبيرة، وتوضّحت خطوات إعداد Telegram. شكرًا [@rudycelekli](https://github.com/rudycelekli), [@Shizoqua](https://github.com/Shizoqua), [@he-yufeng](https://github.com/he-yufeng), [@shadowinlife](https://github.com/shadowinlife), [@zeus229](https://github.com/zeus229), [@alexwan02](https://github.com/alexwan02), [@Jackzigen](https://github.com/Jackzigen), [@cgycorey](https://github.com/cgycorey), [@MetaAviator](https://github.com/MetaAviator), [@lorenzozanee](https://github.com/lorenzozanee), [@Mikesad](https://github.com/Mikesad), [@remote-controlled-man](https://github.com/remote-controlled-man), [@Romzhou](https://github.com/Romzhou), [@sambazhu](https://github.com/sambazhu), [@wavebyrd](https://github.com/wavebyrd), [@BHhhh-123](https://github.com/BHhhh-123), [@Bortlesboat](https://github.com/Bortlesboat), [@bygordon130-hub](https://github.com/bygordon130-hub), [@davidalmeida90](https://github.com/davidalmeida90), [@DrDLyuan](https://github.com/DrDLyuan), [@Emad211](https://github.com/Emad211), [@Frank-zhu2000](https://github.com/Frank-zhu2000), [@goatyyc](https://github.com/goatyyc), [@hunters1011-ctrl](https://github.com/hunters1011-ctrl), [@incorpore](https://github.com/incorpore), [@mdb1230](https://github.com/mdb1230), [@mminkus](https://github.com/mminkus), [@passionbull](https://github.com/passionbull), [@rwxyx518-prog](https://github.com/rwxyx518-prog), [@ThreeTima](https://github.com/ThreeTima), [@tomaszkubiak-courses](https://github.com/tomaszkubiak-courses) و[@xaritoku](https://github.com/xaritoku)!
- **2026-10-20** 🛠️ **تشخيص الاختبارات التاريخية ودقة التحليل**: إصدار تحذير لمفاتيح الإعدادات غير المعروفة، وعرض الارتباطات غير المعرّفة بوصفها مجهولة بدلاً من صفر، وإعادة استخدام معامل التحويل السنوي المحفوظ عند إعادة التحقق ([#1935](https://github.com/HKUDS/Vibe-Trading/pull/1935), [#1933](https://github.com/HKUDS/Vibe-Trading/pull/1933), [#1915](https://github.com/HKUDS/Vibe-Trading/pull/1915)). تشمل التحسينات أيضاً فحص عينات العوامل، والتحقق من مدخلات الأدوات، وتصنيف الأسواق في سجلات التداول، وتنسيق الأرقام، والردود المتدفقة في WeCom. تفاصيل الإصلاحات الأربعة عشر والقيود المتبقية في [CHANGELOG](CHANGELOG.md).
- **2026-10-19** 🛠️ **تسعة إصلاحات للحسابات المالية**: تصحيح أوزان اضمحلال العوامل، وحدود أسعار الأسهم الصينية A ورموز بورصة بكين، واشتقاق تدفقات الربع الرابع من بيانات SEC، ونوافذ التقدير لدراسات الأحداث. الحفاظ على هوية مراكز Futu وقيم MACD وBollinger الصغيرة، ورفض التباينات الخاصة السالبة، وتطبيق فروق الأسعار ورسوم التبييت الخاصة بكل زوج على رموز عملات Yahoo ([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912)، [#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920)، [#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930)). التفاصيل والقيود في [CHANGELOG](CHANGELOG.md).
+<details>
+<summary>أخبار سابقة</summary>
+
- **2026-10-17** 🛠️ **استخدام الرموز وموثوقية البحث**: عرض استخدام النموذج في تفاصيل التشغيل والدردشة وswarm ([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890)). أصبحت مهام البحث والمهام الخلفية الاختيارية تستخدم مجدولًا مشتركًا ([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893))؛ لم تتغير جدولة التداول الفعلي. تشمل الإصلاحات دمج تاريخ ووقت سجل التداول، ومسارات الأدلة، وتعادل قيم العوامل، ومسارات الذاكرة، ومعالجة الأخطاء العددية، وتقدم القنوات. راجع [CHANGELOG](CHANGELOG.md).
- **2026-10-16** 🛠️ **حماية بيانات الاعتماد وصحة الحسابات المالية**: توسيع إخفاء أسرار القنوات ومزوّدي النماذج ([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880))، وتحديث بيانات الأسعار المخزنة بعد تعديل المصدر المحلي ([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879))، ومنع احتساب رسوم عكس المركز مرتين ([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891)). إصلاح مبالغ سجل التداول بالتنسيق الأوروبي، وJSON الصارم، ومقارنات الصفر والقيم السالبة، وفترات الاحتفاظ، والحد الأدنى للأوزان، والقمم والقيعان المسطحة، ومسارات التقارير. راجع [CHANGELOG](CHANGELOG.md).
@@ -66,9 +69,6 @@
- **2026-10-14** 🛠️ **إصلاحات الاختبار التاريخي والبحث وقراءة المستندات**: تشمل نسب المخاطر وتصدير قيمة المحفظة ربح أو خسارة الشمعة الأولى ([#1844](https://github.com/HKUDS/Vibe-Trading/pull/1844)). يعرض بحث الجلسات نتائج دون تكرار الجلسة، مع الحفاظ على العناوين وإظهار سياق التطابق ([#1827](https://github.com/HKUDS/Vibe-Trading/pull/1827)، [#1834](https://github.com/HKUDS/Vibe-Trading/pull/1834)). تحسّن استخراج محتوى PDF وOffice، وتُرفض مراجع الأدلة التي يتعذر حلّها، مع تعزيز التحقق من مدخلات الحسابات المالية وإخفاء بيانات الاعتماد.
-<details>
-<summary>أخبار سابقة</summary>
-
- **2026-10-13** 🧩 **استيراد المحافظ وتكييف الاستراتيجيات وأدوات البحث**: يدعم استيراد حيازات extraETF للقراءة فقط تقييمًا باليورو مع بيان التاريخ ومقترحات لتوزيع الأصول؛ وتستخدم الاستراتيجيات المعدلة أدلة اختبار تاريخي خاصة بها ([#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170)، [#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149)). أُضيفت نقاط اتصال بنماذج مخصصة بعد اختبارها، ولوحة مهام يدوية مشتركة في Pixel Office، وواجهتان بالفارسية والتركية، واستعلامات mStock للقراءة فقط وبيانات Gildata البحثية.
صُححت المحاسبة حسب عملة التسوية، واختيار السوق وأساس التكلفة في Futu، وحجم دفعة التداول لكل سهم في هونغ كونغ، وإعدادات التحقق المحفوظة وتقدم التشغيل. اكتملت قواعد التحقق الرقمي المعلنة وتقسيم حلقة الوكيل. لا يزال mStock مستبعدًا من تجميع المحافظ، وتنفيذ خيارات Robinhood غير متاح. النطاق والقيود في [CHANGELOG](CHANGELOG.md).
@@ -559,7 +559,7 @@ LONGBRIDGE_ACCESS_TOKEN=...
<img src="https://www.qveris.com/logo-color.png" alt="QVeris" height="36">
-**البيانات المجانية هي الافتراضي، والمدفوعة عند الحاجة.** تبقى المصادر الـ23 المدمجة مجانية مع تراجع ذكي بحسب خطر الحظر، بلا مفتاح ولا تكلفة. عبر QVeris يفتح مفتاح واحد 63+ مزوداً و10,000+ capabilities (per QVeris) للـ options Greeks، والأساسيات المتقدمة، وبيانات الصين/هونغ كونغ/العالم، والماكرو، والكريبتو، والأخبار، والـ filings؛ ولا تُحتسب المكالمات الفاشلة. فعّله من Settings → QVeris أو `vibe-trading data mode paid`.
+**البيانات المجانية هي الافتراضي، والمدفوعة عند الحاجة.** تبقى المصادر الـ29 المدمجة مجانية مع تراجع ذكي بحسب خطر الحظر، بلا مفتاح ولا تكلفة. عبر QVeris يفتح مفتاح واحد 63+ مزوداً و10,000+ capabilities (per QVeris) للـ options Greeks، والأساسيات المتقدمة، وبيانات الصين/هونغ كونغ/العالم، والماكرو، والكريبتو، والأخبار، والـ filings؛ ولا تُحتسب المكالمات الفاشلة. فعّله من Settings → QVeris أو `vibe-trading data mode paid`.
*QVeris disclosure: التسجيل عبر [رابط إحالة Vibe-Trading](https://qveris.ai/?ref=Vyjjo5G_1cAHJA) يمنحك **+1,000 رصيداً** إضافياً ويدعم المشروع.*
<!-- QVERIS-END -->
@@ -700,7 +700,7 @@ LONGBRIDGE_ACCESS_TOKEN=...
| **alpha101** | 101 | Kakushadze (2015)، "101 Formulaic Alphas"، arXiv:1601.00991 | الصيغ محتوى رياضي |
| **gtja191** | 191 | Guotai Junan (2014)، "191 Short-period Trading Alpha Factors" | الصيغ محتوى رياضي |
| **academic** | 12 | Fama-French 5 + Carhart momentum (proxy قائم على الأسعار) + Jegadeesh reversal + George-Hwang 52-week-high + Amihud illiquidity + Harvey-Siddique skew + Frazzini-Pedersen betting-against-beta + correlation-rewiring stability | أدبيات أكاديمية عامة |
-| **fundamental** | 4 | بيانات SEC company facts آمنة PIT — earnings yield وROE وgross profitability وasset growth (مثبّتة على filed-date) | بيانات مالية عامة |
+| **fundamental** | 20 | بيانات SEC company facts آمنة PIT ‏(14، مثبّتة على filed-date: earnings yield وbook-to-market وROE وROA وgross profitability والنمو وaccruals والرافعة وعوائد التدفق النقدي…) + مكرر القيمة الدفترية ومكرر المبيعات TTM وعائد التوزيعات لأسهم A الصينية ‏(3) + نسخها المحايدة قطاعيًا وفق Shenwan ‏(3) | بيانات مالية عامة |
شغّل `vibe-trading alpha list` للتصفح، و`vibe-trading alpha show <id>` للحصول على الصيغ + المصدر، و`vibe-trading alpha bench --zoo X --universe Y --period Z` لتقييم zoo كاملة، و`vibe-trading alpha compare --all` لترتيب الـ zoos جنباً إلى جنب.
@@ -1754,7 +1754,7 @@ Vibe-Trading/
│ │ │ ├── base.py # 19 عاملاً (rank/scale/ts_*/delta/decay_linear/safe_div/vwap)
│ │ │ ├── registry.py # تحميل بيانات وصفية AST فقط + حساب كسول + بوابات سلامة
│ │ │ ├── bench_runner.py # IC + تصنيف alive/reversed/dead
-│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (4)
+│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (20)
│ │ │
│ │ ├── api/ # وحدات مسارات FastAPI
│ │ │ └── alpha_routes.py # /alpha/list, /alpha/{id}, /alpha/bench, SSE stream
diff --git a/README_es.md b/README_es.md
index ffbe1d4fc..af2f274f9 100644
--- a/README_es.md
+++ b/README_es.md
@@ -52,12 +52,15 @@
> ⚠️ **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-10-21** 🛠️ **Cuentas de simulación y correcciones de la comunidad**: La simulación diaria incorpora accesos Agent/MCP, CLI, API y Web ([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939)). Se advierte sobre ajustes ignorados por el motor elegido ([#1947](https://github.com/HKUDS/Vibe-Trading/pull/1947)). Los flujos diarios vacíos activan la fuente alternativa; se identifica el proveedor real y se distingue el flujo neto total del de grandes órdenes. Se aclara la configuración de Telegram. Más correcciones y límites en [CHANGELOG](CHANGELOG.md).
+- **2026-10-21** 🚀 **Publicada la v0.1.17** ([Notas de la versión](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.17), `pip install -U vibe-trading-ai`): 638 commits y 228 pull requests fusionados desde la 0.1.16, más 41 pull requests cuyo trabajo entró mediante commits de los mantenedores, de 33 contribuidores. **Lo principal es la simulación diaria:** una herramienta `paper_trade_step` para el agente y MCP, y cuentas de simulación guardadas desde `vibe-trading paper`, la API REST y una página web, casan órdenes o una estrategia con barras diarias ya cerradas sin llegar nunca a un bróker; las cuentas guardadas solo avanzan hacia adelante ([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939)). **Casi todo lo demás son correcciones, y muchas tienen la misma forma: un valor que no se puede calcular ahora lo dice en lugar de convertirse en un número verosímil.** El profit factor sin operaciones perdedoras, una correlación indefinida y una ratio sin cota devuelven `null`, y un factor con pocas observaciones de IC se omite indicando el motivo; un precio ausente ya no une dos retornos; un ajuste de backtest mal escrito o que el motor elegido no usa se avisa en la ficha de la ejecución. **Novedades:** Brasil (B3), 478 factores en Alpha Zoo (antes 462), Slack y Discord en la configuración guiada de canales, informes por email en HTML o como PDF con contraseña opcional, uso de tokens en Run Detail, chat y swarm, un proveedor `claude-cli`, y persa y turco, con 11 idiomas en la interfaz. **Corregido hoy:** el respaldo del flujo de fondos indica su fuente real y separa el flujo total del de órdenes grandes, y se aclararon los pasos de configuración de Telegram. ¡Gracias a [@rudycelekli](https://github.com/rudycelekli), [@Shizoqua](https://github.com/Shizoqua), [@he-yufeng](https://github.com/he-yufeng), [@shadowinlife](https://github.com/shadowinlife), [@zeus229](https://github.com/zeus229), [@alexwan02](https://github.com/alexwan02), [@Jackzigen](https://github.com/Jackzigen), [@cgycorey](https://github.com/cgycorey), [@MetaAviator](https://github.com/MetaAviator), [@lorenzozanee](https://github.com/lorenzozanee), [@Mikesad](https://github.com/Mikesad), [@remote-controlled-man](https://github.com/remote-controlled-man), [@Romzhou](https://github.com/Romzhou), [@sambazhu](https://github.com/sambazhu), [@wavebyrd](https://github.com/wavebyrd), [@BHhhh-123](https://github.com/BHhhh-123), [@Bortlesboat](https://github.com/Bortlesboat), [@bygordon130-hub](https://github.com/bygordon130-hub), [@davidalmeida90](https://github.com/davidalmeida90), [@DrDLyuan](https://github.com/DrDLyuan), [@Emad211](https://github.com/Emad211), [@Frank-zhu2000](https://github.com/Frank-zhu2000), [@goatyyc](https://github.com/goatyyc), [@hunters1011-ctrl](https://github.com/hunters1011-ctrl), [@incorpore](https://github.com/incorpore), [@mdb1230](https://github.com/mdb1230), [@mminkus](https://github.com/mminkus), [@passionbull](https://github.com/passionbull), [@rwxyx518-prog](https://github.com/rwxyx518-prog), [@ThreeTima](https://github.com/ThreeTima), [@tomaszkubiak-courses](https://github.com/tomaszkubiak-courses) y [@xaritoku](https://github.com/xaritoku)!
- **2026-10-20** 🛠️ **Diagnóstico de backtests y precisión del análisis**: Advertimos sobre claves de configuración no reconocidas, mostramos las correlaciones indefinidas como desconocidas en vez de cero y reutilizamos el factor de anualización guardado al revalidar ([#1935](https://github.com/HKUDS/Vibe-Trading/pull/1935), [#1933](https://github.com/HKUDS/Vibe-Trading/pull/1933), [#1915](https://github.com/HKUDS/Vibe-Trading/pull/1915)). También mejoramos las comprobaciones de muestras de factores, la validación de entradas, la clasificación de mercados en diarios de operaciones, el formato numérico y las respuestas en streaming de WeCom. Las 14 correcciones y sus límites están en [CHANGELOG](CHANGELOG.md).
- **2026-10-19** 🛠️ **Nueve correcciones de cálculos financieros**: Corregimos los pesos temporales de factores, los límites de precios de acciones A y los códigos de Pekín, la derivación de flujos del cuarto trimestre de la SEC y las ventanas de estimación de estudios de eventos. Conservamos la identidad de posiciones Futu y valores diminutos de MACD/Bollinger; rechazamos varianzas específicas negativas y aplicamos diferenciales y swaps por par a los símbolos de divisas de Yahoo ([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912), [#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920), [#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930)). Detalles y límites de las nueve correcciones en [CHANGELOG](CHANGELOG.md).
+<details>
+<summary>Noticias anteriores</summary>
+
- **2026-10-17** 🛠️ **Uso de tokens y fiabilidad de la investigación**: Consulta el uso del modelo en el detalle de ejecución, el chat y swarm ([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890)). Un planificador común gestiona la investigación y las tareas opcionales en segundo plano ([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893)); la planificación de operaciones reales no cambia. Corregimos fechas y horas del diario, rutas de evidencias, empates de factores, rutas de memoria, errores numéricos y progreso en canales. Véase [CHANGELOG](CHANGELOG.md).
- **2026-10-16** 🛠️ **Protección de credenciales y cálculos financieros**: Ampliamos la ocultación de secretos de canales y proveedores ([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880)), actualizamos la caché al modificar datos locales ([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879)) y evitamos duplicar comisiones al invertir una posición ([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891)). Corregimos importes europeos, JSON estricto, comparaciones con cero y negativos, períodos de tenencia, pesos mínimos, máximos y mínimos planos y rutas de informes. Véase [CHANGELOG](CHANGELOG.md).
@@ -66,9 +69,6 @@
- **2026-10-14** 🛠️ **Correcciones de backtests, búsqueda y documentos**: Los indicadores de riesgo y las exportaciones de capital incluyen el resultado de la primera vela ([#1844](https://github.com/HKUDS/Vibe-Trading/pull/1844)). La búsqueda devuelve sesiones sin duplicados, conserva los títulos y muestra fragmentos con contexto ([#1827](https://github.com/HKUDS/Vibe-Trading/pull/1827), [#1834](https://github.com/HKUDS/Vibe-Trading/pull/1834)). Mejoramos la extracción de PDF/Office, rechazamos referencias a evidencias que no se pueden resolver y reforzamos la validación de datos financieros y el ocultamiento de credenciales.
-<details>
-<summary>Noticias anteriores</summary>
-
- **2026-10-13** 🧩 **Importación de carteras, adaptación de estrategias y herramientas de investigación**: La importación de posiciones de extraETF en modo de solo lectura permite valoraciones en EUR con fecha y propuestas de asignación; las estrategias adaptadas usan sus propios resultados de backtest ([#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170), [#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149)). Se añaden conexiones verificadas a modelos personalizados, un tablero manual compartido en Pixel Office, interfaces en persa y turco, consultas de solo lectura a mStock y datos de Gildata.
Se corrigen la contabilidad por moneda de liquidación, la selección de mercado y la base de coste de Futu, los lotes por valor de Hong Kong, los parámetros de validación guardados y el progreso de ejecución. Se completan las reglas declaradas de verificación numérica y la división del bucle del agente. mStock sigue excluido de la agregación de carteras; la ejecución de opciones de Robinhood no está disponible. Alcance y límites en [CHANGELOG](CHANGELOG.md).
@@ -558,7 +558,7 @@ Más allá del OHLCV, **22 herramientas de datos de solo lectura** alcanzan fund
<img src="https://www.qveris.com/logo-color.png" alt="QVeris" height="36">
-**Datos: enrutamiento gratuito o premium, tú decides.** Lo gratuito sigue siendo el valor por defecto: 23 fuentes integradas con fallback por riesgo de bloqueo, sin clave, sin costo. Lo premium mediante QVeris añade más de 10.000 capacidades (según QVeris) en 63+ proveedores para Greeks de opciones, fundamentales premium, datos de China/HK/globales, macro, cripto, noticias y presentaciones regulatorias; las llamadas fallidas no se cobran. Actívalo en Settings -> QVeris o con `vibe-trading data mode paid`.
+**Datos: enrutamiento gratuito o premium, tú decides.** Lo gratuito sigue siendo el valor por defecto: 29 fuentes integradas con fallback por riesgo de bloqueo, sin clave, sin costo. Lo premium mediante QVeris añade más de 10.000 capacidades (según QVeris) en 63+ proveedores para Greeks de opciones, fundamentales premium, datos de China/HK/globales, macro, cripto, noticias y presentaciones regulatorias; las llamadas fallidas no se cobran. Actívalo en Settings -> QVeris o con `vibe-trading data mode paid`.
*Aviso de QVeris: [registrarte a través del enlace de referido de Vibe-Trading](https://qveris.ai/?ref=Vyjjo5G_1cAHJA) te da **+1.000 créditos de bonificación** y apoya el proyecto.*
<!-- QVERIS-END -->
@@ -585,7 +585,7 @@ Los inventarios detallados se pliegan a continuación para mantener el README pr
| Cripto | 7 | `perp-funding-basis`, `liquidation-heatmap`, `stablecoin-flow`, `defi-yield`, `onchain-analysis` |
| Flujo | 8 | `hk-connect-flow`, `us-etf-flow`, `edgar-sec-filings`, `financial-statement`, `adr-hshare` |
| Herramienta | 10 | `backtest-diagnose`, `report-generate`, `pine-script`, `doc-reader`, `web-reader`, `vnpy-export`, `trade-journal` |
-| Investigación | 2 | `alpha-zoo`, `strategy-dev-manager` |
+| Investigación | 3 | `alpha-zoo`, `strategy-dev-manager`, `strategy-discovery` |
| Análisis de Riesgo | 1 | `ashare-pre-st-filter` |
</details>
@@ -706,7 +706,7 @@ junto al catálogo incluido (los archivos con el mismo nombre lo sobrescriben, i
| **alpha101** | 101 | Kakushadze (2015), "101 Formulaic Alphas", arXiv:1601.00991 | Las fórmulas son contenido matemático |
| **gtja191** | 191 | Guotai Junan (2014), "191 Short-period Trading Alpha Factors" | Las fórmulas son contenido matemático |
| **academic** | 12 | Fama-French 5 + momentum de Carhart + reversión de Jegadeesh + máximo de 52 semanas de George-Hwang + iliquidez de Amihud + skew de Harvey-Siddique + betting-against-beta de Frazzini-Pedersen + estabilidad por recableado de correlación (proxies basados en precio) | Literatura académica pública |
-| **fundamental** | 4 | Datos de company facts de la SEC seguros PIT — earnings yield, ROE, rentabilidad bruta, crecimiento de activos (anclados a la fecha de presentación) | Datos financieros públicos |
+| **fundamental** | 20 | Datos de company facts de la SEC seguros PIT (14, anclados a la fecha de presentación: earnings yield, book-to-market, ROE, ROA, rentabilidad bruta, crecimiento, devengos, apalancamiento, rendimientos de flujo de caja…) + P/VC, P/V TTM y rentabilidad por dividendo de acciones A (3) + sus variantes neutrales por industria Shenwan (3) | Datos financieros públicos |
Ejecuta `vibe-trading alpha list` para explorar, `vibe-trading alpha show <id>` para ver fórmulas + fuente, `vibe-trading alpha bench --zoo X --universe Y --period Z` para puntuar un zoo completo, y `vibe-trading alpha compare --all` para clasificar zoos entre sí.
@@ -1842,7 +1842,7 @@ Vibe-Trading/
│ │ │ ├── base.py # 19 operadores (rank/scale/ts_*/delta/decay_linear/safe_div/vwap)
│ │ │ ├── registry.py # carga de metadatos solo por AST + cómputo diferido + puertas de sanidad
│ │ │ ├── bench_runner.py # IC + categorización alive/reversed/dead
-│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (4)
+│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (20)
│ │ │
│ │ ├── api/ # Módulos de rutas FastAPI
│ │ │ └── alpha_routes.py # /alpha/list, /alpha/{id}, /alpha/bench, flujo SSE
diff --git a/README_id.md b/README_id.md
index d9113e6ad..3829292a3 100644
--- a/README_id.md
+++ b/README_id.md
@@ -53,12 +53,15 @@
> ⚠️ **Peringatan keamanan:** Akun X `VibeTrading_HKU`, proyek Virtuals `101845`, dan kontrak token `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` bukan aset resmi Vibe-Trading. Kami tidak pernah meluncurkan atau mendukung token maupun memecoin apa pun. Jangan membeli, menghubungkan wallet, atau menandatangani apa pun. [Detail](SECURITY.md#official-channels--impersonation).
-- **2026-10-21** 🛠️ **Akun simulasi dan perbaikan komunitas**: Simulasi perdagangan harian kini tersedia melalui Agent/MCP, CLI, API, dan Web ([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939)). Pengaturan yang diabaikan mesin terpilih memunculkan peringatan ([#1947](https://github.com/HKUDS/Vibe-Trading/pull/1947)). Respons arus dana harian yang kosong memicu sumber cadangan; sumber sebenarnya dicantumkan dan arus bersih total dipisahkan dari arus pesanan besar. Panduan Telegram diperjelas. Perbaikan dan batasan lainnya ada di [CHANGELOG](CHANGELOG.md).
+- **2026-10-21** 🚀 **v0.1.17 dirilis** ([Catatan rilis](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.17), `pip install -U vibe-trading-ai`): 638 commit dan 228 pull request yang digabung sejak 0.1.16, ditambah 41 pull request yang pekerjaannya masuk lewat commit maintainer, dari 33 kontributor. **Sorotan utamanya adalah simulasi perdagangan harian:** tool `paper_trade_step` untuk agen dan MCP, serta akun simulasi tersimpan lewat `vibe-trading paper`, REST API, dan halaman Web, mencocokkan order atau strategi dengan bar harian yang sudah selesai tanpa pernah menyentuh broker; akun tersimpan hanya bergerak maju ([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939)). **Sebagian besar sisanya adalah perbaikan ketepatan, dan banyak yang berpola sama: nilai yang tidak bisa dihitung kini mengatakannya, bukan berubah menjadi angka yang tampak masuk akal.** Profit factor tanpa transaksi rugi, korelasi yang tidak terdefinisi, dan rasio tak terbatas dikembalikan sebagai `null`, dan faktor dengan observasi IC yang terlalu sedikit dilewati beserta alasannya; harga yang hilang tidak lagi menjembatani imbal hasil; pengaturan backtest yang salah eja atau tidak dipakai mesin terpilih dilaporkan di kartu run. **Baru:** Brasil (B3), 478 faktor Alpha Zoo (dari 462), Slack dan Discord di penyiapan channel terpandu, laporan email sebagai HTML atau PDF yang bisa diberi kata sandi, penggunaan token di Run Detail, chat, dan swarm, provider `claude-cli`, serta bahasa Persia dan Turki sehingga UI tersedia dalam 11 bahasa. **Diperbaiki hari ini:** fallback arus dana menyebut sumber sebenarnya dan memisahkan arus total dari arus order besar, dan langkah penyiapan Telegram diperjelas. Terima kasih [@rudycelekli](https://github.com/rudycelekli), [@Shizoqua](https://github.com/Shizoqua), [@he-yufeng](https://github.com/he-yufeng), [@shadowinlife](https://github.com/shadowinlife), [@zeus229](https://github.com/zeus229), [@alexwan02](https://github.com/alexwan02), [@Jackzigen](https://github.com/Jackzigen), [@cgycorey](https://github.com/cgycorey), [@MetaAviator](https://github.com/MetaAviator), [@lorenzozanee](https://github.com/lorenzozanee), [@Mikesad](https://github.com/Mikesad), [@remote-controlled-man](https://github.com/remote-controlled-man), [@Romzhou](https://github.com/Romzhou), [@sambazhu](https://github.com/sambazhu), [@wavebyrd](https://github.com/wavebyrd), [@BHhhh-123](https://github.com/BHhhh-123), [@Bortlesboat](https://github.com/Bortlesboat), [@bygordon130-hub](https://github.com/bygordon130-hub), [@davidalmeida90](https://github.com/davidalmeida90), [@DrDLyuan](https://github.com/DrDLyuan), [@Emad211](https://github.com/Emad211), [@Frank-zhu2000](https://github.com/Frank-zhu2000), [@goatyyc](https://github.com/goatyyc), [@hunters1011-ctrl](https://github.com/hunters1011-ctrl), [@incorpore](https://github.com/incorpore), [@mdb1230](https://github.com/mdb1230), [@mminkus](https://github.com/mminkus), [@passionbull](https://github.com/passionbull), [@rwxyx518-prog](https://github.com/rwxyx518-prog), [@ThreeTima](https://github.com/ThreeTima), [@tomaszkubiak-courses](https://github.com/tomaszkubiak-courses), dan [@xaritoku](https://github.com/xaritoku)!
- **2026-10-20** 🛠️ **Diagnostik backtest dan ketepatan analisis**: Memberi peringatan untuk kunci konfigurasi yang tidak dikenali, menampilkan korelasi yang tidak terdefinisi sebagai tidak diketahui alih-alih nol, dan menggunakan kembali faktor annualisasi tersimpan saat validasi ulang ([#1935](https://github.com/HKUDS/Vibe-Trading/pull/1935), [#1933](https://github.com/HKUDS/Vibe-Trading/pull/1933), [#1915](https://github.com/HKUDS/Vibe-Trading/pull/1915)). Juga memperbaiki pemeriksaan sampel faktor, validasi masukan alat, klasifikasi pasar dalam jurnal perdagangan, format angka, dan balasan streaming WeCom. Seluruh 14 perbaikan dan batasan yang tersisa ada di [CHANGELOG](CHANGELOG.md).
- **2026-10-19** 🛠️ **Sembilan perbaikan perhitungan keuangan**: Memperbaiki bobot peluruhan faktor, batas harga saham A dan kode Beijing, derivasi arus kuartal keempat SEC, serta jendela estimasi studi peristiwa. Mempertahankan identitas posisi Futu dan nilai MACD/Bollinger yang sangat kecil; menolak varians spesifik negatif dan menerapkan spread serta swap per pasangan pada simbol valas Yahoo ([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912), [#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920), [#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930)). Rincian sembilan perbaikan dan batasannya ada di [CHANGELOG](CHANGELOG.md).
+<details>
+<summary>Berita sebelumnya</summary>
+
- **2026-10-17** 🛠️ **Penggunaan token dan keandalan riset**: Lihat penggunaan model pada detail eksekusi, chat, dan swarm ([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890)). Penjadwal bersama kini menangani riset dan tugas latar belakang opsional ([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893)); penjadwalan perdagangan live tidak berubah. Memperbaiki penggabungan tanggal/waktu jurnal, jalur bukti, nilai faktor yang sama, lokasi memori, penanganan kesalahan numerik, dan progres kanal. Lihat [CHANGELOG](CHANGELOG.md).
- **2026-10-16** 🛠️ **Keamanan kredensial dan ketepatan perhitungan keuangan**: Memperluas penyamaran rahasia kanal dan penyedia model ([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880)), memperbarui cache harga setelah data lokal diubah ([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879)), dan mencegah penghitungan ganda biaya pembalikan posisi ([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891)). Memperbaiki angka jurnal berformat Eropa, JSON ketat, perbandingan nol dan negatif, periode kepemilikan, bobot minimum, deteksi puncak/lembah datar, serta jalur laporan. Lihat [CHANGELOG](CHANGELOG.md).
@@ -67,9 +70,6 @@
- **2026-10-14** 🛠️ **Perbaikan backtest, pencarian, dan pembacaan dokumen**: Rasio risiko dan ekspor ekuitas kini mencakup laba/rugi pada bar pertama ([#1844](https://github.com/HKUDS/Vibe-Trading/pull/1844)). Pencarian menampilkan sesi tanpa duplikasi, mempertahankan judul, dan menyertakan cuplikan konteks ([#1827](https://github.com/HKUDS/Vibe-Trading/pull/1827), [#1834](https://github.com/HKUDS/Vibe-Trading/pull/1834)). Ekstraksi PDF/Office diperbaiki, referensi bukti yang tidak dapat ditelusuri ditolak, serta validasi masukan perhitungan keuangan dan penyamaran kredensial diperkuat.
-<details>
-<summary>Berita sebelumnya</summary>
-
- **2026-10-13** 🧩 **Impor portofolio, adaptasi strategi, dan alat riset**: Impor kepemilikan extraETF hanya-baca mendukung valuasi EUR dengan tanggal dan usulan alokasi; strategi hasil adaptasi memakai bukti backtest-nya sendiri ([#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170), [#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149)). Ditambahkan endpoint model kustom yang telah diuji, papan tugas manual bersama Pixel Office, antarmuka Persia/Turki, kueri mStock hanya-baca, dan data riset Gildata.
Perbaikan mencakup pembukuan per mata uang penyelesaian, pilihan pasar dan dasar biaya Futu, ukuran lot per saham Hong Kong, pengaturan validasi tersimpan, serta progres eksekusi. Registrasi aturan verifikasi angka dan pemisahan loop agen juga selesai. mStock belum masuk agregasi portofolio; eksekusi opsi Robinhood belum tersedia. Cakupan dan batasan ada di [CHANGELOG](CHANGELOG.md).
@@ -720,7 +720,7 @@ Di luar OHLCV, **22 tool data read-only** menjangkau fundamental & flow — fund
<img src="https://www.qveris.com/logo-color.png" alt="QVeris" height="36">
-**Data: routing gratis atau premium, pilihan Anda.** Mode gratis tetap default: 23 sumber bawaan dengan fallback berdasarkan risiko ban, tanpa key dan tanpa biaya. Premium melalui QVeris menambahkan 10.000+ kapabilitas (menurut QVeris) dari 63+ provider untuk options Greeks, fundamental premium, data China/HK/global, makro, crypto, berita, dan filing; call yang gagal tidak dikenakan biaya. Aktifkan di Settings -> QVeris atau `vibe-trading data mode paid`.
+**Data: routing gratis atau premium, pilihan Anda.** Mode gratis tetap default: 29 sumber bawaan dengan fallback berdasarkan risiko ban, tanpa key dan tanpa biaya. Premium melalui QVeris menambahkan 10.000+ kapabilitas (menurut QVeris) dari 63+ provider untuk options Greeks, fundamental premium, data China/HK/global, makro, crypto, berita, dan filing; call yang gagal tidak dikenakan biaya. Aktifkan di Settings -> QVeris atau `vibe-trading data mode paid`.
*Disclosure QVeris: [mendaftar melalui referral link Vibe-Trading](https://qveris.ai/?ref=Vyjjo5G_1cAHJA) memberi Anda **+1.000 bonus kredit** sekaligus mendukung proyek.*
<!-- QVERIS-END -->
@@ -866,7 +866,7 @@ bersama roster bawaan (file dengan nama sama akan override, seperti user skill)
| **alpha101** | 101 | Kakushadze (2015), "101 Formulaic Alphas", arXiv:1601.00991 | Formulas are mathematical content |
| **gtja191** | 191 | Guotai Junan (2014), "191 Short-period Trading Alpha Factors" | Formulas are mathematical content |
| **academic** | 12 | Fama-French 5 + Carhart momentum + Jegadeesh reversal + George-Hwang 52-week-high + Amihud illiquidity + Harvey-Siddique skew + Frazzini-Pedersen betting-against-beta + correlation-rewiring stability (price-based proxies) | Public academic literature |
-| **fundamental** | 4 | PIT-safe SEC company facts — earnings yield, ROE, gross profitability, asset growth (filed-date anchored) | Public financial data |
+| **fundamental** | 20 | PIT-safe SEC company facts (14, filed-date anchored: earnings yield, book-to-market, ROE, ROA, gross profitability, growth, accruals, leverage, cash-flow yields …) + A-share P/B, P/S TTM and dividend yield (3) + their Shenwan industry-neutral variants (3) | Public financial data |
Jalankan `vibe-trading alpha list` untuk menjelajah, `vibe-trading alpha show <id>` untuk formula + source, `vibe-trading alpha bench --zoo X --universe Y --period Z` untuk menilai seluruh zoo, dan `vibe-trading alpha compare --all` untuk memberi peringkat antar-zoo.
@@ -2087,7 +2087,7 @@ Vibe-Trading/
│ │ │ ├── base.py # 19 operators (rank/scale/ts_*/delta/decay_linear/safe_div/vwap)
│ │ │ ├── registry.py # AST-only metadata load + lazy compute + sanity gates
│ │ │ ├── bench_runner.py # IC + alive/reversed/dead categorisation
-│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (4)
+│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (20)
│ │ │
│ │ ├── api/ # FastAPI route modules
│ │ │ └── alpha_routes.py # /alpha/list, /alpha/{id}, /alpha/bench, SSE stream
diff --git a/README_ja.md b/README_ja.md
index 2cb238e31..477d8077e 100644
--- a/README_ja.md
+++ b/README_ja.md
@@ -52,12 +52,15 @@
> ⚠️ **セキュリティ警告:** Xアカウント `VibeTrading_HKU`、Virtualsプロジェクト `101845`、およびトークンコントラクト `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` は、いずれもVibe-Trading公式のものではありません。Vibe-Tradingはこれまで、いかなるトークンやミームコインも発行・公認していません。購入、ウォレットの接続、署名は行わないでください。[詳細](SECURITY.md#official-channels--impersonation)
-- **2026-10-21** 🛠️ **ペーパー口座とコミュニティの問題修正**:日次ペーパー取引に Agent/MCP、CLI、API、Web の入口を追加([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939))。選択したエンジンが無視する設定を警告します([#1947](https://github.com/HKUDS/Vibe-Trading/pull/1947))。資金フローの日次空レスポンスでも代替ソースを試し、実際の出所を表示して総純流入と大口純流入を区別します。Telegram の設定手順を補足。その他の修正と制約は [CHANGELOG](CHANGELOG.md) を参照してください。
+- **2026-10-21** 🚀 **v0.1.17 リリース**([リリースノート](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.17)、`pip install -U vibe-trading-ai`):0.1.16 以降のコミット 638 件とマージ済みプルリクエスト 228 件に加え、メンテナーのコミット経由で取り込まれたプルリクエストが 41 件あり、貢献者は 33 人です。**目玉は日次ペーパー取引です:** Agent と MCP 向けの `paper_trade_step` ツールと、`vibe-trading paper`・REST API・Web ページから使える保存型のペーパー口座が、確定した日足に対して注文や戦略を約定させます。ブローカーには一切到達せず、保存された口座は前にしか進みません([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939))。**残りの大半は正確性の修正で、その多くが同じ形をしています:計算できない値は、もっともらしい数字に化けるのではなく、計算できないことをそのまま示すようになりました。** 負けトレードのないプロフィットファクター、未定義の相関、上限のない比率は `null` を返し、IC の観測数が足りないファクターは理由付きでスキップされます。欠損した価格がリターンをつなぐことはなくなり、綴りを誤った設定や選択したエンジンが使わないバックテスト設定は実行カードで警告されます。**新機能:** ブラジル(B3)市場、Alpha Zoo のファクターが 462 から 478 に、Slack と Discord のガイド付きチャネル設定、HTML またはパスワード保護できる PDF のメールレポート、Run Detail・チャット・Swarm での Token 使用量表示、`claude-cli` プロバイダー、ペルシャ語とトルコ語の追加(UI は 11 言語)。**本日の修正:** 資金フローのフォールバックが実際のデータソースを示し、総フローと主力フローを分けるようになりました。Telegram の設定手順も明確にしました。[@rudycelekli](https://github.com/rudycelekli)、[@Shizoqua](https://github.com/Shizoqua)、[@he-yufeng](https://github.com/he-yufeng)、[@shadowinlife](https://github.com/shadowinlife)、[@zeus229](https://github.com/zeus229)、[@alexwan02](https://github.com/alexwan02)、[@Jackzigen](https://github.com/Jackzigen)、[@cgycorey](https://github.com/cgycorey)、[@MetaAviator](https://github.com/MetaAviator)、[@lorenzozanee](https://github.com/lorenzozanee)、[@Mikesad](https://github.com/Mikesad)、[@remote-controlled-man](https://github.com/remote-controlled-man)、[@Romzhou](https://github.com/Romzhou)、[@sambazhu](https://github.com/sambazhu)、[@wavebyrd](https://github.com/wavebyrd)、[@BHhhh-123](https://github.com/BHhhh-123)、[@Bortlesboat](https://github.com/Bortlesboat)、[@bygordon130-hub](https://github.com/bygordon130-hub)、[@davidalmeida90](https://github.com/davidalmeida90)、[@DrDLyuan](https://github.com/DrDLyuan)、[@Emad211](https://github.com/Emad211)、[@Frank-zhu2000](https://github.com/Frank-zhu2000)、[@goatyyc](https://github.com/goatyyc)、[@hunters1011-ctrl](https://github.com/hunters1011-ctrl)、[@incorpore](https://github.com/incorpore)、[@mdb1230](https://github.com/mdb1230)、[@mminkus](https://github.com/mminkus)、[@passionbull](https://github.com/passionbull)、[@rwxyx518-prog](https://github.com/rwxyx518-prog)、[@ThreeTima](https://github.com/ThreeTima)、[@tomaszkubiak-courses](https://github.com/tomaszkubiak-courses)、[@xaritoku](https://github.com/xaritoku) に感謝します!
- **2026-10-20** 🛠️ **バックテスト診断と研究結果の正確性**:認識されない設定キーを警告し、未定義の相関をゼロではなく不明として表示。再検証では保存済みの年率換算係数を再利用します([#1935](https://github.com/HKUDS/Vibe-Trading/pull/1935), [#1933](https://github.com/HKUDS/Vibe-Trading/pull/1933), [#1915](https://github.com/HKUDS/Vibe-Trading/pull/1915))。因子のサンプル数チェック、ツール入力検証、取引日誌の市場分類、数値表示、WeComのストリーミング返信も改善。全14件の修正と残る制約は [CHANGELOG](CHANGELOG.md)。
- **2026-10-19** 🛠️ **金融計算の9件の修正**:因子の減衰ウェイト、A株の市場別値幅制限と北京銘柄コード、SEC第4四半期のフロー推計、イベント分析の推定期間を修正。Futu保有銘柄の識別と微小なMACD・ボリンジャーバンドの値を保持し、負の固有分散を拒否。Yahooの為替コードにも通貨ペア別スプレッドとスワップを適用します([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912)、[#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920)、[#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930))。全9件の詳細と制約は [CHANGELOG](CHANGELOG.md)。
+<details>
+<summary>過去のニュース</summary>
+
- **2026-10-17** 🛠️ **Token 使用量とリサーチの信頼性**:実行詳細・チャット・swarm でモデル使用量を確認できます([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890))。リサーチと任意のバックグラウンドジョブに共通スケジューラを導入しました([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893))。実取引のスケジューラは変更していません。取引記録の日時結合、根拠ファイルのパス、因子の同値処理、メモリ保存先、数値エラー処理、チャネル進捗を修正。詳細は [CHANGELOG](CHANGELOG.md)。
- **2026-10-16** 🛠️ **認証情報の保護と金融計算の修正**:チャネル・モデルの認証情報のマスキングを拡充([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880))、ローカルデータ更新後の価格キャッシュを更新([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879))、ドテン売買の手数料の二重計上を修正([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891))。欧州形式の取引金額、厳密な JSON、ゼロ・負値の比較、保有期間、最低ウェイト、横ばいの高値・安値判定、レポートのパスも修正。[CHANGELOG](CHANGELOG.md) を参照。
@@ -66,9 +69,6 @@
- **2026-10-14** 🛠️ **バックテスト・検索・文書読み取りの修正**:リスク指標と資産推移のエクスポートに最初のバーの損益を反映([#1844](https://github.com/HKUDS/Vibe-Trading/pull/1844))。セッション検索は重複するセッションを除き、タイトルを保持して一致箇所の前後を表示します([#1827](https://github.com/HKUDS/Vibe-Trading/pull/1827)、[#1834](https://github.com/HKUDS/Vibe-Trading/pull/1834))。PDF/Office の内容抽出を改善し、解決できない根拠参照を拒否。金融計算の入力検証と認証情報のマスキングも強化しました。
-<details>
-<summary>過去のニュース</summary>
-
- **2026-10-13** 🧩 **ポートフォリオ取り込み・戦略適応・調査ツール**:extraETF の保有明細を読み取り専用で取り込み、日付付きのユーロ評価と資産配分案に対応。適応後の子戦略は自身のバックテスト結果を根拠に使います([#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170)、[#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149))。接続テスト済みのカスタムモデル、Pixel Office の共有手動タスクボード、ペルシャ語・トルコ語 UI、mStock の読み取り専用照会、Gildata の調査データを追加しました。
決済通貨別の損益集計、Futu の市場選択と取得原価、香港株の銘柄別売買単位、保存済み検証設定、実行進捗を修正。数値検証ルールの明示的な登録とエージェントループの分割も完了しました。mStock は引き続きポートフォリオ集計の対象外で、Robinhood のオプション注文は未対応です。範囲と制約は [CHANGELOG](CHANGELOG.md) を参照。
@@ -559,7 +559,7 @@ OHLCV にとどまらず、**22 の読み取り専用データツール**がフ
<img src="https://www.qveris.com/logo-color.png" alt="QVeris" height="36">
-**データは無料ルーティングが標準、必要なときだけプレミアム。** 既定では 23 の内蔵ソースが自動フォールバックし、key も費用も不要です。QVeris を使うと、63+ providers と 10,000+ capabilities(per QVeris)で、オプション Greeks、高度なファンダメンタルズ、中国・香港・グローバルデータ、マクロ、暗号資産、ニュース、filings を補えます。失敗した call は課金されません。Settings → QVeris または `vibe-trading data mode paid` で有効化できます。
+**データは無料ルーティングが標準、必要なときだけプレミアム。** 既定では 29 の内蔵ソースが自動フォールバックし、key も費用も不要です。QVeris を使うと、63+ providers と 10,000+ capabilities(per QVeris)で、オプション Greeks、高度なファンダメンタルズ、中国・香港・グローバルデータ、マクロ、暗号資産、ニュース、filings を補えます。失敗した call は課金されません。Settings → QVeris または `vibe-trading data mode paid` で有効化できます。
*QVeris disclosure: [Vibe-Trading の紹介リンク](https://qveris.ai/?ref=Vyjjo5G_1cAHJA) から登録すると **+1,000 クレジット** が追加付与され、プロジェクトの支援にもなります。*
<!-- QVERIS-END -->
@@ -700,7 +700,7 @@ Paper-vs-live is a **structural per-broker runtime guard** (account-id format, h
| **alpha101** | 101 | Kakushadze (2015)、"101 Formulaic Alphas"、arXiv:1601.00991 | Formula は数学的内容 |
| **gtja191** | 191 | 国泰君安 (2014)、「191 短周期取引型 alpha 因子」 | Formula は数学的内容 |
| **academic** | 12 | Fama-French 5 + Carhart momentum(価格ベースの proxy) + Jegadeesh reversal + George-Hwang 52-week-high + Amihud illiquidity + Harvey-Siddique skew + Frazzini-Pedersen betting-against-beta + correlation-rewiring stability | 公開された学術文献 |
-| **fundamental** | 4 | PIT セーフな SEC company facts — earnings yield、ROE、gross profitability、asset growth(filed-date 基準) | 公開財務データ |
+| **fundamental** | 20 | PIT セーフな SEC company facts(14 個、filed-date 基準:earnings yield、book-to-market、ROE、ROA、gross profitability、成長率、accruals、レバレッジ、キャッシュフロー利回りなど)+ A 株の PBR・PSR TTM・配当利回り(3 個)+ その申万業種中立版(3 個) | 公開財務データ |
`vibe-trading alpha list` で閲覧、`vibe-trading alpha show <id>` で formula + ソース、`vibe-trading alpha bench --zoo X --universe Y --period Z` で zoo 全体をスコアリング、`vibe-trading alpha compare --all` で zoo 同士を並べてランク付けできます。
@@ -1762,7 +1762,7 @@ Vibe-Trading/
│ │ │ ├── base.py # 19 個のオペレーター (rank/scale/ts_*/delta/decay_linear/safe_div/vwap)
│ │ │ ├── registry.py # AST 限定のメタデータ読み込み + 遅延計算 + sanity gate
│ │ │ ├── bench_runner.py # IC + alive/reversed/dead 分類
-│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (4)
+│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (20)
│ │ │
│ │ ├── api/ # FastAPI ルートモジュール
│ │ │ └── alpha_routes.py # /alpha/list、/alpha/{id}、/alpha/bench、SSE ストリーム
diff --git a/README_ko.md b/README_ko.md
index b4c35e65b..dbcedf911 100644
--- a/README_ko.md
+++ b/README_ko.md
@@ -52,12 +52,15 @@
> ⚠️ **보안 경고:** X 계정 `VibeTrading_HKU`, Virtuals 프로젝트 `101845`, 토큰 컨트랙트 `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4`는 모두 Vibe-Trading 공식과 무관합니다. Vibe-Trading은 어떠한 토큰이나 밈코인도 발행하거나 공식적으로 지지한 적이 없습니다. 해당 토큰을 구매하거나 지갑을 연결하거나 어떠한 서명도 하지 마세요. [자세히 보기](SECURITY.md#official-channels--impersonation).
-- **2026-10-21** 🛠️ **모의 계좌와 커뮤니티 문제 수정**: 일별 모의 거래에 Agent/MCP, CLI, API, Web 진입점을 추가했습니다([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939)). 선택한 엔진이 무시하는 설정을 경고합니다([#1947](https://github.com/HKUDS/Vibe-Trading/pull/1947)). 일별 자금 흐름 응답이 비어 있어도 대체 소스를 시도하며, 실제 출처와 전체 순유입·대형 주문 순유입을 구분합니다. Telegram 설정 안내를 보완했습니다. 다른 수정과 제한 사항은 [CHANGELOG](CHANGELOG.md)를 참고하세요.
+- **2026-10-21** 🚀 **v0.1.17 출시**([릴리스 노트](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.17), `pip install -U vibe-trading-ai`): 0.1.16 이후 커밋 638개와 병합된 풀 리퀘스트 228개, 그리고 메인테이너 커밋으로 반영된 풀 리퀘스트 41개이며 기여자는 33명입니다. **이번 릴리스의 핵심은 일별 모의 거래입니다:** Agent와 MCP용 `paper_trade_step` 도구, 그리고 `vibe-trading paper`, REST API, 웹 페이지에서 쓰는 저장형 모의 계좌가 마감된 일봉에 주문이나 전략을 체결하며 브로커에는 절대 닿지 않습니다. 저장된 계좌는 앞으로만 진행합니다([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939)). **나머지 대부분은 정확성 수정이며 상당수가 같은 형태입니다: 계산할 수 없는 값은 그럴듯한 숫자로 바뀌는 대신 계산할 수 없다고 그대로 알려 줍니다.** 손실 거래가 없는 수익 팩터, 정의되지 않은 상관계수, 상한이 없는 비율은 `null`로 반환되고, IC 관측치가 부족한 팩터는 이유와 함께 건너뜁니다. 누락된 가격이 수익률을 잇지 않으며, 철자가 틀렸거나 선택한 엔진이 쓰지 않는 백테스트 설정은 실행 카드에 경고로 표시됩니다. **새 기능:** 브라질(B3) 시장, 462개에서 478개로 늘어난 Alpha Zoo 팩터, 안내형 채널 설정에 추가된 Slack과 Discord, HTML 또는 비밀번호로 보호할 수 있는 PDF 이메일 보고서, Run Detail·채팅·Swarm의 Token 사용량, `claude-cli` 제공자, 페르시아어와 튀르키예어 추가(UI 11개 언어). **오늘의 수정:** 자금 흐름 대체 경로가 실제 데이터 출처를 밝히고 총 흐름과 주력 흐름을 구분하며, Telegram 설정 절차를 보완했습니다. [@rudycelekli](https://github.com/rudycelekli), [@Shizoqua](https://github.com/Shizoqua), [@he-yufeng](https://github.com/he-yufeng), [@shadowinlife](https://github.com/shadowinlife), [@zeus229](https://github.com/zeus229), [@alexwan02](https://github.com/alexwan02), [@Jackzigen](https://github.com/Jackzigen), [@cgycorey](https://github.com/cgycorey), [@MetaAviator](https://github.com/MetaAviator), [@lorenzozanee](https://github.com/lorenzozanee), [@Mikesad](https://github.com/Mikesad), [@remote-controlled-man](https://github.com/remote-controlled-man), [@Romzhou](https://github.com/Romzhou), [@sambazhu](https://github.com/sambazhu), [@wavebyrd](https://github.com/wavebyrd), [@BHhhh-123](https://github.com/BHhhh-123), [@Bortlesboat](https://github.com/Bortlesboat), [@bygordon130-hub](https://github.com/bygordon130-hub), [@davidalmeida90](https://github.com/davidalmeida90), [@DrDLyuan](https://github.com/DrDLyuan), [@Emad211](https://github.com/Emad211), [@Frank-zhu2000](https://github.com/Frank-zhu2000), [@goatyyc](https://github.com/goatyyc), [@hunters1011-ctrl](https://github.com/hunters1011-ctrl), [@incorpore](https://github.com/incorpore), [@mdb1230](https://github.com/mdb1230), [@mminkus](https://github.com/mminkus), [@passionbull](https://github.com/passionbull), [@rwxyx518-prog](https://github.com/rwxyx518-prog), [@ThreeTima](https://github.com/ThreeTima), [@tomaszkubiak-courses](https://github.com/tomaszkubiak-courses), [@xaritoku](https://github.com/xaritoku)에게 감사드립니다!
- **2026-10-20** 🛠️ **백테스트 진단과 연구 결과의 정확성**: 인식되지 않는 백테스트 설정 키를 경고하고, 정의되지 않은 상관관계를 0 대신 알 수 없음으로 표시하며, 재검증 시 저장된 연율화 계수를 재사용합니다([#1935](https://github.com/HKUDS/Vibe-Trading/pull/1935), [#1933](https://github.com/HKUDS/Vibe-Trading/pull/1933), [#1915](https://github.com/HKUDS/Vibe-Trading/pull/1915)). 팩터 표본 수 검사, 도구 입력 검증, 거래 일지 시장 분류, 숫자 표시와 WeCom 스트리밍 응답도 개선했습니다. 전체 14건의 수정과 남은 제한 사항은 [CHANGELOG](CHANGELOG.md)를 참고하세요.
- **2026-10-19** 🛠️ **금융 계산 오류 9건 수정**: 팩터 감쇠 가중치, A주 시장별 가격 제한과 베이징 종목 코드, SEC 4분기 유량 추정, 이벤트 연구 추정 기간을 수정했습니다. Futu 보유 종목 식별과 작은 MACD·볼린저 밴드 값을 보존하고 음의 고유 분산을 거부합니다. Yahoo 외환 코드에도 통화쌍별 스프레드와 스왑을 적용합니다([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912), [#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920), [#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930)). 전체 9건과 제한 사항은 [CHANGELOG](CHANGELOG.md)를 참고하세요.
+<details>
+<summary>이전 뉴스</summary>
+
- **2026-10-17** 🛠️ **Token 사용량과 리서치 신뢰성**: 실행 상세·채팅·swarm에서 모델 사용량을 확인할 수 있습니다([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890)). 리서치와 선택적 백그라운드 작업에 공통 스케줄러를 적용했으며([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893)), 실거래 스케줄러는 변경하지 않았습니다. 거래 일지 날짜·시간 결합, 근거 파일 경로, 팩터 동률 처리, 메모리 저장 경로, 수치 오류 처리와 채널 진행 표시를 수정했습니다. [CHANGELOG](CHANGELOG.md)를 참조하세요.
- **2026-10-16** 🛠️ **인증 정보 보호와 금융 계산 수정**: 채널·모델 인증 정보 마스킹을 확대하고([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880)), 로컬 데이터 수정 후 가격 캐시를 갱신하며([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879)), 포지션 전환 수수료 중복 계산을 수정했습니다([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891)). 유럽식 거래 금액, 엄격한 JSON, 0·음수 비교, 보유 기간, 최소 비중, 평평한 고점·저점 판정, 보고서 경로도 수정했습니다. [CHANGELOG](CHANGELOG.md)를 참조하세요.
@@ -66,9 +69,6 @@
- **2026-10-14** 🛠️ **백테스트·검색·문서 읽기 수정**: 위험 지표와 자산 가치 내보내기에 첫 봉의 손익을 반영합니다([#1844](https://github.com/HKUDS/Vibe-Trading/pull/1844)). 세션 검색은 세션 중복을 제거하고 제목을 유지하며 일치한 부분의 문맥을 표시합니다([#1827](https://github.com/HKUDS/Vibe-Trading/pull/1827), [#1834](https://github.com/HKUDS/Vibe-Trading/pull/1834)). PDF/Office 내용 추출을 개선하고 확인할 수 없는 근거 참조를 거부하며, 금융 계산 입력 검증과 인증 정보 마스킹을 강화했습니다.
-<details>
-<summary>이전 뉴스</summary>
-
- **2026-10-13** 🧩 **포트폴리오 가져오기, 전략 적응 및 리서치 도구**: extraETF 보유 내역을 읽기 전용으로 가져와 날짜가 명시된 EUR 평가와 자산 배분 제안을 지원하며, 적응한 하위 전략은 자체 백테스트 근거를 사용합니다([#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170), [#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149)). 연결 테스트를 거친 사용자 지정 모델, Pixel Office 공유 수동 작업 보드, 페르시아어·튀르키예어 UI, mStock 읽기 전용 조회와 Gildata 리서치 데이터를 추가했습니다.
결제 통화별 회계 처리, Futu 시장 선택과 취득 원가, 홍콩 주식의 종목별 거래 단위, 저장된 검증 설정과 실행 진행 표시를 수정했습니다. 명시적 수치 검증 규칙과 에이전트 루프 분리도 완료했습니다. mStock은 포트폴리오 통합 집계에서 제외되며 Robinhood 옵션 주문 실행은 아직 지원하지 않습니다. 범위와 제약은 [CHANGELOG](CHANGELOG.md)를 참고하세요.
@@ -559,7 +559,7 @@ OHLCV를 넘어 **22개 읽기 전용 데이터 도구**가 펀더멘털과 자
<img src="https://www.qveris.com/logo-color.png" alt="QVeris" height="36">
-**데이터는 기본 무료 라우팅, 필요할 때만 프리미엄.** 기본값은 23개 내장 소스와 차단 위험 기반 폴백이며 key도 비용도 없습니다. QVeris를 켜면 63+ providers와 10,000+ capabilities(per QVeris)로 옵션 Greeks, 고급 펀더멘털, 중국/홍콩/글로벌 데이터, 매크로, 크립토, 뉴스, filings를 보강할 수 있고 실패한 호출은 과금되지 않습니다. Settings → QVeris 또는 `vibe-trading data mode paid`에서 활성화하세요.
+**데이터는 기본 무료 라우팅, 필요할 때만 프리미엄.** 기본값은 29개 내장 소스와 차단 위험 기반 폴백이며 key도 비용도 없습니다. QVeris를 켜면 63+ providers와 10,000+ capabilities(per QVeris)로 옵션 Greeks, 고급 펀더멘털, 중국/홍콩/글로벌 데이터, 매크로, 크립토, 뉴스, filings를 보강할 수 있고 실패한 호출은 과금되지 않습니다. Settings → QVeris 또는 `vibe-trading data mode paid`에서 활성화하세요.
*QVeris disclosure: [Vibe-Trading 추천 링크](https://qveris.ai/?ref=Vyjjo5G_1cAHJA)로 가입하면 **+1,000 크레딧**을 추가로 받고 프로젝트를 후원하게 됩니다.*
<!-- QVERIS-END -->
@@ -700,7 +700,7 @@ Paper-vs-live는 **구조적 브로커별 런타임 가드**(account-id 형식,
| **alpha101** | 101 | Kakushadze (2015), "101 Formulaic Alphas", arXiv:1601.00991 | 수식은 수학적 콘텐츠 |
| **gtja191** | 191 | 국태군안 (2014), "191 Short-period Trading Alpha Factors" | 수식은 수학적 콘텐츠 |
| **academic** | 12 | Fama-French 5 + Carhart 모멘텀 (가격 기반 proxy) + Jegadeesh reversal + George-Hwang 52-week-high + Amihud illiquidity + Harvey-Siddique skew + Frazzini-Pedersen betting-against-beta + correlation-rewiring stability | 공개 학술 문헌 |
-| **fundamental** | 4 | PIT-safe SEC company facts — earnings yield, ROE, gross profitability, asset growth (filed-date 기준) | 공개 재무 데이터 |
+| **fundamental** | 20 | PIT-safe SEC company facts(14개, filed-date 기준: earnings yield, book-to-market, ROE, ROA, gross profitability, 성장률, accruals, 레버리지, 현금흐름 수익률 등) + A주 PBR·PSR TTM·배당수익률(3개) + 그 선완(Shenwan) 업종 중립 버전(3개) | 공개 재무 데이터 |
`vibe-trading alpha list`로 카탈로그를 탐색하고, `vibe-trading alpha show <id>`로 수식과 소스 코드를 확인하며, `vibe-trading alpha bench --zoo X --universe Y --period Z`로 zoo 전체를 점수화하고, `vibe-trading alpha compare --all`로 zoo들을 나란히 순위화하세요.
@@ -1759,7 +1759,7 @@ Vibe-Trading/
│ │ │ ├── base.py # 19개 operator (rank/scale/ts_*/delta/decay_linear/safe_div/vwap)
│ │ │ ├── registry.py # AST-only 메타데이터 로딩 + lazy compute + sanity gate
│ │ │ ├── bench_runner.py # IC + alive/reversed/dead 분류
-│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (4)
+│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (20)
│ │ │
│ │ ├── api/ # FastAPI 라우트 모듈
│ │ │ └── alpha_routes.py # /alpha/list, /alpha/{id}, /alpha/bench, SSE stream
diff --git a/README_zh.md b/README_zh.md
index 5dea01609..0aa950c1f 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -52,12 +52,15 @@
> ⚠️ **安全警告:** X 账号 `VibeTrading_HKU`、Virtuals 项目 `101845` 及代币合约 `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` 均非 Vibe-Trading 官方。我们从未发行或背书任何代币或 meme 币。请勿购买、连接钱包或签名。[详细说明](SECURITY.md#official-channels--impersonation)。
-- **2026-10-21** 🛠️ **模拟账户与社区问题修复**:逐日模拟交易已提供 Agent/MCP、CLI、API 和 Web 入口([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939));回测会提示所选引擎忽略的配置([#1947](https://github.com/HKUDS/Vibe-Trading/pull/1947))。资金流日线空响应也会触发备用源,并标明实际来源、区分总净流入与主力净流入。补充 Telegram 配置步骤;交易日志、期货单位、归因、取消上传和目录错误修复详见 [CHANGELOG](CHANGELOG.md)。
+- **2026-10-21** 🚀 **v0.1.17 发布**([发布说明](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.17),`pip install -U vibe-trading-ai`):自 0.1.16 以来共 638 个提交、228 个合并的 PR,另有 41 个 PR 的改动经维护者提交合入,来自 33 位贡献者。**本版主角是逐日模拟交易:** Agent 与 MCP 可调用 `paper_trade_step` 工具,保存的模拟账户可通过 `vibe-trading paper`、REST API 和网页端使用;两者都按已收盘的日线撮合订单或策略,绝不触达券商,保存的账户只向前推进([#1939](https://github.com/HKUDS/Vibe-Trading/pull/1939))。**其余大部分是正确性修复,很多属于同一类问题:算不出来的值现在会如实说明,而不是变成一个看似合理的数字。** 没有亏损交易时的盈利因子、无定义的相关系数和无界比率返回 `null`,IC 样本不足的因子会被跳过并说明原因;缺失价格不再被用来拼接收益;拼错或所选引擎不使用的回测配置会在运行卡片中提示。**新增:** 巴西(B3)市场,Alpha Zoo 因子从 462 个增至 478 个,Slack 与 Discord 加入网页端渠道引导配置,邮件报告支持 HTML 或可设密码的 PDF,Run Detail、聊天和 Swarm 显示 Token 用量,`claude-cli` 模型提供方,以及波斯语和土耳其语(界面共 11 种语言)。**今日修复:** 资金流备用源会标明实际来源,并区分总净流入与主力净流入;Telegram 配置步骤已补充说明。感谢 [@rudycelekli](https://github.com/rudycelekli), [@Shizoqua](https://github.com/Shizoqua), [@he-yufeng](https://github.com/he-yufeng), [@shadowinlife](https://github.com/shadowinlife), [@zeus229](https://github.com/zeus229), [@alexwan02](https://github.com/alexwan02), [@Jackzigen](https://github.com/Jackzigen), [@cgycorey](https://github.com/cgycorey), [@MetaAviator](https://github.com/MetaAviator), [@lorenzozanee](https://github.com/lorenzozanee), [@Mikesad](https://github.com/Mikesad), [@remote-controlled-man](https://github.com/remote-controlled-man), [@Romzhou](https://github.com/Romzhou), [@sambazhu](https://github.com/sambazhu), [@wavebyrd](https://github.com/wavebyrd), [@BHhhh-123](https://github.com/BHhhh-123), [@Bortlesboat](https://github.com/Bortlesboat), [@bygordon130-hub](https://github.com/bygordon130-hub), [@davidalmeida90](https://github.com/davidalmeida90), [@DrDLyuan](https://github.com/DrDLyuan), [@Emad211](https://github.com/Emad211), [@Frank-zhu2000](https://github.com/Frank-zhu2000), [@goatyyc](https://github.com/goatyyc), [@hunters1011-ctrl](https://github.com/hunters1011-ctrl), [@incorpore](https://github.com/incorpore), [@mdb1230](https://github.com/mdb1230), [@mminkus](https://github.com/mminkus), [@passionbull](https://github.com/passionbull), [@rwxyx518-prog](https://github.com/rwxyx518-prog), [@ThreeTima](https://github.com/ThreeTima), [@tomaszkubiak-courses](https://github.com/tomaszkubiak-courses) 和 [@xaritoku](https://github.com/xaritoku)!
- **2026-10-20** 🛠️ **回测诊断与研究正确性**:对无法识别的回测配置键发出告警,将未定义的相关性显示为未知而非零,并在重新验证时复用已保存的年化因子([#1935](https://github.com/HKUDS/Vibe-Trading/pull/1935), [#1933](https://github.com/HKUDS/Vibe-Trading/pull/1933), [#1915](https://github.com/HKUDS/Vibe-Trading/pull/1915))。同时改进因子样本检查、工具输入校验、交易日志市场分类、数值格式和企业微信流式回复。完整 14 项修复及剩余限制见 [CHANGELOG](CHANGELOG.md)。
- **2026-10-19** 🛠️ **九项金融计算修复**:纠正因子衰减的新旧数据权重、A 股板块涨跌幅与北交所代码识别、SEC 第四季度流量推导及事件研究估计窗口。保留富途持仓代码身份和极小 MACD/布林带数值;拒绝负特异方差,让 Yahoo 外汇代码使用对应货币对的点差与隔夜费([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912)、[#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920)、[#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930))。完整九项修复与限制见 [CHANGELOG](CHANGELOG.md)。
+<details>
+<summary>更早的新闻</summary>
+
- **2026-10-17** 🛠️ **Token 用量与研究可靠性**:运行详情、聊天和 swarm 展示模型用量([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890))。研究任务与可选后台任务采用共享调度内核([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893)),实盘调度保持不变。修复交易日志日期时间配对、证据路径、因子并列值、记忆目录、数值错误处理与渠道进度。详见 [CHANGELOG](CHANGELOG.md)。
- **2026-10-16** 🛠️ **凭据安全与金融计算修复**:扩大渠道及模型凭据脱敏覆盖([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880)),本地数据修改后刷新行情缓存([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879)),反向开仓手续费只计一次([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891))。修正欧洲格式交易金额、严格 JSON、零值及负值比较、持仓周期、最低权重、平台型峰谷识别与报告路径。详见 [CHANGELOG](CHANGELOG.md)。
@@ -66,9 +69,6 @@
- **2026-10-14** 🛠️ **回测、搜索与文档读取修复**:风险比率与净值导出纳入首根 K 线盈亏([#1844](https://github.com/HKUDS/Vibe-Trading/pull/1844))。会话搜索按不同会话返回结果,保留标题并展示匹配上下文([#1827](https://github.com/HKUDS/Vibe-Trading/pull/1827)、[#1834](https://github.com/HKUDS/Vibe-Trading/pull/1834))。改进 PDF/Office 内容提取,拒绝无法解析的证据引用,并加强金融计算输入校验与凭证脱敏。
-<details>
-<summary>更早的新闻</summary>
-
- **2026-10-13** 🧩 **组合导入、策略适配与研究工具**:只读导入 extraETF 持仓,支持带日期的欧元估值与配置建议;适配后的子策略使用自己的回测证据([#1170](https://github.com/HKUDS/Vibe-Trading/issues/1170)、[#1149](https://github.com/HKUDS/Vibe-Trading/issues/1149))。新增经测试的自定义模型端点、共享的 Pixel Office 手动任务板、波斯语/土耳其语界面、mStock 只读查询及聚源研究数据。
修正按结算币种记账、富途市场选择与成本口径、港股逐标的每手股数、已保存的验证参数和运行进度;完成声明式数值核验与 Agent 循环拆分。mStock 暂不纳入组合汇总,Robinhood 期权执行仍不可用。范围与限制见 [CHANGELOG](CHANGELOG.md)。
@@ -574,7 +574,7 @@ LONGBRIDGE_ACCESS_TOKEN=...
<img src="https://www.qveris.com/logo-color.png" alt="QVeris" height="36">
-**数据可走免费,也可按需上付费。** 默认仍是 23 个内置免费源:自动 fallback、无需 key、无成本。通过 QVeris 可用一个 key 解锁 63+ provider、10,000+ capabilities(per QVeris),覆盖期权 Greeks、高级基本面、中国/港股/全球数据、宏观、加密、新闻与 filings;失败调用不扣费。入口在 Settings → QVeris 或 `vibe-trading data mode paid`。
+**数据可走免费,也可按需上付费。** 默认仍是 29 个内置免费源:自动 fallback、无需 key、无成本。通过 QVeris 可用一个 key 解锁 63+ provider、10,000+ capabilities(per QVeris),覆盖期权 Greeks、高级基本面、中国/港股/全球数据、宏观、加密、新闻与 filings;失败调用不扣费。入口在 Settings → QVeris 或 `vibe-trading data mode paid`。
*QVeris 披露:通过 [Vibe-Trading 推荐链接](https://qveris.ai/?ref=Vyjjo5G_1cAHJA) 注册可额外获得 **1,000 积分**,同时支持本项目。*
<!-- QVERIS-END -->
@@ -713,7 +713,7 @@ LONGBRIDGE_ACCESS_TOKEN=...
| **alpha101** | 101 | Kakushadze (2015), "101 Formulaic Alphas", arXiv:1601.00991 | 公式属于数学内容 |
| **gtja191** | 191 | 国君证券 (2014)《191 个短周期交易型 alpha 因子》研报 | 公式属于数学内容 |
| **academic** | 12 | Fama-French 5 因子 + Carhart 动量(基于价格的代理实现) + Jegadeesh reversal + George-Hwang 52-week-high + Amihud illiquidity + Harvey-Siddique skew + Frazzini-Pedersen betting-against-beta + correlation-rewiring 稳定性 | 公开学术文献 |
-| **fundamental** | 4 | PIT 安全的 SEC company facts——盈利收益率、ROE、毛利率因子、资产增长(按 filed-date 锚定) | 公开财务数据 |
+| **fundamental** | 20 | PIT 安全的 SEC company facts(14 个,按 filed-date 锚定:盈利收益率、账面市值比、ROE、ROA、毛利率因子、增长、应计、杠杆、现金流收益率等)+ A 股市净率、市销率 TTM、股息率(3 个)+ 其申万行业中性版本(3 个) | 公开财务数据 |
运行 `vibe-trading alpha list` 浏览全部因子,`vibe-trading alpha show <id>` 查看公式与源码,`vibe-trading alpha bench --zoo X --universe Y --period Z` 给一整个 zoo 打分,`vibe-trading alpha compare --all` 并排对比各个 zoo。
@@ -1757,7 +1757,7 @@ Vibe-Trading/
│ │ │ ├── base.py # 19 个算子(rank/scale/ts_*/delta/decay_linear/safe_div/vwap)
│ │ │ ├── registry.py # 纯 AST 元数据加载 + 惰性计算 + sanity 校验
│ │ │ ├── bench_runner.py # IC + alive/reversed/dead 分类
-│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (4)
+│ │ │ └── zoo/ # qlib158 (154) + alpha101 (101) + gtja191 (191) + academic (12) + fundamental (20)
│ │ │
│ │ ├── api/ # FastAPI 路由模块
│ │ │ └── alpha_routes.py # /alpha/list、/alpha/{id}、/alpha/bench、SSE 流
diff --git a/agent/SKILL.md b/agent/SKILL.md
index 8d0ea6e05..b94dd874c 100644
--- a/agent/SKILL.md
+++ b/agent/SKILL.md
@@ -1,6 +1,6 @@
---
name: vibe-trading
-version: 0.1.16
+version: 0.1.17
description: Professional finance research toolkit — backtesting (11 engines + benchmark comparison panel), factor analysis, Alpha Zoo (478 pre-built alphas across qlib158/alpha101/gtja191/academic/fundamental), options pricing, 90 finance skills, 30 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract → backtest → render) across 29 market-data sources (tushare, yfinance, okx, binance, akshare, baostock, tencent, mootdx, ccxt, futu, mt5, tickerall, local, eastmoney, sina, stooq, yahoo, pykrx, india_broker, qveris, longbridge, nobitex, wallex, plus optional-key finnhub/alphavantage/tiingo/fmp/gildata).
dependencies:
python: ">=3.11"
@@ -74,7 +74,7 @@ Feed a CSV broker export (同花顺 / 东财 / 富途 / generic), and the agent
5. `scan_shadow_signals` — list today's symbols that match your shadow's entry cadence (research only).
### Backtesting
-Create and run quantitative strategies across 11 engines (ChinaA, GlobalEquity, IndiaEquity, KoreaEquity, VietnamEquity, BrazilEquity, Crypto, ChinaFutures, GlobalFutures, Forex + options) with 29 market-data sources (auto-detect + ordered fallback; the hosted forex `tickerall` source is explicit-only):
+Create and run quantitative strategies across 11 engines (ChinaA, GlobalEquity, IndiaEquity, KoreaEquity, VietnamEquity, BrazilEquity, Crypto, ChinaFutures, GlobalFutures, Forex, cross-market Composite) plus an options portfolio engine, with 29 market-data sources (auto-detect + ordered fallback; the hosted forex `tickerall` source is explicit-only):
- **HK/US equities** via yfinance / stooq / yahoo (free, no API key); optionally via **Longbridge** historical OHLCV (`longbridge`, requires the optional SDK and `LONGBRIDGE_APP_KEY` / `LONGBRIDGE_APP_SECRET` / `LONGBRIDGE_ACCESS_TOKEN`). To force it for a run, set `"source": "longbridge"` in `config.json`.
- **Canada equities (TSX/TSXV)** via yahoo / yfinance using Yahoo's canonical `<TICKER>.TO` (TSX, e.g. `TD.TO`) or `<TICKER>.V` (TSXV, e.g. `PNG.V`) suffixes — free, no API key. The GlobalEquity engine uses CAD identity, whole-share orders, configurable Canadian commission/slippage, and the TSX/TSXV price-increment grid.
- **India equities (NSE/BSE)** via yahoo / yfinance using `<SYMBOL>.NS` (NSE, e.g. `RELIANCE.NS`) or `<SCRIP>.BO` (BSE, e.g. `500325.BO`) — free, no API key. The `IndiaEquityEngine` models T+1 delivery, no overnight shorts (set `allow_short` for intraday), configurable circuit bands, 1-share lots, and the STT/stamp-duty/exchange/GST cost stack. Optionally back-fill from your live broker via the `india_broker` source (Shoonya/Dhan; requires broker login).
@@ -213,7 +213,7 @@ Use `load_skill(name)` to access full methodology docs with code templates.
| `etf_holdings` | ETF look-through — SEC N-PORT (US) and full-book A-share fund reports | None |
| `prediction_market` | Event-contract search/market/history as labelled implied probability | None |
| `research_papers` | arXiv + OpenAlex search/read with source-anchored claim extraction | None |
-| `quantlib_call` | Pure-compute finance math — 265 functions across 19 quantlib modules | None |
+| `quantlib_call` | Pure-compute finance math — 308 functions across 24 quantlib modules | None |
| `cashflow_performance` | XIRR / MOIC / DPI / TVPI / TWR / Modified Dietz over dated cash flows | None |
| `orderbook_depth` | Crypto L2 ladder — spread bps, depth imbalance, impact cost | None |
| `sentiment` | Local lexicon text scoring + crypto Fear & Greed Index | None |
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index d1ed577d0..3f284e390 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "vibe-trading-frontend",
- "version": "0.1.16",
+ "version": "0.1.17",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "vibe-trading-frontend",
- "version": "0.1.16",
+ "version": "0.1.17",
"dependencies": {
"@fontsource/inter": "^5.3.0",
"@fontsource/jetbrains-mono": "^5.3.0",
diff --git a/frontend/package.json b/frontend/package.json
index c358f5a17..001ea5355 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,7 +1,7 @@
{
"name": "vibe-trading-frontend",
"private": true,
- "version": "0.1.16",
+ "version": "0.1.17",
"type": "module",
"engines": {
"node": ">=22.22.0"
diff --git a/frontend/src/components/layout/__tests__/Layout.test.tsx b/frontend/src/components/layout/__tests__/Layout.test.tsx
index 193166565..571fa0e6b 100644
--- a/frontend/src/components/layout/__tests__/Layout.test.tsx
+++ b/frontend/src/components/layout/__tests__/Layout.test.tsx
@@ -16,7 +16,7 @@ const sessions = [
vi.mock("react-i18next", () => ({
useTranslation: () => ({
t: (key: string) => ({
- "app.version": "v0.1.16",
+ "app.version": "v0.1.17",
"layout.agent": "Agent",
"layout.alphaZoo": "Alpha Zoo",
"layout.cancel": "Cancel",
diff --git a/frontend/src/i18n/locales/ar.json b/frontend/src/i18n/locales/ar.json
index d4ebfb6b3..944eddef5 100644
--- a/frontend/src/i18n/locales/ar.json
+++ b/frontend/src/i18n/locales/ar.json
@@ -1,6 +1,6 @@
{
"app": {
- "version": "v0.1.16"
+ "version": "v0.1.17"
},
"navigation": {
"menu": "استعرض الميزات",
@@ -241,16 +241,16 @@
"deliveryChannelPlaceholder": "telegram أو feishu … (اتركه فارغًا لإبقاء النتائج داخل التطبيق)",
"deliveryTargetLabel": "وجهة القناة",
"deliveryTargetPlaceholder": "معرّف محادثة / مجموعة / مستخدم",
- "deliveryFormatLabel": "Email report format",
- "deliveryFormatDefault": "Channel default (plain text)",
- "deliveryFormatHtml": "HTML email",
- "deliveryFormatPdf": "PDF attachment",
+ "deliveryFormatLabel": "تنسيق تقرير البريد الإلكتروني",
+ "deliveryFormatDefault": "الافتراضي للقناة (نص عادي)",
+ "deliveryFormatHtml": "بريد إلكتروني بتنسيق HTML",
+ "deliveryFormatPdf": "مرفق PDF",
"proposalPdfProtection": "حماية PDF بكلمة مرور",
"proposalPdfProtectionOn": "مفعّلة",
"proposalPdfProtectionOff": "غير مفعّلة",
- "deliveryFormatDefaultHint": "Keeps the existing plain-text delivery behavior.",
- "deliveryFormatHtmlHint": "Shows the full report as sanitized HTML in the email body.",
- "deliveryFormatPdfHint": "Attaches the full report as PDF and keeps only a short notice in the body.",
+ "deliveryFormatDefaultHint": "يحافظ على سلوك التسليم الحالي بالنص العادي.",
+ "deliveryFormatHtmlHint": "يعرض التقرير الكامل بتنسيق HTML منقّح في نص البريد الإلكتروني.",
+ "deliveryFormatPdfHint": "يرفق التقرير الكامل بصيغة PDF ويترك إشعارًا قصيرًا فقط في نص الرسالة.",
"deliveryHint": "مُعطّل افتراضيًا. يُرسل الملخص **بعد انتهاء** التشغيل، لا عند جدولته.",
"deliveryTargetRequired": "حدّد وجهة لهذه القناة أو أفرغ حقل القناة.",
"delivery_none": "سيُرسل إلى {{channel}} بعد التشغيل القادم",
diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json
index 146ce62a0..b8bf37ebd 100644
--- a/frontend/src/i18n/locales/de.json
+++ b/frontend/src/i18n/locales/de.json
@@ -1,6 +1,6 @@
{
"app": {
- "version": "v0.1.16"
+ "version": "v0.1.17"
},
"charts": {
"noPriceData": "Noch keine Kursdaten für dieses Symbol",
@@ -247,16 +247,16 @@
"deliveryChannelPlaceholder": "telegram, feishu … (leer lassen, dann bleibt alles in der App)",
"deliveryTargetLabel": "Ziel im Kanal",
"deliveryTargetPlaceholder": "Chat- / Gruppen- / Benutzer-ID",
- "deliveryFormatLabel": "Email report format",
- "deliveryFormatDefault": "Channel default (plain text)",
- "deliveryFormatHtml": "HTML email",
- "deliveryFormatPdf": "PDF attachment",
+ "deliveryFormatLabel": "E-Mail-Berichtsformat",
+ "deliveryFormatDefault": "Kanalstandard (reiner Text)",
+ "deliveryFormatHtml": "HTML-E-Mail",
+ "deliveryFormatPdf": "PDF-Anhang",
"proposalPdfProtection": "PDF-Passwortschutz",
"proposalPdfProtectionOn": "Ein",
"proposalPdfProtectionOff": "Aus",
- "deliveryFormatDefaultHint": "Keeps the existing plain-text delivery behavior.",
- "deliveryFormatHtmlHint": "Shows the full report as sanitized HTML in the email body.",
- "deliveryFormatPdfHint": "Attaches the full report as PDF and keeps only a short notice in the body.",
+ "deliveryFormatDefaultHint": "Behält die bisherige Zustellung als reinen Text bei.",
+ "deliveryFormatHtmlHint": "Zeigt den vollständigen Bericht als bereinigtes HTML im Nachrichtentext.",
+ "deliveryFormatPdfHint": "Hängt den vollständigen Bericht als PDF an und lässt im Nachrichtentext nur einen kurzen Hinweis.",
"deliveryHint": "Standardmäßig aus. Das Briefing wird **nach dem Lauf** gesendet, nicht bei der Planung.",
"deliveryTargetRequired": "Geben Sie ein Ziel für diesen Kanal an, oder leeren Sie das Kanalfeld.",
"delivery_none": "Wird nach dem nächsten Lauf an {{channel}} gesendet",
diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json
index 4e0182f21..2993e4a0e 100644
--- a/frontend/src/i18n/locales/en.json
+++ b/frontend/src/i18n/locales/en.json
@@ -1,6 +1,6 @@
{
"app": {
- "version": "v0.1.16"
+ "version": "v0.1.17"
},
"charts": {
"noPriceData": "No price data for this symbol yet",
diff --git a/frontend/src/i18n/locales/es.json b/frontend/src/i18n/locales/es.json
index 52b59303f..69eb8e17b 100644
--- a/frontend/src/i18n/locales/es.json
+++ b/frontend/src/i18n/locales/es.json
@@ -1,6 +1,6 @@
{
"app": {
- "version": "v0.1.16"
+ "version": "v0.1.17"
},
"charts": {
"noPriceData": "Aún no hay datos de precio para este símbolo",
diff --git a/frontend/src/i18n/locales/fa.json b/frontend/src/i18n/locales/fa.json
index e4ae08961..8d6794b5e 100644
--- a/frontend/src/i18n/locales/fa.json
+++ b/frontend/src/i18n/locales/fa.json
@@ -1,6 +1,6 @@
{
"app": {
- "version": "v0.1.16"
+ "version": "v0.1.17"
},
"charts": {
"noPriceData": "هنوز داده قیمتی برای این نماد وجود ندارد",
diff --git a/frontend/src/i18n/locales/id.json b/frontend/src/i18n/locales/id.json
index 849b414fe..86e671f2b 100644
--- a/frontend/src/i18n/locales/id.json
+++ b/frontend/src/i18n/locales/id.json
@@ -1,6 +1,6 @@
{
"app": {
- "version": "v0.1.16"
+ "version": "v0.1.17"
},
"charts": {
"noPriceData": "Belum ada data harga untuk simbol ini",
@@ -247,16 +247,16 @@
"deliveryChannelPlaceholder": "telegram, feishu, … (kosongkan agar hasil tetap di aplikasi)",
"deliveryTargetLabel": "Target channel",
"deliveryTargetPlaceholder": "ID chat / grup / pengguna",
- "deliveryFormatLabel": "Email report format",
- "deliveryFormatDefault": "Channel default (plain text)",
- "deliveryFormatHtml": "HTML email",
- "deliveryFormatPdf": "PDF attachment",
+ "deliveryFormatLabel": "Format laporan email",
+ "deliveryFormatDefault": "Bawaan saluran (teks biasa)",
+ "deliveryFormatHtml": "Email HTML",
+ "deliveryFormatPdf": "Lampiran PDF",
"proposalPdfProtection": "Perlindungan PDF dengan kata sandi",
"proposalPdfProtectionOn": "Aktif",
"proposalPdfProtectionOff": "Nonaktif",
- "deliveryFormatDefaultHint": "Keeps the existing plain-text delivery behavior.",
- "deliveryFormatHtmlHint": "Shows the full report as sanitized HTML in the email body.",
- "deliveryFormatPdfHint": "Attaches the full report as PDF and keeps only a short notice in the body.",
+ "deliveryFormatDefaultHint": "Mempertahankan perilaku pengiriman teks biasa yang ada.",
+ "deliveryFormatHtmlHint": "Menampilkan laporan lengkap sebagai HTML yang sudah disanitasi di isi email.",
+ "deliveryFormatPdfHint": "Melampirkan laporan lengkap sebagai PDF dan hanya menyisakan pemberitahuan singkat di isi email.",
"deliveryHint": "Nonaktif secara default. Ringkasan dikirim setelah run selesai, bukan saat dijadwalkan.",
"deliveryTargetRequired": "Pilih target untuk channel tersebut, atau kosongkan channel.",
"delivery_none": "Akan dikirim ke {{channel}} setelah run berikutnya",
diff --git a/frontend/src/i18n/locales/ja.json b/frontend/src/i18n/locales/ja.json
index c23c75d11..950110160 100644
--- a/frontend/src/i18n/locales/ja.json
+++ b/frontend/src/i18n/locales/ja.json
@@ -1,6 +1,6 @@
{
"app": {
- "version": "v0.1.16"
+ "version": "v0.1.17"
},
"navigation": {
"menu": "機能を見る",
@@ -241,16 +241,16 @@
"deliveryChannelPlaceholder": "telegram、feishu など(空欄ならアプリ内のみ)",
"deliveryTargetLabel": "チャンネル送信先",
"deliveryTargetPlaceholder": "チャット / グループ / ユーザー ID",
- "deliveryFormatLabel": "Email report format",
- "deliveryFormatDefault": "Channel default (plain text)",
- "deliveryFormatHtml": "HTML email",
- "deliveryFormatPdf": "PDF attachment",
+ "deliveryFormatLabel": "メールレポートの形式",
+ "deliveryFormatDefault": "チャネルの既定(プレーンテキスト)",
+ "deliveryFormatHtml": "HTMLメール",
+ "deliveryFormatPdf": "PDF添付",
"proposalPdfProtection": "PDFのパスワード保護",
"proposalPdfProtectionOn": "有効",
"proposalPdfProtectionOff": "無効",
- "deliveryFormatDefaultHint": "Keeps the existing plain-text delivery behavior.",
- "deliveryFormatHtmlHint": "Shows the full report as sanitized HTML in the email body.",
- "deliveryFormatPdfHint": "Attaches the full report as PDF and keeps only a short notice in the body.",
+ "deliveryFormatDefaultHint": "既存のプレーンテキスト配信の動作を維持します。",
+ "deliveryFormatHtmlHint": "レポート全文をサニタイズ済みのHTMLとしてメール本文に表示します。",
+ "deliveryFormatPdfHint": "レポート全文をPDFとして添付し、本文には短いお知らせのみを残します。",
"deliveryHint": "既定はオフです。ブリーフィングは実行の**完了後**に配信され、スケジュール時ではありません。",
"deliveryTargetRequired": "そのチャンネルの送信先を指定するか、チャンネルを空にしてください。",
"delivery_none": "次回の実行完了後に {{channel}} へ配信します",
diff --git a/frontend/src/i18n/locales/ko.json b/frontend/src/i18n/locales/ko.json
index c7de29119..919b90dc4 100644
--- a/frontend/src/i18n/locales/ko.json
+++ b/frontend/src/i18n/locales/ko.json
@@ -1,6 +1,6 @@
{
"app": {
- "version": "v0.1.16"
+ "version": "v0.1.17"
},
"navigation": {
"menu": "기능 둘러보기",
@@ -241,16 +241,16 @@
"deliveryChannelPlaceholder": "telegram, feishu … (비우면 앱 안에만 남습니다)",
"deliveryTargetLabel": "채널 대상",
"deliveryTargetPlaceholder": "채팅 / 그룹 / 사용자 ID",
- "deliveryFormatLabel": "Email report format",
- "deliveryFormatDefault": "Channel default (plain text)",
- "deliveryFormatHtml": "HTML email",
- "deliveryFormatPdf": "PDF attachment",
+ "deliveryFormatLabel": "이메일 보고서 형식",
+ "deliveryFormatDefault": "채널 기본값(일반 텍스트)",
+ "deliveryFormatHtml": "HTML 이메일",
+ "deliveryFormatPdf": "PDF 첨부 파일",
"proposalPdfProtection": "PDF 비밀번호 보호",
"proposalPdfProtectionOn": "켜짐",
"proposalPdfProtectionOff": "꺼짐",
- "deliveryFormatDefaultHint": "Keeps the existing plain-text delivery behavior.",
- "deliveryFormatHtmlHint": "Shows the full report as sanitized HTML in the email body.",
- "deliveryFormatPdfHint": "Attaches the full report as PDF and keeps only a short notice in the body.",
+ "deliveryFormatDefaultHint": "기존 일반 텍스트 전송 방식을 유지합니다.",
+ "deliveryFormatHtmlHint": "전체 보고서를 정제된 HTML로 이메일 본문에 표시합니다.",
+ "deliveryFormatPdfHint": "전체 보고서를 PDF로 첨부하고 본문에는 짧은 안내만 남깁니다.",
"deliveryHint": "기본은 꺼짐입니다. 브리핑은 예약 시점이 아니라 실행이 **끝난 뒤** 전달됩니다.",
"deliveryTargetRequired": "해당 채널의 대상을 지정하거나 채널을 비워 주세요.",
"delivery_none": "다음 실행이 끝나면 {{channel}}(으)로 전달합니다",
diff --git a/frontend/src/i18n/locales/pt-BR.json b/frontend/src/i18n/locales/pt-BR.json
index 81c3dd0fd..d2f03c479 100644
--- a/frontend/src/i18n/locales/pt-BR.json
+++ b/frontend/src/i18n/locales/pt-BR.json
@@ -1,6 +1,6 @@
{
"app": {
- "version": "v0.1.16"
+ "version": "v0.1.17"
},
"charts": {
"noPriceData": "Ainda não há dados de preço para este símbolo",
@@ -247,16 +247,16 @@
"deliveryChannelPlaceholder": "telegram, feishu,… (deixe em branco para manter os resultados no aplicativo)",
"deliveryTargetLabel": "Segmentação do canal",
"deliveryTargetPlaceholder": "chat / grupo / ID de usuário",
- "deliveryFormatLabel": "Email report format",
- "deliveryFormatDefault": "Channel default (plain text)",
- "deliveryFormatHtml": "HTML email",
- "deliveryFormatPdf": "PDF attachment",
+ "deliveryFormatLabel": "Formato do relatório por e-mail",
+ "deliveryFormatDefault": "Padrão do canal (texto simples)",
+ "deliveryFormatHtml": "E-mail em HTML",
+ "deliveryFormatPdf": "Anexo em PDF",
"proposalPdfProtection": "Proteção do PDF por senha",
"proposalPdfProtectionOn": "Ativada",
"proposalPdfProtectionOff": "Desativada",
- "deliveryFormatDefaultHint": "Keeps the existing plain-text delivery behavior.",
- "deliveryFormatHtmlHint": "Shows the full report as sanitized HTML in the email body.",
- "deliveryFormatPdfHint": "Attaches the full report as PDF and keeps only a short notice in the body.",
+ "deliveryFormatDefaultHint": "Mantém o comportamento atual de entrega em texto simples.",
+ "deliveryFormatHtmlHint": "Mostra o relatório completo como HTML sanitizado no corpo do e-mail.",
+ "deliveryFormatPdfHint": "Anexa o relatório completo em PDF e mantém apenas um aviso curto no corpo.",
"deliveryHint": "Desativado por padrão. Um briefing é enviado assim que a execução termina, não quando está agendada.",
"deliveryTargetRequired": "Escolha um alvo para esse canal ou limpe o canal.",
"delivery_none": "Entregando para {{channel}} após a próxima execução",
diff --git a/frontend/src/i18n/locales/tr.json b/frontend/src/i18n/locales/tr.json
index 432edeb68..3967617f5 100644
--- a/frontend/src/i18n/locales/tr.json
+++ b/frontend/src/i18n/locales/tr.json
@@ -1,6 +1,6 @@
{
"app": {
- "version": "v0.1.16"
+ "version": "v0.1.17"
},
"charts": {
"noPriceData": "Bu sembol için henüz fiyat verisi yok",
diff --git a/frontend/src/i18n/locales/zh-CN.json b/frontend/src/i18n/locales/zh-CN.json
index 1e036a919..8f84b1590 100644
--- a/frontend/src/i18n/locales/zh-CN.json
+++ b/frontend/src/i18n/locales/zh-CN.json
@@ -1,6 +1,6 @@
{
"app": {
- "version": "v0.1.16"
+ "version": "v0.1.17"
},
"navigation": {
"menu": "浏览功能",
@@ -241,16 +241,16 @@
"deliveryChannelPlaceholder": "telegram、feishu…(留空则结果只留在应用内)",
"deliveryTargetLabel": "频道目标",
"deliveryTargetPlaceholder": "会话 / 群 / 用户 id",
- "deliveryFormatLabel": "Email report format",
- "deliveryFormatDefault": "Channel default (plain text)",
- "deliveryFormatHtml": "HTML email",
- "deliveryFormatPdf": "PDF attachment",
+ "deliveryFormatLabel": "邮件报告格式",
+ "deliveryFormatDefault": "渠道默认(纯文本)",
+ "deliveryFormatHtml": "HTML 邮件",
+ "deliveryFormatPdf": "PDF 附件",
"proposalPdfProtection": "PDF 密码保护",
"proposalPdfProtectionOn": "开启",
"proposalPdfProtectionOff": "关闭",
- "deliveryFormatDefaultHint": "Keeps the existing plain-text delivery behavior.",
- "deliveryFormatHtmlHint": "Shows the full report as sanitized HTML in the email body.",
- "deliveryFormatPdfHint": "Attaches the full report as PDF and keeps only a short notice in the body.",
+ "deliveryFormatDefaultHint": "保持现有的纯文本投递方式。",
+ "deliveryFormatHtmlHint": "在邮件正文中以净化后的 HTML 显示完整报告。",
+ "deliveryFormatPdfHint": "将完整报告作为 PDF 附件发送,正文只保留一条简短通知。",
"deliveryHint": "默认关闭。简报在运行**结束后**推送,而不是在排定时推送。",
"deliveryTargetRequired": "请为该频道填写目标,或清空频道。",
"delivery_none": "下次运行结束后推送到 {{channel}}",
diff --git a/pyproject.toml b/pyproject.toml
index 2d8fabd31..8a1acdd64 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "vibe-trading-ai"
-version = "0.1.16"
+version = "0.1.17"
description = "Natural-language finance research AI agent with backtesting"
requires-python = ">=3.11"
license = "MIT"
diff --git a/wiki/alpha-library/alpha.js b/wiki/alpha-library/alpha.js
index cc7fe751d..cd6fc9782 100644
--- a/wiki/alpha-library/alpha.js
+++ b/wiki/alpha-library/alpha.js
@@ -1,6 +1,6 @@
// Fills the Alpha Library landing stats from content/index.json, which the
// deploy workflow generates (wiki/scripts/build_alpha_library.py).
-import { storedLang } from "/site.js?v=20260929e";
+import { storedLang } from "/site.js?v=20261021";
const TEXT = {
en: { across: (n) => `across ${n} zoos`, alphas: (n) => `${n} alphas`, missing: "manifest not generated yet" },
diff --git a/wiki/alpha-library/index.html b/wiki/alpha-library/index.html
index d02bdb4a4..4a9984bfe 100644
--- a/wiki/alpha-library/index.html
+++ b/wiki/alpha-library/index.html
@@ -24,11 +24,11 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],600;9..144,750&amp;family=IBM+Plex+Mono:wght@400;500;600&amp;family=IBM+Plex+Sans:wght@400;500;600;700&amp;display=swap" rel="stylesheet">
- <link rel="stylesheet" href="/styles.css?v=20260929e">
- <script src="/theme-init.js?v=20260929e"></script>
+ <link rel="stylesheet" href="/styles.css?v=20261021">
+ <script src="/theme-init.js?v=20261021"></script>
<!-- site-head:end -->
- <script type="module" src="/main.js?v=20260929e"></script>
- <script type="module" src="/alpha-library/alpha.js?v=20260929e"></script>
+ <script type="module" src="/main.js?v=20261021"></script>
+ <script type="module" src="/alpha-library/alpha.js?v=20261021"></script>
<style>
.alpha-hero { width: min(1180px, calc(100% - 32px)); margin: 56px auto 32px; }
.alpha-hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 8px 0 14px; letter-spacing: -0.01em; }
diff --git a/wiki/docs/content.en.js b/wiki/docs/content.en.js
index dc8519cca..59b44b651 100644
--- a/wiki/docs/content.en.js
+++ b/wiki/docs/content.en.js
@@ -33,14 +33,14 @@ export const DOCS_STRUCTURE = [
title: "What is in 0.1.16",
body: `
<ul>
- <li><strong>28 market-data sources</strong> behind one call, with a fallback chain per market. Most markets need no API key.</li>
+ <li><strong>29 market-data sources</strong> behind one call, with a fallback chain per market. Most markets need no API key.</li>
<li><strong>11 backtest engines</strong>: China A-shares, global equities, India, Korea, Vietnam, crypto, China futures, global futures, forex, a composite engine for cross-market portfolios, and an options portfolio engine.</li>
<li><strong>90 finance skills</strong> in 9 categories, and <strong>30 swarm presets</strong> for committee-style research.</li>
- <li><strong>Alpha Zoo</strong>: 462 alphas you can benchmark on your own universe with one command.</li>
- <li><strong>74 MCP tools</strong> for other agents.</li>
- <li><strong>18 broker connectors</strong>, read-only by default, plus a read-only multi-broker portfolio page.</li>
+ <li><strong>Alpha Zoo</strong>: 478 alphas you can benchmark on your own universe with one command.</li>
+ <li><strong>82 MCP tools</strong> for other agents.</li>
+ <li><strong>19 broker connectors</strong>, read-only by default, plus a read-only multi-broker portfolio page.</li>
<li><strong>Checked numbers</strong>: figures in an answer are checked against the tool data of the session before you see them.</li>
- <li>A web UI in nine languages.</li>
+ <li>A web UI in eleven languages.</li>
</ul>
`
},
@@ -569,7 +569,7 @@ vibe-trading --swarm-retry RUN_ID --swarm-resume # keep finished tasks</code><
id: "tools/data-sources",
title: "Data sources",
description: "Which source serves which market, symbol formats, and how to pick a source.",
- lead: "One get_market_data call reaches 28 sources. With source auto, each symbol is routed by its market and walks that market's fallback chain, with the sources least likely to block you first.",
+ lead: "One get_market_data call reaches 29 sources. With source auto, each symbol is routed by its market and walks that market's fallback chain, with the sources least likely to block you first.",
sections: [
{
id: "providers",
@@ -722,7 +722,7 @@ vibe-trading run -p "Analyze my trading behavior, extract my shadow strategy, an
{
id: "tools/alpha-zoo",
title: "Alpha Zoo",
- description: "462 ready-made alphas you can benchmark on your own universe.",
+ description: "478 ready-made alphas you can benchmark on your own universe.",
lead: "The Alpha Zoo is a registry of published alpha formulas. One command scores a whole zoo on a universe and period and sorts each alpha into alive, reversed or dead.",
sections: [
{
@@ -772,7 +772,7 @@ vibe-trading alpha export-manifest</code></pre>
id: "connectors",
title: "Connectors",
body: `
- <p>18 connectors with 55 profiles. A profile is paper or live, and read-only or order-enabled.</p>
+ <p>19 connectors with 56 profiles. A profile is paper or live, and read-only or order-enabled.</p>
<table>
<thead><tr><th>What orders can do</th><th>Brokers</th></tr></thead>
<tbody>
@@ -908,7 +908,7 @@ vibe-trading --max-iter 40 -p "prompt"</code></pre>
id: "reference/mcp-server",
title: "MCP server",
description: "Give Claude Desktop, Cursor, OpenClaw and other MCP clients Vibe-Trading's tools.",
- lead: "vibe-trading-mcp runs as a stdio subprocess of your MCP client and exposes 74 tools. Research tools work without a model key; run_swarm needs one.",
+ lead: "vibe-trading-mcp runs as a stdio subprocess of your MCP client and exposes 82 tools. Research tools work without a model key; run_swarm needs one.",
sections: [
{
id: "config",
diff --git a/wiki/docs/content.js b/wiki/docs/content.js
index 5845e8329..2e761b6b8 100644
--- a/wiki/docs/content.js
+++ b/wiki/docs/content.js
@@ -1,5 +1,5 @@
-import { DOCS_STRUCTURE as EN_STRUCTURE } from "/docs/content.en.js?v=20260929e";
-import { DOCS_STRUCTURE as ZH_STRUCTURE } from "/docs/content.zh.js?v=20260929e";
+import { DOCS_STRUCTURE as EN_STRUCTURE } from "/docs/content.en.js?v=20261021";
+import { DOCS_STRUCTURE as ZH_STRUCTURE } from "/docs/content.zh.js?v=20261021";
// One content set per language; every version alias renders the latest.
export const DOCS_DEFAULT_VERSION = "0.1.16";
diff --git a/wiki/docs/content.zh.js b/wiki/docs/content.zh.js
index d64472cc1..8014c2443 100644
--- a/wiki/docs/content.zh.js
+++ b/wiki/docs/content.zh.js
@@ -32,14 +32,14 @@ export const DOCS_STRUCTURE = [
title: "0.1.16 包含什么",
body: `
<ul>
- <li><strong>28 个行情数据源</strong>,一次调用即可,每个市场各有一条回退链。多数市场不需要任何 API key。</li>
+ <li><strong>29 个行情数据源</strong>,一次调用即可,每个市场各有一条回退链。多数市场不需要任何 API key。</li>
<li><strong>11 个回测引擎</strong>:A 股、全球股票、印度、韩国、越南、加密货币、国内期货、海外期货、外汇,一个用于跨市场组合的复合引擎,以及一个期权组合引擎。</li>
<li><strong>90 个金融技能</strong>,分 9 类;<strong>30 个多智能体团队预设</strong>,用于投委会式研究。</li>
- <li><strong>Alpha Zoo</strong>:462 个现成因子,一条命令即可在你的股票池上评测。</li>
- <li><strong>74 个 MCP 工具</strong>,供其他智能体调用。</li>
- <li><strong>18 个券商连接器</strong>,默认只读;另有只读的多券商持仓页。</li>
+ <li><strong>Alpha Zoo</strong>:478 个现成因子,一条命令即可在你的股票池上评测。</li>
+ <li><strong>82 个 MCP 工具</strong>,供其他智能体调用。</li>
+ <li><strong>19 个券商连接器</strong>,默认只读;另有只读的多券商持仓页。</li>
<li><strong>数字核验</strong>:答案里的数字在展示给你之前,会先和本次会话取到的工具数据逐一核对。</li>
- <li>Web 界面支持九种语言。</li>
+ <li>Web 界面支持十一种语言。</li>
</ul>
`
},
@@ -568,7 +568,7 @@ vibe-trading --swarm-retry RUN_ID --swarm-resume # 保留已完成的任务</c
id: "tools/data-sources",
title: "数据源",
description: "哪个数据源服务哪个市场、代码格式、如何指定数据源。",
- lead: "一次 get_market_data 调用可以用到 28 个数据源。source 设为 auto 时,每个代码按所属市场路由,沿该市场的回退链依次尝试,最不容易封禁你的数据源排在最前。",
+ lead: "一次 get_market_data 调用可以用到 29 个数据源。source 设为 auto 时,每个代码按所属市场路由,沿该市场的回退链依次尝试,最不容易封禁你的数据源排在最前。",
sections: [
{
id: "providers",
@@ -721,7 +721,7 @@ vibe-trading run -p "分析我的交易行为,提炼我的影子策略,并
{
id: "tools/alpha-zoo",
title: "Alpha Zoo",
- description: "462 个现成因子,可在你自己的股票池上评测。",
+ description: "478 个现成因子,可在你自己的股票池上评测。",
lead: "Alpha Zoo 是已发表因子公式的注册表。一条命令就能在指定股票池和区间上给整组因子打分,并把每个因子归为有效、反向或失效。",
sections: [
{
@@ -771,7 +771,7 @@ vibe-trading alpha export-manifest</code></pre>
id: "connectors",
title: "连接器",
body: `
- <p>18 个连接器,共 55 个配置档(profile)。每个配置档要么是模拟盘、要么是实盘,要么只读、要么可下单。</p>
+ <p>19 个连接器,共 56 个配置档(profile)。每个配置档要么是模拟盘、要么是实盘,要么只读、要么可下单。</p>
<table>
<thead><tr><th>下单能力</th><th>券商</th></tr></thead>
<tbody>
@@ -907,7 +907,7 @@ vibe-trading --max-iter 40 -p "指令"</code></pre>
id: "reference/mcp-server",
title: "MCP 服务",
description: "把 Vibe-Trading 的工具提供给 Claude Desktop、Cursor、OpenClaw 等 MCP 客户端。",
- lead: "vibe-trading-mcp 作为 MCP 客户端的 stdio 子进程运行,提供 74 个工具。研究类工具不需要模型 key;run_swarm 需要。",
+ lead: "vibe-trading-mcp 作为 MCP 客户端的 stdio 子进程运行,提供 82 个工具。研究类工具不需要模型 key;run_swarm 需要。",
sections: [
{
id: "config",
diff --git a/wiki/docs/index.html b/wiki/docs/index.html
index 603136a0b..28ccb1f72 100644
--- a/wiki/docs/index.html
+++ b/wiki/docs/index.html
@@ -21,11 +21,11 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],600;9..144,750&amp;family=IBM+Plex+Mono:wght@400;500;600&amp;family=IBM+Plex+Sans:wght@400;500;600;700&amp;display=swap" rel="stylesheet">
- <link rel="stylesheet" href="/styles.css?v=20260929e">
- <script src="/theme-init.js?v=20260929e"></script>
+ <link rel="stylesheet" href="/styles.css?v=20261021">
+ <script src="/theme-init.js?v=20261021"></script>
<!-- site-head:end -->
- <link rel="stylesheet" href="/docs/styles.css?v=20260929e">
- <script type="module" src="/docs/main.js?v=20260929e"></script>
+ <link rel="stylesheet" href="/docs/styles.css?v=20261021">
+ <script type="module" src="/docs/main.js?v=20261021"></script>
</head>
<body class="docs-body" data-section="docs">
<!-- site-header:start -->
diff --git a/wiki/docs/main.js b/wiki/docs/main.js
index 281f194f0..fcd85e533 100644
--- a/wiki/docs/main.js
+++ b/wiki/docs/main.js
@@ -1,11 +1,11 @@
-import { initSite, setPageLang, storedLang } from "/site.js?v=20260929e";
+import { initSite, setPageLang, storedLang } from "/site.js?v=20261021";
import {
DOCS_DEFAULT_LANG,
DOCS_DEFAULT_PAGE,
DOCS_LANGUAGES,
DOCS_UI,
DOCS_VERSIONS
-} from "/docs/content.js?v=20260929e";
+} from "/docs/content.js?v=20261021";
const SITE = "https://vibetrading.wiki";
diff --git a/wiki/home/index.html b/wiki/home/index.html
index 22a53d1a3..4f3122dac 100644
--- a/wiki/home/index.html
+++ b/wiki/home/index.html
@@ -23,10 +23,10 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],600;9..144,750&amp;family=IBM+Plex+Mono:wght@400;500;600&amp;family=IBM+Plex+Sans:wght@400;500;600;700&amp;display=swap" rel="stylesheet">
- <link rel="stylesheet" href="/styles.css?v=20260929e">
- <script src="/theme-init.js?v=20260929e"></script>
+ <link rel="stylesheet" href="/styles.css?v=20261021">
+ <script src="/theme-init.js?v=20261021"></script>
<!-- site-head:end -->
- <script type="module" src="/main.js?v=20260929e"></script>
+ <script type="module" src="/main.js?v=20261021"></script>
</head>
<body data-section="home">
<!-- site-header:start -->
diff --git a/wiki/main.js b/wiki/main.js
index 4bf28027f..f65b33f73 100644
--- a/wiki/main.js
+++ b/wiki/main.js
@@ -1,4 +1,4 @@
-import { initSite } from "/site.js?v=20260929e";
+import { initSite } from "/site.js?v=20261021";
// Home page install tabs; a no-op on pages without them.
function initInstallTabs() {
diff --git a/wiki/partials/site-head.html b/wiki/partials/site-head.html
index 46668abb1..5d84ffc63 100644
--- a/wiki/partials/site-head.html
+++ b/wiki/partials/site-head.html
@@ -2,5 +2,5 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],600;9..144,750&amp;family=IBM+Plex+Mono:wght@400;500;600&amp;family=IBM+Plex+Sans:wght@400;500;600;700&amp;display=swap" rel="stylesheet">
-<link rel="stylesheet" href="/styles.css?v=20260929e">
-<script src="/theme-init.js?v=20260929e"></script>
+<link rel="stylesheet" href="/styles.css?v=20261021">
+<script src="/theme-init.js?v=20261021"></script>
diff --git a/wiki/research-lab/index.html b/wiki/research-lab/index.html
index e97eb9fdc..195695d48 100644
--- a/wiki/research-lab/index.html
+++ b/wiki/research-lab/index.html
@@ -18,10 +18,10 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],600;9..144,750&amp;family=IBM+Plex+Mono:wght@400;500;600&amp;family=IBM+Plex+Sans:wght@400;500;600;700&amp;display=swap" rel="stylesheet">
- <link rel="stylesheet" href="/styles.css?v=20260929e">
- <script src="/theme-init.js?v=20260929e"></script>
+ <link rel="stylesheet" href="/styles.css?v=20261021">
+ <script src="/theme-init.js?v=20261021"></script>
<!-- site-head:end -->
- <script type="module" src="/main.js?v=20260929e"></script>
+ <script type="module" src="/main.js?v=20261021"></script>
</head>
<body data-section="lab">
<!-- site-header:start -->
diff --git a/wiki/research-lab/posts/alpha-191-in-2026-zh.html b/wiki/research-lab/posts/alpha-191-in-2026-zh.html
index 0b0cde8a1..f12adb5e2 100644
--- a/wiki/research-lab/posts/alpha-191-in-2026-zh.html
+++ b/wiki/research-lab/posts/alpha-191-in-2026-zh.html
@@ -22,10 +22,10 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],600;9..144,750&amp;family=IBM+Plex+Mono:wght@400;500;600&amp;family=IBM+Plex+Sans:wght@400;500;600;700&amp;display=swap" rel="stylesheet">
- <link rel="stylesheet" href="/styles.css?v=20260929e">
- <script src="/theme-init.js?v=20260929e"></script>
+ <link rel="stylesheet" href="/styles.css?v=20261021">
+ <script src="/theme-init.js?v=20261021"></script>
<!-- site-head:end -->
- <script type="module" src="/main.js?v=20260929e"></script>
+ <script type="module" src="/main.js?v=20261021"></script>
<style>
.post {
width: min(760px, calc(100% - 32px));
diff --git a/wiki/research-lab/posts/alpha-191-in-2026.html b/wiki/research-lab/posts/alpha-191-in-2026.html
index 92cb136d2..65d4a9cd6 100644
--- a/wiki/research-lab/posts/alpha-191-in-2026.html
+++ b/wiki/research-lab/posts/alpha-191-in-2026.html
@@ -22,10 +22,10 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],600;9..144,750&amp;family=IBM+Plex+Mono:wght@400;500;600&amp;family=IBM+Plex+Sans:wght@400;500;600;700&amp;display=swap" rel="stylesheet">
- <link rel="stylesheet" href="/styles.css?v=20260929e">
- <script src="/theme-init.js?v=20260929e"></script>
+ <link rel="stylesheet" href="/styles.css?v=20261021">
+ <script src="/theme-init.js?v=20261021"></script>
<!-- site-head:end -->
- <script type="module" src="/main.js?v=20260929e"></script>
+ <script type="module" src="/main.js?v=20261021"></script>
<style>
.post {
width: min(760px, calc(100% - 32px));
diff --git a/wiki/scripts/build_alpha_library.py b/wiki/scripts/build_alpha_library.py
index 28699776b..1b80ea0b0 100644
--- a/wiki/scripts/build_alpha_library.py
+++ b/wiki/scripts/build_alpha_library.py
@@ -88,7 +88,7 @@ _CSP_CONTENT = (
)
# Cache-busting version of the site shell modules; matches the hand-written pages.
-_SHELL_VERSION = "20260929e"
+_SHELL_VERSION = "20261021"
# Display names for zoos. Source of truth — do not depend on prose elsewhere.
_ZOO_DISPLAY: dict[str, dict[str, str]] = {
diff --git a/wiki/site.js b/wiki/site.js
index 18f0fe94f..a5b0d97bc 100644
--- a/wiki/site.js
+++ b/wiki/site.js
@@ -15,7 +15,7 @@
// site Chinese; its toggle goes to the counterpart page instead.
const LANG_KEY = "vibetrading-lang";
-const LOCALE_VERSION = "20260929e";
+const LOCALE_VERSION = "20261021";
const THEME_KEY = "vibetrading-theme";
const STARS_CACHE_KEY = "vibetrading-github-stars";
const STARS_TTL_MS = 12 * 60 * 60 * 1000;
diff --git a/wiki/tutorials/index.html b/wiki/tutorials/index.html
index fc789b97e..ef6dfc1be 100644
--- a/wiki/tutorials/index.html
+++ b/wiki/tutorials/index.html
@@ -18,10 +18,10 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],600;9..144,750&amp;family=IBM+Plex+Mono:wght@400;500;600&amp;family=IBM+Plex+Sans:wght@400;500;600;700&amp;display=swap" rel="stylesheet">
- <link rel="stylesheet" href="/styles.css?v=20260929e">
- <script src="/theme-init.js?v=20260929e"></script>
+ <link rel="stylesheet" href="/styles.css?v=20261021">
+ <script src="/theme-init.js?v=20261021"></script>
<!-- site-head:end -->
- <script type="module" src="/main.js?v=20260929e"></script>
+ <script type="module" src="/main.js?v=20261021"></script>
</head>
<body data-section="tutorials">
<!-- site-header:start -->
diff --git a/wiki/tutorials/vibe-trading-beginner-zh.html b/wiki/tutorials/vibe-trading-beginner-zh.html
index e1938a678..457786e44 100644
--- a/wiki/tutorials/vibe-trading-beginner-zh.html
+++ b/wiki/tutorials/vibe-trading-beginner-zh.html
@@ -21,10 +21,10 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],600;9..144,750&amp;family=IBM+Plex+Mono:wght@400;500;600&amp;family=IBM+Plex+Sans:wght@400;500;600;700&amp;display=swap" rel="stylesheet">
- <link rel="stylesheet" href="/styles.css?v=20260929e">
- <script src="/theme-init.js?v=20260929e"></script>
+ <link rel="stylesheet" href="/styles.css?v=20261021">
+ <script src="/theme-init.js?v=20261021"></script>
<!-- site-head:end -->
- <script type="module" src="/main.js?v=20260929e"></script>
+ <script type="module" src="/main.js?v=20261021"></script>
<style>
.tutorial {
width: min(940px, calc(100% - 32px));
diff --git a/wiki/tutorials/vibe-trading-beginner.html b/wiki/tutorials/vibe-trading-beginner.html
index 91d0839f4..45a0cac0a 100644
--- a/wiki/tutorials/vibe-trading-beginner.html
+++ b/wiki/tutorials/vibe-trading-beginner.html
@@ -21,10 +21,10 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],600;9..144,750&amp;family=IBM+Plex+Mono:wght@400;500;600&amp;family=IBM+Plex+Sans:wght@400;500;600;700&amp;display=swap" rel="stylesheet">
- <link rel="stylesheet" href="/styles.css?v=20260929e">
- <script src="/theme-init.js?v=20260929e"></script>
+ <link rel="stylesheet" href="/styles.css?v=20261021">
+ <script src="/theme-init.js?v=20261021"></script>
<!-- site-head:end -->
- <script type="module" src="/main.js?v=20260929e"></script>
+ <script type="module" src="/main.js?v=20261021"></script>
<style>
.tutorial {
width: min(940px, calc(100% - 32px));