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_swarm_resume_requires_retry_id
(capsys: pytest.CaptureFixture[str])
agent/tests/test_cli_swarm_retry.py:32
Function
test_swarm_retry_dispatches_full_retry_by_default
()
agent/tests/test_cli_swarm_retry.py:12
Function
test_swarm_retry_dispatches_resume_opt_in
()
agent/tests/test_cli_swarm_retry.py:22
Function
test_swarm_retry_passes_prior_run_only_for_resume
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_cli_swarm_retry.py:50
Function
test_swarm_retry_slash_command_accepts_resume_opt_in
()
agent/tests/test_cli_swarm_retry.py:41
Function
test_swarm_run_endpoints_reject_traversal_run_id
()
agent/tests/test_security_auth_api.py:838
Function
test_swarm_run_invalid_json_reports_offending_string
Invalid vars JSON should include the bad input and parser detail.
agent/tests/test_cli_swarm_run_args.py:25
Function
test_swarm_run_one_arg_dispatches_without_vars
A preset without vars remains valid for backwards compatibility.
agent/tests/test_cli_swarm_run_args.py:44
Function
test_swarm_run_rejects_extra_tokens
Extra vars tokens must fail explicitly instead of being dropped.
agent/tests/test_cli_swarm_run_args.py:10
Function
test_swarm_run_two_args_dispatches_with_vars
A preset plus one JSON vars token dispatches unchanged.
agent/tests/test_cli_swarm_run_args.py:55
Function
test_swarm_runs_root_derives_from_runtime_root
()
agent/tests/test_user_state_paths.py:146
Function
test_swarm_runs_root_is_an_allowed_run_root
Whatever swarm_runs_root() returns MUST be inside the sandbox allow-list, otherwise every worker run_dir is rejected.
agent/tests/test_swarm_runs_root_and_shell_tools.py:27
Function
test_swarm_runs_root_stable_and_swarm_scoped
()
agent/tests/test_swarm_runs_root_and_shell_tools.py:38
Function
test_swarm_stream_retry_max_below_base_raises
SWARM_STREAM_RETRY_MAX_DELAY_S < SWARM_STREAM_RETRY_DELAY_S is rejected.
agent/tests/test_stream_retry_escalation.py:461
Function
test_swarm_tool_format_result_preserves_running_status_on_budget_out
_format_result(timed_out=True) must surface the real run status, not overwrite it with "timeout". Agents need to know "still running" so they
agent/tests/test_swarm_status_hydration.py:541
Function
test_swarm_tool_forwards_started_and_live_events
Web chat sessions should receive a status card seed plus live swarm events.
agent/tests/test_swarm_status_hydration.py:827
Function
test_swarm_tool_no_longer_cancels_on_budget_out
Source-level guard: the budget-exhaustion branch of the SwarmTool wait loop must not call cancel_run — that used to throw away in-flight LLM work.
agent/tests/test_swarm_status_hydration.py:558
Function
test_swarm_tool_rejects_ambiguous_continuation_before_starting_run
()
agent/tests/test_swarm_tool_preset_matching.py:51
Function
test_swarm_tool_without_session_callback_preserves_plain_runtime
No session bridge means no live callback is installed.
agent/tests/test_swarm_status_hydration.py:881
Function
test_swarm_unknown_asset_is_not_replaced_by_default_crypto_basket
()
agent/tests/test_user_blockers_followups.py:92
Function
test_swarm_worker_empty_skills_stays_unrestricted
An empty ``skills`` list means unrestricted (prompt-side filter treats empty as include-all); the wiring must pass ``None``, not an empty list.
agent/tests/test_load_skill_allowlist.py:165
Function
test_swarm_worker_passes_spec_skills_as_allowlist
run_worker must deliver ``agent_spec.skills`` to the registry builder — the one line that makes the documented per-worker boundary real.
agent/tests/test_load_skill_allowlist.py:110
Function
test_swarm_worker_retry_pair_still_validated
The pre-existing worker retry max>=base validation is preserved.
agent/tests/test_stream_retry_escalation.py:467
Function
test_sweep_keeps_active_buckets
Buckets with a future fire time must survive the sweep.
agent/tests/test_host_throttle_memory.py:54
Function
test_sweep_keeps_buckets_within_spacing_window
A bucket that fired recently but is still within its spacing window must NOT be swept — sweeping it early would skip rate-limit spacing.
agent/tests/test_host_throttle_memory.py:67
Function
test_sweep_leaves_verdict_alone_while_in_flight
(tmp_path: Path)
agent/tests/test_verdict.py:188
Function
test_sweep_records_verdict_for_channel_less_job
(tmp_path: Path)
agent/tests/test_verdict.py:118
Function
test_sweep_removes_stale_buckets
Buckets whose spacing window has fully elapsed must be swept.
agent/tests/test_host_throttle_memory.py:35
Function
test_sweep_shifts_previous_verdict_one_level
(tmp_path: Path)
agent/tests/test_verdict.py:159
Function
test_sweep_verdict_is_written_once_per_firing
(tmp_path: Path)
agent/tests/test_verdict.py:142
Function
test_symbol_and_exchange_mapping
()
agent/tests/test_zerodha_broker_loader.py:44
Function
test_symbol_and_exchange_mapping
()
agent/tests/test_india_broker_loader.py:43
Method
test_symbol_aware_direct
(self)
agent/tests/test_global_futures_engine.py:205
Method
test_symbol_aware_rate_commission
(self)
agent/tests/test_china_futures_engine.py:204
Method
test_symbol_aware_spread
EUR/USD has 1.0 pip spread; half = 0.5 pip + 0.3 slippage.
agent/tests/test_forex_engine.py:163
Method
test_symbol_classification
(self, symbol, expected)
agent/tests/test_etf_holdings_tool.py:348
Function
test_symbol_keyed_metric_paths
(path: str, expected: str | None)
agent/tests/test_grounding_keyed_metric_paths.py:26
Method
test_symbol_max_volume_errors_instead_of_clamping
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:713
Method
test_symbol_memo_not_shared_across_base_urls
The symbol memo is keyed by (base_url, account): the SAME account id on two endpoints resolves independently (no cross-endpoint bleed).
agent/tests/test_tickerall_loader.py:212
Method
test_symbol_resolution_budget_is_bounded
(self, tmp_path: Path)
agent/tests/test_grounding_recovery.py:189
Function
test_symbol_search_uses_selected_terminal_without_account_or_write_calls
( fake_mt5: FakeMT5, query: str )
agent/tests/test_mt5_connector.py:250
Function
test_symbol_search_without_terminal_path_fails_closed
(fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:288
Function
test_symbols_are_sorted_before_fetch_and_frozen_in_output
()
agent/tests/test_paper_trade_readiness.py:354
Function
test_symbols_for_request_is_the_sorted_union_of_positions_and_orders
()
agent/tests/test_paper_trade_readiness.py:370
Method
test_symlink_escape_is_contained
( self, runs_root: Path, isolated_home: Path )
agent/tests/test_strategy_discovery_refresh.py:295
Function
test_symlink_escape_rejected
(run_dir: Path, tmp_path: Path)
agent/tests/test_run_artifact_tool.py:217
Method
test_symlink_is_refused
(self, tmp_path)
agent/tests/test_background_store_recovery.py:135
Method
test_symlink_pointing_outside_root_is_rejected
resolve() follows the symlink before the containment check, so a link inside the workspace that targets something outside it must not
agent/tests/test_channel_utils_is_path_within.py:54
Function
test_symlinked_artifacts_dir_returns_no_positions_note
A symlinked artifacts dir is rejected, mirroring the factor scan.
agent/tests/api/test_positions_sectors.py:278
Function
test_symlinked_cache_file_rejected_without_write_through
A symlinked ``sector_map.json`` is rejected like a symlinked artifacts dir. The artifacts directory itself is real here; only the cache file is a
agent/tests/api/test_positions_sectors.py:306
Function
test_symlinked_destination_receives_children
(tmp_path: Path)
agent/tests/test_state_migration.py:117
Function
test_symlinked_positions_csv_rejected_without_read
A symlinked ``positions.csv`` is rejected like a symlinked artifacts dir. The artifacts directory itself is real here; only positions.csv is a
agent/tests/api/test_positions_sectors.py:336
Function
test_symlinks_and_unsafe_files_are_never_followed
( runs: Path, tmp_path_factory )
agent/tests/test_backtest_runs_tool.py:184
Function
test_sync_and_async_callables_are_both_accepted
(clean_registry)
agent/tests/scheduling/test_registry.py:48
Function
test_sync_flag_defaults_false_and_gates_seeding
QA (a) direction: flag off (default) -> no row, store file never created.
agent/tests/test_br_data.py:410
Function
test_sync_module_has_no_unbounded_loop
Acceptance grep pinned as a test: the daemon loop is gone for good.
agent/tests/test_br_data.py:575
Function
test_sync_provider_env_clears_openai_transport
(monkeypatch)
agent/tests/test_claude_cli_provider.py:52
Function
test_sync_readme_rejects_missing_or_duplicate_markers
()
agent/tests/test_capability_matrix.py:114
Function
test_sync_readme_replaces_only_the_marked_block
()
agent/tests/test_capability_matrix.py:103
Function
test_sync_report_drives_job_outcome
(tmp_path, monkeypatch, failed)
agent/tests/scheduling/test_br_sync_outcomes.py:14
Function
test_synthesis_agent_prose_is_accepted
FALSE-REJECT GUARD: a tool-less synthesis/editor agent that produced real prose with no tool calls and no report.md must pass.
agent/tests/test_swarm_output_contract.py:152
Function
test_synthetic_heartbeat_frame_has_no_replay_id
()
agent/tests/test_session_events.py:48
Method
test_synthetic_scanned_pdf_end_to_end
Create a scanned PDF with text, run _read_pdf, verify OCR output.
agent/tests/test_ocr_integration.py:59
Function
test_system_jobs_module_reads_no_environment
The env surface belongs to T8/T9: this module only consumes injected predicates (the ci_env_var_gate AST walk backs this at CI level).
agent/tests/scheduling/test_system_jobs.py:597
Method
test_system_path_outside_import_roots_rejected
(self, tmp_path: Path, monkeypatch)
agent/tests/test_path_safety.py:82
Method
test_system_prompt_contains_layer1_trade_attribution
(self)
agent/tests/test_context_attribution_layers.py:17
Method
test_system_prompt_contains_layer2_beta_regression
(self)
agent/tests/test_context_attribution_layers.py:23
Method
test_system_prompt_contains_layer3_regime_analysis
(self)
agent/tests/test_context_attribution_layers.py:29
Method
test_system_prompt_contains_layer4_monte_carlo
(self)
agent/tests/test_context_attribution_layers.py:35
Method
test_system_prompt_format_succeeds
Verify .format() with all required placeholders doesn't raise KeyError.
agent/tests/test_context_attribution_layers.py:69
Method
test_system_source_type_loads
(self)
agent/tests/test_scheduled_research_model_compat.py:82
Method
test_system_tmp_run_dir_rejected_by_default
(self, tmp_path: Path, monkeypatch)
agent/tests/test_path_safety.py:134
Method
test_sz_symbol
(self)
agent/tests/test_futu_loader.py:89
Method
test_t1_allows_next_bar_sell
(self)
agent/tests/test_india_equity_engine.py:59
Method
test_t1_blocks_same_bar_sell
(self)
agent/tests/test_india_equity_engine.py:49
Function
test_t1_query_fundamentals_deduplicates_restated_rows
T1: query_fundamentals with as_of after all disclosures keeps only the latest revision for each (ts_code, end_date) pair.
agent/tests/test_tushare_fundamentals_provider.py:244
Function
test_t2_enrich_no_period_regression
T2: enrich must not regress to an older period when a late restatement arrives for that period after a newer period's filing is already visible.
agent/tests/test_tushare_fundamentals_provider.py:272
Function
test_t3_enrich_same_period_restatement_updates_value
T3: when only same-period original+restatement exist (no newer period), the restatement must update the visible value from its pit_date onward
agent/tests/test_tushare_fundamentals_provider.py:328
Function
test_t4_split_detection_applies_in_strategy_mode
()
agent/tests/test_paper_trade_strategy_path.py:223
Function
test_t_plus_1_rejects_selling_shares_bought_the_same_day
()
agent/tests/test_paper_trade_rejections.py:208
Function
test_t_stat_matches_hand_computation
()
agent/tests/factors/test_bench_strict.py:112
Function
test_t_stat_zero_for_short_or_constant_input
()
agent/tests/factors/test_bench_strict.py:106
Method
test_tab_only_raises
(self, tmp_path: Path)
agent/tests/test_persistent_memory.py:576
Function
test_table_changed_or_unlisted_in_the_manifest_is_not_registered
(reuse)
agent/tests/test_grounding_prior_run_reuse.py:157
Function
test_table_fullwidth_parens_negative
()
agent/tests/test_report_audit_accounting_parens.py:32
Function
test_table_hit_serves_absolute_prices
()
agent/tests/test_paper_trade_limits_cn_a.py:62
Function
test_table_keys_match_however_the_code_is_padded
(written: str)
agent/tests/test_global_equity_hk_lot_sizes.py:53
Function
test_table_parenthesized_negative_keeps_sign_and_unit
()
agent/tests/test_report_audit_accounting_parens.py:19
Function
test_table_placeholder_cell_still_skipped
()
agent/tests/test_report_audit_accounting_parens.py:58
Function
test_table_positive_control_unchanged
()
agent/tests/test_report_audit_accounting_parens.py:45
Function
test_table_rows_are_contiguous
()
agent/tests/test_capability_matrix.py:27
Function
test_table_wins_over_prev_close_heuristic
()
agent/tests/test_paper_trade_limits_cn_a.py:71
Method
test_tables_agree_on_how_a_product_is_spelled
One product, one spelling across all four tables — otherwise the canonical map would send a lookup to the wrong casing.
agent/tests/test_china_futures_engine.py:289
Function
test_tail_cut_index_counts_reasoning_content
#tail-budget: a thinking-model turn's huge reasoning_content must be pushed into the folded head too, not counted as ~10 tokens in the tail.
agent/tests/test_loop_helpers.py:727
Function
test_tail_cut_index_counts_tool_call_arguments
#tail-budget: a fat tool_call (empty content, huge arguments) must be pushed into the folded head, not counted as ~10 tokens in the tail.
agent/tests/test_loop_helpers.py:704
Function
test_tail_risk_correction_lists_exact_payload_fields
(tmp_path: Path)
agent/tests/test_grounding_role_hardening.py:714
Function
test_tail_risk_prose_does_not_skip_undeclared_numbers
( tmp_path: Path, claim: str )
agent/tests/test_grounding_role_hardening.py:892
Method
test_taker_higher_than_maker
(self)
agent/tests/test_crypto_engine.py:235
Function
test_tall_mixed_table_keeps_every_glyph_on_its_page
(tmp_path)
agent/tests/test_pdf_report_arabic.py:146
Function
test_tamper_deleting_a_middle_record_is_detected
Removing a whole line (not just editing content) must also be caught.
agent/tests/test_governance.py:331
← previous
next →
25,001–25,100 of 26,887, ranked by callers