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_reasoning_items_travel_back_ahead_of_their_calls
()
agent/tests/test_openai_codex_replay.py:103
Function
test_reasoning_only_chunks_emit_progress_without_final_answer_text
()
agent/tests/test_chat_llm_streaming.py:67
Method
test_reattaches_thought_signature_from_raw_dict_input
Regression: the AgentLoop replays history as OpenAI-format dicts (not AIMessage objects). LangChain's ``_convert_dict_to_message`` discards th
agent/tests/test_kimi_reasoning_content.py:594
Function
test_reauth_seeded_proposal_round_trip
A breach-seeded proposal carries reauth_for and still clamps to ceiling.
agent/tests/test_consent_commit.py:277
Function
test_rebalance_basket_is_independent_of_input_code_order
()
agent/tests/test_base_engine.py:538
Function
test_rebalance_basket_with_commission_scales_to_fit
#1274: a 100% target basket plus fees fills proportionally scaled.
agent/tests/test_base_engine.py:419
Function
test_rebalance_empty_zero_target_ignores_invalid_price
()
agent/tests/test_base_engine.py:159
Method
test_rebalance_evidence_artifacts_are_deterministic
(self, tmp_path)
agent/tests/test_crypto_engine.py:1278
Function
test_rebalance_full_zero_and_reversal_allocate_nonzero_fees
( target_weight, expected_position, bar_capital, trade_fees )
agent/tests/test_base_engine.py:523
Method
test_rebalance_funding_precedes_increase_at_preincrease_size
(self)
agent/tests/test_crypto_engine.py:893
Function
test_rebalance_holds_weights_between_estimates
()
agent/tests/quantlib/test_combination.py:177
Function
test_rebalance_increases_then_reduces_same_direction_position
()
agent/tests/test_base_engine.py:167
Function
test_rebalance_irrecoverably_infeasible_basket_fails_atomically
#1274: when no scale fits — not even an empty open sleeve — abort.
agent/tests/test_base_engine.py:499
Method
test_rebalance_matches_hand_computed_collateral_and_fill_accounting
( self, margin_mode: str )
agent/tests/test_crypto_engine.py:807
Function
test_rebalance_mode_drops_nothing
Nothing is dropped when every target change is executed.
agent/tests/test_dropped_target_adjustments.py:79
Function
test_rebalance_overcommitted_single_basket_scales_instead_of_aborting
#1274: 100% target plus commission scales the basket, not abort.
agent/tests/test_base_engine.py:409
Function
test_rebalance_persists_immutable_fill_deltas_and_weighted_holding
()
agent/tests/test_base_engine.py:177
Function
test_rebalance_reduces_short_with_correct_signed_pnl
()
agent/tests/test_base_engine.py:372
Function
test_rebalance_reduction_commits_and_increase_scales_to_fit
#1274: reductions commit as planned; the open sleeve scales to fit.
agent/tests/test_base_engine.py:485
Function
test_rebalance_rejects_guessed_or_invalid_targets
(tmp_path, targets)
agent/tests/test_extraetf_integration.py:120
Function
test_rebalance_rejects_invalid_execution_prices_before_mutation
( existing, target_weight, raw_price, forced_fill )
agent/tests/test_base_engine.py:144
Function
test_rebalance_rejects_same_direction_adjustment_with_changed_leverage
()
agent/tests/test_base_engine.py:362
Function
test_rebalance_requires_complete_unexpired_evidence
(tmp_path)
agent/tests/test_extraetf_integration.py:127
Function
test_rebalance_scale_in_uses_weighted_average_entry
()
agent/tests/test_base_engine.py:350
Function
test_rebalance_scaled_away_sleeve_is_recorded_as_plan_rejection
#1274: a sleeve rounded to zero by scaling leaves an audit record. A fills 9 of its 10 target shares; B's one-lot fill scales below one lot a
agent/tests/test_base_engine.py:1012
Function
test_rebalance_scaled_basket_is_independent_of_input_code_order
#1274: scaling preserves the fairness contract of the open path.
agent/tests/test_base_engine.py:431
Function
test_rebalance_scaled_sizes_keep_weights_with_differing_fees
#1274: one common size factor — per-symbol fees must not re-weight. A cost-weighted per-order scale would keep the 60/40 *spend* split while
agent/tests/test_base_engine.py:443
Function
test_rebalance_sleeve_below_one_lot_at_full_scale_is_the_lot_rule
A target that never reached one lot is zero_size, not a cash finding.
agent/tests/test_base_engine.py:1029
Function
test_rebalance_turnover_uses_each_fill_timestamp_without_double_counting
()
agent/tests/test_realized_turnover.py:126
Function
test_rebalance_with_negative_cash_drops_the_opens_and_keeps_running
#1542's rebalance sibling: when even an empty open sleeve does not fit (cash below zero, nothing reduced to release it), the run used to abort wit
agent/tests/test_base_engine.py:1055
Function
test_rebalance_with_negative_cash_still_executes_its_reductions
Dropping the opens must not drop the reductions: they only release cash. Cash is -300 after bar 0 (equity 700); trimming A to 9 shares releases 1
agent/tests/test_base_engine.py:1074
Function
test_rebound_host_cannot_start_live_runner
DNS-rebound loopback JSON requests must not reach live-runner control.
agent/tests/test_security_auth_api.py:457
Method
test_rebuild_all
Bulk reindex works correctly.
agent/tests/memory/test_search_index.py:107
Method
test_rebuild_clears_then_upserts_and_reports_skipped_dirs
( self, tmp_path )
agent/tests/test_strategy_discovery_harness.py:794
Method
test_rebuild_index_writes_yaml
rebuild_index generates .hierarchy.yaml with correct structure.
agent/tests/memory/test_hierarchy.py:98
Method
test_rebuild_with_no_runs_leaves_store_empty
(self, tmp_path)
agent/tests/test_strategy_discovery_harness.py:843
Method
test_rebuild_with_only_gated_runs_clears_store
(self, tmp_path)
agent/tests/test_strategy_discovery_hard_gates.py:318
Method
test_recall_content_truncated
(self, tool: RememberTool)
agent/tests/test_remember_tool.py:73
Method
test_recall_finds_saved
(self, tool: RememberTool)
agent/tests/test_remember_tool.py:56
Method
test_recall_includes_related_field
With VT_MEMORY_LINKS=true, recall JSON includes 'related' field.
agent/tests/memory/test_tier2_integration.py:501
Method
test_recall_missing_query
(self, tool: RememberTool)
agent/tests/test_remember_tool.py:69
Method
test_recall_multiple
(self, tool: RememberTool)
agent/tests/test_remember_tool.py:79
Method
test_recall_no_match
(self, tool: RememberTool)
agent/tests/test_remember_tool.py:63
Function
test_received_state_hash_covers_the_frozen_am4_object
()
agent/tests/test_paper_trade_jcs.py:169
Function
test_reclassifying_a_custom_kind_makes_it_external
The escape hatch from the unclassified-kind error actually works.
agent/tests/test_cashflow_analytics_tool.py:221
Function
test_reconcile_error_is_failclosed
()
agent/tests/test_runtime_runner.py:301
Function
test_reconcile_never_invokes_a_write_callable
reconcile receives only READ callables; it must never call a writer. We pass extra trap callables (place/cancel) and assert they were untouched,
agent/tests/test_runtime_reconcile.py:230
Function
test_reconcile_run_completes_a_silently_finished_run
All tasks completed in tasks/*.json but run.json still ``running`` — a host crash between last layer sync and finalize. Reconcile must NOT dec
agent/tests/test_swarm_status_hydration.py:613
Function
test_reconcile_run_does_not_overwrite_already_terminal
Reconcile must be a no-op for runs that are already terminal — don't ever clobber a real completed/failed run.
agent/tests/test_swarm_status_hydration.py:635
Function
test_reconcile_unsafe_aborts_no_resend
()
agent/tests/test_runtime_runner.py:289
Function
test_reconciliation_fails_closed_on_incomplete_or_stale_observations
( snapshot: BinanceAccountSnapshot, expected_timestamp: pd.Timestamp, match: str, )
agent/tests/test_binance_account_reconciliation.py:295
Function
test_reconciliation_is_read_only_and_module_cannot_reach_live_connectors
()
agent/tests/test_binance_account_reconciliation.py:312
Function
test_reconciliation_reports_numeric_structural_and_symbol_drift
()
agent/tests/test_binance_account_reconciliation.py:234
Function
test_reconnect_contains_callback_server_system_exit
(monkeypatch, tmp_path)
agent/tests/test_portfolio_service.py:865
Function
test_reconnect_rejects_an_occupied_oauth_callback_port
(monkeypatch, tmp_path)
agent/tests/test_portfolio_service.py:847
Function
test_reconnect_timeout_stops_worker_and_releases_operation_lock
(monkeypatch)
agent/tests/test_portfolio_routes.py:140
Function
test_reconstruct_price_series_uses_central_fetch_router
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, source: str, )
agent/tests/test_ui_services.py:18
Function
test_reconstructed_price_rows_keep_sub_micro_prices
()
agent/tests/test_ui_services.py:393
Method
test_record_bench
(self)
agent/tests/test_strategy_store.py:244
Method
test_record_decay_snapshot
(self)
agent/tests/test_strategy_store.py:262
Function
test_record_error_scrubs_credentials_and_bounds_length
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_channel_manager_health.py:179
Method
test_record_from_task_projects_the_live_shape
(self)
agent/tests/test_background_store_recovery.py:172
Function
test_record_never_references_missing_sidecar_on_crash
A failed sidecar rename must abort BEFORE the referencing record is written. Otherwise a crash could persist a durable record whose ``result_path
agent/tests/test_trace_writer.py:252
Method
test_record_schema
(self, fsp)
agent/tests/test_fetch_sina_penalties.py:148
Function
test_record_usage_accumulates_cache_totals
(tmp_path)
agent/tests/test_anthropic_prompt_cache.py:235
Method
test_record_without_strong_dropped
完全没有 strong key 的 thead 段(无任何字段),_build_record 返回 None。
agent/tests/test_fetch_sina_penalties.py:440
Function
test_recorded_annualisation_round_trips
(tmp_path: Path, factor)
agent/tests/test_validation_cli_settings.py:165
Function
test_recorded_drop_stats_are_clean
()
agent/tests/test_paper_trade_fixtures.py:175
Function
test_recorded_position_missing_at_broker_forces_halt
A recorded long or short cannot disappear without a halting delta.
agent/tests/test_runtime_reconcile.py:150
Function
test_recorded_window_ends_on_last_completed_trade_date
()
agent/tests/test_paper_trade_fixtures.py:169
Function
test_recording_hook_does_not_change_execution_state
()
agent/tests/test_plan_rejected.py:178
Method
test_records_are_never_split
(self)
agent/tests/test_tool_result_paging.py:91
Function
test_records_still_refuse_a_lone_first_page
()
agent/tests/test_robinhood_mcp_mapping.py:344
Function
test_records_to_dataframe_sorts_and_handles_empty
()
agent/tests/test_trade_journal.py:218
Function
test_recovered_cached_result_restores_identical_call_gate
(harness)
agent/tests/test_compaction_call_identity.py:224
Function
test_recovered_notification_preserves_live_payload_limits
(tmp_path)
agent/tests/test_background_store_recovery.py:417
Function
test_recovered_notifications_precede_new_work_and_recovery_is_idempotent
(tmp_path)
agent/tests/test_background_store_recovery.py:376
Method
test_recovered_orphan_and_new_write_agree_on_the_same_path
The write path and the orphan recovery must name entries identically. ``recover_extensionless_entries`` renames an orphan by appending the
agent/tests/test_persistent_memory.py:351
Function
test_recovered_task_is_queryable_by_owner_not_other_sessions
(tmp_path)
agent/tests/test_background_store_recovery.py:262
Method
test_recovery_does_not_rerun_a_previous_commands
(self, tmp_path, monkeypatch)
agent/tests/test_background_store_recovery.py:250
Function
test_recovery_insufficient_or_mismatched_evidence_stays_blocked
(monkeypatch, change)
agent/tests/test_sdk_order_gate.py:390
Function
test_recovery_is_idempotent
(tmp_path: Path)
agent/tests/test_memory_orphan_recovery.py:49
Method
test_recovery_is_idempotent
(self)
agent/tests/test_background_store_recovery.py:72
Function
test_recovery_never_overwrites_a_newer_entry
(tmp_path: Path)
agent/tests/test_memory_orphan_recovery.py:21
Method
test_recovery_prompt_points_at_the_tool
(self, tmp_path: Path)
agent/tests/test_grounding_recovery.py:304
Method
test_recovery_summary_reflects_budget_state
(self, tmp_path: Path)
agent/tests/test_grounding_recovery.py:313
Method
test_recovery_survives_a_process_that_never_wrote
A crash before the first save leaves no record, and none is invented.
agent/tests/test_background_store_recovery.py:165
Function
test_redact_env_source_maps_real_candidates
_redact_env_source maps fixed candidates to stable leak-free labels, None to the no-file sentinel, and any unknown path to a generic placehold
agent/tests/test_dotenv_observability.py:48
Function
test_redact_payload_arguments_sink_protects_write_file_content
The arguments sink is the leak this policy closes: raw ``content`` reaching the trace would persist whole documents / credentials.
agent/tests/test_redaction_shared.py:86
Function
test_redact_payload_does_not_mutate_input
()
agent/tests/test_redaction_shared.py:280
Function
test_redact_payload_keeps_account_ref_provenance
``account_ref`` provenance survives while sibling account numbers/SSN are scrubbed (SPEC §5 mandate→consent chain).
agent/tests/test_redaction_shared.py:159
Function
test_redact_payload_keeps_token_budget_and_usage_readable
()
agent/tests/test_redaction_shared.py:240
Function
test_redact_payload_keeps_token_source_label_in_every_sink
()
agent/tests/test_redaction_shared.py:212
Function
test_redact_payload_passes_through_scalars
()
agent/tests/test_redaction_shared.py:288
Function
test_redact_payload_recurses_into_nested_structures
()
agent/tests/test_redaction_shared.py:262
Function
test_redact_payload_redacts_unknown_token_source_label
()
agent/tests/test_redaction_shared.py:224
Function
test_redact_payload_result_sink_keeps_content_but_scrubs_inside_it
A released ``content`` envelope is still pattern-scrubbed for secrets.
agent/tests/test_redaction_shared.py:93
Function
test_redact_payload_scrubs_top_level_sensitive_keys
()
agent/tests/test_redaction_shared.py:255
Function
test_redact_query_secrets_masks_ticket_and_api_key_values
()
agent/tests/test_sse_ticket_and_headers.py:221
Function
test_redact_text_is_idempotent
Redacting twice must equal redacting once (previews are re-rendered).
agent/tests/test_redaction.py:218
← previous
next →
22,901–23,000 of 26,887, ranked by callers