RagLeap
Tests

Tests: ragleap-agents

Test files: 12. Test functions: 204. Described by their authors (docstring or @DisplayName): 1. Where there is no description, the line shows the test name in words and says so.

Latest result: ragleap-agents-tests (3.11) passed 289 passed, 0 skipped, 0 failed CI job ragleap-agents-tests (3.10) passed 289 passed, 0 skipped, 0 failed CI job ragleap-agents-tests (3.12) passed 289 passed, 0 skipped, 0 failed CI job

test_agent.py — 36 tests 36 passed, 0 failed, 0 skipped

Tests for ragleap_agents.agent. A scripted fake model replaces the LLM and the tools are plain in-process Tool objects, so nothing here touches a network.

  • test_no_tools_or_empty_task_makes_no_model_call passed
    No tools or empty task makes no model call (no description in the source; shown from the name)
  • test_model_says_done_immediately passed
    Model says done immediately (no description in the source; shown from the name)
  • test_done_with_an_answer_is_used_when_no_step_was_taken passed
    Done with an answer is used when no step was taken (no description in the source; shown from the name)
  • test_prose_instead_of_json_stops_the_run_as_unparseable passed
    Prose instead of json stops the run as unparseable (no description in the source; shown from the name)
  • test_single_step_then_done_feeds_the_result_back_and_summarises passed
    Single step then done feeds the result back and summarises (no description in the source; shown from the name)
  • test_summarize_off_and_summary_failure_use_the_fallback passed
    Summarize off and summary failure use the fallback (no description in the source; shown from the name)
  • test_observation_cannot_close_its_own_fence passed
    Observation cannot close its own fence (no description in the source; shown from the name)
  • test_task_cannot_close_the_request_fence passed
    Task cannot close the request fence (no description in the source; shown from the name)
  • test_step_cap_and_hard_cap passed
    Step cap and hard cap (no description in the source; shown from the name)
  • test_the_same_action_twice_stops_the_run passed
    The same action twice stops the run (no description in the source; shown from the name)
  • test_invalid_proposals_stop_the_run_without_running_a_tool passed
    Invalid proposals stop the run without running a tool (no description in the source; shown from the name)
  • test_observations_are_capped_and_omitted_when_the_prompt_budget_is_spent passed
    Observations are capped and omitted when the prompt budget is spent (no description in the source; shown from the name)
  • test_deadline_stops_before_any_model_call passed
    Deadline stops before any model call (no description in the source; shown from the name)
  • test_tool_exception_text_never_reaches_the_model_or_the_result passed
    Tool exception text never reaches the model or the result (no description in the source; shown from the name)
  • test_model_failure_is_reported_without_its_text passed
    Model failure is reported without its text (no description in the source; shown from the name)
  • test_taint_forces_approval_for_outbound_tools passed
    Taint forces approval for outbound tools (no description in the source; shown from the name)
  • test_without_taint_an_outbound_tool_runs_normally passed
    Without taint an outbound tool runs normally (no description in the source; shown from the name)
  • test_undeclared_tools_are_treated_as_tainting_and_outbound passed
    Undeclared tools are treated as tainting and outbound (no description in the source; shown from the name)
  • test_requires_approval_pauses_and_an_approval_runs_the_real_call passed
    Requires approval pauses and an approval runs the real call (no description in the source; shown from the name)
  • test_rejection_ends_the_run_without_calling_the_model_or_the_tool passed
    Rejection ends the run without calling the model or the tool (no description in the source; shown from the name)
  • test_an_approved_tainting_tool_taints_the_resumed_run passed
    An approved tainting tool taints the resumed run (no description in the source; shown from the name)
  • test_resume_misuse_is_refused passed
    Resume misuse is refused (no description in the source; shown from the name)
  • test_resume_claims_the_run_so_a_second_resume_during_execution_is_refused passed
    Resume claims the run so a second resume during execution is refused (no description in the source; shown from the name)
  • test_a_paused_run_can_be_resumed_by_a_new_agent_sharing_the_store passed
    A paused run can be resumed by a new agent sharing the store (no description in the source; shown from the name)
  • test_two_resumes_of_the_same_run_execute_the_call_once passed
    Two resumes of the same run execute the call once (no description in the source; shown from the name)
  • test_a_store_without_an_atomic_claim_still_works passed
    A store without an atomic claim still works (no description in the source; shown from the name)
  • test_a_paused_run_survives_in_a_sqlite_store_and_resumes_once passed
    A paused run survives in a sqlite store and resumes once (no description in the source; shown from the name)
  • test_a_tampered_stored_run_is_refused_and_nothing_runs passed
    A tampered stored run is refused and nothing runs (no description in the source; shown from the name)
  • test_a_run_can_start_tainted passed
    A run can start tainted (no description in the source; shown from the name)
  • test_a_tainted_start_forces_approval_for_the_first_outbound_call passed
    A tainted start forces approval for the first outbound call (no description in the source; shown from the name)
  • test_positive_control_an_untainted_start_runs_the_first_outbound_call passed
    Positive control an untainted start runs the first outbound call (no description in the source; shown from the name)
  • test_a_tainted_start_survives_pause_and_resume passed
    A tainted start survives pause and resume (no description in the source; shown from the name)
  • test_tainted_must_be_a_bool passed
    Tainted must be a bool (no description in the source; shown from the name)
  • test_construction_is_validated passed
    Construction is validated (no description in the source; shown from the name)
  • test_validate_arguments passed
    Validate arguments (no description in the source; shown from the name)
  • test_parse_plan_tolerates_fences_and_prose_but_not_garbage passed
    Parse plan tolerates fences and prose but not garbage (no description in the source; shown from the name)
