MCPcopy Create free account

hub / github.com/HKUDS/Vibe-Trading / functions

Functions26,887 in github.com/HKUDS/Vibe-Trading

Functiontest_a_call_ref_never_authorizes_a_value_seen_only_in_another_call
( tmp_path: Path, )
agent/tests/test_grounding_container_field_refs.py:188
Functiontest_a_call_scoped_ref_does_not_choose_a_tail_risk_identity
#1425's remaining half: ``ref x1`` pools every tail-risk field that call returned, so it cannot say whether 1.57% is the VaR 95% or the ES 95%.
agent/tests/test_grounding_role_hardening.py:647
Methodtest_a_capped_total_is_labelled_as_a_lower_bound
(self)
agent/tests/test_institutional_holdings_tool.py:1297
Functiontest_a_cash_starved_open_in_hold_mode_is_reported_once
One open that no scale can fund is one insufficient_capital, never 26 zero_size. A holds 9 contracts of 100 and leaves 100 of cash; B's full-scal
agent/tests/test_plan_rejected.py:368
Functiontest_a_cell_is_read_as_prose_only_where_it_holds_words
(cell: str, figure: str, shape: str)
agent/tests/test_grounding_figures_contract.py:907
Functiontest_a_changed_system_prompt_changes_the_hash
(trace_dir)
agent/tests/test_run_manifest_wiring.py:72
Functiontest_a_changed_tool_registry_changes_the_hash
(trace_dir)
agent/tests/test_run_manifest_wiring.py:98
Functiontest_a_channel_outage_is_retried_rather_than_written_off
A transient send failure must not throw the briefing away.
agent/tests/test_scheduled_delivery_outbox.py:175
Functiontest_a_checked_measurement_streams_once_the_gate_passes
(tmp_path: Path)
agent/tests/test_grounding_release.py:2293
Functiontest_a_chinese_answer_may_name_its_source_and_currency_in_chinese
The answer follows the user's language; the gate must read that language.
agent/tests/test_agent_grounding.py:2154
Functiontest_a_citation_subject_no_longer_exempts_anything
The #1336 attack shape cannot escape through attribution vocabulary. The exemption used to be a phrase list of citation subjects — "the paper
agent/tests/test_agent_grounding.py:3344
Methodtest_a_cited_figure_on_an_unhandled_ticker_is_allowed
A citation is an origin, so it answers the unsourced-symbol check. The exemption used to be a phrase list of attribution verbs, which
agent/tests/test_agent_output_discipline.py:313
Functiontest_a_claim_left_by_a_dead_process_is_taken_over_once_it_expires
A lease, not a lock: nothing may hold a briefing hostage forever.
agent/tests/test_scheduled_delivery_outbox.py:252
Functiontest_a_clause_comma_still_separates_clauses
Only a real thousands group is protected, not every comma.
agent/tests/test_agent_grounding.py:2505
Functiontest_a_clean_join_carries_no_warnings
()
agent/tests/test_shareholder_count_tool.py:184
Methodtest_a_clean_run_hands_over_no_report
(self)
agent/tests/test_cross_market_annualization.py:427
Functiontest_a_clean_run_reports_zero_unfilled_plans
()
agent/tests/test_plan_rejected.py:278
Functiontest_a_code_and_name_cell_attributes_its_figure_to_the_code
000001.SZ 平安银行" in the symbol column is 000001.SZ, not a mismatch.
agent/tests/test_grounding_backtest_outputs.py:678
Functiontest_a_column_that_is_not_a_plain_sequence_is_still_checked
(table: str, still_measured: set[str])
agent/tests/test_grounding_figures_contract.py:887
Functiontest_a_column_that_numbers_its_rows_is_structure
1, 2, 3 down a column is the table's index; the metric beside it is still checked.
agent/tests/test_grounding_figures_contract.py:856
Methodtest_a_commission_override_is_not_a_table_default
A configured override never consults the table, so nothing is assumed.
agent/tests/test_global_futures_pricing_assumptions.py:114
Functiontest_a_comparison_naming_its_subject_by_name_is_valid
Prose that identifies its subject in words must not be refused.
agent/tests/test_agent_grounding.py:2208
Functiontest_a_comparison_with_an_invented_quote_is_still_rejected
Checking against the union of observed quotes is not checking nothing.
agent/tests/test_agent_grounding.py:2219
Functiontest_a_complete_registration_is_accepted_and_stored
(tools)
agent/tests/test_sdm_governance_wiring.py:83
Functiontest_a_completed_bucket_is_still_emitted
(scale: float)
agent/tests/quantlib/test_vpin_volume_scale.py:29
Methodtest_a_completed_run_leaves_a_queryable_record
(self, tmp_path, monkeypatch)
agent/tests/test_background_store_recovery.py:193
Functiontest_a_compound_unit_is_not_split_by_the_marker
0.95 元/股" is one unit; swallowing its first half leaves "/股" dangling.
agent/tests/test_grounding_release.py:1892
Methodtest_a_computed_stage_cannot_be_claimed_without_provenance
A row may not assert a result it cannot point at. ``evidence_stage`` names what produced the row, so a stage that claims a computed r
agent/tests/test_strategy_discovery_models.py:119
Functiontest_a_conceptual_question_reaches_its_answer
A run that never named an instrument has no identity to get wrong. The trigger phrase is matched against the user message, so these questions
agent/tests/test_agent_grounding.py:2248
Functiontest_a_condition_tuple_cannot_become_a_market_name
`market` is a documented key; a tuple there must not stringify silently.
agent/tests/test_shadow_codegen_condition_bounds.py:213
Functiontest_a_configured_effort_travels_as_reasoning_effort_on_the_retry
()
agent/tests/test_llm_responses_self_heal.py:235
Functiontest_a_conflict_outranks_a_lock_from_another_query
A contradiction is a fact about the data, so a lock cannot mask it.
agent/tests/test_agent_grounding.py:2124
Functiontest_a_container_price_is_refused_by_every_model
A container price never yields an array of fills.
agent/tests/quantlib/test_impact_scalar_only_inputs.py:30
Functiontest_a_container_size_is_refused
Order size and ADV are scalar-only too.
agent/tests/quantlib/test_impact_scalar_only_inputs.py:40
Functiontest_a_context_length_error_teaches_the_window_and_the_run_recovers
Unknown model on the 128K default whose real window is 90K.
agent/tests/test_context_budget.py:294
Functiontest_a_contribution_after_the_measurement_date_is_refused
()
agent/tests/quantlib/test_fundmath.py:659
Functiontest_a_count_cannot_carry_a_currency_mark
A price or an amount declared count is checked as the observation it claims to be.
agent/tests/test_grounding_role_hardening.py:132
Functiontest_a_count_inside_the_price_range_needs_a_derivation
An unmarked price declared count is checked; a multiplier its derivation uses is not.
agent/tests/test_grounding_role_hardening.py:1089
Functiontest_a_crypto_pair_keeps_its_exported_case
Comparison folds case; the emitted value does not.
agent/tests/test_extraetf_reader.py:857
Functiontest_a_currency_figure_is_grounded_by_a_price_or_an_amount
(tmp_path: Path)
agent/tests/test_grounding_role_hardening.py:498
Functiontest_a_currency_figure_is_grounded_only_by_a_price_kind_value
(tmp_path: Path)
agent/tests/test_grounding_role_hardening.py:411
Functiontest_a_currency_figure_is_not_grounded_by_volume_or_a_metric
(tmp_path: Path)
agent/tests/test_grounding_role_hardening.py:490
Functiontest_a_currency_symbol_counts_as_naming_the_currency
A model writes a quote as ¥ or C$, not as the ISO code.
agent/tests/test_agent_grounding.py:2555
Functiontest_a_currency_word_is_bounded_so_a_cjk_word_is_not_money
3 元宵节后" is not three yuan; "3 美元" is three dollars.
agent/tests/test_grounding_figures_contract.py:383
Functiontest_a_currency_written_the_usual_way_counts_as_named
.L / .VN / .BA gained a currency, so its sign must satisfy the gate like $ or ¥ do.
agent/tests/test_agent_grounding.py:3616
Functiontest_a_cursor_goes_only_to_the_tools_whose_schema_has_one
()
agent/tests/test_robinhood_mcp_mapping.py:232
Functiontest_a_cut_figure_is_also_cut_where_a_code_fence_restates_it
(tmp_path: Path)
agent/tests/test_grounding_shape_hardening.py:578
Functiontest_a_cut_figure_takes_its_magnitude_mark_with_it
A real release read "(omitted※)M → (omitted※)M" before this.
agent/tests/test_grounding_figures_contract.py:806
Functiontest_a_cut_signed_figure_leaves_no_sign_behind
(own_run: GroundingLedger)
agent/tests/test_grounding_backtest_outputs.py:1118
Functiontest_a_daily_only_loader_is_reported_as_a_5m_fetch_failure
()
agent/tests/test_paper_trade_5m_scope.py:215
Methodtest_a_daily_series_over_a_holiday_week_is_not_read_as_weekly
Five daily bars around Christmas measure a two-day median: the declaration stands, the report states the spacings, and the count is no
agent/tests/test_cross_market_annualization.py:326
Functiontest_a_dataclass_result_serializes_field_by_field
(tool)
agent/tests/test_quantlib_tool.py:151
Functiontest_a_dataframe_envelope_is_decoded
(tool)
agent/tests/test_quantlib_tool.py:180
Functiontest_a_date_column_and_a_symbol_column_are_exempt_inside_a_table
A table declares its own columns; its date is not a measurement.
agent/tests/test_grounding_figures_contract.py:400
Functiontest_a_date_that_names_a_different_day_is_still_unavailable
Loosening the year must not collapse distinct trading days together.
agent/tests/test_agent_grounding.py:1782
Functiontest_a_deceptive_readonly_annotation_cannot_demote_a_curated_write
()
agent/tests/test_scalable_connector.py:154
Functiontest_a_decimal_comma_document_reads_three_digit_fractions_as_decimals
#1418: "−5,132%" beside "1,57%" is −5.132%, and "2,237" is 2.237.
agent/tests/test_grounding_shape_hardening.py:696
Functiontest_a_decimal_comma_is_read_as_a_decimal
(text: str, value: float, percent: bool)
agent/tests/test_grounding_shape_hardening.py:217
Functiontest_a_declaration_cell_holding_only_a_decimal_comma_is_one_figure
( tmp_path: Path, )
agent/tests/test_grounding_numeric_locale_rounding.py:89
Functiontest_a_declaration_covers_its_own_value_and_nothing_beside_it
One valid derivation used to exempt the whole clause it sat in. The exemption is now the declaration, and a declaration names exactly one val
agent/tests/test_grounding_release.py:1083
Functiontest_a_declaration_grounds_only_the_figure_it_names
One correct ratio used to carry every other figure in its clause out. The exemption was measured over a clause, then over a line for the operand
agent/tests/test_grounding_release.py:1705
Functiontest_a_declaration_matches_by_value_at_written_precision
§2: ``37%`` and ``37 %`` are one assertion; ``37%`` and ``0.37`` are not.
agent/tests/test_grounding_figures_contract.py:197
Functiontest_a_declaration_may_not_move_a_figure_to_another_instrument
159516.SZ 最新收盘 3.912 元" is wrong even if 3.912 is 510300.SH's close.
agent/tests/test_grounding_role_hardening.py:953
Functiontest_a_declaration_of_the_other_sign_and_unit_is_named
(two_runs: GroundingLedger)
agent/tests/test_grounding_backtest_outputs.py:826
Functiontest_a_declaration_reads_the_sign_the_prose_reads
``−$1,847.78 | observed | …`` was ``unparseable_declaration``.
agent/tests/test_grounding_backtest_outputs.py:1081
Functiontest_a_declared_delta_passes_in_every_spelling
The upper arm: one declaration settles it, in either language. Without this arm the file is satisfied by a gate that rejects everything, whic
agent/tests/test_grounding_percentage_points.py:88
Functiontest_a_declared_derivation_is_checked_by_its_own_arithmetic
The note IS the formula, so no result-separator vocabulary is involved. The prose used to have to carry the equation, and the gate had to rec
agent/tests/test_grounding_release.py:191
Functiontest_a_declared_derivation_survives_the_cut_beside_a_rejected_figure
A rejected entry price is often the multiplier of the correct derivation. "建议买入价 0.95 元" is cut, but the 0.95 inside a valid derivation is a
agent/tests/test_grounding_release.py:1447
Functiontest_a_declared_percent_range_is_two_endpoints_not_malformed
``20%-30%`` declares both endpoints; the scan reads no bogus ``-30%`` (#2107). A quarterly report's forward guidance is frequently a range. The b
agent/tests/test_grounding_percentage_points.py:150
Functiontest_a_declared_ref_is_what_separates_an_indicator_from_a_close
Two surfaces still scope evidence: a table column, and a declared ref. The prose surface does not. "收盘价为 1.150 元" was refused because the cla
agent/tests/test_grounding_release.py:1156
Functiontest_a_declared_value_tolerates_its_marks
( written: str, value: float, percent: bool, canonical: str )
agent/tests/test_grounding_shape_hardening.py:468
Functiontest_a_declared_value_with_anything_else_is_malformed
(written: str)
agent/tests/test_grounding_shape_hardening.py:483
Methodtest_a_declared_weekly_or_monthly_run_keeps_its_count_silently
Weekly and monthly are intervals now (#1479): no mismatch report.
agent/tests/test_cross_market_annualization.py:290
Functiontest_a_delivered_stream_still_reports_its_answer
()
agent/tests/test_chat_stream_interruption.py:176
Functiontest_a_delivery_that_cannot_happen_raises
Silence here would record a briefing as delivered that never was sent.
agent/tests/test_scheduled_delivery_wiring.py:103
Functiontest_a_derivation_anchored_to_another_symbol_grounds_nothing
The cross-symbol bail, for derivations as well as for indicators. In a comparison run the expensive instrument's close is arithmetically fine
agent/tests/test_grounding_release.py:1676
Functiontest_a_derivation_from_an_unregistered_leaf_stays_rejected
RSI is not a registered price leaf, so it anchors nothing.
agent/tests/test_grounding_release.py:236
Functiontest_a_derivation_may_take_a_registered_indicator_as_its_input
`SMA20 1.150 × 0.95`: the operand is a tool value, the arithmetic holds.
agent/tests/test_grounding_release.py:224
Functiontest_a_derivation_whose_arithmetic_misses_is_rejected
The declared value has to be what the note actually computes.
agent/tests/test_grounding_release.py:210
Functiontest_a_derived_percent_is_corrected_in_its_own_units
A model that wrote "12%" is told what its formula gives in percent.
agent/tests/test_grounding_figures_contract.py:658
Methodtest_a_derived_quarter_is_labelled_as_derived
(self)
agent/tests/test_sec_period_frames.py:157
Functiontest_a_derived_result_is_compared_at_the_prose_precision
A declaration written coarser than the prose cannot widen the band.
agent/tests/test_grounding_role_hardening.py:269
Functiontest_a_detached_backtest_cannot_inherit_the_active_runs_copy
A run dir outside the active run has no claim on what that dir holds. The tool declares a run_dir elsewhere on disk while the active run dir
agent/tests/test_grounding_backtest_outputs.py:470
Functiontest_a_detached_backtests_archived_copy_counts_once_vouched_for
The loop's archive into the active run counts once the manifest names the source.
agent/tests/test_grounding_backtest_outputs.py:498
Functiontest_a_different_reply_to_the_same_message_is_sent
()
agent/tests/test_channels_runtime.py:129
Functiontest_a_directory_is_answered_with_its_entries
(run_dir: Path)
agent/tests/test_read_file_refusals.py:58
Functiontest_a_discovery_only_profile_cannot_back_a_portfolio_source
Tool discovery is not a holdings read, so such a profile is not eligible. A remote profile can be read-only yet expose discovery and no holdings
agent/tests/test_portfolio_config.py:73
Functiontest_a_disguised_decimal_is_checked_as_the_decimal_it_renders
Split by an invisible or escaped separator, "0.888" used to be two bare integers.
agent/tests/test_grounding_shape_hardening.py:100
Functiontest_a_document_figure_grounds_the_answer_that_quotes_it
(tmp_path: Path)
agent/tests/test_grounding_document_figures.py:100
Functiontest_a_document_figure_is_not_evidence_before_the_document_is_read
The document exists on disk but the model never saw it.
agent/tests/test_grounding_document_figures.py:116
Functiontest_a_document_inside_the_run_directory_is_not_evidence
The ledger's own artifacts must not launder themselves through the reader.
agent/tests/test_grounding_document_figures.py:161
Functiontest_a_document_this_run_wrote_is_not_evidence
Reading back the run's own draft is not observation.
agent/tests/test_grounding_document_figures.py:142
Methodtest_a_document_without_headings_falls_back_to_paging
(self, tmp_path: Path)
agent/tests/test_agent_output_discipline.py:900
Methodtest_a_document_without_headings_has_no_sections
(self)
agent/tests/test_agent_output_discipline.py:925
Functiontest_a_documented_scalar_condition_bounds_the_generated_engine
`models.ShadowRule` documents scalars; the scanner reads one as `>=`.
agent/tests/test_shadow_codegen_condition_bounds.py:176
Functiontest_a_domain_refusal_is_surfaced_verbatim
(tool)
agent/tests/test_quantlib_tool.py:219
Methodtest_a_double_exposure_portfolio_has_beta_two
(self)
agent/tests/test_metrics_tracking_error.py:74
Functiontest_a_drawdown_difference_anchors_on_magnitudes
Formula constants parse unsigned; a negative observation must still anchor them.
agent/tests/test_grounding_backtest_outputs.py:592
Functiontest_a_drawdown_is_the_arithmetic_its_note_states
(1.110 − 1.180) / 1.180 = −5.93%: "约 6%" rounds to it, "约 8%" does not. The direction used to be inferred from the word 回撤 — a drawdown was c
agent/tests/test_grounding_release.py:285
Methodtest_a_dropped_bar_is_reported_not_truncated_in_silence
A long-history symbol can lose old bars to the 0.01-100x factor window.
agent/tests/test_fmp_loader.py:203
← previousnext →14,001–14,100 of 26,887, ranked by callers