[complexity] Bring 28 Cohere, Groq, Hugging Face, Mistral and xAI adapter functions under the cognitive complexity limit of 15

Merged
DS
1mo ago
+1157-997

This pull request was posted by Claude Code using claude-opus-5-5 on behalf of David.

Why we make these changes

The cognitive complexity gate from #11117 allows 15 per function. 28 functions in the Cohere, Groq, Hugging Face, Mistral and xAI adapters scored over that on main, 849 points in total: their message and user-prompt mappers, their streams, Groq's and Mistral's error mappers, Mistral's and xAI's tool_choice translators, and Mistral's schema checks. This PR brings each to 15 or under with no change in behavior. It is part of #10983, which it does not close.

Each function took the fix agent_docs/complexity.md names for its shape, laid out as agent_docs/provider-adapters.md asks:

  • Part-ladders: each _map_messages dispatches on the message kind with match, and its ModelResponse arm is _map_model_response, a match over parts ending in assert_never. The user-prompt mappers match over the content, with one method per multi-statement arm (_map_image_url, _map_binary_content, _map_document_url). Request-part dispatches that include _UnpreparedPart keep their isinstance chain, because a union alias can't be a class pattern.
  • Streams: Groq, Hugging Face, Mistral and xAI map each chunk in a sync _map_chunk that _get_event_iterator forwards once. State kept across chunks moves to field(init=False) fields, and tool-call deltas use yield from handle_tool_call_delta_events.
  • Error and vocabulary mappers: Groq's and Mistral's status-error arms move to _map_status_error, as in models/openai.py. Mistral's and xAI's _get_tool_choice match on the resolved choice.
  • Single-use steps, as the guide allows: Groq's _reasoning_effort; xAI's _map_include_options, _map_tool_results, _map_text_output and _map_output_tool_calls; Mistral's _separate_tool_and_user_messages pass and its schema-check handlers.

No # complexipy: ignore is added, and the nine # noqa: C901 markers on these functions go. Open PRs #10910, #11813 and #11935 edit some of these functions and rebase on this one.

New public surface

None. Every new function, method and field is private.

Verification

  • Existing tests and inline snapshots pass unchanged over tests/models/test_{cohere,groq,huggingface,mistral,xai}.py, tests/models/test_groq_gateway_cost.py, tests/models/xai/ and the cross-provider tests listed below. No test file, snapshot or cassette changes.
  • Requests and stream events are identical, main against this branch, with tests/refactor_capture.py over 712 tests: 1,019 records on each side, 12,041 stream events and 636 requests. The one differing node differs between two runs of the same commit too (details below).
  • scripts/check_complexity.py passes. Every function in the five files scores 15 or under, and the 45 new private functions and methods score 0 to 13.

What changes for existing users

Nothing.

Capture nodes and result

uv run python -m tests.refactor_capture b633d4b3cf <nodes> -p no:randomly, request and stream kinds. The nodes are every stream test of the five providers, every test that maps a user prompt, history, thinking, tool return, tool choice or error for them, and the cases of the cross-provider tests parametrized over them.

Result: 522 nodes and 1,019 records on each side; only in main 0, only in branch 0, differing 1. Stream modules reached: cohere 12 nodes, groq 24, huggingface 15, mistral 51, xai 47. Request targets include MockXai.chat_create 155, MockMistralAI.chat_completions_create 97, the Groq API 71 and the Mistral API 46.

The differing node, tests/models/test_mistral.py::test_stream_tool_call_deltas[fragments_without_id], differs only in the 9-character tool_call_id of its second request, which Mistral derives from a randomly generated id. Capturing this branch against itself gives the same difference on the same node, so the capture leaves that id unnormalized; its stream records match.