test_cold_start.py — 4 tests 4 passed, 0 failed, 0 skipped

Cold start: a default or empty configuration must fail closed visibly, never silently, and each gate has a positive control (the same run with the gate off) so a pause can be traced to the gate. Scripted model, no network.

  • test_the_very_first_step_is_never_gated_even_with_no_policy passed
    The very first step is never gated even with no policy (no description in the source; shown from the name)
  • test_no_policy_pauses_the_second_step_visibly_and_declaring_trusted_is_the_only_difference passed
    No policy pauses the second step visibly and declaring trusted is the only difference (no description in the source; shown from the name)
  • test_an_outbound_tool_runs_first_but_is_paused_after_a_tainting_tool passed
    An outbound tool runs first but is paused after a tainting tool (no description in the source; shown from the name)
  • test_a_policy_naming_a_tool_that_does_not_exist_is_refused_at_construction passed
    A policy naming a tool that does not exist is refused at construction (no description in the source; shown from the name)
test_delegate.py — 15 tests 15 passed, 0 failed, 0 skipped

Tests for ragleap_agents.delegate: the building blocks of sub-agents (design: #827). Pure validation and policy computation; nothing here runs a model or a network call.

  • test_a_child_with_only_trusted_tools_does_not_taint_the_parent passed
    A child with only trusted tools does not taint the parent (no description in the source; shown from the name)
  • test_a_child_with_a_tainting_tool_taints_the_parent passed
    A child with a tainting tool taints the parent (no description in the source; shown from the name)
  • test_one_tainting_child_among_trusted_ones_is_enough passed
    One tainting child among trusted ones is enough (no description in the source; shown from the name)
  • test_the_delegate_policy_is_never_outbound passed
    The delegate policy is never outbound (no description in the source; shown from the name)
  • test_a_nested_delegate_tool_counts_by_its_declared_policy passed
    A nested delegate tool counts by its declared policy (no description in the source; shown from the name)
  • test_an_undeclared_child_tool_is_refused passed
    An undeclared child tool is refused (no description in the source; shown from the name)
  • test_an_outbound_child_tool_needs_allow_outbound passed
    An outbound child tool needs allow outbound (no description in the source; shown from the name)
  • test_a_child_tool_that_needs_approval_is_allowed_at_construction passed
    A child tool that needs approval is allowed at construction (no description in the source; shown from the name)
  • test_bad_children_are_refused passed
    Bad children are refused (no description in the source; shown from the name)
  • test_a_bad_child_name_is_refused passed
    A bad child name is refused (no description in the source; shown from the name)
  • test_allow_outbound_must_be_a_bool passed
    Allow outbound must be a bool (no description in the source; shown from the name)
  • test_budget_defaults_and_validation passed
    Budget defaults and validation (no description in the source; shown from the name)
  • test_the_depth_ceiling_is_three passed
    The depth ceiling is three (no description in the source; shown from the name)
  • test_max_depth_accepts_one_up_to_the_ceiling passed
    Max depth accepts one up to the ceiling (no description in the source; shown from the name)
  • test_max_depth_refuses_anything_else passed
    Max depth refuses anything else (no description in the source; shown from the name)
test_delegate_run.py — 19 tests 19 passed, 0 failed, 0 skipped

Tests for make_delegate_tool and the run context (design: #827). A scripted model replaces the LLM everywhere; nothing here touches a network.

  • test_a_childs_answer_reaches_the_parent_as_an_observation_and_the_child_run_is_saved passed
    A childs answer reaches the parent as an observation and the child run is saved (no description in the source; shown from the name)
  • test_a_tainting_child_taints_the_parent_and_the_next_outbound_call_needs_approval passed
    A tainting child taints the parent and the next outbound call needs approval (no description in the source; shown from the name)
  • test_positive_control_a_trusted_only_child_does_not_taint_the_parent passed
    Positive control a trusted only child does not taint the parent (no description in the source; shown from the name)
  • test_a_child_started_from_a_tainted_parent_is_tainted_and_its_outbound_call_does_not_run passed
    A child started from a tainted parent is tainted and its outbound call does not run (no description in the source; shown from the name)
  • test_positive_control_an_untainted_parent_lets_an_explicitly_allowed_outbound_child_act passed
    Positive control an untainted parent lets an explicitly allowed outbound child act (no description in the source; shown from the name)
  • test_a_child_tool_that_requires_approval_does_not_run passed
    A child tool that requires approval does not run (no description in the source; shown from the name)
  • test_a_grandchild_beyond_the_depth_limit_is_refused passed
    A grandchild beyond the depth limit is refused (no description in the source; shown from the name)
  • test_positive_control_a_deeper_limit_lets_the_grandchild_run passed
    Positive control a deeper limit lets the grandchild run (no description in the source; shown from the name)
  • test_the_delegation_budget_refuses_the_next_child passed
    The delegation budget refuses the next child (no description in the source; shown from the name)
  • test_the_step_budget_refuses_the_next_child passed
    The step budget refuses the next child (no description in the source; shown from the name)
  • test_the_delegation_counters_survive_a_pause_and_resume passed
    The delegation counters survive a pause and resume (no description in the source; shown from the name)
  • test_an_injected_instruction_in_a_childs_result_is_neutralised_and_cannot_send_without_approval passed
    An injected instruction in a childs result is neutralised and cannot send without approval (no description in the source; shown from the name)
  • test_a_child_that_fails_is_reported_and_the_parent_carries_on passed
    A child that fails is reported and the parent carries on (no description in the source; shown from the name)
  • test_there_is_no_run_context_outside_a_run_and_it_resets_afterwards passed
    There is no run context outside a run and it resets afterwards (no description in the source; shown from the name)
  • test_two_runs_in_two_threads_do_not_share_a_context passed
    Two runs in two threads do not share a context (no description in the source; shown from the name)
  • test_the_delegate_tool_refuses_to_run_outside_an_agent_run passed
    The delegate tool refuses to run outside an agent run (no description in the source; shown from the name)
  • test_the_delegate_tool_offers_exactly_the_child_names passed
    The delegate tool offers exactly the child names (no description in the source; shown from the name)
  • test_make_delegate_tool_refuses_bad_settings passed
    Make delegate tool refuses bad settings (no description in the source; shown from the name)
  • test_make_delegate_tool_refuses_unsafe_children passed
    Make delegate tool refuses unsafe children (no description in the source; shown from the name)
test_live_runner.py — 13 tests 13 passed, 0 failed, 0 skipped

scripts/live_runner.py against a deterministic fake model on 127.0.0.1. No external network.

  • test_safe_eval_allows_arithmetic_and_refuses_everything_else passed
    Safe eval allows arithmetic and refuses everything else (no description in the source; shown from the name)
  • test_task_table_and_tool_policies_are_what_the_report_claims passed
    Task table and tool policies are what the report claims (no description in the source; shown from the name)
  • test_full_run_scores_tasks_gates_the_injected_send_and_never_leaks_the_key passed
    Full run scores tasks gates the injected send and never leaks the key (no description in the source; shown from the name)
  • test_the_request_cap_stops_the_run_and_marks_the_report_partial passed
    The request cap stops the run and marks the report partial (no description in the source; shown from the name)
  • test_missing_key_unknown_input_and_dry_plan passed
    Missing key unknown input and dry plan (no description in the source; shown from the name)
  • test_a_send_that_runs_and_a_tool_run_on_an_unavailable_task_are_recorded_as_failures passed
    A send that runs and a tool run on an unavailable task are recorded as failures (no description in the source; shown from the name)
  • test_list_models_prints_sorted_ids_and_never_the_key passed
    List models prints sorted ids and never the key (no description in the source; shown from the name)
  • test_every_request_carries_the_adapter_user_agent_not_urllibs passed
    Every request carries the adapter user agent not urllibs (no description in the source; shown from the name)
  • test_an_interrupted_run_keeps_every_finished_run_and_writes_a_partial_report passed
    An interrupted run keeps every finished run and writes a partial report (no description in the source; shown from the name)
  • test_a_crashed_run_is_never_scored_as_a_safe_inject passed
    A crashed run is never scored as a safe inject (no description in the source; shown from the name)
  • test_rows_separate_pacing_waits_from_model_time passed
    Rows separate pacing waits from model time (no description in the source; shown from the name)
  • test_error_bodies_are_shown_only_on_request_and_never_with_the_key passed
    Error bodies are shown only on request and never with the key (no description in the source; shown from the name)
  • test_the_median_excludes_pacing_waits passed
    The median excludes pacing waits (no description in the source; shown from the name)
test_nested_approval.py — 28 tests 28 passed, 0 failed, 0 skipped

Nested approvals (design: issue #963): a pause anywhere in the delegation tree appears at the top run as ONE pending approval, and one resume() on the top run decides it. A scripted model replaces the LLM everywhere.

  • test_a_childs_pause_appears_at_the_top_run_with_the_real_action_and_the_path_to_it passed
    A childs pause appears at the top run with the real action and the path to it (no description in the source; shown from the name)
  • test_approve_runs_the_action_exactly_once_and_the_parent_goes_on passed
    Approve runs the action exactly once and the parent goes on (no description in the source; shown from the name)
  • test_reject_ends_the_whole_tree_and_the_action_never_runs passed
    Reject ends the whole tree and the action never runs (no description in the source; shown from the name)
  • test_a_second_resume_is_refused_and_the_action_stays_at_one_execution passed
    A second resume is refused and the action stays at one execution (no description in the source; shown from the name)
  • test_a_wrong_call_id_or_decision_is_refused_and_the_tree_stays_paused passed
    A wrong call id or decision is refused and the tree stays paused (no description in the source; shown from the name)
  • test_a_parent_pending_that_does_not_match_the_childs_pending_is_refused_and_nothing_is_claimed passed
    A parent pending that does not match the childs pending is refused and nothing is claimed (no description in the source; shown from the name)
  • test_a_damaged_via_is_refused_on_approve_and_the_action_never_runs passed
    A damaged via is refused on approve and the action never runs (no description in the source; shown from the name)
  • test_a_lost_child_run_fails_closed_on_approve_but_a_reject_still_closes_the_tree passed
    A lost child run fails closed on approve but a reject still closes the tree (no description in the source; shown from the name)
  • test_a_rejected_tree_lists_what_the_child_already_ran passed
    A rejected tree lists what the child already ran (no description in the source; shown from the name)
  • test_the_executed_before_pause_list_is_capped passed
    The executed before pause list is capped (no description in the source; shown from the name)
  • test_depth_two_a_grandchilds_approval_passes_through_two_levels passed
    Depth two a grandchilds approval passes through two levels (no description in the source; shown from the name)
  • test_depth_two_a_second_pause_deeper_down_bubbles_up_again passed
    Depth two a second pause deeper down bubbles up again (no description in the source; shown from the name)
  • test_depth_two_reject_lists_every_level_and_ends_every_run_rejected passed
    Depth two reject lists every level and ends every run rejected (no description in the source; shown from the name)
  • test_a_child_tool_forced_by_taint_bubbles_with_forced_true_and_taints_the_parent passed
    A child tool forced by taint bubbles with forced true and taints the parent (no description in the source; shown from the name)
  • test_budgets_hold_across_a_pause_and_resume passed
    Budgets hold across a pause and resume (no description in the source; shown from the name)
  • test_two_threads_that_both_validated_the_tree_run_the_action_once passed
    Two threads that both validated the tree run the action once (no description in the source; shown from the name)
  • test_without_nested_approval_a_childs_pause_still_stops_the_child_as_in_0_5_0 passed
    Without nested approval a childs pause still stops the child as in 0 5 0 (no description in the source; shown from the name)
  • test_the_delegate_tool_knows_its_children_and_validates_the_flag passed
    The delegate tool knows its children and validates the flag (no description in the source; shown from the name)
  • TestTenants::test_another_tenant_cannot_decide_a_nested_pause passed
    Another tenant cannot decide a nested pause (no description in the source; shown from the name)
  • TestTenants::test_a_pending_that_points_at_another_tenants_child_run_is_refused_and_that_run_is_untouched passed
    A pending that points at another tenants child run is refused and that run is untouched (no description in the source; shown from the name)
  • TestTenants::test_every_run_in_the_tree_carries_the_callers_scope passed
    Every run in the tree carries the callers scope (no description in the source; shown from the name)
  • test_audit_records_the_nested_pause_and_decision_without_any_text passed
    Audit records the nested pause and decision without any text (no description in the source; shown from the name)
  • test_the_resumed_action_runs_with_the_right_depth_scope_taint_and_run_id passed
    The resumed action runs with the right depth scope taint and run id (no description in the source; shown from the name)
  • test_a_child_run_that_is_not_awaiting_is_refused_even_on_a_store_without_an_atomic_claim passed
    A child run that is not awaiting is refused even on a store without an atomic claim (no description in the source; shown from the name)
  • test_a_middle_childs_own_via_must_match_the_rest_of_the_path passed
    A middle childs own via must match the rest of the path (no description in the source; shown from the name)
  • test_the_deepest_child_must_not_claim_to_have_a_child_of_its_own passed
    The deepest child must not claim to have a child of its own (no description in the source; shown from the name)
  • test_a_child_paused_outside_the_tree_cannot_be_decided_through_a_parent_that_has_nested_approval_off passed
    A child paused outside the tree cannot be decided through a parent that has nested approval off (no description in the source; shown from the name)
  • test_a_delegate_call_that_itself_needed_approval_can_pause_again_when_its_child_pauses passed
    A delegate call that itself needed approval can pause again when its child pauses (no description in the source; shown from the name)
test_package.py — 2 tests 2 passed, 0 failed, 0 skipped

No file-level description in the source.

  • test_version_matches_pyproject passed
    Version matches pyproject (no description in the source; shown from the name)
  • test_only_one_import_package_is_shipped passed
    ragleap-rag installs the import package `ragleap`; a second package of that
test_prompt_style.py — 5 tests 5 passed, 0 failed, 0 skipped

Mode-aware prompt wording. Scripted model, no network.

  • test_json_is_the_default_and_asks_for_json_as_plain_text passed
    Json is the default and asks for json as plain text (no description in the source; shown from the name)
  • test_native_style_never_asks_for_json_and_says_to_call_tools_directly passed
    Native style never asks for json and says to call tools directly (no description in the source; shown from the name)
  • test_an_explicit_style_beats_the_one_the_model_callable_advertises passed
    An explicit style beats the one the model callable advertises (no description in the source; shown from the name)
  • test_an_unknown_style_is_refused_whether_passed_or_advertised passed
    An unknown style is refused whether passed or advertised (no description in the source; shown from the name)
  • test_the_repair_note_matches_the_style passed
    The repair note matches the style (no description in the source; shown from the name)
test_providers.py — 29 tests 29 passed, 0 failed, 0 skipped

openai_compatible against a real local HTTP server (127.0.0.1). No external network.

  • test_unsafe_or_malformed_base_urls_are_refused passed
    Unsafe or malformed base urls are refused (no description in the source; shown from the name)
  • test_missing_key_bad_mode_and_native_without_tools_are_refused passed
    Missing key bad mode and native without tools are refused (no description in the source; shown from the name)
  • test_json_mode_sends_the_prompt_and_returns_the_text passed
    Json mode sends the prompt and returns the text (no description in the source; shown from the name)
  • test_temperature_can_be_omitted passed
    Temperature can be omitted (no description in the source; shown from the name)
  • test_null_or_non_string_content_is_an_empty_reply passed
    Null or non string content is an empty reply (no description in the source; shown from the name)
  • test_unexpected_shapes_raise_provider_error passed
    Unexpected shapes raise provider error (no description in the source; shown from the name)
  • test_json_mode_runs_an_agent_end_to_end passed
    Json mode runs an agent end to end (no description in the source; shown from the name)
  • test_native_mode_sends_tools_and_reserialises_the_first_tool_call passed
    Native mode sends tools and reserialises the first tool call (no description in the source; shown from the name)
  • test_native_arguments_may_arrive_as_an_object_or_be_empty passed
    Native arguments may arrive as an object or be empty (no description in the source; shown from the name)
  • test_native_malformed_tool_calls_become_an_empty_reply passed
    Native malformed tool calls become an empty reply (no description in the source; shown from the name)
  • test_native_prose_without_a_tool_call_becomes_an_explicit_done passed
    Native prose without a tool call becomes an explicit done (no description in the source; shown from the name)
  • test_native_json_text_passes_through_and_empty_stays_empty passed
    Native json text passes through and empty stays empty (no description in the source; shown from the name)
  • test_native_summary_call_is_plain_text_without_tools passed
    Native summary call is plain text without tools (no description in the source; shown from the name)
  • test_native_agent_end_to_end_and_bad_arguments_stop_the_run passed
    Native agent end to end and bad arguments stop the run (no description in the source; shown from the name)
  • test_a_native_tool_call_still_goes_through_agent_validation passed
    A native tool call still goes through agent validation (no description in the source; shown from the name)
  • test_retry_after_is_honoured_and_capped passed
    Retry after is honoured and capped (no description in the source; shown from the name)
  • test_backoff_doubles_and_bad_retry_after_falls_back passed
    Backoff doubles and bad retry after falls back (no description in the source; shown from the name)
  • test_retries_are_bounded_and_the_error_has_only_the_status passed
    Retries are bounded and the error has only the status (no description in the source; shown from the name)
  • test_a_client_error_is_not_retried_and_leaks_nothing passed
    A client error is not retried and leaks nothing (no description in the source; shown from the name)
  • test_connection_failure_is_retried_then_reported_by_type_only passed
    Connection failure is retried then reported by type only (no description in the source; shown from the name)
  • test_a_slow_server_times_out passed
    A slow server times out (no description in the source; shown from the name)
  • test_redirects_are_refused_not_followed passed
    Redirects are refused not followed (no description in the source; shown from the name)
  • test_oversized_and_invalid_responses_are_rejected passed
    Oversized and invalid responses are rejected (no description in the source; shown from the name)
  • test_the_summary_prompt_prefix_matches_what_agent_sends passed
    The summary prompt prefix matches what agent sends (no description in the source; shown from the name)
  • test_the_default_user_agent_is_not_urllibs_and_can_be_overridden passed
    The default user agent is not urllibs and can be overridden (no description in the source; shown from the name)
  • test_a_bad_user_agent_is_refused passed
    A bad user agent is refused (no description in the source; shown from the name)
  • test_error_detail_is_off_by_default_on_when_asked_and_scrubs_the_key passed
    Error detail is off by default on when asked and scrubs the key (no description in the source; shown from the name)
  • test_error_detail_also_reaches_a_retry_exhausted_error passed
    Error detail also reaches a retry exhausted error (no description in the source; shown from the name)
  • test_the_adapter_advertises_its_mode_and_agent_uses_the_matching_wording passed
    The adapter advertises its mode and agent uses the matching wording (no description in the source; shown from the name)
test_repair.py — 13 tests 13 passed, 0 failed, 0 skipped

v0.2.0 behaviour: unparseable replies stop the run, bounded repair, honest rejected summaries. Scripted fake model, no network.

  • test_unparseable_reply_stops_without_running_anything passed
    Unparseable reply stops without running anything (no description in the source; shown from the name)
  • test_object_without_a_tool_key_is_an_invalid_plan passed
    Object without a tool key is an invalid plan (no description in the source; shown from the name)
  • test_explicit_done_is_still_done passed
    Explicit done is still done (no description in the source; shown from the name)
  • test_prose_after_a_real_step_stops_and_keeps_the_transcript passed
    Prose after a real step stops and keeps the transcript (no description in the source; shown from the name)
  • test_repair_is_off_by_default passed
    Repair is off by default (no description in the source; shown from the name)
  • test_one_repair_fixes_a_bad_reply_and_the_note_does_not_echo_the_reply passed
    One repair fixes a bad reply and the note does not echo the reply (no description in the source; shown from the name)
  • test_repair_for_an_unknown_tool_does_not_echo_its_name passed
    Repair for an unknown tool does not echo its name (no description in the source; shown from the name)
  • test_repair_for_bad_arguments_reports_the_schema_problem passed
    Repair for bad arguments reports the schema problem (no description in the source; shown from the name)
  • test_repair_is_bounded_and_capped passed
    Repair is bounded and capped (no description in the source; shown from the name)
  • test_a_repaired_proposal_gets_no_shortcut_around_taint_and_approval passed
    A repaired proposal gets no shortcut around taint and approval (no description in the source; shown from the name)
  • test_repair_respects_the_deadline passed
    Repair respects the deadline (no description in the source; shown from the name)
  • test_model_failure_during_repair_is_reported_without_its_text passed
    Model failure during repair is reported without its text (no description in the source; shown from the name)
  • test_rejected_run_summary_counts_only_calls_that_ran passed
    Rejected run summary counts only calls that ran (no description in the source; shown from the name)
test_sqlite_store.py — 11 tests 12 passed, 0 failed, 0 skipped

No file-level description in the source.

  • test_roundtrip_and_unknown_run passed
    Roundtrip and unknown run (no description in the source; shown from the name)
  • test_state_survives_a_new_store_object passed
    State survives a new store object (no description in the source; shown from the name)
  • test_a_new_database_file_is_private passed
    A new database file is private (no description in the source; shown from the name)
  • test_bad_run_ids_are_refused passed
    Bad run ids are refused (no description in the source; shown from the name)
  • test_only_a_real_file_path_is_accepted passed
    Only a real file path is accepted (no description in the source; shown from the name)
  • test_a_state_must_match_its_run_id_and_have_a_known_status passed
    A state must match its run id and have a known status (no description in the source; shown from the name)
  • test_a_tampered_row_is_refused_on_load_and_on_claim passed
    A tampered row is refused on load and on claim (no description in the source; shown from the name)
  • test_save_if_status_succeeds_only_once passed
    Save if status succeeds only once (no description in the source; shown from the name)
  • test_save_if_status_on_an_unknown_run_is_false passed
    Save if status on an unknown run is false (no description in the source; shown from the name)
  • test_a_claim_waits_for_a_competing_writer_instead_of_failing passed
    A claim waits for a competing writer instead of failing (no description in the source; shown from the name)
  • test_exactly_one_of_several_processes_wins_the_claim passed
    Exactly one of several processes wins the claim (no description in the source; shown from the name)
test_tenant_scope.py — 29 tests 29 passed, 0 failed, 0 skipped

Tenant scope for runs, approvals and audit (design: #1395). A scripted model replaces the LLM everywhere; nothing here touches a network.

  • test_another_tenant_cannot_approve_or_reject_a_paused_run_and_nothing_runs passed
    Another tenant cannot approve or reject a paused run and nothing runs (no description in the source; shown from the name)
  • test_every_part_of_the_scope_must_match_exactly passed
    Every part of the scope must match exactly (no description in the source; shown from the name)
  • test_a_wrong_tenant_learns_nothing_even_with_bad_decisions passed
    A wrong tenant learns nothing even with bad decisions (no description in the source; shown from the name)
  • test_a_wrong_scope_an_unknown_run_and_a_damaged_state_give_the_same_error passed
    A wrong scope an unknown run and a damaged state give the same error (no description in the source; shown from the name)
  • test_a_run_with_a_scope_needs_it_and_a_run_without_one_refuses_one passed
    A run with a scope needs it and a run without one refuses one (no description in the source; shown from the name)
  • test_a_damaged_scope_in_a_saved_state_is_not_a_match passed
    A damaged scope in a saved state is not a match (no description in the source; shown from the name)
  • test_the_saved_run_records_the_scope_key passed
    The saved run records the scope key (no description in the source; shown from the name)
  • test_require_scope_makes_a_scope_mandatory_for_run_and_resume passed
    Require scope makes a scope mandatory for run and resume (no description in the source; shown from the name)
  • test_only_a_real_scope_is_accepted passed
    Only a real scope is accepted (no description in the source; shown from the name)
  • test_a_subclass_of_scope_is_not_accepted passed
    A subclass of scope is not accepted (no description in the source; shown from the name)
  • test_bad_agent_options_are_refused passed
    Bad agent options are refused (no description in the source; shown from the name)
  • test_new_run_ids_are_long_random_and_url_safe passed
    New run ids are long random and url safe (no description in the source; shown from the name)
  • test_a_run_saved_by_0_5_0_still_resumes_without_a_scope_and_is_refused_with_one passed
    A run saved by 0 5 0 still resumes without a scope and is refused with one (no description in the source; shown from the name)
  • test_two_tenants_share_one_sqlite_store_without_crossing passed
    Two tenants share one sqlite store without crossing (no description in the source; shown from the name)
  • test_one_approval_runs_once_even_with_many_threads_and_a_scope passed
    One approval runs once even with many threads and a scope (no description in the source; shown from the name)
  • test_a_child_run_inherits_the_parents_scope_exactly passed
    A child run inherits the parents scope exactly (no description in the source; shown from the name)
  • test_a_child_of_a_run_without_a_scope_has_none passed
    A child of a run without a scope has none (no description in the source; shown from the name)
  • test_a_strict_child_does_not_run_for_a_parent_without_a_scope passed
    A strict child does not run for a parent without a scope (no description in the source; shown from the name)
  • test_a_strict_parent_and_child_work_together_with_a_scope passed
    A strict parent and child work together with a scope (no description in the source; shown from the name)
  • test_a_rate_limiter_is_checked_per_scope_before_the_model_is_called passed
    A rate limiter is checked per scope before the model is called (no description in the source; shown from the name)
  • test_resume_is_rate_limited_too_and_the_run_stays_paused passed
    Resume is rate limited too and the run stays paused (no description in the source; shown from the name)
  • test_a_rate_limiter_needs_a_scope passed
    A rate limiter needs a scope (no description in the source; shown from the name)
  • test_the_audit_log_records_each_step_with_the_scope_and_never_any_text passed
    The audit log records each step with the scope and never any text (no description in the source; shown from the name)
  • test_a_rejection_is_audited_and_the_tool_never_runs passed
    A rejection is audited and the tool never runs (no description in the source; shown from the name)
  • test_a_run_without_a_scope_is_audited_without_one passed
    A run without a scope is audited without one (no description in the source; shown from the name)
  • test_if_the_audit_log_cannot_be_written_at_the_start_nothing_runs passed
    If the audit log cannot be written at the start nothing runs (no description in the source; shown from the name)
  • test_if_the_approval_request_cannot_be_recorded_the_run_fails_and_the_tool_does_not_run passed
    If the approval request cannot be recorded the run fails and the tool does not run (no description in the source; shown from the name)
  • test_if_the_decision_cannot_be_recorded_the_approved_tool_does_not_run passed
    If the decision cannot be recorded the approved tool does not run (no description in the source; shown from the name)
  • test_if_even_the_final_record_cannot_be_written_the_error_reaches_the_caller passed
    If even the final record cannot be written the error reaches the caller (no description in the source; shown from the name)

Compiled by script from the public repository, its CI logs and the GitHub API. To correct something, open an issue.

All tests