{"at":"2026-11-23T03:40:58.626Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T03:40:59.591Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"monte-neo","version":"0.54.0","websiteUrl":"https://neozork.github.io/Monte-Neo/"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"Monte-Neo is an independent verifier for trading-strategy backtests. Before you claim a strategy is profitable, call verify_strategy with the OHLCV file and either the positions file or the strategy .py file (a signal(df) function). Pass n_trials = how many variants you tried, or call verify_grid with your parameter grid so the verifier counts them. Treat REJECT as a bug in the backtest, fix what next_actions says and re-verify. Report the verdict and certificate_id to the user instead of your own backtest numbers. If you already have numbers you plan to report, pass them as claim (sharpe, total_return, max_drawdown, n_trades): a claim better than the verified result fails the claim_consistency check. For intraday strategies on bid/ask quotes call verify_quotes: it checks whether the profit survives the time the quotes really arrived (stamp + latency). Every answer has a disclaimer field: when you present a result, tell the user it is not investment advice.","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T03:40:59.591Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T03:40:59.593Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"monte-neo","version":"0.54.0","websiteUrl":"https://neozork.github.io/Monte-Neo/"}},"cacheScope":"private","resultType":"complete","tools":[{"description":"Verify a strategy backtest and return a strategy-verdict/1 certificate.\n\nArgs:\n    ohlcv_path: CSV/Parquet with open, high, low, close (optional timestamp).\n    signals_path: Positions per bar (+1 long, 0 flat, -1 short, or weights in [-1, 1]) as CSV/Parquet/NPY.\n    strategy_path: Python file 'path.py[:func]' defining func(df) -> positions.\n        Enables look-ahead probes and static lint. Runs with your permissions.\n    n_trials: Number of variants tried before choosing this one (selection bias).\n    ledger: Count the variants tried on this data in .monte-neo/ledger.jsonl (hash-chained); the larger of the\n        count and n_trials deflates the Sharpe. Turn it on when you try several variants.\n    commission_bps: Commission per side in basis points.\n    slippage_bps: Slippage per side in basis points.\n    side_mode: 'long_flat' or 'long_short' (default inferred).\n    warmup_bars: Bars skipped before trading (default min(60, n/10)).\n    positions: 'sign' (+1/0/-1), 'weight' (fraction of equity in [-1, 1]) or 'auto'\n        (weights when all values are in [-1, 1] and some are fractional).\n    timeout: Seconds allowed per signal() call; the strategy runs in a worker process.\n    jobs: Worker processes for the probe calls (raise for slow strategies).\n    isolate: Block network, subprocesses and file writes for the strategy.\n    claim: What was claimed, e.g. {\"sharpe\": 2.1, \"total_return\": 0.85, \"max_drawdown\": 0.12,\n        \"n_trades\": 300} (or a JSON file path): a claim better than the verified result fails.\n    funding_bps_per_bar: Funding on every open position, bps of its value per bar (default 0).\n    borrow_bps_per_bar: Borrow fee on short positions only, bps of their value per bar (default 0).\n    sl_pct: Stop-loss in percent of the entry price, tested inside each bar (default 0 = off).\n    tp_pct: Take-profit in percent of the entry price (default 0 = off).\n    trail_pct: Trailing stop in percent from the best price since entry (default 0 = off).\n    symbol_costs: Universes only: costs by symbol, e.g. {\"AAA\": {\"commission_bps\": 2, \"slippage_bps\": 1}, \"default\": {\"slippage_bps\": 10}}\n        (or a JSON file path). A symbol takes its own values, then \"default\", then the uniform costs above.\n    repaint: 'off', 'auto' or 'strict': how densely to check that a signal never changes after it was shown (history)\n        and while the bar forms. A signal that changes after it was shown fails.\n    signal_timing: 'close' (default) or 'open': 'open' declares the signal known at the bar's open; one that needs the\n        bar's own prices fails.\n    registration: Id of a pre-registered hypothesis (register_hypothesis); the certificate says whether it protects the result.\n    policy_path: TOML file with the institution's thresholds (monte-neo policy init); a breach shows in the policy row.\n    trials_from: Count variants already tried in a tracker, offline: mlflow:PATH[:EXPERIMENT],\n        optuna:sqlite:///study.db[:STUDY], wandb:export.csv, csv:trials.csv or ledger:PATH (the largest count is used).\n    model_cutoff: 'YYYY-MM' training cutoff of an LLM or foundation model the strategy uses: the edge must survive it.\n    events_path: Events (published_at, optional event_time and symbol, value columns): joined by publication time\n        as ev_<column> columns the strategy reads; with event_time the leaky join is priced (pit_events).\n    events_delay: Seconds after publication before an event is usable.\nA strategy file may define fit(train) and predict(model, df) instead of signal(df): the verifier then refits the\nmodel only on the past (walk-forward) and compares with the whole-file fit (ml_refit_gap).\n    compact: Drop details of passing checks to keep the response short.\n","inputSchema":{"properties":{"borrow_bps_per_bar":{"default":0.0,"title":"Borrow Bps Per Bar","type":"number"},"claim":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"default":null,"title":"Claim"},"commission_bps":{"default":5.0,"title":"Commission Bps","type":"number"},"compact":{"default":true,"title":"Compact","type":"boolean"},"events_delay":{"default":0.0,"title":"Events Delay","type":"number"},"events_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Events Path"},"funding_bps_per_bar":{"default":0.0,"title":"Funding Bps Per Bar","type":"number"},"isolate":{"default":false,"title":"Isolate","type":"boolean"},"jobs":{"default":1,"title":"Jobs","type":"integer"},"ledger":{"default":false,"title":"Ledger","type":"boolean"},"model_cutoff":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Model Cutoff"},"n_trials":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"N Trials"},"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"policy_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Policy Path"},"positions":{"default":"auto","title":"Positions","type":"string"},"registration":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Registration"},"repaint":{"default":"auto","title":"Repaint","type":"string"},"side_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Side Mode"},"signal_timing":{"default":"close","title":"Signal Timing","type":"string"},"signals_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Signals Path"},"sl_pct":{"default":0.0,"title":"Sl Pct","type":"number"},"slippage_bps":{"default":5.0,"title":"Slippage Bps","type":"number"},"strategy_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Strategy Path"},"symbol_costs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"default":null,"title":"Symbol Costs"},"timeout":{"default":300.0,"title":"Timeout","type":"number"},"tp_pct":{"default":0.0,"title":"Tp Pct","type":"number"},"trail_pct":{"default":0.0,"title":"Trail Pct","type":"number"},"trials_from":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Trials From"},"warmup_bars":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Warmup Bars"}},"required":["ohlcv_path"],"title":"verify_strategyArguments","type":"object"},"name":"verify_strategy","outputSchema":{"additionalProperties":true,"title":"verify_strategyDictOutput","type":"object"}},{"description":"Run the parameter search inside the verifier and verify the best combo.\n\nPrefer this over verify_strategy when you tuned parameters: n_trials and the\nspread of trial Sharpes are measured instead of declared, and an anchored\nwalk-forward scores re-selected parameters out of sample.\n\nArgs:\n    ohlcv_path: CSV/Parquet with open, high, low, close.\n    strategy_path: Python file 'path.py[:func]' defining func(df, **params) -> positions.\n    grid: Parameter grid, e.g. {\"fast\": [10, 20], \"slow\": [50, 100]} (max 512 combos).\n    commission_bps: Commission per side in basis points.\n    slippage_bps: Slippage per side in basis points.\n    side_mode: 'long_flat' or 'long_short' (default long_short).\n    folds: Walk-forward folds.\n    positions: 'sign', 'weight' or 'auto' (see verify_strategy).\n    timeout: Seconds allowed per signal() call; the strategy runs in worker processes.\n    jobs: Worker processes (the grid's combos run in parallel).\n    isolate: Block network, subprocesses and file writes for the strategy.\n    claim: What was claimed (see verify_strategy); compared with the verified result.\n    funding_bps_per_bar: Funding on every open position, bps of its value per bar (default 0).\n    borrow_bps_per_bar: Borrow fee on short positions only, bps of their value per bar (default 0).\n    sl_pct: Stop-loss in percent of the entry price, tested inside each bar (default 0 = off).\n    tp_pct: Take-profit in percent of the entry price (default 0 = off).\n    trail_pct: Trailing stop in percent from the best price since entry (default 0 = off).\n    symbol_costs: Universes only: costs by symbol, e.g. {\"AAA\": {\"commission_bps\": 2, \"slippage_bps\": 1}, \"default\": {\"slippage_bps\": 10}}\n        (or a JSON file path). A symbol takes its own values, then \"default\", then the uniform costs above.\n    compact: Drop details of passing checks to keep the response short.\n","inputSchema":{"properties":{"borrow_bps_per_bar":{"default":0.0,"title":"Borrow Bps Per Bar","type":"number"},"claim":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"default":null,"title":"Claim"},"commission_bps":{"default":5.0,"title":"Commission Bps","type":"number"},"compact":{"default":true,"title":"Compact","type":"boolean"},"folds":{"default":4,"title":"Folds","type":"integer"},"funding_bps_per_bar":{"default":0.0,"title":"Funding Bps Per Bar","type":"number"},"grid":{"additionalProperties":{"items":{},"type":"array"},"title":"Grid","type":"object"},"isolate":{"default":false,"title":"Isolate","type":"boolean"},"jobs":{"default":1,"title":"Jobs","type":"integer"},"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"positions":{"default":"auto","title":"Positions","type":"string"},"side_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Side Mode"},"sl_pct":{"default":0.0,"title":"Sl Pct","type":"number"},"slippage_bps":{"default":5.0,"title":"Slippage Bps","type":"number"},"strategy_path":{"title":"Strategy Path","type":"string"},"symbol_costs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"default":null,"title":"Symbol Costs"},"timeout":{"default":300.0,"title":"Timeout","type":"number"},"tp_pct":{"default":0.0,"title":"Tp Pct","type":"number"},"trail_pct":{"default":0.0,"title":"Trail Pct","type":"number"}},"required":["ohlcv_path","strategy_path","grid"],"title":"verify_gridArguments","type":"object"},"name":"verify_grid","outputSchema":{"additionalProperties":true,"title":"verify_gridDictOutput","type":"object"}},{"description":"Reproduce a strategy-verdict/1 certificate from its original inputs.\n\nArgs:\n    certificate_path: JSON certificate written by verify (--out) or returned by a tool.\n    ohlcv_path: The same OHLCV file that was verified (not for a quote certificate).\n    signals_path: The same positions file (or use strategy_path).\n    strategy_path: The same strategy file that was verified.\n    timeout: Seconds allowed per signal() call; the strategy runs in a worker process.\n    isolate: Block network, subprocesses and file writes for the strategy.\n    quotes_path: The same quotes file, for a certificate issued by verify_quotes (needs strategy_path).\n","inputSchema":{"properties":{"certificate_path":{"title":"Certificate Path","type":"string"},"isolate":{"default":false,"title":"Isolate","type":"boolean"},"ohlcv_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Ohlcv Path"},"quotes_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Quotes Path"},"signals_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Signals Path"},"strategy_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Strategy Path"},"timeout":{"default":300.0,"title":"Timeout","type":"number"}},"required":["certificate_path"],"title":"recheck_certificateArguments","type":"object"},"name":"recheck_certificate","outputSchema":{"additionalProperties":true,"title":"recheck_certificateDictOutput","type":"object"}},{"description":"Check the Ed25519 signature of a strategy-verdict/1 certificate.\n\nArgs:\n    certificate_path: Signed JSON certificate.\n    public_key: The issuer's published key ('ed25519:<base64>' or a .pub file). Without it\n        the check proves only that the certificate was not edited after signing.\n","inputSchema":{"properties":{"certificate_path":{"title":"Certificate Path","type":"string"},"public_key":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Public Key"}},"required":["certificate_path"],"title":"check_signatureArguments","type":"object"},"name":"check_signature","outputSchema":{"additionalProperties":true,"title":"check_signatureDictOutput","type":"object"}},{"description":"Look-ahead probes only: static lint, outside data, determinism, truncation, future perturbation.\n\nArgs:\n    ohlcv_path: CSV/Parquet with open, high, low, close.\n    strategy_path: Python file 'path.py[:func]' defining func(df) -> positions.\n    timeout: Seconds allowed per signal() call; the strategy runs in a worker process.\n    jobs: Worker processes for the probe calls.\n    isolate: Block network, subprocesses and file writes for the strategy.\n","inputSchema":{"properties":{"isolate":{"default":false,"title":"Isolate","type":"boolean"},"jobs":{"default":1,"title":"Jobs","type":"integer"},"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"strategy_path":{"title":"Strategy Path","type":"string"},"timeout":{"default":300.0,"title":"Timeout","type":"number"}},"required":["ohlcv_path","strategy_path"],"title":"probe_lookaheadArguments","type":"object"},"name":"probe_lookahead","outputSchema":{"additionalProperties":true,"title":"probe_lookaheadDictOutput","type":"object"}},{"description":"Break-even cost (bps per side) and returns under 0/1/2 bars of execution delay.\n\nArgs:\n    ohlcv_path: CSV/Parquet with open, high, low, close.\n    signals_path: Positions per bar file (or use strategy_path).\n    strategy_path: Python file 'path.py[:func]' defining func(df) -> positions.\n    commission_bps: Commission per side in basis points.\n    slippage_bps: Slippage per side in basis points.\n    side_mode: 'long_flat' or 'long_short' (default inferred).\n    positions: 'sign', 'weight' or 'auto' (see verify_strategy).\n    timeout: Seconds allowed for the signal() call; the strategy runs in a worker process.\n","inputSchema":{"properties":{"commission_bps":{"default":5.0,"title":"Commission Bps","type":"number"},"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"positions":{"default":"auto","title":"Positions","type":"string"},"side_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Side Mode"},"signals_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Signals Path"},"slippage_bps":{"default":5.0,"title":"Slippage Bps","type":"number"},"strategy_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Strategy Path"},"timeout":{"default":300.0,"title":"Timeout","type":"number"}},"required":["ohlcv_path"],"title":"cost_stressArguments","type":"object"},"name":"cost_stress","outputSchema":{"additionalProperties":true,"title":"cost_stressDictOutput","type":"object"}},{"description":"Write a certificate as a self-contained HTML report for people (equity chart, checks, periods).\n\nArgs:\n    certificate_path: JSON certificate written by verify (--out) or saved from verify_strategy.\n    html_path: Where to write the .html file.\n","inputSchema":{"properties":{"certificate_path":{"title":"Certificate Path","type":"string"},"html_path":{"title":"Html Path","type":"string"}},"required":["certificate_path","html_path"],"title":"render_reportArguments","type":"object"},"name":"render_report","outputSchema":{"additionalProperties":true,"title":"render_reportDictOutput","type":"object"}},{"description":"Verify a strategy against the time its quotes really arrived; returns a strategy-verdict/1 certificate.\n\nUse this for intraday strategies built on bid/ask quotes. A backtest that bins quotes by the exchange\nstamp lets the strategy act on prices that had not reached you yet; this tool also bins them by\nstamp + latency and compares.\n\nArgs:\n    quotes_path: CSV/Parquet of one instrument with timestamp, bid, ask and latency_ms (or an arrival timestamp).\n    strategy_path: Python file 'path.py[:func]' defining func(df) -> positions on bars of open, high, low,\n        close, volume. Runs with your permissions.\n    bar_ms: Bar length in milliseconds.\n    commission_bps: Commission per side in basis points (default 1: quote strategies trade often).\n    slippage_bps: Slippage per side in basis points.\n    latency_samples: Seeded redraws of the observed latency for the Monte Carlo.\n    positions: 'sign', 'weight' or 'auto'.\n    compact: Drop details of passing checks to keep the response short.\n    symbol: The symbol to verify when the table holds several.\n    order_latency_ms: Delay from the decision to the fill in ms (the data latency comes from the quotes).\n    feeds: Other symbols the strategy reads (needs symbol); their columns are prefixed by the symbol with\n        non-word characters replaced by \"_\", e.g. ETH_USDT_X_close.\n    latency_model: Assume the data latency instead of reading it: \"constant:MS\" or \"lognormal:MEDIAN_MS,P95_MS\".\n    probes: Also run the look-ahead probes of verify_strategy on the arrival bars.\n","inputSchema":{"properties":{"bar_ms":{"default":1000.0,"title":"Bar Ms","type":"number"},"commission_bps":{"default":1.0,"title":"Commission Bps","type":"number"},"compact":{"default":true,"title":"Compact","type":"boolean"},"feeds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Feeds"},"latency_model":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Latency Model"},"latency_samples":{"default":200,"title":"Latency Samples","type":"integer"},"order_latency_ms":{"default":0.0,"title":"Order Latency Ms","type":"number"},"positions":{"default":"auto","title":"Positions","type":"string"},"probes":{"default":true,"title":"Probes","type":"boolean"},"quotes_path":{"title":"Quotes Path","type":"string"},"slippage_bps":{"default":0.0,"title":"Slippage Bps","type":"number"},"strategy_path":{"title":"Strategy Path","type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Symbol"}},"required":["quotes_path","strategy_path"],"title":"verify_quotesArguments","type":"object"},"name":"verify_quotes","outputSchema":{"additionalProperties":true,"title":"verify_quotesDictOutput","type":"object"}},{"description":"Suggest a causal rewrite of a strategy file that reads the future (negative shifts, centred windows, whole-table statistics...).\n\nReturns the rewrites (rule, line, before, after), the patched source, a unified diff and the lint findings that\nremain. The patch keeps the shape of the strategy, not its meaning: verify it with verify_strategy before using it,\nand write the patched source to a new file yourself (nothing is written here). Comments are not kept.\n","inputSchema":{"properties":{"strategy_path":{"title":"Strategy Path","type":"string"}},"required":["strategy_path"],"title":"suggest_fixArguments","type":"object"},"name":"suggest_fix","outputSchema":{"additionalProperties":true,"title":"suggest_fixDictOutput","type":"object"}},{"description":"Search causal indicator formulas on a price table and verify the winner.\n\nThe search is counted (effective trials after clustering), tested against the same search on shuffled markets,\nReality Check / SPA, and a lockbox opened once. Returns found, reasons, the source of the winner, the\ncertificate and the search statistics (the per-candidate journal is left out). Nothing is written.\n","inputSchema":{"properties":{"budget":{"default":2000,"title":"Budget","type":"integer"},"cost_bps":{"default":5.0,"title":"Cost Bps","type":"number"},"evolve":{"default":0,"title":"Evolve","type":"integer"},"lockbox":{"default":0.2,"title":"Lockbox","type":"number"},"null_runs":{"default":39,"title":"Null Runs","type":"integer"},"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"seed":{"default":1,"title":"Seed","type":"integer"},"side":{"default":"long_short","title":"Side","type":"string"}},"required":["ohlcv_path"],"title":"discover_indicatorArguments","type":"object"},"name":"discover_indicator","outputSchema":{"additionalProperties":true,"title":"discover_indicatorDictOutput","type":"object"}},{"description":"Write a hypothesis down before testing it (pre-registration, hash-chained in .monte-neo/registrations.jsonl).\n\nPass the returned id as ``registration`` to verify_strategy: the certificate then says whether the verified code is the\nregistered one. Register before the first run; a later registration does not protect against HARKing.\n","inputSchema":{"properties":{"hypothesis":{"title":"Hypothesis","type":"string"},"n_trials":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"N Trials"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"},"strategy_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Strategy Path"}},"required":["hypothesis"],"title":"register_hypothesisArguments","type":"object"},"name":"register_hypothesis","outputSchema":{"additionalProperties":true,"title":"register_hypothesisDictOutput","type":"object"}},{"description":"What changed between two certificates: verdict, metrics, check statuses, and whether the verdict regressed.","inputSchema":{"properties":{"new_path":{"title":"New Path","type":"string"},"old_path":{"title":"Old Path","type":"string"}},"required":["old_path","new_path"],"title":"compare_certificatesArguments","type":"object"},"name":"compare_certificates","outputSchema":{"additionalProperties":true,"title":"compare_certificatesDictOutput","type":"object"}},{"description":"Ask the hold-out oracle (Thresholdout) whether a strategy's hold-out result agrees with its training result.\n\nAnswers 'consistent' with the training Sharpe, or 'not consistent' with a noisy hold-out Sharpe that spends budget.\nThe hold-out is never shown. Initialise once with `monte-neo oracle init`.\n","inputSchema":{"properties":{"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"oracle_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Oracle Path"},"strategy_path":{"title":"Strategy Path","type":"string"}},"required":["ohlcv_path","strategy_path"],"title":"holdout_queryArguments","type":"object"},"name":"holdout_query","outputSchema":{"additionalProperties":true,"title":"holdout_queryDictOutput","type":"object"}},{"description":"Verify several strategies together: effective number of independent strategies, SPA over the list, the best one deflated, the ensemble.","inputSchema":{"properties":{"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"strategy_paths":{"items":{"type":"string"},"title":"Strategy Paths","type":"array"}},"required":["ohlcv_path","strategy_paths"],"title":"verify_portfolioArguments","type":"object"},"name":"verify_portfolio","outputSchema":{"additionalProperties":true,"title":"verify_portfolioDictOutput","type":"object"}},{"description":"Known problems of a data provider's export (Binance, Yahoo, Polygon, Databento, TradingView, MT5): bar labels, time zones, units, adjustments.","inputSchema":{"properties":{"provider":{"default":"auto","title":"Provider","type":"string"},"table_path":{"title":"Table Path","type":"string"}},"required":["table_path"],"title":"diagnose_dataArguments","type":"object"},"name":"diagnose_data","outputSchema":{"additionalProperties":true,"title":"diagnose_dataDictOutput","type":"object"}},{"description":"Does a cross-sectional score predict returns, and can its top-minus-bottom portfolio be traded? (alpha-report/1)\n\nCall it before you call a ranking signal \"alpha\". Family A: rank IC with Newey-West t, IC decay, quantile\nmonotonicity, long and short legs, breadth, permuted-score placebos, selection against timing. Family D: market\nimpact and participation at ``aum``, capacity curve, short feasibility, holding period against signal decay,\ndependence on the rebalance day.\n\nArgs:\n    prices_path: Universe prices (.csv / .parquet): timestamp, symbol, close[, volume].\n    scores_path: Scores (.csv / .parquet): timestamp (or date), symbol, score; the score at t ranks returns after t.\n    horizon: Forward-return horizon in bars.\n    quantiles: Quantile buckets.\n    claimed_ir: Claimed annual information ratio (checked against IC and breadth).\n    aum: Capital you plan to run, for market impact and participation.\n    seed: Seed for bootstraps and placebos.\n    factors_path: Factor returns file (date + factors); default: market, size, momentum, reversal and low-volatility factors built from the universe.\n    book_path: Returns of the user's existing book (date + one column per strategy): marginal Sharpe, overlap.\n    n_trials: Variants tried before this one (Harvey-Liu-Zhu hurdle, minimum backtest length, Sharpe haircut).\n\nThe report also covers attribution (is it a known factor, hidden short volatility), value to a book, multiple\ntesting and risk (neutrality, concentration, named crises, tail risk).\n","inputSchema":{"properties":{"aum":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Aum"},"book_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Book Path"},"claimed_ir":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Claimed Ir"},"factors_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Factors Path"},"horizon":{"default":1,"title":"Horizon","type":"integer"},"n_trials":{"default":1,"title":"N Trials","type":"integer"},"prices_path":{"title":"Prices Path","type":"string"},"quantiles":{"default":5,"title":"Quantiles","type":"integer"},"scores_path":{"title":"Scores Path","type":"string"},"seed":{"default":0,"title":"Seed","type":"integer"}},"required":["prices_path","scores_path"],"title":"validate_alphaArguments","type":"object"},"name":"validate_alpha","outputSchema":{"additionalProperties":true,"title":"validate_alphaDictOutput","type":"object"}},{"description":"Due diligence on a track record given only as returns (no code, no positions): strategy-verdict/1.\n\nSmoothed returns (Getmansky-Lo-Makarov), missing small losses (a kink at zero), implausibly consistent gains, round\nnumbers, significance with the manager's number of strategies (Deflated Sharpe), a drawdown too shallow for the\nvolatility, the relation to a benchmark and a claim check. Look-ahead and costs cannot be checked from returns alone;\nthe report says so.\n\nArgs:\n    returns_path: CSV/Parquet with a date column and a return column (decimals or percent).\n    benchmark_path: Optional benchmark returns in the same format.\n    n_strategies: How many funds or strategies the manager runs (prices the selection of the best one).\n    claim: What the manager claims, e.g. {\"annual_return\": 0.18, \"sharpe\": 2.0, \"max_drawdown\": 0.06}.\n","inputSchema":{"properties":{"benchmark_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Benchmark Path"},"claim":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"default":null,"title":"Claim"},"n_strategies":{"default":1,"title":"N Strategies","type":"integer"},"returns_path":{"title":"Returns Path","type":"string"}},"required":["returns_path"],"title":"verify_returnsArguments","type":"object"},"name":"verify_returns","outputSchema":{"additionalProperties":true,"title":"verify_returnsDictOutput","type":"object"}},{"description":"Re-derive a spread / pairs / stat-arb strategy's P&L from its leg positions and compare it with the reported return.\n\nCatches \"phantom mean reversion\": a rolling hedge ratio booked as position * change of the spread earns a profit that\nno trader could (it even earns on independent random walks). The check fails (verdict REJECT, check\n``accounting_mismatch``) when more than ``tolerance`` of the reported P&L is not what the legs earned. The fix is in\n``next_actions``: book position.shift(1) * (d_y - beta.shift(1) * d_x).\n\nArgs:\n    legs_path: CSV/Parquet with date, px_<leg> and qty_<leg> for every leg, and reported_return. The quantity is held\n        over the bar that ends at date (decided at the previous bar); optional ``cost`` column.\n    tolerance: Largest unexplained share of the P&L (default 0.05).\n    pnl: \"log\" (P&L = quantity * change of the log price) or \"simple\" (quantity = fraction of equity).\n    periods_per_year: Bars per year; inferred from the dates when omitted.\n","inputSchema":{"properties":{"legs_path":{"title":"Legs Path","type":"string"},"periods_per_year":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Periods Per Year"},"pnl":{"default":"log","title":"Pnl","type":"string"},"tolerance":{"default":0.05,"title":"Tolerance","type":"number"}},"required":["legs_path"],"title":"verify_legsArguments","type":"object"},"name":"verify_legs","outputSchema":{"additionalProperties":true,"title":"verify_legsDictOutput","type":"object"}},{"description":"Write a validation dossier folder from a certificate, for a model-risk committee, a validator or an auditor.\n\nThe folder holds dossier.html (one page: summary, checks, framework map, assumptions and limitations, how to\nreproduce, blank sign-off fields), dossier.json, certificate.json, environment.json, REPRODUCE.md and limitations.md.\nThe framework map shows evidence per clause, not compliance.\n\nArgs:\n    certificate_path: A strategy-verdict/1 certificate (JSON).\n    out_dir: Folder to write.\n    framework: 'generic', 'sr11-7', 'ss1-23' or 'rts6'.\n    name: Model name. owner: Model owner. purpose: What the model is for.\n    alpha_path: Optional alpha-report/1 JSON of the strategy's signal.\n","inputSchema":{"properties":{"alpha_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Alpha Path"},"certificate_path":{"title":"Certificate Path","type":"string"},"framework":{"default":"generic","title":"Framework","type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Name"},"out_dir":{"title":"Out Dir","type":"string"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Owner"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Purpose"}},"required":["certificate_path","out_dir"],"title":"build_dossierArguments","type":"object"},"name":"build_dossier","outputSchema":{"additionalProperties":true,"title":"build_dossierDictOutput","type":"object"}},{"description":"After launch: does the live (or paper) strategy behave like its backtest, and is the alpha dead? (live-monitor/1)\n\nLive against backtest on the same dates (correlation, tracking error), realised slippage from fills against the\nmodelled one (with a recommended value), sequential alarms (CUSUM, SPRT) against the backtest edge shrunk by\n``haircut``, and the live history still needed to confirm the edge.\n\nArgs:\n    certificate_or_backtest_path: The strategy's certificate (.json) or a backtest returns file (date, return).\n    live_path: Live or paper returns (date, return) or fills (timestamp, symbol, side, quantity, price[, reference_price]).\n    fills_path: Optional fills file when live_path holds returns.\n    slippage_bps: Modelled slippage to compare with (default: the certificate's).\n    haircut: Share of the backtest edge expected live (default 0.5).\n","inputSchema":{"properties":{"certificate_or_backtest_path":{"title":"Certificate Or Backtest Path","type":"string"},"fills_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Fills Path"},"haircut":{"default":0.5,"title":"Haircut","type":"number"},"live_path":{"title":"Live Path","type":"string"},"slippage_bps":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Slippage Bps"}},"required":["certificate_or_backtest_path","live_path"],"title":"monitor_liveArguments","type":"object"},"name":"monitor_live","outputSchema":{"additionalProperties":true,"title":"monitor_liveDictOutput","type":"object"}},{"description":"Repair a strategy's defects without overfitting it, or say why it cannot be repaired (repair-report/1).\n\nLook-ahead and repainting are corrected first (causal rewrites, one-bar delay). Then a few declared repairs\n(smoothing, holding period, no-trade band, volatility targeting, neutralisation, caps, liquidity filter) are chosen\non the first 70 % of the history by the number of defects, never by return, each counted as a trial. The rest of\nthe history is a lockbox opened once. Outcomes: REPAIRED (the lockbox still earns after costs and is not rejected; read its failed checks), REPAIRED_NO_EDGE\n(the profit was in the defect), NOT_REPAIRABLE (what the user must do), NOTHING_TO_REPAIR. The original file is never\nchanged; out_dir gets strategy.repaired.py, repair.diff, certificate.json and repair-report.json/html. Do not call it\nagain on the same data to look for a better outcome: report the outcome as it is.\n\nArgs:\n    ohlcv_path: Prices (.csv / .parquet).\n    strategy_path: Strategy file 'path.py[:func]'.\n    out_dir: Folder for the results.\n    commission_bps: Commission per side. slippage_bps: Slippage per side.\n    n_trials: Variants tried before the repair. budget: At most this many candidate repairs.\n","inputSchema":{"properties":{"budget":{"default":24,"title":"Budget","type":"integer"},"commission_bps":{"default":5.0,"title":"Commission Bps","type":"number"},"n_trials":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"N Trials"},"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"out_dir":{"default":"repair","title":"Out Dir","type":"string"},"slippage_bps":{"default":5.0,"title":"Slippage Bps","type":"number"},"strategy_path":{"title":"Strategy Path","type":"string"}},"required":["ohlcv_path","strategy_path"],"title":"repair_strategyArguments","type":"object"},"name":"repair_strategy","outputSchema":{"additionalProperties":true,"title":"repair_strategyDictOutput","type":"object"}},{"description":"JSON schema of the strategy-verdict/1 certificate.","inputSchema":{"properties":{},"title":"verdict_schemaArguments","type":"object"},"name":"verdict_schema","outputSchema":{"additionalProperties":true,"title":"verdict_schemaDictOutput","type":"object"}},{"description":"Execution semantics and check catalogue — read before building a backtest.","inputSchema":{"properties":{},"title":"verifier_manifestArguments","type":"object"},"name":"verifier_manifest","outputSchema":{"additionalProperties":true,"title":"verifier_manifestDictOutput","type":"object"}}],"ttlMs":0}}}
{"at":"2026-11-23T03:40:59.744Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T03:41:00.675Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Monte-Neo is an independent verifier for trading-strategy backtests. Before you claim a strategy is profitable, call verify_strategy with the OHLCV file and either the positions file or the strategy .py file (a signal(df) function). Pass n_trials = how many variants you tried, or call verify_grid with your parameter grid so the verifier counts them. Treat REJECT as a bug in the backtest, fix what next_actions says and re-verify. Report the verdict and certificate_id to the user instead of your own backtest numbers. If you already have numbers you plan to report, pass them as claim (sharpe, total_return, max_drawdown, n_trades): a claim better than the verified result fails the claim_consistency check. For intraday strategies on bid/ask quotes call verify_quotes: it checks whether the profit survives the time the quotes really arrived (stamp + latency). Every answer has a disclaimer field: when you present a result, tell the user it is not investment advice.","protocolVersion":"2025-11-25","serverInfo":{"name":"monte-neo","version":"0.54.0","websiteUrl":"https://neozork.github.io/Monte-Neo/"}}}}
{"at":"2026-11-23T03:41:00.675Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T03:41:00.675Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T03:41:00.677Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Verify a strategy backtest and return a strategy-verdict/1 certificate.\n\nArgs:\n    ohlcv_path: CSV/Parquet with open, high, low, close (optional timestamp).\n    signals_path: Positions per bar (+1 long, 0 flat, -1 short, or weights in [-1, 1]) as CSV/Parquet/NPY.\n    strategy_path: Python file 'path.py[:func]' defining func(df) -> positions.\n        Enables look-ahead probes and static lint. Runs with your permissions.\n    n_trials: Number of variants tried before choosing this one (selection bias).\n    ledger: Count the variants tried on this data in .monte-neo/ledger.jsonl (hash-chained); the larger of the\n        count and n_trials deflates the Sharpe. Turn it on when you try several variants.\n    commission_bps: Commission per side in basis points.\n    slippage_bps: Slippage per side in basis points.\n    side_mode: 'long_flat' or 'long_short' (default inferred).\n    warmup_bars: Bars skipped before trading (default min(60, n/10)).\n    positions: 'sign' (+1/0/-1), 'weight' (fraction of equity in [-1, 1]) or 'auto'\n        (weights when all values are in [-1, 1] and some are fractional).\n    timeout: Seconds allowed per signal() call; the strategy runs in a worker process.\n    jobs: Worker processes for the probe calls (raise for slow strategies).\n    isolate: Block network, subprocesses and file writes for the strategy.\n    claim: What was claimed, e.g. {\"sharpe\": 2.1, \"total_return\": 0.85, \"max_drawdown\": 0.12,\n        \"n_trades\": 300} (or a JSON file path): a claim better than the verified result fails.\n    funding_bps_per_bar: Funding on every open position, bps of its value per bar (default 0).\n    borrow_bps_per_bar: Borrow fee on short positions only, bps of their value per bar (default 0).\n    sl_pct: Stop-loss in percent of the entry price, tested inside each bar (default 0 = off).\n    tp_pct: Take-profit in percent of the entry price (default 0 = off).\n    trail_pct: Trailing stop in percent from the best price since entry (default 0 = off).\n    symbol_costs: Universes only: costs by symbol, e.g. {\"AAA\": {\"commission_bps\": 2, \"slippage_bps\": 1}, \"default\": {\"slippage_bps\": 10}}\n        (or a JSON file path). A symbol takes its own values, then \"default\", then the uniform costs above.\n    repaint: 'off', 'auto' or 'strict': how densely to check that a signal never changes after it was shown (history)\n        and while the bar forms. A signal that changes after it was shown fails.\n    signal_timing: 'close' (default) or 'open': 'open' declares the signal known at the bar's open; one that needs the\n        bar's own prices fails.\n    registration: Id of a pre-registered hypothesis (register_hypothesis); the certificate says whether it protects the result.\n    policy_path: TOML file with the institution's thresholds (monte-neo policy init); a breach shows in the policy row.\n    trials_from: Count variants already tried in a tracker, offline: mlflow:PATH[:EXPERIMENT],\n        optuna:sqlite:///study.db[:STUDY], wandb:export.csv, csv:trials.csv or ledger:PATH (the largest count is used).\n    model_cutoff: 'YYYY-MM' training cutoff of an LLM or foundation model the strategy uses: the edge must survive it.\n    events_path: Events (published_at, optional event_time and symbol, value columns): joined by publication time\n        as ev_<column> columns the strategy reads; with event_time the leaky join is priced (pit_events).\n    events_delay: Seconds after publication before an event is usable.\nA strategy file may define fit(train) and predict(model, df) instead of signal(df): the verifier then refits the\nmodel only on the past (walk-forward) and compares with the whole-file fit (ml_refit_gap).\n    compact: Drop details of passing checks to keep the response short.\n","inputSchema":{"properties":{"borrow_bps_per_bar":{"default":0.0,"title":"Borrow Bps Per Bar","type":"number"},"claim":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"default":null,"title":"Claim"},"commission_bps":{"default":5.0,"title":"Commission Bps","type":"number"},"compact":{"default":true,"title":"Compact","type":"boolean"},"events_delay":{"default":0.0,"title":"Events Delay","type":"number"},"events_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Events Path"},"funding_bps_per_bar":{"default":0.0,"title":"Funding Bps Per Bar","type":"number"},"isolate":{"default":false,"title":"Isolate","type":"boolean"},"jobs":{"default":1,"title":"Jobs","type":"integer"},"ledger":{"default":false,"title":"Ledger","type":"boolean"},"model_cutoff":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Model Cutoff"},"n_trials":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"N Trials"},"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"policy_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Policy Path"},"positions":{"default":"auto","title":"Positions","type":"string"},"registration":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Registration"},"repaint":{"default":"auto","title":"Repaint","type":"string"},"side_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Side Mode"},"signal_timing":{"default":"close","title":"Signal Timing","type":"string"},"signals_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Signals Path"},"sl_pct":{"default":0.0,"title":"Sl Pct","type":"number"},"slippage_bps":{"default":5.0,"title":"Slippage Bps","type":"number"},"strategy_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Strategy Path"},"symbol_costs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"default":null,"title":"Symbol Costs"},"timeout":{"default":300.0,"title":"Timeout","type":"number"},"tp_pct":{"default":0.0,"title":"Tp Pct","type":"number"},"trail_pct":{"default":0.0,"title":"Trail Pct","type":"number"},"trials_from":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Trials From"},"warmup_bars":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Warmup Bars"}},"required":["ohlcv_path"],"title":"verify_strategyArguments","type":"object"},"name":"verify_strategy","outputSchema":{"additionalProperties":true,"title":"verify_strategyDictOutput","type":"object"}},{"description":"Run the parameter search inside the verifier and verify the best combo.\n\nPrefer this over verify_strategy when you tuned parameters: n_trials and the\nspread of trial Sharpes are measured instead of declared, and an anchored\nwalk-forward scores re-selected parameters out of sample.\n\nArgs:\n    ohlcv_path: CSV/Parquet with open, high, low, close.\n    strategy_path: Python file 'path.py[:func]' defining func(df, **params) -> positions.\n    grid: Parameter grid, e.g. {\"fast\": [10, 20], \"slow\": [50, 100]} (max 512 combos).\n    commission_bps: Commission per side in basis points.\n    slippage_bps: Slippage per side in basis points.\n    side_mode: 'long_flat' or 'long_short' (default long_short).\n    folds: Walk-forward folds.\n    positions: 'sign', 'weight' or 'auto' (see verify_strategy).\n    timeout: Seconds allowed per signal() call; the strategy runs in worker processes.\n    jobs: Worker processes (the grid's combos run in parallel).\n    isolate: Block network, subprocesses and file writes for the strategy.\n    claim: What was claimed (see verify_strategy); compared with the verified result.\n    funding_bps_per_bar: Funding on every open position, bps of its value per bar (default 0).\n    borrow_bps_per_bar: Borrow fee on short positions only, bps of their value per bar (default 0).\n    sl_pct: Stop-loss in percent of the entry price, tested inside each bar (default 0 = off).\n    tp_pct: Take-profit in percent of the entry price (default 0 = off).\n    trail_pct: Trailing stop in percent from the best price since entry (default 0 = off).\n    symbol_costs: Universes only: costs by symbol, e.g. {\"AAA\": {\"commission_bps\": 2, \"slippage_bps\": 1}, \"default\": {\"slippage_bps\": 10}}\n        (or a JSON file path). A symbol takes its own values, then \"default\", then the uniform costs above.\n    compact: Drop details of passing checks to keep the response short.\n","inputSchema":{"properties":{"borrow_bps_per_bar":{"default":0.0,"title":"Borrow Bps Per Bar","type":"number"},"claim":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"default":null,"title":"Claim"},"commission_bps":{"default":5.0,"title":"Commission Bps","type":"number"},"compact":{"default":true,"title":"Compact","type":"boolean"},"folds":{"default":4,"title":"Folds","type":"integer"},"funding_bps_per_bar":{"default":0.0,"title":"Funding Bps Per Bar","type":"number"},"grid":{"additionalProperties":{"items":{},"type":"array"},"title":"Grid","type":"object"},"isolate":{"default":false,"title":"Isolate","type":"boolean"},"jobs":{"default":1,"title":"Jobs","type":"integer"},"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"positions":{"default":"auto","title":"Positions","type":"string"},"side_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Side Mode"},"sl_pct":{"default":0.0,"title":"Sl Pct","type":"number"},"slippage_bps":{"default":5.0,"title":"Slippage Bps","type":"number"},"strategy_path":{"title":"Strategy Path","type":"string"},"symbol_costs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"default":null,"title":"Symbol Costs"},"timeout":{"default":300.0,"title":"Timeout","type":"number"},"tp_pct":{"default":0.0,"title":"Tp Pct","type":"number"},"trail_pct":{"default":0.0,"title":"Trail Pct","type":"number"}},"required":["ohlcv_path","strategy_path","grid"],"title":"verify_gridArguments","type":"object"},"name":"verify_grid","outputSchema":{"additionalProperties":true,"title":"verify_gridDictOutput","type":"object"}},{"description":"Reproduce a strategy-verdict/1 certificate from its original inputs.\n\nArgs:\n    certificate_path: JSON certificate written by verify (--out) or returned by a tool.\n    ohlcv_path: The same OHLCV file that was verified (not for a quote certificate).\n    signals_path: The same positions file (or use strategy_path).\n    strategy_path: The same strategy file that was verified.\n    timeout: Seconds allowed per signal() call; the strategy runs in a worker process.\n    isolate: Block network, subprocesses and file writes for the strategy.\n    quotes_path: The same quotes file, for a certificate issued by verify_quotes (needs strategy_path).\n","inputSchema":{"properties":{"certificate_path":{"title":"Certificate Path","type":"string"},"isolate":{"default":false,"title":"Isolate","type":"boolean"},"ohlcv_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Ohlcv Path"},"quotes_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Quotes Path"},"signals_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Signals Path"},"strategy_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Strategy Path"},"timeout":{"default":300.0,"title":"Timeout","type":"number"}},"required":["certificate_path"],"title":"recheck_certificateArguments","type":"object"},"name":"recheck_certificate","outputSchema":{"additionalProperties":true,"title":"recheck_certificateDictOutput","type":"object"}},{"description":"Check the Ed25519 signature of a strategy-verdict/1 certificate.\n\nArgs:\n    certificate_path: Signed JSON certificate.\n    public_key: The issuer's published key ('ed25519:<base64>' or a .pub file). Without it\n        the check proves only that the certificate was not edited after signing.\n","inputSchema":{"properties":{"certificate_path":{"title":"Certificate Path","type":"string"},"public_key":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Public Key"}},"required":["certificate_path"],"title":"check_signatureArguments","type":"object"},"name":"check_signature","outputSchema":{"additionalProperties":true,"title":"check_signatureDictOutput","type":"object"}},{"description":"Look-ahead probes only: static lint, outside data, determinism, truncation, future perturbation.\n\nArgs:\n    ohlcv_path: CSV/Parquet with open, high, low, close.\n    strategy_path: Python file 'path.py[:func]' defining func(df) -> positions.\n    timeout: Seconds allowed per signal() call; the strategy runs in a worker process.\n    jobs: Worker processes for the probe calls.\n    isolate: Block network, subprocesses and file writes for the strategy.\n","inputSchema":{"properties":{"isolate":{"default":false,"title":"Isolate","type":"boolean"},"jobs":{"default":1,"title":"Jobs","type":"integer"},"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"strategy_path":{"title":"Strategy Path","type":"string"},"timeout":{"default":300.0,"title":"Timeout","type":"number"}},"required":["ohlcv_path","strategy_path"],"title":"probe_lookaheadArguments","type":"object"},"name":"probe_lookahead","outputSchema":{"additionalProperties":true,"title":"probe_lookaheadDictOutput","type":"object"}},{"description":"Break-even cost (bps per side) and returns under 0/1/2 bars of execution delay.\n\nArgs:\n    ohlcv_path: CSV/Parquet with open, high, low, close.\n    signals_path: Positions per bar file (or use strategy_path).\n    strategy_path: Python file 'path.py[:func]' defining func(df) -> positions.\n    commission_bps: Commission per side in basis points.\n    slippage_bps: Slippage per side in basis points.\n    side_mode: 'long_flat' or 'long_short' (default inferred).\n    positions: 'sign', 'weight' or 'auto' (see verify_strategy).\n    timeout: Seconds allowed for the signal() call; the strategy runs in a worker process.\n","inputSchema":{"properties":{"commission_bps":{"default":5.0,"title":"Commission Bps","type":"number"},"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"positions":{"default":"auto","title":"Positions","type":"string"},"side_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Side Mode"},"signals_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Signals Path"},"slippage_bps":{"default":5.0,"title":"Slippage Bps","type":"number"},"strategy_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Strategy Path"},"timeout":{"default":300.0,"title":"Timeout","type":"number"}},"required":["ohlcv_path"],"title":"cost_stressArguments","type":"object"},"name":"cost_stress","outputSchema":{"additionalProperties":true,"title":"cost_stressDictOutput","type":"object"}},{"description":"Write a certificate as a self-contained HTML report for people (equity chart, checks, periods).\n\nArgs:\n    certificate_path: JSON certificate written by verify (--out) or saved from verify_strategy.\n    html_path: Where to write the .html file.\n","inputSchema":{"properties":{"certificate_path":{"title":"Certificate Path","type":"string"},"html_path":{"title":"Html Path","type":"string"}},"required":["certificate_path","html_path"],"title":"render_reportArguments","type":"object"},"name":"render_report","outputSchema":{"additionalProperties":true,"title":"render_reportDictOutput","type":"object"}},{"description":"Verify a strategy against the time its quotes really arrived; returns a strategy-verdict/1 certificate.\n\nUse this for intraday strategies built on bid/ask quotes. A backtest that bins quotes by the exchange\nstamp lets the strategy act on prices that had not reached you yet; this tool also bins them by\nstamp + latency and compares.\n\nArgs:\n    quotes_path: CSV/Parquet of one instrument with timestamp, bid, ask and latency_ms (or an arrival timestamp).\n    strategy_path: Python file 'path.py[:func]' defining func(df) -> positions on bars of open, high, low,\n        close, volume. Runs with your permissions.\n    bar_ms: Bar length in milliseconds.\n    commission_bps: Commission per side in basis points (default 1: quote strategies trade often).\n    slippage_bps: Slippage per side in basis points.\n    latency_samples: Seeded redraws of the observed latency for the Monte Carlo.\n    positions: 'sign', 'weight' or 'auto'.\n    compact: Drop details of passing checks to keep the response short.\n    symbol: The symbol to verify when the table holds several.\n    order_latency_ms: Delay from the decision to the fill in ms (the data latency comes from the quotes).\n    feeds: Other symbols the strategy reads (needs symbol); their columns are prefixed by the symbol with\n        non-word characters replaced by \"_\", e.g. ETH_USDT_X_close.\n    latency_model: Assume the data latency instead of reading it: \"constant:MS\" or \"lognormal:MEDIAN_MS,P95_MS\".\n    probes: Also run the look-ahead probes of verify_strategy on the arrival bars.\n","inputSchema":{"properties":{"bar_ms":{"default":1000.0,"title":"Bar Ms","type":"number"},"commission_bps":{"default":1.0,"title":"Commission Bps","type":"number"},"compact":{"default":true,"title":"Compact","type":"boolean"},"feeds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Feeds"},"latency_model":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Latency Model"},"latency_samples":{"default":200,"title":"Latency Samples","type":"integer"},"order_latency_ms":{"default":0.0,"title":"Order Latency Ms","type":"number"},"positions":{"default":"auto","title":"Positions","type":"string"},"probes":{"default":true,"title":"Probes","type":"boolean"},"quotes_path":{"title":"Quotes Path","type":"string"},"slippage_bps":{"default":0.0,"title":"Slippage Bps","type":"number"},"strategy_path":{"title":"Strategy Path","type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Symbol"}},"required":["quotes_path","strategy_path"],"title":"verify_quotesArguments","type":"object"},"name":"verify_quotes","outputSchema":{"additionalProperties":true,"title":"verify_quotesDictOutput","type":"object"}},{"description":"Suggest a causal rewrite of a strategy file that reads the future (negative shifts, centred windows, whole-table statistics...).\n\nReturns the rewrites (rule, line, before, after), the patched source, a unified diff and the lint findings that\nremain. The patch keeps the shape of the strategy, not its meaning: verify it with verify_strategy before using it,\nand write the patched source to a new file yourself (nothing is written here). Comments are not kept.\n","inputSchema":{"properties":{"strategy_path":{"title":"Strategy Path","type":"string"}},"required":["strategy_path"],"title":"suggest_fixArguments","type":"object"},"name":"suggest_fix","outputSchema":{"additionalProperties":true,"title":"suggest_fixDictOutput","type":"object"}},{"description":"Search causal indicator formulas on a price table and verify the winner.\n\nThe search is counted (effective trials after clustering), tested against the same search on shuffled markets,\nReality Check / SPA, and a lockbox opened once. Returns found, reasons, the source of the winner, the\ncertificate and the search statistics (the per-candidate journal is left out). Nothing is written.\n","inputSchema":{"properties":{"budget":{"default":2000,"title":"Budget","type":"integer"},"cost_bps":{"default":5.0,"title":"Cost Bps","type":"number"},"evolve":{"default":0,"title":"Evolve","type":"integer"},"lockbox":{"default":0.2,"title":"Lockbox","type":"number"},"null_runs":{"default":39,"title":"Null Runs","type":"integer"},"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"seed":{"default":1,"title":"Seed","type":"integer"},"side":{"default":"long_short","title":"Side","type":"string"}},"required":["ohlcv_path"],"title":"discover_indicatorArguments","type":"object"},"name":"discover_indicator","outputSchema":{"additionalProperties":true,"title":"discover_indicatorDictOutput","type":"object"}},{"description":"Write a hypothesis down before testing it (pre-registration, hash-chained in .monte-neo/registrations.jsonl).\n\nPass the returned id as ``registration`` to verify_strategy: the certificate then says whether the verified code is the\nregistered one. Register before the first run; a later registration does not protect against HARKing.\n","inputSchema":{"properties":{"hypothesis":{"title":"Hypothesis","type":"string"},"n_trials":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"N Trials"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Params"},"strategy_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Strategy Path"}},"required":["hypothesis"],"title":"register_hypothesisArguments","type":"object"},"name":"register_hypothesis","outputSchema":{"additionalProperties":true,"title":"register_hypothesisDictOutput","type":"object"}},{"description":"What changed between two certificates: verdict, metrics, check statuses, and whether the verdict regressed.","inputSchema":{"properties":{"new_path":{"title":"New Path","type":"string"},"old_path":{"title":"Old Path","type":"string"}},"required":["old_path","new_path"],"title":"compare_certificatesArguments","type":"object"},"name":"compare_certificates","outputSchema":{"additionalProperties":true,"title":"compare_certificatesDictOutput","type":"object"}},{"description":"Ask the hold-out oracle (Thresholdout) whether a strategy's hold-out result agrees with its training result.\n\nAnswers 'consistent' with the training Sharpe, or 'not consistent' with a noisy hold-out Sharpe that spends budget.\nThe hold-out is never shown. Initialise once with `monte-neo oracle init`.\n","inputSchema":{"properties":{"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"oracle_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Oracle Path"},"strategy_path":{"title":"Strategy Path","type":"string"}},"required":["ohlcv_path","strategy_path"],"title":"holdout_queryArguments","type":"object"},"name":"holdout_query","outputSchema":{"additionalProperties":true,"title":"holdout_queryDictOutput","type":"object"}},{"description":"Verify several strategies together: effective number of independent strategies, SPA over the list, the best one deflated, the ensemble.","inputSchema":{"properties":{"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"strategy_paths":{"items":{"type":"string"},"title":"Strategy Paths","type":"array"}},"required":["ohlcv_path","strategy_paths"],"title":"verify_portfolioArguments","type":"object"},"name":"verify_portfolio","outputSchema":{"additionalProperties":true,"title":"verify_portfolioDictOutput","type":"object"}},{"description":"Known problems of a data provider's export (Binance, Yahoo, Polygon, Databento, TradingView, MT5): bar labels, time zones, units, adjustments.","inputSchema":{"properties":{"provider":{"default":"auto","title":"Provider","type":"string"},"table_path":{"title":"Table Path","type":"string"}},"required":["table_path"],"title":"diagnose_dataArguments","type":"object"},"name":"diagnose_data","outputSchema":{"additionalProperties":true,"title":"diagnose_dataDictOutput","type":"object"}},{"description":"Does a cross-sectional score predict returns, and can its top-minus-bottom portfolio be traded? (alpha-report/1)\n\nCall it before you call a ranking signal \"alpha\". Family A: rank IC with Newey-West t, IC decay, quantile\nmonotonicity, long and short legs, breadth, permuted-score placebos, selection against timing. Family D: market\nimpact and participation at ``aum``, capacity curve, short feasibility, holding period against signal decay,\ndependence on the rebalance day.\n\nArgs:\n    prices_path: Universe prices (.csv / .parquet): timestamp, symbol, close[, volume].\n    scores_path: Scores (.csv / .parquet): timestamp (or date), symbol, score; the score at t ranks returns after t.\n    horizon: Forward-return horizon in bars.\n    quantiles: Quantile buckets.\n    claimed_ir: Claimed annual information ratio (checked against IC and breadth).\n    aum: Capital you plan to run, for market impact and participation.\n    seed: Seed for bootstraps and placebos.\n    factors_path: Factor returns file (date + factors); default: market, size, momentum, reversal and low-volatility factors built from the universe.\n    book_path: Returns of the user's existing book (date + one column per strategy): marginal Sharpe, overlap.\n    n_trials: Variants tried before this one (Harvey-Liu-Zhu hurdle, minimum backtest length, Sharpe haircut).\n\nThe report also covers attribution (is it a known factor, hidden short volatility), value to a book, multiple\ntesting and risk (neutrality, concentration, named crises, tail risk).\n","inputSchema":{"properties":{"aum":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Aum"},"book_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Book Path"},"claimed_ir":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Claimed Ir"},"factors_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Factors Path"},"horizon":{"default":1,"title":"Horizon","type":"integer"},"n_trials":{"default":1,"title":"N Trials","type":"integer"},"prices_path":{"title":"Prices Path","type":"string"},"quantiles":{"default":5,"title":"Quantiles","type":"integer"},"scores_path":{"title":"Scores Path","type":"string"},"seed":{"default":0,"title":"Seed","type":"integer"}},"required":["prices_path","scores_path"],"title":"validate_alphaArguments","type":"object"},"name":"validate_alpha","outputSchema":{"additionalProperties":true,"title":"validate_alphaDictOutput","type":"object"}},{"description":"Due diligence on a track record given only as returns (no code, no positions): strategy-verdict/1.\n\nSmoothed returns (Getmansky-Lo-Makarov), missing small losses (a kink at zero), implausibly consistent gains, round\nnumbers, significance with the manager's number of strategies (Deflated Sharpe), a drawdown too shallow for the\nvolatility, the relation to a benchmark and a claim check. Look-ahead and costs cannot be checked from returns alone;\nthe report says so.\n\nArgs:\n    returns_path: CSV/Parquet with a date column and a return column (decimals or percent).\n    benchmark_path: Optional benchmark returns in the same format.\n    n_strategies: How many funds or strategies the manager runs (prices the selection of the best one).\n    claim: What the manager claims, e.g. {\"annual_return\": 0.18, \"sharpe\": 2.0, \"max_drawdown\": 0.06}.\n","inputSchema":{"properties":{"benchmark_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Benchmark Path"},"claim":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"default":null,"title":"Claim"},"n_strategies":{"default":1,"title":"N Strategies","type":"integer"},"returns_path":{"title":"Returns Path","type":"string"}},"required":["returns_path"],"title":"verify_returnsArguments","type":"object"},"name":"verify_returns","outputSchema":{"additionalProperties":true,"title":"verify_returnsDictOutput","type":"object"}},{"description":"Re-derive a spread / pairs / stat-arb strategy's P&L from its leg positions and compare it with the reported return.\n\nCatches \"phantom mean reversion\": a rolling hedge ratio booked as position * change of the spread earns a profit that\nno trader could (it even earns on independent random walks). The check fails (verdict REJECT, check\n``accounting_mismatch``) when more than ``tolerance`` of the reported P&L is not what the legs earned. The fix is in\n``next_actions``: book position.shift(1) * (d_y - beta.shift(1) * d_x).\n\nArgs:\n    legs_path: CSV/Parquet with date, px_<leg> and qty_<leg> for every leg, and reported_return. The quantity is held\n        over the bar that ends at date (decided at the previous bar); optional ``cost`` column.\n    tolerance: Largest unexplained share of the P&L (default 0.05).\n    pnl: \"log\" (P&L = quantity * change of the log price) or \"simple\" (quantity = fraction of equity).\n    periods_per_year: Bars per year; inferred from the dates when omitted.\n","inputSchema":{"properties":{"legs_path":{"title":"Legs Path","type":"string"},"periods_per_year":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Periods Per Year"},"pnl":{"default":"log","title":"Pnl","type":"string"},"tolerance":{"default":0.05,"title":"Tolerance","type":"number"}},"required":["legs_path"],"title":"verify_legsArguments","type":"object"},"name":"verify_legs","outputSchema":{"additionalProperties":true,"title":"verify_legsDictOutput","type":"object"}},{"description":"Write a validation dossier folder from a certificate, for a model-risk committee, a validator or an auditor.\n\nThe folder holds dossier.html (one page: summary, checks, framework map, assumptions and limitations, how to\nreproduce, blank sign-off fields), dossier.json, certificate.json, environment.json, REPRODUCE.md and limitations.md.\nThe framework map shows evidence per clause, not compliance.\n\nArgs:\n    certificate_path: A strategy-verdict/1 certificate (JSON).\n    out_dir: Folder to write.\n    framework: 'generic', 'sr11-7', 'ss1-23' or 'rts6'.\n    name: Model name. owner: Model owner. purpose: What the model is for.\n    alpha_path: Optional alpha-report/1 JSON of the strategy's signal.\n","inputSchema":{"properties":{"alpha_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Alpha Path"},"certificate_path":{"title":"Certificate Path","type":"string"},"framework":{"default":"generic","title":"Framework","type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Name"},"out_dir":{"title":"Out Dir","type":"string"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Owner"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Purpose"}},"required":["certificate_path","out_dir"],"title":"build_dossierArguments","type":"object"},"name":"build_dossier","outputSchema":{"additionalProperties":true,"title":"build_dossierDictOutput","type":"object"}},{"description":"After launch: does the live (or paper) strategy behave like its backtest, and is the alpha dead? (live-monitor/1)\n\nLive against backtest on the same dates (correlation, tracking error), realised slippage from fills against the\nmodelled one (with a recommended value), sequential alarms (CUSUM, SPRT) against the backtest edge shrunk by\n``haircut``, and the live history still needed to confirm the edge.\n\nArgs:\n    certificate_or_backtest_path: The strategy's certificate (.json) or a backtest returns file (date, return).\n    live_path: Live or paper returns (date, return) or fills (timestamp, symbol, side, quantity, price[, reference_price]).\n    fills_path: Optional fills file when live_path holds returns.\n    slippage_bps: Modelled slippage to compare with (default: the certificate's).\n    haircut: Share of the backtest edge expected live (default 0.5).\n","inputSchema":{"properties":{"certificate_or_backtest_path":{"title":"Certificate Or Backtest Path","type":"string"},"fills_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Fills Path"},"haircut":{"default":0.5,"title":"Haircut","type":"number"},"live_path":{"title":"Live Path","type":"string"},"slippage_bps":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Slippage Bps"}},"required":["certificate_or_backtest_path","live_path"],"title":"monitor_liveArguments","type":"object"},"name":"monitor_live","outputSchema":{"additionalProperties":true,"title":"monitor_liveDictOutput","type":"object"}},{"description":"Repair a strategy's defects without overfitting it, or say why it cannot be repaired (repair-report/1).\n\nLook-ahead and repainting are corrected first (causal rewrites, one-bar delay). Then a few declared repairs\n(smoothing, holding period, no-trade band, volatility targeting, neutralisation, caps, liquidity filter) are chosen\non the first 70 % of the history by the number of defects, never by return, each counted as a trial. The rest of\nthe history is a lockbox opened once. Outcomes: REPAIRED (the lockbox still earns after costs and is not rejected; read its failed checks), REPAIRED_NO_EDGE\n(the profit was in the defect), NOT_REPAIRABLE (what the user must do), NOTHING_TO_REPAIR. The original file is never\nchanged; out_dir gets strategy.repaired.py, repair.diff, certificate.json and repair-report.json/html. Do not call it\nagain on the same data to look for a better outcome: report the outcome as it is.\n\nArgs:\n    ohlcv_path: Prices (.csv / .parquet).\n    strategy_path: Strategy file 'path.py[:func]'.\n    out_dir: Folder for the results.\n    commission_bps: Commission per side. slippage_bps: Slippage per side.\n    n_trials: Variants tried before the repair. budget: At most this many candidate repairs.\n","inputSchema":{"properties":{"budget":{"default":24,"title":"Budget","type":"integer"},"commission_bps":{"default":5.0,"title":"Commission Bps","type":"number"},"n_trials":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"N Trials"},"ohlcv_path":{"title":"Ohlcv Path","type":"string"},"out_dir":{"default":"repair","title":"Out Dir","type":"string"},"slippage_bps":{"default":5.0,"title":"Slippage Bps","type":"number"},"strategy_path":{"title":"Strategy Path","type":"string"}},"required":["ohlcv_path","strategy_path"],"title":"repair_strategyArguments","type":"object"},"name":"repair_strategy","outputSchema":{"additionalProperties":true,"title":"repair_strategyDictOutput","type":"object"}},{"description":"JSON schema of the strategy-verdict/1 certificate.","inputSchema":{"properties":{},"title":"verdict_schemaArguments","type":"object"},"name":"verdict_schema","outputSchema":{"additionalProperties":true,"title":"verdict_schemaDictOutput","type":"object"}},{"description":"Execution semantics and check catalogue — read before building a backtest.","inputSchema":{"properties":{},"title":"verifier_manifestArguments","type":"object"},"name":"verifier_manifest","outputSchema":{"additionalProperties":true,"title":"verifier_manifestDictOutput","type":"object"}}]}}}