After merging main (#12556 moved Mistral's inline text files onto self._format_inlined_text_file, now called from _map_binary_content and _map_document_url), the 110 Mistral nodes were captured again against 2c942f77d9: 322 records each side, the same single differing node.

  • tests/models/test_citations.py (the cases parametrized over these five providers): test_web_citations
  • tests/models/test_cohere.py: test_cache_point_silently_skipped_user_prompt_part, test_cohere_hidden_tools_stay_off_the_wire, test_cohere_model_instructions, test_cohere_model_thinking_part, test_cohere_unified_thinking, test_model_non_http_error, test_model_status_error, test_model_transport_error, test_multimodal, test_multimodal_tool_return, test_request_simple_success, test_request_stream_closes_source_on_early_exit, test_request_stream_empty, test_request_stream_error_on_entry, test_request_structured_response, test_request_tool_call, test_request_usage_with_cached_tokens, test_stream_content_index, test_stream_error_during_iteration, test_stream_event_edge_cases, test_stream_text_with_vcr, test_stream_thinking_with_vcr, test_stream_tool_with_vcr, test_stream_usage, test_text_content_in_request, test_zero_argument_tool_call
  • tests/models/test_error_categories.py (the cases parametrized over these five providers): test_http_provider_error_category, test_huggingface_error_category, test_huggingface_status_category, test_model_fallback_after_retrying_transport_gives_up, test_xai_error_category, test_xai_error_category_mid_stream, test_xai_transport_error_mid_stream
  • tests/models/test_groq.py: test_audio_as_binary_content_input, test_groq_hidden_tools_stay_off_the_wire, test_groq_model_instructions, test_groq_model_thinking_part, test_groq_model_thinking_part_iter, test_groq_model_web_search_tool, test_groq_model_web_search_tool_stream, test_groq_native_output, test_groq_non_compound_web_search_falls_back, test_groq_prompted_output, test_image_as_binary_content_input, test_image_as_binary_content_tool_response, test_image_detail_vendor_metadata, test_image_url_input, test_map_text_content_input, test_model_status_error, test_no_delta, test_non_json_response_body_raises_model_api_error, test_request_simple_success, test_request_structured_response, test_request_tool_call, test_stream_cancel, test_stream_error_object_raises_model_api_error, test_stream_text, test_stream_text_finish_reason, test_stream_transport_error_mid_stream, test_structured_content_input, test_text_plain_response_body_raises_model_api_error, test_tool_use_failed_error, test_tool_use_failed_error_streaming, test_tool_use_failed_error_streaming_with_text, test_tool_use_failed_error_with_text, test_uploaded_file_input
  • tests/models/test_groq_gateway_cost.py: test_groq_stream_gateway_cost
  • tests/models/test_huggingface.py: test_cache_point_filtering, test_hf_model_instructions, test_hf_model_thinking_part, test_hf_model_thinking_part_iter, test_huggingface_hidden_tools_stay_off_the_wire, test_image_as_binary_content_input, test_image_tool_return_is_forwarded_as_user_message, test_image_url_input, test_map_user_prompt_with_text_content, test_model_status_error, test_model_transport_error, test_multiple_stream_calls, test_no_delta, test_non_json_response_body_raises_model_api_error, test_request_structured_response, test_request_tool_call, test_retry_feedback_without_inline_system_prompts, test_simple_completion, test_stream_completion, test_stream_error_object_raises_model_api_error, test_stream_text, test_stream_text_finish_reason, test_thinking_part_in_history, test_tool_call_arguments_sent_in_message_history, test_unsupported_media_type_in_tool_return_is_replaced_by_a_note
  • tests/models/test_mistral.py: test_audio_as_binary_content_input, test_document_url_force_download, test_document_url_no_force_download, test_image_as_binary_content_input, test_image_as_binary_content_tool_response, test_image_detail_vendor_metadata, test_image_url_force_download, test_image_url_input, test_image_url_no_force_download, test_large4_adjustable_reasoning_sends_reasoning_effort_high, test_large4_thinking_disabled_sends_reasoning_effort_none, test_map_content_concatenates_text_chunks, test_map_content_handles_reference_chunk, test_mistral_enum_member_docstrings_reach_the_wire, test_mistral_foreign_tool_call_ids_are_rewritten, test_mistral_hidden_tools_stay_off_the_wire, test_mistral_history_uses_prompt_cache, test_mistral_model_instructions, test_mistral_model_thinking_part, test_mistral_model_thinking_part_iter, test_mistral_stream_parallel_tool_calls, test_mistral_tool_result_tags_name_the_rewritten_tool_call_id, test_model_status_error, test_model_transport_error, test_model_validation_error_raises_model_http_error, test_multiple_completions, test_no_delta, test_parallel_tool_calls_stream, test_parameterized_media_type_text_file_inlined, test_pdf_as_binary_content_input, test_pdf_url_input, test_prompt_cache_key_stream, test_reasoning_effort_not_sent_for_always_on_model, test_reasoning_effort_not_sent_for_unsupported_model, test_reasoning_effort_not_sent_without_config, test_reasoning_effort_stream_not_sent_without_config, test_reasoning_effort_stream_with_tools, test_reasoning_effort_stream_with_unified_thinking, test_reasoning_effort_with_unified_thinking, test_request_native_with_arguments_dict_response, test_request_native_with_arguments_str_response, test_request_output_type_with_arguments_str_response, test_request_tool_call, test_request_tool_call_with_result_type, test_stream_cancel, test_stream_forwards_model_settings, test_stream_output_defers_stale_integer_prefix, test_stream_output_keeps_digit_ending_partial_string, test_stream_output_keeps_incomplete_unicode_escape, test_stream_output_keeps_integer_followed_by_whitespace, test_stream_output_keeps_partial_float, test_stream_output_nullable_integer_prefix_fails_validation, test_stream_preserves_unset_model_settings, test_stream_result_type_basemodel_with_default_params, test_stream_result_type_basemodel_with_required_params, test_stream_result_type_numeric_json, test_stream_result_type_numeric_json_retries_malformed_continuation, test_stream_result_type_primitif_array, test_stream_result_type_primitif_dict, test_stream_result_type_primitif_int, test_stream_structured_dict_list_form_items, test_stream_structured_with_all_type, test_stream_text, test_stream_text_finish_reason, test_stream_tool_call, test_stream_tool_call_deltas, test_stream_tool_call_with_retry, test_stream_tool_call_with_return_type, test_stream_usage_with_cached_tokens, test_text_content_input, test_text_document_as_binary_content_input, test_text_document_binary_content_mapping, test_text_document_url_input, test_three_completions, test_tool_call_args_sent_as_canonical_json_string, test_txt_url_input, test_uploaded_file_input, test_validate_required_json_schema, test_video_url_input
  • tests/models/test_multimodal_tool_returns.py (the cases parametrized over these five providers): test_mixed_content_ordering, test_model_sees_multiple_images, test_multimodal_tool_return_matrix, test_non_pdf_document_url_mistral, test_tool_media_framing_reaches_the_provider, test_tool_media_is_framed_with_its_originating_call
  • tests/models/test_stream_close.py (the cases parametrized over these five providers): test_cancel_recorded_provider_stream, test_provider_close_stream_cancels_active_pull
  • tests/models/test_streamed_tool_call_deltas.py (the cases parametrized over these five providers): test_empty_string_tool_call_deltas_reach_the_parts_manager, test_tool_call_deltas_accumulate_into_one_part, test_tool_call_deltas_closed_by_an_empty_function
  • tests/models/test_tool_choice_matrix.py (the cases parametrized over these five providers): test_tool_choice_matrix
  • tests/models/test_xai.py: test_map_user_prompt_with_text_content, test_tool_choice_fallback, test_tool_choice_multiple_tools_filters, test_tool_choice_none, test_tool_choice_required, test_tool_choice_specific_tool, test_uploaded_file_wrong_provider_xai, test_uploaded_file_xai_model, test_xai_audio_url_not_supported, test_xai_binary_content_audio_not_supported, test_xai_binary_content_document_input, test_xai_binary_content_unknown_media_type_raises, test_xai_builtin_code_execution_tool, test_xai_builtin_code_execution_tool_stream, test_xai_builtin_mcp_server_tool, test_xai_builtin_mcp_server_tool_stream, test_xai_builtin_multiple_tools, test_xai_builtin_tool_call_in_history, test_xai_builtin_tool_failed_in_history, test_xai_builtin_tool_failed_without_error_in_history, test_xai_builtin_tool_without_tool_call_id, test_xai_builtin_tools_with_custom_tools, test_xai_builtin_web_search_tool, test_xai_builtin_web_search_tool_stream, test_xai_cache_point_filtered, test_xai_citations_setting, test_xai_code_execution_default_output, test_xai_document_url_with_data_type_adds_extension, test_xai_document_url_without_data_type, test_xai_empty_usage_response, test_xai_encrypted_content_only, test_xai_file_part_in_history_skipped, test_xai_file_upload_error_is_mapped, test_xai_hidden_tools_stay_off_the_wire, test_xai_image_as_binary_content_input, test_xai_image_detail_vendor_metadata, test_xai_image_input, test_xai_image_url_force_download, test_xai_image_url_input, test_xai_image_url_no_force_download, test_xai_image_url_tool_response, test_xai_include_settings, test_xai_instructions, test_xai_legacy_grok_provider_name_in_history, test_xai_map_builtin_tool_call_part_unknown_tool_name_ignored, test_xai_mcp_server_default_output, test_xai_mcp_server_tool_in_history, test_xai_native_output_with_tools, test_xai_no_delta, test_xai_none_delta, test_xai_parallel_tool_calls, test_xai_parse_tool_args_invalid_json, test_xai_prompted_output_json_object, test_xai_reasoning_simple, test_xai_reorders_retry_prompt_tool_results_by_tool_call_id, test_xai_reorders_tool_return_parts_by_tool_call_id, test_xai_request_simple_success, test_xai_request_structured_response_native_output, test_xai_request_structured_response_tool_output, test_xai_request_tool_call, test_xai_retry_feedback_as_tagged_user_message, test_xai_specific_model_settings, test_xai_stream_citation_without_url_is_dropped, test_xai_stream_client_side_tool_call_prefers_delta_when_accumulated_missing_or_empty, test_xai_stream_client_tool_args_non_prefix_path, test_xai_stream_empty_response_raises, test_xai_stream_empty_tool_call_name, test_xai_stream_encrypted_content_split_across_chunks, test_xai_stream_events_with_reasoning, test_xai_stream_finish_reason_matches_non_stream, test_xai_stream_inline_citations_multiple_outputs, test_xai_stream_interleaved_text_part_lifecycle_events, test_xai_stream_intermediate_chunks_keep_finish_reason_unset, test_xai_stream_native_output, test_xai_stream_no_usage_no_finish_reason, test_xai_stream_server_side_tool_call_and_return_dedupes, test_xai_stream_server_side_tool_call_ignored_for_unknown_role, test_xai_stream_structured, test_xai_stream_structured_finish_reason, test_xai_stream_text, test_xai_stream_text_after_server_side_tool_call_returns_output, test_xai_stream_text_finish_reason, test_xai_stream_tool_call_with_empty_text, test_xai_stream_tool_call_without_name_ignored, test_xai_stream_with_encrypted_reasoning, test_xai_stream_x_search_inventory_is_not_a_text_citation, test_xai_system_prompt, test_xai_thinking_part_content_only_with_provider_in_history, test_xai_thinking_part_groups_with_following_tool_calls_in_history, test_xai_thinking_part_in_message_history, test_xai_thinking_part_with_content_and_signature_in_history, test_xai_thinking_part_with_signature_only_in_history, test_xai_thinking_tool_call_grouping_round_trip, test_xai_user_prompt_cache_point_only_skipped, test_xai_video_url_not_supported, test_xai_web_search_default_output, test_xai_web_search_tool_in_history, test_xai_web_search_user_location_recorded
  • tests/models/xai/test_attachment_search.py: test_xai_attachment_search_history_payload, test_xai_attachment_search_history_without_provider_details, test_xai_attachment_search_stream, test_xai_attachment_search_with_output
  • tests/models/xai/test_native_tool_results.py: test_xai_failed_tool_result, test_xai_interrupted_stream_keeps_tool_result, test_xai_native_tool_result_replayed_paired, test_xai_other_provider_tool_results_are_not_replayed, test_xai_streamed_failed_tool_result, test_xai_streamed_tool_result_split_across_chunks
  • tests/models/xai/test_search_tools.py: test_grok_4_7_profile_reasoning_efforts, test_grok_4_reasoning_model_forwards_reasoning_effort, test_grok_model_profile_thinking, test_xai_builtin_file_search_tool, test_xai_builtin_x_search_tool, test_xai_builtin_x_search_tool_stream, test_xai_builtin_x_search_tool_with_date_range, test_xai_builtin_x_search_tool_with_handles, test_xai_file_search_builtin_tool_call_in_history, test_xai_file_search_options_forwarded, test_xai_thinking_false_with_non_always_on_profile_is_dropped, test_xai_x_search_builtin_tool_call_in_history, test_xai_x_search_function_name_round_trip, test_xai_x_search_streaming_citations_no_duplicate_part_start_event
  • tests/models/xai/test_stream_parity.py: test_recorded_streams_match_the_complete_response
  • tests/models/xai/test_thinking.py: test_xai_grok_3_mini_unified_thinking_reasoning_effort, test_xai_grok_43_explicit_reasoning_effort_takes_precedence, test_xai_grok_43_streaming_thinking_false_emits_reasoning_effort_none, test_xai_grok_43_unified_thinking_reasoning_effort, test_xai_grok_45_thinking, test_xai_grok_45_thinking_false, test_xai_grok_45_unified_thinking_reasoning_effort, test_xai_grok_47_thinking, test_xai_grok_47_unified_thinking_reasoning_effort, test_xai_unified_thinking, test_xai_unified_thinking_false, test_xai_unified_thinking_omits_reasoning_effort
  • tests/test_streaming_errors.py (the cases parametrized over these five providers): test_gateway_model_name_suggestion_midstream, test_groq_midstream_non_http_error, test_groq_midstream_status_error, test_groq_peek_error, test_huggingface_midstream_error, test_mistral_midstream_error, test_mistral_stream_creation_error, test_xai_midstream_error, test_xai_peek_error, test_xai_request_error
  • tests/test_thinking_wire_contract.py (the cases parametrized over these five providers): test_reasoning_wire_contract
  • tests/test_tool_failed_wire.py (the cases parametrized over these five providers): test_channel_less_tool_return_framing, test_legacy_retry_prompt_part_framing
Before and after scores: 849 → 258
FileFunctionmainafter
cohere.pyCohereModel._map_messages4212
cohere.pyCohereModel._map_user_message2712
groq.pyGroqModel._completions_create167
groq.pyGroqModel._map_messages3412
groq.pyGroqModel._map_user_prompt377
groq.pyGroqStreamedResponse._get_event_iterator5310
groq.py_map_api_errors218
huggingface.pyHuggingFaceModel._map_messages3412
huggingface.pyHuggingFaceModel._map_user_prompt247
huggingface.pyHuggingFaceStreamedResponse._get_event_iterator204
mistral.pyMistralModel._get_python_type278
mistral.pyMistralModel._get_tool_choice199
mistral.pyMistralModel._map_messages4215
mistral.pyMistralModel._map_user_prompt527
mistral.pyMistralStreamedResponse._get_event_iterator344
mistral.pyMistralStreamedResponse._try_get_output_tool_from_text235
mistral.pyMistralStreamedResponse._validate_required_json_schema2611
mistral.py_map_api_errors235
mistral.py_map_content2511
xai.pyXaiModel._create_chat2314
xai.pyXaiModel._get_tool_choice3213
xai.pyXaiModel._map_messages1614
xai.pyXaiModel._map_request_parts2013
xai.pyXaiModel._map_response_parts2610
xai.pyXaiModel._map_user_prompt415
xai.pyXaiModel._process_response2915
xai.pyXaiStreamedResponse._get_event_iterator666
xai.pyXaiStreamedResponse._handle_server_side_tool_call172
Total849258

Paths are under pydantic_ai_slim/pydantic_ai/models/. The program plan also listed Cohere's _map_usage and GroqModel._get_native_tools; on main their logic now scores 15 (_map_cohere_usage) and under 15, so they are out of scope.

PR decisions

2026-11-06 · R10 scope re-scored on main b633d4b3cf · iter -

  • Decision: 28 functions in scope; cohere _map_usage dropped (its logic moved into _map_cohere_usage, 15 on main) and GroqModel._get_native_tools dropped (under 15 after #12386); no other function in the five files scores over 15
  • Why: manager dispatch: re-score on current main, drop any under 15, pick up functions main moved logic into
  • Source: https://github.com/pydantic/pydantic-ai/tree/b633d4b3cf
  • Session: 026f39eb-61e0-44f3-875a-00b2d59f2ec3

2026-11-06 · implement directly, no plan-only PR · iter -

  • Decision: initialize-worktree complexity question skipped: implement + PR
  • Why: manager dispatch already fixes scope, shapes and decisions (D1, D2, D6); a [relaying for david] session cannot take AskUserQuestion
  • Source: https://github.com/pydantic/pydantic-ai/issues/10983
  • Session: 026f39eb-61e0-44f3-875a-00b2d59f2ec3

2026-11-06 · request-part dispatches keep isinstance chains · iter -

  • Decision: _map_user_message / _map_request_parts dispatches that include _UnpreparedPart stay isinstance chains; response-part, user-content and message-kind dispatches become match with assert_never
  • Why: this session's call: _UnpreparedPart is a union TypeAlias, and 'case _UnpreparedPart():' raises TypeError when reached, in an arm that is pragma: no cover; provider-adapters.md allows either form; Anthropic and OpenAI request dispatches keep the chain
  • Source: https://github.com/pydantic/pydantic-ai/tree/provider-adapters-complexity
  • Session: 026f39eb-61e0-44f3-875a-00b2d59f2ec3

2026-11-06 · xAI _get_tool_choice: filtering arms merged · iter -

  • Decision: the single-tool-without-forcing arm and the multi-tool arm become one 'case (tool_choice_mode, tool_names):' that filters tool_defs and sends 'required' if mode is required and forcing is supported, else 'auto'; single tool with forcing keeps required_tool
  • Why: this session's call: same output for all six mode x tool-count x forcing combinations, checked by hand; brings it to 13 without a helper
  • Source: https://github.com/pydantic/pydantic-ai/tree/provider-adapters-complexity
  • Session: 026f39eb-61e0-44f3-875a-00b2d59f2ec3

2026-11-06 · R10 split across four lanes, one reviewer · iter -

  • Decision: Cohere done in this session; Groq+Hugging Face, Mistral and xAI by three forks of this session, each told the shared shapes; this session reviewed each diff, ran one pyright and one complexipy over all five files, and runs tests and captures centrally
  • Why: this session's call: parallel edits on disjoint files; consistent names (_map_model_response, _map_chunk, _map_status_error, _map_image_url, _map_binary_content) across adapters
  • Source: https://github.com/pydantic/pydantic-ai/tree/provider-adapters-complexity
  • Session: 026f39eb-61e0-44f3-875a-00b2d59f2ec3

2026-11-06 · pre-push review 1 of 3 at 3da2ae876abb80439d87e63652d25a6499a911cc · iter -

2026-11-06 · pre-push review 1 of 3 at 3da2ae876abb80439d87e63652d25a6499a911cc · iter -

  • Decision: no remediation. Skipped: rename _append_builtin_tool_call_part (the name follows xai.py's builtin vocabulary, _map_builtin_tool_call_part and builtin_calls, and the _append_tool_call it calls; the suggested _add_native_tool_call mixes vocabularies in one file). Out of scope, reported to the manager: Groq/HF _map_thinking_part hand-join thinking_tags instead of render_replayed_thinking; moved unchanged, same output unless a profile sets mimics_assistant_message_formatting, which no Groq or Hugging Face profile does
  • Why: reviewed tree 8ab257bea066371f9e197679c9465b1993542d6b; full branch b633d4b3cf..3da2ae876a; haiku, read-only tools, detached policy-base worktree; evidence-backed dismissal on unchanged content needs no further pass
  • Source: https://github.com/pydantic/pydantic-ai/tree/provider-adapters-complexity
  • Session: 026f39eb-61e0-44f3-875a-00b2d59f2ec3
  • Supersedes: pre-push review 1 of 3 at 3da2ae876abb80439d87e63652d25a6499a911cc (reserved)

2026-11-07 · one PR, not split · iter -

2026-11-07 · pre-push review 2 of 3 at 8d03f7a8013e094a1d3340bffec67eb51257aeec · iter -

2026-11-07 · pre-push review 2 of 3 at 8d03f7a8013e094a1d3340bffec67eb51257aeec · iter -

2026-11-07 · no additional review surface · iter -

  • Decision: no second opinion beyond the required CI and douwebot reviews
  • Why: David's call; options framed by this session: none (recommended), pydanty:review-branch, pydanty:review-lite, douwebot again, local pre-push review
  • Source: https://github.com/pydantic/pydantic-ai/pull/12764
  • Session: 026f39eb-61e0-44f3-875a-00b2d59f2ec3

2026-11-07 · merge-queue ejection 2026-11-07T15:10Z: flake #12770 · iter -

  • Decision: ejected (reason failed_checks) from merge group on 7e72d571ce: 'test on 3.15 (pydantic-clai2)' failed only tests/clai2/test_live_runtimes.py::test_a_closed_session_is_freed (flake #12770); 'check' failed only as its aggregate. Head 8d03f7a801 unchanged, still green CI and clean douwebot approval. No removal comment posted, not re-enqueued
  • Why: classification for the manager; in this lane a worker never enqueues or re-enqueues and posts no removal comment, David decides each enqueue through the manager
  • Source: https://github.com/pydantic/pydantic-ai/actions/runs/42383526770/job/128435994645
  • Session: 026f39eb-61e0-44f3-875a-00b2d59f2ec3

Checklist

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
  • PR title is fit for the release changelog.