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_callpassed
No tools or empty task makes no model call (no description in the source; shown from the name)test_model_says_done_immediatelypassed
Model says done immediately (no description in the source; shown from the name)test_done_with_an_answer_is_used_when_no_step_was_takenpassed
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_unparseablepassed
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_summarisespassed
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_fallbackpassed
Summarize off and summary failure use the fallback (no description in the source; shown from the name)test_observation_cannot_close_its_own_fencepassed
Observation cannot close its own fence (no description in the source; shown from the name)test_task_cannot_close_the_request_fencepassed
Task cannot close the request fence (no description in the source; shown from the name)test_step_cap_and_hard_cappassed
Step cap and hard cap (no description in the source; shown from the name)test_the_same_action_twice_stops_the_runpassed
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_toolpassed
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_spentpassed
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_callpassed
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_resultpassed
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_textpassed
Model failure is reported without its text (no description in the source; shown from the name)test_taint_forces_approval_for_outbound_toolspassed
Taint forces approval for outbound tools (no description in the source; shown from the name)test_without_taint_an_outbound_tool_runs_normallypassed
Without taint an outbound tool runs normally (no description in the source; shown from the name)test_undeclared_tools_are_treated_as_tainting_and_outboundpassed
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_callpassed
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_toolpassed
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_runpassed
An approved tainting tool taints the resumed run (no description in the source; shown from the name)test_resume_misuse_is_refusedpassed
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_refusedpassed
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_storepassed
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_oncepassed
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_workspassed
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_oncepassed
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_runspassed
A tampered stored run is refused and nothing runs (no description in the source; shown from the name)test_a_run_can_start_taintedpassed
A run can start tainted (no description in the source; shown from the name)test_a_tainted_start_forces_approval_for_the_first_outbound_callpassed
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_callpassed
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_resumepassed
A tainted start survives pause and resume (no description in the source; shown from the name)test_tainted_must_be_a_boolpassed
Tainted must be a bool (no description in the source; shown from the name)test_construction_is_validatedpassed
Construction is validated (no description in the source; shown from the name)test_validate_argumentspassed
Validate arguments (no description in the source; shown from the name)test_parse_plan_tolerates_fences_and_prose_but_not_garbagepassed
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_policypassed
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_differencepassed
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_toolpassed
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_constructionpassed
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_parentpassed
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_parentpassed
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_enoughpassed
One tainting child among trusted ones is enough (no description in the source; shown from the name)test_the_delegate_policy_is_never_outboundpassed
The delegate policy is never outbound (no description in the source; shown from the name)test_a_nested_delegate_tool_counts_by_its_declared_policypassed
A nested delegate tool counts by its declared policy (no description in the source; shown from the name)test_an_undeclared_child_tool_is_refusedpassed
An undeclared child tool is refused (no description in the source; shown from the name)test_an_outbound_child_tool_needs_allow_outboundpassed
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_constructionpassed
A child tool that needs approval is allowed at construction (no description in the source; shown from the name)test_bad_children_are_refusedpassed
Bad children are refused (no description in the source; shown from the name)test_a_bad_child_name_is_refusedpassed
A bad child name is refused (no description in the source; shown from the name)test_allow_outbound_must_be_a_boolpassed
Allow outbound must be a bool (no description in the source; shown from the name)test_budget_defaults_and_validationpassed
Budget defaults and validation (no description in the source; shown from the name)test_the_depth_ceiling_is_threepassed
The depth ceiling is three (no description in the source; shown from the name)test_max_depth_accepts_one_up_to_the_ceilingpassed
Max depth accepts one up to the ceiling (no description in the source; shown from the name)test_max_depth_refuses_anything_elsepassed
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_savedpassed
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_approvalpassed
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_parentpassed
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_runpassed
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_actpassed
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_runpassed
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_refusedpassed
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_runpassed
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_childpassed
The delegation budget refuses the next child (no description in the source; shown from the name)test_the_step_budget_refuses_the_next_childpassed
The step budget refuses the next child (no description in the source; shown from the name)test_the_delegation_counters_survive_a_pause_and_resumepassed
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_approvalpassed
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_onpassed
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_afterwardspassed
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_contextpassed
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_runpassed
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_namespassed
The delegate tool offers exactly the child names (no description in the source; shown from the name)test_make_delegate_tool_refuses_bad_settingspassed
Make delegate tool refuses bad settings (no description in the source; shown from the name)test_make_delegate_tool_refuses_unsafe_childrenpassed
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_elsepassed
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_claimspassed
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_keypassed
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_partialpassed
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_planpassed
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_failurespassed
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_keypassed
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_urllibspassed
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_reportpassed
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_injectpassed
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_timepassed
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_keypassed
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_waitspassed
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_itpassed
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_onpassed
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_runspassed
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_executionpassed
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_pausedpassed
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_claimedpassed
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_runspassed
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_treepassed
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_ranpassed
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_cappedpassed
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_levelspassed
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_againpassed
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_rejectedpassed
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_parentpassed
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_resumepassed
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_oncepassed
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_0passed
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_flagpassed
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_pausepassed
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_untouchedpassed
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_scopepassed
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_textpassed
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_idpassed
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_claimpassed
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_pathpassed
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_ownpassed
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_offpassed
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_pausespassed
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_pyprojectpassed
Version matches pyproject (no description in the source; shown from the name)test_only_one_import_package_is_shippedpassed
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_textpassed
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_directlypassed
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_advertisespassed
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_advertisedpassed
An unknown style is refused whether passed or advertised (no description in the source; shown from the name)test_the_repair_note_matches_the_stylepassed
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_refusedpassed
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_refusedpassed
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_textpassed
Json mode sends the prompt and returns the text (no description in the source; shown from the name)test_temperature_can_be_omittedpassed
Temperature can be omitted (no description in the source; shown from the name)test_null_or_non_string_content_is_an_empty_replypassed
Null or non string content is an empty reply (no description in the source; shown from the name)test_unexpected_shapes_raise_provider_errorpassed
Unexpected shapes raise provider error (no description in the source; shown from the name)test_json_mode_runs_an_agent_end_to_endpassed
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_callpassed
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_emptypassed
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_replypassed
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_donepassed
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_emptypassed
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_toolspassed
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_runpassed
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_validationpassed
A native tool call still goes through agent validation (no description in the source; shown from the name)test_retry_after_is_honoured_and_cappedpassed
Retry after is honoured and capped (no description in the source; shown from the name)test_backoff_doubles_and_bad_retry_after_falls_backpassed
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_statuspassed
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_nothingpassed
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_onlypassed
Connection failure is retried then reported by type only (no description in the source; shown from the name)test_a_slow_server_times_outpassed
A slow server times out (no description in the source; shown from the name)test_redirects_are_refused_not_followedpassed
Redirects are refused not followed (no description in the source; shown from the name)test_oversized_and_invalid_responses_are_rejectedpassed
Oversized and invalid responses are rejected (no description in the source; shown from the name)test_the_summary_prompt_prefix_matches_what_agent_sendspassed
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_overriddenpassed
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_refusedpassed
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_keypassed
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_errorpassed
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_wordingpassed
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_anythingpassed
Unparseable reply stops without running anything (no description in the source; shown from the name)test_object_without_a_tool_key_is_an_invalid_planpassed
Object without a tool key is an invalid plan (no description in the source; shown from the name)test_explicit_done_is_still_donepassed
Explicit done is still done (no description in the source; shown from the name)test_prose_after_a_real_step_stops_and_keeps_the_transcriptpassed
Prose after a real step stops and keeps the transcript (no description in the source; shown from the name)test_repair_is_off_by_defaultpassed
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_replypassed
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_namepassed
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_problempassed
Repair for bad arguments reports the schema problem (no description in the source; shown from the name)test_repair_is_bounded_and_cappedpassed
Repair is bounded and capped (no description in the source; shown from the name)test_a_repaired_proposal_gets_no_shortcut_around_taint_and_approvalpassed
A repaired proposal gets no shortcut around taint and approval (no description in the source; shown from the name)test_repair_respects_the_deadlinepassed
Repair respects the deadline (no description in the source; shown from the name)test_model_failure_during_repair_is_reported_without_its_textpassed
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_ranpassed
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_runpassed
Roundtrip and unknown run (no description in the source; shown from the name)test_state_survives_a_new_store_objectpassed
State survives a new store object (no description in the source; shown from the name)test_a_new_database_file_is_privatepassed
A new database file is private (no description in the source; shown from the name)test_bad_run_ids_are_refusedpassed
Bad run ids are refused (no description in the source; shown from the name)test_only_a_real_file_path_is_acceptedpassed
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_statuspassed
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_claimpassed
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_oncepassed
Save if status succeeds only once (no description in the source; shown from the name)test_save_if_status_on_an_unknown_run_is_falsepassed
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_failingpassed
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_claimpassed
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_runspassed
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_exactlypassed
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_decisionspassed
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_errorpassed
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_onepassed
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_matchpassed
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_keypassed
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_resumepassed
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_acceptedpassed
Only a real scope is accepted (no description in the source; shown from the name)test_a_subclass_of_scope_is_not_acceptedpassed
A subclass of scope is not accepted (no description in the source; shown from the name)test_bad_agent_options_are_refusedpassed
Bad agent options are refused (no description in the source; shown from the name)test_new_run_ids_are_long_random_and_url_safepassed
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_onepassed
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_crossingpassed
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_scopepassed
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_exactlypassed
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_nonepassed
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_scopepassed
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_scopepassed
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_calledpassed
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_pausedpassed
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_scopepassed
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_textpassed
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_runspassed
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_onepassed
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_runspassed
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_runpassed
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_runpassed
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_callerpassed
If even the final record cannot be written the error reaches the caller (no description in the source; shown from the name)