All notable changes to Vibe-Trading are documented in this file. This project adheres to Semantic Versioning.
- Connector-first broker profiles (IBKR + Robinhood). Trading access now
starts from a selectable connector profile rather than separate broker/live
entry points;
vibe-trading connector list/use/check/account/positions/orders/quote/historyand the MCPtrading_*tools share the selected profile, with paper/live as a property under the connector. IBKR is usable immediately as a local read-only TWS / IB Gateway profile; the official IBKR remote MCP path is seeded as an OAuthmcp.readprobe until stable read tool names ship. Robinhood Agentic Trading is a bounded connector behind OAuth, a committed mandate, an order guard, an audit ledger, and an instant halt switch. - Research Goal runtime. Long-running, research-only goals with auditable
checklist criteria, budgets, and a
/goalCLI command, plus REST + MCP endpoints (start_research_goal,get_research_goal,add_goal_evidence,update_research_goal_status) and a WebGoalDrawer. - Swarm
retry_run. Re-launch a failed/stale/cancelled run with the original preset + variables; exposed as bothPOST /swarm/runs/{id}/retryand an MCPretry_runtool (thelist_runs → retryloop). 36 MCP tools now. - Operator-configured external MCP tools in swarm workers (#142) and remote MCP transports for the built-in agent.
mootdxA-share OHLCV loader — native 通达信 TCP, no token, sits between tushare and akshare in the fallback chain. CCXT loader now reads proxy env for restricted networks (#126).- Hypothesis Registry CLI —
list / show / invalidate. - Strict alpha-bench mode with a mandatory random control (#143).
- CLI split into the
agent/cli/package (from a 3216-LOC single file), with a refreshed interactive terminal UI (figlet banner + activity rail) and a singlecli/_version.pyversion source. - Swarm status reconciles from live task files on every read;
run_swarmsends MCP progress heartbeats, and the stale-run reaper uses per-run thresholds (#132). - Refreshed provider default model ids; bumped
langgraphfor CVE-2026-28277.
--versionno longer drifts (#156). The version derives from package metadata, falling back to readingpyproject.tomldirectly — no hardcoded constant left to forget on release.- Session running-status indicator now survives reconnect / page reload / sidebar navigation; swarm DAG blocks downstream tasks when an upstream task fails (#145).
- Robustness pass: pre-flight validation for LLM-generated signal engines
with clean JSON errors (#149), graceful agent-loop exit at the iteration
budget instead of an output-less
failed(#148),flush + fsyncsession message writes that skip corrupted JSONL lines on read (#147), and IME Enter handling in the Web composer (#146). - Full Report link now always renders when a
runIdexists, even cross-browser (#150); SSE idle timeout is configurable viaVIBE_TRADING_SSE_TIMEOUT(#157); cross-market correlation normalizes timestamps so crypto-vs-equity pairs align (#158).
agent/src/factors/— base operators (rank,scale,ts_*,delta,decay_linear,signed_power,safe_div, market-awarevwap) and a registry that AST-extracts metadata from each alpha module without importing it. Lookahead is enforced at the operator level (delta(d>=1)), and registry sanity checks reject+/-infand outputs that are more than 95 % NaN.- 4 zoos shipping 452 alphas total:
- qlib158 (154 alphas) — port of Microsoft Qlib's
Alpha158feature handler under Apache-2.0, with pinned commit SHA per file. - alpha101 (101 alphas) — implementation of Kakushadze (2015) "101 Formulaic Alphas" (arXiv:1601.00991), written from the paper appendix; the relevant trademarked string is intentionally absent.
- gtja191 (191 alphas) — implementation of Guotai Junan's 2014 "191 Short-period Trading Alpha Factors" research report.
- academic (6 factors) — Fama-French 5 + Carhart momentum, shipped as honest price-based proxies (not the canonical FF series).
- qlib158 (154 alphas) — port of Microsoft Qlib's
vibe-trading alpha {list,show,bench,compare,export-manifest}CLI subcommand.showandexport-manifestenforce path-traversal guards.- New agent tools:
AlphaZooTool(browse) andAlphaBenchTool(orchestrator with Jinja2 autoescape + strict CSP HTML report). ZooSignalEngine.from_zoo(...)— composite multi-factor signal engine with cross-sectional standardisation, weighting, and optional top-N / bottom-N long-short conversion.wiki/scripts/build_alpha_library.py— Alpha Library renderer. Readsmanifest.jsonproduced byvibe-trading alpha export-manifestand emits 452 per-alpha HTML pages plus 4 per-zoo overviews, each withscript-src 'none'CSP. The landing page hydrates per-zoo counts fromcontent/index.json.- New blog post: "Which of the 191 GTJA alphas still work in 2026?" with aggregate IC statistics, theme breakdown, and the top alphas that survive eight years of out-of-sample data.
- New page at
/alpha-zooin the Vite + React frontend with three views: browse (4 zoo cards + filter bar + paginated table), detail (formula, metadata, collapsible source code), and bench-runner (form → SSE-streamed progress + Alive/Reversed/Dead stat cards + Top-5-by-IR table + by-theme breakdown chart). "Alpha Zoo" nav entry added to the layout. - Four new REST routes in the FastAPI server:
GET /alpha/list— filterable alpha catalogueGET /alpha/{alpha_id}— meta + source codePOST /alpha/bench— kicks off a background bench job and returns ajob_idGET /alpha/bench/{job_id}/stream— Server-Sent Events withprogress,result,done, anderrorevent types. In-memory job state with a 1-hour TTL; no Redis/Celery dependency.
- Bench math is refactored into
agent/src/factors/bench_runner.pyso the CLI driver (agent/scripts/w4a_run_benches.py) and the new API worker share a single implementation.
agent/tests/factors/test_alpha_purity.py— AST allowlist scan over everyzoo/**/*.pymodule (whitelist: pandas, numpy, scipy.*,src.factors.base,__future__,typing,math,dataclasses; banned:os,sys,subprocess,socket,urllib,requests,httpx,pathlib,Path,open,eval,exec,compile,__import__, andgetattr(_, "__*")).agent/tests/factors/test_lookahead.py— sentinel future-row injection on a 300-row synthetic panel; corrupting rows after the probe must leave the probe value unchanged within 1e-9.tools/ci_grep_gates.sh— CI gate that rejectsyaml.load(withoutsafe_load, any trademarked-name leak in shipped artifacts, and any per-stock-code data leak inwiki/**/*.{json,csv,html}.agent/tests/factors/conftest.py— opt-inpytest-socketintegration that hard-fails any test attempting outbound network during the factors test suite.
CONTRIBUTING.md— Developer Certificate of Origin sign-off requirement and a contributor checklist for new alpha PRs (purity, lookahead,__alpha_meta__shape, LaTeX-matches-code, per-zoo LICENSE.md, DCO).NOTICE(repo root) — Apache-2.0 attribution for Qlib and a declaration that the bundled formulas from Kakushadze, GTJA, and the academic baselines are mathematical content (paper prose, tables, and figures are not reproduced here).- Per-zoo
LICENSE.mdfor each ofqlib158/,alpha101/,gtja191/, andacademic/, plus an upstreamNOTICEforqlib158/.
agent/src/tools/factor_analysis_tool.pyextracted its IC/IR and layered-backtest helpers toagent/src/factors/factor_analysis_core.pyso the newalpha_bench_toolreuses the same maths. Public tool signature is unchanged;_compute_ic_seriesand_compute_group_equityremain importable as backward-compatible aliases.agent/cli.pygrew by 7 lines to register thealphasubcommand; all handler logic lives inagent/src/factors/cli_handlers.py.- Packaging:
pyproject.tomlnow shipszoo/**/*.yaml,zoo/**/*.md, andzoo/**/NOTICEas package data;MANIFEST.inrecursively includesagent/src/factors.
- The
btc-usdtuniverse is single-asset; cross-sectional IC requires ≥2 instruments, so the bundledalpha101_btcbench run returns alive/reversed/dead = 0/0/0 by construction. Use a multi-symbol crypto basket (e.g. BTC + ETH + SOL + the top-N perpetuals) for meaningful cross-sectional results; a curatedcrypto-majorsuniverse is planned for 0.2.
wiki/alpha-library/manifest.jsonandwiki/alpha-library/content/are generated artifacts and gitignored. Runvibe-trading alpha export-manifest --out wiki/alpha-library/manifest.json --forcefollowed bypython wiki/scripts/build_alpha_library.pyto regenerate the static site.