Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.
feature/Undo-over-reaching-hosted-renames · L-261005-540453 (#1340)
Louis Choquelf2addbfae71a
diff --git a/.test_durations b/.test_durationsindex 0da9af080..c3ff2834c 100644--- a/.test_durations+++ b/.test_durations@@ -8159,20 +8159,6 @@"tests/unit/pipelex/migration/test_goldens.py::TestReadingTheGoldenChain::test_a_golden_whose_body_disagrees_with_its_filename_is_refused": 0.0027,"tests/unit/pipelex/migration/test_goldens.py::TestReadingTheGoldenChain::test_a_link_that_was_never_snapshotted_is_none": 0.0009,"tests/unit/pipelex/migration/test_goldens.py::TestReadingTheGoldenChain::test_a_written_golden_reads_back_as_itself": 0.8028,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_a_stale_file_is_reported_and_left_untouched": 0.0827,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_every_former_handle_maps_to_its_current_one[manifold_anthropic-pipelex_hosted_anthropic]": 0.1148,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_every_former_handle_maps_to_its_current_one[manifold_completions-pipelex_hosted_completions]": 0.1176,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_every_former_handle_maps_to_its_current_one[manifold_extract-pipelex_hosted_extract]": 0.0038,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_every_former_handle_maps_to_its_current_one[manifold_img_gen-pipelex_hosted_img_gen]": 0.0885,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_every_former_handle_maps_to_its_current_one[manifold_responses-pipelex_hosted_responses]": 0.0071,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_every_former_handle_maps_to_its_current_one[manifold_search-pipelex_hosted_search]": 0.093,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_every_target_is_a_handle_the_plugin_registers[manifold_anthropic-pipelex_hosted_anthropic]": 0.001,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_every_target_is_a_handle_the_plugin_registers[manifold_completions-pipelex_hosted_completions]": 0.0006,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_every_target_is_a_handle_the_plugin_registers[manifold_extract-pipelex_hosted_extract]": 0.0004,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_every_target_is_a_handle_the_plugin_registers[manifold_img_gen-pipelex_hosted_img_gen]": 0.101,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_every_target_is_a_handle_the_plugin_registers[manifold_responses-pipelex_hosted_responses]": 0.0008,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_every_target_is_a_handle_the_plugin_registers[manifold_search-pipelex_hosted_search]": 0.005,- "tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py::TestTheHostedSdkByHandEntry::test_the_operations_rewrite_every_stale_handle_to_the_current_one": 0.0082,"tests/unit/pipelex/migration/test_ledger_check.py::TestTheLedgerCheck::test_a_correct_rename_entry_is_green": 0.0045,"tests/unit/pipelex/migration/test_ledger_check.py::TestTheLedgerCheck::test_a_declared_narrowed_path_that_is_really_a_removal_is_refused_as_absent": 0.0027,"tests/unit/pipelex/migration/test_ledger_check.py::TestTheLedgerCheck::test_a_declared_narrowed_path_the_entrys_own_version_does_not_have_is_refused": 0.0025,@@ -10636,9 +10622,11 @@"tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata.py::TestPipelexHostedMetadata::test_the_value_is_printable_ascii_whatever_went_in[tab]": 0.0009,"tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py::TestPipelexHostedMetadataScope::test_a_plain_anthropic_worker_sends_no_headers_on_the_structured_call[anthropic]": 0.0602,"tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py::TestPipelexHostedMetadataScope::test_a_plain_anthropic_worker_sends_no_headers_on_the_structured_call[pipelex_hosted]": 0.1847,+ "tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py::TestPipelexHostedMetadataScope::test_a_plain_anthropic_worker_sends_no_headers_on_the_structured_call[pipelex_manifold]": 0.2176,"tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py::TestPipelexHostedMetadataScope::test_a_plain_anthropic_worker_sends_no_headers_on_the_text_call[anthropic]": 0.1798,"tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py::TestPipelexHostedMetadataScope::test_a_plain_anthropic_worker_sends_no_headers_on_the_text_call[bedrock]": 0.0069,"tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py::TestPipelexHostedMetadataScope::test_a_plain_anthropic_worker_sends_no_headers_on_the_text_call[pipelex_hosted]": 0.0079,+ "tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py::TestPipelexHostedMetadataScope::test_a_plain_anthropic_worker_sends_no_headers_on_the_text_call[pipelex_manifold]": 0.201,"tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py::TestPipelexHostedMetadataScope::test_direct_claude_sends_no_headers_on_the_structured_call": 0.0284,"tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py::TestPipelexHostedMetadataScope::test_direct_claude_sends_no_headers_on_the_text_call[anthropic]": 0.0171,"tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py::TestPipelexHostedMetadataScope::test_direct_claude_sends_no_headers_on_the_text_call[bedrock]": 0.0186,diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 0f25d6d40..0e0927c5b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,8 +4,7 @@### Changed-- **The hosted backend's names no longer carry a codename (Breaking)**: the Pipelex-run inference backend is now `pipelex_hosted`, displayed as "Pipelex", where it was `pipelex_manifold`, displayed as "Pipelex Manifold". Its routing profile becomes `all_pipelex_hosted`, the environment variables its messages name become `PIPELEX_HOSTED_ENDPOINT` and `PIPELEX_HOSTED_API_KEY`, the `sdk` values its model specs name become `pipelex_hosted_anthropic`, `pipelex_hosted_completions`, `pipelex_hosted_responses`, `pipelex_hosted_img_gen`, `pipelex_hosted_extract` and `pipelex_hosted_search`, its provider package moves to `pipelex.providers.pipelex_hosted`, and its plugin is named `pipelex_hosted` rather than `manifold`, so a `runtime.plugins.disabled` list naming `manifold` no longer disables it. Its error classes are renamed from `Manifold*` to `PipelexHosted*`, such as `PipelexHostedError` and `PipelexHostedCredentialsError`, with their reference pages, while each keeps the `type` and `title` of its generic family, and its messages now speak of "the Pipelex service". A deployment that declares the backend renames its `backends.toml` table, its file under `inference/backends/`, its routing profile, its environment variables and its model specs' `sdk` values to match. Its metadata reader `extract_manifold_metadata` is now `extract_pipelex_hosted_metadata`.-- **Migration:** `inference-backend@4` reports every backend file under `inference/backends/` that still names one of the hosted backend's former `manifold_*` SDK handles, which keep loading but fail every call because no plugin registers them. It rewrites nothing, since `sdk` is an open value: replace each with its `pipelex_hosted_*` counterpart, and rename the file, the `backends.toml` table and the routing profile by hand. Run `pipelex migrate` to find them.+- **The hosted backend's errors and messages no longer carry a codename (Breaking)**: its error classes are renamed from `Manifold*` to `PipelexHosted*`, such as `PipelexHostedError` and `PipelexHostedCredentialsError`, with their reference pages, while each keeps the `type` and `title` of its generic family. Its messages speak of "the Pipelex service", and the two that refuse a missing endpoint or key name the backend's `endpoint` and `api_key` settings rather than an environment variable. Its provider package moves to `pipelex.providers.pipelex_hosted`, `extract_manifold_metadata` is now `extract_pipelex_hosted_metadata`, and the enum member `PipelexBackend.MANIFOLD` is now `PipelexBackend.PIPELEX_HOSTED`, with its value `pipelex_manifold` unchanged.## [v0.73.0] - 2026-10-05diff --git a/pipelex/cogt/model_backends/backend.py b/pipelex/cogt/model_backends/backend.pyindex 7203ea957..2d0dcde43 100644--- a/pipelex/cogt/model_backends/backend.py+++ b/pipelex/cogt/model_backends/backend.py@@ -12,7 +12,8 @@ from pipelex.tools.typing.pydantic_utils import empty_dict_factory_of, empty_lisclass PipelexBackend(StrEnum):"""Special Pipelex-managed inference backends."""- PIPELEX_HOSTED = "pipelex_hosted"+ # The value is the backend name the hosted plane's config declares, so it keeps that spelling+ PIPELEX_HOSTED = "pipelex_manifold"INTERNAL = "internal" # Software-only backend, runs locally without AI@propertydiff --git a/pipelex/migration/goldens/inference-backend/[email protected] b/pipelex/migration/goldens/inference-backend/[email protected]deleted file mode 100644index f46825eb1..000000000--- a/pipelex/migration/goldens/inference-backend/[email protected]+++ /dev/null@@ -1,291 +0,0 @@-################################################################################-# Portkey Configuration-################################################################################-#-# This file defines the model specifications for the Portkey backend.-# It contains model definitions for various AI models.-#-# Configuration structure:-# - Each model is defined in its own section with the model name as the header-# - Headers with dots must be quoted (e.g., ["gpt-4.1"])-# - Model costs are in USD per million tokens (input/output)-#-# Documentation: https://docs.pipelex.com-# Support: https://go.pipelex.com/discord-#-################################################################################--################################################################################-# MODEL DEFAULTS-################################################################################--[defaults]-model_type = "llm"-sdk = "portkey_completions"-structure_method = "instructor/openai_tools"-thinking_mode = "none"--################################################################################-# LANGUAGE MODELS-################################################################################--# --- OpenAI LLMs ---------------------------------------------------------------[gpt-4o-mini]-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 0.15, output = 0.6 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "none"-x-portkey-provider = "@openai"--[gpt-4o]-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 2.5, output = 10.0 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "none"-x-portkey-provider = "@openai"--["gpt-4.1-nano"]-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 0.1, output = 0.4 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "none"-x-portkey-provider = "@openai"--["gpt-4.1-mini"]-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 0.4, output = 1.6 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "none"-x-portkey-provider = "@openai"--["gpt-4.1"]-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 2, output = 8 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "none"-x-portkey-provider = "@openai"--[o1]-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 15.0, output = 60.0 }-valued_constraints = { fixed_temperature = 1 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "manual"-x-portkey-provider = "@openai"--[o3-mini]-inputs = ["text"]-outputs = ["text", "structured"]-costs = { input = 1.1, output = 4.4 }-valued_constraints = { fixed_temperature = 1 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "manual"-x-portkey-provider = "@openai"--[o3]-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 2, output = 8 }-valued_constraints = { fixed_temperature = 1 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "manual"-x-portkey-provider = "@openai"--[gpt-5-nano]-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 0.05, output = 0.4 }-valued_constraints = { fixed_temperature = 1 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "manual"-x-portkey-provider = "@openai"--[gpt-5-mini]-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 0.25, output = 2.0 }-valued_constraints = { fixed_temperature = 1 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "manual"-x-portkey-provider = "@openai"--[gpt-5]-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 1.25, output = 10.0 }-valued_constraints = { fixed_temperature = 1 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "manual"-x-portkey-provider = "@openai"--["gpt-5.1"]-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 1.25, output = 10.0 }-valued_constraints = { fixed_temperature = 1 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "manual"-x-portkey-provider = "@openai"--["gpt-5.1-codex"]-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 1.25, output = 10.0 }-valued_constraints = { fixed_temperature = 1 }-sdk = "portkey_responses"-structure_method = "instructor/openai_responses_tools"-thinking_mode = "manual"-x-portkey-provider = "@openai"--# --- Claude LLMs ---------------------------------------------------------------[claude-3-haiku]-model_id = "claude-3-haiku-20240307"-max_tokens = 4096-inputs = ["text", "images"]-outputs = ["text", "structured"]-max_prompt_images = 100-costs = { input = 0.25, output = 1.25 }-thinking_mode = "none"-x-portkey-provider = "@anthropic"--["claude-3.7-sonnet"]-model_id = "claude-3-7-sonnet-20250219"-max_tokens = 8192-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-max_prompt_images = 100-costs = { input = 3.0, output = 15.0 }-thinking_mode = "manual"-x-portkey-provider = "@anthropic"--[claude-4-sonnet]-model_id = "claude-sonnet-4-20250514"-max_tokens = 64000-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-max_prompt_images = 100-costs = { input = 3.0, output = 15.0 }-thinking_mode = "manual"-x-portkey-provider = "@anthropic"--[claude-4-opus]-model_id = "claude-opus-4-20250514"-max_tokens = 32000-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-max_prompt_images = 100-costs = { input = 3.0, output = 15.0 }-thinking_mode = "manual"-x-portkey-provider = "@anthropic"--["claude-4.1-opus"]-model_id = "claude-opus-4-1-20250805"-max_tokens = 32000-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-max_prompt_images = 100-costs = { input = 3.0, output = 15.0 }-thinking_mode = "manual"-x-portkey-provider = "@anthropic"--["claude-4.5-sonnet"]-model_id = "claude-sonnet-4-5-20250929"-max_tokens = 64000-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-max_prompt_images = 100-costs = { input = 3.0, output = 15.0 }-thinking_mode = "manual"-x-portkey-provider = "@anthropic"--["claude-4.5-haiku"]-model_id = "claude-haiku-4-5-20251001"-max_tokens = 64000-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-max_prompt_images = 100-costs = { input = 1.0, output = 5.0 }-thinking_mode = "manual"-x-portkey-provider = "@anthropic"--["claude-4.5-opus"]-model_id = "claude-opus-4-5-20251101"-max_tokens = 64000-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-max_prompt_images = 100-costs = { input = 5.0, output = 25.0 }-thinking_mode = "manual"-x-portkey-provider = "@anthropic"--["claude-4.6-opus"]-model_id = "claude-opus-4-6"-max_tokens = 64000-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-max_prompt_images = 100-costs = { input = 5.0, output = 25.0 }-thinking_mode = "adaptive"-x-portkey-provider = "@anthropic"--# --- Gemini LLMs ---------------------------------------------------------------["gemini-2.5-pro"]-model_id = "gemini-2.5-pro"-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-max_prompt_images = 3000-costs = { input = 1.25, output = 10.0 }-thinking_mode = "manual"-x-portkey-provider = "@google"--["gemini-2.5-flash"]-model_id = "gemini-2.5-flash"-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 0.30, output = 2.50 }-thinking_mode = "manual"-x-portkey-provider = "@google"--["gemini-2.5-flash-lite"]-model_id = "gemini-2.5-flash-lite"-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-costs = { input = 0.10, output = 0.40 }-thinking_mode = "manual"-x-portkey-provider = "@google"--["gemini-3.1-pro"]-model_id = "gemini-3.1-pro-preview"-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-max_prompt_images = 3000-costs = { input = 2, output = 12.0 }-thinking_mode = "adaptive"-x-portkey-provider = "@google"--["gemini-3.0-flash"]-model_id = "gemini-3-flash-preview"-inputs = ["text", "images", "pdf"]-outputs = ["text", "structured"]-max_prompt_images = 3000-costs = { input = 0.5, output = 3.0 }-thinking_mode = "adaptive"-x-portkey-provider = "@google"diff --git a/pipelex/migration/goldens/inference-backend/[email protected] b/pipelex/migration/goldens/inference-backend/[email protected]deleted file mode 100644index d05ed258d..000000000--- a/pipelex/migration/goldens/inference-backend/[email protected]+++ /dev/null@@ -1,157 +0,0 @@-{- "surface_id": "inference-backend",- "schema_version": 4,- "document_root_is_open": true,- "paths": {- "*": {- "value_type": "table",- "required": true,- "open_node": false- },- "*.costs": {- "value_type": "dict[enum, float]",- "required": false,- "open_node": true- },- "*.costs.*": {- "value_type": "float",- "required": true,- "open_node": false- },- "*.enabled": {- "value_type": "bool",- "required": false,- "open_node": false- },- "*.endpoint_path": {- "value_type": "str",- "required": false,- "open_node": false- },- "*.inputs": {- "value_type": "list[str]",- "required": false,- "open_node": false- },- "*.listed_constraints": {- "value_type": "list[enum]",- "required": false,- "enum_members": [- "max_tokens_must_be_high_enough",- "temperature_must_be_multiplied_by_2",- "temperature_unsupported"- ],- "open_node": false- },- "*.max_prompt_images": {- "value_type": "int",- "required": false,- "open_node": false- },- "*.max_tokens": {- "value_type": "int",- "required": false,- "open_node": false- },- "*.model_id": {- "value_type": "str",- "required": false,- "open_node": false- },- "*.model_type": {- "value_type": "enum",- "required": false,- "enum_members": [- "doc_gen",- "img_gen",- "judgment",- "llm",- "search",- "text_extractor"- ],- "open_node": false- },- "*.outputs": {- "value_type": "list[str]",- "required": false,- "open_node": false- },- "*.rules": {- "value_type": "dict[enum, str]",- "required": false,- "open_node": true- },- "*.rules.*": {- "value_type": "str",- "required": true,- "open_node": false- },- "*.sdk": {- "value_type": "str",- "required": false,- "open_node": false- },- "*.structure_method": {- "value_type": "enum",- "required": false,- "enum_members": [- "instructor/anthropic_json",- "instructor/anthropic_reasoning_tools",- "instructor/anthropic_tools",- "instructor/bedrock_json",- "instructor/bedrock_tools",- "instructor/cerebras_json",- "instructor/cerebras_tools",- "instructor/cohere_json_schema",- "instructor/cohere_tools",- "instructor/fireworks_json",- "instructor/fireworks_tools",- "instructor/genai_structured_outputs",- "instructor/genai_tools",- "instructor/json",- "instructor/json_schema",- "instructor/md_json",- "instructor/mistral_structured_outputs",- "instructor/mistral_tools",- "instructor/openai_json_o1",- "instructor/openai_parallel_tools",- "instructor/openai_responses_tools",- "instructor/openai_responses_tools_with_inbuilt_tools",- "instructor/openai_structured_outputs",- "instructor/openai_tools",- "instructor/openrouter_structured_outputs",- "instructor/perplexity_json",- "instructor/vertexai_json",- "instructor/vertexai_parallel_tools",- "instructor/vertexai_tools",- "instructor/writer_tools"- ],- "open_node": false- },- "*.thinking_mode": {- "value_type": "enum",- "required": false,- "enum_members": [- "adaptive",- "manual",- "none"- ],- "open_node": false- },- "*.valued_constraints": {- "value_type": "dict[enum, any]",- "required": false,- "open_node": true- },- "*.valued_constraints.*": {- "value_type": "any",- "required": true,- "open_node": false- },- "*.variant": {- "value_type": "str",- "required": false,- "open_node": false- }- }-}diff --git a/pipelex/migration/ledgers/inference-backend.toml b/pipelex/migration/ledgers/inference-backend.tomlindex e64f84c4a..3436812ff 100644--- a/pipelex/migration/ledgers/inference-backend.toml+++ b/pipelex/migration/ledgers/inference-backend.toml@@ -11,7 +11,7 @@ id = "inference-backend"title = "Inference backend model definitions"subdirectory = "inference/backends"tier_glob = "*.toml"-current_schema_version = 4+current_schema_version = 3min_supported_schema_version = 0[[migration]]@@ -84,34 +84,3 @@ kind = "remap_value"table_path = ["*"]key = "sdk"mapping = { bedrock_aioboto3 = "bedrock_aioboto" }--# Unsafe for the reason `@3` is: `sdk` is a free string, so the old handles still validate and the boot never-# reaches the ledger. The entry exists so that `pipelex migrate` names each file still carrying one of them.-[[migration]]-id = "inference-backend@4"-to_schema_version = 4-introduced_in = "0.73.0"-breaking = true-safety = "unsafe"-title = "Rename the hosted backend's manifold_* SDK handles to pipelex_hosted_*, by hand"-description = """-The SDK handles of the Pipelex-run hosted backend are renamed from `manifold_anthropic`, \-`manifold_completions`, `manifold_responses`, `manifold_img_gen`, `manifold_extract` and \-`manifold_search` to `pipelex_hosted_anthropic`, `pipelex_hosted_completions`, \-`pipelex_hosted_responses`, `pipelex_hosted_img_gen`, `pipelex_hosted_extract` and \-`pipelex_hosted_search`. A backend file that still names an old handle keeps loading, but every call to \-a model it defines fails, because no plugin registers that SDK any more.-"""-guidance = """-Replace each `manifold_*` value of `sdk` with its `pipelex_hosted_*` counterpart wherever the file sets \-it: in `[defaults]` and in any model table that overrides it. The backend itself is renamed too, from \-`pipelex_manifold` to `pipelex_hosted`, so rename this file to `pipelex_hosted.toml`, and rename the \-`[pipelex_manifold]` table of `backends.toml` and any routing profile naming it; those two files are not \-migration surfaces, so no tool rewrites them.-"""--[[migration.ops]] # `["*"]` is every root table of the file: `[defaults]` and each model alike-kind = "remap_value"-table_path = ["*"]-key = "sdk"-mapping = { manifold_anthropic = "pipelex_hosted_anthropic", manifold_completions = "pipelex_hosted_completions", manifold_responses = "pipelex_hosted_responses", manifold_img_gen = "pipelex_hosted_img_gen", manifold_extract = "pipelex_hosted_extract", manifold_search = "pipelex_hosted_search" }diff --git a/pipelex/providers/pipelex_hosted/pipelex_hosted_anthropic_extras.py b/pipelex/providers/pipelex_hosted/pipelex_hosted_anthropic_extras.pyindex 59c7e68f0..080c7ddb4 100644--- a/pipelex/providers/pipelex_hosted/pipelex_hosted_anthropic_extras.py+++ b/pipelex/providers/pipelex_hosted/pipelex_hosted_anthropic_extras.py@@ -1,7 +1,7 @@"""The per-request extras of a Claude call through the Pipelex service.Claude reaches the service over the open Anthropic worker, registered here under the package's own-`pipelex_hosted_anthropic` sdk token with this factory: the worker asks it, per request, what joins the+`manifold_anthropic` sdk token with this factory: the worker asks it, per request, what joins thecall, and the answer is the `x-pipelex-metadata` header naming the run and the step (see`pipelex_hosted_metadata`). Every other Anthropic path builds the worker without a factory and sendsnothing of the kind.diff --git a/pipelex/providers/pipelex_hosted/pipelex_hosted_constants.py b/pipelex/providers/pipelex_hosted/pipelex_hosted_constants.pyindex 79cc7d323..88080a844 100644--- a/pipelex/providers/pipelex_hosted/pipelex_hosted_constants.py+++ b/pipelex/providers/pipelex_hosted/pipelex_hosted_constants.py@@ -54,28 +54,29 @@ PIPELEX_HOSTED_SEARCH_ROUTE = "/pipelex/search"class PipelexHostedSdk(StrEnum):"""The sdk values the hosted model catalog section may name.- `pipelex_hosted_anthropic` is the open Anthropic worker with this package's extras factory, which adds+ The values are the spellings the hosted plane's catalog uses, so they keep them although the+ member names do not. `manifold_anthropic` is the open Anthropic worker with this package's extras factory, which addsthe metadata header to every Claude call."""- ANTHROPIC = "pipelex_hosted_anthropic"- COMPLETIONS = "pipelex_hosted_completions"- RESPONSES = "pipelex_hosted_responses"- IMG_GEN = "pipelex_hosted_img_gen"- EXTRACT = "pipelex_hosted_extract"- SEARCH = "pipelex_hosted_search"+ ANTHROPIC = "manifold_anthropic"+ COMPLETIONS = "manifold_completions"+ RESPONSES = "manifold_responses"+ IMG_GEN = "manifold_img_gen"+ EXTRACT = "manifold_extract"+ SEARCH = "manifold_search"class PipelexHostedOpenAISdkVariant(StrEnum):"""The two OpenAI-substrate sdks, and which of the two shapes each factory serves.- A factory checks its own variant so that a catalog entry naming `pipelex_hosted_responses` cannot be+ A factory checks its own variant so that a catalog entry naming `manifold_responses` cannot beserved by the completions factory (or the reverse) through a mis-registration — the failurewould otherwise be a wrong request shape at the provider rather than a refusal at build time."""- PIPELEX_HOSTED_COMPLETIONS = "pipelex_hosted_completions"- PIPELEX_HOSTED_RESPONSES = "pipelex_hosted_responses"+ PIPELEX_HOSTED_COMPLETIONS = "manifold_completions"+ PIPELEX_HOSTED_RESPONSES = "manifold_responses"@classmethoddef is_completions(cls, sdk: str) -> bool:diff --git a/pipelex/providers/pipelex_hosted/pipelex_hosted_exceptions.py b/pipelex/providers/pipelex_hosted/pipelex_hosted_exceptions.pyindex cb43fbf7c..98c8a3819 100644--- a/pipelex/providers/pipelex_hosted/pipelex_hosted_exceptions.py+++ b/pipelex/providers/pipelex_hosted/pipelex_hosted_exceptions.py@@ -34,7 +34,7 @@ class PipelexHostedCredentialsError(PipelexHostedError):class PipelexHostedEndpointError(PipelexHostedError):"""The backend declares no usable endpoint for the Pipelex service.- Its own error rather than a credentials one, because the remedy is a different variable and+ Its own error rather than a credentials one, because the remedy is a different setting andbecause there is deliberately no default to fall back on: an empty-resolving endpoint thatsilently became a vendor's public URL would carry our service token to the wrong company."""diff --git a/pipelex/providers/pipelex_hosted/pipelex_hosted_factory.py b/pipelex/providers/pipelex_hosted/pipelex_hosted_factory.pyindex a0476f61d..9ae29b8ad 100644--- a/pipelex/providers/pipelex_hosted/pipelex_hosted_factory.py+++ b/pipelex/providers/pipelex_hosted/pipelex_hosted_factory.py@@ -7,7 +7,7 @@ established which SDK appends what.**There is no fallback endpoint, deliberately.** The Portkey-path sibling reads``backend.endpoint or PORTKEY_GATEWAY_URL``, which is right there: an unset endpoint means "use the-vendor's cloud". Copied here it would mean that an empty-resolving ``PIPELEX_HOSTED_ENDPOINT``+vendor's cloud". Copied here it would mean that an endpoint that resolves emptysilently builds a client aimed at ``api.portkey.ai`` carrying the *Pipelex* service token — a livebillable request to the wrong vendor, with nothing anywhere reporting it. So an absent endpoint is arefusal, and the backend loader's own missing-variable path disables the backend with a named@@ -49,7 +49,7 @@ class PipelexHostedFactory:if not endpoint:msg = (f"Backend '{backend.name}' declares no endpoint for the Pipelex service. "- f"Set PIPELEX_HOSTED_ENDPOINT to the service origin (scheme, host and port, with no '/v1'). "+ f"Set the backend's `endpoint` to the service origin (scheme, host and port, with no '/v1'). "f"There is no default: a request built without one would reach a vendor this token is not for.")raise PipelexHostedEndpointError(msg)@@ -63,7 +63,7 @@ class PipelexHostedFactory:@classmethoddef get_api_key(cls, backend: InferenceBackend) -> str:if not backend.api_key:- msg = f"Backend '{backend.name}' carries no api_key for the Pipelex service; set PIPELEX_HOSTED_API_KEY"+ msg = f"Backend '{backend.name}' carries no api_key for the Pipelex service; set the backend's `api_key`"raise PipelexHostedCredentialsError(msg)return backend.api_keydiff --git a/pipelex/providers/pipelex_hosted/pipelex_hosted_img_gen_worker.py b/pipelex/providers/pipelex_hosted/pipelex_hosted_img_gen_worker.pyindex 75210c334..a5088cbee 100644--- a/pipelex/providers/pipelex_hosted/pipelex_hosted_img_gen_worker.py+++ b/pipelex/providers/pipelex_hosted/pipelex_hosted_img_gen_worker.py@@ -15,7 +15,7 @@ design page's claim that the hosted plugin does not depend on `portkey_ai` is fathe lift is written into the design rather than only into a plan.**The response shapes this worker parses are only the ones the hosted model catalog names.** Every-`pipelex_hosted_img_gen` entry is an Azure GPT Image model, and the gateway's own configuration serves+`manifold_img_gen` entry is an Azure GPT Image model, and the gateway's own configuration servesthem from one integration. The Portkey path's worker also carries a Black Forest Labs Flux 2 Probranch and a FAL queue-polling branch; neither has a model on this path, so neither is carried here.A response that matches nothing is refused with what it actually contained, and restoring a branchdiff --git a/pipelex/providers/pipelex_hosted/pipelex_hosted_plugin.py b/pipelex/providers/pipelex_hosted/pipelex_hosted_plugin.pyindex 2c11a076a..20950b0a0 100644--- a/pipelex/providers/pipelex_hosted/pipelex_hosted_plugin.py+++ b/pipelex/providers/pipelex_hosted/pipelex_hosted_plugin.py@@ -1,12 +1,12 @@"""The hosted sdk set, registered.One registration per ``(family, sdk)`` the Pipelex service serves. The pairing worth-noticing is ``(IMG_GEN, pipelex_hosted_completions)``: some image models answer on the Chat Completions+noticing is ``(IMG_GEN, manifold_completions)``: some image models answer on the Chat Completionsshape rather than on the Images API, and the catalog says which by giving them ``model_type ="img_gen"`` while leaving them on the default completions sdk — so the same sdk name is registeredunder two families, served by two different workers.-Claude reaches the Pipelex service on ``pipelex_hosted_anthropic``: the open Anthropic worker, built with+Claude reaches the Pipelex service on ``manifold_anthropic``: the open Anthropic worker, built withthe package's extras factory so that every call carries the metadata header, and a client thatauthenticates on whichever header the backend names. A catalog entry left on the plain ``anthropic``sdk would still answer, without the header.@@ -201,7 +201,8 @@ def _make_pipelex_hosted_search_worker(class PipelexHostedPlugin:"""Built-in driver for the Pipelex service, serving all inference families."""- name = "pipelex_hosted"+ # The plugin name the hosted plane's config selects, so it keeps that spelling+ name = "manifold"targets_api = PLUGIN_API_VERSIONdef register(self, registrar: PluginRegistrar) -> None:diff --git a/tests/unit/pipelex/cogt/img_gen/test_img_gen_worker_config_faults.py b/tests/unit/pipelex/cogt/img_gen/test_img_gen_worker_config_faults.pyindex 67ee8eb48..916f35b08 100644--- a/tests/unit/pipelex/cogt/img_gen/test_img_gen_worker_config_faults.py+++ b/tests/unit/pipelex/cogt/img_gen/test_img_gen_worker_config_faults.py@@ -67,10 +67,10 @@ def _make_worker(mocker: MockerFixture, *, worker_kind: str, rules: ImgGenModelRreturn OpenAIImgGenWorker(sdk_instance=mocker.MagicMock(spec=AsyncOpenAI), inference_model=_model(backend_name="openai", sdk="openai_img_gen", rules=rules))- case "pipelex_hosted":+ case "manifold":return PipelexHostedImgGenWorker(sdk_instance=mocker.MagicMock(spec=AsyncPortkey),- inference_model=_model(backend_name="pipelex_hosted", sdk="pipelex_hosted_img_gen", rules=rules),+ inference_model=_model(backend_name="pipelex_manifold", sdk="manifold_img_gen", rules=rules),)case "fal":return FalImgGenWorker(@@ -101,14 +101,14 @@ class TestImgGenWorkerConfigFaults:("worker_kind", "rules", "error_match"),[("openai", None, "does not have rules configured"),- ("pipelex_hosted", None, "does not have rules configured"),+ ("manifold", None, "does not have rules configured"),("fal", None, "does not have rules configured"),("huggingface", None, "does not have rules configured"),("azure", None, "does not have rules configured"),("fal", PROMPT_ONLY_RULES, "must include a 'model_choice' entry"),("huggingface", PROMPT_ONLY_RULES, "must include a 'model_choice' entry"),("openai", UNKNOWN_ASPECT_RATIO_RULES, "unknown aspect_ratio taxonomy 'gemini_9_turbo'"),- ("pipelex_hosted", UNKNOWN_ASPECT_RATIO_RULES, "unknown aspect_ratio taxonomy 'gemini_9_turbo'"),+ ("manifold", UNKNOWN_ASPECT_RATIO_RULES, "unknown aspect_ratio taxonomy 'gemini_9_turbo'"),("azure", UNKNOWN_ASPECT_RATIO_RULES, "unknown aspect_ratio taxonomy 'gemini_9_turbo'"),("openai", UNKNOWN_PROMPT_RULES, "unknown prompt taxonomy 'weird'"),("fal", UNKNOWN_PROMPT_RULES, "unknown prompt taxonomy 'weird'"),diff --git a/tests/unit/pipelex/cogt/img_gen/test_img_gen_worker_factory.py b/tests/unit/pipelex/cogt/img_gen/test_img_gen_worker_factory.pyindex fc3f49542..67a883924 100644--- a/tests/unit/pipelex/cogt/img_gen/test_img_gen_worker_factory.py+++ b/tests/unit/pipelex/cogt/img_gen/test_img_gen_worker_factory.py@@ -110,7 +110,7 @@ class TestImgGenWorkerFactory:@pytest.mark.parametrize(("sdk", "client_target", "worker_target", "factory_cls", "http_flag", "passes_model_handle"),[- pytest.param("pipelex_hosted_img_gen", PIPELEX_HOSTED_CLIENT, PIPELEX_HOSTED_WORKER, None, None, False, id="pipelex_hosted_img_gen"),+ pytest.param("manifold_img_gen", PIPELEX_HOSTED_CLIENT, PIPELEX_HOSTED_WORKER, None, None, False, id="manifold_img_gen"),pytest.param("openai_img_gen", OPENAI_CLIENT, OPENAI_WORKER, None, None, True, id="openai_img_gen"),pytest.param("blackboxai_img_gen", OPENAI_CLIENT, COMPLETIONS_WORKER, BlackboxaiCompletionsFactory, True, True, id="blackboxai_img_gen"),pytest.param("openrouter_img_gen", OPENAI_CLIENT, COMPLETIONS_WORKER, OpenRouterCompletionsFactory, True, True, id="openrouter_img_gen"),@@ -229,7 +229,7 @@ class TestImgGenWorkerFactory:"""A pre-seeded registry entry is reused: the client factory must not be called."""backend = make_backend()registry = patch_hub_getters(mocker, backend=backend)- inference_model = make_img_gen_model_spec(sdk="pipelex_hosted_img_gen")+ inference_model = make_img_gen_model_spec(sdk="manifold_img_gen")model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)cached_client = mocker.MagicMock(name="cached_client")registry.set(model_handle=model_handle, sdk_instance=cached_client)diff --git a/tests/unit/pipelex/cogt/model_backends/test_backend_boot_tolerance.py b/tests/unit/pipelex/cogt/model_backends/test_backend_boot_tolerance.pyindex 50ba3a9bb..c65d81008 100644--- a/tests/unit/pipelex/cogt/model_backends/test_backend_boot_tolerance.py+++ b/tests/unit/pipelex/cogt/model_backends/test_backend_boot_tolerance.py@@ -266,7 +266,7 @@ class TestThePreviousReleaseKit:As that release left it, its `backends.toml` enables the Pipelex Gateway over a comment-only file andits active routing profile sends every model there: that is refused, naming the backend, rather thanbooted with every model silently missing from the deck. Once the user disables that table and picks- another profile, as the changelog says, the rest loads: the disabled table of the hosted backend under its former name, which carries a key+ another profile, as the changelog says, the rest loads: the disabled table of the hosted backend, which carries a keythe backend blueprint does not define, is skipped before its variables are substituted or its file isread, and only the active routing profile is validated against the enabled backends."""diff --git a/tests/unit/pipelex/cogt/model_backends/test_backend_retired_model_specs_section.py b/tests/unit/pipelex/cogt/model_backends/test_backend_retired_model_specs_section.pyindex 794c9b914..38ffaee4b 100644--- a/tests/unit/pipelex/cogt/model_backends/test_backend_retired_model_specs_section.py+++ b/tests/unit/pipelex/cogt/model_backends/test_backend_retired_model_specs_section.py@@ -9,10 +9,10 @@ from pipelex.cogt.model_backends.backend_library import InferenceBackendLibraryfrom pipelex.tools.secrets.env_secrets_provider import EnvSecretsProviderBACKENDS_TOML_TEMPLATE = """-[pipelex_hosted]+[pipelex_manifold]display_name = "Pipelex"enabled = {enabled}-model_specs_section = "pipelex_hosted_model_specs"+model_specs_section = "manifold_model_specs"api_key = "sk-not-a-real-key""""@@ -23,7 +23,7 @@ class TestBackendRetiredModelSpecsSection:def _load(self, *, tmp_path: Path, enabled: bool, lenient: bool = False) -> InferenceBackendLibrary:backends_dir = tmp_path / "backends"backends_dir.mkdir()- (backends_dir / "pipelex_hosted.toml").write_text(COMMENT_ONLY_BACKEND_TOML)+ (backends_dir / "pipelex_manifold.toml").write_text(COMMENT_ONLY_BACKEND_TOML)base_path = tmp_path / "backends.toml"base_path.write_text(BACKENDS_TOML_TEMPLATE.format(enabled=str(enabled).lower()))library = InferenceBackendLibrary.make_empty()@@ -41,9 +41,9 @@ class TestBackendRetiredModelSpecsSection:self._load(tmp_path=tmp_path, enabled=True, lenient=lenient)message = str(refused.value)- assert "pipelex_hosted" in message+ assert "pipelex_manifold" in messageassert "model_specs_section" in message- assert "backends/pipelex_hosted.toml" in message+ assert "backends/pipelex_manifold.toml" in messagedef test_a_disabled_backend_naming_it_is_skipped(self, tmp_path: Path) -> None:library = self._load(tmp_path=tmp_path, enabled=False)diff --git a/tests/unit/pipelex/cogt/model_routing/test_routing_profile_optional_routes.py b/tests/unit/pipelex/cogt/model_routing/test_routing_profile_optional_routes.pyindex 423246c11..e2a2497be 100644--- a/tests/unit/pipelex/cogt/model_routing/test_routing_profile_optional_routes.py+++ b/tests/unit/pipelex/cogt/model_routing/test_routing_profile_optional_routes.py@@ -70,11 +70,11 @@ class TestRoutingProfileOptionalRoutes:"""`jev-*` sends every versioned judgment model to its backend while that backend is enabled."""routing_profile = RoutingProfile(name="test_profile",- default="pipelex_hosted",+ default="pipelex_manifold",optional_routes={"jev-*": "typesafe"},)- result = routing_profile.get_backend_match_for_model(enabled_backends=["pipelex_hosted", "typesafe"], model_name="jev-1.13.0")+ result = routing_profile.get_backend_match_for_model(enabled_backends=["pipelex_manifold", "typesafe"], model_name="jev-1.13.0")assert result is not Noneassert result.backend_name == "typesafe"@@ -90,12 +90,12 @@ class TestRoutingProfileOptionalRoutes:"""routing_profile = RoutingProfile(name="test_profile",- default="pipelex_hosted",+ default="pipelex_manifold",routes={"gpt-*": "openai"},optional_routes={"jev-*": "typesafe"},)- routing_profile.get_backend_match_for_model(enabled_backends=["pipelex_hosted", "openai", "typesafe"], model_name="jev-1.13.0")+ routing_profile.get_backend_match_for_model(enabled_backends=["pipelex_manifold", "openai", "typesafe"], model_name="jev-1.13.0")assert routing_profile.routes == {"gpt-*": "openai"}assert routing_profile.optional_routes == {"jev-*": "typesafe"}diff --git a/tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py b/tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.pydeleted file mode 100644index 39cfed57a..000000000--- a/tests/unit/pipelex/migration/test_hosted_sdk_by_hand_entry.py+++ /dev/null@@ -1,90 +0,0 @@-"""The `inference-backend@4` entry, exercised on the files it is about.--The entry is `unsafe`: it rewrites nothing and only reports a backend file that still names one of the-hosted backend's former `manifold_*` SDK handles. No reference document the ledger gates replay over-carries those values, so a typo in its mapping would pass every gate and the entry would go silent on the-very files it exists for. These tests hand it such files.-"""--from typing import Any--import pytest--from pipelex.migration.engine import apply_ops_over_text, replay_ledger_over_text-from pipelex.migration.ledger import MigrationLedger, load_ledger, packaged_migration_dir-from pipelex.migration.plan import BlockedEntryReason-from pipelex.providers.pipelex_hosted.pipelex_hosted_constants import PipelexHostedSdk-from pipelex.tools.misc.toml_utils import load_toml_from_content--SURFACE_ID = "inference-backend"-ENTRY_ID = "inference-backend@4"--STALE_HOSTED_FILE = """\-[defaults]-model_type = "llm"-sdk = "manifold_completions"--["claude-4.5-sonnet"]-sdk = "manifold_anthropic"-inputs = ["text", "images"]-outputs = ["text", "structured"]-costs = { input = 3.0, output = 15.0 }--["gpt-image-1"]-model_type = "img_gen"-sdk = "manifold_img_gen"-inputs = ["text"]-outputs = ["image"]-costs = { input = 5.0, output = 40.0 }-"""--# The handles the entry renames, closed at the set that shipped: a hosted sdk added later never had a-# former spelling, so it belongs in no pair here.-RENAMED_HANDLES = (- ("manifold_anthropic", "pipelex_hosted_anthropic"),- ("manifold_completions", "pipelex_hosted_completions"),- ("manifold_responses", "pipelex_hosted_responses"),- ("manifold_img_gen", "pipelex_hosted_img_gen"),- ("manifold_extract", "pipelex_hosted_extract"),- ("manifold_search", "pipelex_hosted_search"),-)---def _ledger() -> MigrationLedger:- return load_ledger(migration_dir=packaged_migration_dir(), surface_id=SURFACE_ID)---class TestTheHostedSdkByHandEntry:- def test_a_stale_file_is_reported_and_left_untouched(self) -> None:- replay = replay_ledger_over_text(ledger=_ledger(), text=STALE_HOSTED_FILE)-- assert replay.steps == []- assert [blocked.entry_id for blocked in replay.blocked] == [ENTRY_ID]- assert replay.blocked[0].reason == BlockedEntryReason.UNSAFE- assert replay.blocked[0].guidance is not None- assert "pipelex_hosted" in replay.blocked[0].guidance- assert replay.text == STALE_HOSTED_FILE-- def test_the_operations_rewrite_every_stale_handle_to_the_current_one(self) -> None:- """What the guidance tells the user to write is what the operations would have written."""- entry = next(entry for entry in _ledger().migration if entry.id == ENTRY_ID)-- migrated: dict[str, Any] = load_toml_from_content(apply_ops_over_text(text=STALE_HOSTED_FILE, ops=entry.ops).text)-- assert migrated["defaults"]["sdk"] == PipelexHostedSdk.COMPLETIONS- assert migrated["claude-4.5-sonnet"]["sdk"] == PipelexHostedSdk.ANTHROPIC- assert migrated["gpt-image-1"]["sdk"] == PipelexHostedSdk.IMG_GEN-- @pytest.mark.parametrize(("former", "current"), RENAMED_HANDLES)- def test_every_former_handle_maps_to_its_current_one(self, former: str, current: str) -> None:- entry = next(entry for entry in _ledger().migration if entry.id == ENTRY_ID)- stale = f'[defaults]\nsdk = "{former}"\n'-- migrated: dict[str, Any] = load_toml_from_content(apply_ops_over_text(text=stale, ops=entry.ops).text)-- assert migrated["defaults"]["sdk"] == current-- @pytest.mark.parametrize(("former", "current"), RENAMED_HANDLES)- def test_every_target_is_a_handle_the_plugin_registers(self, former: str, current: str) -> None:- assert former not in set(PipelexHostedSdk)- assert current in set(PipelexHostedSdk)diff --git a/tests/unit/pipelex/plugins/test_inference_backend_coverage.py b/tests/unit/pipelex/plugins/test_inference_backend_coverage.pyindex a66f35c36..f20819ac1 100644--- a/tests/unit/pipelex/plugins/test_inference_backend_coverage.py+++ b/tests/unit/pipelex/plugins/test_inference_backend_coverage.py@@ -37,8 +37,8 @@ EXPECTED_BACKENDS: list[tuple[InferenceFamily, str]] = [(InferenceFamily.LLM, "azure_openai"),(InferenceFamily.LLM, "openai_responses"),(InferenceFamily.LLM, "azure_openai_responses"),- (InferenceFamily.LLM, "pipelex_hosted_completions"),- (InferenceFamily.LLM, "pipelex_hosted_responses"),+ (InferenceFamily.LLM, "manifold_completions"),+ (InferenceFamily.LLM, "manifold_responses"),(InferenceFamily.LLM, "portkey_completions"),(InferenceFamily.LLM, "portkey_responses"),(InferenceFamily.LLM, "anthropic"),@@ -48,8 +48,8 @@ EXPECTED_BACKENDS: list[tuple[InferenceFamily, str]] = [(InferenceFamily.LLM, "bedrock_aioboto"),(InferenceFamily.LLM, "google"),# IMG_GEN- (InferenceFamily.IMG_GEN, "pipelex_hosted_img_gen"),- (InferenceFamily.IMG_GEN, "pipelex_hosted_completions"),+ (InferenceFamily.IMG_GEN, "manifold_img_gen"),+ (InferenceFamily.IMG_GEN, "manifold_completions"),(InferenceFamily.IMG_GEN, "openai_img_gen"),(InferenceFamily.IMG_GEN, "blackboxai_img_gen"),(InferenceFamily.IMG_GEN, "openrouter_img_gen"),@@ -58,14 +58,14 @@ EXPECTED_BACKENDS: list[tuple[InferenceFamily, str]] = [(InferenceFamily.IMG_GEN, "azure_rest_img_gen"),(InferenceFamily.IMG_GEN, "google"),# EXTRACT- (InferenceFamily.EXTRACT, "pipelex_hosted_extract"),+ (InferenceFamily.EXTRACT, "manifold_extract"),(InferenceFamily.EXTRACT, "mistral"),(InferenceFamily.EXTRACT, "pypdfium2"),(InferenceFamily.EXTRACT, "docling_sdk"),(InferenceFamily.EXTRACT, "linkup_fetch"),# SEARCH(InferenceFamily.SEARCH, "linkup"),- (InferenceFamily.SEARCH, "pipelex_hosted_search"),+ (InferenceFamily.SEARCH, "manifold_search"),# JUDGMENT(InferenceFamily.JUDGMENT, "typesafe"),]@@ -88,13 +88,13 @@ class TestInferenceBackendCoverage:pytest.param([(InferenceFamily.EXTRACT, "linkup_fetch"), (InferenceFamily.SEARCH, "linkup")], "linkup", id="linkup"),pytest.param([- (InferenceFamily.LLM, "pipelex_hosted_completions"),- (InferenceFamily.IMG_GEN, "pipelex_hosted_img_gen"),- (InferenceFamily.EXTRACT, "pipelex_hosted_extract"),- (InferenceFamily.SEARCH, "pipelex_hosted_search"),+ (InferenceFamily.LLM, "manifold_completions"),+ (InferenceFamily.IMG_GEN, "manifold_img_gen"),+ (InferenceFamily.EXTRACT, "manifold_extract"),+ (InferenceFamily.SEARCH, "manifold_search"),],- "pipelex_hosted",- id="pipelex_hosted",+ "manifold",+ id="manifold",),],)diff --git a/tests/unit/pipelex/providers/anthropic/test_anthropic_client_auth.py b/tests/unit/pipelex/providers/anthropic/test_anthropic_client_auth.pyindex c22ea722f..4d7c01675 100644--- a/tests/unit/pipelex/providers/anthropic/test_anthropic_client_auth.py+++ b/tests/unit/pipelex/providers/anthropic/test_anthropic_client_auth.py@@ -62,7 +62,7 @@ class TestAnthropicClientAuth:_patch_config(mocker)mock_client = mocker.patch("pipelex.providers.anthropic.anthropic_factory.AsyncAnthropic")backend = InferenceBackend(- name="pipelex_hosted",+ name="pipelex_manifold",endpoint=_PIPELEX_HOSTED_ORIGIN,api_key="hosted-service-token",extra_config={"auth_header": _PIPELEX_HOSTED_AUTH_HEADER},@@ -82,7 +82,7 @@ class TestAnthropicClientAuth:_patch_config(mocker)mocker.patch("pipelex.providers.anthropic.anthropic_factory.AsyncAnthropic")backend = InferenceBackend(- name="pipelex_hosted",+ name="pipelex_manifold",endpoint=_PIPELEX_HOSTED_ORIGIN,api_key=None,extra_config={"auth_header": _PIPELEX_HOSTED_AUTH_HEADER},diff --git a/tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_output_format.py b/tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_output_format.pyindex 82146d8a1..69b51fcce 100644--- a/tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_output_format.py+++ b/tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_output_format.py@@ -111,11 +111,11 @@ class TestEachRegistrationPassesItsFormat:@pytest.mark.parametrize(("plugin", "sdk", "expected"),[- (PipelexHostedPlugin(), "pipelex_hosted_completions", ImageFormat.PNG),+ (PipelexHostedPlugin(), "manifold_completions", ImageFormat.PNG),(BlackboxaiPlugin(), "blackboxai_img_gen", ImageFormat.JPEG),(OpenRouterPlugin(), "openrouter_img_gen", None),],- ids=["pipelex_hosted", "blackboxai", "openrouter"],+ ids=["manifold", "blackboxai", "openrouter"],)def test_the_registration_builds_the_worker_with_its_format(self, mocker: MockerFixture, plugin: Any, sdk: str, expected: ImageFormat | Nonediff --git a/tests/unit/pipelex/providers/pipelex_hosted/test_data.py b/tests/unit/pipelex/providers/pipelex_hosted/test_data.pyindex 408cc48ec..c860017d6 100644--- a/tests/unit/pipelex/providers/pipelex_hosted/test_data.py+++ b/tests/unit/pipelex/providers/pipelex_hosted/test_data.py@@ -47,28 +47,28 @@ class PipelexHostedExtrasBySpecTestData:GEMINI_IMAGE_CASES: ClassVar[list[tuple[str, dict[str, Any], AspectRatio, SizeTier | ImageSize | None, dict[str, str]]]] = [("nano-banana",- {"model_type": "img_gen", "sdk": "pipelex_hosted_completions", "rules": {"aspect_ratio": "gemini_2_5"}},+ {"model_type": "img_gen", "sdk": "manifold_completions", "rules": {"aspect_ratio": "gemini_2_5"}},AspectRatio.LANDSCAPE_16_9,None,{"aspect_ratio": "16:9"},),("nano-banana-pro",- {"model_type": "img_gen", "sdk": "pipelex_hosted_completions", "rules": {"aspect_ratio": "gemini_3_pro"}},+ {"model_type": "img_gen", "sdk": "manifold_completions", "rules": {"aspect_ratio": "gemini_3_pro"}},AspectRatio.PORTRAIT_9_16,SizeTier.TWO_K,{"aspect_ratio": "9:16", "image_size": "2K"},),("nano-banana-2",- {"model_type": "img_gen", "sdk": "pipelex_hosted_completions", "rules": {"aspect_ratio": "gemini_3_flash"}},+ {"model_type": "img_gen", "sdk": "manifold_completions", "rules": {"aspect_ratio": "gemini_3_flash"}},AspectRatio.LANDSCAPE_4_1,SizeTier.FOUR_K,{"aspect_ratio": "4:1", "image_size": "4K"},),("nano-banana-2-lite",- {"model_type": "img_gen", "sdk": "pipelex_hosted_completions", "rules": {"aspect_ratio": "gemini_3_flash_lite"}},+ {"model_type": "img_gen", "sdk": "manifold_completions", "rules": {"aspect_ratio": "gemini_3_flash_lite"}},AspectRatio.SQUARE,SizeTier.ONE_K,{"aspect_ratio": "1:1", "image_size": "1K"},@@ -77,7 +77,7 @@ class PipelexHostedExtrasBySpecTestData:"nano-banana",{"model_type": "img_gen",- "sdk": "pipelex_hosted_completions",+ "sdk": "manifold_completions","model_id": "gemini-2.5-flash-image","rules": {"aspect_ratio": "gemini_2_5"},},@@ -92,12 +92,12 @@ class PipelexHostedExtrasBySpecTestData:("gpt_image_legacy","gpt-image-1",- {"model_type": "img_gen", "sdk": "pipelex_hosted_img_gen", "rules": {"model_choice": "model_name", "aspect_ratio": "gpt_image_legacy"}},+ {"model_type": "img_gen", "sdk": "manifold_img_gen", "rules": {"model_choice": "model_name", "aspect_ratio": "gpt_image_legacy"}},),("gpt_image_2","gpt-image-2",- {"model_type": "img_gen", "sdk": "pipelex_hosted_img_gen", "rules": {"model_choice": "model_name", "aspect_ratio": "gpt_image_2"}},+ {"model_type": "img_gen", "sdk": "manifold_img_gen", "rules": {"model_choice": "model_name", "aspect_ratio": "gpt_image_2"}},),]@@ -108,19 +108,19 @@ class PipelexHostedExtrasBySpecTestData:("unknown_taxonomy","nano-banana-next",- {"model_type": "img_gen", "sdk": "pipelex_hosted_completions", "rules": {"aspect_ratio": "gemini_from_the_future"}},+ {"model_type": "img_gen", "sdk": "manifold_completions", "rules": {"aspect_ratio": "gemini_from_the_future"}},"unknown aspect_ratio taxonomy 'gemini_from_the_future'",),("gemini_id_without_rules","gemini-lookalike",- {"model_type": "img_gen", "sdk": "pipelex_hosted_completions", "model_id": "gemini-2.5-flash-image"},+ {"model_type": "img_gen", "sdk": "manifold_completions", "model_id": "gemini-2.5-flash-image"},"declares no aspect_ratio rule",),("rules_without_aspect_ratio","nano-banana-bare",- {"model_type": "img_gen", "sdk": "pipelex_hosted_completions", "rules": {"prompt": "positive_only"}},+ {"model_type": "img_gen", "sdk": "manifold_completions", "rules": {"prompt": "positive_only"}},"declares no aspect_ratio rule",),]@@ -128,12 +128,12 @@ class PipelexHostedExtrasBySpecTestData:# (topic, handle, catalog entry, whether the job gets a seed): the Mistral seed still keys on the model id's prefix,# which the one hosted Mistral handle carries whether or not the entry names the provider's id.MISTRAL_SEED_CASES: ClassVar[list[tuple[str, str, dict[str, Any], bool]]] = [- ("mistral_handle_only", "mistral-large", {"sdk": "pipelex_hosted_completions", "structure_method": "instructor/mistral_tools"}, True),+ ("mistral_handle_only", "mistral-large", {"sdk": "manifold_completions", "structure_method": "instructor/mistral_tools"}, True),("mistral_provider_id","mistral-large",- {"sdk": "pipelex_hosted_completions", "model_id": "Mistral-Large-3", "structure_method": "instructor/mistral_tools"},+ {"sdk": "manifold_completions", "model_id": "Mistral-Large-3", "structure_method": "instructor/mistral_tools"},True,),- ("not_mistral", "gpt-4o", {"sdk": "pipelex_hosted_responses"}, False),+ ("not_mistral", "gpt-4o", {"sdk": "manifold_responses"}, False),]diff --git a/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_clients.py b/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_clients.pyindex 16ea8cc32..41b8a9f0d 100644--- a/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_clients.py+++ b/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_clients.py@@ -42,11 +42,11 @@ _ROUTING_MARKERS = ("x-portkey-config", "x-portkey-provider", "x-portkey-virtualdef _backend() -> InferenceBackend:- return InferenceBackend(name="pipelex_hosted", endpoint=_ORIGIN, api_key=_TOKEN)+ return InferenceBackend(name="pipelex_manifold", endpoint=_ORIGIN, api_key=_TOKEN)def _handle(sdk: PipelexHostedSdk) -> ModelHandle:- return ModelHandle(sdk=str(sdk), backend="pipelex_hosted")+ return ModelHandle(sdk=str(sdk), backend="pipelex_manifold")def _patch_config(mocker: MockerFixture, module: str) -> None:@@ -131,7 +131,7 @@ class TestPipelexHostedImageClient:hosted one."""mocker.patch("portkey_ai.AsyncPortkey")- backend = InferenceBackend(name="pipelex_hosted", endpoint=_ORIGIN, api_key=_TOKEN, extra_config={"debug": True})+ backend = InferenceBackend(name="pipelex_manifold", endpoint=_ORIGIN, api_key=_TOKEN, extra_config={"debug": True})assert PipelexHostedFactory.is_debug_enabled(backend) is Trueassert PipelexHostedFactory.is_debug_enabled(_backend()) is Falsediff --git a/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_endpoint_rule.py b/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_endpoint_rule.pyindex 4c54fd57e..7428a3049 100644--- a/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_endpoint_rule.py+++ b/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_endpoint_rule.py@@ -8,8 +8,8 @@ a 200-shaped failure.**The absent-endpoint case is the one worth a test of its own.** The Portkey-path sibling reads`backend.endpoint or PORTKEY_GATEWAY_URL`, which is correct there — an unset endpoint means "use the-vendor's cloud". The same line on this path would mean that an empty-resolving-`PIPELEX_HOSTED_ENDPOINT` silently builds a client aimed at `api.portkey.ai` carrying the+vendor's cloud". The same line on this path would mean that an endpoint that resolves empty+silently builds a client aimed at `api.portkey.ai` carrying the*Pipelex* service token: a live billable request to the wrong vendor, with nothing anywherereporting it. There is no symptom to notice, which is why the refusal is pinned here."""@@ -27,7 +27,7 @@ _TOKEN = "hosted-service-token"def _backend(*, endpoint: str | None = _ORIGIN, api_key: str | None = _TOKEN) -> InferenceBackend:- return InferenceBackend(name="pipelex_hosted", endpoint=endpoint, api_key=api_key)+ return InferenceBackend(name="pipelex_manifold", endpoint=endpoint, api_key=api_key)class TestPipelexHostedEndpointRule:@@ -49,10 +49,10 @@ class TestPipelexHostedEndpointRule:# The vendor's cloud must appear nowhere in the outcome — neither as a value nor as a hint.assert "portkey" not in exc_info.value.message.lower()- assert "PIPELEX_HOSTED_ENDPOINT" in exc_info.value.message+ assert "`endpoint`" in exc_info.value.messagedef test_an_absent_api_key_is_refused_by_name(self) -> None:- with pytest.raises(PipelexHostedCredentialsError, match="PIPELEX_HOSTED_API_KEY"):+ with pytest.raises(PipelexHostedCredentialsError, match="`api_key`"):PipelexHostedFactory.get_api_key(_backend(api_key=None))def test_the_only_header_about_us_is_the_service_token(self) -> None:diff --git a/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py b/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.pyindex 888aaf77f..d4c9bd970 100644--- a/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py+++ b/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_scope.py@@ -106,7 +106,7 @@ class TestPipelexHostedMetadataScope:assert PIPELEX_HOSTED_METADATA_HEADER not in extra_headersassert "x-portkey-metadata" not in extra_headers- @pytest.mark.parametrize("backend_name", ["anthropic", "bedrock", "pipelex_hosted"])+ @pytest.mark.parametrize("backend_name", ["anthropic", "bedrock", "pipelex_manifold"])async def test_a_plain_anthropic_worker_sends_no_headers_on_the_text_call(self, mocker: MockerFixture, backend_name: str) -> None:sdk_client = AsyncAnthropic(api_key="test-key")stream = mocker.MagicMock(side_effect=_RequestCapturedError)@@ -118,7 +118,7 @@ class TestPipelexHostedMetadataScope:assert "extra_headers" not in stream.call_args.kwargs- @pytest.mark.parametrize("backend_name", ["anthropic", "pipelex_hosted"])+ @pytest.mark.parametrize("backend_name", ["anthropic", "pipelex_manifold"])async def test_a_plain_anthropic_worker_sends_no_headers_on_the_structured_call(self, mocker: MockerFixture, backend_name: str) -> None:sdk_client = AsyncAnthropic(api_key="test-key")create = mocker.AsyncMock(return_value=_tool_call_message())diff --git a/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_sdk_paths.py b/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_sdk_paths.pyindex 111e59bda..3482c1467 100644--- a/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_sdk_paths.py+++ b/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_metadata_sdk_paths.py@@ -4,7 +4,7 @@ The header differs per job, so it cannot be a client default: each path adds iteach is pinned here where the request leaves the runtime — the kwargs handed to the SDK call, or theheaders handed to `httpx` on the native routes. The paths are the OpenAI-substrate chat completions(text, and image generation over completions) and responses, the vendor-SDK image path, the native-extract and search routes, and Claude over the Anthropic worker the package registers as `pipelex_hosted_anthropic`.+extract and search routes, and Claude over the Anthropic worker the package registers as `manifold_anthropic`."""from __future__ import annotations@@ -68,7 +68,7 @@ def _model(mocker: MockerFixture, *, backend_name: str = PipelexBackend.PIPELEX_def _native_client() -> PipelexHostedNativeClient:- return PipelexHostedNativeClient(backend=InferenceBackend(name="pipelex_hosted", endpoint=_ORIGIN, api_key="token"))+ return PipelexHostedNativeClient(backend=InferenceBackend(name="pipelex_manifold", endpoint=_ORIGIN, api_key="token"))def _patch_httpx_post(mocker: MockerFixture, *, json_body: dict[str, Any]) -> Any:diff --git a/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_native_client.py b/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_native_client.pyindex 72e3311ee..b26522e0f 100644--- a/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_native_client.py+++ b/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_native_client.py@@ -34,7 +34,7 @@ _TOKEN = "hosted-service-token"def _client() -> PipelexHostedNativeClient:- return PipelexHostedNativeClient(backend=InferenceBackend(name="pipelex_hosted", endpoint=_ORIGIN, api_key=_TOKEN))+ return PipelexHostedNativeClient(backend=InferenceBackend(name="pipelex_manifold", endpoint=_ORIGIN, api_key=_TOKEN))def _inference_model(mocker: MockerFixture) -> Any:diff --git a/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_plugin_registrations.py b/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_plugin_registrations.pyindex 9551aa3b1..c66efe6ff 100644--- a/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_plugin_registrations.py+++ b/tests/unit/pipelex/providers/pipelex_hosted/test_pipelex_hosted_plugin_registrations.py@@ -6,11 +6,11 @@ it is an `InferenceBackendNotFoundError` at the first request against that modelproduction, for one model, on whatever day someone first uses it. The claim is cheap to pin andexpensive to discover.-Two of the entries are worth reading rather than skimming. `(IMG_GEN, pipelex_hosted_completions)` is the+Two of the entries are worth reading rather than skimming. `(IMG_GEN, manifold_completions)` is thesame sdk name registered under a second family, because some image models answer on the ChatCompletions shape rather than on the Images API and the catalog says which by giving them`model_type = "img_gen"` while leaving them on the default completions sdk. And Claude has a token of-its own, `pipelex_hosted_anthropic`, rather than the plain `anthropic` the open Anthropic plugin owns: it is+its own, `manifold_anthropic`, rather than the plain `anthropic` the open Anthropic plugin owns: it isthe same worker built with the package's extras factory, which is what adds the metadata header."""@@ -35,13 +35,13 @@ if TYPE_CHECKING:from pytest_mock import MockerFixture_EXPECTED_KEYS = {- (InferenceFamily.LLM, "pipelex_hosted_anthropic"),- (InferenceFamily.LLM, "pipelex_hosted_completions"),- (InferenceFamily.LLM, "pipelex_hosted_responses"),- (InferenceFamily.IMG_GEN, "pipelex_hosted_img_gen"),- (InferenceFamily.IMG_GEN, "pipelex_hosted_completions"),- (InferenceFamily.EXTRACT, "pipelex_hosted_extract"),- (InferenceFamily.SEARCH, "pipelex_hosted_search"),+ (InferenceFamily.LLM, "manifold_anthropic"),+ (InferenceFamily.LLM, "manifold_completions"),+ (InferenceFamily.LLM, "manifold_responses"),+ (InferenceFamily.IMG_GEN, "manifold_img_gen"),+ (InferenceFamily.IMG_GEN, "manifold_completions"),+ (InferenceFamily.EXTRACT, "manifold_extract"),+ (InferenceFamily.SEARCH, "manifold_search"),}@@ -68,20 +68,20 @@ class TestPipelexHostedPluginRegistrations:PipelexHostedPlugin().register(registrar)- assert all(sdk.startswith("pipelex_hosted_") for _, sdk in registrar.inference_backends)+ assert all(sdk.startswith("manifold_") for _, sdk in registrar.inference_backends)def test_claude_is_built_with_the_metadata_extras_factory(self, mocker: MockerFixture) -> None:registrar = _registrar(mocker)PipelexHostedPlugin().register(registrar)- make_worker = registrar.inference_backends[InferenceFamily.LLM, "pipelex_hosted_anthropic"]+ make_worker = registrar.inference_backends[InferenceFamily.LLM, "manifold_anthropic"]model = mocker.MagicMock()- model.sdk = "pipelex_hosted_anthropic"+ model.sdk = "manifold_anthropic"model.max_tokens = 4096model.get_instructor_mode.return_value = None- backend = InferenceBackend(name="pipelex_hosted", endpoint="https://pipelex_hosted.example.com", api_key="token")+ backend = InferenceBackend(name="pipelex_manifold", endpoint="https://pipelex_hosted.example.com", api_key="token")sdk_clients = mocker.MagicMock()sdk_clients.get_or_create.side_effect = _build_now- mocker.patch.object(ModelHandle, "make_for_inference_model", return_value=mocker.MagicMock(sdk="pipelex_hosted_anthropic"))+ mocker.patch.object(ModelHandle, "make_for_inference_model", return_value=mocker.MagicMock(sdk="manifold_anthropic"))worker = make_worker(inference_model=model, backend=backend, sdk_clients=sdk_clients, reporting_delegate=None)diff --git a/tests/unit/pipelex/providers/test_instructor_retry_shapes.py b/tests/unit/pipelex/providers/test_instructor_retry_shapes.pyindex 7d1d3c46d..74ea60ba7 100644--- a/tests/unit/pipelex/providers/test_instructor_retry_shapes.py+++ b/tests/unit/pipelex/providers/test_instructor_retry_shapes.py@@ -257,7 +257,7 @@ class TestInstructorRetryShapes:inference_model = mocker.MagicMock()inference_model.name = _MODEL_HANDLEinference_model.model_id = _WIRE_ID- inference_model.desc = f"{_MODEL_HANDLE} → SDK[pipelex_hosted_completions]•Backend[pipelex_hosted]•Model[{_WIRE_ID}]"+ inference_model.desc = f"{_MODEL_HANDLE} → SDK[manifold_completions]•Backend[pipelex_manifold]•Model[{_WIRE_ID}]"inference_model.thinking_mode = Noneinference_model.listed_constraints = []worker.inference_model = inference_model