Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
26,887 in github.com/HKUDS/Vibe-Trading
⨍
Functions
26,887
◇
Types & classes
2,943
↳
Endpoints
204
Function
test_run_bench_strict_empty_zoo_returns_schema_with_counters
Regression for C5: error envelope must carry every counter key.
agent/tests/factors/test_bench_strict.py:492
Function
test_run_bench_strict_legacy_alive_equals_confirmed_alive
``alive`` is an alias for ``confirmed_alive``.
agent/tests/factors/test_bench_strict.py:446
Function
test_run_bench_strict_n_random_seeds_zero_is_clamped
Regression for C6: ``n_random_seeds=0`` must clamp to 1 AND the wire result must report the effective value.
agent/tests/factors/test_bench_strict.py:478
Function
test_run_bench_strict_on_progress_exception_is_caught
Regression for A3: a raising on_progress must not kill the loop.
agent/tests/factors/test_bench_strict.py:521
Function
test_run_bench_strict_places_oos_after_training_cutoff
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/factors/test_bench_strict.py:298
Function
test_run_bench_strict_random_control_false_is_explicit_opt_out
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/factors/test_bench_strict.py:364
Function
test_run_bench_strict_random_control_is_keyword_only
()
agent/tests/factors/test_bench_strict.py:355
Function
test_run_bench_strict_rejects_oos_split_outside_loaded_sample
(monkeypatch: pytest.MonkeyPatch)
agent/tests/factors/test_bench_strict.py:681
Function
test_run_bench_strict_rejects_two_oos_boundaries
()
agent/tests/factors/test_bench_strict.py:340
Function
test_run_bench_strict_respects_oos_split
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/factors/test_bench_strict.py:278
Function
test_run_bench_strict_returns_expected_schema
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/factors/test_bench_strict.py:248
Function
test_run_bench_strict_rows_drop_underscore_prefixed_sort_keys
Sort-helper keys (``_ir_raw`` etc) are internal and must not leak into the wire payload.
agent/tests/factors/test_bench_strict.py:547
Function
test_run_bench_strict_top_lists_include_formula_latex
Regression for C2: dashboard renders formula_latex on top entries.
agent/tests/factors/test_bench_strict.py:463
Function
test_run_card_does_not_warn_when_window_reaches_cutoff
(tmp_path: Path)
agent/tests/test_run_card_training_cutoff.py:165
Function
test_run_card_records_model_and_warns_when_window_precedes_cutoff
( tmp_path: Path, )
agent/tests/test_run_card_training_cutoff.py:7
Function
test_run_card_replaces_non_finite_metrics_with_null
(tmp_path: Path)
agent/tests/test_run_card_strict_json.py:11
Function
test_run_card_returns_parsed_json_regardless_of_format
(run_dir: Path)
agent/tests/test_run_artifact_tool.py:494
Function
test_run_card_treats_unknown_cutoff_as_exposed
(tmp_path: Path)
agent/tests/test_run_card_training_cutoff.py:67
Function
test_run_card_v1_hashes_tool_inputs_and_cites_metric_artifact
(tmp_path)
agent/tests/test_run_card_trust_layer_v1.py:7
Function
test_run_card_warns_when_existing_strategy_has_incomplete_provenance
( tmp_path: Path, )
agent/tests/test_run_card_training_cutoff.py:99
Function
test_run_card_warns_when_strategy_files_have_no_provenance
( tmp_path: Path, )
agent/tests/test_run_card_training_cutoff.py:136
Function
test_run_day_loop_rejects_a_reversed_range_deterministically
()
agent/tests/test_paper_trade_validation.py:159
Function
test_run_dcf_names_the_four_headline_fields_explicitly
The task's own four examples, kept as a standalone named check.
agent/tests/quantlib/valuation/test_dcf.py:272
Function
test_run_dcf_never_returns_a_silently_wrong_share_price
A non-finite WACC or FCFF input must raise, not produce a negative or non-finite per-share value an agent would take as a real valuation.
agent/tests/quantlib/valuation/test_dcf.py:1160
Function
test_run_dcf_refuses_assumption_with_wrong_name
()
agent/tests/quantlib/valuation/test_dcf.py:390
Function
test_run_dcf_refuses_bare_float_exit_multiple
()
agent/tests/quantlib/valuation/test_dcf.py:378
Function
test_run_dcf_refuses_bare_float_terminal_growth
()
agent/tests/quantlib/valuation/test_dcf.py:366
Function
test_run_dcf_refuses_each_missing_base_field
(missing_key)
agent/tests/quantlib/valuation/test_dcf.py:227
Function
test_run_dcf_refuses_each_missing_current_structure_field
(missing_key)
agent/tests/quantlib/valuation/test_dcf.py:256
Function
test_run_dcf_refuses_each_missing_target_structure_field
(missing_key)
agent/tests/quantlib/valuation/test_dcf.py:242
Function
test_run_dcf_rejects_unknown_capital_structure_basis
()
agent/tests/quantlib/valuation/test_dcf.py:926
Function
test_run_dcf_rejects_unknown_discounting_convention
()
agent/tests/quantlib/valuation/test_dcf.py:936
Function
test_run_dcf_rejects_unknown_terminal_value_method
()
agent/tests/quantlib/valuation/test_dcf.py:946
Function
test_run_dcf_requires_explicit_methodology_arguments
capital_structure_basis, discounting_convention and terminal_value_method have no defaults -- omitting any of them is a TypeError, not a silently
agent/tests/quantlib/valuation/test_dcf.py:956
Function
test_run_detail_api_preserves_verified_traces_and_citations
(tmp_path)
agent/tests/test_run_card_trust_layer_v1.py:153
Function
test_run_detail_factor_flag_does_not_load_payload_files
The lightweight detail flag must only inspect directory entries.
agent/tests/test_factor_api.py:211
Function
test_run_detail_has_factor_artifacts_flag
(tmp_path: Path, monkeypatch)
agent/tests/test_factor_api.py:196
Function
test_run_dir_ohlc_csv_is_observed_evidence
A bash-written OHLC CSV grounds the prices the answer quotes. The bash+yfinance workaround writes per-symbol CSVs into the run directory (e.g
agent/tests/test_agent_grounding.py:1079
Function
test_run_dir_ohlc_csv_stray_symbol_is_ignored
A CSV for a symbol the run never handled does not mint identity.
agent/tests/test_agent_grounding.py:1214
Function
test_run_dir_ohlc_csv_tsx_filename_maps_symbol
PDI_TO.csv maps to PDI.TO and grounds its CAD price.
agent/tests/test_agent_grounding.py:1112
Function
test_run_dir_ohlc_csv_us_filename_maps_symbol
INTC_US.csv maps to INTC.US and grounds weekday-suffixed date rows. Regression for a real session: the agent wrote ``data/raw/INTC_US.csv`` a
agent/tests/test_agent_grounding.py:1153
Function
test_run_dir_outside_allowed_roots_rejected
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_run_artifact_tool.py:208
Function
test_run_dir_outside_the_workspace_is_refused
Refused, not silently swapped: the substitution is what hid the real bug.
agent/tests/test_swarm_tool_run_dir.py:106
Function
test_run_elapsed_is_rendered_as_last_status_line
()
agent/tests/test_cli_ui_redesign.py:67
Function
test_run_error_event_does_not_leak_abs_path
A run-level exception that escapes the per-layer worker containment (caught by the top-level ``except Exception`` in _execute_run) surfaces via
agent/tests/test_error_path_redaction.py:107
Function
test_run_factor_analysis_nonpositive_n_groups_returns_json_error
()
agent/tests/factors/test_factor_analysis_core.py:39
Function
test_run_factor_analysis_single_day_ic_std_is_finite_json
One IC date must not emit NaN ic_std (ddof=1) into the JSON summary.
agent/tests/factors/test_factor_analysis_core.py:57
Method
test_run_foreground_starts_then_stops
`live run` relays a foreground start, tails liveness, then stops.
agent/tests/test_cli_runtime.py:283
Function
test_run_id_filter_and_bad_arguments
(runs: Path)
agent/tests/test_backtest_runs_tool.py:171
Function
test_run_loop_recomputes_and_starts
()
agent/tests/test_runtime_runner.py:379
Function
test_run_loop_refuses_when_expired_and_trips
()
agent/tests/test_runtime_runner.py:399
Function
test_run_loop_refuses_without_mandate
()
agent/tests/test_runtime_runner.py:389
Function
test_run_loop_requires_scheduler
()
agent/tests/test_runtime_runner.py:413
Function
test_run_loop_resumes_persisted_jobs_over_triggers
()
agent/tests/test_runtime_runner.py:504
Function
test_run_loop_synthesizes_jobs_from_triggers
()
agent/tests/test_runtime_runner.py:420
Function
test_run_marked_failed_when_downstream_blocked
The whole run must be RunStatus.failed when any task is blocked.
agent/tests/test_swarm_dag_gating.py:128
Function
test_run_outside_allowed_roots_is_skipped
(runs: Path, monkeypatch)
agent/tests/test_backtest_runs_tool.py:204
Function
test_run_pattern_end_to_end
(allow_runs: Path)
agent/tests/test_pattern_tool.py:246
Function
test_run_pattern_invalid_pattern_name
(allow_runs: Path)
agent/tests/test_pattern_tool.py:236
Function
test_run_pattern_no_ohlcv
(allow_runs: Path)
agent/tests/test_pattern_tool.py:228
Function
test_run_pattern_nonpositive_window_returns_json_error
(allow_runs: Path)
agent/tests/test_pattern_tool.py:305
Function
test_run_pattern_rejects_path_outside_run_roots
(allow_runs: Path)
agent/tests/test_pattern_tool.py:222
Function
test_run_pattern_trend_slope_halt_gaps_emits_strict_json
Alternating NaN closes leave no clean polyfit window; mean must not be NaN.
agent/tests/test_pattern_tool.py:332
Function
test_run_pattern_trend_slope_window_one_returns_json_error
(allow_runs: Path)
agent/tests/test_pattern_tool.py:318
Function
test_run_pipeline_injects_execution_metrics_and_artifacts
The run() wiring: requested and executed fields reach m, notes and card.
agent/tests/test_rebalance_execution_evidence.py:155
Function
test_run_pipeline_without_target_changes_reports_zeros
A run that never moved a target reports zeros, not missing fields.
agent/tests/test_rebalance_execution_evidence.py:193
Method
test_run_queues_the_body_verbatim
( self, capsys: pytest.CaptureFixture[str] )
agent/tests/test_playbooks_surface.py:608
Function
test_run_research_autopilot_unknown_hypothesis_errors
A missing hypothesis id returns a clean not-found error, not a crash.
agent/tests/test_autopilot_tool.py:109
Function
test_run_research_autopilot_uses_host_injected_session_id
The tool must work through build_registry without the LLM passing a session_id. Regression for the dead-on-arrival defect: the tool only read ses
agent/tests/test_autopilot_tool.py:84
Method
test_run_routes_to_handler
(self)
agent/tests/test_cli_runtime.py:139
Function
test_run_shadow_backtest_derives_pnl_from_final_value
End-to-end form of the reported bad case: runner-schema metrics in, a real negative Shadow PnL out, and the None state survives the cache.
agent/tests/test_shadow_account.py:454
Function
test_run_shadow_backtest_handles_runner_failure
( profitable_journal: Path, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_shadow_account.py:398
Function
test_run_shadow_backtest_runs_once_per_currency
( profitable_journal: Path, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_shadow_account.py:600
Function
test_run_shadow_backtest_tool_handles_missing_id
()
agent/tests/test_shadow_account.py:1189
Function
test_run_shadow_backtest_with_mocked_runner
Inject a stub run_backtest_fn that writes artifacts the parser can read.
agent/tests/test_shadow_account.py:342
Function
test_run_swarm_emits_keepalive_every_poll
Each polling iteration must emit a progress notification, even if the task counts haven't changed. Earlier dedup-on-message version emitted ``
agent/tests/test_swarm_status_hydration.py:728
Function
test_run_swarm_first_progress_frame_carries_run_id
First Context.report_progress message must include ``swarm_started run_id=<id>`` so a transport drop still leaves the caller with a recoverable ha
agent/tests/test_swarm_status_hydration.py:584
Function
test_run_swarm_schema_excludes_mcp_config_injection_fields
The wire schema for ``run_swarm`` must not name any config fields. A future refactor that adds e.g. ``mcp_url`` as a parameter would silently
agent/tests/test_swarm_m5_trust_model.py:87
Function
test_run_swarm_schema_only_exposes_known_safe_parameters
Defense-in-depth: flag any *new* parameter for explicit review. The forbidden-list test above catches the names we know to fear. This test ca
agent/tests/test_swarm_m5_trust_model.py:107
Function
test_run_swarm_start_only_returns_immediately
(tmp_path, monkeypatch)
agent/tests/test_swarm_status_hydration.py:304
Function
test_run_swarm_variables_are_template_data_only_never_config
A caller that stuffs ``variables`` with config-shaped keys cannot influence which MCP server the worker reaches. The check is two-sided:
agent/tests/test_swarm_m5_trust_model.py:131
Function
test_run_swarm_wait_zero_returns_run_id_not_error
(tmp_path, monkeypatch)
agent/tests/test_swarm_status_hydration.py:328
Function
test_run_sync_exception_lands_in_dispatch_failure_path
QA failure (b): a raising callable -> failure_kind='dispatch', bounded backoff retry (PENDING, consecutive_failures=1) — the kernel never stalls.
agent/tests/test_br_data.py:541
Method
test_run_validation_with_none_degrades_empty_equity
(self)
agent/tests/test_validation.py:476
Method
test_run_validation_with_none_does_not_crash
(self)
agent/tests/test_validation.py:460
Function
test_run_with_agent_consolidates_tool_events_by_call_id
( tmp_path: Path, monkeypatch, )
agent/tests/test_session_tool_trail.py:137
Function
test_run_with_agent_keeps_event_loop_responsive_during_registry_build
( monkeypatch, tmp_path: Path, configured_cap: str | None, expected_cap: int, )
agent/tests/test_session_service_mcp.py:48
Method
test_run_without_a_queueable_context_prints_the_prompt
( self, capsys: pytest.CaptureFixture[str] )
agent/tests/test_playbooks_surface.py:629
Function
test_run_without_card_symlinked_card_or_outside_the_roots_is_not_adopted
( reuse, tmp_path_factory: pytest.TempPathFactory )
agent/tests/test_grounding_prior_run_reuse.py:171
Function
test_run_worker_closes_llm_on_success
A successful run must close the per-task ChatLLM exactly once.
agent/tests/test_swarm_output_contract.py:441
Function
test_run_worker_closes_llm_on_tool_exception
close() must fire even when the run dies on a tool exception.
agent/tests/test_swarm_output_contract.py:479
Function
test_run_worker_receives_agent_config_from_runtime
``_run_worker_with_retries`` forwards ``self._agent_config`` to ``run_worker``. This is the load-bearing M1 contract: any future M2 registry asse
agent/tests/test_swarm_m1_config_plumbing.py:81
Function
test_run_worker_receives_cancel_event_kwarg
The retry wrapper must actually forward cancel_event to run_worker, not just accept it.
agent/tests/test_swarm_cancel_mid_flight_worker.py:74
Function
test_run_worker_receives_none_when_runtime_has_no_agent_config
Default construction forwards ``agent_config=None`` to ``run_worker``. Guarantees that today's behavior (local tools only, no MCP plumbing) is
agent/tests/test_swarm_m1_config_plumbing.py:124
Function
test_run_worker_uses_remote_mcp_tool_and_report_cites_canned_data
A run_worker call against a fake MCP server returns a report.md whose text comes from the remote tool's payload. This is the smallest possible
agent/tests/test_swarm_m4_e2e.py:216
Function
test_runner_and_composite_use_the_b3_engine
()
agent/tests/test_brazil_market_routing.py:53
Function
test_runner_artifact_spec_surfaces_run_card_paths
()
agent/tests/test_run_card.py:253
Function
test_runner_claim_released_after_read_failure
(live_root: Path)
agent/tests/test_sweep_latch.py:313
Function
test_runner_claims_and_releases_around_sweep
(live_root: Path)
agent/tests/test_sweep_latch.py:302
Function
test_runner_does_not_import_loader_without_fund_factor
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_factor_gate_fund_prefix.py:118
← previous
next →
23,701–23,800 of 26,887, ranked by callers