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_rendered_report_is_readable_through_the_route
(monkeypatch, tmp_path)
agent/tests/test_shadow_report_route_runtime_root.py:35
Function
test_rendered_signal_engine_passes_runner_validation
Issue #985: the generated engine must clear the backtest runner's strict AST validator, not just codegen's own looser shape check. Two histor
agent/tests/test_shadow_codegen_security.py:122
Function
test_renderers_emit_survivorship_disclosure
(render)
agent/tests/test_alpha_bench_meta_survivorship.py:189
Function
test_renderers_escape_untrusted_provenance
(render)
agent/tests/test_alpha_bench_meta_survivorship.py:211
Function
test_renderers_omit_disclosure_when_flag_false
(render)
agent/tests/test_alpha_bench_meta_survivorship.py:205
Function
test_renderers_omit_disclosure_when_no_meta
(render)
agent/tests/test_alpha_bench_meta_survivorship.py:200
Method
test_renders_and_schedules
(self, slug: str)
agent/tests/test_research_playbooks.py:155
Method
test_reopened_position_uses_its_own_lot
(self)
agent/tests/test_vietnam_equity_engine.py:207
Function
test_reordered_columns_do_not_mis_align_values
Rows are keyed by column name, so a reordered export stays correct.
agent/tests/test_extraetf_reader.py:425
Function
test_repair_provenance_appends_the_missing_words
(tmp_path: Path)
agent/tests/test_grounding_release.py:354
Function
test_repair_provenance_refuses_a_draft_with_a_numeric_issue
(tmp_path: Path)
agent/tests/test_grounding_release.py:368
Function
test_repair_provenance_refuses_a_misattributed_symbol
The symbol is the figure's subject, not metadata about it. Appending "562500.SH: 行情来源 yahoo" under an answer that calls the instrument 贵州茅台 r
agent/tests/test_grounding_release.py:1583
Function
test_repair_provenance_refuses_without_price_evidence
(tmp_path: Path)
agent/tests/test_grounding_release.py:377
Function
test_repair_provenance_writes_english_for_an_english_user
(tmp_path: Path)
agent/tests/test_grounding_release.py:1599
Function
test_repeatable_opt_in_runs_normally_before_compaction_then_stays_replay_protected
()
agent/tests/test_readonly_replay_after_microcompact.py:314
Function
test_repeatable_query_executes_again_with_different_arguments
A successful query must not suppress the next iteration's symbol.
agent/tests/test_agent_loop_repeatable_tools.py:65
Function
test_repeatable_requires_explicit_compaction_replay_opt_in
()
agent/tests/test_readonly_replay_after_microcompact.py:147
Function
test_repeated_calls_need_the_right_call_id
(vendor, tables, tmp_path)
agent/tests/test_gildata_fin_query.py:137
Function
test_repeated_context_restore_cannot_make_no_progress_unbounded
()
agent/tests/test_tool_progress.py:63
Function
test_repeated_continue_reads_and_appends_one_canonical_trace
A session continuation must remain visible to the next continuation.
agent/tests/test_cli_continue.py:11
Function
test_repeated_dispatch_failures_become_terminal_at_threshold
(tmp_path: Path)
agent/tests/test_scheduled_research_executor.py:199
Function
test_repeated_native_attempts_exhaust_the_existing_retry_budget
(fake_cli)
agent/tests/test_claude_cli_provider.py:189
Function
test_repeated_policy_violations_raise
(fake_cli)
agent/tests/test_claude_cli_tool_policy.py:223
Method
test_repeated_vintages_of_one_period_collapse
(self)
agent/tests/test_sec_period_frames.py:243
Function
test_rephrased_reads_of_the_same_result_are_not_progress
(tmp_path)
agent/tests/test_agent_loop_no_progress.py:123
Method
test_repl_halt_trips_flag
(self, live_root: Path)
agent/tests/test_cli_live.py:863
Function
test_replace_goal_creates_initial_thesis_claim
(tmp_path: Path)
agent/tests/test_goal_store.py:53
Function
test_replace_goal_rejects_live_execution_objective
(tmp_path: Path)
agent/tests/test_goal_store.py:93
Function
test_replace_goal_rejects_live_execution_risk_tier
(tmp_path: Path)
agent/tests/test_goal_store.py:104
Function
test_replace_goal_rejects_non_positive_budgets
(tmp_path: Path)
agent/tests/test_goal_store.py:140
Function
test_replace_goal_supersedes_current_goal
(tmp_path: Path)
agent/tests/test_goal_store.py:29
Function
test_replace_retries_transient_winerror_then_succeeds
(tmp_path, monkeypatch)
agent/tests/test_swarm_store_atomic_write.py:45
Method
test_replace_rows_invalid_row_leaves_prior_rows_intact
(self, tmp_path)
agent/tests/test_strategy_discovery_hard_gates.py:354
Method
test_replace_rows_replaces_all_contents_atomically
(self, tmp_path)
agent/tests/test_strategy_discovery_hard_gates.py:340
Function
test_replaces_empty_destination_directory
(tmp_path: Path)
agent/tests/test_state_migration.py:177
Function
test_replay_all_with_unknown_last_event_id_returns_buffer
A non-buffered heartbeat id must not cause active terminal events to be skipped.
agent/tests/test_session_events.py:36
Function
test_replay_artifact_destination_symlink_escape_blocked
A symlink planted in the new run's artifact tree must not redirect a re-homed artifact outside the run directory.
agent/tests/test_swarm_replay.py:284
Function
test_replay_can_be_switched_off
()
agent/tests/test_openai_codex_replay.py:116
Function
test_replay_cancel_before_first_layer_keeps_completed_tasks
A cancellation signalled before layer 0 must not relabel kept tasks as cancelled — the in-memory task list is synced from the store after the
agent/tests/test_swarm_replay.py:310
Function
test_replay_destination_artifacts_dir_symlink_escape_blocked
A symlink replacing the NEW run's whole artifacts/ dir must not let a re-homed artifact write outside the run — the containment check is against
agent/tests/test_swarm_replay.py:573
Function
test_replay_does_not_keep_changed_agent_definition
A completed task must not be kept when the agent that executes it changed (here its system prompt) even though the task fields are identical.
agent/tests/test_swarm_replay.py:480
Function
test_replay_does_not_keep_changed_task_definition
A completed task whose definition changed since the original run must be re-executed, not kept — a kept result must still mean the same thing.
agent/tests/test_swarm_replay.py:223
Function
test_replay_does_not_keep_run_level_model_change
A global model/provider swap between runs must invalidate kept results when agents use the run-level default (model_name=None) — the effective
agent/tests/test_swarm_replay.py:602
Function
test_replay_emits_task_resumed_event
(tmp_path, workers_succeed)
agent/tests/test_swarm_replay.py:158
Function
test_replay_keeps_completed_task_in_later_layer
Completed tasks in later layers are kept when their upstreams are kept; only the failed task re-executes.
agent/tests/test_swarm_replay.py:334
Function
test_replay_keeps_completed_upstream_and_reruns_subgraph
t-a is carried over untouched; t-b and t-c re-execute; t-c sees the kept summary as upstream context.
agent/tests/test_swarm_replay.py:112
Function
test_replay_missing_prior_task_store_runs_fresh
A resume_from run whose task files are gone degrades to a full re-run.
agent/tests/test_swarm_replay.py:177
Function
test_replay_only_iterations_remain_bounded_by_no_progress_limit
()
agent/tests/test_readonly_replay_after_microcompact.py:416
Function
test_replay_partially_missing_store_keeps_present_completed
A task file missing from an otherwise-readable store does not trigger the fresh-run fallback: present completed tasks are kept, missing ones re-ex
agent/tests/test_swarm_replay.py:685
Function
test_replay_reexecutes_dependents_of_reexecuted_upstream
When a kept-candidate's upstream re-executes (definition changed), the dependent must also re-execute — its kept summary would be stale relative
agent/tests/test_swarm_replay.py:503
Function
test_replay_rehomes_only_artifacts_subtree
Control-file paths stored as artifacts (run.json, tasks/*, absolute) must be dropped: they must never clobber the new run's own state files.
agent/tests/test_swarm_replay.py:247
Function
test_replay_rejects_dotdot_artifact_clobber
artifacts/../run.json normalizes into the run root and must be dropped — it would otherwise overwrite the new run's control file.
agent/tests/test_swarm_replay.py:409
Function
test_replay_restores_result_without_external_execution
()
agent/tests/test_readonly_replay_after_microcompact.py:117
Function
test_replay_seeds_empty_kept_summary
A kept task with an empty summary still seeds its input_from key, so a re-executed dependent sees an empty-string upstream (matching live runs).
agent/tests/test_swarm_replay.py:198
Function
test_replay_seeds_none_summary_key_for_downstream
A kept task whose stored summary is None must still contribute its input_from key to re-executed dependents — the live run path seeds the key
agent/tests/test_swarm_replay.py:626
Function
test_replay_snapshot_reports_filled_for_partial_and_held_for_full
The replay snapshot carries the JoinQuant names, not the inverted ones.
agent/tests/test_paper_trade_order_status.py:102
Function
test_replay_source_symlink_artifact_dropped
A symlinked component in the SOURCE artifact tree (artifacts/analyst -> tasks) must not redirect a re-homed artifact onto task files.
agent/tests/test_swarm_replay.py:442
Function
test_replayable_repeatable_result_restores_gate_after_one_replay
Match deterministic recovery semantics for mutable readonly replay. One genuine context loss permits one run-scoped replay. Once that payload
agent/tests/test_compaction_call_identity.py:237
Method
test_replayed_batches_reproduce_identical_ids
(self)
agent/tests/test_paper_order_lifecycle.py:58
Function
test_replayed_payload_and_call_pair_survive_collapse_and_summary_until_request
(tmp_path)
agent/tests/test_auto_compact_chunked_summary.py:32
Function
test_reply_context_mention_settings_suppress_everyone_and_roles
()
agent/tests/test_discord_allowed_mentions.py:36
Function
test_reply_fingerprints_are_bounded
(monkeypatch)
agent/tests/test_channels_runtime.py:138
Function
test_repo_tree_states_the_real_agent_tool_count
The repository-tree comment on src/tools/ must state the real registry size. This line sat at 97 while the registry shipped 105 — an eight-tool s
agent/tests/test_readme_counts.py:340
Function
test_repo_tree_states_the_real_engine_count
The engines tree line names the composite engine separately. `_engine_count()` counts every market engine including `composite`, and the tree
agent/tests/test_readme_counts.py:674
Function
test_repo_tree_states_the_real_mcp_count
The repository-tree comment on mcp_server.py must state the real count.
agent/tests/test_readme_counts.py:289
Method
test_report_abstracts_are_not_read_as_the_full_report
(self)
agent/tests/test_etf_holdings_tool.py:751
Function
test_report_audit_rejects_invalid_ratio_and_seed
Malformed sampling options error instead of silently reshaping the sample.
agent/tests/test_tools_type_value_safety.py:187
Method
test_report_corpus_size
Verify corpus size matches expected 200.
agent/tests/memory/benchmarks/test_benchmark.py:205
Method
test_report_file_written
Verify bench_report.json file exists on disk.
agent/tests/memory/benchmarks/test_benchmark.py:213
Method
test_report_file_written
bench_report_tier2.json must exist on disk.
agent/tests/memory/benchmarks/test_tier2_benchmark.py:323
Function
test_report_is_frozen_with_tuple_fields
(tmp_path: Path)
agent/tests/scheduling/test_system_jobs.py:580
Function
test_report_is_unsafe_defensive
()
agent/tests/test_runtime_runner.py:196
Method
test_report_period_comes_from_rep_pd_date_not_rep_pd_end
(self)
agent/tests/test_etf_holdings_tool.py:376
Method
test_report_query_count
Verify query count matches expected 50.
agent/tests/memory/benchmarks/test_benchmark.py:209
Function
test_report_request_failure_is_caught_as_error_envelope
()
agent/tests/test_research_reports_tool.py:155
Method
test_report_structure
Verify report contains all required fields.
agent/tests/memory/benchmarks/test_benchmark.py:187
Method
test_report_structure
Report must contain all four evaluation sections.
agent/tests/memory/benchmarks/test_tier2_benchmark.py:315
Method
test_report_valid_json
Report file must be valid JSON.
agent/tests/memory/benchmarks/test_tier2_benchmark.py:327
Method
test_report_values_valid
Verify report metric values are in valid ranges.
agent/tests/memory/benchmarks/test_benchmark.py:198
Function
test_report_worthy_rules
(tmp_path: Path, setup, expected: bool)
agent/tests/api/test_run_preview.py:171
Function
test_report_written_detection
(tmp_path: Path)
agent/tests/test_swarm_output_contract.py:171
Function
test_reported_turnover_matches_signed_optimized_allocations
A 50% long becoming a 50% short trades 100%, giving turnover 0.5.
agent/tests/test_turnover_direction_changes.py:24
Function
test_reported_unrealized_pl_is_the_valued_pnl
Portfolio valuation reads the broker's unrealized P&L when it is present.
agent/tests/test_futu_position_cost_bases.py:127
Function
test_reportlab_fallback_embeds_bundled_font_when_no_system_font
A fontless host embeds the bundled font on every render. Both reports must use the registered embedded family; a successful parse alone canno
agent/tests/test_shadow_account.py:1097
Function
test_reportlab_fallback_escapes_cjk_and_markup_chars
CJK text and XML-special chars in run data must not break platypus.
agent/tests/test_shadow_account.py:1047
Function
test_reportlab_fallback_renders_pdf_when_weasyprint_missing
Hosts without weasyprint's system libs still get a PDF via reportlab.
agent/tests/test_shadow_account.py:1027
Function
test_representative_factor_computes_on_india_panel
( registry: Registry, alpha_id: str )
agent/tests/factors/test_india_universe.py:73
Function
test_representative_factor_computes_on_korea_panel
( registry: Registry, alpha_id: str )
agent/tests/factors/test_korea_universe.py:74
Method
test_reproducibility
(self)
agent/tests/test_validation.py:118
Method
test_reproducibility
(self)
agent/tests/test_validation.py:196
Function
test_request_cancel_accepts_filled_and_refuses_held
Cancel is accepted on a partial fill and refused on a complete one.
agent/tests/test_paper_trade_order_status.py:87
Method
test_request_failure_becomes_error_envelope
(self, monkeypatch)
agent/tests/test_fred_macro_tool.py:143
Function
test_request_failure_is_caught_as_error_envelope
()
agent/tests/test_shareholder_count_tool.py:249
Method
test_request_failure_returns_none
(self)
agent/tests/api/test_positions_sectors.py:588
Function
test_request_for_unoffered_tool_is_fed_back_and_retried
(fake_cli)
agent/tests/test_claude_cli_tool_policy.py:40
Function
test_request_sweep_coalesces_instead_of_double_running
QA (c): concurrent requests merge into ONE in-flight sweep; a request after completion arms a fresh one (the hook stays prompt, never doubled).
agent/tests/test_scheduling_lifespan_owner.py:467
Function
test_request_wake_coalesces_and_tolerates_a_closed_loop
()
agent/tests/scheduling/test_kernel.py:211
Function
test_request_wake_from_another_thread_wakes_the_loop
The real cross-thread path: call_soon_threadsafe onto the running loop.
agent/tests/scheduling/test_kernel.py:150
Function
test_request_wake_shortens_a_long_sleep
Without the wake the second tick would be a full 60s away.
agent/tests/scheduling/test_kernel.py:122
Function
test_request_wake_without_a_running_loop_is_a_noop
Construction happens before the owner's loop exists.
agent/tests/scheduling/test_kernel.py:201
← previous
next →
23,301–23,400 of 26,887, ranked by callers