MCPcopy Create free account

hub / github.com/andrewyng/openworker / functions

Functions8,537 in github.com/andrewyng/openworker

Functiontest_allowed_sites_come_from_the_flag_and_the_file
(tmp_path: Path)
tests/test_run_cli.py:187
Functiontest_allowlist_persona_drawer_and_effective_set_exclude_undeclared
OPE-93, owner-hit 2026-08-15: a fresh Cloud Posture session rendered Browser and Slack as toggled-ON sources while the engine (correctly) refused
tests/test_persona_connections.py:287
Functiontest_allowlist_prefix_is_argv_boundary
(tmp_path)
tests/test_permissions_risk.py:145
Functiontest_allowlist_rejects_shell_operator_chaining
(tmp_path, command)
tests/test_permissions_risk.py:138
Functiontest_allowlisted_find_refuses_output_writing_flags
(tmp_path)
tests/test_permissions_risk.py:111
Functiontest_always_allow_grants_survive_restart
Always allow" is session-scoped, and the session outlives the process — a restart (fresh manager over the same store) must not re-ask for an appro
tests/test_server.py:1072
Functiontest_always_allow_stores_the_site_on_the_machines_list
(tmp_path)
tests/test_network_access.py:93
Functiontest_always_command_only_for_shell
(manager)
tests/test_approval_integrity.py:72
Functiontest_always_domain_only_for_egress_with_a_url
(manager)
tests/test_approval_integrity.py:118
Functiontest_always_maps_to_tool_grant_and_is_validated
(manager)
tests/test_approval_integrity.py:160
Functiontest_always_site_is_offered_only_for_egress_tools
(tmp_path)
tests/test_site_wall.py:102
Functiontest_always_tool_refused_for_connector_and_external
(manager)
tests/test_approval_integrity.py:48
Functiontest_always_tool_refused_for_save_skill
(manager)
tests/test_approval_integrity.py:65
Functiontest_always_tool_refused_for_shell
(manager)
tests/test_approval_integrity.py:40
Functiontest_always_tool_refused_for_url_carrying_egress
(manager)
tests/test_approval_integrity.py:81
Functiontest_always_trust_grant_is_mcp_only
()
tests/test_mcp_trust.py:121
Functiontest_an_allow_and_a_manual_leads_denial_still_ask
(tmp_path)
tests/test_worker_connectors.py:540
Functiontest_an_auto_approve_leads_denial_asks_nobody
A denial runs nothing, so under Auto-Approve it needs neither the reviewer nor a card: the human was being asked to click "Allow" to deny a comman
tests/test_worker_connectors.py:529
Functiontest_an_empty_standard_input_stops_the_run
(tmp_path: Path)
tests/test_headless_run.py:453
Functiontest_an_entry_is_a_file_or_a_folder_with_a_label
11d ruling 6: the path decides file or folder; the shipped AWS entry is the profiles file (configuration), so the keys stay out unless added; the
tests/test_sandbox_credentials.py:65
Functiontest_an_explicit_openshell_setting_refuses_instead_of_falling_back
(monkeypatch)
tests/test_sandbox_selection.py:45
Functiontest_an_explicit_provider_that_cannot_be_used_shows_as_refused
(config_file, monkeypatch)
tests/test_sandbox_settings.py:199
Functiontest_an_explicit_seatbelt_setting_refuses_when_it_cannot_be_used
(monkeypatch)
tests/test_sandbox_seatbelt.py:213
Functiontest_an_install_failure_is_reported_not_hidden
(tmp_path, monkeypatch)
tests/test_attendance_auto.py:201
Functiontest_an_override_cannot_quietly_make_enrichment_a_read_again
(tmp_path)
tests/test_egress_and_overrides.py:268
Functiontest_an_unknown_coworker_id_stops_the_run
(tmp_path: Path)
tests/test_headless_run.py:399
Functiontest_an_unknown_key_asks_again_and_a_closed_terminal_is_a_no
()
tests/test_run_cli.py:237
Functiontest_an_unpriced_model_gets_counts_but_no_cost
()
tests/test_headless_trajectory.py:94
Functiontest_another_repository_is_not_in_scope
(session)
tests/test_readonly_scoping.py:91
Functiontest_another_state_folder_never_removes_a_live_sandbox
Two OpenWorker processes with different state folders share this user's gateway. The second one's clean-up must leave the first one's sandbox alon
tests/test_sandbox_openshell.py:481
Functiontest_another_version_or_a_stopped_gateway_is_refused
(monkeypatch)
tests/test_sandbox_openshell.py:110
Functiontest_answer_result_shapes
()
tests/test_ask_user_upgrades.py:104
Functiontest_anthropic_adaptive_mapping
(model, level, effective)
tests/test_reasoning_effort.py:139
Functiontest_anthropic_budget_floor_overrides_small_value_and_warns
(caplog)
tests/test_max_output_tokens.py:191
Functiontest_anthropic_budget_mode_mapping
()
tests/test_reasoning_effort.py:146
Functiontest_anthropic_budget_model_maps_to_budget_and_floors_max_tokens
()
tests/test_reasoning_effort.py:313
Functiontest_anthropic_capabilities_parallel_tool_calls
()
tests/test_anthropic_provider.py:494
Functiontest_anthropic_complete_and_stream_send_configured_limit
()
tests/test_max_output_tokens.py:164
Functiontest_anthropic_complete_and_stream_send_output_config
()
tests/test_reasoning_effort.py:301
Functiontest_anthropic_complete_captures_usage
()
tests/test_token_usage.py:104
Functiontest_anthropic_complete_keeps_raw_stop_reason_in_sidecar
(stop_reason, expected)
tests/test_finish_reason.py:135
Functiontest_anthropic_default_path_unchanged
()
tests/test_max_output_tokens.py:182
Functiontest_anthropic_gemini_capabilities
()
tests/test_provider_router.py:475
Functiontest_anthropic_gemini_provider_config
(tmp_path, monkeypatch)
tests/test_provider_router.py:482
Functiontest_anthropic_none_sends_no_effort_field_and_records_it
The auto-title's "none" must not raise on the Anthropic path (#702): nothing is sent, and the reply records that nothing was sent.
tests/test_reasoning_effort.py:290
Functiontest_anthropic_none_sends_nothing
Anthropic has no "none" value: adaptive, budget-thinking and unknown models all omit the effort field instead of raising (#702).
tests/test_reasoning_effort.py:211
Functiontest_anthropic_rejection_falls_back_once_and_is_remembered
()
tests/test_reasoning_effort.py:322
Functiontest_anthropic_sidecar_with_stop_reason_replays_cleanly
A persisted assistant message carrying `_anthropic.stop_reason` but no thinking blocks must convert back to the wire shape without error or extra
tests/test_finish_reason.py:169
Functiontest_anthropic_stream_captures_usage
()
tests/test_token_usage.py:67
Functiontest_anthropic_stream_keeps_raw_stop_reason_in_sidecar
()
tests/test_finish_reason.py:144
Functiontest_anthropic_stream_without_usage_leaves_none
()
tests/test_token_usage.py:120
Functiontest_anthropic_unknown_model_sends_level_unverified
()
tests/test_reasoning_effort.py:154
Functiontest_anthropic_unrelated_error_still_raises
()
tests/test_reasoning_effort.py:336
Functiontest_anthropic_unset_sends_no_effort_field
()
tests/test_reasoning_effort.py:283
Functiontest_any_off_wins_both_directions
()
tests/test_skills_sessions.py:90
Functiontest_any_private_answer_blocks_a_split_horizon_name
One public and one private A record must not be a way through.
tests/test_url_address_guard.py:78
Functiontest_api_key_method_builds_express_gemini_client
Express mode: the key goes to genai.Client WITHOUT project/location (the SDK treats them as mutually exclusive with an API key).
tests/test_vertex_provider.py:218
Functiontest_api_key_method_is_gemini_only
()
tests/test_vertex_provider.py:207
Functiontest_appended_messages_carry_ts
(tmp_path)
tests/test_message_timestamps.py:73
Functiontest_apply_policy_ignores_older_versions_and_reports
(tmp_path)
tests/test_audit_export.py:386
Functiontest_apply_to_outbound_noop_on_stale_or_missing_state
()
tests/test_compaction.py:359
Functiontest_approval_body_includes_tool_args
()
tests/test_inbox.py:118
Functiontest_approval_body_strips_boilerplate_reason
OPE-136 found-in-testing: the live card filters the engine's default "requires approval" boilerplate — the parked/mirrored body must not bake it i
tests/test_inbox.py:132
Functiontest_approval_bypasses_window_and_keeps_independent_prompt_ids
(manager)
tests/test_idle_checkins.py:171
Functiontest_approval_gating
(tmp_path)
tests/test_email_tools.py:330
Functiontest_approval_outcome_downgrades_unoffered_grants_to_once
()
tests/test_run_grant.py:92
Functiontest_approval_prompt_data_carries_mcp_evidence
§35 parity: the parked item's data holds the same category, destination, and (non-boilerplate) reason the live card's event carries — so a reopene
tests/test_inbox.py:144
Functiontest_approval_prompt_data_matches_the_gallery
(manager, contract)
tests/test_gallery_contract.py:148
Functiontest_approver_is_stamped_on_the_gated_tool_row
The Inbox item that gated a tool call records who decided; the audit row of that call (joined by call id) carries `approved_by`, and so does OCSF.
tests/test_audit_export.py:470
Functiontest_args_preview
()
tests/test_inbox.py:106
Functiontest_argument_executors_never_prefix_allowed
(tmp_path, command, allowlist)
tests/test_command_matching.py:95
Functiontest_ark_curated_models_are_strict_allowlists
()
tests/test_providers.py:415
Functiontest_ark_models_route_and_get_verified_agent_capabilities
()
tests/test_providers.py:428
Functiontest_ark_recommended_models_are_curated
()
tests/test_providers.py:447
Functiontest_ark_responses_builder_capabilities_PathsUnchanged
(monkeypatch)
tests/test_providers.py:371
Functiontest_ark_responses_descriptors_are_separate
()
tests/test_providers.py:357
Functiontest_ark_responses_never_leak_the_openai_key
(monkeypatch)
tests/test_providers.py:395
Functiontest_artifact_chips_resolve_in_workspace_and_scratch
(tmp_path)
tests/test_multiroot.py:385
Functiontest_artifact_read_folder_returns_listing
A linked directory (e.g. a skill package dir) renders as a listing, never a dead 'not found' (owner report 2026-07-27). Dirs first, then files, si
tests/test_server.py:181
Functiontest_artifact_read_rejects_path_escape
(tmp_path)
tests/test_server.py:208
Functiontest_artifact_refs_accumulate_on_the_item
(store)
tests/test_team_board.py:187
Functiontest_artifacts_list_and_read_previewable_files
(tmp_path)
tests/test_server.py:150
Functiontest_ask_is_the_default_and_the_engine_gets_its_own_name_for_it
(tmp_path: Path)
tests/test_headless_run.py:460
Functiontest_ask_refuses_the_card_nobody_can_answer_and_records_it
(tmp_path: Path)
tests/test_headless_run.py:142
Functiontest_ask_user_answer_lands_in_history_tagged_and_never_becomes_the_request
(tmp_path)
tests/test_auto_approve.py:301
Functiontest_ask_user_answer_resets_the_denial_streak
(tmp_path)
tests/test_auto_approve.py:696
Functiontest_asking_modes_raise_a_card_only_a_person_can_answer
(tmp_path)
tests/test_site_wall.py:35
Functiontest_assignment_change_invalidates_proxy_review
(manager, monkeypatch)
tests/test_approval_guidance.py:46
Functiontest_assignment_feeds_grants_and_reassignment_moves_them
(board, journal)
tests/test_team_journal.py:53
Functiontest_assignment_lands_in_the_assignees_feed
(store)
tests/test_team_store.py:76
Functiontest_assistant_message_keeps_finish_reason_with_tool_calls
()
tests/test_finish_reason.py:87
Functiontest_assistant_message_omits_finish_reason_when_unknown
Partial turns (interrupt / provider error mid-stream) and providers that never report a stop reason must not write a `finish_reason: null` key.
tests/test_finish_reason.py:80
Functiontest_assistant_message_omits_limit_when_unknown
()
tests/test_max_output_tokens.py:334
Functiontest_at_a_terminal_a_folder_request_is_asked_and_the_folder_can_then_be_written
(tmp_path: Path)
tests/test_run_cli.py:516
Functiontest_at_a_terminal_a_question_is_asked_there
(tmp_path: Path)
tests/test_run_cli.py:448
Functiontest_at_a_terminal_no_refuses_the_call
(tmp_path: Path)
tests/test_run_cli.py:434
Functiontest_at_a_terminal_the_approval_is_asked_and_yes_runs_the_call
(tmp_path: Path)
tests/test_run_cli.py:425
Functiontest_attach_over_the_wire_and_fetch
(api)
tests/test_team_open_surface.py:541
Functiontest_attach_rejects_bad_payloads_over_the_wire
(api)
tests/test_team_open_surface.py:880
Functiontest_attachment_rejects_invalid_item_ids_before_read
(manager, tmp_path, item_id)
tests/test_board_image_lifecycle.py:170
← previousnext →6,101–6,200 of 8,537, ranked by callers